line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# AWS::EMR::InstanceGroupConfig generated from spec 18.4.0 |
2
|
2
|
|
|
2
|
|
1486
|
use Moose::Util::TypeConstraints; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
22
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
coerce 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig', |
5
|
|
|
|
|
|
|
from 'HashRef', |
6
|
|
|
|
|
|
|
via { Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig->new( %$_ ) }; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
package Cfn::Resource::AWS::EMR::InstanceGroupConfig { |
9
|
2
|
|
|
2
|
|
4581
|
use Moose; |
|
2
|
|
|
|
|
8
|
|
|
2
|
|
|
|
|
16
|
|
10
|
|
|
|
|
|
|
extends 'Cfn::Resource'; |
11
|
|
|
|
|
|
|
has Properties => (isa => 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig', is => 'rw', coerce => 1); |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub AttributeList { |
14
|
1
|
|
|
1
|
0
|
4
|
[ ] |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
sub supported_regions { |
17
|
1
|
|
|
1
|
0
|
1216
|
[ '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
|
|
|
|
|
|
|
subtype 'ArrayOfCfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::MetricDimension', |
23
|
|
|
|
|
|
|
as 'Cfn::Value', |
24
|
|
|
|
|
|
|
where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, |
25
|
|
|
|
|
|
|
message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
coerce 'ArrayOfCfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::MetricDimension', |
28
|
|
|
|
|
|
|
from 'HashRef', |
29
|
|
|
|
|
|
|
via { |
30
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
31
|
|
|
|
|
|
|
return $f |
32
|
|
|
|
|
|
|
} else { |
33
|
|
|
|
|
|
|
die 'Only accepts functions'; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
}, |
36
|
|
|
|
|
|
|
from 'ArrayRef', |
37
|
|
|
|
|
|
|
via { |
38
|
|
|
|
|
|
|
Cfn::Value::Array->new(Value => [ |
39
|
|
|
|
|
|
|
map { |
40
|
|
|
|
|
|
|
Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::MetricDimension')->coerce($_) |
41
|
|
|
|
|
|
|
} @$_ |
42
|
|
|
|
|
|
|
]); |
43
|
|
|
|
|
|
|
}; |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
subtype 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::MetricDimension', |
46
|
|
|
|
|
|
|
as 'Cfn::Value'; |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
coerce 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::MetricDimension', |
49
|
|
|
|
|
|
|
from 'HashRef', |
50
|
|
|
|
|
|
|
via { |
51
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
52
|
|
|
|
|
|
|
return $f |
53
|
|
|
|
|
|
|
} else { |
54
|
|
|
|
|
|
|
return Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::MetricDimension->new( %$_ ); |
55
|
|
|
|
|
|
|
} |
56
|
|
|
|
|
|
|
}; |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
package Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::MetricDimension { |
59
|
2
|
|
|
2
|
|
15363
|
use Moose; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
11
|
|
60
|
2
|
|
|
2
|
|
13294
|
use MooseX::StrictConstructor; |
|
2
|
|
|
|
|
7
|
|
|
2
|
|
|
|
|
20
|
|
61
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
64
|
|
|
|
|
|
|
has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
65
|
|
|
|
|
|
|
} |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
subtype 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::SimpleScalingPolicyConfiguration', |
68
|
|
|
|
|
|
|
as 'Cfn::Value'; |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
coerce 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::SimpleScalingPolicyConfiguration', |
71
|
|
|
|
|
|
|
from 'HashRef', |
72
|
|
|
|
|
|
|
via { |
73
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
74
|
|
|
|
|
|
|
return $f |
75
|
|
|
|
|
|
|
} else { |
76
|
|
|
|
|
|
|
return Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::SimpleScalingPolicyConfiguration->new( %$_ ); |
77
|
|
|
|
|
|
|
} |
78
|
|
|
|
|
|
|
}; |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
package Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::SimpleScalingPolicyConfiguration { |
81
|
2
|
|
|
2
|
|
7216
|
use Moose; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
13
|
|
82
|
2
|
|
|
2
|
|
13305
|
use MooseX::StrictConstructor; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
11
|
|
83
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
has AdjustmentType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
86
|
|
|
|
|
|
|
has CoolDown => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
87
|
|
|
|
|
|
|
has ScalingAdjustment => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
88
|
|
|
|
|
|
|
} |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
subtype 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::CloudWatchAlarmDefinition', |
91
|
|
|
|
|
|
|
as 'Cfn::Value'; |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
coerce 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::CloudWatchAlarmDefinition', |
94
|
|
|
|
|
|
|
from 'HashRef', |
95
|
|
|
|
|
|
|
via { |
96
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
97
|
|
|
|
|
|
|
return $f |
98
|
|
|
|
|
|
|
} else { |
99
|
|
|
|
|
|
|
return Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::CloudWatchAlarmDefinition->new( %$_ ); |
100
|
|
|
|
|
|
|
} |
101
|
|
|
|
|
|
|
}; |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
package Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::CloudWatchAlarmDefinition { |
104
|
2
|
|
|
2
|
|
6887
|
use Moose; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
12
|
|
105
|
2
|
|
|
2
|
|
13796
|
use MooseX::StrictConstructor; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
12
|
|
106
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
has ComparisonOperator => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
109
|
|
|
|
|
|
|
has Dimensions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::MetricDimension', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
110
|
|
|
|
|
|
|
has EvaluationPeriods => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
111
|
|
|
|
|
|
|
has MetricName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
112
|
|
|
|
|
|
|
has Namespace => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
113
|
|
|
|
|
|
|
has Period => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
114
|
|
|
|
|
|
|
has Statistic => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
115
|
|
|
|
|
|
|
has Threshold => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
116
|
|
|
|
|
|
|
has Unit => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
117
|
|
|
|
|
|
|
} |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
subtype 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::VolumeSpecification', |
120
|
|
|
|
|
|
|
as 'Cfn::Value'; |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
coerce 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::VolumeSpecification', |
123
|
|
|
|
|
|
|
from 'HashRef', |
124
|
|
|
|
|
|
|
via { |
125
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
126
|
|
|
|
|
|
|
return $f |
127
|
|
|
|
|
|
|
} else { |
128
|
|
|
|
|
|
|
return Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::VolumeSpecification->new( %$_ ); |
129
|
|
|
|
|
|
|
} |
130
|
|
|
|
|
|
|
}; |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
package Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::VolumeSpecification { |
133
|
2
|
|
|
2
|
|
7155
|
use Moose; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
13
|
|
134
|
2
|
|
|
2
|
|
13299
|
use MooseX::StrictConstructor; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
10
|
|
135
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
136
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
has Iops => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
138
|
|
|
|
|
|
|
has SizeInGB => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
139
|
|
|
|
|
|
|
has VolumeType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
140
|
|
|
|
|
|
|
} |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
subtype 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::ScalingTrigger', |
143
|
|
|
|
|
|
|
as 'Cfn::Value'; |
144
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
coerce 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::ScalingTrigger', |
146
|
|
|
|
|
|
|
from 'HashRef', |
147
|
|
|
|
|
|
|
via { |
148
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
149
|
|
|
|
|
|
|
return $f |
150
|
|
|
|
|
|
|
} else { |
151
|
|
|
|
|
|
|
return Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::ScalingTrigger->new( %$_ ); |
152
|
|
|
|
|
|
|
} |
153
|
|
|
|
|
|
|
}; |
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
package Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::ScalingTrigger { |
156
|
2
|
|
|
2
|
|
6949
|
use Moose; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
12
|
|
157
|
2
|
|
|
2
|
|
13478
|
use MooseX::StrictConstructor; |
|
2
|
|
|
|
|
7
|
|
|
2
|
|
|
|
|
12
|
|
158
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
159
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
has CloudWatchAlarmDefinition => (isa => 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::CloudWatchAlarmDefinition', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
161
|
|
|
|
|
|
|
} |
162
|
|
|
|
|
|
|
|
163
|
|
|
|
|
|
|
subtype 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::ScalingAction', |
164
|
|
|
|
|
|
|
as 'Cfn::Value'; |
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
coerce 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::ScalingAction', |
167
|
|
|
|
|
|
|
from 'HashRef', |
168
|
|
|
|
|
|
|
via { |
169
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
170
|
|
|
|
|
|
|
return $f |
171
|
|
|
|
|
|
|
} else { |
172
|
|
|
|
|
|
|
return Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::ScalingAction->new( %$_ ); |
173
|
|
|
|
|
|
|
} |
174
|
|
|
|
|
|
|
}; |
175
|
|
|
|
|
|
|
|
176
|
|
|
|
|
|
|
package Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::ScalingAction { |
177
|
2
|
|
|
2
|
|
7142
|
use Moose; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
12
|
|
178
|
2
|
|
|
2
|
|
13304
|
use MooseX::StrictConstructor; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
14
|
|
179
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
180
|
|
|
|
|
|
|
|
181
|
|
|
|
|
|
|
has Market => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
182
|
|
|
|
|
|
|
has SimpleScalingPolicyConfiguration => (isa => 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::SimpleScalingPolicyConfiguration', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
183
|
|
|
|
|
|
|
} |
184
|
|
|
|
|
|
|
subtype 'ArrayOfCfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::ScalingRule', |
185
|
|
|
|
|
|
|
as 'Cfn::Value', |
186
|
|
|
|
|
|
|
where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, |
187
|
|
|
|
|
|
|
message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; |
188
|
|
|
|
|
|
|
|
189
|
|
|
|
|
|
|
coerce 'ArrayOfCfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::ScalingRule', |
190
|
|
|
|
|
|
|
from 'HashRef', |
191
|
|
|
|
|
|
|
via { |
192
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
193
|
|
|
|
|
|
|
return $f |
194
|
|
|
|
|
|
|
} else { |
195
|
|
|
|
|
|
|
die 'Only accepts functions'; |
196
|
|
|
|
|
|
|
} |
197
|
|
|
|
|
|
|
}, |
198
|
|
|
|
|
|
|
from 'ArrayRef', |
199
|
|
|
|
|
|
|
via { |
200
|
|
|
|
|
|
|
Cfn::Value::Array->new(Value => [ |
201
|
|
|
|
|
|
|
map { |
202
|
|
|
|
|
|
|
Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::ScalingRule')->coerce($_) |
203
|
|
|
|
|
|
|
} @$_ |
204
|
|
|
|
|
|
|
]); |
205
|
|
|
|
|
|
|
}; |
206
|
|
|
|
|
|
|
|
207
|
|
|
|
|
|
|
subtype 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::ScalingRule', |
208
|
|
|
|
|
|
|
as 'Cfn::Value'; |
209
|
|
|
|
|
|
|
|
210
|
|
|
|
|
|
|
coerce 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::ScalingRule', |
211
|
|
|
|
|
|
|
from 'HashRef', |
212
|
|
|
|
|
|
|
via { |
213
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
214
|
|
|
|
|
|
|
return $f |
215
|
|
|
|
|
|
|
} else { |
216
|
|
|
|
|
|
|
return Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::ScalingRule->new( %$_ ); |
217
|
|
|
|
|
|
|
} |
218
|
|
|
|
|
|
|
}; |
219
|
|
|
|
|
|
|
|
220
|
|
|
|
|
|
|
package Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::ScalingRule { |
221
|
2
|
|
|
2
|
|
7242
|
use Moose; |
|
2
|
|
|
|
|
9
|
|
|
2
|
|
|
|
|
13
|
|
222
|
2
|
|
|
2
|
|
13366
|
use MooseX::StrictConstructor; |
|
2
|
|
|
|
|
7
|
|
|
2
|
|
|
|
|
13
|
|
223
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
224
|
|
|
|
|
|
|
|
225
|
|
|
|
|
|
|
has Action => (isa => 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::ScalingAction', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
226
|
|
|
|
|
|
|
has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
227
|
|
|
|
|
|
|
has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
228
|
|
|
|
|
|
|
has Trigger => (isa => 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::ScalingTrigger', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
229
|
|
|
|
|
|
|
} |
230
|
|
|
|
|
|
|
|
231
|
|
|
|
|
|
|
subtype 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::ScalingConstraints', |
232
|
|
|
|
|
|
|
as 'Cfn::Value'; |
233
|
|
|
|
|
|
|
|
234
|
|
|
|
|
|
|
coerce 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::ScalingConstraints', |
235
|
|
|
|
|
|
|
from 'HashRef', |
236
|
|
|
|
|
|
|
via { |
237
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
238
|
|
|
|
|
|
|
return $f |
239
|
|
|
|
|
|
|
} else { |
240
|
|
|
|
|
|
|
return Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::ScalingConstraints->new( %$_ ); |
241
|
|
|
|
|
|
|
} |
242
|
|
|
|
|
|
|
}; |
243
|
|
|
|
|
|
|
|
244
|
|
|
|
|
|
|
package Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::ScalingConstraints { |
245
|
2
|
|
|
2
|
|
6922
|
use Moose; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
10
|
|
246
|
2
|
|
|
2
|
|
13251
|
use MooseX::StrictConstructor; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
13
|
|
247
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
248
|
|
|
|
|
|
|
|
249
|
|
|
|
|
|
|
has MaxCapacity => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
250
|
|
|
|
|
|
|
has MinCapacity => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
251
|
|
|
|
|
|
|
} |
252
|
|
|
|
|
|
|
subtype 'ArrayOfCfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::EbsBlockDeviceConfig', |
253
|
|
|
|
|
|
|
as 'Cfn::Value', |
254
|
|
|
|
|
|
|
where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, |
255
|
|
|
|
|
|
|
message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; |
256
|
|
|
|
|
|
|
|
257
|
|
|
|
|
|
|
coerce 'ArrayOfCfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::EbsBlockDeviceConfig', |
258
|
|
|
|
|
|
|
from 'HashRef', |
259
|
|
|
|
|
|
|
via { |
260
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
261
|
|
|
|
|
|
|
return $f |
262
|
|
|
|
|
|
|
} else { |
263
|
|
|
|
|
|
|
die 'Only accepts functions'; |
264
|
|
|
|
|
|
|
} |
265
|
|
|
|
|
|
|
}, |
266
|
|
|
|
|
|
|
from 'ArrayRef', |
267
|
|
|
|
|
|
|
via { |
268
|
|
|
|
|
|
|
Cfn::Value::Array->new(Value => [ |
269
|
|
|
|
|
|
|
map { |
270
|
|
|
|
|
|
|
Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::EbsBlockDeviceConfig')->coerce($_) |
271
|
|
|
|
|
|
|
} @$_ |
272
|
|
|
|
|
|
|
]); |
273
|
|
|
|
|
|
|
}; |
274
|
|
|
|
|
|
|
|
275
|
|
|
|
|
|
|
subtype 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::EbsBlockDeviceConfig', |
276
|
|
|
|
|
|
|
as 'Cfn::Value'; |
277
|
|
|
|
|
|
|
|
278
|
|
|
|
|
|
|
coerce 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::EbsBlockDeviceConfig', |
279
|
|
|
|
|
|
|
from 'HashRef', |
280
|
|
|
|
|
|
|
via { |
281
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
282
|
|
|
|
|
|
|
return $f |
283
|
|
|
|
|
|
|
} else { |
284
|
|
|
|
|
|
|
return Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::EbsBlockDeviceConfig->new( %$_ ); |
285
|
|
|
|
|
|
|
} |
286
|
|
|
|
|
|
|
}; |
287
|
|
|
|
|
|
|
|
288
|
|
|
|
|
|
|
package Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::EbsBlockDeviceConfig { |
289
|
2
|
|
|
2
|
|
7395
|
use Moose; |
|
2
|
|
|
|
|
8
|
|
|
2
|
|
|
|
|
11
|
|
290
|
2
|
|
|
2
|
|
13210
|
use MooseX::StrictConstructor; |
|
2
|
|
|
|
|
7
|
|
|
2
|
|
|
|
|
11
|
|
291
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
292
|
|
|
|
|
|
|
|
293
|
|
|
|
|
|
|
has VolumeSpecification => (isa => 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::VolumeSpecification', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
294
|
|
|
|
|
|
|
has VolumesPerInstance => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
295
|
|
|
|
|
|
|
} |
296
|
|
|
|
|
|
|
|
297
|
|
|
|
|
|
|
subtype 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::EbsConfiguration', |
298
|
|
|
|
|
|
|
as 'Cfn::Value'; |
299
|
|
|
|
|
|
|
|
300
|
|
|
|
|
|
|
coerce 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::EbsConfiguration', |
301
|
|
|
|
|
|
|
from 'HashRef', |
302
|
|
|
|
|
|
|
via { |
303
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
304
|
|
|
|
|
|
|
return $f |
305
|
|
|
|
|
|
|
} else { |
306
|
|
|
|
|
|
|
return Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::EbsConfiguration->new( %$_ ); |
307
|
|
|
|
|
|
|
} |
308
|
|
|
|
|
|
|
}; |
309
|
|
|
|
|
|
|
|
310
|
|
|
|
|
|
|
package Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::EbsConfiguration { |
311
|
2
|
|
|
2
|
|
6818
|
use Moose; |
|
2
|
|
|
|
|
7
|
|
|
2
|
|
|
|
|
12
|
|
312
|
2
|
|
|
2
|
|
13260
|
use MooseX::StrictConstructor; |
|
2
|
|
|
|
|
8
|
|
|
2
|
|
|
|
|
12
|
|
313
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
314
|
|
|
|
|
|
|
|
315
|
|
|
|
|
|
|
has EbsBlockDeviceConfigs => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::EbsBlockDeviceConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
316
|
|
|
|
|
|
|
has EbsOptimized => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
317
|
|
|
|
|
|
|
} |
318
|
|
|
|
|
|
|
subtype 'ArrayOfCfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::Configuration', |
319
|
|
|
|
|
|
|
as 'Cfn::Value', |
320
|
|
|
|
|
|
|
where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, |
321
|
|
|
|
|
|
|
message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; |
322
|
|
|
|
|
|
|
|
323
|
|
|
|
|
|
|
coerce 'ArrayOfCfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::Configuration', |
324
|
|
|
|
|
|
|
from 'HashRef', |
325
|
|
|
|
|
|
|
via { |
326
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
327
|
|
|
|
|
|
|
return $f |
328
|
|
|
|
|
|
|
} else { |
329
|
|
|
|
|
|
|
die 'Only accepts functions'; |
330
|
|
|
|
|
|
|
} |
331
|
|
|
|
|
|
|
}, |
332
|
|
|
|
|
|
|
from 'ArrayRef', |
333
|
|
|
|
|
|
|
via { |
334
|
|
|
|
|
|
|
Cfn::Value::Array->new(Value => [ |
335
|
|
|
|
|
|
|
map { |
336
|
|
|
|
|
|
|
Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::Configuration')->coerce($_) |
337
|
|
|
|
|
|
|
} @$_ |
338
|
|
|
|
|
|
|
]); |
339
|
|
|
|
|
|
|
}; |
340
|
|
|
|
|
|
|
|
341
|
|
|
|
|
|
|
subtype 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::Configuration', |
342
|
|
|
|
|
|
|
as 'Cfn::Value'; |
343
|
|
|
|
|
|
|
|
344
|
|
|
|
|
|
|
coerce 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::Configuration', |
345
|
|
|
|
|
|
|
from 'HashRef', |
346
|
|
|
|
|
|
|
via { |
347
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
348
|
|
|
|
|
|
|
return $f |
349
|
|
|
|
|
|
|
} else { |
350
|
|
|
|
|
|
|
return Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::Configuration->new( %$_ ); |
351
|
|
|
|
|
|
|
} |
352
|
|
|
|
|
|
|
}; |
353
|
|
|
|
|
|
|
|
354
|
|
|
|
|
|
|
package Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::Configuration { |
355
|
2
|
|
|
2
|
|
7190
|
use Moose; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
12
|
|
356
|
2
|
|
|
2
|
|
13911
|
use MooseX::StrictConstructor; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
12
|
|
357
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
358
|
|
|
|
|
|
|
|
359
|
|
|
|
|
|
|
has Classification => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); |
360
|
|
|
|
|
|
|
has ConfigurationProperties => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); |
361
|
|
|
|
|
|
|
has Configurations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::Configuration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); |
362
|
|
|
|
|
|
|
} |
363
|
|
|
|
|
|
|
|
364
|
|
|
|
|
|
|
subtype 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::AutoScalingPolicy', |
365
|
|
|
|
|
|
|
as 'Cfn::Value'; |
366
|
|
|
|
|
|
|
|
367
|
|
|
|
|
|
|
coerce 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::AutoScalingPolicy', |
368
|
|
|
|
|
|
|
from 'HashRef', |
369
|
|
|
|
|
|
|
via { |
370
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
371
|
|
|
|
|
|
|
return $f |
372
|
|
|
|
|
|
|
} else { |
373
|
|
|
|
|
|
|
return Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::AutoScalingPolicy->new( %$_ ); |
374
|
|
|
|
|
|
|
} |
375
|
|
|
|
|
|
|
}; |
376
|
|
|
|
|
|
|
|
377
|
|
|
|
|
|
|
package Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::AutoScalingPolicy { |
378
|
2
|
|
|
2
|
|
7177
|
use Moose; |
|
2
|
|
|
|
|
8
|
|
|
2
|
|
|
|
|
14
|
|
379
|
2
|
|
|
2
|
|
13631
|
use MooseX::StrictConstructor; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
12
|
|
380
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
381
|
|
|
|
|
|
|
|
382
|
|
|
|
|
|
|
has Constraints => (isa => 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::ScalingConstraints', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
383
|
|
|
|
|
|
|
has Rules => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::ScalingRule', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
384
|
|
|
|
|
|
|
} |
385
|
|
|
|
|
|
|
|
386
|
|
|
|
|
|
|
package Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig { |
387
|
2
|
|
|
2
|
|
6670
|
use Moose; |
|
2
|
|
|
|
|
8
|
|
|
2
|
|
|
|
|
13
|
|
388
|
2
|
|
|
2
|
|
13210
|
use MooseX::StrictConstructor; |
|
2
|
|
|
|
|
8
|
|
|
2
|
|
|
|
|
12
|
|
389
|
|
|
|
|
|
|
extends 'Cfn::Resource::Properties'; |
390
|
|
|
|
|
|
|
|
391
|
|
|
|
|
|
|
has AutoScalingPolicy => (isa => 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::AutoScalingPolicy', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
392
|
|
|
|
|
|
|
has BidPrice => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); |
393
|
|
|
|
|
|
|
has Configurations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::Configuration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); |
394
|
|
|
|
|
|
|
has EbsConfiguration => (isa => 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::EbsConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); |
395
|
|
|
|
|
|
|
has InstanceCount => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
396
|
|
|
|
|
|
|
has InstanceRole => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); |
397
|
|
|
|
|
|
|
has InstanceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); |
398
|
|
|
|
|
|
|
has JobFlowId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); |
399
|
|
|
|
|
|
|
has Market => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); |
400
|
|
|
|
|
|
|
has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); |
401
|
|
|
|
|
|
|
} |
402
|
|
|
|
|
|
|
|
403
|
|
|
|
|
|
|
1; |
404
|
|
|
|
|
|
|
### main pod documentation begin ### |
405
|
|
|
|
|
|
|
|
406
|
|
|
|
|
|
|
=encoding UTF-8 |
407
|
|
|
|
|
|
|
|
408
|
|
|
|
|
|
|
=head1 NAME |
409
|
|
|
|
|
|
|
|
410
|
|
|
|
|
|
|
Cfn::Resource::AWS::EMR::InstanceGroupConfig - Cfn resource for AWS::EMR::InstanceGroupConfig |
411
|
|
|
|
|
|
|
|
412
|
|
|
|
|
|
|
=head1 DESCRIPTION |
413
|
|
|
|
|
|
|
|
414
|
|
|
|
|
|
|
This module implements a Perl module that represents the CloudFormation object AWS::EMR::InstanceGroupConfig. |
415
|
|
|
|
|
|
|
|
416
|
|
|
|
|
|
|
See L<Cfn> for more information on how to use it. |
417
|
|
|
|
|
|
|
|
418
|
|
|
|
|
|
|
=head1 AUTHOR |
419
|
|
|
|
|
|
|
|
420
|
|
|
|
|
|
|
Jose Luis Martinez |
421
|
|
|
|
|
|
|
CAPSiDE |
422
|
|
|
|
|
|
|
jlmartinez@capside.com |
423
|
|
|
|
|
|
|
|
424
|
|
|
|
|
|
|
=head1 COPYRIGHT and LICENSE |
425
|
|
|
|
|
|
|
|
426
|
|
|
|
|
|
|
Copyright (c) 2013 by CAPSiDE |
427
|
|
|
|
|
|
|
This code is distributed under the Apache 2 License. The full text of the |
428
|
|
|
|
|
|
|
license can be found in the LICENSE file included with this module. |
429
|
|
|
|
|
|
|
|
430
|
|
|
|
|
|
|
=cut |