line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# AWS::Batch::JobDefinition generated from spec 5.0.0 |
2
|
3
|
|
|
3
|
|
2278
|
use Moose::Util::TypeConstraints; |
|
3
|
|
|
|
|
8
|
|
|
3
|
|
|
|
|
33
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
coerce 'Cfn::Resource::Properties::AWS::Batch::JobDefinition', |
5
|
|
|
|
|
|
|
from 'HashRef', |
6
|
|
|
|
|
|
|
via { Cfn::Resource::Properties::AWS::Batch::JobDefinition->new( %$_ ) }; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
package Cfn::Resource::AWS::Batch::JobDefinition { |
9
|
3
|
|
|
3
|
|
6400
|
use Moose; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
22
|
|
10
|
|
|
|
|
|
|
extends 'Cfn::Resource'; |
11
|
|
|
|
|
|
|
has Properties => (isa => 'Cfn::Resource::Properties::AWS::Batch::JobDefinition', is => 'rw', coerce => 1); |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub AttributeList { |
14
|
1
|
|
|
1
|
0
|
3
|
[ ] |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
sub supported_regions { |
17
|
1
|
|
|
1
|
0
|
1458
|
[ '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' ] |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
30
|
|
|
|
|
|
|
return $f |
31
|
|
|
|
|
|
|
} else { |
32
|
|
|
|
|
|
|
return Cfn::Resource::Properties::AWS::Batch::JobDefinition::VolumesHostValue->new( %$_ ); |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
}; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
package Cfn::Resource::Properties::AWS::Batch::JobDefinition::VolumesHostValue { |
37
|
3
|
|
|
3
|
|
20815
|
use Moose; |
|
3
|
|
|
|
|
10
|
|
|
3
|
|
|
|
|
14
|
|
38
|
3
|
|
|
3
|
|
18438
|
use MooseX::StrictConstructor; |
|
3
|
|
|
|
|
9
|
|
|
3
|
|
|
|
|
29
|
|
39
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, |
46
|
|
|
|
|
|
|
message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
coerce 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::Device', |
49
|
|
|
|
|
|
|
from 'HashRef', |
50
|
|
|
|
|
|
|
via { |
51
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
52
|
|
|
|
|
|
|
return $f |
53
|
|
|
|
|
|
|
} else { |
54
|
|
|
|
|
|
|
die 'Only accepts functions'; |
55
|
|
|
|
|
|
|
} |
56
|
|
|
|
|
|
|
}, |
57
|
|
|
|
|
|
|
from 'ArrayRef', |
58
|
|
|
|
|
|
|
via { |
59
|
|
|
|
|
|
|
Cfn::Value::Array->new(Value => [ |
60
|
|
|
|
|
|
|
map { |
61
|
|
|
|
|
|
|
Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Batch::JobDefinition::Device')->coerce($_) |
62
|
|
|
|
|
|
|
} @$_ |
63
|
|
|
|
|
|
|
]); |
64
|
|
|
|
|
|
|
}; |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
73
|
|
|
|
|
|
|
return $f |
74
|
|
|
|
|
|
|
} else { |
75
|
|
|
|
|
|
|
return Cfn::Resource::Properties::AWS::Batch::JobDefinition::DeviceValue->new( %$_ ); |
76
|
|
|
|
|
|
|
} |
77
|
|
|
|
|
|
|
}; |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
package Cfn::Resource::Properties::AWS::Batch::JobDefinition::DeviceValue { |
80
|
3
|
|
|
3
|
|
10717
|
use Moose; |
|
3
|
|
|
|
|
8
|
|
|
3
|
|
|
|
|
18
|
|
81
|
3
|
|
|
3
|
|
18494
|
use MooseX::StrictConstructor; |
|
3
|
|
|
|
|
10
|
|
|
3
|
|
|
|
|
14
|
|
82
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
has ContainerPath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
85
|
|
|
|
|
|
|
has HostPath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
86
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, |
91
|
|
|
|
|
|
|
message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
coerce 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::Volumes', |
94
|
|
|
|
|
|
|
from 'HashRef', |
95
|
|
|
|
|
|
|
via { |
96
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
97
|
|
|
|
|
|
|
return $f |
98
|
|
|
|
|
|
|
} else { |
99
|
|
|
|
|
|
|
die 'Only accepts functions'; |
100
|
|
|
|
|
|
|
} |
101
|
|
|
|
|
|
|
}, |
102
|
|
|
|
|
|
|
from 'ArrayRef', |
103
|
|
|
|
|
|
|
via { |
104
|
|
|
|
|
|
|
Cfn::Value::Array->new(Value => [ |
105
|
|
|
|
|
|
|
map { |
106
|
|
|
|
|
|
|
Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Batch::JobDefinition::Volumes')->coerce($_) |
107
|
|
|
|
|
|
|
} @$_ |
108
|
|
|
|
|
|
|
]); |
109
|
|
|
|
|
|
|
}; |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
118
|
|
|
|
|
|
|
return $f |
119
|
|
|
|
|
|
|
} else { |
120
|
|
|
|
|
|
|
return Cfn::Resource::Properties::AWS::Batch::JobDefinition::VolumesValue->new( %$_ ); |
121
|
|
|
|
|
|
|
} |
122
|
|
|
|
|
|
|
}; |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
package Cfn::Resource::Properties::AWS::Batch::JobDefinition::VolumesValue { |
125
|
3
|
|
|
3
|
|
9945
|
use Moose; |
|
3
|
|
|
|
|
9
|
|
|
3
|
|
|
|
|
21
|
|
126
|
3
|
|
|
3
|
|
18236
|
use MooseX::StrictConstructor; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
16
|
|
127
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
128
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
has Host => (isa => 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::VolumesHost', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
130
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, |
135
|
|
|
|
|
|
|
message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; |
136
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
coerce 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::Ulimit', |
138
|
|
|
|
|
|
|
from 'HashRef', |
139
|
|
|
|
|
|
|
via { |
140
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
141
|
|
|
|
|
|
|
return $f |
142
|
|
|
|
|
|
|
} else { |
143
|
|
|
|
|
|
|
die 'Only accepts functions'; |
144
|
|
|
|
|
|
|
} |
145
|
|
|
|
|
|
|
}, |
146
|
|
|
|
|
|
|
from 'ArrayRef', |
147
|
|
|
|
|
|
|
via { |
148
|
|
|
|
|
|
|
Cfn::Value::Array->new(Value => [ |
149
|
|
|
|
|
|
|
map { |
150
|
|
|
|
|
|
|
Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Batch::JobDefinition::Ulimit')->coerce($_) |
151
|
|
|
|
|
|
|
} @$_ |
152
|
|
|
|
|
|
|
]); |
153
|
|
|
|
|
|
|
}; |
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
162
|
|
|
|
|
|
|
return $f |
163
|
|
|
|
|
|
|
} else { |
164
|
|
|
|
|
|
|
return Cfn::Resource::Properties::AWS::Batch::JobDefinition::UlimitValue->new( %$_ ); |
165
|
|
|
|
|
|
|
} |
166
|
|
|
|
|
|
|
}; |
167
|
|
|
|
|
|
|
|
168
|
|
|
|
|
|
|
package Cfn::Resource::Properties::AWS::Batch::JobDefinition::UlimitValue { |
169
|
3
|
|
|
3
|
|
9948
|
use Moose; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
17
|
|
170
|
3
|
|
|
3
|
|
18842
|
use MooseX::StrictConstructor; |
|
3
|
|
|
|
|
9
|
|
|
3
|
|
|
|
|
19
|
|
171
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
172
|
|
|
|
|
|
|
|
173
|
|
|
|
|
|
|
has HardLimit => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
174
|
|
|
|
|
|
|
has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
175
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, |
180
|
|
|
|
|
|
|
message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; |
181
|
|
|
|
|
|
|
|
182
|
|
|
|
|
|
|
coerce 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::ResourceRequirement', |
183
|
|
|
|
|
|
|
from 'HashRef', |
184
|
|
|
|
|
|
|
via { |
185
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
186
|
|
|
|
|
|
|
return $f |
187
|
|
|
|
|
|
|
} else { |
188
|
|
|
|
|
|
|
die 'Only accepts functions'; |
189
|
|
|
|
|
|
|
} |
190
|
|
|
|
|
|
|
}, |
191
|
|
|
|
|
|
|
from 'ArrayRef', |
192
|
|
|
|
|
|
|
via { |
193
|
|
|
|
|
|
|
Cfn::Value::Array->new(Value => [ |
194
|
|
|
|
|
|
|
map { |
195
|
|
|
|
|
|
|
Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Batch::JobDefinition::ResourceRequirement')->coerce($_) |
196
|
|
|
|
|
|
|
} @$_ |
197
|
|
|
|
|
|
|
]); |
198
|
|
|
|
|
|
|
}; |
199
|
|
|
|
|
|
|
|
200
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
207
|
|
|
|
|
|
|
return $f |
208
|
|
|
|
|
|
|
} else { |
209
|
|
|
|
|
|
|
return Cfn::Resource::Properties::AWS::Batch::JobDefinition::ResourceRequirementValue->new( %$_ ); |
210
|
|
|
|
|
|
|
} |
211
|
|
|
|
|
|
|
}; |
212
|
|
|
|
|
|
|
|
213
|
|
|
|
|
|
|
package Cfn::Resource::Properties::AWS::Batch::JobDefinition::ResourceRequirementValue { |
214
|
3
|
|
|
3
|
|
10069
|
use Moose; |
|
3
|
|
|
|
|
8
|
|
|
3
|
|
|
|
|
15
|
|
215
|
3
|
|
|
3
|
|
18592
|
use MooseX::StrictConstructor; |
|
3
|
|
|
|
|
9
|
|
|
3
|
|
|
|
|
21
|
|
216
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
217
|
|
|
|
|
|
|
|
218
|
|
|
|
|
|
|
has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
219
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, |
224
|
|
|
|
|
|
|
message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; |
225
|
|
|
|
|
|
|
|
226
|
|
|
|
|
|
|
coerce 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::MountPoints', |
227
|
|
|
|
|
|
|
from 'HashRef', |
228
|
|
|
|
|
|
|
via { |
229
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
230
|
|
|
|
|
|
|
return $f |
231
|
|
|
|
|
|
|
} else { |
232
|
|
|
|
|
|
|
die 'Only accepts functions'; |
233
|
|
|
|
|
|
|
} |
234
|
|
|
|
|
|
|
}, |
235
|
|
|
|
|
|
|
from 'ArrayRef', |
236
|
|
|
|
|
|
|
via { |
237
|
|
|
|
|
|
|
Cfn::Value::Array->new(Value => [ |
238
|
|
|
|
|
|
|
map { |
239
|
|
|
|
|
|
|
Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Batch::JobDefinition::MountPoints')->coerce($_) |
240
|
|
|
|
|
|
|
} @$_ |
241
|
|
|
|
|
|
|
]); |
242
|
|
|
|
|
|
|
}; |
243
|
|
|
|
|
|
|
|
244
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
251
|
|
|
|
|
|
|
return $f |
252
|
|
|
|
|
|
|
} else { |
253
|
|
|
|
|
|
|
return Cfn::Resource::Properties::AWS::Batch::JobDefinition::MountPointsValue->new( %$_ ); |
254
|
|
|
|
|
|
|
} |
255
|
|
|
|
|
|
|
}; |
256
|
|
|
|
|
|
|
|
257
|
|
|
|
|
|
|
package Cfn::Resource::Properties::AWS::Batch::JobDefinition::MountPointsValue { |
258
|
3
|
|
|
3
|
|
10191
|
use Moose; |
|
3
|
|
|
|
|
13
|
|
|
3
|
|
|
|
|
16
|
|
259
|
3
|
|
|
3
|
|
18659
|
use MooseX::StrictConstructor; |
|
3
|
|
|
|
|
9
|
|
|
3
|
|
|
|
|
16
|
|
260
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
261
|
|
|
|
|
|
|
|
262
|
|
|
|
|
|
|
has ContainerPath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
263
|
|
|
|
|
|
|
has ReadOnly => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
264
|
|
|
|
|
|
|
has SourceVolume => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
265
|
|
|
|
|
|
|
} |
266
|
|
|
|
|
|
|
|
267
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
274
|
|
|
|
|
|
|
return $f |
275
|
|
|
|
|
|
|
} else { |
276
|
|
|
|
|
|
|
return Cfn::Resource::Properties::AWS::Batch::JobDefinition::LinuxParametersValue->new( %$_ ); |
277
|
|
|
|
|
|
|
} |
278
|
|
|
|
|
|
|
}; |
279
|
|
|
|
|
|
|
|
280
|
|
|
|
|
|
|
package Cfn::Resource::Properties::AWS::Batch::JobDefinition::LinuxParametersValue { |
281
|
3
|
|
|
3
|
|
9430
|
use Moose; |
|
3
|
|
|
|
|
8
|
|
|
3
|
|
|
|
|
15
|
|
282
|
3
|
|
|
3
|
|
18347
|
use MooseX::StrictConstructor; |
|
3
|
|
|
|
|
9
|
|
|
3
|
|
|
|
|
18
|
|
283
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
284
|
|
|
|
|
|
|
|
285
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, |
290
|
|
|
|
|
|
|
message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; |
291
|
|
|
|
|
|
|
|
292
|
|
|
|
|
|
|
coerce 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::Environment', |
293
|
|
|
|
|
|
|
from 'HashRef', |
294
|
|
|
|
|
|
|
via { |
295
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
296
|
|
|
|
|
|
|
return $f |
297
|
|
|
|
|
|
|
} else { |
298
|
|
|
|
|
|
|
die 'Only accepts functions'; |
299
|
|
|
|
|
|
|
} |
300
|
|
|
|
|
|
|
}, |
301
|
|
|
|
|
|
|
from 'ArrayRef', |
302
|
|
|
|
|
|
|
via { |
303
|
|
|
|
|
|
|
Cfn::Value::Array->new(Value => [ |
304
|
|
|
|
|
|
|
map { |
305
|
|
|
|
|
|
|
Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Batch::JobDefinition::Environment')->coerce($_) |
306
|
|
|
|
|
|
|
} @$_ |
307
|
|
|
|
|
|
|
]); |
308
|
|
|
|
|
|
|
}; |
309
|
|
|
|
|
|
|
|
310
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
317
|
|
|
|
|
|
|
return $f |
318
|
|
|
|
|
|
|
} else { |
319
|
|
|
|
|
|
|
return Cfn::Resource::Properties::AWS::Batch::JobDefinition::EnvironmentValue->new( %$_ ); |
320
|
|
|
|
|
|
|
} |
321
|
|
|
|
|
|
|
}; |
322
|
|
|
|
|
|
|
|
323
|
|
|
|
|
|
|
package Cfn::Resource::Properties::AWS::Batch::JobDefinition::EnvironmentValue { |
324
|
3
|
|
|
3
|
|
9843
|
use Moose; |
|
3
|
|
|
|
|
11
|
|
|
3
|
|
|
|
|
26
|
|
325
|
3
|
|
|
3
|
|
19229
|
use MooseX::StrictConstructor; |
|
3
|
|
|
|
|
8
|
|
|
3
|
|
|
|
|
16
|
|
326
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
327
|
|
|
|
|
|
|
|
328
|
|
|
|
|
|
|
has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
329
|
|
|
|
|
|
|
has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
330
|
|
|
|
|
|
|
} |
331
|
|
|
|
|
|
|
|
332
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
339
|
|
|
|
|
|
|
return $f |
340
|
|
|
|
|
|
|
} else { |
341
|
|
|
|
|
|
|
return Cfn::Resource::Properties::AWS::Batch::JobDefinition::ContainerPropertiesValue->new( %$_ ); |
342
|
|
|
|
|
|
|
} |
343
|
|
|
|
|
|
|
}; |
344
|
|
|
|
|
|
|
|
345
|
|
|
|
|
|
|
package Cfn::Resource::Properties::AWS::Batch::JobDefinition::ContainerPropertiesValue { |
346
|
3
|
|
|
3
|
|
9521
|
use Moose; |
|
3
|
|
|
|
|
19
|
|
|
3
|
|
|
|
|
17
|
|
347
|
3
|
|
|
3
|
|
18643
|
use MooseX::StrictConstructor; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
19
|
|
348
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
349
|
|
|
|
|
|
|
|
350
|
|
|
|
|
|
|
has Command => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
351
|
|
|
|
|
|
|
has Environment => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::Environment', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
352
|
|
|
|
|
|
|
has Image => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
353
|
|
|
|
|
|
|
has InstanceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
354
|
|
|
|
|
|
|
has JobRoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
355
|
|
|
|
|
|
|
has LinuxParameters => (isa => 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::LinuxParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
356
|
|
|
|
|
|
|
has Memory => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
357
|
|
|
|
|
|
|
has MountPoints => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::MountPoints', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
358
|
|
|
|
|
|
|
has Privileged => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
359
|
|
|
|
|
|
|
has ReadonlyRootFilesystem => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
360
|
|
|
|
|
|
|
has ResourceRequirements => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::ResourceRequirement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
361
|
|
|
|
|
|
|
has Ulimits => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::Ulimit', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
362
|
|
|
|
|
|
|
has User => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
363
|
|
|
|
|
|
|
has Vcpus => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
364
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, |
369
|
|
|
|
|
|
|
message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; |
370
|
|
|
|
|
|
|
|
371
|
|
|
|
|
|
|
coerce 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::NodeRangeProperty', |
372
|
|
|
|
|
|
|
from 'HashRef', |
373
|
|
|
|
|
|
|
via { |
374
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
375
|
|
|
|
|
|
|
return $f |
376
|
|
|
|
|
|
|
} else { |
377
|
|
|
|
|
|
|
die 'Only accepts functions'; |
378
|
|
|
|
|
|
|
} |
379
|
|
|
|
|
|
|
}, |
380
|
|
|
|
|
|
|
from 'ArrayRef', |
381
|
|
|
|
|
|
|
via { |
382
|
|
|
|
|
|
|
Cfn::Value::Array->new(Value => [ |
383
|
|
|
|
|
|
|
map { |
384
|
|
|
|
|
|
|
Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Batch::JobDefinition::NodeRangeProperty')->coerce($_) |
385
|
|
|
|
|
|
|
} @$_ |
386
|
|
|
|
|
|
|
]); |
387
|
|
|
|
|
|
|
}; |
388
|
|
|
|
|
|
|
|
389
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
396
|
|
|
|
|
|
|
return $f |
397
|
|
|
|
|
|
|
} else { |
398
|
|
|
|
|
|
|
return Cfn::Resource::Properties::AWS::Batch::JobDefinition::NodeRangePropertyValue->new( %$_ ); |
399
|
|
|
|
|
|
|
} |
400
|
|
|
|
|
|
|
}; |
401
|
|
|
|
|
|
|
|
402
|
|
|
|
|
|
|
package Cfn::Resource::Properties::AWS::Batch::JobDefinition::NodeRangePropertyValue { |
403
|
3
|
|
|
3
|
|
10748
|
use Moose; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
15
|
|
404
|
3
|
|
|
3
|
|
18925
|
use MooseX::StrictConstructor; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
14
|
|
405
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
406
|
|
|
|
|
|
|
|
407
|
|
|
|
|
|
|
has Container => (isa => 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::ContainerProperties', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
408
|
|
|
|
|
|
|
has TargetNodes => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
409
|
|
|
|
|
|
|
} |
410
|
|
|
|
|
|
|
|
411
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
418
|
|
|
|
|
|
|
return $f |
419
|
|
|
|
|
|
|
} else { |
420
|
|
|
|
|
|
|
return Cfn::Resource::Properties::AWS::Batch::JobDefinition::TimeoutValue->new( %$_ ); |
421
|
|
|
|
|
|
|
} |
422
|
|
|
|
|
|
|
}; |
423
|
|
|
|
|
|
|
|
424
|
|
|
|
|
|
|
package Cfn::Resource::Properties::AWS::Batch::JobDefinition::TimeoutValue { |
425
|
3
|
|
|
3
|
|
9630
|
use Moose; |
|
3
|
|
|
|
|
8
|
|
|
3
|
|
|
|
|
15
|
|
426
|
3
|
|
|
3
|
|
19680
|
use MooseX::StrictConstructor; |
|
3
|
|
|
|
|
10
|
|
|
3
|
|
|
|
|
19
|
|
427
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
428
|
|
|
|
|
|
|
|
429
|
|
|
|
|
|
|
has AttemptDurationSeconds => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
430
|
|
|
|
|
|
|
} |
431
|
|
|
|
|
|
|
|
432
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
439
|
|
|
|
|
|
|
return $f |
440
|
|
|
|
|
|
|
} else { |
441
|
|
|
|
|
|
|
return Cfn::Resource::Properties::AWS::Batch::JobDefinition::RetryStrategyValue->new( %$_ ); |
442
|
|
|
|
|
|
|
} |
443
|
|
|
|
|
|
|
}; |
444
|
|
|
|
|
|
|
|
445
|
|
|
|
|
|
|
package Cfn::Resource::Properties::AWS::Batch::JobDefinition::RetryStrategyValue { |
446
|
3
|
|
|
3
|
|
9344
|
use Moose; |
|
3
|
|
|
|
|
12
|
|
|
3
|
|
|
|
|
16
|
|
447
|
3
|
|
|
3
|
|
18639
|
use MooseX::StrictConstructor; |
|
3
|
|
|
|
|
9
|
|
|
3
|
|
|
|
|
14
|
|
448
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
449
|
|
|
|
|
|
|
|
450
|
|
|
|
|
|
|
has Attempts => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
451
|
|
|
|
|
|
|
} |
452
|
|
|
|
|
|
|
|
453
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
460
|
|
|
|
|
|
|
return $f |
461
|
|
|
|
|
|
|
} else { |
462
|
|
|
|
|
|
|
return Cfn::Resource::Properties::AWS::Batch::JobDefinition::NodePropertiesValue->new( %$_ ); |
463
|
|
|
|
|
|
|
} |
464
|
|
|
|
|
|
|
}; |
465
|
|
|
|
|
|
|
|
466
|
|
|
|
|
|
|
package Cfn::Resource::Properties::AWS::Batch::JobDefinition::NodePropertiesValue { |
467
|
3
|
|
|
3
|
|
9964
|
use Moose; |
|
3
|
|
|
|
|
9
|
|
|
3
|
|
|
|
|
41
|
|
468
|
3
|
|
|
3
|
|
19738
|
use MooseX::StrictConstructor; |
|
3
|
|
|
|
|
10
|
|
|
3
|
|
|
|
|
16
|
|
469
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
470
|
|
|
|
|
|
|
|
471
|
|
|
|
|
|
|
has MainNode => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
472
|
|
|
|
|
|
|
has NodeRangeProperties => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::NodeRangeProperty', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
473
|
|
|
|
|
|
|
has NumNodes => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
474
|
|
|
|
|
|
|
} |
475
|
|
|
|
|
|
|
|
476
|
|
|
|
|
|
|
package Cfn::Resource::Properties::AWS::Batch::JobDefinition { |
477
|
3
|
|
|
3
|
|
9460
|
use Moose; |
|
3
|
|
|
|
|
8
|
|
|
3
|
|
|
|
|
15
|
|
478
|
3
|
|
|
3
|
|
18724
|
use MooseX::StrictConstructor; |
|
3
|
|
|
|
|
9
|
|
|
3
|
|
|
|
|
18
|
|
479
|
|
|
|
|
|
|
extends 'Cfn::Resource::Properties'; |
480
|
|
|
|
|
|
|
|
481
|
|
|
|
|
|
|
has ContainerProperties => (isa => 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::ContainerProperties', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
482
|
|
|
|
|
|
|
has JobDefinitionName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); |
483
|
|
|
|
|
|
|
has NodeProperties => (isa => 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::NodeProperties', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
484
|
|
|
|
|
|
|
has Parameters => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
485
|
|
|
|
|
|
|
has RetryStrategy => (isa => 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::RetryStrategy', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
486
|
|
|
|
|
|
|
has Timeout => (isa => 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::Timeout', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
487
|
|
|
|
|
|
|
has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
488
|
|
|
|
|
|
|
} |
489
|
|
|
|
|
|
|
|
490
|
|
|
|
|
|
|
1; |