| 1 | # AWS::ECS::TaskDefinition generated from spec 18.4.0 | ||||||||||
| 2 | 2 | ▶ | use Moose::Util::TypeConstraints; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | coerce 'Cfn::Resource::Properties::AWS::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 | ▶ | [ 'TaskDefinitionArn' ] | ||||||||
|
Subroutine
AttributeList: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 15 | } | ||||||||||
| 16 | sub supported_regions { | ||||||||||
| 17 | 1 | ▶ | [ 'af-south-1','ap-east-1','ap-northeast-1','ap-northeast-2','ap-northeast-3','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','cn-north-1','cn-northwest-1','eu-central-1','eu-north-1','eu-south-1','eu-west-1','eu-west-2','eu-west-3','me-south-1','sa-east-1','us-east-1','us-east-2','us-gov-east-1','us-gov-west-1','us-west-1','us-west-2' ] | ||||||||
|
Subroutine
supported_regions: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 18 | } | ||||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | |||||||||||
| 22 | subtype 'ArrayOfCfn::Resource::Properties::AWS::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::Object::AWS::ECS::TaskDefinition::Tmpfs->new( %$_ ); | |||||||||
| 55 | } | ||||||||||
| 56 | 2 | }; | |||||||||
| 57 | |||||||||||
| 58 | 2 | package Cfn::Resource::Properties::Object::AWS::ECS::TaskDefinition::Tmpfs { | |||||||||
| 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::Object::AWS::ECS::TaskDefinition::Secret->new( %$_ ); | |||||||||
| 100 | } | ||||||||||
| 101 | 2 | }; | |||||||||
| 102 | |||||||||||
| 103 | 2 | package Cfn::Resource::Properties::Object::AWS::ECS::TaskDefinition::Secret { | |||||||||
| 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::Object::AWS::ECS::TaskDefinition::KernelCapabilities->new( %$_ ); | |||||||||
| 122 | } | ||||||||||
| 123 | 2 | }; | |||||||||
| 124 | |||||||||||
| 125 | 2 | package Cfn::Resource::Properties::Object::AWS::ECS::TaskDefinition::KernelCapabilities { | |||||||||
| 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::Object::AWS::ECS::TaskDefinition::Device->new( %$_ ); | |||||||||
| 166 | } | ||||||||||
| 167 | 2 | }; | |||||||||
| 168 | |||||||||||
| 169 | 2 | package Cfn::Resource::Properties::Object::AWS::ECS::TaskDefinition::Device { | |||||||||
| 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, 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::Object::AWS::ECS::TaskDefinition::VolumeFrom->new( %$_ ); | |||||||||
| 211 | } | ||||||||||
| 212 | 2 | }; | |||||||||
| 213 | |||||||||||
| 214 | 2 | package Cfn::Resource::Properties::Object::AWS::ECS::TaskDefinition::VolumeFrom { | |||||||||
| 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::Object::AWS::ECS::TaskDefinition::Ulimit->new( %$_ ); | |||||||||
| 255 | } | ||||||||||
| 256 | 2 | }; | |||||||||
| 257 | |||||||||||
| 258 | 2 | package Cfn::Resource::Properties::Object::AWS::ECS::TaskDefinition::Ulimit { | |||||||||
| 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::Object::AWS::ECS::TaskDefinition::SystemControl->new( %$_ ); | |||||||||
| 300 | } | ||||||||||
| 301 | 2 | }; | |||||||||
| 302 | |||||||||||
| 303 | 2 | package Cfn::Resource::Properties::Object::AWS::ECS::TaskDefinition::SystemControl { | |||||||||
| 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, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 309 | 2 | has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 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::Object::AWS::ECS::TaskDefinition::ResourceRequirement->new( %$_ ); | |||||||||
| 344 | } | ||||||||||
| 345 | 2 | }; | |||||||||
| 346 | |||||||||||
| 347 | 2 | package Cfn::Resource::Properties::Object::AWS::ECS::TaskDefinition::ResourceRequirement { | |||||||||
| 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::Object::AWS::ECS::TaskDefinition::RepositoryCredentials->new( %$_ ); | |||||||||
| 366 | } | ||||||||||
| 367 | 2 | }; | |||||||||
| 368 | |||||||||||
| 369 | 2 | package Cfn::Resource::Properties::Object::AWS::ECS::TaskDefinition::RepositoryCredentials { | |||||||||
| 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::Object::AWS::ECS::TaskDefinition::PortMapping->new( %$_ ); | |||||||||
| 409 | } | ||||||||||
| 410 | 2 | }; | |||||||||
| 411 | |||||||||||
| 412 | 2 | package Cfn::Resource::Properties::Object::AWS::ECS::TaskDefinition::PortMapping { | |||||||||
| 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::Object::AWS::ECS::TaskDefinition::MountPoint->new( %$_ ); | |||||||||
| 454 | } | ||||||||||
| 455 | 2 | }; | |||||||||
| 456 | |||||||||||
| 457 | 2 | package Cfn::Resource::Properties::Object::AWS::ECS::TaskDefinition::MountPoint { | |||||||||
| 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::Object::AWS::ECS::TaskDefinition::LogConfiguration->new( %$_ ); | |||||||||
| 477 | } | ||||||||||
| 478 | 2 | }; | |||||||||
| 479 | |||||||||||
| 480 | 2 | package Cfn::Resource::Properties::Object::AWS::ECS::TaskDefinition::LogConfiguration { | |||||||||
| 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::Object::AWS::ECS::TaskDefinition::LinuxParameters->new( %$_ ); | |||||||||
| 500 | } | ||||||||||
| 501 | 2 | }; | |||||||||
| 502 | |||||||||||
| 503 | 2 | package Cfn::Resource::Properties::Object::AWS::ECS::TaskDefinition::LinuxParameters { | |||||||||
| 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::Object::AWS::ECS::TaskDefinition::KeyValuePair->new( %$_ ); | |||||||||
| 549 | } | ||||||||||
| 550 | 2 | }; | |||||||||
| 551 | |||||||||||
| 552 | 2 | package Cfn::Resource::Properties::Object::AWS::ECS::TaskDefinition::KeyValuePair { | |||||||||
| 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::Object::AWS::ECS::TaskDefinition::HostVolumeProperties->new( %$_ ); | |||||||||
| 571 | } | ||||||||||
| 572 | 2 | }; | |||||||||
| 573 | |||||||||||
| 574 | 2 | package Cfn::Resource::Properties::Object::AWS::ECS::TaskDefinition::HostVolumeProperties { | |||||||||
| 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::Object::AWS::ECS::TaskDefinition::HostEntry->new( %$_ ); | |||||||||
| 614 | } | ||||||||||
| 615 | 2 | }; | |||||||||
| 616 | |||||||||||
| 617 | 2 | package Cfn::Resource::Properties::Object::AWS::ECS::TaskDefinition::HostEntry { | |||||||||
| 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, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 623 | 2 | has IpAddress => (isa => 'Cfn::Value::String', is => 'rw', coerce => 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::Object::AWS::ECS::TaskDefinition::HealthCheck->new( %$_ ); | |||||||||
| 636 | } | ||||||||||
| 637 | 2 | }; | |||||||||
| 638 | |||||||||||
| 639 | 2 | package Cfn::Resource::Properties::Object::AWS::ECS::TaskDefinition::HealthCheck { | |||||||||
| 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, 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::Object::AWS::ECS::TaskDefinition::FirelensConfiguration->new( %$_ ); | |||||||||
| 661 | } | ||||||||||
| 662 | 2 | }; | |||||||||
| 663 | |||||||||||
| 664 | 2 | package Cfn::Resource::Properties::Object::AWS::ECS::TaskDefinition::FirelensConfiguration { | |||||||||
| 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, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 671 | } | ||||||||||
| 672 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::EnvironmentFile', | ||||||||||
| 673 | as 'Cfn::Value', | ||||||||||
| 674 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 675 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 676 | |||||||||||
| 677 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::EnvironmentFile', | ||||||||||
| 678 | from 'HashRef', | ||||||||||
| 679 | via { | ||||||||||
| 680 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 681 | 0 | return $f | |||||||||
| 682 | } else { | ||||||||||
| 683 | 0 | die 'Only accepts functions'; | |||||||||
| 684 | } | ||||||||||
| 685 | }, | ||||||||||
| 686 | from 'ArrayRef', | ||||||||||
| 687 | via { | ||||||||||
| 688 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 689 | map { | ||||||||||
| 690 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ECS::TaskDefinition::EnvironmentFile')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 691 | } @$_ | ||||||||||
| 692 | ]); | ||||||||||
| 693 | 2 | }; | |||||||||
| 694 | |||||||||||
| 695 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::EnvironmentFile', | |||||||||
| 696 | as 'Cfn::Value'; | ||||||||||
| 697 | |||||||||||
| 698 | coerce 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::EnvironmentFile', | ||||||||||
| 699 | from 'HashRef', | ||||||||||
| 700 | via { | ||||||||||
| 701 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 702 | 0 | return $f | |||||||||
| 703 | } else { | ||||||||||
| 704 | 0 | return Cfn::Resource::Properties::Object::AWS::ECS::TaskDefinition::EnvironmentFile->new( %$_ ); | |||||||||
| 705 | } | ||||||||||
| 706 | 2 | }; | |||||||||
| 707 | |||||||||||
| 708 | 2 | package Cfn::Resource::Properties::Object::AWS::ECS::TaskDefinition::EnvironmentFile { | |||||||||
| 709 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 710 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 711 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 712 | |||||||||||
| 713 | 2 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 714 | 2 | has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 715 | } | ||||||||||
| 716 | |||||||||||
| 717 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::EFSVolumeConfiguration', | |||||||||
| 718 | as 'Cfn::Value'; | ||||||||||
| 719 | |||||||||||
| 720 | coerce 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::EFSVolumeConfiguration', | ||||||||||
| 721 | from 'HashRef', | ||||||||||
| 722 | via { | ||||||||||
| 723 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 724 | 0 | return $f | |||||||||
| 725 | } else { | ||||||||||
| 726 | 0 | return Cfn::Resource::Properties::Object::AWS::ECS::TaskDefinition::EFSVolumeConfiguration->new( %$_ ); | |||||||||
| 727 | } | ||||||||||
| 728 | 2 | }; | |||||||||
| 729 | |||||||||||
| 730 | 2 | package Cfn::Resource::Properties::Object::AWS::ECS::TaskDefinition::EFSVolumeConfiguration { | |||||||||
| 731 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 732 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 733 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 734 | |||||||||||
| 735 | 2 | has AuthorizationConfig => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 736 | 2 | has FilesystemId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 737 | 2 | has RootDirectory => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 738 | 2 | has TransitEncryption => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 739 | 2 | has TransitEncryptionPort => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 740 | } | ||||||||||
| 741 | |||||||||||
| 742 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::DockerVolumeConfiguration', | |||||||||
| 743 | as 'Cfn::Value'; | ||||||||||
| 744 | |||||||||||
| 745 | coerce 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::DockerVolumeConfiguration', | ||||||||||
| 746 | from 'HashRef', | ||||||||||
| 747 | via { | ||||||||||
| 748 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 749 | 0 | return $f | |||||||||
| 750 | } else { | ||||||||||
| 751 | 0 | return Cfn::Resource::Properties::Object::AWS::ECS::TaskDefinition::DockerVolumeConfiguration->new( %$_ ); | |||||||||
| 752 | } | ||||||||||
| 753 | 2 | }; | |||||||||
| 754 | |||||||||||
| 755 | 2 | package Cfn::Resource::Properties::Object::AWS::ECS::TaskDefinition::DockerVolumeConfiguration { | |||||||||
| 756 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 757 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 758 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 759 | |||||||||||
| 760 | 2 | has Autoprovision => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 761 | 2 | has Driver => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 762 | 2 | has DriverOpts => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 763 | 2 | has Labels => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 764 | 2 | has Scope => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 765 | } | ||||||||||
| 766 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::ContainerDependency', | ||||||||||
| 767 | as 'Cfn::Value', | ||||||||||
| 768 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 769 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 770 | |||||||||||
| 771 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::ContainerDependency', | ||||||||||
| 772 | from 'HashRef', | ||||||||||
| 773 | via { | ||||||||||
| 774 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 775 | 0 | return $f | |||||||||
| 776 | } else { | ||||||||||
| 777 | 0 | die 'Only accepts functions'; | |||||||||
| 778 | } | ||||||||||
| 779 | }, | ||||||||||
| 780 | from 'ArrayRef', | ||||||||||
| 781 | via { | ||||||||||
| 782 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 783 | map { | ||||||||||
| 784 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ECS::TaskDefinition::ContainerDependency')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 785 | } @$_ | ||||||||||
| 786 | ]); | ||||||||||
| 787 | 2 | }; | |||||||||
| 788 | |||||||||||
| 789 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::ContainerDependency', | |||||||||
| 790 | as 'Cfn::Value'; | ||||||||||
| 791 | |||||||||||
| 792 | coerce 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::ContainerDependency', | ||||||||||
| 793 | from 'HashRef', | ||||||||||
| 794 | via { | ||||||||||
| 795 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 796 | 0 | return $f | |||||||||
| 797 | } else { | ||||||||||
| 798 | 0 | return Cfn::Resource::Properties::Object::AWS::ECS::TaskDefinition::ContainerDependency->new( %$_ ); | |||||||||
| 799 | } | ||||||||||
| 800 | 2 | }; | |||||||||
| 801 | |||||||||||
| 802 | 2 | package Cfn::Resource::Properties::Object::AWS::ECS::TaskDefinition::ContainerDependency { | |||||||||
| 803 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 804 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 805 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 806 | |||||||||||
| 807 | 2 | has Condition => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 808 | 2 | has ContainerName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 809 | } | ||||||||||
| 810 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::Volume', | ||||||||||
| 811 | as 'Cfn::Value', | ||||||||||
| 812 | 2 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
| |||||||||||
| 813 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 814 | |||||||||||
| 815 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::Volume', | ||||||||||
| 816 | from 'HashRef', | ||||||||||
| 817 | via { | ||||||||||
| 818 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 819 | 0 | return $f | |||||||||
| 820 | } else { | ||||||||||
| 821 | 0 | die 'Only accepts functions'; | |||||||||
| 822 | } | ||||||||||
| 823 | }, | ||||||||||
| 824 | from 'ArrayRef', | ||||||||||
| 825 | via { | ||||||||||
| 826 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 827 | map { | ||||||||||
| 828 | 2 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ECS::TaskDefinition::Volume')->coerce($_) | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 829 | } @$_ | ||||||||||
| 830 | ]); | ||||||||||
| 831 | 2 | }; | |||||||||
| 832 | |||||||||||
| 833 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::Volume', | |||||||||
| 834 | as 'Cfn::Value'; | ||||||||||
| 835 | |||||||||||
| 836 | coerce 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::Volume', | ||||||||||
| 837 | from 'HashRef', | ||||||||||
| 838 | via { | ||||||||||
| 839 | 2 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 840 | 0 | return $f | |||||||||
| 841 | } else { | ||||||||||
| 842 | 2 | return Cfn::Resource::Properties::Object::AWS::ECS::TaskDefinition::Volume->new( %$_ ); | |||||||||
| 843 | } | ||||||||||
| 844 | 2 | }; | |||||||||
| 845 | |||||||||||
| 846 | 2 | package Cfn::Resource::Properties::Object::AWS::ECS::TaskDefinition::Volume { | |||||||||
| 847 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 848 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 849 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 850 | |||||||||||
| 851 | 2 | has DockerVolumeConfiguration => (isa => 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::DockerVolumeConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 852 | 2 | has EFSVolumeConfiguration => (isa => 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::EFSVolumeConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 853 | 2 | has Host => (isa => 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::HostVolumeProperties', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 854 | 2 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 855 | } | ||||||||||
| 856 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::TaskDefinitionPlacementConstraint', | ||||||||||
| 857 | as 'Cfn::Value', | ||||||||||
| 858 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 859 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 860 | |||||||||||
| 861 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::TaskDefinitionPlacementConstraint', | ||||||||||
| 862 | from 'HashRef', | ||||||||||
| 863 | via { | ||||||||||
| 864 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 865 | 0 | return $f | |||||||||
| 866 | } else { | ||||||||||
| 867 | 0 | die 'Only accepts functions'; | |||||||||
| 868 | } | ||||||||||
| 869 | }, | ||||||||||
| 870 | from 'ArrayRef', | ||||||||||
| 871 | via { | ||||||||||
| 872 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 873 | map { | ||||||||||
| 874 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ECS::TaskDefinition::TaskDefinitionPlacementConstraint')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 875 | } @$_ | ||||||||||
| 876 | ]); | ||||||||||
| 877 | 2 | }; | |||||||||
| 878 | |||||||||||
| 879 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::TaskDefinitionPlacementConstraint', | |||||||||
| 880 | as 'Cfn::Value'; | ||||||||||
| 881 | |||||||||||
| 882 | coerce 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::TaskDefinitionPlacementConstraint', | ||||||||||
| 883 | from 'HashRef', | ||||||||||
| 884 | via { | ||||||||||
| 885 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 886 | 0 | return $f | |||||||||
| 887 | } else { | ||||||||||
| 888 | 0 | return Cfn::Resource::Properties::Object::AWS::ECS::TaskDefinition::TaskDefinitionPlacementConstraint->new( %$_ ); | |||||||||
| 889 | } | ||||||||||
| 890 | 2 | }; | |||||||||
| 891 | |||||||||||
| 892 | 2 | package Cfn::Resource::Properties::Object::AWS::ECS::TaskDefinition::TaskDefinitionPlacementConstraint { | |||||||||
| 893 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 894 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 895 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 896 | |||||||||||
| 897 | 2 | has Expression => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 898 | 2 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 899 | } | ||||||||||
| 900 | |||||||||||
| 901 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::ProxyConfiguration', | |||||||||
| 902 | as 'Cfn::Value'; | ||||||||||
| 903 | |||||||||||
| 904 | coerce 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::ProxyConfiguration', | ||||||||||
| 905 | from 'HashRef', | ||||||||||
| 906 | via { | ||||||||||
| 907 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 908 | 0 | return $f | |||||||||
| 909 | } else { | ||||||||||
| 910 | 0 | return Cfn::Resource::Properties::Object::AWS::ECS::TaskDefinition::ProxyConfiguration->new( %$_ ); | |||||||||
| 911 | } | ||||||||||
| 912 | 2 | }; | |||||||||
| 913 | |||||||||||
| 914 | 2 | package Cfn::Resource::Properties::Object::AWS::ECS::TaskDefinition::ProxyConfiguration { | |||||||||
| 915 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 916 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 917 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 918 | |||||||||||
| 919 | 2 | has ContainerName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 920 | 2 | has ProxyConfigurationProperties => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::KeyValuePair', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 921 | 2 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 922 | } | ||||||||||
| 923 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::InferenceAccelerator', | ||||||||||
| 924 | as 'Cfn::Value', | ||||||||||
| 925 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 926 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 927 | |||||||||||
| 928 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::InferenceAccelerator', | ||||||||||
| 929 | from 'HashRef', | ||||||||||
| 930 | via { | ||||||||||
| 931 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 932 | 0 | return $f | |||||||||
| 933 | } else { | ||||||||||
| 934 | 0 | die 'Only accepts functions'; | |||||||||
| 935 | } | ||||||||||
| 936 | }, | ||||||||||
| 937 | from 'ArrayRef', | ||||||||||
| 938 | via { | ||||||||||
| 939 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 940 | map { | ||||||||||
| 941 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ECS::TaskDefinition::InferenceAccelerator')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 942 | } @$_ | ||||||||||
| 943 | ]); | ||||||||||
| 944 | 2 | }; | |||||||||
| 945 | |||||||||||
| 946 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::InferenceAccelerator', | |||||||||
| 947 | as 'Cfn::Value'; | ||||||||||
| 948 | |||||||||||
| 949 | coerce 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::InferenceAccelerator', | ||||||||||
| 950 | from 'HashRef', | ||||||||||
| 951 | via { | ||||||||||
| 952 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 953 | 0 | return $f | |||||||||
| 954 | } else { | ||||||||||
| 955 | 0 | return Cfn::Resource::Properties::Object::AWS::ECS::TaskDefinition::InferenceAccelerator->new( %$_ ); | |||||||||
| 956 | } | ||||||||||
| 957 | 2 | }; | |||||||||
| 958 | |||||||||||
| 959 | 2 | package Cfn::Resource::Properties::Object::AWS::ECS::TaskDefinition::InferenceAccelerator { | |||||||||
| 960 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 961 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 962 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 963 | |||||||||||
| 964 | 2 | has DeviceName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 965 | 2 | has DeviceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 966 | } | ||||||||||
| 967 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::ContainerDefinition', | ||||||||||
| 968 | as 'Cfn::Value', | ||||||||||
| 969 | 2 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
| |||||||||||
| 970 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 971 | |||||||||||
| 972 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::ContainerDefinition', | ||||||||||
| 973 | from 'HashRef', | ||||||||||
| 974 | via { | ||||||||||
| 975 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 976 | 0 | return $f | |||||||||
| 977 | } else { | ||||||||||
| 978 | 0 | die 'Only accepts functions'; | |||||||||
| 979 | } | ||||||||||
| 980 | }, | ||||||||||
| 981 | from 'ArrayRef', | ||||||||||
| 982 | via { | ||||||||||
| 983 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 984 | map { | ||||||||||
| 985 | 2 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ECS::TaskDefinition::ContainerDefinition')->coerce($_) | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 986 | } @$_ | ||||||||||
| 987 | ]); | ||||||||||
| 988 | 2 | }; | |||||||||
| 989 | |||||||||||
| 990 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::ContainerDefinition', | |||||||||
| 991 | as 'Cfn::Value'; | ||||||||||
| 992 | |||||||||||
| 993 | coerce 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::ContainerDefinition', | ||||||||||
| 994 | from 'HashRef', | ||||||||||
| 995 | via { | ||||||||||
| 996 | 4 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 997 | 0 | return $f | |||||||||
| 998 | } else { | ||||||||||
| 999 | 4 | return Cfn::Resource::Properties::Object::AWS::ECS::TaskDefinition::ContainerDefinition->new( %$_ ); | |||||||||
| 1000 | } | ||||||||||
| 1001 | 2 | }; | |||||||||
| 1002 | |||||||||||
| 1003 | 2 | package Cfn::Resource::Properties::Object::AWS::ECS::TaskDefinition::ContainerDefinition { | |||||||||
| 1004 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 1005 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 1006 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 1007 | |||||||||||
| 1008 | 2 | has Command => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1009 | 2 | has Cpu => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1010 | 2 | has DependsOn => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::ContainerDependency', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1011 | 2 | has DisableNetworking => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1012 | 2 | has DnsSearchDomains => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1013 | 2 | has DnsServers => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1014 | 2 | has DockerLabels => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1015 | 2 | has DockerSecurityOptions => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1016 | 2 | has EntryPoint => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1017 | 2 | has Environment => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::KeyValuePair', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1018 | 2 | has EnvironmentFiles => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::EnvironmentFile', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1019 | 2 | has Essential => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1020 | 2 | has ExtraHosts => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::HostEntry', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1021 | 2 | has FirelensConfiguration => (isa => 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::FirelensConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1022 | 2 | has HealthCheck => (isa => 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::HealthCheck', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1023 | 2 | has Hostname => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1024 | 2 | has Image => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1025 | 2 | has Interactive => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1026 | 2 | has Links => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1027 | 2 | has LinuxParameters => (isa => 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::LinuxParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1028 | 2 | has LogConfiguration => (isa => 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::LogConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1029 | 2 | has Memory => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1030 | 2 | has MemoryReservation => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1031 | 2 | has MountPoints => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::MountPoint', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1032 | 2 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1033 | 2 | has PortMappings => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::PortMapping', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1034 | 2 | has Privileged => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1035 | 2 | has PseudoTerminal => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1036 | 2 | has ReadonlyRootFilesystem => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1037 | 2 | has RepositoryCredentials => (isa => 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::RepositoryCredentials', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1038 | 2 | has ResourceRequirements => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::ResourceRequirement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1039 | 2 | has Secrets => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::Secret', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1040 | 2 | has StartTimeout => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1041 | 2 | has StopTimeout => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1042 | 2 | has SystemControls => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::SystemControl', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1043 | 2 | has Ulimits => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::Ulimit', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1044 | 2 | has User => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1045 | 2 | has VolumesFrom => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::VolumeFrom', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1046 | 2 | has WorkingDirectory => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1047 | } | ||||||||||
| 1048 | |||||||||||
| 1049 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::AuthorizationConfig', | |||||||||
| 1050 | as 'Cfn::Value'; | ||||||||||
| 1051 | |||||||||||
| 1052 | coerce 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::AuthorizationConfig', | ||||||||||
| 1053 | from 'HashRef', | ||||||||||
| 1054 | via { | ||||||||||
| 1055 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 1056 | 0 | return $f | |||||||||
| 1057 | } else { | ||||||||||
| 1058 | 0 | return Cfn::Resource::Properties::Object::AWS::ECS::TaskDefinition::AuthorizationConfig->new( %$_ ); | |||||||||
| 1059 | } | ||||||||||
| 1060 | 2 | }; | |||||||||
| 1061 | |||||||||||
| 1062 | 2 | package Cfn::Resource::Properties::Object::AWS::ECS::TaskDefinition::AuthorizationConfig { | |||||||||
| 1063 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 1064 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 1065 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 1066 | |||||||||||
| 1067 | 2 | has AccessPointId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1068 | 2 | has IAM => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1069 | } | ||||||||||
| 1070 | |||||||||||
| 1071 | 2 | package Cfn::Resource::Properties::AWS::ECS::TaskDefinition { | |||||||||
| 1072 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 1073 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 1074 | 2 | extends 'Cfn::Resource::Properties'; | |||||||||
| 1075 | |||||||||||
| 1076 | 2 | has ContainerDefinitions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::ContainerDefinition', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1077 | 2 | has Cpu => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1078 | 2 | has ExecutionRoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1079 | 2 | has Family => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1080 | 2 | has InferenceAccelerators => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::InferenceAccelerator', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1081 | 2 | has IpcMode => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1082 | 2 | has Memory => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1083 | 2 | has NetworkMode => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1084 | 2 | has PidMode => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1085 | 2 | has PlacementConstraints => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::TaskDefinitionPlacementConstraint', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1086 | 2 | has ProxyConfiguration => (isa => 'Cfn::Resource::Properties::AWS::ECS::TaskDefinition::ProxyConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1087 | 2 | has RequiresCompatibilities => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1088 | 2 | has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 1089 | 2 | has TaskRoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1090 | 2 | has Volumes => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskDefinition::Volume', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 1091 | } | ||||||||||
| 1092 | |||||||||||
| 1093 | 2 | 1; | |||||||||
| 1094 | ### main pod documentation begin ### | ||||||||||
| 1095 | |||||||||||
| 1096 | =encoding UTF-8 | ||||||||||
| 1097 | |||||||||||
| 1098 | =head1 NAME | ||||||||||
| 1099 | |||||||||||
| 1100 | Cfn::Resource::AWS::ECS::TaskDefinition - Cfn resource for AWS::ECS::TaskDefinition | ||||||||||
| 1101 | |||||||||||
| 1102 | =head1 DESCRIPTION | ||||||||||
| 1103 | |||||||||||
| 1104 | This module implements a Perl module that represents the CloudFormation object AWS::ECS::TaskDefinition. | ||||||||||
| 1105 | |||||||||||
| 1106 | See L<Cfn> for more information on how to use it. | ||||||||||
| 1107 | |||||||||||
| 1108 | =head1 AUTHOR | ||||||||||
| 1109 | |||||||||||
| 1110 | Jose Luis Martinez | ||||||||||
| 1111 | CAPSiDE | ||||||||||
| 1112 | jlmartinez@capside.com | ||||||||||
| 1113 | |||||||||||
| 1114 | =head1 COPYRIGHT and LICENSE | ||||||||||
| 1115 | |||||||||||
| 1116 | Copyright (c) 2013 by CAPSiDE | ||||||||||
| 1117 | This code is distributed under the Apache 2 License. The full text of the | ||||||||||
| 1118 | license can be found in the LICENSE file included with this module. | ||||||||||
| 1119 | |||||||||||
| 1120 | =cut | ||||||||||