File Coverage

blib/lib/Cfn/Resource/AWS/ManagedBlockchain/Member.pm
Criterion Covered Total %
statement 62 62 100.0
branch n/a
condition n/a
subroutine 22 22 100.0
pod 0 2 0.0
total 84 86 97.6


line stmt bran cond sub pod time code
1             # AWS::ManagedBlockchain::Member generated from spec 18.4.0
2 1     1   657 use Moose::Util::TypeConstraints;
  1         4  
  1         19  
3              
4             coerce 'Cfn::Resource::Properties::AWS::ManagedBlockchain::Member',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::ManagedBlockchain::Member->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::ManagedBlockchain::Member {
9 1     1   2262 use Moose;
  1         5  
  1         8  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::ManagedBlockchain::Member', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 4 [ 'MemberId','NetworkId' ]
15             }
16             sub supported_regions {
17 1     1 0 1265 [ 'ap-northeast-1','ap-northeast-2','ap-southeast-1','eu-central-1','eu-west-1','eu-west-2','us-east-1','us-east-2','us-west-2' ]
18             }
19             }
20              
21              
22              
23             subtype 'Cfn::Resource::Properties::AWS::ManagedBlockchain::Member::NetworkFabricConfiguration',
24             as 'Cfn::Value';
25              
26             coerce 'Cfn::Resource::Properties::AWS::ManagedBlockchain::Member::NetworkFabricConfiguration',
27             from 'HashRef',
28             via {
29             if (my $f = Cfn::TypeLibrary::try_function($_)) {
30             return $f
31             } else {
32             return Cfn::Resource::Properties::Object::AWS::ManagedBlockchain::Member::NetworkFabricConfiguration->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::Object::AWS::ManagedBlockchain::Member::NetworkFabricConfiguration {
37 1     1   7345 use Moose;
  1         3  
  1         6  
38 1     1   6595 use MooseX::StrictConstructor;
  1         4  
  1         9  
39             extends 'Cfn::Value::TypedValue';
40            
41             has Edition => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42             }
43              
44             subtype 'Cfn::Resource::Properties::AWS::ManagedBlockchain::Member::MemberFabricConfiguration',
45             as 'Cfn::Value';
46              
47             coerce 'Cfn::Resource::Properties::AWS::ManagedBlockchain::Member::MemberFabricConfiguration',
48             from 'HashRef',
49             via {
50             if (my $f = Cfn::TypeLibrary::try_function($_)) {
51             return $f
52             } else {
53             return Cfn::Resource::Properties::Object::AWS::ManagedBlockchain::Member::MemberFabricConfiguration->new( %$_ );
54             }
55             };
56              
57             package Cfn::Resource::Properties::Object::AWS::ManagedBlockchain::Member::MemberFabricConfiguration {
58 1     1   4034 use Moose;
  1         8  
  1         7  
59 1     1   6701 use MooseX::StrictConstructor;
  1         3  
  1         14  
60             extends 'Cfn::Value::TypedValue';
61            
62             has AdminPassword => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
63             has AdminUsername => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64             }
65              
66             subtype 'Cfn::Resource::Properties::AWS::ManagedBlockchain::Member::ApprovalThresholdPolicy',
67             as 'Cfn::Value';
68              
69             coerce 'Cfn::Resource::Properties::AWS::ManagedBlockchain::Member::ApprovalThresholdPolicy',
70             from 'HashRef',
71             via {
72             if (my $f = Cfn::TypeLibrary::try_function($_)) {
73             return $f
74             } else {
75             return Cfn::Resource::Properties::Object::AWS::ManagedBlockchain::Member::ApprovalThresholdPolicy->new( %$_ );
76             }
77             };
78              
79             package Cfn::Resource::Properties::Object::AWS::ManagedBlockchain::Member::ApprovalThresholdPolicy {
80 1     1   3425 use Moose;
  1         2  
  1         7  
81 1     1   6736 use MooseX::StrictConstructor;
  1         4  
  1         5  
82             extends 'Cfn::Value::TypedValue';
83            
84             has ProposalDurationInHours => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
85             has ThresholdComparator => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
86             has ThresholdPercentage => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
87             }
88              
89             subtype 'Cfn::Resource::Properties::AWS::ManagedBlockchain::Member::VotingPolicy',
90             as 'Cfn::Value';
91              
92             coerce 'Cfn::Resource::Properties::AWS::ManagedBlockchain::Member::VotingPolicy',
93             from 'HashRef',
94             via {
95             if (my $f = Cfn::TypeLibrary::try_function($_)) {
96             return $f
97             } else {
98             return Cfn::Resource::Properties::Object::AWS::ManagedBlockchain::Member::VotingPolicy->new( %$_ );
99             }
100             };
101              
102             package Cfn::Resource::Properties::Object::AWS::ManagedBlockchain::Member::VotingPolicy {
103 1     1   3372 use Moose;
  1         2  
  1         14  
104 1     1   6642 use MooseX::StrictConstructor;
  1         3  
  1         5  
105             extends 'Cfn::Value::TypedValue';
106            
107             has ApprovalThresholdPolicy => (isa => 'Cfn::Resource::Properties::AWS::ManagedBlockchain::Member::ApprovalThresholdPolicy', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
108             }
109              
110             subtype 'Cfn::Resource::Properties::AWS::ManagedBlockchain::Member::NetworkFrameworkConfiguration',
111             as 'Cfn::Value';
112              
113             coerce 'Cfn::Resource::Properties::AWS::ManagedBlockchain::Member::NetworkFrameworkConfiguration',
114             from 'HashRef',
115             via {
116             if (my $f = Cfn::TypeLibrary::try_function($_)) {
117             return $f
118             } else {
119             return Cfn::Resource::Properties::Object::AWS::ManagedBlockchain::Member::NetworkFrameworkConfiguration->new( %$_ );
120             }
121             };
122              
123             package Cfn::Resource::Properties::Object::AWS::ManagedBlockchain::Member::NetworkFrameworkConfiguration {
124 1     1   3369 use Moose;
  1         4  
  1         7  
125 1     1   6741 use MooseX::StrictConstructor;
  1         3  
  1         12  
126             extends 'Cfn::Value::TypedValue';
127            
128             has NetworkFabricConfiguration => (isa => 'Cfn::Resource::Properties::AWS::ManagedBlockchain::Member::NetworkFabricConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
129             }
130              
131             subtype 'Cfn::Resource::Properties::AWS::ManagedBlockchain::Member::MemberFrameworkConfiguration',
132             as 'Cfn::Value';
133              
134             coerce 'Cfn::Resource::Properties::AWS::ManagedBlockchain::Member::MemberFrameworkConfiguration',
135             from 'HashRef',
136             via {
137             if (my $f = Cfn::TypeLibrary::try_function($_)) {
138             return $f
139             } else {
140             return Cfn::Resource::Properties::Object::AWS::ManagedBlockchain::Member::MemberFrameworkConfiguration->new( %$_ );
141             }
142             };
143              
144             package Cfn::Resource::Properties::Object::AWS::ManagedBlockchain::Member::MemberFrameworkConfiguration {
145 1     1   3347 use Moose;
  1         3  
  1         8  
146 1     1   6720 use MooseX::StrictConstructor;
  1         7  
  1         13  
147             extends 'Cfn::Value::TypedValue';
148            
149             has MemberFabricConfiguration => (isa => 'Cfn::Resource::Properties::AWS::ManagedBlockchain::Member::MemberFabricConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
150             }
151              
152             subtype 'Cfn::Resource::Properties::AWS::ManagedBlockchain::Member::NetworkConfiguration',
153             as 'Cfn::Value';
154              
155             coerce 'Cfn::Resource::Properties::AWS::ManagedBlockchain::Member::NetworkConfiguration',
156             from 'HashRef',
157             via {
158             if (my $f = Cfn::TypeLibrary::try_function($_)) {
159             return $f
160             } else {
161             return Cfn::Resource::Properties::Object::AWS::ManagedBlockchain::Member::NetworkConfiguration->new( %$_ );
162             }
163             };
164              
165             package Cfn::Resource::Properties::Object::AWS::ManagedBlockchain::Member::NetworkConfiguration {
166 1     1   3329 use Moose;
  1         5  
  1         9  
167 1     1   6648 use MooseX::StrictConstructor;
  1         3  
  1         5  
168             extends 'Cfn::Value::TypedValue';
169            
170             has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
171             has Framework => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
172             has FrameworkVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
173             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
174             has NetworkFrameworkConfiguration => (isa => 'Cfn::Resource::Properties::AWS::ManagedBlockchain::Member::NetworkFrameworkConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
175             has VotingPolicy => (isa => 'Cfn::Resource::Properties::AWS::ManagedBlockchain::Member::VotingPolicy', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
176             }
177              
178             subtype 'Cfn::Resource::Properties::AWS::ManagedBlockchain::Member::MemberConfiguration',
179             as 'Cfn::Value';
180              
181             coerce 'Cfn::Resource::Properties::AWS::ManagedBlockchain::Member::MemberConfiguration',
182             from 'HashRef',
183             via {
184             if (my $f = Cfn::TypeLibrary::try_function($_)) {
185             return $f
186             } else {
187             return Cfn::Resource::Properties::Object::AWS::ManagedBlockchain::Member::MemberConfiguration->new( %$_ );
188             }
189             };
190              
191             package Cfn::Resource::Properties::Object::AWS::ManagedBlockchain::Member::MemberConfiguration {
192 1     1   3528 use Moose;
  1         2  
  1         10  
193 1     1   6578 use MooseX::StrictConstructor;
  1         3  
  1         6  
194             extends 'Cfn::Value::TypedValue';
195            
196             has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
197             has MemberFrameworkConfiguration => (isa => 'Cfn::Resource::Properties::AWS::ManagedBlockchain::Member::MemberFrameworkConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
198             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
199             }
200              
201             package Cfn::Resource::Properties::AWS::ManagedBlockchain::Member {
202 1     1   3315 use Moose;
  1         3  
  1         8  
203 1     1   6789 use MooseX::StrictConstructor;
  1         8  
  1         7  
204             extends 'Cfn::Resource::Properties';
205            
206             has InvitationId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
207             has MemberConfiguration => (isa => 'Cfn::Resource::Properties::AWS::ManagedBlockchain::Member::MemberConfiguration', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
208             has NetworkConfiguration => (isa => 'Cfn::Resource::Properties::AWS::ManagedBlockchain::Member::NetworkConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
209             has NetworkId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
210             }
211              
212             1;
213             ### main pod documentation begin ###
214              
215             =encoding UTF-8
216              
217             =head1 NAME
218              
219             Cfn::Resource::AWS::ManagedBlockchain::Member - Cfn resource for AWS::ManagedBlockchain::Member
220              
221             =head1 DESCRIPTION
222              
223             This module implements a Perl module that represents the CloudFormation object AWS::ManagedBlockchain::Member.
224              
225             See L<Cfn> for more information on how to use it.
226              
227             =head1 AUTHOR
228              
229             Jose Luis Martinez
230             CAPSiDE
231             jlmartinez@capside.com
232              
233             =head1 COPYRIGHT and LICENSE
234              
235             Copyright (c) 2013 by CAPSiDE
236             This code is distributed under the Apache 2 License. The full text of the
237             license can be found in the LICENSE file included with this module.
238              
239             =cut