| 1 | # AWS::ECS::Service 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::Service', | ||||||||||
| 5 | from 'HashRef', | ||||||||||
| 6 | 2 | ▶ | via { Cfn::Resource::Properties::AWS::ECS::Service->new( %$_ ) }; | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 2 | package Cfn::Resource::AWS::ECS::Service { | |||||||||
| 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::Service', is => 'rw', coerce => 1); | |||||||||
| 12 | |||||||||||
| 13 | sub AttributeList { | ||||||||||
| 14 | 1 | ▶ | [ 'Name' ] | ||||||||
|
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 | |||||||||||
| 23 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::Service::AwsVpcConfiguration', | |||||||||
| 24 | as 'Cfn::Value'; | ||||||||||
| 25 | |||||||||||
| 26 | coerce 'Cfn::Resource::Properties::AWS::ECS::Service::AwsVpcConfiguration', | ||||||||||
| 27 | from 'HashRef', | ||||||||||
| 28 | via { | ||||||||||
| 29 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 30 | 0 | return $f | |||||||||
| 31 | } else { | ||||||||||
| 32 | 0 | return Cfn::Resource::Properties::AWS::ECS::Service::AwsVpcConfigurationValue->new( %$_ ); | |||||||||
| 33 | } | ||||||||||
| 34 | 2 | }; | |||||||||
| 35 | |||||||||||
| 36 | 2 | package Cfn::Resource::Properties::AWS::ECS::Service::AwsVpcConfigurationValue { | |||||||||
| 37 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 38 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 39 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 40 | |||||||||||
| 41 | 2 | has AssignPublicIp => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 42 | 2 | has SecurityGroups => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 43 | 2 | has Subnets => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 44 | } | ||||||||||
| 45 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ECS::Service::ServiceRegistry', | ||||||||||
| 46 | as 'Cfn::Value', | ||||||||||
| 47 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 48 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 49 | |||||||||||
| 50 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ECS::Service::ServiceRegistry', | ||||||||||
| 51 | from 'HashRef', | ||||||||||
| 52 | via { | ||||||||||
| 53 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 54 | 0 | return $f | |||||||||
| 55 | } else { | ||||||||||
| 56 | 0 | die 'Only accepts functions'; | |||||||||
| 57 | } | ||||||||||
| 58 | }, | ||||||||||
| 59 | from 'ArrayRef', | ||||||||||
| 60 | via { | ||||||||||
| 61 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 62 | map { | ||||||||||
| 63 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ECS::Service::ServiceRegistry')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 64 | } @$_ | ||||||||||
| 65 | ]); | ||||||||||
| 66 | 2 | }; | |||||||||
| 67 | |||||||||||
| 68 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::Service::ServiceRegistry', | |||||||||
| 69 | as 'Cfn::Value'; | ||||||||||
| 70 | |||||||||||
| 71 | coerce 'Cfn::Resource::Properties::AWS::ECS::Service::ServiceRegistry', | ||||||||||
| 72 | from 'HashRef', | ||||||||||
| 73 | via { | ||||||||||
| 74 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 75 | 0 | return $f | |||||||||
| 76 | } else { | ||||||||||
| 77 | 0 | return Cfn::Resource::Properties::AWS::ECS::Service::ServiceRegistryValue->new( %$_ ); | |||||||||
| 78 | } | ||||||||||
| 79 | 2 | }; | |||||||||
| 80 | |||||||||||
| 81 | 2 | package Cfn::Resource::Properties::AWS::ECS::Service::ServiceRegistryValue { | |||||||||
| 82 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 83 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 84 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 85 | |||||||||||
| 86 | 2 | has ContainerName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 87 | 2 | has ContainerPort => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 88 | 2 | has Port => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 89 | 2 | has RegistryArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 90 | } | ||||||||||
| 91 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ECS::Service::PlacementStrategy', | ||||||||||
| 92 | as 'Cfn::Value', | ||||||||||
| 93 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 94 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 95 | |||||||||||
| 96 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ECS::Service::PlacementStrategy', | ||||||||||
| 97 | from 'HashRef', | ||||||||||
| 98 | via { | ||||||||||
| 99 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 100 | 0 | return $f | |||||||||
| 101 | } else { | ||||||||||
| 102 | 0 | die 'Only accepts functions'; | |||||||||
| 103 | } | ||||||||||
| 104 | }, | ||||||||||
| 105 | from 'ArrayRef', | ||||||||||
| 106 | via { | ||||||||||
| 107 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 108 | map { | ||||||||||
| 109 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ECS::Service::PlacementStrategy')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 110 | } @$_ | ||||||||||
| 111 | ]); | ||||||||||
| 112 | 2 | }; | |||||||||
| 113 | |||||||||||
| 114 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::Service::PlacementStrategy', | |||||||||
| 115 | as 'Cfn::Value'; | ||||||||||
| 116 | |||||||||||
| 117 | coerce 'Cfn::Resource::Properties::AWS::ECS::Service::PlacementStrategy', | ||||||||||
| 118 | from 'HashRef', | ||||||||||
| 119 | via { | ||||||||||
| 120 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 121 | 0 | return $f | |||||||||
| 122 | } else { | ||||||||||
| 123 | 0 | return Cfn::Resource::Properties::AWS::ECS::Service::PlacementStrategyValue->new( %$_ ); | |||||||||
| 124 | } | ||||||||||
| 125 | 2 | }; | |||||||||
| 126 | |||||||||||
| 127 | 2 | package Cfn::Resource::Properties::AWS::ECS::Service::PlacementStrategyValue { | |||||||||
| 128 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 129 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 130 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 131 | |||||||||||
| 132 | 2 | has Field => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 133 | 2 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 134 | } | ||||||||||
| 135 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ECS::Service::PlacementConstraint', | ||||||||||
| 136 | as 'Cfn::Value', | ||||||||||
| 137 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 138 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 139 | |||||||||||
| 140 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ECS::Service::PlacementConstraint', | ||||||||||
| 141 | from 'HashRef', | ||||||||||
| 142 | via { | ||||||||||
| 143 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 144 | 0 | return $f | |||||||||
| 145 | } else { | ||||||||||
| 146 | 0 | die 'Only accepts functions'; | |||||||||
| 147 | } | ||||||||||
| 148 | }, | ||||||||||
| 149 | from 'ArrayRef', | ||||||||||
| 150 | via { | ||||||||||
| 151 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 152 | map { | ||||||||||
| 153 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ECS::Service::PlacementConstraint')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 154 | } @$_ | ||||||||||
| 155 | ]); | ||||||||||
| 156 | 2 | }; | |||||||||
| 157 | |||||||||||
| 158 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::Service::PlacementConstraint', | |||||||||
| 159 | as 'Cfn::Value'; | ||||||||||
| 160 | |||||||||||
| 161 | coerce 'Cfn::Resource::Properties::AWS::ECS::Service::PlacementConstraint', | ||||||||||
| 162 | from 'HashRef', | ||||||||||
| 163 | via { | ||||||||||
| 164 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 165 | 0 | return $f | |||||||||
| 166 | } else { | ||||||||||
| 167 | 0 | return Cfn::Resource::Properties::AWS::ECS::Service::PlacementConstraintValue->new( %$_ ); | |||||||||
| 168 | } | ||||||||||
| 169 | 2 | }; | |||||||||
| 170 | |||||||||||
| 171 | 2 | package Cfn::Resource::Properties::AWS::ECS::Service::PlacementConstraintValue { | |||||||||
| 172 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 173 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 174 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 175 | |||||||||||
| 176 | 2 | has Expression => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 177 | 2 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 178 | } | ||||||||||
| 179 | |||||||||||
| 180 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::Service::NetworkConfiguration', | |||||||||
| 181 | as 'Cfn::Value'; | ||||||||||
| 182 | |||||||||||
| 183 | coerce 'Cfn::Resource::Properties::AWS::ECS::Service::NetworkConfiguration', | ||||||||||
| 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 | return Cfn::Resource::Properties::AWS::ECS::Service::NetworkConfigurationValue->new( %$_ ); | |||||||||
| 190 | } | ||||||||||
| 191 | 2 | }; | |||||||||
| 192 | |||||||||||
| 193 | 2 | package Cfn::Resource::Properties::AWS::ECS::Service::NetworkConfigurationValue { | |||||||||
| 194 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 195 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 196 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 197 | |||||||||||
| 198 | 2 | has AwsvpcConfiguration => (isa => 'Cfn::Resource::Properties::AWS::ECS::Service::AwsVpcConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 199 | } | ||||||||||
| 200 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ECS::Service::LoadBalancer', | ||||||||||
| 201 | as 'Cfn::Value', | ||||||||||
| 202 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 203 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 204 | |||||||||||
| 205 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ECS::Service::LoadBalancer', | ||||||||||
| 206 | from 'HashRef', | ||||||||||
| 207 | via { | ||||||||||
| 208 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 209 | 0 | return $f | |||||||||
| 210 | } else { | ||||||||||
| 211 | 0 | die 'Only accepts functions'; | |||||||||
| 212 | } | ||||||||||
| 213 | }, | ||||||||||
| 214 | from 'ArrayRef', | ||||||||||
| 215 | via { | ||||||||||
| 216 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 217 | map { | ||||||||||
| 218 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ECS::Service::LoadBalancer')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 219 | } @$_ | ||||||||||
| 220 | ]); | ||||||||||
| 221 | 2 | }; | |||||||||
| 222 | |||||||||||
| 223 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::Service::LoadBalancer', | |||||||||
| 224 | as 'Cfn::Value'; | ||||||||||
| 225 | |||||||||||
| 226 | coerce 'Cfn::Resource::Properties::AWS::ECS::Service::LoadBalancer', | ||||||||||
| 227 | from 'HashRef', | ||||||||||
| 228 | via { | ||||||||||
| 229 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 230 | 0 | return $f | |||||||||
| 231 | } else { | ||||||||||
| 232 | 0 | return Cfn::Resource::Properties::AWS::ECS::Service::LoadBalancerValue->new( %$_ ); | |||||||||
| 233 | } | ||||||||||
| 234 | 2 | }; | |||||||||
| 235 | |||||||||||
| 236 | 2 | package Cfn::Resource::Properties::AWS::ECS::Service::LoadBalancerValue { | |||||||||
| 237 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 238 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 239 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 240 | |||||||||||
| 241 | 2 | has ContainerName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 242 | 2 | has ContainerPort => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 243 | 2 | has LoadBalancerName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 244 | 2 | has TargetGroupArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 245 | } | ||||||||||
| 246 | |||||||||||
| 247 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::Service::DeploymentController', | |||||||||
| 248 | as 'Cfn::Value'; | ||||||||||
| 249 | |||||||||||
| 250 | coerce 'Cfn::Resource::Properties::AWS::ECS::Service::DeploymentController', | ||||||||||
| 251 | from 'HashRef', | ||||||||||
| 252 | via { | ||||||||||
| 253 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 254 | 0 | return $f | |||||||||
| 255 | } else { | ||||||||||
| 256 | 0 | return Cfn::Resource::Properties::AWS::ECS::Service::DeploymentControllerValue->new( %$_ ); | |||||||||
| 257 | } | ||||||||||
| 258 | 2 | }; | |||||||||
| 259 | |||||||||||
| 260 | 2 | package Cfn::Resource::Properties::AWS::ECS::Service::DeploymentControllerValue { | |||||||||
| 261 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 262 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 263 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 264 | |||||||||||
| 265 | 2 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 266 | } | ||||||||||
| 267 | |||||||||||
| 268 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::Service::DeploymentConfiguration', | |||||||||
| 269 | as 'Cfn::Value'; | ||||||||||
| 270 | |||||||||||
| 271 | coerce 'Cfn::Resource::Properties::AWS::ECS::Service::DeploymentConfiguration', | ||||||||||
| 272 | from 'HashRef', | ||||||||||
| 273 | via { | ||||||||||
| 274 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 275 | 0 | return $f | |||||||||
| 276 | } else { | ||||||||||
| 277 | 0 | return Cfn::Resource::Properties::AWS::ECS::Service::DeploymentConfigurationValue->new( %$_ ); | |||||||||
| 278 | } | ||||||||||
| 279 | 2 | }; | |||||||||
| 280 | |||||||||||
| 281 | 2 | package Cfn::Resource::Properties::AWS::ECS::Service::DeploymentConfigurationValue { | |||||||||
| 282 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 283 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 284 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 285 | |||||||||||
| 286 | 2 | has MaximumPercent => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 287 | 2 | has MinimumHealthyPercent => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 288 | } | ||||||||||
| 289 | |||||||||||
| 290 | 2 | package Cfn::Resource::Properties::AWS::ECS::Service { | |||||||||
| 291 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 292 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 293 | 2 | extends 'Cfn::Resource::Properties'; | |||||||||
| 294 | |||||||||||
| 295 | 2 | has Cluster => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 296 | 2 | has DeploymentConfiguration => (isa => 'Cfn::Resource::Properties::AWS::ECS::Service::DeploymentConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 297 | 2 | has DeploymentController => (isa => 'Cfn::Resource::Properties::AWS::ECS::Service::DeploymentController', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 298 | 2 | has DesiredCount => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 299 | 2 | has EnableECSManagedTags => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 300 | 2 | has HealthCheckGracePeriodSeconds => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 301 | 2 | has LaunchType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 302 | 2 | has LoadBalancers => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::Service::LoadBalancer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 303 | 2 | has NetworkConfiguration => (isa => 'Cfn::Resource::Properties::AWS::ECS::Service::NetworkConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 304 | 2 | has PlacementConstraints => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::Service::PlacementConstraint', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 305 | 2 | has PlacementStrategies => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::Service::PlacementStrategy', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 306 | 2 | has PlatformVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 307 | 2 | has PropagateTags => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 308 | 2 | has Role => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 309 | 2 | has SchedulingStrategy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 310 | 2 | has ServiceName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 311 | 2 | has ServiceRegistries => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::Service::ServiceRegistry', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 312 | 2 | has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 313 | 2 | has TaskDefinition => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 314 | } | ||||||||||
| 315 | |||||||||||
| 316 | 2 | 1; | |||||||||