« Cfn/Resource/AWS/NetworkFirewall/FirewallPolicy.pm
↑ Summary
Cfn/Resource/AWS/EMR/InstanceGroupConfig.pm »
| 1 | # AWS::AutoScalingPlans::ScalingPlan generated from spec 18.4.0 | ||||||||||
| 2 | 1 | ▶ | use Moose::Util::TypeConstraints; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | coerce 'Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan', | ||||||||||
| 5 | from 'HashRef', | ||||||||||
| 6 | 0 | ▶ | via { Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan->new( %$_ ) }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 7 | |||||||||||
| 8 | 1 | package Cfn::Resource::AWS::AutoScalingPlans::ScalingPlan { | |||||||||
| 9 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 1 | extends 'Cfn::Resource'; | |||||||||
| 11 | 1 | has Properties => (isa => 'Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan', is => 'rw', coerce => 1); | |||||||||
| 12 | |||||||||||
| 13 | sub AttributeList { | ||||||||||
| 14 | 1 | ▶ | [ 'ScalingPlanName','ScalingPlanVersion' ] | ||||||||
|
Subroutine
AttributeList: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 15 | } | ||||||||||
| 16 | sub supported_regions { | ||||||||||
| 17 | 1 | ▶ | [ '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' ] | ||||||||
|
Subroutine
supported_regions: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 18 | } | ||||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | |||||||||||
| 22 | subtype 'ArrayOfCfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::MetricDimension', | ||||||||||
| 23 | as 'Cfn::Value', | ||||||||||
| 24 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 25 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 26 | |||||||||||
| 27 | coerce 'ArrayOfCfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::MetricDimension', | ||||||||||
| 28 | from 'HashRef', | ||||||||||
| 29 | via { | ||||||||||
| 30 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 31 | 0 | return $f | |||||||||
| 32 | } else { | ||||||||||
| 33 | 0 | die 'Only accepts functions'; | |||||||||
| 34 | } | ||||||||||
| 35 | }, | ||||||||||
| 36 | from 'ArrayRef', | ||||||||||
| 37 | via { | ||||||||||
| 38 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 39 | map { | ||||||||||
| 40 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::MetricDimension')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 41 | } @$_ | ||||||||||
| 42 | ]); | ||||||||||
| 43 | 1 | }; | |||||||||
| 44 | |||||||||||
| 45 | 1 | 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 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 52 | 0 | return $f | |||||||||
| 53 | } else { | ||||||||||
| 54 | 0 | return Cfn::Resource::Properties::Object::AWS::AutoScalingPlans::ScalingPlan::MetricDimension->new( %$_ ); | |||||||||
| 55 | } | ||||||||||
| 56 | 1 | }; | |||||||||
| 57 | |||||||||||
| 58 | 1 | package Cfn::Resource::Properties::Object::AWS::AutoScalingPlans::ScalingPlan::MetricDimension { | |||||||||
| 59 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 60 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 61 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 62 | |||||||||||
| 63 | 1 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 64 | 1 | has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 65 | } | ||||||||||
| 66 | |||||||||||
| 67 | 1 | 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 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 74 | 0 | return $f | |||||||||
| 75 | } else { | ||||||||||
| 76 | 0 | return Cfn::Resource::Properties::Object::AWS::AutoScalingPlans::ScalingPlan::PredefinedScalingMetricSpecification->new( %$_ ); | |||||||||
| 77 | } | ||||||||||
| 78 | 1 | }; | |||||||||
| 79 | |||||||||||
| 80 | 1 | package Cfn::Resource::Properties::Object::AWS::AutoScalingPlans::ScalingPlan::PredefinedScalingMetricSpecification { | |||||||||
| 81 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 82 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 83 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 84 | |||||||||||
| 85 | 1 | has PredefinedScalingMetricType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 86 | 1 | has ResourceLabel => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 87 | } | ||||||||||
| 88 | |||||||||||
| 89 | 1 | 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 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 96 | 0 | return $f | |||||||||
| 97 | } else { | ||||||||||
| 98 | 0 | return Cfn::Resource::Properties::Object::AWS::AutoScalingPlans::ScalingPlan::CustomizedScalingMetricSpecification->new( %$_ ); | |||||||||
| 99 | } | ||||||||||
| 100 | 1 | }; | |||||||||
| 101 | |||||||||||
| 102 | 1 | package Cfn::Resource::Properties::Object::AWS::AutoScalingPlans::ScalingPlan::CustomizedScalingMetricSpecification { | |||||||||
| 103 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 104 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 105 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 106 | |||||||||||
| 107 | 1 | has Dimensions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::MetricDimension', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 108 | 1 | has MetricName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 109 | 1 | has Namespace => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 110 | 1 | has Statistic => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 111 | 1 | 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 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 116 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 117 | |||||||||||
| 118 | coerce 'ArrayOfCfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::TargetTrackingConfiguration', | ||||||||||
| 119 | from 'HashRef', | ||||||||||
| 120 | via { | ||||||||||
| 121 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 122 | 0 | return $f | |||||||||
| 123 | } else { | ||||||||||
| 124 | 0 | die 'Only accepts functions'; | |||||||||
| 125 | } | ||||||||||
| 126 | }, | ||||||||||
| 127 | from 'ArrayRef', | ||||||||||
| 128 | via { | ||||||||||
| 129 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 130 | map { | ||||||||||
| 131 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::TargetTrackingConfiguration')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 132 | } @$_ | ||||||||||
| 133 | ]); | ||||||||||
| 134 | 1 | }; | |||||||||
| 135 | |||||||||||
| 136 | 1 | 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 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 143 | 0 | return $f | |||||||||
| 144 | } else { | ||||||||||
| 145 | 0 | return Cfn::Resource::Properties::Object::AWS::AutoScalingPlans::ScalingPlan::TargetTrackingConfiguration->new( %$_ ); | |||||||||
| 146 | } | ||||||||||
| 147 | 1 | }; | |||||||||
| 148 | |||||||||||
| 149 | 1 | package Cfn::Resource::Properties::Object::AWS::AutoScalingPlans::ScalingPlan::TargetTrackingConfiguration { | |||||||||
| 150 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 151 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 152 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 153 | |||||||||||
| 154 | 1 | has CustomizedScalingMetricSpecification => (isa => 'Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::CustomizedScalingMetricSpecification', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 155 | 1 | has DisableScaleIn => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 156 | 1 | has EstimatedInstanceWarmup => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 157 | 1 | has PredefinedScalingMetricSpecification => (isa => 'Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::PredefinedScalingMetricSpecification', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 158 | 1 | has ScaleInCooldown => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 159 | 1 | has ScaleOutCooldown => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 160 | 1 | 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 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 165 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 166 | |||||||||||
| 167 | coerce 'ArrayOfCfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::TagFilter', | ||||||||||
| 168 | from 'HashRef', | ||||||||||
| 169 | via { | ||||||||||
| 170 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 171 | 0 | return $f | |||||||||
| 172 | } else { | ||||||||||
| 173 | 0 | die 'Only accepts functions'; | |||||||||
| 174 | } | ||||||||||
| 175 | }, | ||||||||||
| 176 | from 'ArrayRef', | ||||||||||
| 177 | via { | ||||||||||
| 178 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 179 | map { | ||||||||||
| 180 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::TagFilter')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 181 | } @$_ | ||||||||||
| 182 | ]); | ||||||||||
| 183 | 1 | }; | |||||||||
| 184 | |||||||||||
| 185 | 1 | 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 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 192 | 0 | return $f | |||||||||
| 193 | } else { | ||||||||||
| 194 | 0 | return Cfn::Resource::Properties::Object::AWS::AutoScalingPlans::ScalingPlan::TagFilter->new( %$_ ); | |||||||||
| 195 | } | ||||||||||
| 196 | 1 | }; | |||||||||
| 197 | |||||||||||
| 198 | 1 | package Cfn::Resource::Properties::Object::AWS::AutoScalingPlans::ScalingPlan::TagFilter { | |||||||||
| 199 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 200 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 201 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 202 | |||||||||||
| 203 | 1 | has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 204 | 1 | has Values => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 205 | } | ||||||||||
| 206 | |||||||||||
| 207 | 1 | 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 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 214 | 0 | return $f | |||||||||
| 215 | } else { | ||||||||||
| 216 | 0 | return Cfn::Resource::Properties::Object::AWS::AutoScalingPlans::ScalingPlan::PredefinedLoadMetricSpecification->new( %$_ ); | |||||||||
| 217 | } | ||||||||||
| 218 | 1 | }; | |||||||||
| 219 | |||||||||||
| 220 | 1 | package Cfn::Resource::Properties::Object::AWS::AutoScalingPlans::ScalingPlan::PredefinedLoadMetricSpecification { | |||||||||
| 221 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 222 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 223 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 224 | |||||||||||
| 225 | 1 | has PredefinedLoadMetricType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 226 | 1 | has ResourceLabel => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 227 | } | ||||||||||
| 228 | |||||||||||
| 229 | 1 | 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 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 236 | 0 | return $f | |||||||||
| 237 | } else { | ||||||||||
| 238 | 0 | return Cfn::Resource::Properties::Object::AWS::AutoScalingPlans::ScalingPlan::CustomizedLoadMetricSpecification->new( %$_ ); | |||||||||
| 239 | } | ||||||||||
| 240 | 1 | }; | |||||||||
| 241 | |||||||||||
| 242 | 1 | package Cfn::Resource::Properties::Object::AWS::AutoScalingPlans::ScalingPlan::CustomizedLoadMetricSpecification { | |||||||||
| 243 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 244 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 245 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 246 | |||||||||||
| 247 | 1 | has Dimensions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::MetricDimension', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 248 | 1 | has MetricName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 249 | 1 | has Namespace => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 250 | 1 | has Statistic => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 251 | 1 | 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 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 256 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 257 | |||||||||||
| 258 | coerce 'ArrayOfCfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::ScalingInstruction', | ||||||||||
| 259 | from 'HashRef', | ||||||||||
| 260 | via { | ||||||||||
| 261 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 262 | 0 | return $f | |||||||||
| 263 | } else { | ||||||||||
| 264 | 0 | die 'Only accepts functions'; | |||||||||
| 265 | } | ||||||||||
| 266 | }, | ||||||||||
| 267 | from 'ArrayRef', | ||||||||||
| 268 | via { | ||||||||||
| 269 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 270 | map { | ||||||||||
| 271 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::ScalingInstruction')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 272 | } @$_ | ||||||||||
| 273 | ]); | ||||||||||
| 274 | 1 | }; | |||||||||
| 275 | |||||||||||
| 276 | 1 | 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 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 283 | 0 | return $f | |||||||||
| 284 | } else { | ||||||||||
| 285 | 0 | return Cfn::Resource::Properties::Object::AWS::AutoScalingPlans::ScalingPlan::ScalingInstruction->new( %$_ ); | |||||||||
| 286 | } | ||||||||||
| 287 | 1 | }; | |||||||||
| 288 | |||||||||||
| 289 | 1 | package Cfn::Resource::Properties::Object::AWS::AutoScalingPlans::ScalingPlan::ScalingInstruction { | |||||||||
| 290 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 291 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 292 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 293 | |||||||||||
| 294 | 1 | has CustomizedLoadMetricSpecification => (isa => 'Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::CustomizedLoadMetricSpecification', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 295 | 1 | has DisableDynamicScaling => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 296 | 1 | has MaxCapacity => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 297 | 1 | has MinCapacity => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 298 | 1 | has PredefinedLoadMetricSpecification => (isa => 'Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::PredefinedLoadMetricSpecification', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 299 | 1 | has PredictiveScalingMaxCapacityBehavior => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 300 | 1 | has PredictiveScalingMaxCapacityBuffer => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 301 | 1 | has PredictiveScalingMode => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 302 | 1 | has ResourceId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 303 | 1 | has ScalableDimension => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 304 | 1 | has ScalingPolicyUpdateBehavior => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 305 | 1 | has ScheduledActionBufferTime => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 306 | 1 | has ServiceNamespace => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 307 | 1 | has TargetTrackingConfigurations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::TargetTrackingConfiguration', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 308 | } | ||||||||||
| 309 | |||||||||||
| 310 | 1 | 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 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 317 | 0 | return $f | |||||||||
| 318 | } else { | ||||||||||
| 319 | 0 | return Cfn::Resource::Properties::Object::AWS::AutoScalingPlans::ScalingPlan::ApplicationSource->new( %$_ ); | |||||||||
| 320 | } | ||||||||||
| 321 | 1 | }; | |||||||||
| 322 | |||||||||||
| 323 | 1 | package Cfn::Resource::Properties::Object::AWS::AutoScalingPlans::ScalingPlan::ApplicationSource { | |||||||||
| 324 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 325 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 326 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 327 | |||||||||||
| 328 | 1 | has CloudFormationStackARN => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 329 | 1 | has TagFilters => (isa => 'ArrayOfCfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::TagFilter', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 330 | } | ||||||||||
| 331 | |||||||||||
| 332 | 1 | package Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan { | |||||||||
| 333 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 334 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 335 | 1 | extends 'Cfn::Resource::Properties'; | |||||||||
| 336 | |||||||||||
| 337 | 1 | has ApplicationSource => (isa => 'Cfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::ApplicationSource', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 338 | 1 | has ScalingInstructions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::AutoScalingPlans::ScalingPlan::ScalingInstruction', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 339 | } | ||||||||||
| 340 | |||||||||||
| 341 | 1 | 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 | ||||||||||