| 1 | # AWS::Budgets::BudgetsAction generated from spec 34.0.0 | ||
| 2 | use Moose::Util::TypeConstraints; | ||
| 3 | |||
| 4 | coerce 'Cfn::Resource::Properties::AWS::Budgets::BudgetsAction', | ||
| 5 | from 'HashRef', | ||
| 6 | via { Cfn::Resource::Properties::AWS::Budgets::BudgetsAction->new( %$_ ) }; | ||
| 7 | |||
| 8 | package Cfn::Resource::AWS::Budgets::BudgetsAction { | ||
| 9 | use Moose; | ||
| 10 | extends 'Cfn::Resource'; | ||
| 11 | has Properties => (isa => 'Cfn::Resource::Properties::AWS::Budgets::BudgetsAction', is => 'rw', coerce => 1); | ||
| 12 | |||
| 13 | sub AttributeList { | ||
| 14 | [ 'ActionId' ] | ||
| 15 | } | ||
| 16 | sub supported_regions { | ||
| 17 | [ '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-west-1','eu-west-2','eu-west-3','sa-east-1','us-east-1','us-east-2','us-west-1','us-west-2' ] | ||
| 18 | } | ||
| 19 | } | ||
| 20 | |||
| 21 | |||
| 22 | |||
| 23 | subtype 'Cfn::Resource::Properties::AWS::Budgets::BudgetsAction::SsmActionDefinition', | ||
| 24 | as 'Cfn::Value'; | ||
| 25 | |||
| 26 | coerce 'Cfn::Resource::Properties::AWS::Budgets::BudgetsAction::SsmActionDefinition', | ||
| 27 | from 'HashRef', | ||
| 28 | via { | ||
| 29 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 30 | return $f | ||
| 31 | } else { | ||
| 32 | return Cfn::Resource::Properties::Object::AWS::Budgets::BudgetsAction::SsmActionDefinition->new( %$_ ); | ||
| 33 | } | ||
| 34 | }; | ||
| 35 | |||
| 36 | package Cfn::Resource::Properties::Object::AWS::Budgets::BudgetsAction::SsmActionDefinition { | ||
| 37 | use Moose; | ||
| 38 | use MooseX::StrictConstructor; | ||
| 39 | extends 'Cfn::Value::TypedValue'; | ||
| 40 | |||
| 41 | has InstanceIds => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 42 | has Region => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 43 | has Subtype => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 44 | } | ||
| 45 | |||
| 46 | subtype 'Cfn::Resource::Properties::AWS::Budgets::BudgetsAction::ScpActionDefinition', | ||
| 47 | as 'Cfn::Value'; | ||
| 48 | |||
| 49 | coerce 'Cfn::Resource::Properties::AWS::Budgets::BudgetsAction::ScpActionDefinition', | ||
| 50 | from 'HashRef', | ||
| 51 | via { | ||
| 52 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 53 | return $f | ||
| 54 | } else { | ||
| 55 | return Cfn::Resource::Properties::Object::AWS::Budgets::BudgetsAction::ScpActionDefinition->new( %$_ ); | ||
| 56 | } | ||
| 57 | }; | ||
| 58 | |||
| 59 | package Cfn::Resource::Properties::Object::AWS::Budgets::BudgetsAction::ScpActionDefinition { | ||
| 60 | use Moose; | ||
| 61 | use MooseX::StrictConstructor; | ||
| 62 | extends 'Cfn::Value::TypedValue'; | ||
| 63 | |||
| 64 | has PolicyId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 65 | has TargetIds => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 66 | } | ||
| 67 | |||
| 68 | subtype 'Cfn::Resource::Properties::AWS::Budgets::BudgetsAction::IamActionDefinition', | ||
| 69 | as 'Cfn::Value'; | ||
| 70 | |||
| 71 | coerce 'Cfn::Resource::Properties::AWS::Budgets::BudgetsAction::IamActionDefinition', | ||
| 72 | from 'HashRef', | ||
| 73 | via { | ||
| 74 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 75 | return $f | ||
| 76 | } else { | ||
| 77 | return Cfn::Resource::Properties::Object::AWS::Budgets::BudgetsAction::IamActionDefinition->new( %$_ ); | ||
| 78 | } | ||
| 79 | }; | ||
| 80 | |||
| 81 | package Cfn::Resource::Properties::Object::AWS::Budgets::BudgetsAction::IamActionDefinition { | ||
| 82 | use Moose; | ||
| 83 | use MooseX::StrictConstructor; | ||
| 84 | extends 'Cfn::Value::TypedValue'; | ||
| 85 | |||
| 86 | has Groups => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 87 | has PolicyArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 88 | has Roles => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 89 | has Users => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 90 | } | ||
| 91 | subtype 'ArrayOfCfn::Resource::Properties::AWS::Budgets::BudgetsAction::Subscriber', | ||
| 92 | as 'Cfn::Value', | ||
| 93 | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||
| 94 | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||
| 95 | |||
| 96 | coerce 'ArrayOfCfn::Resource::Properties::AWS::Budgets::BudgetsAction::Subscriber', | ||
| 97 | from 'HashRef', | ||
| 98 | via { | ||
| 99 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 100 | return $f | ||
| 101 | } else { | ||
| 102 | die 'Only accepts functions'; | ||
| 103 | } | ||
| 104 | }, | ||
| 105 | from 'ArrayRef', | ||
| 106 | via { | ||
| 107 | Cfn::Value::Array->new(Value => [ | ||
| 108 | map { | ||
| 109 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Budgets::BudgetsAction::Subscriber')->coerce($_) | ||
| 110 | } @$_ | ||
| 111 | ]); | ||
| 112 | }; | ||
| 113 | |||
| 114 | subtype 'Cfn::Resource::Properties::AWS::Budgets::BudgetsAction::Subscriber', | ||
| 115 | as 'Cfn::Value'; | ||
| 116 | |||
| 117 | coerce 'Cfn::Resource::Properties::AWS::Budgets::BudgetsAction::Subscriber', | ||
| 118 | from 'HashRef', | ||
| 119 | via { | ||
| 120 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 121 | return $f | ||
| 122 | } else { | ||
| 123 | return Cfn::Resource::Properties::Object::AWS::Budgets::BudgetsAction::Subscriber->new( %$_ ); | ||
| 124 | } | ||
| 125 | }; | ||
| 126 | |||
| 127 | package Cfn::Resource::Properties::Object::AWS::Budgets::BudgetsAction::Subscriber { | ||
| 128 | use Moose; | ||
| 129 | use MooseX::StrictConstructor; | ||
| 130 | extends 'Cfn::Value::TypedValue'; | ||
| 131 | |||
| 132 | has Address => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 133 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 134 | } | ||
| 135 | |||
| 136 | subtype 'Cfn::Resource::Properties::AWS::Budgets::BudgetsAction::Definition', | ||
| 137 | as 'Cfn::Value'; | ||
| 138 | |||
| 139 | coerce 'Cfn::Resource::Properties::AWS::Budgets::BudgetsAction::Definition', | ||
| 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::Budgets::BudgetsAction::Definition->new( %$_ ); | ||
| 146 | } | ||
| 147 | }; | ||
| 148 | |||
| 149 | package Cfn::Resource::Properties::Object::AWS::Budgets::BudgetsAction::Definition { | ||
| 150 | use Moose; | ||
| 151 | use MooseX::StrictConstructor; | ||
| 152 | extends 'Cfn::Value::TypedValue'; | ||
| 153 | |||
| 154 | has IamActionDefinition => (isa => 'Cfn::Resource::Properties::AWS::Budgets::BudgetsAction::IamActionDefinition', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 155 | has ScpActionDefinition => (isa => 'Cfn::Resource::Properties::AWS::Budgets::BudgetsAction::ScpActionDefinition', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 156 | has SsmActionDefinition => (isa => 'Cfn::Resource::Properties::AWS::Budgets::BudgetsAction::SsmActionDefinition', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 157 | } | ||
| 158 | |||
| 159 | subtype 'Cfn::Resource::Properties::AWS::Budgets::BudgetsAction::ActionThreshold', | ||
| 160 | as 'Cfn::Value'; | ||
| 161 | |||
| 162 | coerce 'Cfn::Resource::Properties::AWS::Budgets::BudgetsAction::ActionThreshold', | ||
| 163 | from 'HashRef', | ||
| 164 | via { | ||
| 165 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 166 | return $f | ||
| 167 | } else { | ||
| 168 | return Cfn::Resource::Properties::Object::AWS::Budgets::BudgetsAction::ActionThreshold->new( %$_ ); | ||
| 169 | } | ||
| 170 | }; | ||
| 171 | |||
| 172 | package Cfn::Resource::Properties::Object::AWS::Budgets::BudgetsAction::ActionThreshold { | ||
| 173 | use Moose; | ||
| 174 | use MooseX::StrictConstructor; | ||
| 175 | extends 'Cfn::Value::TypedValue'; | ||
| 176 | |||
| 177 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 178 | has Value => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 179 | } | ||
| 180 | |||
| 181 | package Cfn::Resource::Properties::AWS::Budgets::BudgetsAction { | ||
| 182 | use Moose; | ||
| 183 | use MooseX::StrictConstructor; | ||
| 184 | extends 'Cfn::Resource::Properties'; | ||
| 185 | |||
| 186 | has ActionThreshold => (isa => 'Cfn::Resource::Properties::AWS::Budgets::BudgetsAction::ActionThreshold', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 187 | has ActionType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | ||
| 188 | has ApprovalModel => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 189 | has BudgetName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | ||
| 190 | has Definition => (isa => 'Cfn::Resource::Properties::AWS::Budgets::BudgetsAction::Definition', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 191 | has ExecutionRoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 192 | has NotificationType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 193 | has Subscribers => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Budgets::BudgetsAction::Subscriber', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 194 | } | ||
| 195 | |||
| 196 | 1; | ||
| 197 | ### main pod documentation begin ### | ||
| 198 | |||
| 199 | =encoding UTF-8 | ||
| 200 | |||
| 201 | =head1 NAME | ||
| 202 | |||
| 203 | Cfn::Resource::AWS::Budgets::BudgetsAction - Cfn resource for AWS::Budgets::BudgetsAction | ||
| 204 | |||
| 205 | =head1 DESCRIPTION | ||
| 206 | |||
| 207 | This module implements a Perl module that represents the CloudFormation object AWS::Budgets::BudgetsAction. | ||
| 208 | |||
| 209 | See L<Cfn> for more information on how to use it. | ||
| 210 | |||
| 211 | =head1 AUTHOR | ||
| 212 | |||
| 213 | Jose Luis Martinez | ||
| 214 | CAPSiDE | ||
| 215 | jlmartinez@capside.com | ||
| 216 | |||
| 217 | =head1 COPYRIGHT and LICENSE | ||
| 218 | |||
| 219 | Copyright (c) 2013 by CAPSiDE | ||
| 220 | This code is distributed under the Apache 2 License. The full text of the | ||
| 221 | license can be found in the LICENSE file included with this module. | ||
| 222 | |||
| 223 | =cut |