| 1 | # AWS::Batch::JobDefinition generated from spec 34.0.0 | ||||||||||
| 2 | 2 | ▶ | 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 | 2 | package Cfn::Resource::AWS::Batch::JobDefinition { | |||||||||
| 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::Batch::JobDefinition', is => 'rw', coerce => 1); | |||||||||
| 12 | |||||||||||
| 13 | 0 | ▶ | sub AttributeList { | ||||||||
|
Subroutine
AttributeList: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 14 | 0 | [ ] | |||||||||
| 15 | } | ||||||||||
| 16 | 0 | ▶ | sub supported_regions { | ||||||||
|
Subroutine
supported_regions: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 17 | 0 | [ 'af-south-1','ap-northeast-1','ap-northeast-2','ap-northeast-3','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 | 2 | subtype 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::AuthorizationConfig', | |||||||||
| 24 | as 'Cfn::Value'; | ||||||||||
| 25 | |||||||||||
| 26 | coerce 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::AuthorizationConfig', | ||||||||||
| 27 | from 'HashRef', | ||||||||||
| 28 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 29 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 30 | 0 | return $f | |||||||||
| 31 | } else { | ||||||||||
| 32 | 0 | return Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::AuthorizationConfig->new( %$_ ); | |||||||||
| 33 | } | ||||||||||
| 34 | 2 | }; | |||||||||
| 35 | |||||||||||
| 36 | 2 | package Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::AuthorizationConfig { | |||||||||
| 37 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 38 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 39 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 40 | |||||||||||
| 41 | 2 | has AccessPointId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 42 | 2 | has Iam => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 43 | } | ||||||||||
| 44 | |||||||||||
| 45 | 2 | subtype 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::VolumesHost', | |||||||||
| 46 | as 'Cfn::Value'; | ||||||||||
| 47 | |||||||||||
| 48 | coerce 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::VolumesHost', | ||||||||||
| 49 | from 'HashRef', | ||||||||||
| 50 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 51 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 52 | 0 | return $f | |||||||||
| 53 | } else { | ||||||||||
| 54 | 0 | return Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::VolumesHost->new( %$_ ); | |||||||||
| 55 | } | ||||||||||
| 56 | 2 | }; | |||||||||
| 57 | |||||||||||
| 58 | 2 | package Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::VolumesHost { | |||||||||
| 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 SourcePath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 64 | } | ||||||||||
| 65 | subtype 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::Tmpfs', | ||||||||||
| 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
| |||||||||||
| 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::Batch::JobDefinition::Tmpfs', | ||||||||||
| 71 | from 'HashRef', | ||||||||||
| 72 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 73 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 74 | 0 | return $f | |||||||||
| 75 | } else { | ||||||||||
| 76 | 0 | die 'Only accepts functions'; | |||||||||
| 77 | } | ||||||||||
| 78 | }, | ||||||||||
| 79 | from 'ArrayRef', | ||||||||||
| 80 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 81 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 82 | map { | ||||||||||
| 83 | 0 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Batch::JobDefinition::Tmpfs')->coerce($_) | |||||||||
| 84 | } @$_ | ||||||||||
| 85 | ]); | ||||||||||
| 86 | 2 | }; | |||||||||
| 87 | |||||||||||
| 88 | 2 | subtype 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::Tmpfs', | |||||||||
| 89 | as 'Cfn::Value'; | ||||||||||
| 90 | |||||||||||
| 91 | coerce 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::Tmpfs', | ||||||||||
| 92 | from 'HashRef', | ||||||||||
| 93 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 94 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 95 | 0 | return $f | |||||||||
| 96 | } else { | ||||||||||
| 97 | 0 | return Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::Tmpfs->new( %$_ ); | |||||||||
| 98 | } | ||||||||||
| 99 | 2 | }; | |||||||||
| 100 | |||||||||||
| 101 | 2 | package Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::Tmpfs { | |||||||||
| 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 ContainerPath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 107 | 2 | has MountOptions => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 108 | 2 | has Size => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 109 | } | ||||||||||
| 110 | subtype 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::Secret', | ||||||||||
| 111 | as 'Cfn::Value', | ||||||||||
| 112 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 113 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 114 | |||||||||||
| 115 | coerce 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::Secret', | ||||||||||
| 116 | from 'HashRef', | ||||||||||
| 117 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 118 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 119 | 0 | return $f | |||||||||
| 120 | } else { | ||||||||||
| 121 | 0 | die 'Only accepts functions'; | |||||||||
| 122 | } | ||||||||||
| 123 | }, | ||||||||||
| 124 | from 'ArrayRef', | ||||||||||
| 125 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 126 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 127 | map { | ||||||||||
| 128 | 0 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Batch::JobDefinition::Secret')->coerce($_) | |||||||||
| 129 | } @$_ | ||||||||||
| 130 | ]); | ||||||||||
| 131 | 2 | }; | |||||||||
| 132 | |||||||||||
| 133 | 2 | subtype 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::Secret', | |||||||||
| 134 | as 'Cfn::Value'; | ||||||||||
| 135 | |||||||||||
| 136 | coerce 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::Secret', | ||||||||||
| 137 | from 'HashRef', | ||||||||||
| 138 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 139 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 140 | 0 | return $f | |||||||||
| 141 | } else { | ||||||||||
| 142 | 0 | return Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::Secret->new( %$_ ); | |||||||||
| 143 | } | ||||||||||
| 144 | 2 | }; | |||||||||
| 145 | |||||||||||
| 146 | 2 | package Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::Secret { | |||||||||
| 147 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 148 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 149 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 150 | |||||||||||
| 151 | 2 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 152 | 2 | has ValueFrom => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 153 | } | ||||||||||
| 154 | |||||||||||
| 155 | 2 | subtype 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::EfsVolumeConfiguration', | |||||||||
| 156 | as 'Cfn::Value'; | ||||||||||
| 157 | |||||||||||
| 158 | coerce 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::EfsVolumeConfiguration', | ||||||||||
| 159 | from 'HashRef', | ||||||||||
| 160 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 161 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 162 | 0 | return $f | |||||||||
| 163 | } else { | ||||||||||
| 164 | 0 | return Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::EfsVolumeConfiguration->new( %$_ ); | |||||||||
| 165 | } | ||||||||||
| 166 | 2 | }; | |||||||||
| 167 | |||||||||||
| 168 | 2 | package Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::EfsVolumeConfiguration { | |||||||||
| 169 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 170 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 171 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 172 | |||||||||||
| 173 | 2 | has AuthorizationConfig => (isa => 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::AuthorizationConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 174 | 2 | has FileSystemId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 175 | 2 | has RootDirectory => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 176 | 2 | has TransitEncryption => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 177 | 2 | has TransitEncryptionPort => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 178 | } | ||||||||||
| 179 | subtype 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::Device', | ||||||||||
| 180 | as 'Cfn::Value', | ||||||||||
| 181 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 182 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 183 | |||||||||||
| 184 | coerce 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::Device', | ||||||||||
| 185 | from 'HashRef', | ||||||||||
| 186 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 187 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 188 | 0 | return $f | |||||||||
| 189 | } else { | ||||||||||
| 190 | 0 | die 'Only accepts functions'; | |||||||||
| 191 | } | ||||||||||
| 192 | }, | ||||||||||
| 193 | from 'ArrayRef', | ||||||||||
| 194 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 195 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 196 | map { | ||||||||||
| 197 | 0 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Batch::JobDefinition::Device')->coerce($_) | |||||||||
| 198 | } @$_ | ||||||||||
| 199 | ]); | ||||||||||
| 200 | 2 | }; | |||||||||
| 201 | |||||||||||
| 202 | 2 | subtype 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::Device', | |||||||||
| 203 | as 'Cfn::Value'; | ||||||||||
| 204 | |||||||||||
| 205 | coerce 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::Device', | ||||||||||
| 206 | from 'HashRef', | ||||||||||
| 207 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 208 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 209 | 0 | return $f | |||||||||
| 210 | } else { | ||||||||||
| 211 | 0 | return Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::Device->new( %$_ ); | |||||||||
| 212 | } | ||||||||||
| 213 | 2 | }; | |||||||||
| 214 | |||||||||||
| 215 | 2 | package Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::Device { | |||||||||
| 216 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 217 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 218 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 219 | |||||||||||
| 220 | 2 | has ContainerPath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 221 | 2 | has HostPath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 222 | 2 | has Permissions => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 223 | } | ||||||||||
| 224 | subtype 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::Volumes', | ||||||||||
| 225 | as 'Cfn::Value', | ||||||||||
| 226 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 227 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 228 | |||||||||||
| 229 | coerce 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::Volumes', | ||||||||||
| 230 | from 'HashRef', | ||||||||||
| 231 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 232 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 233 | 0 | return $f | |||||||||
| 234 | } else { | ||||||||||
| 235 | 0 | die 'Only accepts functions'; | |||||||||
| 236 | } | ||||||||||
| 237 | }, | ||||||||||
| 238 | from 'ArrayRef', | ||||||||||
| 239 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 240 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 241 | map { | ||||||||||
| 242 | 0 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Batch::JobDefinition::Volumes')->coerce($_) | |||||||||
| 243 | } @$_ | ||||||||||
| 244 | ]); | ||||||||||
| 245 | 2 | }; | |||||||||
| 246 | |||||||||||
| 247 | 2 | subtype 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::Volumes', | |||||||||
| 248 | as 'Cfn::Value'; | ||||||||||
| 249 | |||||||||||
| 250 | coerce 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::Volumes', | ||||||||||
| 251 | from 'HashRef', | ||||||||||
| 252 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 253 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 254 | 0 | return $f | |||||||||
| 255 | } else { | ||||||||||
| 256 | 0 | return Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::Volumes->new( %$_ ); | |||||||||
| 257 | } | ||||||||||
| 258 | 2 | }; | |||||||||
| 259 | |||||||||||
| 260 | 2 | package Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::Volumes { | |||||||||
| 261 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 262 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 263 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 264 | |||||||||||
| 265 | 2 | has EfsVolumeConfiguration => (isa => 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::EfsVolumeConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 266 | 2 | has Host => (isa => 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::VolumesHost', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 267 | 2 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 268 | } | ||||||||||
| 269 | subtype 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::Ulimit', | ||||||||||
| 270 | as 'Cfn::Value', | ||||||||||
| 271 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 272 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 273 | |||||||||||
| 274 | coerce 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::Ulimit', | ||||||||||
| 275 | from 'HashRef', | ||||||||||
| 276 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 277 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 278 | 0 | return $f | |||||||||
| 279 | } else { | ||||||||||
| 280 | 0 | die 'Only accepts functions'; | |||||||||
| 281 | } | ||||||||||
| 282 | }, | ||||||||||
| 283 | from 'ArrayRef', | ||||||||||
| 284 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 285 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 286 | map { | ||||||||||
| 287 | 0 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Batch::JobDefinition::Ulimit')->coerce($_) | |||||||||
| 288 | } @$_ | ||||||||||
| 289 | ]); | ||||||||||
| 290 | 2 | }; | |||||||||
| 291 | |||||||||||
| 292 | 2 | subtype 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::Ulimit', | |||||||||
| 293 | as 'Cfn::Value'; | ||||||||||
| 294 | |||||||||||
| 295 | coerce 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::Ulimit', | ||||||||||
| 296 | from 'HashRef', | ||||||||||
| 297 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 298 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 299 | 0 | return $f | |||||||||
| 300 | } else { | ||||||||||
| 301 | 0 | return Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::Ulimit->new( %$_ ); | |||||||||
| 302 | } | ||||||||||
| 303 | 2 | }; | |||||||||
| 304 | |||||||||||
| 305 | 2 | package Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::Ulimit { | |||||||||
| 306 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 307 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 308 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 309 | |||||||||||
| 310 | 2 | has HardLimit => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 311 | 2 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 312 | 2 | has SoftLimit => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 313 | } | ||||||||||
| 314 | subtype 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::ResourceRequirement', | ||||||||||
| 315 | as 'Cfn::Value', | ||||||||||
| 316 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 317 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 318 | |||||||||||
| 319 | coerce 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::ResourceRequirement', | ||||||||||
| 320 | from 'HashRef', | ||||||||||
| 321 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 322 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 323 | 0 | return $f | |||||||||
| 324 | } else { | ||||||||||
| 325 | 0 | die 'Only accepts functions'; | |||||||||
| 326 | } | ||||||||||
| 327 | }, | ||||||||||
| 328 | from 'ArrayRef', | ||||||||||
| 329 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 330 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 331 | map { | ||||||||||
| 332 | 0 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Batch::JobDefinition::ResourceRequirement')->coerce($_) | |||||||||
| 333 | } @$_ | ||||||||||
| 334 | ]); | ||||||||||
| 335 | 2 | }; | |||||||||
| 336 | |||||||||||
| 337 | 2 | subtype 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::ResourceRequirement', | |||||||||
| 338 | as 'Cfn::Value'; | ||||||||||
| 339 | |||||||||||
| 340 | coerce 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::ResourceRequirement', | ||||||||||
| 341 | from 'HashRef', | ||||||||||
| 342 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 343 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 344 | 0 | return $f | |||||||||
| 345 | } else { | ||||||||||
| 346 | 0 | return Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::ResourceRequirement->new( %$_ ); | |||||||||
| 347 | } | ||||||||||
| 348 | 2 | }; | |||||||||
| 349 | |||||||||||
| 350 | 2 | package Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::ResourceRequirement { | |||||||||
| 351 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 352 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 353 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 354 | |||||||||||
| 355 | 2 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 356 | 2 | has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 357 | } | ||||||||||
| 358 | |||||||||||
| 359 | 2 | subtype 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::NetworkConfiguration', | |||||||||
| 360 | as 'Cfn::Value'; | ||||||||||
| 361 | |||||||||||
| 362 | coerce 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::NetworkConfiguration', | ||||||||||
| 363 | from 'HashRef', | ||||||||||
| 364 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 365 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 366 | 0 | return $f | |||||||||
| 367 | } else { | ||||||||||
| 368 | 0 | return Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::NetworkConfiguration->new( %$_ ); | |||||||||
| 369 | } | ||||||||||
| 370 | 2 | }; | |||||||||
| 371 | |||||||||||
| 372 | 2 | package Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::NetworkConfiguration { | |||||||||
| 373 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 374 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 375 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 376 | |||||||||||
| 377 | 2 | has AssignPublicIp => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 378 | } | ||||||||||
| 379 | subtype 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::MountPoints', | ||||||||||
| 380 | as 'Cfn::Value', | ||||||||||
| 381 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 382 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 383 | |||||||||||
| 384 | coerce 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::MountPoints', | ||||||||||
| 385 | from 'HashRef', | ||||||||||
| 386 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 387 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 388 | 0 | return $f | |||||||||
| 389 | } else { | ||||||||||
| 390 | 0 | die 'Only accepts functions'; | |||||||||
| 391 | } | ||||||||||
| 392 | }, | ||||||||||
| 393 | from 'ArrayRef', | ||||||||||
| 394 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 395 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 396 | map { | ||||||||||
| 397 | 0 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Batch::JobDefinition::MountPoints')->coerce($_) | |||||||||
| 398 | } @$_ | ||||||||||
| 399 | ]); | ||||||||||
| 400 | 2 | }; | |||||||||
| 401 | |||||||||||
| 402 | 2 | subtype 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::MountPoints', | |||||||||
| 403 | as 'Cfn::Value'; | ||||||||||
| 404 | |||||||||||
| 405 | coerce 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::MountPoints', | ||||||||||
| 406 | from 'HashRef', | ||||||||||
| 407 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 408 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 409 | 0 | return $f | |||||||||
| 410 | } else { | ||||||||||
| 411 | 0 | return Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::MountPoints->new( %$_ ); | |||||||||
| 412 | } | ||||||||||
| 413 | 2 | }; | |||||||||
| 414 | |||||||||||
| 415 | 2 | package Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::MountPoints { | |||||||||
| 416 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 417 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 418 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 419 | |||||||||||
| 420 | 2 | has ContainerPath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 421 | 2 | has ReadOnly => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 422 | 2 | has SourceVolume => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 423 | } | ||||||||||
| 424 | |||||||||||
| 425 | 2 | subtype 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::LogConfiguration', | |||||||||
| 426 | as 'Cfn::Value'; | ||||||||||
| 427 | |||||||||||
| 428 | coerce 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::LogConfiguration', | ||||||||||
| 429 | from 'HashRef', | ||||||||||
| 430 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 431 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 432 | 0 | return $f | |||||||||
| 433 | } else { | ||||||||||
| 434 | 0 | return Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::LogConfiguration->new( %$_ ); | |||||||||
| 435 | } | ||||||||||
| 436 | 2 | }; | |||||||||
| 437 | |||||||||||
| 438 | 2 | package Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::LogConfiguration { | |||||||||
| 439 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 440 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 441 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 442 | |||||||||||
| 443 | 2 | has LogDriver => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 444 | 2 | has Options => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 445 | 2 | has SecretOptions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::Secret', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 446 | } | ||||||||||
| 447 | |||||||||||
| 448 | 2 | subtype 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::LinuxParameters', | |||||||||
| 449 | as 'Cfn::Value'; | ||||||||||
| 450 | |||||||||||
| 451 | coerce 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::LinuxParameters', | ||||||||||
| 452 | from 'HashRef', | ||||||||||
| 453 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 454 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 455 | 0 | return $f | |||||||||
| 456 | } else { | ||||||||||
| 457 | 0 | return Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::LinuxParameters->new( %$_ ); | |||||||||
| 458 | } | ||||||||||
| 459 | 2 | }; | |||||||||
| 460 | |||||||||||
| 461 | 2 | package Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::LinuxParameters { | |||||||||
| 462 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 463 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 464 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 465 | |||||||||||
| 466 | 2 | has Devices => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::Device', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 467 | 2 | has InitProcessEnabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 468 | 2 | has MaxSwap => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 469 | 2 | has SharedMemorySize => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 470 | 2 | has Swappiness => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 471 | 2 | has Tmpfs => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::Tmpfs', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 472 | } | ||||||||||
| 473 | |||||||||||
| 474 | 2 | subtype 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::FargatePlatformConfiguration', | |||||||||
| 475 | as 'Cfn::Value'; | ||||||||||
| 476 | |||||||||||
| 477 | coerce 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::FargatePlatformConfiguration', | ||||||||||
| 478 | from 'HashRef', | ||||||||||
| 479 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 480 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 481 | 0 | return $f | |||||||||
| 482 | } else { | ||||||||||
| 483 | 0 | return Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::FargatePlatformConfiguration->new( %$_ ); | |||||||||
| 484 | } | ||||||||||
| 485 | 2 | }; | |||||||||
| 486 | |||||||||||
| 487 | 2 | package Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::FargatePlatformConfiguration { | |||||||||
| 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 PlatformVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 493 | } | ||||||||||
| 494 | subtype 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::Environment', | ||||||||||
| 495 | as 'Cfn::Value', | ||||||||||
| 496 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 497 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 498 | |||||||||||
| 499 | coerce 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::Environment', | ||||||||||
| 500 | from 'HashRef', | ||||||||||
| 501 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 502 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 503 | 0 | return $f | |||||||||
| 504 | } else { | ||||||||||
| 505 | 0 | die 'Only accepts functions'; | |||||||||
| 506 | } | ||||||||||
| 507 | }, | ||||||||||
| 508 | from 'ArrayRef', | ||||||||||
| 509 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 510 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 511 | map { | ||||||||||
| 512 | 0 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Batch::JobDefinition::Environment')->coerce($_) | |||||||||
| 513 | } @$_ | ||||||||||
| 514 | ]); | ||||||||||
| 515 | 2 | }; | |||||||||
| 516 | |||||||||||
| 517 | 2 | subtype 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::Environment', | |||||||||
| 518 | as 'Cfn::Value'; | ||||||||||
| 519 | |||||||||||
| 520 | coerce 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::Environment', | ||||||||||
| 521 | from 'HashRef', | ||||||||||
| 522 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 523 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 524 | 0 | return $f | |||||||||
| 525 | } else { | ||||||||||
| 526 | 0 | return Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::Environment->new( %$_ ); | |||||||||
| 527 | } | ||||||||||
| 528 | 2 | }; | |||||||||
| 529 | |||||||||||
| 530 | 2 | package Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::Environment { | |||||||||
| 531 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 532 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 533 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 534 | |||||||||||
| 535 | 2 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 536 | 2 | has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 537 | } | ||||||||||
| 538 | |||||||||||
| 539 | 2 | subtype 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::ContainerProperties', | |||||||||
| 540 | as 'Cfn::Value'; | ||||||||||
| 541 | |||||||||||
| 542 | coerce 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::ContainerProperties', | ||||||||||
| 543 | from 'HashRef', | ||||||||||
| 544 | 6 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
| |||||||||||
| 545 | 6 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 546 | 0 | return $f | |||||||||
| 547 | } else { | ||||||||||
| 548 | 6 | return Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::ContainerProperties->new( %$_ ); | |||||||||
| 549 | } | ||||||||||
| 550 | 2 | }; | |||||||||
| 551 | |||||||||||
| 552 | 2 | package Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::ContainerProperties { | |||||||||
| 553 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 554 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 555 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 556 | |||||||||||
| 557 | 2 | has Command => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 558 | 2 | has Environment => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::Environment', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 559 | 2 | has ExecutionRoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 560 | 2 | has FargatePlatformConfiguration => (isa => 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::FargatePlatformConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 561 | 2 | has Image => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 562 | 2 | has InstanceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 563 | 2 | has JobRoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 564 | 2 | has LinuxParameters => (isa => 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::LinuxParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 565 | 2 | has LogConfiguration => (isa => 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::LogConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 566 | 2 | has Memory => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 567 | 2 | has MountPoints => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::MountPoints', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 568 | 2 | has NetworkConfiguration => (isa => 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::NetworkConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 569 | 2 | has Privileged => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 570 | 2 | has ReadonlyRootFilesystem => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 571 | 2 | has ResourceRequirements => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::ResourceRequirement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 572 | 2 | has Secrets => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::Secret', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 573 | 2 | has Ulimits => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::Ulimit', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 574 | 2 | has User => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 575 | 2 | has Vcpus => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 576 | 2 | has Volumes => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::Volumes', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 577 | } | ||||||||||
| 578 | subtype 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::NodeRangeProperty', | ||||||||||
| 579 | as 'Cfn::Value', | ||||||||||
| 580 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 581 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 582 | |||||||||||
| 583 | coerce 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::NodeRangeProperty', | ||||||||||
| 584 | from 'HashRef', | ||||||||||
| 585 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 586 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 587 | 0 | return $f | |||||||||
| 588 | } else { | ||||||||||
| 589 | 0 | die 'Only accepts functions'; | |||||||||
| 590 | } | ||||||||||
| 591 | }, | ||||||||||
| 592 | from 'ArrayRef', | ||||||||||
| 593 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 594 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 595 | map { | ||||||||||
| 596 | 0 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Batch::JobDefinition::NodeRangeProperty')->coerce($_) | |||||||||
| 597 | } @$_ | ||||||||||
| 598 | ]); | ||||||||||
| 599 | 2 | }; | |||||||||
| 600 | |||||||||||
| 601 | 2 | subtype 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::NodeRangeProperty', | |||||||||
| 602 | as 'Cfn::Value'; | ||||||||||
| 603 | |||||||||||
| 604 | coerce 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::NodeRangeProperty', | ||||||||||
| 605 | from 'HashRef', | ||||||||||
| 606 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 607 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 608 | 0 | return $f | |||||||||
| 609 | } else { | ||||||||||
| 610 | 0 | return Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::NodeRangeProperty->new( %$_ ); | |||||||||
| 611 | } | ||||||||||
| 612 | 2 | }; | |||||||||
| 613 | |||||||||||
| 614 | 2 | package Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::NodeRangeProperty { | |||||||||
| 615 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 616 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 617 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 618 | |||||||||||
| 619 | 2 | has Container => (isa => 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::ContainerProperties', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 620 | 2 | has TargetNodes => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 621 | } | ||||||||||
| 622 | subtype 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::EvaluateOnExit', | ||||||||||
| 623 | as 'Cfn::Value', | ||||||||||
| 624 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 625 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 626 | |||||||||||
| 627 | coerce 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::EvaluateOnExit', | ||||||||||
| 628 | from 'HashRef', | ||||||||||
| 629 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 630 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 631 | 0 | return $f | |||||||||
| 632 | } else { | ||||||||||
| 633 | 0 | die 'Only accepts functions'; | |||||||||
| 634 | } | ||||||||||
| 635 | }, | ||||||||||
| 636 | from 'ArrayRef', | ||||||||||
| 637 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 638 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 639 | map { | ||||||||||
| 640 | 0 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Batch::JobDefinition::EvaluateOnExit')->coerce($_) | |||||||||
| 641 | } @$_ | ||||||||||
| 642 | ]); | ||||||||||
| 643 | 2 | }; | |||||||||
| 644 | |||||||||||
| 645 | 2 | subtype 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::EvaluateOnExit', | |||||||||
| 646 | as 'Cfn::Value'; | ||||||||||
| 647 | |||||||||||
| 648 | coerce 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::EvaluateOnExit', | ||||||||||
| 649 | from 'HashRef', | ||||||||||
| 650 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 651 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 652 | 0 | return $f | |||||||||
| 653 | } else { | ||||||||||
| 654 | 0 | return Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::EvaluateOnExit->new( %$_ ); | |||||||||
| 655 | } | ||||||||||
| 656 | 2 | }; | |||||||||
| 657 | |||||||||||
| 658 | 2 | package Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::EvaluateOnExit { | |||||||||
| 659 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 660 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 661 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 662 | |||||||||||
| 663 | 2 | has Action => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 664 | 2 | has OnExitCode => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 665 | 2 | has OnReason => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 666 | 2 | has OnStatusReason => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 667 | } | ||||||||||
| 668 | |||||||||||
| 669 | 2 | subtype 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::Timeout', | |||||||||
| 670 | as 'Cfn::Value'; | ||||||||||
| 671 | |||||||||||
| 672 | coerce 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::Timeout', | ||||||||||
| 673 | from 'HashRef', | ||||||||||
| 674 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 675 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 676 | 0 | return $f | |||||||||
| 677 | } else { | ||||||||||
| 678 | 0 | return Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::Timeout->new( %$_ ); | |||||||||
| 679 | } | ||||||||||
| 680 | 2 | }; | |||||||||
| 681 | |||||||||||
| 682 | 2 | package Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::Timeout { | |||||||||
| 683 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 684 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 685 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 686 | |||||||||||
| 687 | 2 | has AttemptDurationSeconds => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 688 | } | ||||||||||
| 689 | |||||||||||
| 690 | 2 | subtype 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::RetryStrategy', | |||||||||
| 691 | as 'Cfn::Value'; | ||||||||||
| 692 | |||||||||||
| 693 | coerce 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::RetryStrategy', | ||||||||||
| 694 | from 'HashRef', | ||||||||||
| 695 | 6 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
| |||||||||||
| 696 | 6 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 697 | 0 | return $f | |||||||||
| 698 | } else { | ||||||||||
| 699 | 6 | return Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::RetryStrategy->new( %$_ ); | |||||||||
| 700 | } | ||||||||||
| 701 | 2 | }; | |||||||||
| 702 | |||||||||||
| 703 | 2 | package Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::RetryStrategy { | |||||||||
| 704 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 705 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 706 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 707 | |||||||||||
| 708 | 2 | has Attempts => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 709 | 2 | has EvaluateOnExit => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::EvaluateOnExit', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 710 | } | ||||||||||
| 711 | |||||||||||
| 712 | 2 | subtype 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::NodeProperties', | |||||||||
| 713 | as 'Cfn::Value'; | ||||||||||
| 714 | |||||||||||
| 715 | coerce 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::NodeProperties', | ||||||||||
| 716 | from 'HashRef', | ||||||||||
| 717 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 718 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 719 | 0 | return $f | |||||||||
| 720 | } else { | ||||||||||
| 721 | 0 | return Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::NodeProperties->new( %$_ ); | |||||||||
| 722 | } | ||||||||||
| 723 | 2 | }; | |||||||||
| 724 | |||||||||||
| 725 | 2 | package Cfn::Resource::Properties::Object::AWS::Batch::JobDefinition::NodeProperties { | |||||||||
| 726 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 727 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 728 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 729 | |||||||||||
| 730 | 2 | has MainNode => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 731 | 2 | has NodeRangeProperties => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Batch::JobDefinition::NodeRangeProperty', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 732 | 2 | has NumNodes => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 733 | } | ||||||||||
| 734 | |||||||||||
| 735 | 2 | package Cfn::Resource::Properties::AWS::Batch::JobDefinition { | |||||||||
| 736 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 737 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 738 | 2 | extends 'Cfn::Resource::Properties'; | |||||||||
| 739 | |||||||||||
| 740 | 2 | has ContainerProperties => (isa => 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::ContainerProperties', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 741 | 2 | has JobDefinitionName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 742 | 2 | has NodeProperties => (isa => 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::NodeProperties', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 743 | 2 | has Parameters => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 744 | 2 | has PlatformCapabilities => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 745 | 2 | has PropagateTags => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 746 | 2 | has RetryStrategy => (isa => 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::RetryStrategy', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 747 | 2 | has Tags => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 748 | 2 | has Timeout => (isa => 'Cfn::Resource::Properties::AWS::Batch::JobDefinition::Timeout', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 749 | 2 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 750 | } | ||||||||||
| 751 | |||||||||||
| 752 | 2 | 1; | |||||||||
| 753 | ### main pod documentation begin ### | ||||||||||
| 754 | |||||||||||
| 755 | =encoding UTF-8 | ||||||||||
| 756 | |||||||||||
| 757 | =head1 NAME | ||||||||||
| 758 | |||||||||||
| 759 | Cfn::Resource::AWS::Batch::JobDefinition - Cfn resource for AWS::Batch::JobDefinition | ||||||||||
| 760 | |||||||||||
| 761 | =head1 DESCRIPTION | ||||||||||
| 762 | |||||||||||
| 763 | This module implements a Perl module that represents the CloudFormation object AWS::Batch::JobDefinition. | ||||||||||
| 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 | ||||||||||