| 1 | # AWS::ECS::Service generated from spec 34.0.0 | ||||||||||
| 2 | 1 | ▶ | 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 | 1 | package Cfn::Resource::AWS::ECS::Service { | |||||||||
| 9 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 1 | extends 'Cfn::Resource'; | |||||||||
| 11 | 1 | has Properties => (isa => 'Cfn::Resource::Properties::AWS::ECS::Service', is => 'rw', coerce => 1); | |||||||||
| 12 | |||||||||||
| 13 | 0 | ▶ | sub AttributeList { | ||||||||
|
Subroutine
AttributeList: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 14 | 0 | [ 'Name' ] | |||||||||
| 15 | } | ||||||||||
| 16 | 0 | ▶ | sub supported_regions { | ||||||||
|
Subroutine
supported_regions: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 17 | 0 | [ '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' ] | |||||||||
| 18 | } | ||||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | |||||||||||
| 22 | |||||||||||
| 23 | 1 | subtype 'Cfn::Resource::Properties::AWS::ECS::Service::DeploymentCircuitBreaker', | |||||||||
| 24 | as 'Cfn::Value'; | ||||||||||
| 25 | |||||||||||
| 26 | coerce 'Cfn::Resource::Properties::AWS::ECS::Service::DeploymentCircuitBreaker', | ||||||||||
| 27 | from 'HashRef', | ||||||||||
| 28 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 29 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 30 | 0 | return $f | |||||||||
| 31 | } else { | ||||||||||
| 32 | 0 | return Cfn::Resource::Properties::Object::AWS::ECS::Service::DeploymentCircuitBreaker->new( %$_ ); | |||||||||
| 33 | } | ||||||||||
| 34 | 1 | }; | |||||||||
| 35 | |||||||||||
| 36 | 1 | package Cfn::Resource::Properties::Object::AWS::ECS::Service::DeploymentCircuitBreaker { | |||||||||
| 37 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 38 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 39 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 40 | |||||||||||
| 41 | 1 | has Enable => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 42 | 1 | has Rollback => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 43 | } | ||||||||||
| 44 | |||||||||||
| 45 | 1 | subtype 'Cfn::Resource::Properties::AWS::ECS::Service::AwsVpcConfiguration', | |||||||||
| 46 | as 'Cfn::Value'; | ||||||||||
| 47 | |||||||||||
| 48 | coerce 'Cfn::Resource::Properties::AWS::ECS::Service::AwsVpcConfiguration', | ||||||||||
| 49 | from 'HashRef', | ||||||||||
| 50 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 51 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 52 | 0 | return $f | |||||||||
| 53 | } else { | ||||||||||
| 54 | 0 | return Cfn::Resource::Properties::Object::AWS::ECS::Service::AwsVpcConfiguration->new( %$_ ); | |||||||||
| 55 | } | ||||||||||
| 56 | 1 | }; | |||||||||
| 57 | |||||||||||
| 58 | 1 | package Cfn::Resource::Properties::Object::AWS::ECS::Service::AwsVpcConfiguration { | |||||||||
| 59 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 60 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 61 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 62 | |||||||||||
| 63 | 1 | has AssignPublicIp => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 64 | 1 | has SecurityGroups => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 65 | 1 | has Subnets => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 66 | } | ||||||||||
| 67 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ECS::Service::ServiceRegistry', | ||||||||||
| 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::Service::ServiceRegistry', | ||||||||||
| 73 | from 'HashRef', | ||||||||||
| 74 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 75 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 76 | 0 | return $f | |||||||||
| 77 | } else { | ||||||||||
| 78 | 0 | die 'Only accepts functions'; | |||||||||
| 79 | } | ||||||||||
| 80 | }, | ||||||||||
| 81 | from 'ArrayRef', | ||||||||||
| 82 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 83 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 84 | map { | ||||||||||
| 85 | 0 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ECS::Service::ServiceRegistry')->coerce($_) | |||||||||
| 86 | } @$_ | ||||||||||
| 87 | ]); | ||||||||||
| 88 | 1 | }; | |||||||||
| 89 | |||||||||||
| 90 | 1 | subtype 'Cfn::Resource::Properties::AWS::ECS::Service::ServiceRegistry', | |||||||||
| 91 | as 'Cfn::Value'; | ||||||||||
| 92 | |||||||||||
| 93 | coerce 'Cfn::Resource::Properties::AWS::ECS::Service::ServiceRegistry', | ||||||||||
| 94 | from 'HashRef', | ||||||||||
| 95 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 96 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 97 | 0 | return $f | |||||||||
| 98 | } else { | ||||||||||
| 99 | 0 | return Cfn::Resource::Properties::Object::AWS::ECS::Service::ServiceRegistry->new( %$_ ); | |||||||||
| 100 | } | ||||||||||
| 101 | 1 | }; | |||||||||
| 102 | |||||||||||
| 103 | 1 | package Cfn::Resource::Properties::Object::AWS::ECS::Service::ServiceRegistry { | |||||||||
| 104 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 105 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 106 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 107 | |||||||||||
| 108 | 1 | has ContainerName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 109 | 1 | has ContainerPort => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 110 | 1 | has Port => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 111 | 1 | has RegistryArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 112 | } | ||||||||||
| 113 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ECS::Service::PlacementStrategy', | ||||||||||
| 114 | as 'Cfn::Value', | ||||||||||
| 115 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 116 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 117 | |||||||||||
| 118 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ECS::Service::PlacementStrategy', | ||||||||||
| 119 | from 'HashRef', | ||||||||||
| 120 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 121 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 122 | 0 | return $f | |||||||||
| 123 | } else { | ||||||||||
| 124 | 0 | die 'Only accepts functions'; | |||||||||
| 125 | } | ||||||||||
| 126 | }, | ||||||||||
| 127 | from 'ArrayRef', | ||||||||||
| 128 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 129 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 130 | map { | ||||||||||
| 131 | 0 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ECS::Service::PlacementStrategy')->coerce($_) | |||||||||
| 132 | } @$_ | ||||||||||
| 133 | ]); | ||||||||||
| 134 | 1 | }; | |||||||||
| 135 | |||||||||||
| 136 | 1 | subtype 'Cfn::Resource::Properties::AWS::ECS::Service::PlacementStrategy', | |||||||||
| 137 | as 'Cfn::Value'; | ||||||||||
| 138 | |||||||||||
| 139 | coerce 'Cfn::Resource::Properties::AWS::ECS::Service::PlacementStrategy', | ||||||||||
| 140 | from 'HashRef', | ||||||||||
| 141 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 142 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 143 | 0 | return $f | |||||||||
| 144 | } else { | ||||||||||
| 145 | 0 | return Cfn::Resource::Properties::Object::AWS::ECS::Service::PlacementStrategy->new( %$_ ); | |||||||||
| 146 | } | ||||||||||
| 147 | 1 | }; | |||||||||
| 148 | |||||||||||
| 149 | 1 | package Cfn::Resource::Properties::Object::AWS::ECS::Service::PlacementStrategy { | |||||||||
| 150 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 151 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 152 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 153 | |||||||||||
| 154 | 1 | has Field => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 155 | 1 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 156 | } | ||||||||||
| 157 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ECS::Service::PlacementConstraint', | ||||||||||
| 158 | as 'Cfn::Value', | ||||||||||
| 159 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 160 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 161 | |||||||||||
| 162 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ECS::Service::PlacementConstraint', | ||||||||||
| 163 | from 'HashRef', | ||||||||||
| 164 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 165 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 166 | 0 | return $f | |||||||||
| 167 | } else { | ||||||||||
| 168 | 0 | die 'Only accepts functions'; | |||||||||
| 169 | } | ||||||||||
| 170 | }, | ||||||||||
| 171 | from 'ArrayRef', | ||||||||||
| 172 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 173 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 174 | map { | ||||||||||
| 175 | 0 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ECS::Service::PlacementConstraint')->coerce($_) | |||||||||
| 176 | } @$_ | ||||||||||
| 177 | ]); | ||||||||||
| 178 | 1 | }; | |||||||||
| 179 | |||||||||||
| 180 | 1 | subtype 'Cfn::Resource::Properties::AWS::ECS::Service::PlacementConstraint', | |||||||||
| 181 | as 'Cfn::Value'; | ||||||||||
| 182 | |||||||||||
| 183 | coerce 'Cfn::Resource::Properties::AWS::ECS::Service::PlacementConstraint', | ||||||||||
| 184 | from 'HashRef', | ||||||||||
| 185 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 186 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 187 | 0 | return $f | |||||||||
| 188 | } else { | ||||||||||
| 189 | 0 | return Cfn::Resource::Properties::Object::AWS::ECS::Service::PlacementConstraint->new( %$_ ); | |||||||||
| 190 | } | ||||||||||
| 191 | 1 | }; | |||||||||
| 192 | |||||||||||
| 193 | 1 | package Cfn::Resource::Properties::Object::AWS::ECS::Service::PlacementConstraint { | |||||||||
| 194 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 195 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 196 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 197 | |||||||||||
| 198 | 1 | has Expression => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 199 | 1 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 200 | } | ||||||||||
| 201 | |||||||||||
| 202 | 1 | subtype 'Cfn::Resource::Properties::AWS::ECS::Service::NetworkConfiguration', | |||||||||
| 203 | as 'Cfn::Value'; | ||||||||||
| 204 | |||||||||||
| 205 | coerce 'Cfn::Resource::Properties::AWS::ECS::Service::NetworkConfiguration', | ||||||||||
| 206 | from 'HashRef', | ||||||||||
| 207 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 208 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 209 | 0 | return $f | |||||||||
| 210 | } else { | ||||||||||
| 211 | 0 | return Cfn::Resource::Properties::Object::AWS::ECS::Service::NetworkConfiguration->new( %$_ ); | |||||||||
| 212 | } | ||||||||||
| 213 | 1 | }; | |||||||||
| 214 | |||||||||||
| 215 | 1 | package Cfn::Resource::Properties::Object::AWS::ECS::Service::NetworkConfiguration { | |||||||||
| 216 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 217 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 218 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 219 | |||||||||||
| 220 | 1 | has AwsvpcConfiguration => (isa => 'Cfn::Resource::Properties::AWS::ECS::Service::AwsVpcConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 221 | } | ||||||||||
| 222 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ECS::Service::LoadBalancer', | ||||||||||
| 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::Service::LoadBalancer', | ||||||||||
| 228 | from 'HashRef', | ||||||||||
| 229 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 230 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 231 | 0 | return $f | |||||||||
| 232 | } else { | ||||||||||
| 233 | 0 | die 'Only accepts functions'; | |||||||||
| 234 | } | ||||||||||
| 235 | }, | ||||||||||
| 236 | from 'ArrayRef', | ||||||||||
| 237 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 238 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 239 | map { | ||||||||||
| 240 | 0 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ECS::Service::LoadBalancer')->coerce($_) | |||||||||
| 241 | } @$_ | ||||||||||
| 242 | ]); | ||||||||||
| 243 | 1 | }; | |||||||||
| 244 | |||||||||||
| 245 | 1 | subtype 'Cfn::Resource::Properties::AWS::ECS::Service::LoadBalancer', | |||||||||
| 246 | as 'Cfn::Value'; | ||||||||||
| 247 | |||||||||||
| 248 | coerce 'Cfn::Resource::Properties::AWS::ECS::Service::LoadBalancer', | ||||||||||
| 249 | from 'HashRef', | ||||||||||
| 250 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 251 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 252 | 0 | return $f | |||||||||
| 253 | } else { | ||||||||||
| 254 | 0 | return Cfn::Resource::Properties::Object::AWS::ECS::Service::LoadBalancer->new( %$_ ); | |||||||||
| 255 | } | ||||||||||
| 256 | 1 | }; | |||||||||
| 257 | |||||||||||
| 258 | 1 | package Cfn::Resource::Properties::Object::AWS::ECS::Service::LoadBalancer { | |||||||||
| 259 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 260 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 261 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 262 | |||||||||||
| 263 | 1 | has ContainerName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 264 | 1 | has ContainerPort => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 265 | 1 | has LoadBalancerName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 266 | 1 | has TargetGroupArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 267 | } | ||||||||||
| 268 | |||||||||||
| 269 | 1 | subtype 'Cfn::Resource::Properties::AWS::ECS::Service::DeploymentController', | |||||||||
| 270 | as 'Cfn::Value'; | ||||||||||
| 271 | |||||||||||
| 272 | coerce 'Cfn::Resource::Properties::AWS::ECS::Service::DeploymentController', | ||||||||||
| 273 | from 'HashRef', | ||||||||||
| 274 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 275 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 276 | 0 | return $f | |||||||||
| 277 | } else { | ||||||||||
| 278 | 0 | return Cfn::Resource::Properties::Object::AWS::ECS::Service::DeploymentController->new( %$_ ); | |||||||||
| 279 | } | ||||||||||
| 280 | 1 | }; | |||||||||
| 281 | |||||||||||
| 282 | 1 | package Cfn::Resource::Properties::Object::AWS::ECS::Service::DeploymentController { | |||||||||
| 283 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 284 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 285 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 286 | |||||||||||
| 287 | 1 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 288 | } | ||||||||||
| 289 | |||||||||||
| 290 | 1 | subtype 'Cfn::Resource::Properties::AWS::ECS::Service::DeploymentConfiguration', | |||||||||
| 291 | as 'Cfn::Value'; | ||||||||||
| 292 | |||||||||||
| 293 | coerce 'Cfn::Resource::Properties::AWS::ECS::Service::DeploymentConfiguration', | ||||||||||
| 294 | from 'HashRef', | ||||||||||
| 295 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 296 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 297 | 0 | return $f | |||||||||
| 298 | } else { | ||||||||||
| 299 | 0 | return Cfn::Resource::Properties::Object::AWS::ECS::Service::DeploymentConfiguration->new( %$_ ); | |||||||||
| 300 | } | ||||||||||
| 301 | 1 | }; | |||||||||
| 302 | |||||||||||
| 303 | 1 | package Cfn::Resource::Properties::Object::AWS::ECS::Service::DeploymentConfiguration { | |||||||||
| 304 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 305 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 306 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 307 | |||||||||||
| 308 | 1 | has DeploymentCircuitBreaker => (isa => 'Cfn::Resource::Properties::AWS::ECS::Service::DeploymentCircuitBreaker', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 309 | 1 | has MaximumPercent => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 310 | 1 | has MinimumHealthyPercent => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 311 | } | ||||||||||
| 312 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ECS::Service::CapacityProviderStrategyItem', | ||||||||||
| 313 | as 'Cfn::Value', | ||||||||||
| 314 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 315 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 316 | |||||||||||
| 317 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ECS::Service::CapacityProviderStrategyItem', | ||||||||||
| 318 | from 'HashRef', | ||||||||||
| 319 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 320 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 321 | 0 | return $f | |||||||||
| 322 | } else { | ||||||||||
| 323 | 0 | die 'Only accepts functions'; | |||||||||
| 324 | } | ||||||||||
| 325 | }, | ||||||||||
| 326 | from 'ArrayRef', | ||||||||||
| 327 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 328 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 329 | map { | ||||||||||
| 330 | 0 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ECS::Service::CapacityProviderStrategyItem')->coerce($_) | |||||||||
| 331 | } @$_ | ||||||||||
| 332 | ]); | ||||||||||
| 333 | 1 | }; | |||||||||
| 334 | |||||||||||
| 335 | 1 | subtype 'Cfn::Resource::Properties::AWS::ECS::Service::CapacityProviderStrategyItem', | |||||||||
| 336 | as 'Cfn::Value'; | ||||||||||
| 337 | |||||||||||
| 338 | coerce 'Cfn::Resource::Properties::AWS::ECS::Service::CapacityProviderStrategyItem', | ||||||||||
| 339 | from 'HashRef', | ||||||||||
| 340 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 341 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 342 | 0 | return $f | |||||||||
| 343 | } else { | ||||||||||
| 344 | 0 | return Cfn::Resource::Properties::Object::AWS::ECS::Service::CapacityProviderStrategyItem->new( %$_ ); | |||||||||
| 345 | } | ||||||||||
| 346 | 1 | }; | |||||||||
| 347 | |||||||||||
| 348 | 1 | package Cfn::Resource::Properties::Object::AWS::ECS::Service::CapacityProviderStrategyItem { | |||||||||
| 349 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 350 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 351 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 352 | |||||||||||
| 353 | 1 | has Base => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 354 | 1 | has CapacityProvider => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 355 | 1 | has Weight => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 356 | } | ||||||||||
| 357 | |||||||||||
| 358 | 1 | package Cfn::Resource::Properties::AWS::ECS::Service { | |||||||||
| 359 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 360 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 361 | 1 | extends 'Cfn::Resource::Properties'; | |||||||||
| 362 | |||||||||||
| 363 | 1 | has CapacityProviderStrategy => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::Service::CapacityProviderStrategyItem', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 364 | 1 | has Cluster => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 365 | 1 | has DeploymentConfiguration => (isa => 'Cfn::Resource::Properties::AWS::ECS::Service::DeploymentConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 366 | 1 | has DeploymentController => (isa => 'Cfn::Resource::Properties::AWS::ECS::Service::DeploymentController', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 367 | 1 | has DesiredCount => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 368 | 1 | has EnableECSManagedTags => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 369 | 1 | has EnableExecuteCommand => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 370 | 1 | has HealthCheckGracePeriodSeconds => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 371 | 1 | has LaunchType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 372 | 1 | has LoadBalancers => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::Service::LoadBalancer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 373 | 1 | has NetworkConfiguration => (isa => 'Cfn::Resource::Properties::AWS::ECS::Service::NetworkConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 374 | 1 | has PlacementConstraints => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::Service::PlacementConstraint', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 375 | 1 | has PlacementStrategies => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::Service::PlacementStrategy', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 376 | 1 | has PlatformVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 377 | 1 | has PropagateTags => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 378 | 1 | has Role => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 379 | 1 | has SchedulingStrategy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 380 | 1 | has ServiceArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 381 | 1 | has ServiceName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 382 | 1 | has ServiceRegistries => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::Service::ServiceRegistry', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 383 | 1 | has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 384 | 1 | has TaskDefinition => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 385 | } | ||||||||||
| 386 | |||||||||||
| 387 | 1 | 1; | |||||||||
| 388 | ### main pod documentation begin ### | ||||||||||
| 389 | |||||||||||
| 390 | =encoding UTF-8 | ||||||||||
| 391 | |||||||||||
| 392 | =head1 NAME | ||||||||||
| 393 | |||||||||||
| 394 | Cfn::Resource::AWS::ECS::Service - Cfn resource for AWS::ECS::Service | ||||||||||
| 395 | |||||||||||
| 396 | =head1 DESCRIPTION | ||||||||||
| 397 | |||||||||||
| 398 | This module implements a Perl module that represents the CloudFormation object AWS::ECS::Service. | ||||||||||
| 399 | |||||||||||
| 400 | See L<Cfn> for more information on how to use it. | ||||||||||
| 401 | |||||||||||
| 402 | =head1 AUTHOR | ||||||||||
| 403 | |||||||||||
| 404 | Jose Luis Martinez | ||||||||||
| 405 | CAPSiDE | ||||||||||
| 406 | jlmartinez@capside.com | ||||||||||
| 407 | |||||||||||
| 408 | =head1 COPYRIGHT and LICENSE | ||||||||||
| 409 | |||||||||||
| 410 | Copyright (c) 2013 by CAPSiDE | ||||||||||
| 411 | This code is distributed under the Apache 2 License. The full text of the | ||||||||||
| 412 | license can be found in the LICENSE file included with this module. | ||||||||||
| 413 | |||||||||||
| 414 | =cut | ||||||||||