File Coverage

blib/lib/Cfn/Resource/AWS/Config/OrganizationConfigRule.pm
Criterion Covered Total %
statement 26 26 100.0
branch n/a
condition n/a
subroutine 10 10 100.0
pod 0 2 0.0
total 36 38 94.7


line stmt bran cond sub pod time code
1             # AWS::Config::OrganizationConfigRule generated from spec 6.0.0
2 1     1   736 use Moose::Util::TypeConstraints;
  1         3  
  1         14  
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 1     1   2282 use Moose;
  1         3  
  1         7  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::Config::OrganizationConfigRule', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 5 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1137 [ '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::AWS::Config::OrganizationConfigRule::OrganizationManagedRuleMetadataValue->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::AWS::Config::OrganizationConfigRule::OrganizationManagedRuleMetadataValue {
37 1     1   7399 use Moose;
  1         3  
  1         5  
38 1     1   6592 use MooseX::StrictConstructor;
  1         3  
  1         10  
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::AWS::Config::OrganizationConfigRule::OrganizationCustomRuleMetadataValue->new( %$_ );
61             }
62             };
63              
64             package Cfn::Resource::Properties::AWS::Config::OrganizationConfigRule::OrganizationCustomRuleMetadataValue {
65 1     1   3770 use Moose;
  1         3  
  1         6  
66 1     1   6936 use MooseX::StrictConstructor;
  1         3  
  1         6  
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 1     1   3636 use Moose;
  1         2  
  1         6  
82 1     1   6661 use MooseX::StrictConstructor;
  1         2  
  1         4  
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;