line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# AWS::AutoScaling::AutoScalingGroup generated from spec 20.1.0 |
2
|
5
|
|
|
5
|
|
4090
|
use Moose::Util::TypeConstraints; |
|
5
|
|
|
|
|
17
|
|
|
5
|
|
|
|
|
58
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
coerce 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup', |
5
|
|
|
|
|
|
|
from 'HashRef', |
6
|
|
|
|
|
|
|
via { Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup->new( %$_ ) }; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
package Cfn::Resource::AWS::AutoScaling::AutoScalingGroup { |
9
|
5
|
|
|
5
|
|
11158
|
use Moose; |
|
5
|
|
|
|
|
15
|
|
|
5
|
|
|
|
|
43
|
|
10
|
|
|
|
|
|
|
extends 'Cfn::Resource'; |
11
|
|
|
|
|
|
|
has Properties => (isa => 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup', is => 'rw', coerce => 1); |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub AttributeList { |
14
|
1
|
|
|
1
|
0
|
7
|
[ 'LaunchConfigurationName','LaunchTemplateSpecification','MixedInstancesPolicy','PlacementGroup','VPCZoneIdentifier' ] |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
sub supported_regions { |
17
|
1
|
|
|
1
|
0
|
1225
|
[ '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::AutoScaling::AutoScalingGroup::LaunchTemplateSpecification', |
24
|
|
|
|
|
|
|
as 'Cfn::Value'; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
coerce 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LaunchTemplateSpecification', |
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::AutoScaling::AutoScalingGroup::LaunchTemplateSpecification->new( %$_ ); |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
}; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
package Cfn::Resource::Properties::Object::AWS::AutoScaling::AutoScalingGroup::LaunchTemplateSpecification { |
37
|
5
|
|
|
5
|
|
37323
|
use Moose; |
|
5
|
|
|
|
|
15
|
|
|
5
|
|
|
|
|
26
|
|
38
|
5
|
|
|
5
|
|
34009
|
use MooseX::StrictConstructor; |
|
5
|
|
|
|
|
17
|
|
|
5
|
|
|
|
|
50
|
|
39
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
has LaunchTemplateId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
42
|
|
|
|
|
|
|
has LaunchTemplateName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
43
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
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::AutoScaling::AutoScalingGroup::LaunchTemplateOverrides', |
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::AutoScaling::AutoScalingGroup::LaunchTemplateOverrides')->coerce($_) |
64
|
|
|
|
|
|
|
} @$_ |
65
|
|
|
|
|
|
|
]); |
66
|
|
|
|
|
|
|
}; |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
75
|
|
|
|
|
|
|
return $f |
76
|
|
|
|
|
|
|
} else { |
77
|
|
|
|
|
|
|
return Cfn::Resource::Properties::Object::AWS::AutoScaling::AutoScalingGroup::LaunchTemplateOverrides->new( %$_ ); |
78
|
|
|
|
|
|
|
} |
79
|
|
|
|
|
|
|
}; |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
package Cfn::Resource::Properties::Object::AWS::AutoScaling::AutoScalingGroup::LaunchTemplateOverrides { |
82
|
5
|
|
|
5
|
|
19428
|
use Moose; |
|
5
|
|
|
|
|
16
|
|
|
5
|
|
|
|
|
28
|
|
83
|
5
|
|
|
5
|
|
34132
|
use MooseX::StrictConstructor; |
|
5
|
|
|
|
|
14
|
|
|
5
|
|
|
|
|
32
|
|
84
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
has InstanceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
87
|
|
|
|
|
|
|
has LaunchTemplateSpecification => (isa => 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LaunchTemplateSpecification', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
88
|
|
|
|
|
|
|
has WeightedCapacity => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
89
|
|
|
|
|
|
|
} |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
98
|
|
|
|
|
|
|
return $f |
99
|
|
|
|
|
|
|
} else { |
100
|
|
|
|
|
|
|
return Cfn::Resource::Properties::Object::AWS::AutoScaling::AutoScalingGroup::LaunchTemplate->new( %$_ ); |
101
|
|
|
|
|
|
|
} |
102
|
|
|
|
|
|
|
}; |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
package Cfn::Resource::Properties::Object::AWS::AutoScaling::AutoScalingGroup::LaunchTemplate { |
105
|
5
|
|
|
5
|
|
17055
|
use Moose; |
|
5
|
|
|
|
|
18
|
|
|
5
|
|
|
|
|
28
|
|
106
|
5
|
|
|
5
|
|
33364
|
use MooseX::StrictConstructor; |
|
5
|
|
|
|
|
15
|
|
|
5
|
|
|
|
|
30
|
|
107
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
has LaunchTemplateSpecification => (isa => 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LaunchTemplateSpecification', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
110
|
|
|
|
|
|
|
has Overrides => (isa => 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LaunchTemplateOverrides', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
111
|
|
|
|
|
|
|
} |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
120
|
|
|
|
|
|
|
return $f |
121
|
|
|
|
|
|
|
} else { |
122
|
|
|
|
|
|
|
return Cfn::Resource::Properties::Object::AWS::AutoScaling::AutoScalingGroup::InstancesDistribution->new( %$_ ); |
123
|
|
|
|
|
|
|
} |
124
|
|
|
|
|
|
|
}; |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
package Cfn::Resource::Properties::Object::AWS::AutoScaling::AutoScalingGroup::InstancesDistribution { |
127
|
5
|
|
|
5
|
|
17135
|
use Moose; |
|
5
|
|
|
|
|
20
|
|
|
5
|
|
|
|
|
30
|
|
128
|
5
|
|
|
5
|
|
33722
|
use MooseX::StrictConstructor; |
|
5
|
|
|
|
|
13
|
|
|
5
|
|
|
|
|
32
|
|
129
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
has OnDemandAllocationStrategy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
132
|
|
|
|
|
|
|
has OnDemandBaseCapacity => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
133
|
|
|
|
|
|
|
has OnDemandPercentageAboveBaseCapacity => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
134
|
|
|
|
|
|
|
has SpotAllocationStrategy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
135
|
|
|
|
|
|
|
has SpotInstancePools => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
136
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, |
141
|
|
|
|
|
|
|
message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; |
142
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
coerce 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::TagProperty', |
144
|
|
|
|
|
|
|
from 'HashRef', |
145
|
|
|
|
|
|
|
via { |
146
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
147
|
|
|
|
|
|
|
return $f |
148
|
|
|
|
|
|
|
} else { |
149
|
|
|
|
|
|
|
die 'Only accepts functions'; |
150
|
|
|
|
|
|
|
} |
151
|
|
|
|
|
|
|
}, |
152
|
|
|
|
|
|
|
from 'ArrayRef', |
153
|
|
|
|
|
|
|
via { |
154
|
|
|
|
|
|
|
Cfn::Value::Array->new(Value => [ |
155
|
|
|
|
|
|
|
map { |
156
|
|
|
|
|
|
|
Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::TagProperty')->coerce($_) |
157
|
|
|
|
|
|
|
} @$_ |
158
|
|
|
|
|
|
|
]); |
159
|
|
|
|
|
|
|
}; |
160
|
|
|
|
|
|
|
|
161
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
168
|
|
|
|
|
|
|
return $f |
169
|
|
|
|
|
|
|
} else { |
170
|
|
|
|
|
|
|
return Cfn::Resource::Properties::Object::AWS::AutoScaling::AutoScalingGroup::TagProperty->new( %$_ ); |
171
|
|
|
|
|
|
|
} |
172
|
|
|
|
|
|
|
}; |
173
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
package Cfn::Resource::Properties::Object::AWS::AutoScaling::AutoScalingGroup::TagProperty { |
175
|
5
|
|
|
5
|
|
18602
|
use Moose; |
|
5
|
|
|
|
|
18
|
|
|
5
|
|
|
|
|
29
|
|
176
|
5
|
|
|
5
|
|
33797
|
use MooseX::StrictConstructor; |
|
5
|
|
|
|
|
16
|
|
|
5
|
|
|
|
|
33
|
|
177
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
178
|
|
|
|
|
|
|
|
179
|
|
|
|
|
|
|
has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
180
|
|
|
|
|
|
|
has PropagateAtLaunch => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
181
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, |
186
|
|
|
|
|
|
|
message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; |
187
|
|
|
|
|
|
|
|
188
|
|
|
|
|
|
|
coerce 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::NotificationConfiguration', |
189
|
|
|
|
|
|
|
from 'HashRef', |
190
|
|
|
|
|
|
|
via { |
191
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
192
|
|
|
|
|
|
|
return $f |
193
|
|
|
|
|
|
|
} else { |
194
|
|
|
|
|
|
|
die 'Only accepts functions'; |
195
|
|
|
|
|
|
|
} |
196
|
|
|
|
|
|
|
}, |
197
|
|
|
|
|
|
|
from 'ArrayRef', |
198
|
|
|
|
|
|
|
via { |
199
|
|
|
|
|
|
|
Cfn::Value::Array->new(Value => [ |
200
|
|
|
|
|
|
|
map { |
201
|
|
|
|
|
|
|
Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::NotificationConfiguration')->coerce($_) |
202
|
|
|
|
|
|
|
} @$_ |
203
|
|
|
|
|
|
|
]); |
204
|
|
|
|
|
|
|
}; |
205
|
|
|
|
|
|
|
|
206
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
213
|
|
|
|
|
|
|
return $f |
214
|
|
|
|
|
|
|
} else { |
215
|
|
|
|
|
|
|
return Cfn::Resource::Properties::Object::AWS::AutoScaling::AutoScalingGroup::NotificationConfiguration->new( %$_ ); |
216
|
|
|
|
|
|
|
} |
217
|
|
|
|
|
|
|
}; |
218
|
|
|
|
|
|
|
|
219
|
|
|
|
|
|
|
package Cfn::Resource::Properties::Object::AWS::AutoScaling::AutoScalingGroup::NotificationConfiguration { |
220
|
5
|
|
|
5
|
|
18672
|
use Moose; |
|
5
|
|
|
|
|
23
|
|
|
5
|
|
|
|
|
39
|
|
221
|
5
|
|
|
5
|
|
33960
|
use MooseX::StrictConstructor; |
|
5
|
|
|
|
|
15
|
|
|
5
|
|
|
|
|
180
|
|
222
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
223
|
|
|
|
|
|
|
|
224
|
|
|
|
|
|
|
has NotificationTypes => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
225
|
|
|
|
|
|
|
has TopicARN => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
226
|
|
|
|
|
|
|
} |
227
|
|
|
|
|
|
|
|
228
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
235
|
|
|
|
|
|
|
return $f |
236
|
|
|
|
|
|
|
} else { |
237
|
|
|
|
|
|
|
return Cfn::Resource::Properties::Object::AWS::AutoScaling::AutoScalingGroup::MixedInstancesPolicy->new( %$_ ); |
238
|
|
|
|
|
|
|
} |
239
|
|
|
|
|
|
|
}; |
240
|
|
|
|
|
|
|
|
241
|
|
|
|
|
|
|
package Cfn::Resource::Properties::Object::AWS::AutoScaling::AutoScalingGroup::MixedInstancesPolicy { |
242
|
5
|
|
|
5
|
|
17899
|
use Moose; |
|
5
|
|
|
|
|
18
|
|
|
5
|
|
|
|
|
35
|
|
243
|
5
|
|
|
5
|
|
33918
|
use MooseX::StrictConstructor; |
|
5
|
|
|
|
|
18
|
|
|
5
|
|
|
|
|
29
|
|
244
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
245
|
|
|
|
|
|
|
|
246
|
|
|
|
|
|
|
has InstancesDistribution => (isa => 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::InstancesDistribution', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
247
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, |
252
|
|
|
|
|
|
|
message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; |
253
|
|
|
|
|
|
|
|
254
|
|
|
|
|
|
|
coerce 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::MetricsCollection', |
255
|
|
|
|
|
|
|
from 'HashRef', |
256
|
|
|
|
|
|
|
via { |
257
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
258
|
|
|
|
|
|
|
return $f |
259
|
|
|
|
|
|
|
} else { |
260
|
|
|
|
|
|
|
die 'Only accepts functions'; |
261
|
|
|
|
|
|
|
} |
262
|
|
|
|
|
|
|
}, |
263
|
|
|
|
|
|
|
from 'ArrayRef', |
264
|
|
|
|
|
|
|
via { |
265
|
|
|
|
|
|
|
Cfn::Value::Array->new(Value => [ |
266
|
|
|
|
|
|
|
map { |
267
|
|
|
|
|
|
|
Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::MetricsCollection')->coerce($_) |
268
|
|
|
|
|
|
|
} @$_ |
269
|
|
|
|
|
|
|
]); |
270
|
|
|
|
|
|
|
}; |
271
|
|
|
|
|
|
|
|
272
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
279
|
|
|
|
|
|
|
return $f |
280
|
|
|
|
|
|
|
} else { |
281
|
|
|
|
|
|
|
return Cfn::Resource::Properties::Object::AWS::AutoScaling::AutoScalingGroup::MetricsCollection->new( %$_ ); |
282
|
|
|
|
|
|
|
} |
283
|
|
|
|
|
|
|
}; |
284
|
|
|
|
|
|
|
|
285
|
|
|
|
|
|
|
package Cfn::Resource::Properties::Object::AWS::AutoScaling::AutoScalingGroup::MetricsCollection { |
286
|
5
|
|
|
5
|
|
18767
|
use Moose; |
|
5
|
|
|
|
|
15
|
|
|
5
|
|
|
|
|
32
|
|
287
|
5
|
|
|
5
|
|
33327
|
use MooseX::StrictConstructor; |
|
5
|
|
|
|
|
20
|
|
|
5
|
|
|
|
|
28
|
|
288
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
289
|
|
|
|
|
|
|
|
290
|
|
|
|
|
|
|
has Granularity => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
291
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, |
296
|
|
|
|
|
|
|
message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; |
297
|
|
|
|
|
|
|
|
298
|
|
|
|
|
|
|
coerce 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LifecycleHookSpecification', |
299
|
|
|
|
|
|
|
from 'HashRef', |
300
|
|
|
|
|
|
|
via { |
301
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
302
|
|
|
|
|
|
|
return $f |
303
|
|
|
|
|
|
|
} else { |
304
|
|
|
|
|
|
|
die 'Only accepts functions'; |
305
|
|
|
|
|
|
|
} |
306
|
|
|
|
|
|
|
}, |
307
|
|
|
|
|
|
|
from 'ArrayRef', |
308
|
|
|
|
|
|
|
via { |
309
|
|
|
|
|
|
|
Cfn::Value::Array->new(Value => [ |
310
|
|
|
|
|
|
|
map { |
311
|
|
|
|
|
|
|
Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LifecycleHookSpecification')->coerce($_) |
312
|
|
|
|
|
|
|
} @$_ |
313
|
|
|
|
|
|
|
]); |
314
|
|
|
|
|
|
|
}; |
315
|
|
|
|
|
|
|
|
316
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
323
|
|
|
|
|
|
|
return $f |
324
|
|
|
|
|
|
|
} else { |
325
|
|
|
|
|
|
|
return Cfn::Resource::Properties::Object::AWS::AutoScaling::AutoScalingGroup::LifecycleHookSpecification->new( %$_ ); |
326
|
|
|
|
|
|
|
} |
327
|
|
|
|
|
|
|
}; |
328
|
|
|
|
|
|
|
|
329
|
|
|
|
|
|
|
package Cfn::Resource::Properties::Object::AWS::AutoScaling::AutoScalingGroup::LifecycleHookSpecification { |
330
|
5
|
|
|
5
|
|
17931
|
use Moose; |
|
5
|
|
|
|
|
24
|
|
|
5
|
|
|
|
|
38
|
|
331
|
5
|
|
|
5
|
|
33012
|
use MooseX::StrictConstructor; |
|
5
|
|
|
|
|
16
|
|
|
5
|
|
|
|
|
35
|
|
332
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
333
|
|
|
|
|
|
|
|
334
|
|
|
|
|
|
|
has DefaultResult => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
335
|
|
|
|
|
|
|
has HeartbeatTimeout => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
336
|
|
|
|
|
|
|
has LifecycleHookName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
337
|
|
|
|
|
|
|
has LifecycleTransition => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
338
|
|
|
|
|
|
|
has NotificationMetadata => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
339
|
|
|
|
|
|
|
has NotificationTargetARN => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
340
|
|
|
|
|
|
|
has RoleARN => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
341
|
|
|
|
|
|
|
} |
342
|
|
|
|
|
|
|
|
343
|
|
|
|
|
|
|
package Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup { |
344
|
5
|
|
|
5
|
|
16978
|
use Moose; |
|
5
|
|
|
|
|
24
|
|
|
5
|
|
|
|
|
38
|
|
345
|
5
|
|
|
5
|
|
33120
|
use MooseX::StrictConstructor; |
|
5
|
|
|
|
|
17
|
|
|
5
|
|
|
|
|
32
|
|
346
|
|
|
|
|
|
|
extends 'Cfn::Resource::Properties'; |
347
|
|
|
|
|
|
|
|
348
|
|
|
|
|
|
|
has AutoScalingGroupName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); |
349
|
|
|
|
|
|
|
has AvailabilityZones => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
350
|
|
|
|
|
|
|
has CapacityRebalance => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
351
|
|
|
|
|
|
|
has Cooldown => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
352
|
|
|
|
|
|
|
has DesiredCapacity => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
353
|
|
|
|
|
|
|
has HealthCheckGracePeriod => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
354
|
|
|
|
|
|
|
has HealthCheckType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
355
|
|
|
|
|
|
|
has InstanceId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); |
356
|
|
|
|
|
|
|
has LaunchConfigurationName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
357
|
|
|
|
|
|
|
has LaunchTemplate => (isa => 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LaunchTemplateSpecification', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
358
|
|
|
|
|
|
|
has LifecycleHookSpecificationList => (isa => 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LifecycleHookSpecification', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
359
|
|
|
|
|
|
|
has LoadBalancerNames => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
360
|
|
|
|
|
|
|
has MaxInstanceLifetime => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
361
|
|
|
|
|
|
|
has MaxSize => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
362
|
|
|
|
|
|
|
has MetricsCollection => (isa => 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::MetricsCollection', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
363
|
|
|
|
|
|
|
has MinSize => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
364
|
|
|
|
|
|
|
has MixedInstancesPolicy => (isa => 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::MixedInstancesPolicy', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
365
|
|
|
|
|
|
|
has NewInstancesProtectedFromScaleIn => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
366
|
|
|
|
|
|
|
has NotificationConfigurations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::NotificationConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
367
|
|
|
|
|
|
|
has PlacementGroup => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
368
|
|
|
|
|
|
|
has ServiceLinkedRoleARN => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
369
|
|
|
|
|
|
|
has Tags => (isa => 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::TagProperty', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
370
|
|
|
|
|
|
|
has TargetGroupARNs => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
371
|
|
|
|
|
|
|
has TerminationPolicies => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
372
|
|
|
|
|
|
|
has VPCZoneIdentifier => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
373
|
|
|
|
|
|
|
} |
374
|
|
|
|
|
|
|
|
375
|
|
|
|
|
|
|
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 |