Cfn/Resource/AWS/EC2/SpotFleet.pm

filter: Statementstmt 73.7% 340 / 461 Branchbran 8.3% 7 / 84 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.4% 56 / 111 Podpod 0.0% 0 / 2 totaltotal 61.2% 403 / 658 CC 43 SCAR 12.4
CC
43
Cov
64%
__ANON__
6.0
__ANON__
6.0
__ANON__
6.0
CRAP 3.5
« Cfn/Resource/AWS/Kendra/DataSource.pm ↑ Summary Cfn/Resource/AWS/SageMaker/MonitoringSchedule.pm »
1 # AWS::EC2::SpotFleet generated from spec 18.4.0
2 2 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet',
5 from 'HashRef',
6 2 ▶ via { Cfn::Resource::Properties::AWS::EC2::SpotFleet->new( %$_ ) };
Subroutine __ANON__: called CC=1 SCAR=0.0
7  
8 2 package Cfn::Resource::AWS::EC2::SpotFleet {
9 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 2 extends 'Cfn::Resource';
11 2 has Properties => (isa => 'Cfn::Resource::Properties::AWS::EC2::SpotFleet', is => 'rw', coerce => 1);
12
13 sub AttributeList {
14 1 ▶ [ ]
Subroutine AttributeList: called CC=1 SCAR=0.0
Pod undocumented
15 }
16 sub supported_regions {
17 1 ▶ [ 'af-south-1','ap-east-1','ap-northeast-1','ap-northeast-2','ap-northeast-3','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','cn-north-1','cn-northwest-1','eu-central-1','eu-north-1','eu-south-1','eu-west-1','eu-west-2','eu-west-3','me-south-1','sa-east-1','us-east-1','us-east-2','us-gov-east-1','us-gov-west-1','us-west-1','us-west-2' ]
Subroutine supported_regions: called CC=1 SCAR=0.0
Pod undocumented
18 }
19 }
20  
21  
22 subtype 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::TargetGroup',
23 as 'Cfn::Value',
24 0 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 0 0 0
25 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
26  
27 coerce 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::TargetGroup',
28 from 'HashRef',
29 via {
30 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
31 0 return $f
32 } else {
33 0 die 'Only accepts functions';
34 }
35 },
36 from 'ArrayRef',
37 via {
38 Cfn::Value::Array->new(Value => [
39 map {
40 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EC2::SpotFleet::TargetGroup')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
41 } @$_
42 ]);
43 2 };
44  
45 2 subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::TargetGroup',
46 as 'Cfn::Value';
47  
48 coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::TargetGroup',
49 from 'HashRef',
50 via {
51 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
52 0 return $f
53 } else {
54 0 return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::TargetGroup->new( %$_ );
55 }
56 2 };
57  
58 2 package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::TargetGroup {
59 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
60 2 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
61 2 extends 'Cfn::Value::TypedValue';
62
63 2 has Arn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64 }
65 subtype 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::PrivateIpAddressSpecification',
66 as 'Cfn::Value',
67 0 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 0 0 0
68 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
69  
70 coerce 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::PrivateIpAddressSpecification',
71 from 'HashRef',
72 via {
73 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
74 0 return $f
75 } else {
76 0 die 'Only accepts functions';
77 }
78 },
79 from 'ArrayRef',
80 via {
81 Cfn::Value::Array->new(Value => [
82 map {
83 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EC2::SpotFleet::PrivateIpAddressSpecification')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
84 } @$_
85 ]);
86 2 };
87  
88 2 subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::PrivateIpAddressSpecification',
89 as 'Cfn::Value';
90  
91 coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::PrivateIpAddressSpecification',
92 from 'HashRef',
93 via {
94 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
95 0 return $f
96 } else {
97 0 return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::PrivateIpAddressSpecification->new( %$_ );
98 }
99 2 };
100  
101 2 package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::PrivateIpAddressSpecification {
102 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
103 2 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
104 2 extends 'Cfn::Value::TypedValue';
105
106 2 has Primary => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
107 2 has PrivateIpAddress => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
108 }
109 subtype 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::InstanceIpv6Address',
110 as 'Cfn::Value',
111 0 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 0 0 0
112 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
113  
114 coerce 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::InstanceIpv6Address',
115 from 'HashRef',
116 via {
117 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
118 0 return $f
119 } else {
120 0 die 'Only accepts functions';
121 }
122 },
123 from 'ArrayRef',
124 via {
125 Cfn::Value::Array->new(Value => [
126 map {
127 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EC2::SpotFleet::InstanceIpv6Address')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
128 } @$_
129 ]);
130 2 };
131  
132 2 subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::InstanceIpv6Address',
133 as 'Cfn::Value';
134  
135 coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::InstanceIpv6Address',
136 from 'HashRef',
137 via {
138 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
139 0 return $f
140 } else {
141 0 return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::InstanceIpv6Address->new( %$_ );
142 }
143 2 };
144  
145 2 package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::InstanceIpv6Address {
146 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
147 2 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
148 2 extends 'Cfn::Value::TypedValue';
149
150 2 has Ipv6Address => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
151 }
152  
153 2 subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::EbsBlockDevice',
154 as 'Cfn::Value';
155  
156 coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::EbsBlockDevice',
157 from 'HashRef',
158 via {
159 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
160 0 return $f
161 } else {
162 0 return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::EbsBlockDevice->new( %$_ );
163 }
164 2 };
165  
166 2 package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::EbsBlockDevice {
167 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
168 2 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
169 2 extends 'Cfn::Value::TypedValue';
170
171 2 has DeleteOnTermination => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
172 2 has Encrypted => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
173 2 has Iops => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
174 2 has SnapshotId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
175 2 has VolumeSize => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
176 2 has VolumeType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
177 }
178 subtype 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::ClassicLoadBalancer',
179 as 'Cfn::Value',
180 0 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 0 0 0
181 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
182  
183 coerce 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::ClassicLoadBalancer',
184 from 'HashRef',
185 via {
186 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
187 0 return $f
188 } else {
189 0 die 'Only accepts functions';
190 }
191 },
192 from 'ArrayRef',
193 via {
194 Cfn::Value::Array->new(Value => [
195 map {
196 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EC2::SpotFleet::ClassicLoadBalancer')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
197 } @$_
198 ]);
199 2 };
200  
201 2 subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::ClassicLoadBalancer',
202 as 'Cfn::Value';
203  
204 coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::ClassicLoadBalancer',
205 from 'HashRef',
206 via {
207 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
208 0 return $f
209 } else {
210 0 return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::ClassicLoadBalancer->new( %$_ );
211 }
212 2 };
213  
214 2 package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::ClassicLoadBalancer {
215 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
216 2 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
217 2 extends 'Cfn::Value::TypedValue';
218
219 2 has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
220 }
221  
222 2 subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::TargetGroupsConfig',
223 as 'Cfn::Value';
224  
225 coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::TargetGroupsConfig',
226 from 'HashRef',
227 via {
228 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
229 0 return $f
230 } else {
231 0 return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::TargetGroupsConfig->new( %$_ );
232 }
233 2 };
234  
235 2 package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::TargetGroupsConfig {
236 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
237 2 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
238 2 extends 'Cfn::Value::TypedValue';
239
240 2 has TargetGroups => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::TargetGroup', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
241 }
242  
243 2 subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::SpotPlacement',
244 as 'Cfn::Value';
245  
246 coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::SpotPlacement',
247 from 'HashRef',
248 via {
249 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
250 0 return $f
251 } else {
252 0 return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::SpotPlacement->new( %$_ );
253 }
254 2 };
255  
256 2 package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::SpotPlacement {
257 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
258 2 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
259 2 extends 'Cfn::Value::TypedValue';
260
261 2 has AvailabilityZone => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
262 2 has GroupName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
263 2 has Tenancy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
264 }
265 subtype 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::SpotFleetTagSpecification',
266 as 'Cfn::Value',
267 0 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 0 0 0
268 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
269  
270 coerce 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::SpotFleetTagSpecification',
271 from 'HashRef',
272 via {
273 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
274 0 return $f
275 } else {
276 0 die 'Only accepts functions';
277 }
278 },
279 from 'ArrayRef',
280 via {
281 Cfn::Value::Array->new(Value => [
282 map {
283 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EC2::SpotFleet::SpotFleetTagSpecification')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
284 } @$_
285 ]);
286 2 };
287  
288 2 subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::SpotFleetTagSpecification',
289 as 'Cfn::Value';
290  
291 coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::SpotFleetTagSpecification',
292 from 'HashRef',
293 via {
294 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
295 0 return $f
296 } else {
297 0 return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::SpotFleetTagSpecification->new( %$_ );
298 }
299 2 };
300  
301 2 package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::SpotFleetTagSpecification {
302 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
303 2 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
304 2 extends 'Cfn::Value::TypedValue';
305
306 2 has ResourceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
307 2 has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
308 }
309  
310 2 subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::SpotFleetMonitoring',
311 as 'Cfn::Value';
312  
313 coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::SpotFleetMonitoring',
314 from 'HashRef',
315 via {
316 2 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 2 2
317 0 return $f
318 } else {
319 2 return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::SpotFleetMonitoring->new( %$_ );
320 }
321 2 };
322  
323 2 package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::SpotFleetMonitoring {
324 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
325 2 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
326 2 extends 'Cfn::Value::TypedValue';
327
328 2 has Enabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
329 }
330 subtype 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::LaunchTemplateOverrides',
331 as 'Cfn::Value',
332 0 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 0 0 0
333 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
334  
335 coerce 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::LaunchTemplateOverrides',
336 from 'HashRef',
337 via {
338 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
339 0 return $f
340 } else {
341 0 die 'Only accepts functions';
342 }
343 },
344 from 'ArrayRef',
345 via {
346 Cfn::Value::Array->new(Value => [
347 map {
348 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EC2::SpotFleet::LaunchTemplateOverrides')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
349 } @$_
350 ]);
351 2 };
352  
353 2 subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::LaunchTemplateOverrides',
354 as 'Cfn::Value';
355  
356 coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::LaunchTemplateOverrides',
357 from 'HashRef',
358 via {
359 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
360 0 return $f
361 } else {
362 0 return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::LaunchTemplateOverrides->new( %$_ );
363 }
364 2 };
365  
366 2 package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::LaunchTemplateOverrides {
367 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
368 2 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
369 2 extends 'Cfn::Value::TypedValue';
370
371 2 has AvailabilityZone => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
372 2 has InstanceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
373 2 has SpotPrice => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
374 2 has SubnetId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
375 2 has WeightedCapacity => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
376 }
377 subtype 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::InstanceNetworkInterfaceSpecification',
378 as 'Cfn::Value',
379 0 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 0 0 0
380 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
381  
382 coerce 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::InstanceNetworkInterfaceSpecification',
383 from 'HashRef',
384 via {
385 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
386 0 return $f
387 } else {
388 0 die 'Only accepts functions';
389 }
390 },
391 from 'ArrayRef',
392 via {
393 Cfn::Value::Array->new(Value => [
394 map {
395 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EC2::SpotFleet::InstanceNetworkInterfaceSpecification')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
396 } @$_
397 ]);
398 2 };
399  
400 2 subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::InstanceNetworkInterfaceSpecification',
401 as 'Cfn::Value';
402  
403 coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::InstanceNetworkInterfaceSpecification',
404 from 'HashRef',
405 via {
406 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
407 0 return $f
408 } else {
409 0 return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::InstanceNetworkInterfaceSpecification->new( %$_ );
410 }
411 2 };
412  
413 2 package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::InstanceNetworkInterfaceSpecification {
414 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
415 2 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
416 2 extends 'Cfn::Value::TypedValue';
417
418 2 has AssociatePublicIpAddress => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
419 2 has DeleteOnTermination => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
420 2 has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
421 2 has DeviceIndex => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
422 2 has Groups => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
423 2 has Ipv6AddressCount => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
424 2 has Ipv6Addresses => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::InstanceIpv6Address', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
425 2 has NetworkInterfaceId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
426 2 has PrivateIpAddresses => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::PrivateIpAddressSpecification', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
427 2 has SecondaryPrivateIpAddressCount => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
428 2 has SubnetId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
429 }
430  
431 2 subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::IamInstanceProfileSpecification',
432 as 'Cfn::Value';
433  
434 coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::IamInstanceProfileSpecification',
435 from 'HashRef',
436 via {
437 2 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 2 2
438 0 return $f
439 } else {
440 2 return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::IamInstanceProfileSpecification->new( %$_ );
441 }
442 2 };
443  
444 2 package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::IamInstanceProfileSpecification {
445 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
446 2 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
447 2 extends 'Cfn::Value::TypedValue';
448
449 2 has Arn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
450 }
451 subtype 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::GroupIdentifier',
452 as 'Cfn::Value',
453 2 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 0 2 2
454 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
455  
456 coerce 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::GroupIdentifier',
457 from 'HashRef',
458 via {
459 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
460 0 return $f
461 } else {
462 0 die 'Only accepts functions';
463 }
464 },
465 from 'ArrayRef',
466 via {
467 Cfn::Value::Array->new(Value => [
468 map {
469 2 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EC2::SpotFleet::GroupIdentifier')->coerce($_)
Subroutine __ANON__: called CC=1 SCAR=0.0
470 } @$_
471 ]);
472 2 };
473  
474 2 subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::GroupIdentifier',
475 as 'Cfn::Value';
476  
477 coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::GroupIdentifier',
478 from 'HashRef',
479 via {
480 2 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 2 2
481 0 return $f
482 } else {
483 2 return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::GroupIdentifier->new( %$_ );
484 }
485 2 };
486  
487 2 package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::GroupIdentifier {
488 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
489 2 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
490 2 extends 'Cfn::Value::TypedValue';
491
492 2 has GroupId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
493 }
494  
495 2 subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::FleetLaunchTemplateSpecification',
496 as 'Cfn::Value';
497  
498 coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::FleetLaunchTemplateSpecification',
499 from 'HashRef',
500 via {
501 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
502 0 return $f
503 } else {
504 0 return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::FleetLaunchTemplateSpecification->new( %$_ );
505 }
506 2 };
507  
508 2 package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::FleetLaunchTemplateSpecification {
509 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
510 2 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
511 2 extends 'Cfn::Value::TypedValue';
512
513 2 has LaunchTemplateId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
514 2 has LaunchTemplateName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
515 2 has Version => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
516 }
517  
518 2 subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::ClassicLoadBalancersConfig',
519 as 'Cfn::Value';
520  
521 coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::ClassicLoadBalancersConfig',
522 from 'HashRef',
523 via {
524 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
525 0 return $f
526 } else {
527 0 return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::ClassicLoadBalancersConfig->new( %$_ );
528 }
529 2 };
530  
531 2 package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::ClassicLoadBalancersConfig {
532 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
533 2 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
534 2 extends 'Cfn::Value::TypedValue';
535
536 2 has ClassicLoadBalancers => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::ClassicLoadBalancer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
537 }
538 subtype 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::BlockDeviceMapping',
539 as 'Cfn::Value',
540 0 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 0 0 0
541 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
542  
543 coerce 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::BlockDeviceMapping',
544 from 'HashRef',
545 via {
546 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
547 0 return $f
548 } else {
549 0 die 'Only accepts functions';
550 }
551 },
552 from 'ArrayRef',
553 via {
554 Cfn::Value::Array->new(Value => [
555 map {
556 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EC2::SpotFleet::BlockDeviceMapping')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
557 } @$_
558 ]);
559 2 };
560  
561 2 subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::BlockDeviceMapping',
562 as 'Cfn::Value';
563  
564 coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::BlockDeviceMapping',
565 from 'HashRef',
566 via {
567 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
568 0 return $f
569 } else {
570 0 return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::BlockDeviceMapping->new( %$_ );
571 }
572 2 };
573  
574 2 package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::BlockDeviceMapping {
575 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
576 2 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
577 2 extends 'Cfn::Value::TypedValue';
578
579 2 has DeviceName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
580 2 has Ebs => (isa => 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::EbsBlockDevice', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
581 2 has NoDevice => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
582 2 has VirtualName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
583 }
584 subtype 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::SpotFleetLaunchSpecification',
585 as 'Cfn::Value',
586 2 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 0 2 2
587 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
588  
589 coerce 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::SpotFleetLaunchSpecification',
590 from 'HashRef',
591 via {
592 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
593 0 return $f
594 } else {
595 0 die 'Only accepts functions';
596 }
597 },
598 from 'ArrayRef',
599 via {
600 Cfn::Value::Array->new(Value => [
601 map {
602 2 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EC2::SpotFleet::SpotFleetLaunchSpecification')->coerce($_)
Subroutine __ANON__: called CC=1 SCAR=0.0
603 } @$_
604 ]);
605 2 };
606  
607 2 subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::SpotFleetLaunchSpecification',
608 as 'Cfn::Value';
609  
610 coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::SpotFleetLaunchSpecification',
611 from 'HashRef',
612 via {
613 4 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 4 4
614 0 return $f
615 } else {
616 4 return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::SpotFleetLaunchSpecification->new( %$_ );
617 }
618 2 };
619  
620 2 package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::SpotFleetLaunchSpecification {
621 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
622 2 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
623 2 extends 'Cfn::Value::TypedValue';
624
625 2 has BlockDeviceMappings => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::BlockDeviceMapping', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
626 2 has EbsOptimized => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
627 2 has IamInstanceProfile => (isa => 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::IamInstanceProfileSpecification', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
628 2 has ImageId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
629 2 has InstanceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
630 2 has KernelId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
631 2 has KeyName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
632 2 has Monitoring => (isa => 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::SpotFleetMonitoring', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
633 2 has NetworkInterfaces => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::InstanceNetworkInterfaceSpecification', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
634 2 has Placement => (isa => 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::SpotPlacement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
635 2 has RamdiskId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
636 2 has SecurityGroups => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::GroupIdentifier', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
637 2 has SpotPrice => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
638 2 has SubnetId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
639 2 has TagSpecifications => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::SpotFleetTagSpecification', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
640 2 has UserData => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
641 2 has WeightedCapacity => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
642 }
643  
644 2 subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::LoadBalancersConfig',
645 as 'Cfn::Value';
646  
647 coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::LoadBalancersConfig',
648 from 'HashRef',
649 via {
650 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
651 0 return $f
652 } else {
653 0 return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::LoadBalancersConfig->new( %$_ );
654 }
655 2 };
656  
657 2 package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::LoadBalancersConfig {
658 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
659 2 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
660 2 extends 'Cfn::Value::TypedValue';
661
662 2 has ClassicLoadBalancersConfig => (isa => 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::ClassicLoadBalancersConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
663 2 has TargetGroupsConfig => (isa => 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::TargetGroupsConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
664 }
665 subtype 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::LaunchTemplateConfig',
666 as 'Cfn::Value',
667 0 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 0 0 0
668 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
669  
670 coerce 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::LaunchTemplateConfig',
671 from 'HashRef',
672 via {
673 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
674 0 return $f
675 } else {
676 0 die 'Only accepts functions';
677 }
678 },
679 from 'ArrayRef',
680 via {
681 Cfn::Value::Array->new(Value => [
682 map {
683 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EC2::SpotFleet::LaunchTemplateConfig')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
684 } @$_
685 ]);
686 2 };
687  
688 2 subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::LaunchTemplateConfig',
689 as 'Cfn::Value';
690  
691 coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::LaunchTemplateConfig',
692 from 'HashRef',
693 via {
694 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
695 0 return $f
696 } else {
697 0 return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::LaunchTemplateConfig->new( %$_ );
698 }
699 2 };
700  
701 2 package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::LaunchTemplateConfig {
702 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
703 2 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
704 2 extends 'Cfn::Value::TypedValue';
705
706 2 has LaunchTemplateSpecification => (isa => 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::FleetLaunchTemplateSpecification', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
707 2 has Overrides => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::LaunchTemplateOverrides', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
708 }
709  
710 2 subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::SpotFleetRequestConfigData',
711 as 'Cfn::Value';
712  
713 coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::SpotFleetRequestConfigData',
714 from 'HashRef',
715 via {
716 2 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 2 2
717 0 return $f
718 } else {
719 2 return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::SpotFleetRequestConfigData->new( %$_ );
720 }
721 2 };
722  
723 2 package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::SpotFleetRequestConfigData {
724 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
725 2 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
726 2 extends 'Cfn::Value::TypedValue';
727
728 2 has AllocationStrategy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
729 2 has ExcessCapacityTerminationPolicy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
730 2 has IamFleetRole => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
731 2 has InstanceInterruptionBehavior => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
732 2 has LaunchSpecifications => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::SpotFleetLaunchSpecification', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
733 2 has LaunchTemplateConfigs => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::LaunchTemplateConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
734 2 has LoadBalancersConfig => (isa => 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::LoadBalancersConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
735 2 has ReplaceUnhealthyInstances => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
736 2 has SpotPrice => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
737 2 has TargetCapacity => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
738 2 has TerminateInstancesWithExpiration => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
739 2 has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
740 2 has ValidFrom => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
741 2 has ValidUntil => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
742 }
743  
744 2 package Cfn::Resource::Properties::AWS::EC2::SpotFleet {
745 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
746 2 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
747 2 extends 'Cfn::Resource::Properties';
748
749 2 has SpotFleetRequestConfigData => (isa => 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::SpotFleetRequestConfigData', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Conditional');
750 }
751  
752 2 1;
753 ### main pod documentation begin ###
754  
755 =encoding UTF-8
756  
757 =head1 NAME
758  
759 Cfn::Resource::AWS::EC2::SpotFleet - Cfn resource for AWS::EC2::SpotFleet
760  
761 =head1 DESCRIPTION
762  
763 This module implements a Perl module that represents the CloudFormation object AWS::EC2::SpotFleet.
764  
765 See L<Cfn> for more information on how to use it.
766  
767 =head1 AUTHOR
768  
769 Jose Luis Martinez
770 CAPSiDE
771 jlmartinez@capside.com
772  
773 =head1 COPYRIGHT and LICENSE
774  
775 Copyright (c) 2013 by CAPSiDE
776 This code is distributed under the Apache 2 License. The full text of the
777 license can be found in the LICENSE file included with this module.
778  
779 =cut
« Cfn/Resource/AWS/Kendra/DataSource.pm ↑ Summary Cfn/Resource/AWS/SageMaker/MonitoringSchedule.pm »