Cfn/Resource/AWS/AutoScaling/AutoScalingGroup.pm

filter: Statementstmt 80.3% 192 / 239 Branchbran 15.7% 6 / 38 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 62.9% 34 / 54 Podpod 0.0% 0 / 2 totaltotal 69.6% 232 / 333 CC 20 SCAR 11.0
CC
20
Cov
71%
__ANON__
6.0
__ANON__
6.0
__ANON__
6.0
CRAP 3.0
« Cfn/Resource/AWS/Lambda/EventSourceMapping.pm ↑ Summary Cfn/Resource/AWS/Lambda/Function.pm »
1 # AWS::AutoScaling::AutoScalingGroup generated from spec 20.1.0
2 5 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 coerce 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup',
5 from 'HashRef',
6 38 ▶ via { Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup->new( %$_ ) };
Subroutine __ANON__: called CC=1 SCAR=0.0
7  
8 5 package Cfn::Resource::AWS::AutoScaling::AutoScalingGroup {
9 5 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 5 extends 'Cfn::Resource';
11 5 has Properties => (isa => 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup', is => 'rw', coerce => 1);
12
13 sub AttributeList {
14 1 ▶ [ 'LaunchConfigurationName','LaunchTemplateSpecification','MixedInstancesPolicy','PlacementGroup','VPCZoneIdentifier' ]
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 5 subtype 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LaunchTemplateSpecification',
24 as 'Cfn::Value';
25  
26 coerce 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LaunchTemplateSpecification',
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
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
30 0 return $f
31 } else {
32 0 return Cfn::Resource::Properties::Object::AWS::AutoScaling::AutoScalingGroup::LaunchTemplateSpecification->new( %$_ );
33 }
34 5 };
35  
36 5 package Cfn::Resource::Properties::Object::AWS::AutoScaling::AutoScalingGroup::LaunchTemplateSpecification {
37 5 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
38 5 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
39 5 extends 'Cfn::Value::TypedValue';
40
41 5 has LaunchTemplateId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42 5 has LaunchTemplateName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43 5 has Version => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
44 }
45 subtype 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LaunchTemplateOverrides',
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
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 0 0 0
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::AutoScaling::AutoScalingGroup::LaunchTemplateOverrides',
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
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
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::AutoScaling::AutoScalingGroup::LaunchTemplateOverrides')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
64 } @$_
65 ]);
66 5 };
67  
68 5 subtype 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LaunchTemplateOverrides',
69 as 'Cfn::Value';
70  
71 coerce 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LaunchTemplateOverrides',
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
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
75 0 return $f
76 } else {
77 0 return Cfn::Resource::Properties::Object::AWS::AutoScaling::AutoScalingGroup::LaunchTemplateOverrides->new( %$_ );
78 }
79 5 };
80  
81 5 package Cfn::Resource::Properties::Object::AWS::AutoScaling::AutoScalingGroup::LaunchTemplateOverrides {
82 5 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
83 5 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
84 5 extends 'Cfn::Value::TypedValue';
85
86 5 has InstanceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
87 5 has LaunchTemplateSpecification => (isa => 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LaunchTemplateSpecification', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
88 5 has WeightedCapacity => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
89 }
90  
91 5 subtype 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LaunchTemplate',
92 as 'Cfn::Value';
93  
94 coerce 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LaunchTemplate',
95 from 'HashRef',
96 via {
97 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
98 0 return $f
99 } else {
100 0 return Cfn::Resource::Properties::Object::AWS::AutoScaling::AutoScalingGroup::LaunchTemplate->new( %$_ );
101 }
102 5 };
103  
104 5 package Cfn::Resource::Properties::Object::AWS::AutoScaling::AutoScalingGroup::LaunchTemplate {
105 5 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
106 5 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
107 5 extends 'Cfn::Value::TypedValue';
108
109 5 has LaunchTemplateSpecification => (isa => 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LaunchTemplateSpecification', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
110 5 has Overrides => (isa => 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LaunchTemplateOverrides', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
111 }
112  
113 5 subtype 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::InstancesDistribution',
114 as 'Cfn::Value';
115  
116 coerce 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::InstancesDistribution',
117 from 'HashRef',
118 via {
119 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
120 0 return $f
121 } else {
122 0 return Cfn::Resource::Properties::Object::AWS::AutoScaling::AutoScalingGroup::InstancesDistribution->new( %$_ );
123 }
124 5 };
125  
126 5 package Cfn::Resource::Properties::Object::AWS::AutoScaling::AutoScalingGroup::InstancesDistribution {
127 5 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
128 5 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
129 5 extends 'Cfn::Value::TypedValue';
130
131 5 has OnDemandAllocationStrategy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
132 5 has OnDemandBaseCapacity => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
133 5 has OnDemandPercentageAboveBaseCapacity => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
134 5 has SpotAllocationStrategy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
135 5 has SpotInstancePools => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
136 5 has SpotMaxPrice => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
137 }
138 subtype 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::TagProperty',
139 as 'Cfn::Value',
140 4 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 0 4 4
141 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
142  
143 coerce 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::TagProperty',
144 from 'HashRef',
145 via {
146 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
147 0 return $f
148 } else {
149 0 die 'Only accepts functions';
150 }
151 },
152 from 'ArrayRef',
153 via {
154 Cfn::Value::Array->new(Value => [
155 map {
156 4 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::TagProperty')->coerce($_)
Subroutine __ANON__: called CC=1 SCAR=0.0
157 } @$_
158 ]);
159 5 };
160  
161 5 subtype 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::TagProperty',
162 as 'Cfn::Value';
163  
164 coerce 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::TagProperty',
165 from 'HashRef',
166 via {
167 4 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 4 4
168 0 return $f
169 } else {
170 4 return Cfn::Resource::Properties::Object::AWS::AutoScaling::AutoScalingGroup::TagProperty->new( %$_ );
171 }
172 5 };
173  
174 5 package Cfn::Resource::Properties::Object::AWS::AutoScaling::AutoScalingGroup::TagProperty {
175 5 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
176 5 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
177 5 extends 'Cfn::Value::TypedValue';
178
179 5 has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
180 5 has PropagateAtLaunch => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
181 5 has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
182 }
183 subtype 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::NotificationConfiguration',
184 as 'Cfn::Value',
185 5 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 0 5 5
186 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
187  
188 coerce 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::NotificationConfiguration',
189 from 'HashRef',
190 via {
191 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
192 0 return $f
193 } else {
194 0 die 'Only accepts functions';
195 }
196 },
197 from 'ArrayRef',
198 via {
199 Cfn::Value::Array->new(Value => [
200 map {
201 5 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::NotificationConfiguration')->coerce($_)
Subroutine __ANON__: called CC=1 SCAR=0.0
202 } @$_
203 ]);
204 5 };
205  
206 5 subtype 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::NotificationConfiguration',
207 as 'Cfn::Value';
208  
209 coerce 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::NotificationConfiguration',
210 from 'HashRef',
211 via {
212 5 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 5 5
213 0 return $f
214 } else {
215 5 return Cfn::Resource::Properties::Object::AWS::AutoScaling::AutoScalingGroup::NotificationConfiguration->new( %$_ );
216 }
217 5 };
218  
219 5 package Cfn::Resource::Properties::Object::AWS::AutoScaling::AutoScalingGroup::NotificationConfiguration {
220 5 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
221 5 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
222 5 extends 'Cfn::Value::TypedValue';
223
224 5 has NotificationTypes => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
225 5 has TopicARN => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
226 }
227  
228 5 subtype 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::MixedInstancesPolicy',
229 as 'Cfn::Value';
230  
231 coerce 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::MixedInstancesPolicy',
232 from 'HashRef',
233 via {
234 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
235 0 return $f
236 } else {
237 0 return Cfn::Resource::Properties::Object::AWS::AutoScaling::AutoScalingGroup::MixedInstancesPolicy->new( %$_ );
238 }
239 5 };
240  
241 5 package Cfn::Resource::Properties::Object::AWS::AutoScaling::AutoScalingGroup::MixedInstancesPolicy {
242 5 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
243 5 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
244 5 extends 'Cfn::Value::TypedValue';
245
246 5 has InstancesDistribution => (isa => 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::InstancesDistribution', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
247 5 has LaunchTemplate => (isa => 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LaunchTemplate', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
248 }
249 subtype 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::MetricsCollection',
250 as 'Cfn::Value',
251 2 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 0 2 2
252 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
253  
254 coerce 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::MetricsCollection',
255 from 'HashRef',
256 via {
257 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
258 0 return $f
259 } else {
260 0 die 'Only accepts functions';
261 }
262 },
263 from 'ArrayRef',
264 via {
265 Cfn::Value::Array->new(Value => [
266 map {
267 2 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::MetricsCollection')->coerce($_)
Subroutine __ANON__: called CC=1 SCAR=0.0
268 } @$_
269 ]);
270 5 };
271  
272 5 subtype 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::MetricsCollection',
273 as 'Cfn::Value';
274  
275 coerce 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::MetricsCollection',
276 from 'HashRef',
277 via {
278 2 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 2 2
279 0 return $f
280 } else {
281 2 return Cfn::Resource::Properties::Object::AWS::AutoScaling::AutoScalingGroup::MetricsCollection->new( %$_ );
282 }
283 5 };
284  
285 5 package Cfn::Resource::Properties::Object::AWS::AutoScaling::AutoScalingGroup::MetricsCollection {
286 5 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
287 5 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
288 5 extends 'Cfn::Value::TypedValue';
289
290 5 has Granularity => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
291 5 has Metrics => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
292 }
293 subtype 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LifecycleHookSpecification',
294 as 'Cfn::Value',
295 0 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 0 0 0
296 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
297  
298 coerce 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LifecycleHookSpecification',
299 from 'HashRef',
300 via {
301 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
302 0 return $f
303 } else {
304 0 die 'Only accepts functions';
305 }
306 },
307 from 'ArrayRef',
308 via {
309 Cfn::Value::Array->new(Value => [
310 map {
311 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LifecycleHookSpecification')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
312 } @$_
313 ]);
314 5 };
315  
316 5 subtype 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LifecycleHookSpecification',
317 as 'Cfn::Value';
318  
319 coerce 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LifecycleHookSpecification',
320 from 'HashRef',
321 via {
322 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
323 0 return $f
324 } else {
325 0 return Cfn::Resource::Properties::Object::AWS::AutoScaling::AutoScalingGroup::LifecycleHookSpecification->new( %$_ );
326 }
327 5 };
328  
329 5 package Cfn::Resource::Properties::Object::AWS::AutoScaling::AutoScalingGroup::LifecycleHookSpecification {
330 5 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
331 5 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
332 5 extends 'Cfn::Value::TypedValue';
333
334 5 has DefaultResult => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
335 5 has HeartbeatTimeout => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
336 5 has LifecycleHookName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
337 5 has LifecycleTransition => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
338 5 has NotificationMetadata => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
339 5 has NotificationTargetARN => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
340 5 has RoleARN => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
341 }
342  
343 5 package Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup {
344 5 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
345 5 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
346 5 extends 'Cfn::Resource::Properties';
347
348 5 has AutoScalingGroupName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
349 5 has AvailabilityZones => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
350 5 has CapacityRebalance => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
351 5 has Cooldown => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
352 5 has DesiredCapacity => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
353 5 has HealthCheckGracePeriod => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
354 5 has HealthCheckType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
355 5 has InstanceId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
356 5 has LaunchConfigurationName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
357 5 has LaunchTemplate => (isa => 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LaunchTemplateSpecification', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
358 5 has LifecycleHookSpecificationList => (isa => 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LifecycleHookSpecification', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
359 5 has LoadBalancerNames => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
360 5 has MaxInstanceLifetime => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
361 5 has MaxSize => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
362 5 has MetricsCollection => (isa => 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::MetricsCollection', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
363 5 has MinSize => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
364 5 has MixedInstancesPolicy => (isa => 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::MixedInstancesPolicy', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
365 5 has NewInstancesProtectedFromScaleIn => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
366 5 has NotificationConfigurations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::NotificationConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
367 5 has PlacementGroup => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
368 5 has ServiceLinkedRoleARN => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
369 5 has Tags => (isa => 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::TagProperty', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
370 5 has TargetGroupARNs => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
371 5 has TerminationPolicies => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
372 5 has VPCZoneIdentifier => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
373 }
374  
375 5 1;
376 ### main pod documentation begin ###
377  
378 =encoding UTF-8
379  
380 =head1 NAME
381  
382 Cfn::Resource::AWS::AutoScaling::AutoScalingGroup - Cfn resource for AWS::AutoScaling::AutoScalingGroup
383  
384 =head1 DESCRIPTION
385  
386 This module implements a Perl module that represents the CloudFormation object AWS::AutoScaling::AutoScalingGroup.
387  
388 See L<Cfn> for more information on how to use it.
389  
390 =head1 AUTHOR
391  
392 Jose Luis Martinez
393 CAPSiDE
394 jlmartinez@capside.com
395  
396 =head1 COPYRIGHT and LICENSE
397  
398 Copyright (c) 2013 by CAPSiDE
399 This code is distributed under the Apache 2 License. The full text of the
400 license can be found in the LICENSE file included with this module.
401  
402 =cut
« Cfn/Resource/AWS/Lambda/EventSourceMapping.pm ↑ Summary Cfn/Resource/AWS/Lambda/Function.pm »