Cfn/Resource/AWS/Batch/JobDefinition.pm

filter: Statementstmt 72.0% 216 / 300 Branchbran 3.7% 2 / 54 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 47.3% 35 / 74 Podpod 0.0% 0 / 2 totaltotal 58.8% 253 / 430 SCAR 42.8
CC
28
Cov
62%
__ANON__
6.0
__ANON__
6.0
__ANON__
6.0
CRAP 72.5
« Cfn/YAML/Schema.pm ↑ Summary Cfn/Resource/AWS/IoTAnalytics/Dataset.pm »
1 # AWS::Batch::JobDefinition generated from spec 5.0.0
2 3 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 coerce 'Cfn::Resource::Properties::AWS::Batch::JobDefinition',
5 from 'HashRef',
6 6 ▶ via { Cfn::Resource::Properties::AWS::Batch::JobDefinition->new( %$_ ) };
Subroutine __ANON__: called CC=1 SCAR=0.0
7  
8 3 package Cfn::Resource::AWS::Batch::JobDefinition {
9 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 3 extends 'Cfn::Resource';
11 3 has Properties => (isa => 'Cfn::Resource::Properties::AWS::Batch::JobDefinition', 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 ▶ [ 'ap-northeast-1','ap-northeast-2','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','eu-central-1','eu-west-1','eu-west-2','eu-west-3','sa-east-1','us-east-1','us-east-2','us-west-1','us-west-2' ]
Subroutine supported_regions: called CC=1 SCAR=0.0
Pod undocumented
18 }
19 }
20  
21  
22  
23 3 subtype 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::VolumesHost',
24 as 'Cfn::Value';
25  
26 coerce 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::VolumesHost',
27 from 'HashRef',
28 via {
29 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
30 0 return $f
31 } else {
32 0 return Cfn::Resource::Properties::AWS::Batch::JobDefinition::VolumesHostValue->new( %$_ );
33 }
34 3 };
35  
36 3 package Cfn::Resource::Properties::AWS::Batch::JobDefinition::VolumesHostValue {
37 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
38 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
39 3 extends 'Cfn::Value::TypedValue';
40
41 3 has SourcePath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42 }
43 subtype 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::Device',
44 as 'Cfn::Value',
45 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
46 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
47  
48 coerce 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::Device',
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 die 'Only accepts functions';
55 }
56 },
57 from 'ArrayRef',
58 via {
59 Cfn::Value::Array->new(Value => [
60 map {
61 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Batch::JobDefinition::Device')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
62 } @$_
63 ]);
64 3 };
65  
66 3 subtype 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::Device',
67 as 'Cfn::Value';
68  
69 coerce 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::Device',
70 from 'HashRef',
71 via {
72 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
73 0 return $f
74 } else {
75 0 return Cfn::Resource::Properties::AWS::Batch::JobDefinition::DeviceValue->new( %$_ );
76 }
77 3 };
78  
79 3 package Cfn::Resource::Properties::AWS::Batch::JobDefinition::DeviceValue {
80 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
81 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
82 3 extends 'Cfn::Value::TypedValue';
83
84 3 has ContainerPath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
85 3 has HostPath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
86 3 has Permissions => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
87 }
88 subtype 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::Volumes',
89 as 'Cfn::Value',
90 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
91 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
92  
93 coerce 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::Volumes',
94 from 'HashRef',
95 via {
96 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
97 0 return $f
98 } else {
99 0 die 'Only accepts functions';
100 }
101 },
102 from 'ArrayRef',
103 via {
104 Cfn::Value::Array->new(Value => [
105 map {
106 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Batch::JobDefinition::Volumes')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
107 } @$_
108 ]);
109 3 };
110  
111 3 subtype 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::Volumes',
112 as 'Cfn::Value';
113  
114 coerce 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::Volumes',
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 return Cfn::Resource::Properties::AWS::Batch::JobDefinition::VolumesValue->new( %$_ );
121 }
122 3 };
123  
124 3 package Cfn::Resource::Properties::AWS::Batch::JobDefinition::VolumesValue {
125 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
126 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
127 3 extends 'Cfn::Value::TypedValue';
128
129 3 has Host => (isa => 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::VolumesHost', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
130 3 has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
131 }
132 subtype 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::Ulimit',
133 as 'Cfn::Value',
134 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
135 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
136  
137 coerce 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::Ulimit',
138 from 'HashRef',
139 via {
140 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
141 0 return $f
142 } else {
143 0 die 'Only accepts functions';
144 }
145 },
146 from 'ArrayRef',
147 via {
148 Cfn::Value::Array->new(Value => [
149 map {
150 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Batch::JobDefinition::Ulimit')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
151 } @$_
152 ]);
153 3 };
154  
155 3 subtype 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::Ulimit',
156 as 'Cfn::Value';
157  
158 coerce 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::Ulimit',
159 from 'HashRef',
160 via {
161 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
162 0 return $f
163 } else {
164 0 return Cfn::Resource::Properties::AWS::Batch::JobDefinition::UlimitValue->new( %$_ );
165 }
166 3 };
167  
168 3 package Cfn::Resource::Properties::AWS::Batch::JobDefinition::UlimitValue {
169 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
170 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
171 3 extends 'Cfn::Value::TypedValue';
172
173 3 has HardLimit => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
174 3 has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
175 3 has SoftLimit => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
176 }
177 subtype 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::ResourceRequirement',
178 as 'Cfn::Value',
179 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
180 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
181  
182 coerce 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::ResourceRequirement',
183 from 'HashRef',
184 via {
185 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
186 0 return $f
187 } else {
188 0 die 'Only accepts functions';
189 }
190 },
191 from 'ArrayRef',
192 via {
193 Cfn::Value::Array->new(Value => [
194 map {
195 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Batch::JobDefinition::ResourceRequirement')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
196 } @$_
197 ]);
198 3 };
199  
200 3 subtype 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::ResourceRequirement',
201 as 'Cfn::Value';
202  
203 coerce 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::ResourceRequirement',
204 from 'HashRef',
205 via {
206 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
207 0 return $f
208 } else {
209 0 return Cfn::Resource::Properties::AWS::Batch::JobDefinition::ResourceRequirementValue->new( %$_ );
210 }
211 3 };
212  
213 3 package Cfn::Resource::Properties::AWS::Batch::JobDefinition::ResourceRequirementValue {
214 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
215 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
216 3 extends 'Cfn::Value::TypedValue';
217
218 3 has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
219 3 has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
220 }
221 subtype 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::MountPoints',
222 as 'Cfn::Value',
223 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
224 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
225  
226 coerce 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::MountPoints',
227 from 'HashRef',
228 via {
229 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
230 0 return $f
231 } else {
232 0 die 'Only accepts functions';
233 }
234 },
235 from 'ArrayRef',
236 via {
237 Cfn::Value::Array->new(Value => [
238 map {
239 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Batch::JobDefinition::MountPoints')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
240 } @$_
241 ]);
242 3 };
243  
244 3 subtype 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::MountPoints',
245 as 'Cfn::Value';
246  
247 coerce 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::MountPoints',
248 from 'HashRef',
249 via {
250 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
251 0 return $f
252 } else {
253 0 return Cfn::Resource::Properties::AWS::Batch::JobDefinition::MountPointsValue->new( %$_ );
254 }
255 3 };
256  
257 3 package Cfn::Resource::Properties::AWS::Batch::JobDefinition::MountPointsValue {
258 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
259 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
260 3 extends 'Cfn::Value::TypedValue';
261
262 3 has ContainerPath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
263 3 has ReadOnly => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
264 3 has SourceVolume => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
265 }
266  
267 3 subtype 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::LinuxParameters',
268 as 'Cfn::Value';
269  
270 coerce 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::LinuxParameters',
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 return Cfn::Resource::Properties::AWS::Batch::JobDefinition::LinuxParametersValue->new( %$_ );
277 }
278 3 };
279  
280 3 package Cfn::Resource::Properties::AWS::Batch::JobDefinition::LinuxParametersValue {
281 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
282 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
283 3 extends 'Cfn::Value::TypedValue';
284
285 3 has Devices => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::Device', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
286 }
287 subtype 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::Environment',
288 as 'Cfn::Value',
289 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
290 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
291  
292 coerce 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::Environment',
293 from 'HashRef',
294 via {
295 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
296 0 return $f
297 } else {
298 0 die 'Only accepts functions';
299 }
300 },
301 from 'ArrayRef',
302 via {
303 Cfn::Value::Array->new(Value => [
304 map {
305 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Batch::JobDefinition::Environment')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
306 } @$_
307 ]);
308 3 };
309  
310 3 subtype 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::Environment',
311 as 'Cfn::Value';
312  
313 coerce 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::Environment',
314 from 'HashRef',
315 via {
316 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
317 0 return $f
318 } else {
319 0 return Cfn::Resource::Properties::AWS::Batch::JobDefinition::EnvironmentValue->new( %$_ );
320 }
321 3 };
322  
323 3 package Cfn::Resource::Properties::AWS::Batch::JobDefinition::EnvironmentValue {
324 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
325 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
326 3 extends 'Cfn::Value::TypedValue';
327
328 3 has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
329 3 has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
330 }
331  
332 3 subtype 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::ContainerProperties',
333 as 'Cfn::Value';
334  
335 coerce 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::ContainerProperties',
336 from 'HashRef',
337 via {
338 6 ▶ 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 6 6
339 0 return $f
340 } else {
341 6 return Cfn::Resource::Properties::AWS::Batch::JobDefinition::ContainerPropertiesValue->new( %$_ );
342 }
343 3 };
344  
345 3 package Cfn::Resource::Properties::AWS::Batch::JobDefinition::ContainerPropertiesValue {
346 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
347 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
348 3 extends 'Cfn::Value::TypedValue';
349
350 3 has Command => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
351 3 has Environment => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::Environment', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
352 3 has Image => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
353 3 has InstanceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
354 3 has JobRoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
355 3 has LinuxParameters => (isa => 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::LinuxParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
356 3 has Memory => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
357 3 has MountPoints => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::MountPoints', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
358 3 has Privileged => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
359 3 has ReadonlyRootFilesystem => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
360 3 has ResourceRequirements => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::ResourceRequirement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
361 3 has Ulimits => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::Ulimit', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
362 3 has User => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
363 3 has Vcpus => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
364 3 has Volumes => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::Volumes', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
365 }
366 subtype 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::NodeRangeProperty',
367 as 'Cfn::Value',
368 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
369 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
370  
371 coerce 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::NodeRangeProperty',
372 from 'HashRef',
373 via {
374 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
375 0 return $f
376 } else {
377 0 die 'Only accepts functions';
378 }
379 },
380 from 'ArrayRef',
381 via {
382 Cfn::Value::Array->new(Value => [
383 map {
384 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Batch::JobDefinition::NodeRangeProperty')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
385 } @$_
386 ]);
387 3 };
388  
389 3 subtype 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::NodeRangeProperty',
390 as 'Cfn::Value';
391  
392 coerce 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::NodeRangeProperty',
393 from 'HashRef',
394 via {
395 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
396 0 return $f
397 } else {
398 0 return Cfn::Resource::Properties::AWS::Batch::JobDefinition::NodeRangePropertyValue->new( %$_ );
399 }
400 3 };
401  
402 3 package Cfn::Resource::Properties::AWS::Batch::JobDefinition::NodeRangePropertyValue {
403 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
404 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
405 3 extends 'Cfn::Value::TypedValue';
406
407 3 has Container => (isa => 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::ContainerProperties', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
408 3 has TargetNodes => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
409 }
410  
411 3 subtype 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::Timeout',
412 as 'Cfn::Value';
413  
414 coerce 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::Timeout',
415 from 'HashRef',
416 via {
417 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
418 0 return $f
419 } else {
420 0 return Cfn::Resource::Properties::AWS::Batch::JobDefinition::TimeoutValue->new( %$_ );
421 }
422 3 };
423  
424 3 package Cfn::Resource::Properties::AWS::Batch::JobDefinition::TimeoutValue {
425 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
426 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
427 3 extends 'Cfn::Value::TypedValue';
428
429 3 has AttemptDurationSeconds => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
430 }
431  
432 3 subtype 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::RetryStrategy',
433 as 'Cfn::Value';
434  
435 coerce 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::RetryStrategy',
436 from 'HashRef',
437 via {
438 6 ▶ 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 6 6
439 0 return $f
440 } else {
441 6 return Cfn::Resource::Properties::AWS::Batch::JobDefinition::RetryStrategyValue->new( %$_ );
442 }
443 3 };
444  
445 3 package Cfn::Resource::Properties::AWS::Batch::JobDefinition::RetryStrategyValue {
446 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
447 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
448 3 extends 'Cfn::Value::TypedValue';
449
450 3 has Attempts => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
451 }
452  
453 3 subtype 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::NodeProperties',
454 as 'Cfn::Value';
455  
456 coerce 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::NodeProperties',
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 return Cfn::Resource::Properties::AWS::Batch::JobDefinition::NodePropertiesValue->new( %$_ );
463 }
464 3 };
465  
466 3 package Cfn::Resource::Properties::AWS::Batch::JobDefinition::NodePropertiesValue {
467 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
468 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
469 3 extends 'Cfn::Value::TypedValue';
470
471 3 has MainNode => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
472 3 has NodeRangeProperties => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::NodeRangeProperty', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
473 3 has NumNodes => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
474 }
475  
476 3 package Cfn::Resource::Properties::AWS::Batch::JobDefinition {
477 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
478 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
479 3 extends 'Cfn::Resource::Properties';
480
481 3 has ContainerProperties => (isa => 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::ContainerProperties', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
482 3 has JobDefinitionName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
483 3 has NodeProperties => (isa => 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::NodeProperties', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
484 3 has Parameters => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
485 3 has RetryStrategy => (isa => 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::RetryStrategy', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
486 3 has Timeout => (isa => 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::Timeout', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
487 3 has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
488 }
489  
490 3 1;
« Cfn/YAML/Schema.pm ↑ Summary Cfn/Resource/AWS/IoTAnalytics/Dataset.pm »