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 5.3.0
2 1     1   712 use Moose::Util::TypeConstraints;
  1         3  
  1         11  
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   2141 use Moose;
  1         3  
  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 6 [ 'MemberId','NetworkId' ]
15             }
16             sub supported_regions {
17 1     1 0 1128 [ 'us-east-1' ]
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::AWS::ManagedBlockchain::Member::NetworkFabricConfigurationValue->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::AWS::ManagedBlockchain::Member::NetworkFabricConfigurationValue {
37 1     1   7059 use Moose;
  1         3  
  1         5  
38 1     1   6639 use MooseX::StrictConstructor;
  1         3  
  1         10  
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::AWS::ManagedBlockchain::Member::MemberFabricConfigurationValue->new( %$_ );
54             }
55             };
56              
57             package Cfn::Resource::Properties::AWS::ManagedBlockchain::Member::MemberFabricConfigurationValue {
58 1     1   3613 use Moose;
  1         3  
  1         6  
59 1     1   6582 use MooseX::StrictConstructor;
  1         2  
  1         4  
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::AWS::ManagedBlockchain::Member::ApprovalThresholdPolicyValue->new( %$_ );
76             }
77             };
78              
79             package Cfn::Resource::Properties::AWS::ManagedBlockchain::Member::ApprovalThresholdPolicyValue {
80 1     1   3433 use Moose;
  1         4  
  1         5  
81 1     1   6657 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::AWS::ManagedBlockchain::Member::VotingPolicyValue->new( %$_ );
99             }
100             };
101              
102             package Cfn::Resource::Properties::AWS::ManagedBlockchain::Member::VotingPolicyValue {
103 1     1   3398 use Moose;
  1         4  
  1         6  
104 1     1   6771 use MooseX::StrictConstructor;
  1         3  
  1         6  
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::AWS::ManagedBlockchain::Member::NetworkFrameworkConfigurationValue->new( %$_ );
120             }
121             };
122              
123             package Cfn::Resource::Properties::AWS::ManagedBlockchain::Member::NetworkFrameworkConfigurationValue {
124 1     1   3467 use Moose;
  1         3  
  1         7  
125 1     1   6736 use MooseX::StrictConstructor;
  1         5  
  1         6  
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::AWS::ManagedBlockchain::Member::MemberFrameworkConfigurationValue->new( %$_ );
141             }
142             };
143              
144             package Cfn::Resource::Properties::AWS::ManagedBlockchain::Member::MemberFrameworkConfigurationValue {
145 1     1   3423 use Moose;
  1         3  
  1         7  
146 1     1   6667 use MooseX::StrictConstructor;
  1         3  
  1         6  
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::AWS::ManagedBlockchain::Member::NetworkConfigurationValue->new( %$_ );
162             }
163             };
164              
165             package Cfn::Resource::Properties::AWS::ManagedBlockchain::Member::NetworkConfigurationValue {
166 1     1   3397 use Moose;
  1         3  
  1         5  
167 1     1   6639 use MooseX::StrictConstructor;
  1         3  
  1         7  
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::AWS::ManagedBlockchain::Member::MemberConfigurationValue->new( %$_ );
188             }
189             };
190              
191             package Cfn::Resource::Properties::AWS::ManagedBlockchain::Member::MemberConfigurationValue {
192 1     1   3772 use Moose;
  1         2  
  1         42  
193 1     1   7458 use MooseX::StrictConstructor;
  1         3  
  1         8  
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   3666 use Moose;
  1         2  
  1         6  
203 1     1   6853 use MooseX::StrictConstructor;
  1         3  
  1         5  
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;