File Coverage

blib/lib/Cfn/Resource/AWS/OpsWorks/Layer.pm
Criterion Covered Total %
statement 50 50 100.0
branch n/a
condition n/a
subroutine 18 18 100.0
pod 0 2 0.0
total 68 70 97.1


line stmt bran cond sub pod time code
1             # AWS::OpsWorks::Layer generated from spec 18.4.0
2 4     4   3402 use Moose::Util::TypeConstraints;
  4         13  
  4         56  
3              
4             coerce 'Cfn::Resource::Properties::AWS::OpsWorks::Layer',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::OpsWorks::Layer->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::OpsWorks::Layer {
9 4     4   9946 use Moose;
  4         22  
  4         35  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::OpsWorks::Layer', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 3 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1170 [ '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::Layer::ShutdownEventConfiguration',
24             as 'Cfn::Value';
25              
26             coerce 'Cfn::Resource::Properties::AWS::OpsWorks::Layer::ShutdownEventConfiguration',
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::Layer::ShutdownEventConfiguration->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::Object::AWS::OpsWorks::Layer::ShutdownEventConfiguration {
37 4     4   32004 use Moose;
  4         10  
  4         42  
38 4     4   26914 use MooseX::StrictConstructor;
  4         13  
  4         44  
39             extends 'Cfn::Value::TypedValue';
40            
41             has DelayUntilElbConnectionsDrained => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42             has ExecutionTimeout => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43             }
44              
45             subtype 'Cfn::Resource::Properties::AWS::OpsWorks::Layer::AutoScalingThresholds',
46             as 'Cfn::Value';
47              
48             coerce 'Cfn::Resource::Properties::AWS::OpsWorks::Layer::AutoScalingThresholds',
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::Layer::AutoScalingThresholds->new( %$_ );
55             }
56             };
57              
58             package Cfn::Resource::Properties::Object::AWS::OpsWorks::Layer::AutoScalingThresholds {
59 4     4   15122 use Moose;
  4         23  
  4         22  
60 4     4   26815 use MooseX::StrictConstructor;
  4         17  
  4         21  
61             extends 'Cfn::Value::TypedValue';
62            
63             has CpuThreshold => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64             has IgnoreMetricsTime => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
65             has InstanceCount => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
66             has LoadThreshold => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
67             has MemoryThreshold => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
68             has ThresholdsWaitTime => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
69             }
70             subtype 'ArrayOfCfn::Resource::Properties::AWS::OpsWorks::Layer::VolumeConfiguration',
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::Layer::VolumeConfiguration',
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::Layer::VolumeConfiguration')->coerce($_)
89             } @$_
90             ]);
91             };
92              
93             subtype 'Cfn::Resource::Properties::AWS::OpsWorks::Layer::VolumeConfiguration',
94             as 'Cfn::Value';
95              
96             coerce 'Cfn::Resource::Properties::AWS::OpsWorks::Layer::VolumeConfiguration',
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::Layer::VolumeConfiguration->new( %$_ );
103             }
104             };
105              
106             package Cfn::Resource::Properties::Object::AWS::OpsWorks::Layer::VolumeConfiguration {
107 4     4   14818 use Moose;
  4         13  
  4         23  
108 4     4   27231 use MooseX::StrictConstructor;
  4         13  
  4         21  
109             extends 'Cfn::Value::TypedValue';
110            
111             has Encrypted => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
112             has Iops => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
113             has MountPoint => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
114             has NumberOfDisks => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
115             has RaidLevel => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
116             has Size => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
117             has VolumeType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
118             }
119              
120             subtype 'Cfn::Resource::Properties::AWS::OpsWorks::Layer::Recipes',
121             as 'Cfn::Value';
122              
123             coerce 'Cfn::Resource::Properties::AWS::OpsWorks::Layer::Recipes',
124             from 'HashRef',
125             via {
126             if (my $f = Cfn::TypeLibrary::try_function($_)) {
127             return $f
128             } else {
129             return Cfn::Resource::Properties::Object::AWS::OpsWorks::Layer::Recipes->new( %$_ );
130             }
131             };
132              
133             package Cfn::Resource::Properties::Object::AWS::OpsWorks::Layer::Recipes {
134 4     4   14062 use Moose;
  4         15  
  4         29  
135 4     4   26783 use MooseX::StrictConstructor;
  4         15  
  4         30  
136             extends 'Cfn::Value::TypedValue';
137            
138             has Configure => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
139             has Deploy => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
140             has Setup => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
141             has Shutdown => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
142             has Undeploy => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
143             }
144              
145             subtype 'Cfn::Resource::Properties::AWS::OpsWorks::Layer::LoadBasedAutoScaling',
146             as 'Cfn::Value';
147              
148             coerce 'Cfn::Resource::Properties::AWS::OpsWorks::Layer::LoadBasedAutoScaling',
149             from 'HashRef',
150             via {
151             if (my $f = Cfn::TypeLibrary::try_function($_)) {
152             return $f
153             } else {
154             return Cfn::Resource::Properties::Object::AWS::OpsWorks::Layer::LoadBasedAutoScaling->new( %$_ );
155             }
156             };
157              
158             package Cfn::Resource::Properties::Object::AWS::OpsWorks::Layer::LoadBasedAutoScaling {
159 4     4   14188 use Moose;
  4         13  
  4         22  
160 4     4   27087 use MooseX::StrictConstructor;
  4         13  
  4         24  
161             extends 'Cfn::Value::TypedValue';
162            
163             has DownScaling => (isa => 'Cfn::Resource::Properties::AWS::OpsWorks::Layer::AutoScalingThresholds', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
164             has Enable => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
165             has UpScaling => (isa => 'Cfn::Resource::Properties::AWS::OpsWorks::Layer::AutoScalingThresholds', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
166             }
167              
168             subtype 'Cfn::Resource::Properties::AWS::OpsWorks::Layer::LifecycleEventConfiguration',
169             as 'Cfn::Value';
170              
171             coerce 'Cfn::Resource::Properties::AWS::OpsWorks::Layer::LifecycleEventConfiguration',
172             from 'HashRef',
173             via {
174             if (my $f = Cfn::TypeLibrary::try_function($_)) {
175             return $f
176             } else {
177             return Cfn::Resource::Properties::Object::AWS::OpsWorks::Layer::LifecycleEventConfiguration->new( %$_ );
178             }
179             };
180              
181             package Cfn::Resource::Properties::Object::AWS::OpsWorks::Layer::LifecycleEventConfiguration {
182 4     4   13898 use Moose;
  4         14  
  4         24  
183 4     4   26977 use MooseX::StrictConstructor;
  4         14  
  4         23  
184             extends 'Cfn::Value::TypedValue';
185            
186             has ShutdownEventConfiguration => (isa => 'Cfn::Resource::Properties::AWS::OpsWorks::Layer::ShutdownEventConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
187             }
188              
189             package Cfn::Resource::Properties::AWS::OpsWorks::Layer {
190 4     4   13503 use Moose;
  4         11  
  4         20  
191 4     4   26864 use MooseX::StrictConstructor;
  4         13  
  4         27  
192             extends 'Cfn::Resource::Properties';
193            
194             has Attributes => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
195             has AutoAssignElasticIps => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
196             has AutoAssignPublicIps => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
197             has CustomInstanceProfileArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
198             has CustomJson => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
199             has CustomRecipes => (isa => 'Cfn::Resource::Properties::AWS::OpsWorks::Layer::Recipes', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
200             has CustomSecurityGroupIds => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
201             has EnableAutoHealing => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
202             has InstallUpdatesOnBoot => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
203             has LifecycleEventConfiguration => (isa => 'Cfn::Resource::Properties::AWS::OpsWorks::Layer::LifecycleEventConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
204             has LoadBasedAutoScaling => (isa => 'Cfn::Resource::Properties::AWS::OpsWorks::Layer::LoadBasedAutoScaling', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
205             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
206             has Packages => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
207             has Shortname => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
208             has StackId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
209             has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
210             has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
211             has UseEbsOptimizedInstances => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
212             has VolumeConfigurations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::OpsWorks::Layer::VolumeConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
213             }
214              
215             1;
216             ### main pod documentation begin ###
217              
218             =encoding UTF-8
219              
220             =head1 NAME
221              
222             Cfn::Resource::AWS::OpsWorks::Layer - Cfn resource for AWS::OpsWorks::Layer
223              
224             =head1 DESCRIPTION
225              
226             This module implements a Perl module that represents the CloudFormation object AWS::OpsWorks::Layer.
227              
228             See L<Cfn> for more information on how to use it.
229              
230             =head1 AUTHOR
231              
232             Jose Luis Martinez
233             CAPSiDE
234             jlmartinez@capside.com
235              
236             =head1 COPYRIGHT and LICENSE
237              
238             Copyright (c) 2013 by CAPSiDE
239             This code is distributed under the Apache 2 License. The full text of the
240             license can be found in the LICENSE file included with this module.
241              
242             =cut