« Cfn/Resource/AWS/Config/ConformancePack.pm
↑ Summary
Cfn/Resource/AWS/Config/OrganizationConformancePack.pm »
| 1 | # AWS::Config::OrganizationConfigRule generated from spec 18.4.0 | ||
| 2 | use Moose::Util::TypeConstraints; | ||
| 3 | |||
| 4 | coerce 'Cfn::Resource::Properties::AWS::Config::OrganizationConfigRule', | ||
| 5 | from 'HashRef', | ||
| 6 | via { Cfn::Resource::Properties::AWS::Config::OrganizationConfigRule->new( %$_ ) }; | ||
| 7 | |||
| 8 | package Cfn::Resource::AWS::Config::OrganizationConfigRule { | ||
| 9 | use Moose; | ||
| 10 | extends 'Cfn::Resource'; | ||
| 11 | has Properties => (isa => 'Cfn::Resource::Properties::AWS::Config::OrganizationConfigRule', is => 'rw', coerce => 1); | ||
| 12 | |||
| 13 | sub AttributeList { | ||
| 14 | [ ] | ||
| 15 | } | ||
| 16 | sub supported_regions { | ||
| 17 | [ 'ap-northeast-1','ap-northeast-2','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','eu-central-1','eu-north-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::Config::OrganizationConfigRule::OrganizationManagedRuleMetadata', | ||
| 24 | as 'Cfn::Value'; | ||
| 25 | |||
| 26 | coerce 'Cfn::Resource::Properties::AWS::Config::OrganizationConfigRule::OrganizationManagedRuleMetadata', | ||
| 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::Config::OrganizationConfigRule::OrganizationManagedRuleMetadata->new( %$_ ); | ||
| 33 | } | ||
| 34 | }; | ||
| 35 | |||
| 36 | package Cfn::Resource::Properties::Object::AWS::Config::OrganizationConfigRule::OrganizationManagedRuleMetadata { | ||
| 37 | use Moose; | ||
| 38 | use MooseX::StrictConstructor; | ||
| 39 | extends 'Cfn::Value::TypedValue'; | ||
| 40 | |||
| 41 | has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 42 | has InputParameters => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 43 | has MaximumExecutionFrequency => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 44 | has ResourceIdScope => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 45 | has ResourceTypesScope => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 46 | has RuleIdentifier => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 47 | has TagKeyScope => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 48 | has TagValueScope => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 49 | } | ||
| 50 | |||
| 51 | subtype 'Cfn::Resource::Properties::AWS::Config::OrganizationConfigRule::OrganizationCustomRuleMetadata', | ||
| 52 | as 'Cfn::Value'; | ||
| 53 | |||
| 54 | coerce 'Cfn::Resource::Properties::AWS::Config::OrganizationConfigRule::OrganizationCustomRuleMetadata', | ||
| 55 | from 'HashRef', | ||
| 56 | via { | ||
| 57 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 58 | return $f | ||
| 59 | } else { | ||
| 60 | return Cfn::Resource::Properties::Object::AWS::Config::OrganizationConfigRule::OrganizationCustomRuleMetadata->new( %$_ ); | ||
| 61 | } | ||
| 62 | }; | ||
| 63 | |||
| 64 | package Cfn::Resource::Properties::Object::AWS::Config::OrganizationConfigRule::OrganizationCustomRuleMetadata { | ||
| 65 | use Moose; | ||
| 66 | use MooseX::StrictConstructor; | ||
| 67 | extends 'Cfn::Value::TypedValue'; | ||
| 68 | |||
| 69 | has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 70 | has InputParameters => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 71 | has LambdaFunctionArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 72 | has MaximumExecutionFrequency => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 73 | has OrganizationConfigRuleTriggerTypes => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 74 | has ResourceIdScope => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 75 | has ResourceTypesScope => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 76 | has TagKeyScope => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 77 | has TagValueScope => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 78 | } | ||
| 79 | |||
| 80 | package Cfn::Resource::Properties::AWS::Config::OrganizationConfigRule { | ||
| 81 | use Moose; | ||
| 82 | use MooseX::StrictConstructor; | ||
| 83 | extends 'Cfn::Resource::Properties'; | ||
| 84 | |||
| 85 | has ExcludedAccounts => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 86 | has OrganizationConfigRuleName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | ||
| 87 | has OrganizationCustomRuleMetadata => (isa => 'Cfn::Resource::Properties::AWS::Config::OrganizationConfigRule::OrganizationCustomRuleMetadata', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 88 | has OrganizationManagedRuleMetadata => (isa => 'Cfn::Resource::Properties::AWS::Config::OrganizationConfigRule::OrganizationManagedRuleMetadata', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 89 | } | ||
| 90 | |||
| 91 | 1; | ||
| 92 | ### main pod documentation begin ### | ||
| 93 | |||
| 94 | =encoding UTF-8 | ||
| 95 | |||
| 96 | =head1 NAME | ||
| 97 | |||
| 98 | Cfn::Resource::AWS::Config::OrganizationConfigRule - Cfn resource for AWS::Config::OrganizationConfigRule | ||
| 99 | |||
| 100 | =head1 DESCRIPTION | ||
| 101 | |||
| 102 | This module implements a Perl module that represents the CloudFormation object AWS::Config::OrganizationConfigRule. | ||
| 103 | |||
| 104 | See L<Cfn> for more information on how to use it. | ||
| 105 | |||
| 106 | =head1 AUTHOR | ||
| 107 | |||
| 108 | Jose Luis Martinez | ||
| 109 | CAPSiDE | ||
| 110 | jlmartinez@capside.com | ||
| 111 | |||
| 112 | =head1 COPYRIGHT and LICENSE | ||
| 113 | |||
| 114 | Copyright (c) 2013 by CAPSiDE | ||
| 115 | This code is distributed under the Apache 2 License. The full text of the | ||
| 116 | license can be found in the LICENSE file included with this module. | ||
| 117 | |||
| 118 | =cut |