| 1 | # AWS::ECS::Cluster 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::Cluster', | ||||||||||
| 5 | from 'HashRef', | ||||||||||
| 6 | 2 | ▶ | via { Cfn::Resource::Properties::AWS::ECS::Cluster->new( %$_ ) }; | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 1 | package Cfn::Resource::AWS::ECS::Cluster { | |||||||||
| 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::Cluster', is => 'rw', coerce => 1); | |||||||||
| 12 | |||||||||||
| 13 | 0 | ▶ | sub AttributeList { | ||||||||
|
Subroutine
AttributeList: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 14 | 0 | [ 'Arn' ] | |||||||||
| 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::Cluster::ExecuteCommandLogConfiguration', | |||||||||
| 24 | as 'Cfn::Value'; | ||||||||||
| 25 | |||||||||||
| 26 | coerce 'Cfn::Resource::Properties::AWS::ECS::Cluster::ExecuteCommandLogConfiguration', | ||||||||||
| 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::Cluster::ExecuteCommandLogConfiguration->new( %$_ ); | |||||||||
| 33 | } | ||||||||||
| 34 | 1 | }; | |||||||||
| 35 | |||||||||||
| 36 | 1 | package Cfn::Resource::Properties::Object::AWS::ECS::Cluster::ExecuteCommandLogConfiguration { | |||||||||
| 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 CloudWatchEncryptionEnabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 42 | 1 | has CloudWatchLogGroupName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 43 | 1 | has S3BucketName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 44 | 1 | has S3EncryptionEnabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 45 | 1 | has S3KeyPrefix => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 46 | } | ||||||||||
| 47 | |||||||||||
| 48 | 1 | subtype 'Cfn::Resource::Properties::AWS::ECS::Cluster::ExecuteCommandConfiguration', | |||||||||
| 49 | as 'Cfn::Value'; | ||||||||||
| 50 | |||||||||||
| 51 | coerce 'Cfn::Resource::Properties::AWS::ECS::Cluster::ExecuteCommandConfiguration', | ||||||||||
| 52 | from 'HashRef', | ||||||||||
| 53 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 54 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 55 | 0 | return $f | |||||||||
| 56 | } else { | ||||||||||
| 57 | 0 | return Cfn::Resource::Properties::Object::AWS::ECS::Cluster::ExecuteCommandConfiguration->new( %$_ ); | |||||||||
| 58 | } | ||||||||||
| 59 | 1 | }; | |||||||||
| 60 | |||||||||||
| 61 | 1 | package Cfn::Resource::Properties::Object::AWS::ECS::Cluster::ExecuteCommandConfiguration { | |||||||||
| 62 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 63 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 64 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 65 | |||||||||||
| 66 | 1 | has KmsKeyId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 67 | 1 | has LogConfiguration => (isa => 'Cfn::Resource::Properties::AWS::ECS::Cluster::ExecuteCommandLogConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 68 | 1 | has Logging => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 69 | } | ||||||||||
| 70 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ECS::Cluster::ClusterSettings', | ||||||||||
| 71 | as 'Cfn::Value', | ||||||||||
| 72 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 73 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 74 | |||||||||||
| 75 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ECS::Cluster::ClusterSettings', | ||||||||||
| 76 | from 'HashRef', | ||||||||||
| 77 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 78 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 79 | 0 | return $f | |||||||||
| 80 | } else { | ||||||||||
| 81 | 0 | die 'Only accepts functions'; | |||||||||
| 82 | } | ||||||||||
| 83 | }, | ||||||||||
| 84 | from 'ArrayRef', | ||||||||||
| 85 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 86 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 87 | map { | ||||||||||
| 88 | 0 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ECS::Cluster::ClusterSettings')->coerce($_) | |||||||||
| 89 | } @$_ | ||||||||||
| 90 | ]); | ||||||||||
| 91 | 1 | }; | |||||||||
| 92 | |||||||||||
| 93 | 1 | subtype 'Cfn::Resource::Properties::AWS::ECS::Cluster::ClusterSettings', | |||||||||
| 94 | as 'Cfn::Value'; | ||||||||||
| 95 | |||||||||||
| 96 | coerce 'Cfn::Resource::Properties::AWS::ECS::Cluster::ClusterSettings', | ||||||||||
| 97 | from 'HashRef', | ||||||||||
| 98 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 99 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 100 | 0 | return $f | |||||||||
| 101 | } else { | ||||||||||
| 102 | 0 | return Cfn::Resource::Properties::Object::AWS::ECS::Cluster::ClusterSettings->new( %$_ ); | |||||||||
| 103 | } | ||||||||||
| 104 | 1 | }; | |||||||||
| 105 | |||||||||||
| 106 | 1 | package Cfn::Resource::Properties::Object::AWS::ECS::Cluster::ClusterSettings { | |||||||||
| 107 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 108 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 109 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 110 | |||||||||||
| 111 | 1 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 112 | 1 | has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 113 | } | ||||||||||
| 114 | |||||||||||
| 115 | 1 | subtype 'Cfn::Resource::Properties::AWS::ECS::Cluster::ClusterConfiguration', | |||||||||
| 116 | as 'Cfn::Value'; | ||||||||||
| 117 | |||||||||||
| 118 | coerce 'Cfn::Resource::Properties::AWS::ECS::Cluster::ClusterConfiguration', | ||||||||||
| 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 | return Cfn::Resource::Properties::Object::AWS::ECS::Cluster::ClusterConfiguration->new( %$_ ); | |||||||||
| 125 | } | ||||||||||
| 126 | 1 | }; | |||||||||
| 127 | |||||||||||
| 128 | 1 | package Cfn::Resource::Properties::Object::AWS::ECS::Cluster::ClusterConfiguration { | |||||||||
| 129 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 130 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 131 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 132 | |||||||||||
| 133 | 1 | has ExecuteCommandConfiguration => (isa => 'Cfn::Resource::Properties::AWS::ECS::Cluster::ExecuteCommandConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 134 | } | ||||||||||
| 135 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ECS::Cluster::CapacityProviderStrategyItem', | ||||||||||
| 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::Cluster::CapacityProviderStrategyItem', | ||||||||||
| 141 | from 'HashRef', | ||||||||||
| 142 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 143 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 144 | 0 | return $f | |||||||||
| 145 | } else { | ||||||||||
| 146 | 0 | die 'Only accepts functions'; | |||||||||
| 147 | } | ||||||||||
| 148 | }, | ||||||||||
| 149 | from 'ArrayRef', | ||||||||||
| 150 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 151 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 152 | map { | ||||||||||
| 153 | 0 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ECS::Cluster::CapacityProviderStrategyItem')->coerce($_) | |||||||||
| 154 | } @$_ | ||||||||||
| 155 | ]); | ||||||||||
| 156 | 1 | }; | |||||||||
| 157 | |||||||||||
| 158 | 1 | subtype 'Cfn::Resource::Properties::AWS::ECS::Cluster::CapacityProviderStrategyItem', | |||||||||
| 159 | as 'Cfn::Value'; | ||||||||||
| 160 | |||||||||||
| 161 | coerce 'Cfn::Resource::Properties::AWS::ECS::Cluster::CapacityProviderStrategyItem', | ||||||||||
| 162 | from 'HashRef', | ||||||||||
| 163 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 164 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 165 | 0 | return $f | |||||||||
| 166 | } else { | ||||||||||
| 167 | 0 | return Cfn::Resource::Properties::Object::AWS::ECS::Cluster::CapacityProviderStrategyItem->new( %$_ ); | |||||||||
| 168 | } | ||||||||||
| 169 | 1 | }; | |||||||||
| 170 | |||||||||||
| 171 | 1 | package Cfn::Resource::Properties::Object::AWS::ECS::Cluster::CapacityProviderStrategyItem { | |||||||||
| 172 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 173 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 174 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 175 | |||||||||||
| 176 | 1 | has Base => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 177 | 1 | has CapacityProvider => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 178 | 1 | has Weight => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 179 | } | ||||||||||
| 180 | |||||||||||
| 181 | 1 | package Cfn::Resource::Properties::AWS::ECS::Cluster { | |||||||||
| 182 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 183 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 184 | 1 | extends 'Cfn::Resource::Properties'; | |||||||||
| 185 | |||||||||||
| 186 | 1 | has CapacityProviders => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 187 | 1 | has ClusterName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 188 | 1 | has ClusterSettings => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::Cluster::ClusterSettings', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 189 | 1 | has Configuration => (isa => 'Cfn::Resource::Properties::AWS::ECS::Cluster::ClusterConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 190 | 1 | has DefaultCapacityProviderStrategy => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::Cluster::CapacityProviderStrategyItem', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 191 | 1 | has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 192 | } | ||||||||||
| 193 | |||||||||||
| 194 | 1 | 1; | |||||||||
| 195 | ### main pod documentation begin ### | ||||||||||
| 196 | |||||||||||
| 197 | =encoding UTF-8 | ||||||||||
| 198 | |||||||||||
| 199 | =head1 NAME | ||||||||||
| 200 | |||||||||||
| 201 | Cfn::Resource::AWS::ECS::Cluster - Cfn resource for AWS::ECS::Cluster | ||||||||||
| 202 | |||||||||||
| 203 | =head1 DESCRIPTION | ||||||||||
| 204 | |||||||||||
| 205 | This module implements a Perl module that represents the CloudFormation object AWS::ECS::Cluster. | ||||||||||
| 206 | |||||||||||
| 207 | See L<Cfn> for more information on how to use it. | ||||||||||
| 208 | |||||||||||
| 209 | =head1 AUTHOR | ||||||||||
| 210 | |||||||||||
| 211 | Jose Luis Martinez | ||||||||||
| 212 | CAPSiDE | ||||||||||
| 213 | jlmartinez@capside.com | ||||||||||
| 214 | |||||||||||
| 215 | =head1 COPYRIGHT and LICENSE | ||||||||||
| 216 | |||||||||||
| 217 | Copyright (c) 2013 by CAPSiDE | ||||||||||
| 218 | This code is distributed under the Apache 2 License. The full text of the | ||||||||||
| 219 | license can be found in the LICENSE file included with this module. | ||||||||||
| 220 | |||||||||||
| 221 | =cut | ||||||||||