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 18.4.0
2 1     1   769 use Moose::Util::TypeConstraints;
  1         2  
  1         11  
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   2300 use Moose;
  1         2  
  1         8  
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 6 [ 'ScalingPlanName','ScalingPlanVersion' ]
15             }
16             sub supported_regions {
17 1     1 0 1205 [ 'ap-east-1','ap-northeast-1','ap-northeast-2','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-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::Object::AWS::AutoScalingPlans::ScalingPlan::MetricDimension->new( %$_ );
55             }
56             };
57              
58             package Cfn::Resource::Properties::Object::AWS::AutoScalingPlans::ScalingPlan::MetricDimension {
59 1     1   7873 use Moose;
  1         3  
  1         6  
60 1     1   6985 use MooseX::StrictConstructor;
  1         4  
  1         11  
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::Object::AWS::AutoScalingPlans::ScalingPlan::PredefinedScalingMetricSpecification->new( %$_ );
77             }
78             };
79              
80             package Cfn::Resource::Properties::Object::AWS::AutoScalingPlans::ScalingPlan::PredefinedScalingMetricSpecification {
81 1     1   3844 use Moose;
  1         3  
  1         8  
82 1     1   7184 use MooseX::StrictConstructor;
  1         2  
  1         7  
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::Object::AWS::AutoScalingPlans::ScalingPlan::CustomizedScalingMetricSpecification->new( %$_ );
99             }
100             };
101              
102             package Cfn::Resource::Properties::Object::AWS::AutoScalingPlans::ScalingPlan::CustomizedScalingMetricSpecification {
103 1     1   3687 use Moose;
  1         3  
  1         7  
104 1     1   7139 use MooseX::StrictConstructor;
  1         3  
  1         10  
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::Object::AWS::AutoScalingPlans::ScalingPlan::TargetTrackingConfiguration->new( %$_ );
146             }
147             };
148              
149             package Cfn::Resource::Properties::Object::AWS::AutoScalingPlans::ScalingPlan::TargetTrackingConfiguration {
150 1     1   3947 use Moose;
  1         3  
  1         15  
151 1     1   6920 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::Object::AWS::AutoScalingPlans::ScalingPlan::TagFilter->new( %$_ );
195             }
196             };
197              
198             package Cfn::Resource::Properties::Object::AWS::AutoScalingPlans::ScalingPlan::TagFilter {
199 1     1   3902 use Moose;
  1         2  
  1         6  
200 1     1   7384 use MooseX::StrictConstructor;
  1         3  
  1         5  
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::Object::AWS::AutoScalingPlans::ScalingPlan::PredefinedLoadMetricSpecification->new( %$_ );
217             }
218             };
219              
220             package Cfn::Resource::Properties::Object::AWS::AutoScalingPlans::ScalingPlan::PredefinedLoadMetricSpecification {
221 1     1   3724 use Moose;
  1         5  
  1         7  
222 1     1   6854 use MooseX::StrictConstructor;
  1         3  
  1         8  
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::Object::AWS::AutoScalingPlans::ScalingPlan::CustomizedLoadMetricSpecification->new( %$_ );
239             }
240             };
241              
242             package Cfn::Resource::Properties::Object::AWS::AutoScalingPlans::ScalingPlan::CustomizedLoadMetricSpecification {
243 1     1   3588 use Moose;
  1         5  
  1         7  
244 1     1   7434 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::Object::AWS::AutoScalingPlans::ScalingPlan::ScalingInstruction->new( %$_ );
286             }
287             };
288              
289             package Cfn::Resource::Properties::Object::AWS::AutoScalingPlans::ScalingPlan::ScalingInstruction {
290 1     1   3971 use Moose;
  1         4  
  1         5  
291 1     1   6923 use MooseX::StrictConstructor;
  1         5  
  1         7  
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::Object::AWS::AutoScalingPlans::ScalingPlan::ApplicationSource->new( %$_ );
320             }
321             };
322              
323             package Cfn::Resource::Properties::Object::AWS::AutoScalingPlans::ScalingPlan::ApplicationSource {
324 1     1   3799 use Moose;
  1         2  
  1         7  
325 1     1   6918 use MooseX::StrictConstructor;
  1         3  
  1         7  
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   3506 use Moose;
  1         3  
  1         7  
334 1     1   6746 use MooseX::StrictConstructor;
  1         3  
  1         5  
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;
342             ### main pod documentation begin ###
343              
344             =encoding UTF-8
345              
346             =head1 NAME
347              
348             Cfn::Resource::AWS::AutoScalingPlans::ScalingPlan - Cfn resource for AWS::AutoScalingPlans::ScalingPlan
349              
350             =head1 DESCRIPTION
351              
352             This module implements a Perl module that represents the CloudFormation object AWS::AutoScalingPlans::ScalingPlan.
353              
354             See L<Cfn> for more information on how to use it.
355              
356             =head1 AUTHOR
357              
358             Jose Luis Martinez
359             CAPSiDE
360             jlmartinez@capside.com
361              
362             =head1 COPYRIGHT and LICENSE
363              
364             Copyright (c) 2013 by CAPSiDE
365             This code is distributed under the Apache 2 License. The full text of the
366             license can be found in the LICENSE file included with this module.
367              
368             =cut