File Coverage

blib/lib/Cfn/Resource/AWS/OpsWorks/Stack.pm
Criterion Covered Total %
statement 44 44 100.0
branch n/a
condition n/a
subroutine 16 16 100.0
pod 0 2 0.0
total 60 62 96.7


line stmt bran cond sub pod time code
1             # AWS::OpsWorks::Stack generated from spec 5.3.0
2 4     4   3041 use Moose::Util::TypeConstraints;
  4         11  
  4         53  
3              
4             coerce 'Cfn::Resource::Properties::AWS::OpsWorks::Stack',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::OpsWorks::Stack->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::OpsWorks::Stack {
9 4     4   9254 use Moose;
  4         12  
  4         31  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::OpsWorks::Stack', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 5 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1097 [ '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-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' ]
18             }
19             }
20              
21              
22              
23             subtype 'Cfn::Resource::Properties::AWS::OpsWorks::Stack::StackConfigurationManager',
24             as 'Cfn::Value';
25              
26             coerce 'Cfn::Resource::Properties::AWS::OpsWorks::Stack::StackConfigurationManager',
27             from 'HashRef',
28             via {
29             if (my $f = Cfn::TypeLibrary::try_function($_)) {
30             return $f
31             } else {
32             return Cfn::Resource::Properties::AWS::OpsWorks::Stack::StackConfigurationManagerValue->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::AWS::OpsWorks::Stack::StackConfigurationManagerValue {
37 4     4   35094 use Moose;
  4         13  
  4         22  
38 4     4   26964 use MooseX::StrictConstructor;
  4         10  
  4         39  
39             extends 'Cfn::Value::TypedValue';
40            
41             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42             has Version => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43             }
44              
45             subtype 'Cfn::Resource::Properties::AWS::OpsWorks::Stack::Source',
46             as 'Cfn::Value';
47              
48             coerce 'Cfn::Resource::Properties::AWS::OpsWorks::Stack::Source',
49             from 'HashRef',
50             via {
51             if (my $f = Cfn::TypeLibrary::try_function($_)) {
52             return $f
53             } else {
54             return Cfn::Resource::Properties::AWS::OpsWorks::Stack::SourceValue->new( %$_ );
55             }
56             };
57              
58             package Cfn::Resource::Properties::AWS::OpsWorks::Stack::SourceValue {
59 4     4   14815 use Moose;
  4         9  
  4         24  
60 4     4   28413 use MooseX::StrictConstructor;
  4         12  
  4         22  
61             extends 'Cfn::Value::TypedValue';
62            
63             has Password => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64             has Revision => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
65             has SshKey => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
66             has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
67             has Url => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
68             has Username => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
69             }
70             subtype 'ArrayOfCfn::Resource::Properties::AWS::OpsWorks::Stack::RdsDbInstance',
71             as 'Cfn::Value',
72             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
73             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
74              
75             coerce 'ArrayOfCfn::Resource::Properties::AWS::OpsWorks::Stack::RdsDbInstance',
76             from 'HashRef',
77             via {
78             if (my $f = Cfn::TypeLibrary::try_function($_)) {
79             return $f
80             } else {
81             die 'Only accepts functions';
82             }
83             },
84             from 'ArrayRef',
85             via {
86             Cfn::Value::Array->new(Value => [
87             map {
88             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::OpsWorks::Stack::RdsDbInstance')->coerce($_)
89             } @$_
90             ]);
91             };
92              
93             subtype 'Cfn::Resource::Properties::AWS::OpsWorks::Stack::RdsDbInstance',
94             as 'Cfn::Value';
95              
96             coerce 'Cfn::Resource::Properties::AWS::OpsWorks::Stack::RdsDbInstance',
97             from 'HashRef',
98             via {
99             if (my $f = Cfn::TypeLibrary::try_function($_)) {
100             return $f
101             } else {
102             return Cfn::Resource::Properties::AWS::OpsWorks::Stack::RdsDbInstanceValue->new( %$_ );
103             }
104             };
105              
106             package Cfn::Resource::Properties::AWS::OpsWorks::Stack::RdsDbInstanceValue {
107 4     4   15803 use Moose;
  4         10  
  4         32  
108 4     4   27283 use MooseX::StrictConstructor;
  4         9  
  4         26  
109             extends 'Cfn::Value::TypedValue';
110            
111             has DbPassword => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
112             has DbUser => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
113             has RdsDbInstanceArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
114             }
115             subtype 'ArrayOfCfn::Resource::Properties::AWS::OpsWorks::Stack::ElasticIp',
116             as 'Cfn::Value',
117             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
118             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
119              
120             coerce 'ArrayOfCfn::Resource::Properties::AWS::OpsWorks::Stack::ElasticIp',
121             from 'HashRef',
122             via {
123             if (my $f = Cfn::TypeLibrary::try_function($_)) {
124             return $f
125             } else {
126             die 'Only accepts functions';
127             }
128             },
129             from 'ArrayRef',
130             via {
131             Cfn::Value::Array->new(Value => [
132             map {
133             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::OpsWorks::Stack::ElasticIp')->coerce($_)
134             } @$_
135             ]);
136             };
137              
138             subtype 'Cfn::Resource::Properties::AWS::OpsWorks::Stack::ElasticIp',
139             as 'Cfn::Value';
140              
141             coerce 'Cfn::Resource::Properties::AWS::OpsWorks::Stack::ElasticIp',
142             from 'HashRef',
143             via {
144             if (my $f = Cfn::TypeLibrary::try_function($_)) {
145             return $f
146             } else {
147             return Cfn::Resource::Properties::AWS::OpsWorks::Stack::ElasticIpValue->new( %$_ );
148             }
149             };
150              
151             package Cfn::Resource::Properties::AWS::OpsWorks::Stack::ElasticIpValue {
152 4     4   15040 use Moose;
  4         10  
  4         25  
153 4     4   27610 use MooseX::StrictConstructor;
  4         9  
  4         23  
154             extends 'Cfn::Value::TypedValue';
155            
156             has Ip => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
157             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
158             }
159              
160             subtype 'Cfn::Resource::Properties::AWS::OpsWorks::Stack::ChefConfiguration',
161             as 'Cfn::Value';
162              
163             coerce 'Cfn::Resource::Properties::AWS::OpsWorks::Stack::ChefConfiguration',
164             from 'HashRef',
165             via {
166             if (my $f = Cfn::TypeLibrary::try_function($_)) {
167             return $f
168             } else {
169             return Cfn::Resource::Properties::AWS::OpsWorks::Stack::ChefConfigurationValue->new( %$_ );
170             }
171             };
172              
173             package Cfn::Resource::Properties::AWS::OpsWorks::Stack::ChefConfigurationValue {
174 4     4   14093 use Moose;
  4         21  
  4         23  
175 4     4   27108 use MooseX::StrictConstructor;
  4         11  
  4         26  
176             extends 'Cfn::Value::TypedValue';
177            
178             has BerkshelfVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
179             has ManageBerkshelf => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
180             }
181              
182             package Cfn::Resource::Properties::AWS::OpsWorks::Stack {
183 4     4   14445 use Moose;
  4         10  
  4         26  
184 4     4   27789 use MooseX::StrictConstructor;
  4         15  
  4         23  
185             extends 'Cfn::Resource::Properties';
186            
187             has AgentVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
188             has Attributes => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
189             has ChefConfiguration => (isa => 'Cfn::Resource::Properties::AWS::OpsWorks::Stack::ChefConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
190             has CloneAppIds => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
191             has ClonePermissions => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
192             has ConfigurationManager => (isa => 'Cfn::Resource::Properties::AWS::OpsWorks::Stack::StackConfigurationManager', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
193             has CustomCookbooksSource => (isa => 'Cfn::Resource::Properties::AWS::OpsWorks::Stack::Source', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
194             has CustomJson => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
195             has DefaultAvailabilityZone => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
196             has DefaultInstanceProfileArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
197             has DefaultOs => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
198             has DefaultRootDeviceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
199             has DefaultSshKeyName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
200             has DefaultSubnetId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
201             has EcsClusterArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
202             has ElasticIps => (isa => 'ArrayOfCfn::Resource::Properties::AWS::OpsWorks::Stack::ElasticIp', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
203             has HostnameTheme => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
204             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
205             has RdsDbInstances => (isa => 'ArrayOfCfn::Resource::Properties::AWS::OpsWorks::Stack::RdsDbInstance', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
206             has ServiceRoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
207             has SourceStackId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
208             has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
209             has UseCustomCookbooks => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
210             has UseOpsworksSecurityGroups => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
211             has VpcId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
212             }
213              
214             1;