| 1 | # AWS::ECS::Service generated from spec 20.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 | ▶ | [ '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 | |||||||||||
| 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::Object::AWS::ECS::Service::AwsVpcConfiguration->new( %$_ ); | |||||||||
| 33 | } | ||||||||||
| 34 | 2 | }; | |||||||||
| 35 | |||||||||||
| 36 | 2 | package Cfn::Resource::Properties::Object::AWS::ECS::Service::AwsVpcConfiguration { | |||||||||
| 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, 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::Object::AWS::ECS::Service::ServiceRegistry->new( %$_ ); | |||||||||
| 78 | } | ||||||||||
| 79 | 2 | }; | |||||||||
| 80 | |||||||||||
| 81 | 2 | package Cfn::Resource::Properties::Object::AWS::ECS::Service::ServiceRegistry { | |||||||||
| 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::Object::AWS::ECS::Service::PlacementStrategy->new( %$_ ); | |||||||||
| 124 | } | ||||||||||
| 125 | 2 | }; | |||||||||
| 126 | |||||||||||
| 127 | 2 | package Cfn::Resource::Properties::Object::AWS::ECS::Service::PlacementStrategy { | |||||||||
| 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::Object::AWS::ECS::Service::PlacementConstraint->new( %$_ ); | |||||||||
| 168 | } | ||||||||||
| 169 | 2 | }; | |||||||||
| 170 | |||||||||||
| 171 | 2 | package Cfn::Resource::Properties::Object::AWS::ECS::Service::PlacementConstraint { | |||||||||
| 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::Object::AWS::ECS::Service::NetworkConfiguration->new( %$_ ); | |||||||||
| 190 | } | ||||||||||
| 191 | 2 | }; | |||||||||
| 192 | |||||||||||
| 193 | 2 | package Cfn::Resource::Properties::Object::AWS::ECS::Service::NetworkConfiguration { | |||||||||
| 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::Object::AWS::ECS::Service::LoadBalancer->new( %$_ ); | |||||||||
| 233 | } | ||||||||||
| 234 | 2 | }; | |||||||||
| 235 | |||||||||||
| 236 | 2 | package Cfn::Resource::Properties::Object::AWS::ECS::Service::LoadBalancer { | |||||||||
| 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, 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::Object::AWS::ECS::Service::DeploymentController->new( %$_ ); | |||||||||
| 257 | } | ||||||||||
| 258 | 2 | }; | |||||||||
| 259 | |||||||||||
| 260 | 2 | package Cfn::Resource::Properties::Object::AWS::ECS::Service::DeploymentController { | |||||||||
| 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::Object::AWS::ECS::Service::DeploymentConfiguration->new( %$_ ); | |||||||||
| 278 | } | ||||||||||
| 279 | 2 | }; | |||||||||
| 280 | |||||||||||
| 281 | 2 | package Cfn::Resource::Properties::Object::AWS::ECS::Service::DeploymentConfiguration { | |||||||||
| 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 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ECS::Service::CapacityProviderStrategyItem', | ||||||||||
| 290 | as 'Cfn::Value', | ||||||||||
| 291 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 292 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 293 | |||||||||||
| 294 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ECS::Service::CapacityProviderStrategyItem', | ||||||||||
| 295 | from 'HashRef', | ||||||||||
| 296 | via { | ||||||||||
| 297 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 298 | 0 | return $f | |||||||||
| 299 | } else { | ||||||||||
| 300 | 0 | die 'Only accepts functions'; | |||||||||
| 301 | } | ||||||||||
| 302 | }, | ||||||||||
| 303 | from 'ArrayRef', | ||||||||||
| 304 | via { | ||||||||||
| 305 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 306 | map { | ||||||||||
| 307 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ECS::Service::CapacityProviderStrategyItem')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 308 | } @$_ | ||||||||||
| 309 | ]); | ||||||||||
| 310 | 2 | }; | |||||||||
| 311 | |||||||||||
| 312 | 2 | subtype 'Cfn::Resource::Properties::AWS::ECS::Service::CapacityProviderStrategyItem', | |||||||||
| 313 | as 'Cfn::Value'; | ||||||||||
| 314 | |||||||||||
| 315 | coerce 'Cfn::Resource::Properties::AWS::ECS::Service::CapacityProviderStrategyItem', | ||||||||||
| 316 | from 'HashRef', | ||||||||||
| 317 | via { | ||||||||||
| 318 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 319 | 0 | return $f | |||||||||
| 320 | } else { | ||||||||||
| 321 | 0 | return Cfn::Resource::Properties::Object::AWS::ECS::Service::CapacityProviderStrategyItem->new( %$_ ); | |||||||||
| 322 | } | ||||||||||
| 323 | 2 | }; | |||||||||
| 324 | |||||||||||
| 325 | 2 | package Cfn::Resource::Properties::Object::AWS::ECS::Service::CapacityProviderStrategyItem { | |||||||||
| 326 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 327 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 328 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 329 | |||||||||||
| 330 | 2 | has Base => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 331 | 2 | has CapacityProvider => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 332 | 2 | has Weight => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 333 | } | ||||||||||
| 334 | |||||||||||
| 335 | 2 | package Cfn::Resource::Properties::AWS::ECS::Service { | |||||||||
| 336 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 337 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 338 | 2 | extends 'Cfn::Resource::Properties'; | |||||||||
| 339 | |||||||||||
| 340 | 2 | has CapacityProviderStrategy => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::Service::CapacityProviderStrategyItem', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 341 | 2 | has Cluster => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 342 | 2 | has DeploymentConfiguration => (isa => 'Cfn::Resource::Properties::AWS::ECS::Service::DeploymentConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 343 | 2 | has DeploymentController => (isa => 'Cfn::Resource::Properties::AWS::ECS::Service::DeploymentController', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 344 | 2 | has DesiredCount => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 345 | 2 | has EnableECSManagedTags => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 346 | 2 | has HealthCheckGracePeriodSeconds => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 347 | 2 | has LaunchType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 348 | 2 | has LoadBalancers => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::Service::LoadBalancer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 349 | 2 | has NetworkConfiguration => (isa => 'Cfn::Resource::Properties::AWS::ECS::Service::NetworkConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 350 | 2 | has PlacementConstraints => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::Service::PlacementConstraint', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 351 | 2 | has PlacementStrategies => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::Service::PlacementStrategy', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 352 | 2 | has PlatformVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 353 | 2 | has PropagateTags => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 354 | 2 | has Role => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 355 | 2 | has SchedulingStrategy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 356 | 2 | has ServiceArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 357 | 2 | has ServiceName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 358 | 2 | has ServiceRegistries => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::Service::ServiceRegistry', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 359 | 2 | has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 360 | 2 | has TaskDefinition => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 361 | } | ||||||||||
| 362 | |||||||||||
| 363 | 2 | 1; | |||||||||
| 364 | ### main pod documentation begin ### | ||||||||||
| 365 | |||||||||||
| 366 | =encoding UTF-8 | ||||||||||
| 367 | |||||||||||
| 368 | =head1 NAME | ||||||||||
| 369 | |||||||||||
| 370 | Cfn::Resource::AWS::ECS::Service - Cfn resource for AWS::ECS::Service | ||||||||||
| 371 | |||||||||||
| 372 | =head1 DESCRIPTION | ||||||||||
| 373 | |||||||||||
| 374 | This module implements a Perl module that represents the CloudFormation object AWS::ECS::Service. | ||||||||||
| 375 | |||||||||||
| 376 | See L<Cfn> for more information on how to use it. | ||||||||||
| 377 | |||||||||||
| 378 | =head1 AUTHOR | ||||||||||
| 379 | |||||||||||
| 380 | Jose Luis Martinez | ||||||||||
| 381 | CAPSiDE | ||||||||||
| 382 | jlmartinez@capside.com | ||||||||||
| 383 | |||||||||||
| 384 | =head1 COPYRIGHT and LICENSE | ||||||||||
| 385 | |||||||||||
| 386 | Copyright (c) 2013 by CAPSiDE | ||||||||||
| 387 | This code is distributed under the Apache 2 License. The full text of the | ||||||||||
| 388 | license can be found in the LICENSE file included with this module. | ||||||||||
| 389 | |||||||||||
| 390 | =cut | ||||||||||