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 5.3.0
2 4     4   2845 use Moose::Util::TypeConstraints;
  4         11  
  4         44  
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   8366 use Moose;
  4         16  
  4         32  
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 5 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1586 [ '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::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::AWS::OpsWorks::Layer::ShutdownEventConfigurationValue->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::AWS::OpsWorks::Layer::ShutdownEventConfigurationValue {
37 4     4   26965 use Moose;
  4         13  
  4         20  
38 4     4   24179 use MooseX::StrictConstructor;
  4         9  
  4         39  
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::AWS::OpsWorks::Layer::AutoScalingThresholdsValue->new( %$_ );
55             }
56             };
57              
58             package Cfn::Resource::Properties::AWS::OpsWorks::Layer::AutoScalingThresholdsValue {
59 4     4   13186 use Moose;
  4         14  
  4         20  
60 4     4   23879 use MooseX::StrictConstructor;
  4         12  
  4         19  
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::AWS::OpsWorks::Layer::VolumeConfigurationValue->new( %$_ );
103             }
104             };
105              
106             package Cfn::Resource::Properties::AWS::OpsWorks::Layer::VolumeConfigurationValue {
107 4     4   13100 use Moose;
  4         10  
  4         19  
108 4     4   23845 use MooseX::StrictConstructor;
  4         10  
  4         23  
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::AWS::OpsWorks::Layer::RecipesValue->new( %$_ );
130             }
131             };
132              
133             package Cfn::Resource::Properties::AWS::OpsWorks::Layer::RecipesValue {
134 4     4   12504 use Moose;
  4         18  
  4         23  
135 4     4   24167 use MooseX::StrictConstructor;
  4         11  
  4         20  
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::AWS::OpsWorks::Layer::LoadBasedAutoScalingValue->new( %$_ );
155             }
156             };
157              
158             package Cfn::Resource::Properties::AWS::OpsWorks::Layer::LoadBasedAutoScalingValue {
159 4     4   12441 use Moose;
  4         11  
  4         22  
160 4     4   23822 use MooseX::StrictConstructor;
  4         12  
  4         22  
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::AWS::OpsWorks::Layer::LifecycleEventConfigurationValue->new( %$_ );
178             }
179             };
180              
181             package Cfn::Resource::Properties::AWS::OpsWorks::Layer::LifecycleEventConfigurationValue {
182 4     4   12488 use Moose;
  4         14  
  4         21  
183 4     4   24105 use MooseX::StrictConstructor;
  4         11  
  4         20  
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   11792 use Moose;
  4         14  
  4         20  
191 4     4   23959 use MooseX::StrictConstructor;
  4         10  
  4         24  
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;