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 18.4.0
2 4     4   3090 use Moose::Util::TypeConstraints;
  4         12  
  4         55  
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   9612 use Moose;
  4         11  
  4         39  
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 4 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1143 [ 'af-south-1','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-south-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::Object::AWS::OpsWorks::Stack::StackConfigurationManager->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::Object::AWS::OpsWorks::Stack::StackConfigurationManager {
37 4     4   31248 use Moose;
  4         12  
  4         30  
38 4     4   27027 use MooseX::StrictConstructor;
  4         10  
  4         43  
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::Object::AWS::OpsWorks::Stack::Source->new( %$_ );
55             }
56             };
57              
58             package Cfn::Resource::Properties::Object::AWS::OpsWorks::Stack::Source {
59 4     4   15215 use Moose;
  4         18  
  4         25  
60 4     4   27864 use MooseX::StrictConstructor;
  4         14  
  4         26  
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::Object::AWS::OpsWorks::Stack::RdsDbInstance->new( %$_ );
103             }
104             };
105              
106             package Cfn::Resource::Properties::Object::AWS::OpsWorks::Stack::RdsDbInstance {
107 4     4   15256 use Moose;
  4         20  
  4         22  
108 4     4   27157 use MooseX::StrictConstructor;
  4         19  
  4         29  
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::Object::AWS::OpsWorks::Stack::ElasticIp->new( %$_ );
148             }
149             };
150              
151             package Cfn::Resource::Properties::Object::AWS::OpsWorks::Stack::ElasticIp {
152 4     4   15089 use Moose;
  4         17  
  4         25  
153 4     4   27222 use MooseX::StrictConstructor;
  4         10  
  4         24  
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::Object::AWS::OpsWorks::Stack::ChefConfiguration->new( %$_ );
170             }
171             };
172              
173             package Cfn::Resource::Properties::Object::AWS::OpsWorks::Stack::ChefConfiguration {
174 4     4   13840 use Moose;
  4         12  
  4         28  
175 4     4   27032 use MooseX::StrictConstructor;
  4         13  
  4         24  
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   13711 use Moose;
  4         17  
  4         23  
184 4     4   28320 use MooseX::StrictConstructor;
  4         17  
  4         29  
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;
215             ### main pod documentation begin ###
216              
217             =encoding UTF-8
218              
219             =head1 NAME
220              
221             Cfn::Resource::AWS::OpsWorks::Stack - Cfn resource for AWS::OpsWorks::Stack
222              
223             =head1 DESCRIPTION
224              
225             This module implements a Perl module that represents the CloudFormation object AWS::OpsWorks::Stack.
226              
227             See L<Cfn> for more information on how to use it.
228              
229             =head1 AUTHOR
230              
231             Jose Luis Martinez
232             CAPSiDE
233             jlmartinez@capside.com
234              
235             =head1 COPYRIGHT and LICENSE
236              
237             Copyright (c) 2013 by CAPSiDE
238             This code is distributed under the Apache 2 License. The full text of the
239             license can be found in the LICENSE file included with this module.
240              
241             =cut