line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# AWS::AutoScaling::AutoScalingGroup generated from spec 5.3.0 |
2
|
5
|
|
|
5
|
|
3889
|
use Moose::Util::TypeConstraints; |
|
5
|
|
|
|
|
14
|
|
|
5
|
|
|
|
|
62
|
|
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
|
|
10977
|
use Moose; |
|
5
|
|
|
|
|
15
|
|
|
5
|
|
|
|
|
40
|
|
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
|
4
|
[ ] |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
sub supported_regions { |
17
|
1
|
|
|
1
|
0
|
1547
|
[ '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-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::AWS::AutoScaling::AutoScalingGroup::LaunchTemplateSpecificationValue->new( %$_ ); |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
}; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
package Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LaunchTemplateSpecificationValue { |
37
|
5
|
|
|
5
|
|
35730
|
use Moose; |
|
5
|
|
|
|
|
15
|
|
|
5
|
|
|
|
|
25
|
|
38
|
5
|
|
|
5
|
|
31606
|
use MooseX::StrictConstructor; |
|
5
|
|
|
|
|
14
|
|
|
5
|
|
|
|
|
49
|
|
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::AWS::AutoScaling::AutoScalingGroup::LaunchTemplateOverridesValue->new( %$_ ); |
78
|
|
|
|
|
|
|
} |
79
|
|
|
|
|
|
|
}; |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
package Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LaunchTemplateOverridesValue { |
82
|
5
|
|
|
5
|
|
18224
|
use Moose; |
|
5
|
|
|
|
|
25
|
|
|
5
|
|
|
|
|
40
|
|
83
|
5
|
|
|
5
|
|
31823
|
use MooseX::StrictConstructor; |
|
5
|
|
|
|
|
14
|
|
|
5
|
|
|
|
|
25
|
|
84
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
has InstanceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
87
|
|
|
|
|
|
|
} |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
subtype 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LaunchTemplate', |
90
|
|
|
|
|
|
|
as 'Cfn::Value'; |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
coerce 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LaunchTemplate', |
93
|
|
|
|
|
|
|
from 'HashRef', |
94
|
|
|
|
|
|
|
via { |
95
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
96
|
|
|
|
|
|
|
return $f |
97
|
|
|
|
|
|
|
} else { |
98
|
|
|
|
|
|
|
return Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LaunchTemplateValue->new( %$_ ); |
99
|
|
|
|
|
|
|
} |
100
|
|
|
|
|
|
|
}; |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
package Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LaunchTemplateValue { |
103
|
5
|
|
|
5
|
|
15967
|
use Moose; |
|
5
|
|
|
|
|
14
|
|
|
5
|
|
|
|
|
28
|
|
104
|
5
|
|
|
5
|
|
31544
|
use MooseX::StrictConstructor; |
|
5
|
|
|
|
|
18
|
|
|
5
|
|
|
|
|
29
|
|
105
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
has LaunchTemplateSpecification => (isa => 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LaunchTemplateSpecification', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
108
|
|
|
|
|
|
|
has Overrides => (isa => 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LaunchTemplateOverrides', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
109
|
|
|
|
|
|
|
} |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
subtype 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::InstancesDistribution', |
112
|
|
|
|
|
|
|
as 'Cfn::Value'; |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
coerce 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::InstancesDistribution', |
115
|
|
|
|
|
|
|
from 'HashRef', |
116
|
|
|
|
|
|
|
via { |
117
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
118
|
|
|
|
|
|
|
return $f |
119
|
|
|
|
|
|
|
} else { |
120
|
|
|
|
|
|
|
return Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::InstancesDistributionValue->new( %$_ ); |
121
|
|
|
|
|
|
|
} |
122
|
|
|
|
|
|
|
}; |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
package Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::InstancesDistributionValue { |
125
|
5
|
|
|
5
|
|
16482
|
use Moose; |
|
5
|
|
|
|
|
14
|
|
|
5
|
|
|
|
|
26
|
|
126
|
5
|
|
|
5
|
|
32115
|
use MooseX::StrictConstructor; |
|
5
|
|
|
|
|
15
|
|
|
5
|
|
|
|
|
22
|
|
127
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
128
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
has OnDemandAllocationStrategy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
130
|
|
|
|
|
|
|
has OnDemandBaseCapacity => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
131
|
|
|
|
|
|
|
has OnDemandPercentageAboveBaseCapacity => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
132
|
|
|
|
|
|
|
has SpotAllocationStrategy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
133
|
|
|
|
|
|
|
has SpotInstancePools => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
134
|
|
|
|
|
|
|
has SpotMaxPrice => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
135
|
|
|
|
|
|
|
} |
136
|
|
|
|
|
|
|
subtype 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::TagProperty', |
137
|
|
|
|
|
|
|
as 'Cfn::Value', |
138
|
|
|
|
|
|
|
where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, |
139
|
|
|
|
|
|
|
message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; |
140
|
|
|
|
|
|
|
|
141
|
|
|
|
|
|
|
coerce 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::TagProperty', |
142
|
|
|
|
|
|
|
from 'HashRef', |
143
|
|
|
|
|
|
|
via { |
144
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
145
|
|
|
|
|
|
|
return $f |
146
|
|
|
|
|
|
|
} else { |
147
|
|
|
|
|
|
|
die 'Only accepts functions'; |
148
|
|
|
|
|
|
|
} |
149
|
|
|
|
|
|
|
}, |
150
|
|
|
|
|
|
|
from 'ArrayRef', |
151
|
|
|
|
|
|
|
via { |
152
|
|
|
|
|
|
|
Cfn::Value::Array->new(Value => [ |
153
|
|
|
|
|
|
|
map { |
154
|
|
|
|
|
|
|
Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::TagProperty')->coerce($_) |
155
|
|
|
|
|
|
|
} @$_ |
156
|
|
|
|
|
|
|
]); |
157
|
|
|
|
|
|
|
}; |
158
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
subtype 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::TagProperty', |
160
|
|
|
|
|
|
|
as 'Cfn::Value'; |
161
|
|
|
|
|
|
|
|
162
|
|
|
|
|
|
|
coerce 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::TagProperty', |
163
|
|
|
|
|
|
|
from 'HashRef', |
164
|
|
|
|
|
|
|
via { |
165
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
166
|
|
|
|
|
|
|
return $f |
167
|
|
|
|
|
|
|
} else { |
168
|
|
|
|
|
|
|
return Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::TagPropertyValue->new( %$_ ); |
169
|
|
|
|
|
|
|
} |
170
|
|
|
|
|
|
|
}; |
171
|
|
|
|
|
|
|
|
172
|
|
|
|
|
|
|
package Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::TagPropertyValue { |
173
|
5
|
|
|
5
|
|
17317
|
use Moose; |
|
5
|
|
|
|
|
12
|
|
|
5
|
|
|
|
|
27
|
|
174
|
5
|
|
|
5
|
|
31437
|
use MooseX::StrictConstructor; |
|
5
|
|
|
|
|
13
|
|
|
5
|
|
|
|
|
24
|
|
175
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
176
|
|
|
|
|
|
|
|
177
|
|
|
|
|
|
|
has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
178
|
|
|
|
|
|
|
has PropagateAtLaunch => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
179
|
|
|
|
|
|
|
has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
180
|
|
|
|
|
|
|
} |
181
|
|
|
|
|
|
|
subtype 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::NotificationConfiguration', |
182
|
|
|
|
|
|
|
as 'Cfn::Value', |
183
|
|
|
|
|
|
|
where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, |
184
|
|
|
|
|
|
|
message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; |
185
|
|
|
|
|
|
|
|
186
|
|
|
|
|
|
|
coerce 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::NotificationConfiguration', |
187
|
|
|
|
|
|
|
from 'HashRef', |
188
|
|
|
|
|
|
|
via { |
189
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
190
|
|
|
|
|
|
|
return $f |
191
|
|
|
|
|
|
|
} else { |
192
|
|
|
|
|
|
|
die 'Only accepts functions'; |
193
|
|
|
|
|
|
|
} |
194
|
|
|
|
|
|
|
}, |
195
|
|
|
|
|
|
|
from 'ArrayRef', |
196
|
|
|
|
|
|
|
via { |
197
|
|
|
|
|
|
|
Cfn::Value::Array->new(Value => [ |
198
|
|
|
|
|
|
|
map { |
199
|
|
|
|
|
|
|
Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::NotificationConfiguration')->coerce($_) |
200
|
|
|
|
|
|
|
} @$_ |
201
|
|
|
|
|
|
|
]); |
202
|
|
|
|
|
|
|
}; |
203
|
|
|
|
|
|
|
|
204
|
|
|
|
|
|
|
subtype 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::NotificationConfiguration', |
205
|
|
|
|
|
|
|
as 'Cfn::Value'; |
206
|
|
|
|
|
|
|
|
207
|
|
|
|
|
|
|
coerce 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::NotificationConfiguration', |
208
|
|
|
|
|
|
|
from 'HashRef', |
209
|
|
|
|
|
|
|
via { |
210
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
211
|
|
|
|
|
|
|
return $f |
212
|
|
|
|
|
|
|
} else { |
213
|
|
|
|
|
|
|
return Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::NotificationConfigurationValue->new( %$_ ); |
214
|
|
|
|
|
|
|
} |
215
|
|
|
|
|
|
|
}; |
216
|
|
|
|
|
|
|
|
217
|
|
|
|
|
|
|
package Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::NotificationConfigurationValue { |
218
|
5
|
|
|
5
|
|
17205
|
use Moose; |
|
5
|
|
|
|
|
15
|
|
|
5
|
|
|
|
|
26
|
|
219
|
5
|
|
|
5
|
|
31942
|
use MooseX::StrictConstructor; |
|
5
|
|
|
|
|
14
|
|
|
5
|
|
|
|
|
25
|
|
220
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
221
|
|
|
|
|
|
|
|
222
|
|
|
|
|
|
|
has NotificationTypes => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
223
|
|
|
|
|
|
|
has TopicARN => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
224
|
|
|
|
|
|
|
} |
225
|
|
|
|
|
|
|
|
226
|
|
|
|
|
|
|
subtype 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::MixedInstancesPolicy', |
227
|
|
|
|
|
|
|
as 'Cfn::Value'; |
228
|
|
|
|
|
|
|
|
229
|
|
|
|
|
|
|
coerce 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::MixedInstancesPolicy', |
230
|
|
|
|
|
|
|
from 'HashRef', |
231
|
|
|
|
|
|
|
via { |
232
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
233
|
|
|
|
|
|
|
return $f |
234
|
|
|
|
|
|
|
} else { |
235
|
|
|
|
|
|
|
return Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::MixedInstancesPolicyValue->new( %$_ ); |
236
|
|
|
|
|
|
|
} |
237
|
|
|
|
|
|
|
}; |
238
|
|
|
|
|
|
|
|
239
|
|
|
|
|
|
|
package Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::MixedInstancesPolicyValue { |
240
|
5
|
|
|
5
|
|
15965
|
use Moose; |
|
5
|
|
|
|
|
13
|
|
|
5
|
|
|
|
|
25
|
|
241
|
5
|
|
|
5
|
|
31760
|
use MooseX::StrictConstructor; |
|
5
|
|
|
|
|
15
|
|
|
5
|
|
|
|
|
27
|
|
242
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
243
|
|
|
|
|
|
|
|
244
|
|
|
|
|
|
|
has InstancesDistribution => (isa => 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::InstancesDistribution', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
245
|
|
|
|
|
|
|
has LaunchTemplate => (isa => 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LaunchTemplate', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
246
|
|
|
|
|
|
|
} |
247
|
|
|
|
|
|
|
subtype 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::MetricsCollection', |
248
|
|
|
|
|
|
|
as 'Cfn::Value', |
249
|
|
|
|
|
|
|
where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, |
250
|
|
|
|
|
|
|
message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; |
251
|
|
|
|
|
|
|
|
252
|
|
|
|
|
|
|
coerce 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::MetricsCollection', |
253
|
|
|
|
|
|
|
from 'HashRef', |
254
|
|
|
|
|
|
|
via { |
255
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
256
|
|
|
|
|
|
|
return $f |
257
|
|
|
|
|
|
|
} else { |
258
|
|
|
|
|
|
|
die 'Only accepts functions'; |
259
|
|
|
|
|
|
|
} |
260
|
|
|
|
|
|
|
}, |
261
|
|
|
|
|
|
|
from 'ArrayRef', |
262
|
|
|
|
|
|
|
via { |
263
|
|
|
|
|
|
|
Cfn::Value::Array->new(Value => [ |
264
|
|
|
|
|
|
|
map { |
265
|
|
|
|
|
|
|
Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::MetricsCollection')->coerce($_) |
266
|
|
|
|
|
|
|
} @$_ |
267
|
|
|
|
|
|
|
]); |
268
|
|
|
|
|
|
|
}; |
269
|
|
|
|
|
|
|
|
270
|
|
|
|
|
|
|
subtype 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::MetricsCollection', |
271
|
|
|
|
|
|
|
as 'Cfn::Value'; |
272
|
|
|
|
|
|
|
|
273
|
|
|
|
|
|
|
coerce 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::MetricsCollection', |
274
|
|
|
|
|
|
|
from 'HashRef', |
275
|
|
|
|
|
|
|
via { |
276
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
277
|
|
|
|
|
|
|
return $f |
278
|
|
|
|
|
|
|
} else { |
279
|
|
|
|
|
|
|
return Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::MetricsCollectionValue->new( %$_ ); |
280
|
|
|
|
|
|
|
} |
281
|
|
|
|
|
|
|
}; |
282
|
|
|
|
|
|
|
|
283
|
|
|
|
|
|
|
package Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::MetricsCollectionValue { |
284
|
5
|
|
|
5
|
|
17140
|
use Moose; |
|
5
|
|
|
|
|
16
|
|
|
5
|
|
|
|
|
31
|
|
285
|
5
|
|
|
5
|
|
31339
|
use MooseX::StrictConstructor; |
|
5
|
|
|
|
|
12
|
|
|
5
|
|
|
|
|
25
|
|
286
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
287
|
|
|
|
|
|
|
|
288
|
|
|
|
|
|
|
has Granularity => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
289
|
|
|
|
|
|
|
has Metrics => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
290
|
|
|
|
|
|
|
} |
291
|
|
|
|
|
|
|
subtype 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LifecycleHookSpecification', |
292
|
|
|
|
|
|
|
as 'Cfn::Value', |
293
|
|
|
|
|
|
|
where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, |
294
|
|
|
|
|
|
|
message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; |
295
|
|
|
|
|
|
|
|
296
|
|
|
|
|
|
|
coerce 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LifecycleHookSpecification', |
297
|
|
|
|
|
|
|
from 'HashRef', |
298
|
|
|
|
|
|
|
via { |
299
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
300
|
|
|
|
|
|
|
return $f |
301
|
|
|
|
|
|
|
} else { |
302
|
|
|
|
|
|
|
die 'Only accepts functions'; |
303
|
|
|
|
|
|
|
} |
304
|
|
|
|
|
|
|
}, |
305
|
|
|
|
|
|
|
from 'ArrayRef', |
306
|
|
|
|
|
|
|
via { |
307
|
|
|
|
|
|
|
Cfn::Value::Array->new(Value => [ |
308
|
|
|
|
|
|
|
map { |
309
|
|
|
|
|
|
|
Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LifecycleHookSpecification')->coerce($_) |
310
|
|
|
|
|
|
|
} @$_ |
311
|
|
|
|
|
|
|
]); |
312
|
|
|
|
|
|
|
}; |
313
|
|
|
|
|
|
|
|
314
|
|
|
|
|
|
|
subtype 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LifecycleHookSpecification', |
315
|
|
|
|
|
|
|
as 'Cfn::Value'; |
316
|
|
|
|
|
|
|
|
317
|
|
|
|
|
|
|
coerce 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LifecycleHookSpecification', |
318
|
|
|
|
|
|
|
from 'HashRef', |
319
|
|
|
|
|
|
|
via { |
320
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
321
|
|
|
|
|
|
|
return $f |
322
|
|
|
|
|
|
|
} else { |
323
|
|
|
|
|
|
|
return Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LifecycleHookSpecificationValue->new( %$_ ); |
324
|
|
|
|
|
|
|
} |
325
|
|
|
|
|
|
|
}; |
326
|
|
|
|
|
|
|
|
327
|
|
|
|
|
|
|
package Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LifecycleHookSpecificationValue { |
328
|
5
|
|
|
5
|
|
16961
|
use Moose; |
|
5
|
|
|
|
|
12
|
|
|
5
|
|
|
|
|
26
|
|
329
|
5
|
|
|
5
|
|
31731
|
use MooseX::StrictConstructor; |
|
5
|
|
|
|
|
12
|
|
|
5
|
|
|
|
|
29
|
|
330
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
331
|
|
|
|
|
|
|
|
332
|
|
|
|
|
|
|
has DefaultResult => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
333
|
|
|
|
|
|
|
has HeartbeatTimeout => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
334
|
|
|
|
|
|
|
has LifecycleHookName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
335
|
|
|
|
|
|
|
has LifecycleTransition => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
336
|
|
|
|
|
|
|
has NotificationMetadata => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
337
|
|
|
|
|
|
|
has NotificationTargetARN => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
338
|
|
|
|
|
|
|
has RoleARN => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
339
|
|
|
|
|
|
|
} |
340
|
|
|
|
|
|
|
|
341
|
|
|
|
|
|
|
package Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup { |
342
|
5
|
|
|
5
|
|
15921
|
use Moose; |
|
5
|
|
|
|
|
13
|
|
|
5
|
|
|
|
|
28
|
|
343
|
5
|
|
|
5
|
|
31950
|
use MooseX::StrictConstructor; |
|
5
|
|
|
|
|
12
|
|
|
5
|
|
|
|
|
27
|
|
344
|
|
|
|
|
|
|
extends 'Cfn::Resource::Properties'; |
345
|
|
|
|
|
|
|
|
346
|
|
|
|
|
|
|
has AutoScalingGroupName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); |
347
|
|
|
|
|
|
|
has AvailabilityZones => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
348
|
|
|
|
|
|
|
has Cooldown => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
349
|
|
|
|
|
|
|
has DesiredCapacity => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
350
|
|
|
|
|
|
|
has HealthCheckGracePeriod => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
351
|
|
|
|
|
|
|
has HealthCheckType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
352
|
|
|
|
|
|
|
has InstanceId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); |
353
|
|
|
|
|
|
|
has LaunchConfigurationName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
354
|
|
|
|
|
|
|
has LaunchTemplate => (isa => 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LaunchTemplateSpecification', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
355
|
|
|
|
|
|
|
has LifecycleHookSpecificationList => (isa => 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::LifecycleHookSpecification', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
356
|
|
|
|
|
|
|
has LoadBalancerNames => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
357
|
|
|
|
|
|
|
has MaxSize => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
358
|
|
|
|
|
|
|
has MetricsCollection => (isa => 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::MetricsCollection', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
359
|
|
|
|
|
|
|
has MinSize => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
360
|
|
|
|
|
|
|
has MixedInstancesPolicy => (isa => 'Cfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::MixedInstancesPolicy', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
361
|
|
|
|
|
|
|
has NotificationConfigurations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::NotificationConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
362
|
|
|
|
|
|
|
has PlacementGroup => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
363
|
|
|
|
|
|
|
has ServiceLinkedRoleARN => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
364
|
|
|
|
|
|
|
has Tags => (isa => 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::AutoScalingGroup::TagProperty', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
365
|
|
|
|
|
|
|
has TargetGroupARNs => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
366
|
|
|
|
|
|
|
has TerminationPolicies => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
367
|
|
|
|
|
|
|
has VPCZoneIdentifier => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
368
|
|
|
|
|
|
|
} |
369
|
|
|
|
|
|
|
|
370
|
|
|
|
|
|
|
1; |