| 1 | # AWS::ECS::TaskDefinition generated from spec 9.1.0 | ||||||||||
| 2 | 2 | ▶ | use Moose::Util::TypeConstraints; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | coerce 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition', | ||||||||||
| 5 | from 'HashRef', | ||||||||||
| 6 | 2 | ▶ | via { Cfn::Resource::Properties::AWS::ECS::TaskDefinition->new( %$_ ) }; | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 2 | package Cfn::Resource::AWS::ECS::TaskDefinition { | |||||||||
| 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::ECS::TaskDefinition', 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-east-1','ap-northeast-1','ap-northeast-2','ap-northeast-3','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','cn-north-1','cn-northwest-1','eu-central-1','eu-north-1','eu-west-1','eu-west-2','eu-west-3','me-south-1','sa-east-1','us-east-1','us-east-2','us-gov-east-1','us-gov-west-1','us-west-1','us-west-2' ] | ||||||||
|
Subroutine
supported_regions: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 18 | } | ||||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | |||||||||||
| 22 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::Tmpfs', | ||||||||||
| 23 | as 'Cfn::Value', | ||||||||||
| 24 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 25 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 26 | |||||||||||
| 27 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::Tmpfs', | ||||||||||
| 28 | from 'HashRef', | ||||||||||
| 29 | via { | ||||||||||
| 30 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 31 | 0 | return $f | |||||||||
| 32 | } else { | ||||||||||
| 33 | 0 | die 'Only accepts functions'; | |||||||||
| 34 | } | ||||||||||
| 35 | }, | ||||||||||
| 36 | from 'ArrayRef', | ||||||||||
| 37 | via { | ||||||||||
| 38 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 39 | map { | ||||||||||
| 40 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ECS::TaskDefinition::Tmpfs')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 41 | } @$_ | ||||||||||
| 42 | ]); | ||||||||||
| 43 | 2 | }; | |||||||||
| 44 | |||||||||||
| 45 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::Tmpfs', | |||||||||
| 46 | as 'Cfn::Value'; | ||||||||||
| 47 | |||||||||||
| 48 | coerce 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::Tmpfs', | ||||||||||
| 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
| |||||||||||
| 52 | 0 | return $f | |||||||||
| 53 | } else { | ||||||||||
| 54 | 0 | return Cfn::Resource::Properties::AWS::ECS::TaskDefinition::TmpfsValue->new( %$_ ); | |||||||||
| 55 | } | ||||||||||
| 56 | 2 | }; | |||||||||
| 57 | |||||||||||
| 58 | 2 | package Cfn::Resource::Properties::AWS::ECS::TaskDefinition::TmpfsValue { | |||||||||
| 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 ContainerPath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 64 | 2 | has MountOptions => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 65 | 2 | has Size => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 66 | } | ||||||||||
| 67 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::Secret', | ||||||||||
| 68 | as 'Cfn::Value', | ||||||||||
| 69 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 70 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 71 | |||||||||||
| 72 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::Secret', | ||||||||||
| 73 | from 'HashRef', | ||||||||||
| 74 | via { | ||||||||||
| 75 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 76 | 0 | return $f | |||||||||
| 77 | } else { | ||||||||||
| 78 | 0 | die 'Only accepts functions'; | |||||||||
| 79 | } | ||||||||||
| 80 | }, | ||||||||||
| 81 | from 'ArrayRef', | ||||||||||
| 82 | via { | ||||||||||
| 83 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 84 | map { | ||||||||||
| 85 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ECS::TaskDefinition::Secret')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 86 | } @$_ | ||||||||||
| 87 | ]); | ||||||||||
| 88 | 2 | }; | |||||||||
| 89 | |||||||||||
| 90 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::Secret', | |||||||||
| 91 | as 'Cfn::Value'; | ||||||||||
| 92 | |||||||||||
| 93 | coerce 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::Secret', | ||||||||||
| 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
| |||||||||||
| 97 | 0 | return $f | |||||||||
| 98 | } else { | ||||||||||
| 99 | 0 | return Cfn::Resource::Properties::AWS::ECS::TaskDefinition::SecretValue->new( %$_ ); | |||||||||
| 100 | } | ||||||||||
| 101 | 2 | }; | |||||||||
| 102 | |||||||||||
| 103 | 2 | package Cfn::Resource::Properties::AWS::ECS::TaskDefinition::SecretValue { | |||||||||
| 104 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 105 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 106 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 107 | |||||||||||
| 108 | 2 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 109 | 2 | has ValueFrom => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 110 | } | ||||||||||
| 111 | |||||||||||
| 112 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::KernelCapabilities', | |||||||||
| 113 | as 'Cfn::Value'; | ||||||||||
| 114 | |||||||||||
| 115 | coerce 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::KernelCapabilities', | ||||||||||
| 116 | from 'HashRef', | ||||||||||
| 117 | via { | ||||||||||
| 118 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 119 | 0 | return $f | |||||||||
| 120 | } else { | ||||||||||
| 121 | 0 | return Cfn::Resource::Properties::AWS::ECS::TaskDefinition::KernelCapabilitiesValue->new( %$_ ); | |||||||||
| 122 | } | ||||||||||
| 123 | 2 | }; | |||||||||
| 124 | |||||||||||
| 125 | 2 | package Cfn::Resource::Properties::AWS::ECS::TaskDefinition::KernelCapabilitiesValue { | |||||||||
| 126 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 127 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 128 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 129 | |||||||||||
| 130 | 2 | has Add => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 131 | 2 | has Drop => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 132 | } | ||||||||||
| 133 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::Device', | ||||||||||
| 134 | as 'Cfn::Value', | ||||||||||
| 135 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 136 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 137 | |||||||||||
| 138 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::Device', | ||||||||||
| 139 | from 'HashRef', | ||||||||||
| 140 | via { | ||||||||||
| 141 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 142 | 0 | return $f | |||||||||
| 143 | } else { | ||||||||||
| 144 | 0 | die 'Only accepts functions'; | |||||||||
| 145 | } | ||||||||||
| 146 | }, | ||||||||||
| 147 | from 'ArrayRef', | ||||||||||
| 148 | via { | ||||||||||
| 149 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 150 | map { | ||||||||||
| 151 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ECS::TaskDefinition::Device')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 152 | } @$_ | ||||||||||
| 153 | ]); | ||||||||||
| 154 | 2 | }; | |||||||||
| 155 | |||||||||||
| 156 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::Device', | |||||||||
| 157 | as 'Cfn::Value'; | ||||||||||
| 158 | |||||||||||
| 159 | coerce 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::Device', | ||||||||||
| 160 | from 'HashRef', | ||||||||||
| 161 | via { | ||||||||||
| 162 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 163 | 0 | return $f | |||||||||
| 164 | } else { | ||||||||||
| 165 | 0 | return Cfn::Resource::Properties::AWS::ECS::TaskDefinition::DeviceValue->new( %$_ ); | |||||||||
| 166 | } | ||||||||||
| 167 | 2 | }; | |||||||||
| 168 | |||||||||||
| 169 | 2 | package Cfn::Resource::Properties::AWS::ECS::TaskDefinition::DeviceValue { | |||||||||
| 170 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 171 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 172 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 173 | |||||||||||
| 174 | 2 | has ContainerPath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 175 | 2 | has HostPath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 176 | 2 | has Permissions => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 177 | } | ||||||||||
| 178 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::VolumeFrom', | ||||||||||
| 179 | as 'Cfn::Value', | ||||||||||
| 180 | 2 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
| |||||||||||
| 181 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 182 | |||||||||||
| 183 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::VolumeFrom', | ||||||||||
| 184 | from 'HashRef', | ||||||||||
| 185 | via { | ||||||||||
| 186 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 187 | 0 | return $f | |||||||||
| 188 | } else { | ||||||||||
| 189 | 0 | die 'Only accepts functions'; | |||||||||
| 190 | } | ||||||||||
| 191 | }, | ||||||||||
| 192 | from 'ArrayRef', | ||||||||||
| 193 | via { | ||||||||||
| 194 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 195 | map { | ||||||||||
| 196 | 2 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ECS::TaskDefinition::VolumeFrom')->coerce($_) | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 197 | } @$_ | ||||||||||
| 198 | ]); | ||||||||||
| 199 | 2 | }; | |||||||||
| 200 | |||||||||||
| 201 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::VolumeFrom', | |||||||||
| 202 | as 'Cfn::Value'; | ||||||||||
| 203 | |||||||||||
| 204 | coerce 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::VolumeFrom', | ||||||||||
| 205 | from 'HashRef', | ||||||||||
| 206 | via { | ||||||||||
| 207 | 2 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 208 | 0 | return $f | |||||||||
| 209 | } else { | ||||||||||
| 210 | 2 | return Cfn::Resource::Properties::AWS::ECS::TaskDefinition::VolumeFromValue->new( %$_ ); | |||||||||
| 211 | } | ||||||||||
| 212 | 2 | }; | |||||||||
| 213 | |||||||||||
| 214 | 2 | package Cfn::Resource::Properties::AWS::ECS::TaskDefinition::VolumeFromValue { | |||||||||
| 215 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 216 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 217 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 218 | |||||||||||
| 219 | 2 | has ReadOnly => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 220 | 2 | has SourceContainer => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 221 | } | ||||||||||
| 222 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::Ulimit', | ||||||||||
| 223 | as 'Cfn::Value', | ||||||||||
| 224 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 225 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 226 | |||||||||||
| 227 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::Ulimit', | ||||||||||
| 228 | from 'HashRef', | ||||||||||
| 229 | via { | ||||||||||
| 230 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 231 | 0 | return $f | |||||||||
| 232 | } else { | ||||||||||
| 233 | 0 | die 'Only accepts functions'; | |||||||||
| 234 | } | ||||||||||
| 235 | }, | ||||||||||
| 236 | from 'ArrayRef', | ||||||||||
| 237 | via { | ||||||||||
| 238 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 239 | map { | ||||||||||
| 240 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ECS::TaskDefinition::Ulimit')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 241 | } @$_ | ||||||||||
| 242 | ]); | ||||||||||
| 243 | 2 | }; | |||||||||
| 244 | |||||||||||
| 245 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::Ulimit', | |||||||||
| 246 | as 'Cfn::Value'; | ||||||||||
| 247 | |||||||||||
| 248 | coerce 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::Ulimit', | ||||||||||
| 249 | from 'HashRef', | ||||||||||
| 250 | via { | ||||||||||
| 251 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 252 | 0 | return $f | |||||||||
| 253 | } else { | ||||||||||
| 254 | 0 | return Cfn::Resource::Properties::AWS::ECS::TaskDefinition::UlimitValue->new( %$_ ); | |||||||||
| 255 | } | ||||||||||
| 256 | 2 | }; | |||||||||
| 257 | |||||||||||
| 258 | 2 | package Cfn::Resource::Properties::AWS::ECS::TaskDefinition::UlimitValue { | |||||||||
| 259 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 260 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 261 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 262 | |||||||||||
| 263 | 2 | has HardLimit => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 264 | 2 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 265 | 2 | has SoftLimit => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 266 | } | ||||||||||
| 267 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::SystemControl', | ||||||||||
| 268 | as 'Cfn::Value', | ||||||||||
| 269 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 270 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 271 | |||||||||||
| 272 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::SystemControl', | ||||||||||
| 273 | from 'HashRef', | ||||||||||
| 274 | via { | ||||||||||
| 275 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 276 | 0 | return $f | |||||||||
| 277 | } else { | ||||||||||
| 278 | 0 | die 'Only accepts functions'; | |||||||||
| 279 | } | ||||||||||
| 280 | }, | ||||||||||
| 281 | from 'ArrayRef', | ||||||||||
| 282 | via { | ||||||||||
| 283 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 284 | map { | ||||||||||
| 285 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ECS::TaskDefinition::SystemControl')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 286 | } @$_ | ||||||||||
| 287 | ]); | ||||||||||
| 288 | 2 | }; | |||||||||
| 289 | |||||||||||
| 290 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::SystemControl', | |||||||||
| 291 | as 'Cfn::Value'; | ||||||||||
| 292 | |||||||||||
| 293 | coerce 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::SystemControl', | ||||||||||
| 294 | from 'HashRef', | ||||||||||
| 295 | via { | ||||||||||
| 296 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 297 | 0 | return $f | |||||||||
| 298 | } else { | ||||||||||
| 299 | 0 | return Cfn::Resource::Properties::AWS::ECS::TaskDefinition::SystemControlValue->new( %$_ ); | |||||||||
| 300 | } | ||||||||||
| 301 | 2 | }; | |||||||||
| 302 | |||||||||||
| 303 | 2 | package Cfn::Resource::Properties::AWS::ECS::TaskDefinition::SystemControlValue { | |||||||||
| 304 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 305 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 306 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 307 | |||||||||||
| 308 | 2 | has Namespace => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 309 | 2 | has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 310 | } | ||||||||||
| 311 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::ResourceRequirement', | ||||||||||
| 312 | as 'Cfn::Value', | ||||||||||
| 313 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 314 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 315 | |||||||||||
| 316 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::ResourceRequirement', | ||||||||||
| 317 | from 'HashRef', | ||||||||||
| 318 | via { | ||||||||||
| 319 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 320 | 0 | return $f | |||||||||
| 321 | } else { | ||||||||||
| 322 | 0 | die 'Only accepts functions'; | |||||||||
| 323 | } | ||||||||||
| 324 | }, | ||||||||||
| 325 | from 'ArrayRef', | ||||||||||
| 326 | via { | ||||||||||
| 327 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 328 | map { | ||||||||||
| 329 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ECS::TaskDefinition::ResourceRequirement')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 330 | } @$_ | ||||||||||
| 331 | ]); | ||||||||||
| 332 | 2 | }; | |||||||||
| 333 | |||||||||||
| 334 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::ResourceRequirement', | |||||||||
| 335 | as 'Cfn::Value'; | ||||||||||
| 336 | |||||||||||
| 337 | coerce 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::ResourceRequirement', | ||||||||||
| 338 | from 'HashRef', | ||||||||||
| 339 | via { | ||||||||||
| 340 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 341 | 0 | return $f | |||||||||
| 342 | } else { | ||||||||||
| 343 | 0 | return Cfn::Resource::Properties::AWS::ECS::TaskDefinition::ResourceRequirementValue->new( %$_ ); | |||||||||
| 344 | } | ||||||||||
| 345 | 2 | }; | |||||||||
| 346 | |||||||||||
| 347 | 2 | package Cfn::Resource::Properties::AWS::ECS::TaskDefinition::ResourceRequirementValue { | |||||||||
| 348 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 349 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 350 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 351 | |||||||||||
| 352 | 2 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 353 | 2 | has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 354 | } | ||||||||||
| 355 | |||||||||||
| 356 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::RepositoryCredentials', | |||||||||
| 357 | as 'Cfn::Value'; | ||||||||||
| 358 | |||||||||||
| 359 | coerce 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::RepositoryCredentials', | ||||||||||
| 360 | from 'HashRef', | ||||||||||
| 361 | via { | ||||||||||
| 362 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 363 | 0 | return $f | |||||||||
| 364 | } else { | ||||||||||
| 365 | 0 | return Cfn::Resource::Properties::AWS::ECS::TaskDefinition::RepositoryCredentialsValue->new( %$_ ); | |||||||||
| 366 | } | ||||||||||
| 367 | 2 | }; | |||||||||
| 368 | |||||||||||
| 369 | 2 | package Cfn::Resource::Properties::AWS::ECS::TaskDefinition::RepositoryCredentialsValue { | |||||||||
| 370 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 371 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 372 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 373 | |||||||||||
| 374 | 2 | has CredentialsParameter => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 375 | } | ||||||||||
| 376 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::PortMapping', | ||||||||||
| 377 | as 'Cfn::Value', | ||||||||||
| 378 | 2 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
| |||||||||||
| 379 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 380 | |||||||||||
| 381 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::PortMapping', | ||||||||||
| 382 | from 'HashRef', | ||||||||||
| 383 | via { | ||||||||||
| 384 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 385 | 0 | return $f | |||||||||
| 386 | } else { | ||||||||||
| 387 | 0 | die 'Only accepts functions'; | |||||||||
| 388 | } | ||||||||||
| 389 | }, | ||||||||||
| 390 | from 'ArrayRef', | ||||||||||
| 391 | via { | ||||||||||
| 392 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 393 | map { | ||||||||||
| 394 | 2 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ECS::TaskDefinition::PortMapping')->coerce($_) | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 395 | } @$_ | ||||||||||
| 396 | ]); | ||||||||||
| 397 | 2 | }; | |||||||||
| 398 | |||||||||||
| 399 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::PortMapping', | |||||||||
| 400 | as 'Cfn::Value'; | ||||||||||
| 401 | |||||||||||
| 402 | coerce 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::PortMapping', | ||||||||||
| 403 | from 'HashRef', | ||||||||||
| 404 | via { | ||||||||||
| 405 | 2 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 406 | 0 | return $f | |||||||||
| 407 | } else { | ||||||||||
| 408 | 2 | return Cfn::Resource::Properties::AWS::ECS::TaskDefinition::PortMappingValue->new( %$_ ); | |||||||||
| 409 | } | ||||||||||
| 410 | 2 | }; | |||||||||
| 411 | |||||||||||
| 412 | 2 | package Cfn::Resource::Properties::AWS::ECS::TaskDefinition::PortMappingValue { | |||||||||
| 413 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 414 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 415 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 416 | |||||||||||
| 417 | 2 | has ContainerPort => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 418 | 2 | has HostPort => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 419 | 2 | has Protocol => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 420 | } | ||||||||||
| 421 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::MountPoint', | ||||||||||
| 422 | as 'Cfn::Value', | ||||||||||
| 423 | 2 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
| |||||||||||
| 424 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 425 | |||||||||||
| 426 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::MountPoint', | ||||||||||
| 427 | from 'HashRef', | ||||||||||
| 428 | via { | ||||||||||
| 429 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 430 | 0 | return $f | |||||||||
| 431 | } else { | ||||||||||
| 432 | 0 | die 'Only accepts functions'; | |||||||||
| 433 | } | ||||||||||
| 434 | }, | ||||||||||
| 435 | from 'ArrayRef', | ||||||||||
| 436 | via { | ||||||||||
| 437 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 438 | map { | ||||||||||
| 439 | 2 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ECS::TaskDefinition::MountPoint')->coerce($_) | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 440 | } @$_ | ||||||||||
| 441 | ]); | ||||||||||
| 442 | 2 | }; | |||||||||
| 443 | |||||||||||
| 444 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::MountPoint', | |||||||||
| 445 | as 'Cfn::Value'; | ||||||||||
| 446 | |||||||||||
| 447 | coerce 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::MountPoint', | ||||||||||
| 448 | from 'HashRef', | ||||||||||
| 449 | via { | ||||||||||
| 450 | 2 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 451 | 0 | return $f | |||||||||
| 452 | } else { | ||||||||||
| 453 | 2 | return Cfn::Resource::Properties::AWS::ECS::TaskDefinition::MountPointValue->new( %$_ ); | |||||||||
| 454 | } | ||||||||||
| 455 | 2 | }; | |||||||||
| 456 | |||||||||||
| 457 | 2 | package Cfn::Resource::Properties::AWS::ECS::TaskDefinition::MountPointValue { | |||||||||
| 458 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 459 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 460 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 461 | |||||||||||
| 462 | 2 | has ContainerPath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 463 | 2 | has ReadOnly => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 464 | 2 | has SourceVolume => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 465 | } | ||||||||||
| 466 | |||||||||||
| 467 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::LogConfiguration', | |||||||||
| 468 | as 'Cfn::Value'; | ||||||||||
| 469 | |||||||||||
| 470 | coerce 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::LogConfiguration', | ||||||||||
| 471 | from 'HashRef', | ||||||||||
| 472 | via { | ||||||||||
| 473 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 474 | 0 | return $f | |||||||||
| 475 | } else { | ||||||||||
| 476 | 0 | return Cfn::Resource::Properties::AWS::ECS::TaskDefinition::LogConfigurationValue->new( %$_ ); | |||||||||
| 477 | } | ||||||||||
| 478 | 2 | }; | |||||||||
| 479 | |||||||||||
| 480 | 2 | package Cfn::Resource::Properties::AWS::ECS::TaskDefinition::LogConfigurationValue { | |||||||||
| 481 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 482 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 483 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 484 | |||||||||||
| 485 | 2 | has LogDriver => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 486 | 2 | has Options => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 487 | 2 | has SecretOptions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::Secret', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 488 | } | ||||||||||
| 489 | |||||||||||
| 490 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::LinuxParameters', | |||||||||
| 491 | as 'Cfn::Value'; | ||||||||||
| 492 | |||||||||||
| 493 | coerce 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::LinuxParameters', | ||||||||||
| 494 | from 'HashRef', | ||||||||||
| 495 | via { | ||||||||||
| 496 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 497 | 0 | return $f | |||||||||
| 498 | } else { | ||||||||||
| 499 | 0 | return Cfn::Resource::Properties::AWS::ECS::TaskDefinition::LinuxParametersValue->new( %$_ ); | |||||||||
| 500 | } | ||||||||||
| 501 | 2 | }; | |||||||||
| 502 | |||||||||||
| 503 | 2 | package Cfn::Resource::Properties::AWS::ECS::TaskDefinition::LinuxParametersValue { | |||||||||
| 504 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 505 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 506 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 507 | |||||||||||
| 508 | 2 | has Capabilities => (isa => 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::KernelCapabilities', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 509 | 2 | has Devices => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::Device', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 510 | 2 | has InitProcessEnabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 511 | 2 | has MaxSwap => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 512 | 2 | has SharedMemorySize => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 513 | 2 | has Swappiness => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 514 | 2 | has Tmpfs => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::Tmpfs', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 515 | } | ||||||||||
| 516 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::KeyValuePair', | ||||||||||
| 517 | as 'Cfn::Value', | ||||||||||
| 518 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 519 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 520 | |||||||||||
| 521 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::KeyValuePair', | ||||||||||
| 522 | from 'HashRef', | ||||||||||
| 523 | via { | ||||||||||
| 524 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 525 | 0 | return $f | |||||||||
| 526 | } else { | ||||||||||
| 527 | 0 | die 'Only accepts functions'; | |||||||||
| 528 | } | ||||||||||
| 529 | }, | ||||||||||
| 530 | from 'ArrayRef', | ||||||||||
| 531 | via { | ||||||||||
| 532 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 533 | map { | ||||||||||
| 534 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ECS::TaskDefinition::KeyValuePair')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 535 | } @$_ | ||||||||||
| 536 | ]); | ||||||||||
| 537 | 2 | }; | |||||||||
| 538 | |||||||||||
| 539 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::KeyValuePair', | |||||||||
| 540 | as 'Cfn::Value'; | ||||||||||
| 541 | |||||||||||
| 542 | coerce 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::KeyValuePair', | ||||||||||
| 543 | from 'HashRef', | ||||||||||
| 544 | via { | ||||||||||
| 545 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 546 | 0 | return $f | |||||||||
| 547 | } else { | ||||||||||
| 548 | 0 | return Cfn::Resource::Properties::AWS::ECS::TaskDefinition::KeyValuePairValue->new( %$_ ); | |||||||||
| 549 | } | ||||||||||
| 550 | 2 | }; | |||||||||
| 551 | |||||||||||
| 552 | 2 | package Cfn::Resource::Properties::AWS::ECS::TaskDefinition::KeyValuePairValue { | |||||||||
| 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 Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 558 | 2 | has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 559 | } | ||||||||||
| 560 | |||||||||||
| 561 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::HostVolumeProperties', | |||||||||
| 562 | as 'Cfn::Value'; | ||||||||||
| 563 | |||||||||||
| 564 | coerce 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::HostVolumeProperties', | ||||||||||
| 565 | from 'HashRef', | ||||||||||
| 566 | via { | ||||||||||
| 567 | 2 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 568 | 0 | return $f | |||||||||
| 569 | } else { | ||||||||||
| 570 | 2 | return Cfn::Resource::Properties::AWS::ECS::TaskDefinition::HostVolumePropertiesValue->new( %$_ ); | |||||||||
| 571 | } | ||||||||||
| 572 | 2 | }; | |||||||||
| 573 | |||||||||||
| 574 | 2 | package Cfn::Resource::Properties::AWS::ECS::TaskDefinition::HostVolumePropertiesValue { | |||||||||
| 575 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 576 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 577 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 578 | |||||||||||
| 579 | 2 | has SourcePath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 580 | } | ||||||||||
| 581 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::HostEntry', | ||||||||||
| 582 | as 'Cfn::Value', | ||||||||||
| 583 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 584 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 585 | |||||||||||
| 586 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::HostEntry', | ||||||||||
| 587 | from 'HashRef', | ||||||||||
| 588 | via { | ||||||||||
| 589 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 590 | 0 | return $f | |||||||||
| 591 | } else { | ||||||||||
| 592 | 0 | die 'Only accepts functions'; | |||||||||
| 593 | } | ||||||||||
| 594 | }, | ||||||||||
| 595 | from 'ArrayRef', | ||||||||||
| 596 | via { | ||||||||||
| 597 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 598 | map { | ||||||||||
| 599 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ECS::TaskDefinition::HostEntry')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 600 | } @$_ | ||||||||||
| 601 | ]); | ||||||||||
| 602 | 2 | }; | |||||||||
| 603 | |||||||||||
| 604 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::HostEntry', | |||||||||
| 605 | as 'Cfn::Value'; | ||||||||||
| 606 | |||||||||||
| 607 | coerce 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::HostEntry', | ||||||||||
| 608 | from 'HashRef', | ||||||||||
| 609 | via { | ||||||||||
| 610 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 611 | 0 | return $f | |||||||||
| 612 | } else { | ||||||||||
| 613 | 0 | return Cfn::Resource::Properties::AWS::ECS::TaskDefinition::HostEntryValue->new( %$_ ); | |||||||||
| 614 | } | ||||||||||
| 615 | 2 | }; | |||||||||
| 616 | |||||||||||
| 617 | 2 | package Cfn::Resource::Properties::AWS::ECS::TaskDefinition::HostEntryValue { | |||||||||
| 618 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 619 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 620 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 621 | |||||||||||
| 622 | 2 | has Hostname => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 623 | 2 | has IpAddress => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 624 | } | ||||||||||
| 625 | |||||||||||
| 626 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::HealthCheck', | |||||||||
| 627 | as 'Cfn::Value'; | ||||||||||
| 628 | |||||||||||
| 629 | coerce 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::HealthCheck', | ||||||||||
| 630 | from 'HashRef', | ||||||||||
| 631 | via { | ||||||||||
| 632 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 633 | 0 | return $f | |||||||||
| 634 | } else { | ||||||||||
| 635 | 0 | return Cfn::Resource::Properties::AWS::ECS::TaskDefinition::HealthCheckValue->new( %$_ ); | |||||||||
| 636 | } | ||||||||||
| 637 | 2 | }; | |||||||||
| 638 | |||||||||||
| 639 | 2 | package Cfn::Resource::Properties::AWS::ECS::TaskDefinition::HealthCheckValue { | |||||||||
| 640 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 641 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 642 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 643 | |||||||||||
| 644 | 2 | has Command => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 645 | 2 | has Interval => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 646 | 2 | has Retries => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 647 | 2 | has StartPeriod => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 648 | 2 | has Timeout => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 649 | } | ||||||||||
| 650 | |||||||||||
| 651 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::FirelensConfiguration', | |||||||||
| 652 | as 'Cfn::Value'; | ||||||||||
| 653 | |||||||||||
| 654 | coerce 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::FirelensConfiguration', | ||||||||||
| 655 | from 'HashRef', | ||||||||||
| 656 | via { | ||||||||||
| 657 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 658 | 0 | return $f | |||||||||
| 659 | } else { | ||||||||||
| 660 | 0 | return Cfn::Resource::Properties::AWS::ECS::TaskDefinition::FirelensConfigurationValue->new( %$_ ); | |||||||||
| 661 | } | ||||||||||
| 662 | 2 | }; | |||||||||
| 663 | |||||||||||
| 664 | 2 | package Cfn::Resource::Properties::AWS::ECS::TaskDefinition::FirelensConfigurationValue { | |||||||||
| 665 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 666 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 667 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 668 | |||||||||||
| 669 | 2 | has Options => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 670 | 2 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 671 | } | ||||||||||
| 672 | |||||||||||
| 673 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::DockerVolumeConfiguration', | |||||||||
| 674 | as 'Cfn::Value'; | ||||||||||
| 675 | |||||||||||
| 676 | coerce 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::DockerVolumeConfiguration', | ||||||||||
| 677 | from 'HashRef', | ||||||||||
| 678 | via { | ||||||||||
| 679 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 680 | 0 | return $f | |||||||||
| 681 | } else { | ||||||||||
| 682 | 0 | return Cfn::Resource::Properties::AWS::ECS::TaskDefinition::DockerVolumeConfigurationValue->new( %$_ ); | |||||||||
| 683 | } | ||||||||||
| 684 | 2 | }; | |||||||||
| 685 | |||||||||||
| 686 | 2 | package Cfn::Resource::Properties::AWS::ECS::TaskDefinition::DockerVolumeConfigurationValue { | |||||||||
| 687 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 688 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 689 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 690 | |||||||||||
| 691 | 2 | has Autoprovision => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 692 | 2 | has Driver => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 693 | 2 | has DriverOpts => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 694 | 2 | has Labels => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 695 | 2 | has Scope => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 696 | } | ||||||||||
| 697 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::ContainerDependency', | ||||||||||
| 698 | as 'Cfn::Value', | ||||||||||
| 699 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 700 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 701 | |||||||||||
| 702 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::ContainerDependency', | ||||||||||
| 703 | from 'HashRef', | ||||||||||
| 704 | via { | ||||||||||
| 705 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 706 | 0 | return $f | |||||||||
| 707 | } else { | ||||||||||
| 708 | 0 | die 'Only accepts functions'; | |||||||||
| 709 | } | ||||||||||
| 710 | }, | ||||||||||
| 711 | from 'ArrayRef', | ||||||||||
| 712 | via { | ||||||||||
| 713 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 714 | map { | ||||||||||
| 715 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ECS::TaskDefinition::ContainerDependency')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 716 | } @$_ | ||||||||||
| 717 | ]); | ||||||||||
| 718 | 2 | }; | |||||||||
| 719 | |||||||||||
| 720 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::ContainerDependency', | |||||||||
| 721 | as 'Cfn::Value'; | ||||||||||
| 722 | |||||||||||
| 723 | coerce 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::ContainerDependency', | ||||||||||
| 724 | from 'HashRef', | ||||||||||
| 725 | via { | ||||||||||
| 726 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 727 | 0 | return $f | |||||||||
| 728 | } else { | ||||||||||
| 729 | 0 | return Cfn::Resource::Properties::AWS::ECS::TaskDefinition::ContainerDependencyValue->new( %$_ ); | |||||||||
| 730 | } | ||||||||||
| 731 | 2 | }; | |||||||||
| 732 | |||||||||||
| 733 | 2 | package Cfn::Resource::Properties::AWS::ECS::TaskDefinition::ContainerDependencyValue { | |||||||||
| 734 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 735 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 736 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 737 | |||||||||||
| 738 | 2 | has Condition => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 739 | 2 | has ContainerName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 740 | } | ||||||||||
| 741 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::Volume', | ||||||||||
| 742 | as 'Cfn::Value', | ||||||||||
| 743 | 2 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
| |||||||||||
| 744 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 745 | |||||||||||
| 746 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::Volume', | ||||||||||
| 747 | from 'HashRef', | ||||||||||
| 748 | via { | ||||||||||
| 749 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 750 | 0 | return $f | |||||||||
| 751 | } else { | ||||||||||
| 752 | 0 | die 'Only accepts functions'; | |||||||||
| 753 | } | ||||||||||
| 754 | }, | ||||||||||
| 755 | from 'ArrayRef', | ||||||||||
| 756 | via { | ||||||||||
| 757 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 758 | map { | ||||||||||
| 759 | 2 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ECS::TaskDefinition::Volume')->coerce($_) | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 760 | } @$_ | ||||||||||
| 761 | ]); | ||||||||||
| 762 | 2 | }; | |||||||||
| 763 | |||||||||||
| 764 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::Volume', | |||||||||
| 765 | as 'Cfn::Value'; | ||||||||||
| 766 | |||||||||||
| 767 | coerce 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::Volume', | ||||||||||
| 768 | from 'HashRef', | ||||||||||
| 769 | via { | ||||||||||
| 770 | 2 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 771 | 0 | return $f | |||||||||
| 772 | } else { | ||||||||||
| 773 | 2 | return Cfn::Resource::Properties::AWS::ECS::TaskDefinition::VolumeValue->new( %$_ ); | |||||||||
| 774 | } | ||||||||||
| 775 | 2 | }; | |||||||||
| 776 | |||||||||||
| 777 | 2 | package Cfn::Resource::Properties::AWS::ECS::TaskDefinition::VolumeValue { | |||||||||
| 778 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 779 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 780 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 781 | |||||||||||
| 782 | 2 | has DockerVolumeConfiguration => (isa => 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::DockerVolumeConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 783 | 2 | has Host => (isa => 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::HostVolumeProperties', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 784 | 2 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 785 | } | ||||||||||
| 786 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::TaskDefinitionPlacementConstraint', | ||||||||||
| 787 | as 'Cfn::Value', | ||||||||||
| 788 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 789 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 790 | |||||||||||
| 791 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::TaskDefinitionPlacementConstraint', | ||||||||||
| 792 | from 'HashRef', | ||||||||||
| 793 | via { | ||||||||||
| 794 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 795 | 0 | return $f | |||||||||
| 796 | } else { | ||||||||||
| 797 | 0 | die 'Only accepts functions'; | |||||||||
| 798 | } | ||||||||||
| 799 | }, | ||||||||||
| 800 | from 'ArrayRef', | ||||||||||
| 801 | via { | ||||||||||
| 802 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 803 | map { | ||||||||||
| 804 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ECS::TaskDefinition::TaskDefinitionPlacementConstraint')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 805 | } @$_ | ||||||||||
| 806 | ]); | ||||||||||
| 807 | 2 | }; | |||||||||
| 808 | |||||||||||
| 809 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::TaskDefinitionPlacementConstraint', | |||||||||
| 810 | as 'Cfn::Value'; | ||||||||||
| 811 | |||||||||||
| 812 | coerce 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::TaskDefinitionPlacementConstraint', | ||||||||||
| 813 | from 'HashRef', | ||||||||||
| 814 | via { | ||||||||||
| 815 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 816 | 0 | return $f | |||||||||
| 817 | } else { | ||||||||||
| 818 | 0 | return Cfn::Resource::Properties::AWS::ECS::TaskDefinition::TaskDefinitionPlacementConstraintValue->new( %$_ ); | |||||||||
| 819 | } | ||||||||||
| 820 | 2 | }; | |||||||||
| 821 | |||||||||||
| 822 | 2 | package Cfn::Resource::Properties::AWS::ECS::TaskDefinition::TaskDefinitionPlacementConstraintValue { | |||||||||
| 823 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 824 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 825 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 826 | |||||||||||
| 827 | 2 | has Expression => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 828 | 2 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 829 | } | ||||||||||
| 830 | |||||||||||
| 831 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::ProxyConfiguration', | |||||||||
| 832 | as 'Cfn::Value'; | ||||||||||
| 833 | |||||||||||
| 834 | coerce 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::ProxyConfiguration', | ||||||||||
| 835 | from 'HashRef', | ||||||||||
| 836 | via { | ||||||||||
| 837 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 838 | 0 | return $f | |||||||||
| 839 | } else { | ||||||||||
| 840 | 0 | return Cfn::Resource::Properties::AWS::ECS::TaskDefinition::ProxyConfigurationValue->new( %$_ ); | |||||||||
| 841 | } | ||||||||||
| 842 | 2 | }; | |||||||||
| 843 | |||||||||||
| 844 | 2 | package Cfn::Resource::Properties::AWS::ECS::TaskDefinition::ProxyConfigurationValue { | |||||||||
| 845 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 846 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 847 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 848 | |||||||||||
| 849 | 2 | has ContainerName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 850 | 2 | has ProxyConfigurationProperties => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::KeyValuePair', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 851 | 2 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 852 | } | ||||||||||
| 853 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::InferenceAccelerator', | ||||||||||
| 854 | as 'Cfn::Value', | ||||||||||
| 855 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 856 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 857 | |||||||||||
| 858 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::InferenceAccelerator', | ||||||||||
| 859 | from 'HashRef', | ||||||||||
| 860 | via { | ||||||||||
| 861 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 862 | 0 | return $f | |||||||||
| 863 | } else { | ||||||||||
| 864 | 0 | die 'Only accepts functions'; | |||||||||
| 865 | } | ||||||||||
| 866 | }, | ||||||||||
| 867 | from 'ArrayRef', | ||||||||||
| 868 | via { | ||||||||||
| 869 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 870 | map { | ||||||||||
| 871 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ECS::TaskDefinition::InferenceAccelerator')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 872 | } @$_ | ||||||||||
| 873 | ]); | ||||||||||
| 874 | 2 | }; | |||||||||
| 875 | |||||||||||
| 876 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::InferenceAccelerator', | |||||||||
| 877 | as 'Cfn::Value'; | ||||||||||
| 878 | |||||||||||
| 879 | coerce 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::InferenceAccelerator', | ||||||||||
| 880 | from 'HashRef', | ||||||||||
| 881 | via { | ||||||||||
| 882 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 883 | 0 | return $f | |||||||||
| 884 | } else { | ||||||||||
| 885 | 0 | return Cfn::Resource::Properties::AWS::ECS::TaskDefinition::InferenceAcceleratorValue->new( %$_ ); | |||||||||
| 886 | } | ||||||||||
| 887 | 2 | }; | |||||||||
| 888 | |||||||||||
| 889 | 2 | package Cfn::Resource::Properties::AWS::ECS::TaskDefinition::InferenceAcceleratorValue { | |||||||||
| 890 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 891 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 892 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 893 | |||||||||||
| 894 | 2 | has DeviceName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 895 | 2 | has DevicePolicy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 896 | 2 | has DeviceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 897 | } | ||||||||||
| 898 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::ContainerDefinition', | ||||||||||
| 899 | as 'Cfn::Value', | ||||||||||
| 900 | 2 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
| |||||||||||
| 901 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 902 | |||||||||||
| 903 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::ContainerDefinition', | ||||||||||
| 904 | from 'HashRef', | ||||||||||
| 905 | via { | ||||||||||
| 906 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 907 | 0 | return $f | |||||||||
| 908 | } else { | ||||||||||
| 909 | 0 | die 'Only accepts functions'; | |||||||||
| 910 | } | ||||||||||
| 911 | }, | ||||||||||
| 912 | from 'ArrayRef', | ||||||||||
| 913 | via { | ||||||||||
| 914 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 915 | map { | ||||||||||
| 916 | 2 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ECS::TaskDefinition::ContainerDefinition')->coerce($_) | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 917 | } @$_ | ||||||||||
| 918 | ]); | ||||||||||
| 919 | 2 | }; | |||||||||
| 920 | |||||||||||
| 921 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::ContainerDefinition', | |||||||||
| 922 | as 'Cfn::Value'; | ||||||||||
| 923 | |||||||||||
| 924 | coerce 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::ContainerDefinition', | ||||||||||
| 925 | from 'HashRef', | ||||||||||
| 926 | via { | ||||||||||
| 927 | 4 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 928 | 0 | return $f | |||||||||
| 929 | } else { | ||||||||||
| 930 | 4 | return Cfn::Resource::Properties::AWS::ECS::TaskDefinition::ContainerDefinitionValue->new( %$_ ); | |||||||||
| 931 | } | ||||||||||
| 932 | 2 | }; | |||||||||
| 933 | |||||||||||
| 934 | 2 | package Cfn::Resource::Properties::AWS::ECS::TaskDefinition::ContainerDefinitionValue { | |||||||||
| 935 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 936 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 937 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 938 | |||||||||||
| 939 | 2 | has Command => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 940 | 2 | has Cpu => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 941 | 2 | has DependsOn => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::ContainerDependency', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 942 | 2 | has DisableNetworking => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 943 | 2 | has DnsSearchDomains => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 944 | 2 | has DnsServers => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 945 | 2 | has DockerLabels => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 946 | 2 | has DockerSecurityOptions => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 947 | 2 | has EntryPoint => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 948 | 2 | has Environment => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::KeyValuePair', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 949 | 2 | has Essential => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 950 | 2 | has ExtraHosts => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::HostEntry', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 951 | 2 | has FirelensConfiguration => (isa => 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::FirelensConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 952 | 2 | has HealthCheck => (isa => 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::HealthCheck', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 953 | 2 | has Hostname => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 954 | 2 | has Image => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 955 | 2 | has Interactive => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 956 | 2 | has Links => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 957 | 2 | has LinuxParameters => (isa => 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::LinuxParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 958 | 2 | has LogConfiguration => (isa => 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::LogConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 959 | 2 | has Memory => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 960 | 2 | has MemoryReservation => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 961 | 2 | has MountPoints => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::MountPoint', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 962 | 2 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 963 | 2 | has PortMappings => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::PortMapping', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 964 | 2 | has Privileged => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 965 | 2 | has PseudoTerminal => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 966 | 2 | has ReadonlyRootFilesystem => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 967 | 2 | has RepositoryCredentials => (isa => 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::RepositoryCredentials', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 968 | 2 | has ResourceRequirements => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::ResourceRequirement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 969 | 2 | has Secrets => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::Secret', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 970 | 2 | has StartTimeout => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 971 | 2 | has StopTimeout => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 972 | 2 | has SystemControls => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::SystemControl', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 973 | 2 | has Ulimits => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::Ulimit', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 974 | 2 | has User => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 975 | 2 | has VolumesFrom => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::VolumeFrom', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 976 | 2 | has WorkingDirectory => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 977 | } | ||||||||||
| 978 | |||||||||||
| 979 | 2 | package Cfn::Resource::Properties::AWS::ECS::TaskDefinition { | |||||||||
| 980 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 981 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 982 | 2 | extends 'Cfn::Resource::Properties'; | |||||||||
| 983 | |||||||||||
| 984 | 2 | has ContainerDefinitions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::ContainerDefinition', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 985 | 2 | has Cpu => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 986 | 2 | has ExecutionRoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 987 | 2 | has Family => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 988 | 2 | has InferenceAccelerators => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::InferenceAccelerator', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 989 | 2 | has IpcMode => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 990 | 2 | has Memory => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 991 | 2 | has NetworkMode => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 992 | 2 | has PidMode => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 993 | 2 | has PlacementConstraints => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::TaskDefinitionPlacementConstraint', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 994 | 2 | has ProxyConfiguration => (isa => 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::ProxyConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 995 | 2 | has RequiresCompatibilities => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 996 | 2 | has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 997 | 2 | has TaskRoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 998 | 2 | has Volumes => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::Volume', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 999 | } | ||||||||||
| 1000 | |||||||||||
| 1001 | 2 | 1; | |||||||||