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