Cfn/Resource/AWS/ECS/TaskSet.pm untested

filter: Statementstmt 0.0% 0 / 156 Branchbran 0.0% 0 / 14 Conditioncond 0.0% 0 / 6 MC/DCmcdc 0.0% 0 / 4 Subroutinesub 0.0% 0 / 16 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 198 CC 1 SCAR 6.9
CC
1
Cov
0%
AttributeList
2.0
supported_regions
2.0
BEGIN
2.0
CRAP 2.0
1 # AWS::ECS::TaskSet generated from spec 34.0.0
2 use Moose::Util::TypeConstraints;
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 use Moose;
10 extends 'Cfn::Resource';
11 has Properties => (isa => 'Cfn::Resource::Properties::AWS::ECS::TaskSet', is => 'rw', coerce => 1);
12
13 sub AttributeList {
14 [ 'Id' ]
15 }
16 sub supported_regions {
17 [ '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 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 use Moose;
38 use MooseX::StrictConstructor;
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 use Moose;
83 use MooseX::StrictConstructor;
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 use Moose;
107 use MooseX::StrictConstructor;
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 use Moose;
129 use MooseX::StrictConstructor;
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 use Moose;
172 use MooseX::StrictConstructor;
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 use Moose;
183 use MooseX::StrictConstructor;
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