File Coverage

blib/lib/Cfn/Resource/AWS/ECS/TaskSet.pm
Criterion Covered Total %
statement 44 44 100.0
branch n/a
condition n/a
subroutine 16 16 100.0
pod 0 2 0.0
total 60 62 96.7


line stmt bran cond sub pod time code
1             # AWS::ECS::TaskSet generated from spec 18.4.0
2 1     1   820 use Moose::Util::TypeConstraints;
  1         3  
  1         15  
3              
4             coerce 'Cfn::Resource::Properties::AWS::ECS::TaskSet',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::ECS::TaskSet->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::ECS::TaskSet {
9 1     1   2411 use Moose;
  1         4  
  1         9  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::ECS::TaskSet', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 5 [ 'Id' ]
15             }
16             sub supported_regions {
17 1     1 0 1225 [ 'ap-east-1','ap-northeast-1','ap-northeast-2','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' ]
18             }
19             }
20              
21              
22              
23             subtype 'Cfn::Resource::Properties::AWS::ECS::TaskSet::AwsVpcConfiguration',
24             as 'Cfn::Value';
25              
26             coerce 'Cfn::Resource::Properties::AWS::ECS::TaskSet::AwsVpcConfiguration',
27             from 'HashRef',
28             via {
29             if (my $f = Cfn::TypeLibrary::try_function($_)) {
30             return $f
31             } else {
32             return Cfn::Resource::Properties::Object::AWS::ECS::TaskSet::AwsVpcConfiguration->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::Object::AWS::ECS::TaskSet::AwsVpcConfiguration {
37 1     1   7751 use Moose;
  1         5  
  1         6  
38 1     1   6736 use MooseX::StrictConstructor;
  1         3  
  1         9  
39             extends 'Cfn::Value::TypedValue';
40            
41             has AssignPublicIp => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
42             has SecurityGroups => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
43             has Subnets => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
44             }
45             subtype 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskSet::ServiceRegistry',
46             as 'Cfn::Value',
47             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
48             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
49              
50             coerce 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskSet::ServiceRegistry',
51             from 'HashRef',
52             via {
53             if (my $f = Cfn::TypeLibrary::try_function($_)) {
54             return $f
55             } else {
56             die 'Only accepts functions';
57             }
58             },
59             from 'ArrayRef',
60             via {
61             Cfn::Value::Array->new(Value => [
62             map {
63             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ECS::TaskSet::ServiceRegistry')->coerce($_)
64             } @$_
65             ]);
66             };
67              
68             subtype 'Cfn::Resource::Properties::AWS::ECS::TaskSet::ServiceRegistry',
69             as 'Cfn::Value';
70              
71             coerce 'Cfn::Resource::Properties::AWS::ECS::TaskSet::ServiceRegistry',
72             from 'HashRef',
73             via {
74             if (my $f = Cfn::TypeLibrary::try_function($_)) {
75             return $f
76             } else {
77             return Cfn::Resource::Properties::Object::AWS::ECS::TaskSet::ServiceRegistry->new( %$_ );
78             }
79             };
80              
81             package Cfn::Resource::Properties::Object::AWS::ECS::TaskSet::ServiceRegistry {
82 1     1   3883 use Moose;
  1         4  
  1         6  
83 1     1   6639 use MooseX::StrictConstructor;
  1         3  
  1         5  
84             extends 'Cfn::Value::TypedValue';
85            
86             has ContainerName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
87             has ContainerPort => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
88             has Port => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
89             has RegistryArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
90             }
91              
92             subtype 'Cfn::Resource::Properties::AWS::ECS::TaskSet::Scale',
93             as 'Cfn::Value';
94              
95             coerce 'Cfn::Resource::Properties::AWS::ECS::TaskSet::Scale',
96             from 'HashRef',
97             via {
98             if (my $f = Cfn::TypeLibrary::try_function($_)) {
99             return $f
100             } else {
101             return Cfn::Resource::Properties::Object::AWS::ECS::TaskSet::Scale->new( %$_ );
102             }
103             };
104              
105             package Cfn::Resource::Properties::Object::AWS::ECS::TaskSet::Scale {
106 1     1   3443 use Moose;
  1         2  
  1         7  
107 1     1   6674 use MooseX::StrictConstructor;
  1         2  
  1         9  
108             extends 'Cfn::Value::TypedValue';
109            
110             has Unit => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
111             has Value => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
112             }
113              
114             subtype 'Cfn::Resource::Properties::AWS::ECS::TaskSet::NetworkConfiguration',
115             as 'Cfn::Value';
116              
117             coerce 'Cfn::Resource::Properties::AWS::ECS::TaskSet::NetworkConfiguration',
118             from 'HashRef',
119             via {
120             if (my $f = Cfn::TypeLibrary::try_function($_)) {
121             return $f
122             } else {
123             return Cfn::Resource::Properties::Object::AWS::ECS::TaskSet::NetworkConfiguration->new( %$_ );
124             }
125             };
126              
127             package Cfn::Resource::Properties::Object::AWS::ECS::TaskSet::NetworkConfiguration {
128 1     1   3441 use Moose;
  1         4  
  1         6  
129 1     1   6676 use MooseX::StrictConstructor;
  1         6  
  1         6  
130             extends 'Cfn::Value::TypedValue';
131            
132             has AwsVpcConfiguration => (isa => 'Cfn::Resource::Properties::AWS::ECS::TaskSet::AwsVpcConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
133             }
134             subtype 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskSet::LoadBalancer',
135             as 'Cfn::Value',
136             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
137             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
138              
139             coerce 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskSet::LoadBalancer',
140             from 'HashRef',
141             via {
142             if (my $f = Cfn::TypeLibrary::try_function($_)) {
143             return $f
144             } else {
145             die 'Only accepts functions';
146             }
147             },
148             from 'ArrayRef',
149             via {
150             Cfn::Value::Array->new(Value => [
151             map {
152             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ECS::TaskSet::LoadBalancer')->coerce($_)
153             } @$_
154             ]);
155             };
156              
157             subtype 'Cfn::Resource::Properties::AWS::ECS::TaskSet::LoadBalancer',
158             as 'Cfn::Value';
159              
160             coerce 'Cfn::Resource::Properties::AWS::ECS::TaskSet::LoadBalancer',
161             from 'HashRef',
162             via {
163             if (my $f = Cfn::TypeLibrary::try_function($_)) {
164             return $f
165             } else {
166             return Cfn::Resource::Properties::Object::AWS::ECS::TaskSet::LoadBalancer->new( %$_ );
167             }
168             };
169              
170             package Cfn::Resource::Properties::Object::AWS::ECS::TaskSet::LoadBalancer {
171 1     1   3591 use Moose;
  1         3  
  1         5  
172 1     1   6591 use MooseX::StrictConstructor;
  1         3  
  1         5  
173             extends 'Cfn::Value::TypedValue';
174            
175             has ContainerName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
176             has ContainerPort => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
177             has LoadBalancerName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
178             has TargetGroupArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
179             }
180              
181             package Cfn::Resource::Properties::AWS::ECS::TaskSet {
182 1     1   3342 use Moose;
  1         4  
  1         9  
183 1     1   6645 use MooseX::StrictConstructor;
  1         6  
  1         6  
184             extends 'Cfn::Resource::Properties';
185            
186             has Cluster => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
187             has ExternalId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
188             has LaunchType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
189             has LoadBalancers => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskSet::LoadBalancer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
190             has NetworkConfiguration => (isa => 'Cfn::Resource::Properties::AWS::ECS::TaskSet::NetworkConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
191             has PlatformVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
192             has Scale => (isa => 'Cfn::Resource::Properties::AWS::ECS::TaskSet::Scale', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
193             has Service => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
194             has ServiceRegistries => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ECS::TaskSet::ServiceRegistry', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
195             has TaskDefinition => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
196             }
197              
198             1;
199             ### main pod documentation begin ###
200              
201             =encoding UTF-8
202              
203             =head1 NAME
204              
205             Cfn::Resource::AWS::ECS::TaskSet - Cfn resource for AWS::ECS::TaskSet
206              
207             =head1 DESCRIPTION
208              
209             This module implements a Perl module that represents the CloudFormation object AWS::ECS::TaskSet.
210              
211             See L<Cfn> for more information on how to use it.
212              
213             =head1 AUTHOR
214              
215             Jose Luis Martinez
216             CAPSiDE
217             jlmartinez@capside.com
218              
219             =head1 COPYRIGHT and LICENSE
220              
221             Copyright (c) 2013 by CAPSiDE
222             This code is distributed under the Apache 2 License. The full text of the
223             license can be found in the LICENSE file included with this module.
224              
225             =cut