File Coverage

blib/lib/Cfn/Resource/AWS/AutoScalingPlans/ScalingPlan.pm
Criterion Covered Total %
statement 68 68 100.0
branch n/a
condition n/a
subroutine 24 24 100.0
pod 0 2 0.0
total 92 94 97.8


line stmt bran cond sub pod time code
1             # AWS::AutoScalingPlans::ScalingPlan generated from spec 2.25.0
2 1     1   663 use Moose::Util::TypeConstraints;
  1         4  
  1         12  
3              
4             coerce 'Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::AutoScalingPlans::ScalingPlan {
9 1     1   2113 use Moose;
  1         4  
  1         9  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 4 [ 'ScalingPlanName','ScalingPlanVersion' ]
15             }
16             sub supported_regions {
17 1     1 0 1088 [ 'ap-northeast-1','ap-northeast-2','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','eu-central-1','eu-west-1','eu-west-2','us-east-1','us-east-2','us-west-1','us-west-2' ]
18             }
19             }
20              
21              
22             subtype 'ArrayOfCfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::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::AutoScalingPlans::ScalingPlan::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::AutoScalingPlans::ScalingPlan::MetricDimension')->coerce($_)
41             } @$_
42             ]);
43             };
44              
45             subtype 'Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::MetricDimension',
46             as 'Cfn::Value';
47              
48             coerce 'Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::MetricDimension',
49             from 'HashRef',
50             via {
51             if (my $f = Cfn::TypeLibrary::try_function($_)) {
52             return $f
53             } else {
54             return Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::MetricDimensionValue->new( %$_ );
55             }
56             };
57              
58             package Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::MetricDimensionValue {
59 1     1   7464 use Moose;
  1         2  
  1         8  
60 1     1   6626 use MooseX::StrictConstructor;
  1         4  
  1         10  
61             extends 'Cfn::Value::TypedValue';
62            
63             has Name => (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::AutoScalingPlans::ScalingPlan::PredefinedScalingMetricSpecification',
68             as 'Cfn::Value';
69              
70             coerce 'Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::PredefinedScalingMetricSpecification',
71             from 'HashRef',
72             via {
73             if (my $f = Cfn::TypeLibrary::try_function($_)) {
74             return $f
75             } else {
76             return Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::PredefinedScalingMetricSpecificationValue->new( %$_ );
77             }
78             };
79              
80             package Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::PredefinedScalingMetricSpecificationValue {
81 1     1   3752 use Moose;
  1         3  
  1         4  
82 1     1   7124 use MooseX::StrictConstructor;
  1         3  
  1         8  
83             extends 'Cfn::Value::TypedValue';
84            
85             has PredefinedScalingMetricType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
86             has ResourceLabel => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
87             }
88              
89             subtype 'Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::CustomizedScalingMetricSpecification',
90             as 'Cfn::Value';
91              
92             coerce 'Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::CustomizedScalingMetricSpecification',
93             from 'HashRef',
94             via {
95             if (my $f = Cfn::TypeLibrary::try_function($_)) {
96             return $f
97             } else {
98             return Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::CustomizedScalingMetricSpecificationValue->new( %$_ );
99             }
100             };
101              
102             package Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::CustomizedScalingMetricSpecificationValue {
103 1     1   3518 use Moose;
  1         2  
  1         8  
104 1     1   7001 use MooseX::StrictConstructor;
  1         4  
  1         7  
105             extends 'Cfn::Value::TypedValue';
106            
107             has Dimensions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::MetricDimension', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
108             has MetricName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
109             has Namespace => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
110             has Statistic => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
111             has Unit => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
112             }
113             subtype 'ArrayOfCfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::TargetTrackingConfiguration',
114             as 'Cfn::Value',
115             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
116             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
117              
118             coerce 'ArrayOfCfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::TargetTrackingConfiguration',
119             from 'HashRef',
120             via {
121             if (my $f = Cfn::TypeLibrary::try_function($_)) {
122             return $f
123             } else {
124             die 'Only accepts functions';
125             }
126             },
127             from 'ArrayRef',
128             via {
129             Cfn::Value::Array->new(Value => [
130             map {
131             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::TargetTrackingConfiguration')->coerce($_)
132             } @$_
133             ]);
134             };
135              
136             subtype 'Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::TargetTrackingConfiguration',
137             as 'Cfn::Value';
138              
139             coerce 'Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::TargetTrackingConfiguration',
140             from 'HashRef',
141             via {
142             if (my $f = Cfn::TypeLibrary::try_function($_)) {
143             return $f
144             } else {
145             return Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::TargetTrackingConfigurationValue->new( %$_ );
146             }
147             };
148              
149             package Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::TargetTrackingConfigurationValue {
150 1     1   3660 use Moose;
  1         3  
  1         7  
151 1     1   6729 use MooseX::StrictConstructor;
  1         3  
  1         7  
152             extends 'Cfn::Value::TypedValue';
153            
154             has CustomizedScalingMetricSpecification => (isa => 'Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::CustomizedScalingMetricSpecification', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
155             has DisableScaleIn => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
156             has EstimatedInstanceWarmup => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
157             has PredefinedScalingMetricSpecification => (isa => 'Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::PredefinedScalingMetricSpecification', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
158             has ScaleInCooldown => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
159             has ScaleOutCooldown => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
160             has TargetValue => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
161             }
162             subtype 'ArrayOfCfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::TagFilter',
163             as 'Cfn::Value',
164             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
165             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
166              
167             coerce 'ArrayOfCfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::TagFilter',
168             from 'HashRef',
169             via {
170             if (my $f = Cfn::TypeLibrary::try_function($_)) {
171             return $f
172             } else {
173             die 'Only accepts functions';
174             }
175             },
176             from 'ArrayRef',
177             via {
178             Cfn::Value::Array->new(Value => [
179             map {
180             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::TagFilter')->coerce($_)
181             } @$_
182             ]);
183             };
184              
185             subtype 'Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::TagFilter',
186             as 'Cfn::Value';
187              
188             coerce 'Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::TagFilter',
189             from 'HashRef',
190             via {
191             if (my $f = Cfn::TypeLibrary::try_function($_)) {
192             return $f
193             } else {
194             return Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::TagFilterValue->new( %$_ );
195             }
196             };
197              
198             package Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::TagFilterValue {
199 1     1   3881 use Moose;
  1         2  
  1         7  
200 1     1   6846 use MooseX::StrictConstructor;
  1         3  
  1         6  
201             extends 'Cfn::Value::TypedValue';
202            
203             has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
204             has Values => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
205             }
206              
207             subtype 'Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::PredefinedLoadMetricSpecification',
208             as 'Cfn::Value';
209              
210             coerce 'Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::PredefinedLoadMetricSpecification',
211             from 'HashRef',
212             via {
213             if (my $f = Cfn::TypeLibrary::try_function($_)) {
214             return $f
215             } else {
216             return Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::PredefinedLoadMetricSpecificationValue->new( %$_ );
217             }
218             };
219              
220             package Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::PredefinedLoadMetricSpecificationValue {
221 1     1   3656 use Moose;
  1         4  
  1         7  
222 1     1   7101 use MooseX::StrictConstructor;
  1         4  
  1         7  
223             extends 'Cfn::Value::TypedValue';
224            
225             has PredefinedLoadMetricType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
226             has ResourceLabel => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
227             }
228              
229             subtype 'Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::CustomizedLoadMetricSpecification',
230             as 'Cfn::Value';
231              
232             coerce 'Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::CustomizedLoadMetricSpecification',
233             from 'HashRef',
234             via {
235             if (my $f = Cfn::TypeLibrary::try_function($_)) {
236             return $f
237             } else {
238             return Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::CustomizedLoadMetricSpecificationValue->new( %$_ );
239             }
240             };
241              
242             package Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::CustomizedLoadMetricSpecificationValue {
243 1     1   3757 use Moose;
  1         3  
  1         14  
244 1     1   6950 use MooseX::StrictConstructor;
  1         4  
  1         6  
245             extends 'Cfn::Value::TypedValue';
246            
247             has Dimensions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::MetricDimension', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
248             has MetricName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
249             has Namespace => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
250             has Statistic => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
251             has Unit => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
252             }
253             subtype 'ArrayOfCfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::ScalingInstruction',
254             as 'Cfn::Value',
255             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
256             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
257              
258             coerce 'ArrayOfCfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::ScalingInstruction',
259             from 'HashRef',
260             via {
261             if (my $f = Cfn::TypeLibrary::try_function($_)) {
262             return $f
263             } else {
264             die 'Only accepts functions';
265             }
266             },
267             from 'ArrayRef',
268             via {
269             Cfn::Value::Array->new(Value => [
270             map {
271             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::ScalingInstruction')->coerce($_)
272             } @$_
273             ]);
274             };
275              
276             subtype 'Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::ScalingInstruction',
277             as 'Cfn::Value';
278              
279             coerce 'Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::ScalingInstruction',
280             from 'HashRef',
281             via {
282             if (my $f = Cfn::TypeLibrary::try_function($_)) {
283             return $f
284             } else {
285             return Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::ScalingInstructionValue->new( %$_ );
286             }
287             };
288              
289             package Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::ScalingInstructionValue {
290 1     1   3885 use Moose;
  1         3  
  1         7  
291 1     1   6874 use MooseX::StrictConstructor;
  1         3  
  1         5  
292             extends 'Cfn::Value::TypedValue';
293            
294             has CustomizedLoadMetricSpecification => (isa => 'Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::CustomizedLoadMetricSpecification', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
295             has DisableDynamicScaling => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
296             has MaxCapacity => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
297             has MinCapacity => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
298             has PredefinedLoadMetricSpecification => (isa => 'Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::PredefinedLoadMetricSpecification', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
299             has PredictiveScalingMaxCapacityBehavior => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
300             has PredictiveScalingMaxCapacityBuffer => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
301             has PredictiveScalingMode => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
302             has ResourceId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
303             has ScalableDimension => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
304             has ScalingPolicyUpdateBehavior => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
305             has ScheduledActionBufferTime => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
306             has ServiceNamespace => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
307             has TargetTrackingConfigurations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::TargetTrackingConfiguration', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
308             }
309              
310             subtype 'Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::ApplicationSource',
311             as 'Cfn::Value';
312              
313             coerce 'Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::ApplicationSource',
314             from 'HashRef',
315             via {
316             if (my $f = Cfn::TypeLibrary::try_function($_)) {
317             return $f
318             } else {
319             return Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::ApplicationSourceValue->new( %$_ );
320             }
321             };
322              
323             package Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::ApplicationSourceValue {
324 1     1   3703 use Moose;
  1         4  
  1         6  
325 1     1   7281 use MooseX::StrictConstructor;
  1         3  
  1         9  
326             extends 'Cfn::Value::TypedValue';
327            
328             has CloudFormationStackARN => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
329             has TagFilters => (isa => 'ArrayOfCfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::TagFilter', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
330             }
331              
332             package Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan {
333 1     1   3899 use Moose;
  1         5  
  1         7  
334 1     1   7330 use MooseX::StrictConstructor;
  1         3  
  1         8  
335             extends 'Cfn::Resource::Properties';
336            
337             has ApplicationSource => (isa => 'Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::ApplicationSource', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
338             has ScalingInstructions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::ScalingInstruction', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
339             }
340              
341             1;