File Coverage

blib/lib/Cfn/Resource/AWS/Config/ConfigurationAggregator.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::ConfigurationAggregator generated from spec 18.4.0
2 1     1   745 use Moose::Util::TypeConstraints;
  1         5  
  1         11  
3              
4             coerce 'Cfn::Resource::Properties::AWS::Config::ConfigurationAggregator',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::Config::ConfigurationAggregator->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::Config::ConfigurationAggregator {
9 1     1   2257 use Moose;
  1         6  
  1         10  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::Config::ConfigurationAggregator', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 4 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1154 [ 'ap-east-1','ap-northeast-1','ap-southeast-1','ap-southeast-2','eu-central-1','eu-north-1','eu-west-1','me-south-1','us-east-1','us-east-2','us-gov-east-1','us-gov-west-1','us-west-1','us-west-2' ]
18             }
19             }
20              
21              
22              
23             subtype 'Cfn::Resource::Properties::AWS::Config::ConfigurationAggregator::OrganizationAggregationSource',
24             as 'Cfn::Value';
25              
26             coerce 'Cfn::Resource::Properties::AWS::Config::ConfigurationAggregator::OrganizationAggregationSource',
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::ConfigurationAggregator::OrganizationAggregationSource->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::Object::AWS::Config::ConfigurationAggregator::OrganizationAggregationSource {
37 1     1   7312 use Moose;
  1         3  
  1         16  
38 1     1   6635 use MooseX::StrictConstructor;
  1         3  
  1         10  
39             extends 'Cfn::Value::TypedValue';
40            
41             has AllAwsRegions => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42             has AwsRegions => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43             has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
44             }
45             subtype 'ArrayOfCfn::Resource::Properties::AWS::Config::ConfigurationAggregator::AccountAggregationSource',
46             as 'Cfn::Value',
47             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
48             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
49              
50             coerce 'ArrayOfCfn::Resource::Properties::AWS::Config::ConfigurationAggregator::AccountAggregationSource',
51             from 'HashRef',
52             via {
53             if (my $f = Cfn::TypeLibrary::try_function($_)) {
54             return $f
55             } else {
56             die 'Only accepts functions';
57             }
58             },
59             from 'ArrayRef',
60             via {
61             Cfn::Value::Array->new(Value => [
62             map {
63             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Config::ConfigurationAggregator::AccountAggregationSource')->coerce($_)
64             } @$_
65             ]);
66             };
67              
68             subtype 'Cfn::Resource::Properties::AWS::Config::ConfigurationAggregator::AccountAggregationSource',
69             as 'Cfn::Value';
70              
71             coerce 'Cfn::Resource::Properties::AWS::Config::ConfigurationAggregator::AccountAggregationSource',
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::Config::ConfigurationAggregator::AccountAggregationSource->new( %$_ );
78             }
79             };
80              
81             package Cfn::Resource::Properties::Object::AWS::Config::ConfigurationAggregator::AccountAggregationSource {
82 1     1   3969 use Moose;
  1         4  
  1         5  
83 1     1   6646 use MooseX::StrictConstructor;
  1         4  
  1         5  
84             extends 'Cfn::Value::TypedValue';
85            
86             has AccountIds => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
87             has AllAwsRegions => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
88             has AwsRegions => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
89             }
90              
91             package Cfn::Resource::Properties::AWS::Config::ConfigurationAggregator {
92 1     1   3399 use Moose;
  1         4  
  1         5  
93 1     1   6789 use MooseX::StrictConstructor;
  1         3  
  1         7  
94             extends 'Cfn::Resource::Properties';
95            
96             has AccountAggregationSources => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Config::ConfigurationAggregator::AccountAggregationSource', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
97             has ConfigurationAggregatorName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
98             has OrganizationAggregationSource => (isa => 'Cfn::Resource::Properties::AWS::Config::ConfigurationAggregator::OrganizationAggregationSource', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
99             has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
100             }
101              
102             1;
103             ### main pod documentation begin ###
104              
105             =encoding UTF-8
106              
107             =head1 NAME
108              
109             Cfn::Resource::AWS::Config::ConfigurationAggregator - Cfn resource for AWS::Config::ConfigurationAggregator
110              
111             =head1 DESCRIPTION
112              
113             This module implements a Perl module that represents the CloudFormation object AWS::Config::ConfigurationAggregator.
114              
115             See L<Cfn> for more information on how to use it.
116              
117             =head1 AUTHOR
118              
119             Jose Luis Martinez
120             CAPSiDE
121             jlmartinez@capside.com
122              
123             =head1 COPYRIGHT and LICENSE
124              
125             Copyright (c) 2013 by CAPSiDE
126             This code is distributed under the Apache 2 License. The full text of the
127             license can be found in the LICENSE file included with this module.
128              
129             =cut