| 1 | # AWS::ApplicationAutoScaling::ScalableTarget generated from spec 18.4.0 | ||||||||||
| 2 | 2 | ▶ | use Moose::Util::TypeConstraints; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | coerce 'Cfn::Resource::Properties::AWS::ApplicationAutoScaling::ScalableTarget', | ||||||||||
| 5 | from 'HashRef', | ||||||||||
| 6 | 2 | ▶ | via { Cfn::Resource::Properties::AWS::ApplicationAutoScaling::ScalableTarget->new( %$_ ) }; | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 2 | package Cfn::Resource::AWS::ApplicationAutoScaling::ScalableTarget { | |||||||||
| 9 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 2 | extends 'Cfn::Resource'; | |||||||||
| 11 | 2 | has Properties => (isa => 'Cfn::Resource::Properties::AWS::ApplicationAutoScaling::ScalableTarget', is => 'rw', coerce => 1); | |||||||||
| 12 | |||||||||||
| 13 | sub AttributeList { | ||||||||||
| 14 | 1 | ▶ | [ ] | ||||||||
|
Subroutine
AttributeList: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 15 | } | ||||||||||
| 16 | sub supported_regions { | ||||||||||
| 17 | 1 | ▶ | [ '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' ] | ||||||||
|
Subroutine
supported_regions: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 18 | } | ||||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | |||||||||||
| 22 | |||||||||||
| 23 | 2 | subtype 'Cfn::Resource::Properties::AWS::ApplicationAutoScaling::ScalableTarget::ScalableTargetAction', | |||||||||
| 24 | as 'Cfn::Value'; | ||||||||||
| 25 | |||||||||||
| 26 | coerce 'Cfn::Resource::Properties::AWS::ApplicationAutoScaling::ScalableTarget::ScalableTargetAction', | ||||||||||
| 27 | from 'HashRef', | ||||||||||
| 28 | via { | ||||||||||
| 29 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 30 | 0 | return $f | |||||||||
| 31 | } else { | ||||||||||
| 32 | 0 | return Cfn::Resource::Properties::Object::AWS::ApplicationAutoScaling::ScalableTarget::ScalableTargetAction->new( %$_ ); | |||||||||
| 33 | } | ||||||||||
| 34 | 2 | }; | |||||||||
| 35 | |||||||||||
| 36 | 2 | package Cfn::Resource::Properties::Object::AWS::ApplicationAutoScaling::ScalableTarget::ScalableTargetAction { | |||||||||
| 37 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 38 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 39 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 40 | |||||||||||
| 41 | 2 | has MaxCapacity => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 42 | 2 | has MinCapacity => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 43 | } | ||||||||||
| 44 | |||||||||||
| 45 | 2 | subtype 'Cfn::Resource::Properties::AWS::ApplicationAutoScaling::ScalableTarget::SuspendedState', | |||||||||
| 46 | as 'Cfn::Value'; | ||||||||||
| 47 | |||||||||||
| 48 | coerce 'Cfn::Resource::Properties::AWS::ApplicationAutoScaling::ScalableTarget::SuspendedState', | ||||||||||
| 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::ApplicationAutoScaling::ScalableTarget::SuspendedState->new( %$_ ); | |||||||||
| 55 | } | ||||||||||
| 56 | 2 | }; | |||||||||
| 57 | |||||||||||
| 58 | 2 | package Cfn::Resource::Properties::Object::AWS::ApplicationAutoScaling::ScalableTarget::SuspendedState { | |||||||||
| 59 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 60 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 61 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 62 | |||||||||||
| 63 | 2 | has DynamicScalingInSuspended => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 64 | 2 | has DynamicScalingOutSuspended => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 65 | 2 | has ScheduledScalingSuspended => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 66 | } | ||||||||||
| 67 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ApplicationAutoScaling::ScalableTarget::ScheduledAction', | ||||||||||
| 68 | as 'Cfn::Value', | ||||||||||
| 69 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 70 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 71 | |||||||||||
| 72 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ApplicationAutoScaling::ScalableTarget::ScheduledAction', | ||||||||||
| 73 | from 'HashRef', | ||||||||||
| 74 | via { | ||||||||||
| 75 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 76 | 0 | return $f | |||||||||
| 77 | } else { | ||||||||||
| 78 | 0 | die 'Only accepts functions'; | |||||||||
| 79 | } | ||||||||||
| 80 | }, | ||||||||||
| 81 | from 'ArrayRef', | ||||||||||
| 82 | via { | ||||||||||
| 83 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 84 | map { | ||||||||||
| 85 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ApplicationAutoScaling::ScalableTarget::ScheduledAction')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 86 | } @$_ | ||||||||||
| 87 | ]); | ||||||||||
| 88 | 2 | }; | |||||||||
| 89 | |||||||||||
| 90 | 2 | subtype 'Cfn::Resource::Properties::AWS::ApplicationAutoScaling::ScalableTarget::ScheduledAction', | |||||||||
| 91 | as 'Cfn::Value'; | ||||||||||
| 92 | |||||||||||
| 93 | coerce 'Cfn::Resource::Properties::AWS::ApplicationAutoScaling::ScalableTarget::ScheduledAction', | ||||||||||
| 94 | from 'HashRef', | ||||||||||
| 95 | via { | ||||||||||
| 96 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 97 | 0 | return $f | |||||||||
| 98 | } else { | ||||||||||
| 99 | 0 | return Cfn::Resource::Properties::Object::AWS::ApplicationAutoScaling::ScalableTarget::ScheduledAction->new( %$_ ); | |||||||||
| 100 | } | ||||||||||
| 101 | 2 | }; | |||||||||
| 102 | |||||||||||
| 103 | 2 | package Cfn::Resource::Properties::Object::AWS::ApplicationAutoScaling::ScalableTarget::ScheduledAction { | |||||||||
| 104 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 105 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 106 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 107 | |||||||||||
| 108 | 2 | has EndTime => (isa => 'Cfn::Value::Timestamp', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 109 | 2 | has ScalableTargetAction => (isa => 'Cfn::Resource::Properties::AWS::ApplicationAutoScaling::ScalableTarget::ScalableTargetAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 110 | 2 | has Schedule => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 111 | 2 | has ScheduledActionName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 112 | 2 | has StartTime => (isa => 'Cfn::Value::Timestamp', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 113 | } | ||||||||||
| 114 | |||||||||||
| 115 | 2 | package Cfn::Resource::Properties::AWS::ApplicationAutoScaling::ScalableTarget { | |||||||||
| 116 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 117 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 118 | 2 | extends 'Cfn::Resource::Properties'; | |||||||||
| 119 | |||||||||||
| 120 | 2 | has MaxCapacity => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 121 | 2 | has MinCapacity => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 122 | 2 | has ResourceId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 123 | 2 | has RoleARN => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 124 | 2 | has ScalableDimension => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 125 | 2 | has ScheduledActions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ApplicationAutoScaling::ScalableTarget::ScheduledAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 126 | 2 | has ServiceNamespace => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 127 | 2 | has SuspendedState => (isa => 'Cfn::Resource::Properties::AWS::ApplicationAutoScaling::ScalableTarget::SuspendedState', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 128 | } | ||||||||||
| 129 | |||||||||||
| 130 | 2 | 1; | |||||||||
| 131 | ### main pod documentation begin ### | ||||||||||
| 132 | |||||||||||
| 133 | =encoding UTF-8 | ||||||||||
| 134 | |||||||||||
| 135 | =head1 NAME | ||||||||||
| 136 | |||||||||||
| 137 | Cfn::Resource::AWS::ApplicationAutoScaling::ScalableTarget - Cfn resource for AWS::ApplicationAutoScaling::ScalableTarget | ||||||||||
| 138 | |||||||||||
| 139 | =head1 DESCRIPTION | ||||||||||
| 140 | |||||||||||
| 141 | This module implements a Perl module that represents the CloudFormation object AWS::ApplicationAutoScaling::ScalableTarget. | ||||||||||
| 142 | |||||||||||
| 143 | See L<Cfn> for more information on how to use it. | ||||||||||
| 144 | |||||||||||
| 145 | =head1 AUTHOR | ||||||||||
| 146 | |||||||||||
| 147 | Jose Luis Martinez | ||||||||||
| 148 | CAPSiDE | ||||||||||
| 149 | jlmartinez@capside.com | ||||||||||
| 150 | |||||||||||
| 151 | =head1 COPYRIGHT and LICENSE | ||||||||||
| 152 | |||||||||||
| 153 | Copyright (c) 2013 by CAPSiDE | ||||||||||
| 154 | This code is distributed under the Apache 2 License. The full text of the | ||||||||||
| 155 | license can be found in the LICENSE file included with this module. | ||||||||||
| 156 | |||||||||||
| 157 | =cut | ||||||||||