Cfn/Resource/AWS/OpsWorks/Layer.pm

filter: Statementstmt 82.2% 125 / 152 Branchbran 0.0% 0 / 16 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 58.6% 17 / 29 Podpod 0.0% 0 / 2 totaltotal 71.3% 142 / 199 CC 9 SCAR 11.8
CC
9
Cov
74%
__ANON__
6.0
__ANON__
6.0
__ANON__
6.0
CRAP 3.2
« Cfn/Resource/AWS/Events/Rule.pm ↑ Summary Cfn/Resource/AWS/KinesisFirehose/DeliveryStream.pm »
1 # AWS::OpsWorks::Layer generated from spec 18.4.0
2 3 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 coerce 'Cfn::Resource::Properties::AWS::OpsWorks::Layer',
5 from 'HashRef',
6 6 ▶ via { Cfn::Resource::Properties::AWS::OpsWorks::Layer->new( %$_ ) };
Subroutine __ANON__: called CC=1 SCAR=0.0
7  
8 3 package Cfn::Resource::AWS::OpsWorks::Layer {
9 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 3 extends 'Cfn::Resource';
11 3 has Properties => (isa => 'Cfn::Resource::Properties::AWS::OpsWorks::Layer', is => 'rw', coerce => 1);
12
13 0 ▶ sub AttributeList {
Subroutine AttributeList: not called CC=1 SCAR=6.9
Pod undocumented
14 0 [ ]
15 }
16 0 ▶ sub supported_regions {
Subroutine supported_regions: not called CC=1 SCAR=6.9
Pod undocumented
17 0 [ '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 3 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 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
29 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
30 0 return $f
31 } else {
32 0 return Cfn::Resource::Properties::Object::AWS::OpsWorks::Layer::ShutdownEventConfiguration->new( %$_ );
33 }
34 3 };
35  
36 3 package Cfn::Resource::Properties::Object::AWS::OpsWorks::Layer::ShutdownEventConfiguration {
37 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
38 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
39 3 extends 'Cfn::Value::TypedValue';
40
41 3 has DelayUntilElbConnectionsDrained => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42 3 has ExecutionTimeout => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43 }
44  
45 3 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 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
51 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
52 0 return $f
53 } else {
54 0 return Cfn::Resource::Properties::Object::AWS::OpsWorks::Layer::AutoScalingThresholds->new( %$_ );
55 }
56 3 };
57  
58 3 package Cfn::Resource::Properties::Object::AWS::OpsWorks::Layer::AutoScalingThresholds {
59 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
60 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
61 3 extends 'Cfn::Value::TypedValue';
62
63 3 has CpuThreshold => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64 3 has IgnoreMetricsTime => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
65 3 has InstanceCount => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
66 3 has LoadThreshold => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
67 3 has MemoryThreshold => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
68 3 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 0 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 0 0 0
73 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
74  
75 coerce 'ArrayOfCfn::Resource::Properties::AWS::OpsWorks::Layer::VolumeConfiguration',
76 from 'HashRef',
77 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
78 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
79 0 return $f
80 } else {
81 0 die 'Only accepts functions';
82 }
83 },
84 from 'ArrayRef',
85 0 ▶ via {
Subroutine __ANON__: not called CC=1 SCAR=6.9
86 Cfn::Value::Array->new(Value => [
87 map {
88 0 Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::OpsWorks::Layer::VolumeConfiguration')->coerce($_)
89 } @$_
90 ]);
91 3 };
92  
93 3 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 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
99 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
100 0 return $f
101 } else {
102 0 return Cfn::Resource::Properties::Object::AWS::OpsWorks::Layer::VolumeConfiguration->new( %$_ );
103 }
104 3 };
105  
106 3 package Cfn::Resource::Properties::Object::AWS::OpsWorks::Layer::VolumeConfiguration {
107 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
108 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
109 3 extends 'Cfn::Value::TypedValue';
110
111 3 has Encrypted => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
112 3 has Iops => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
113 3 has MountPoint => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
114 3 has NumberOfDisks => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
115 3 has RaidLevel => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
116 3 has Size => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
117 3 has VolumeType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
118 }
119  
120 3 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 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
126 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
127 0 return $f
128 } else {
129 0 return Cfn::Resource::Properties::Object::AWS::OpsWorks::Layer::Recipes->new( %$_ );
130 }
131 3 };
132  
133 3 package Cfn::Resource::Properties::Object::AWS::OpsWorks::Layer::Recipes {
134 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
135 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
136 3 extends 'Cfn::Value::TypedValue';
137
138 3 has Configure => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
139 3 has Deploy => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
140 3 has Setup => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
141 3 has Shutdown => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
142 3 has Undeploy => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
143 }
144  
145 3 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 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
151 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
152 0 return $f
153 } else {
154 0 return Cfn::Resource::Properties::Object::AWS::OpsWorks::Layer::LoadBasedAutoScaling->new( %$_ );
155 }
156 3 };
157  
158 3 package Cfn::Resource::Properties::Object::AWS::OpsWorks::Layer::LoadBasedAutoScaling {
159 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
160 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
161 3 extends 'Cfn::Value::TypedValue';
162
163 3 has DownScaling => (isa => 'Cfn::Resource::Properties::AWS::OpsWorks::Layer::AutoScalingThresholds', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
164 3 has Enable => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
165 3 has UpScaling => (isa => 'Cfn::Resource::Properties::AWS::OpsWorks::Layer::AutoScalingThresholds', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
166 }
167  
168 3 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 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
174 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
175 0 return $f
176 } else {
177 0 return Cfn::Resource::Properties::Object::AWS::OpsWorks::Layer::LifecycleEventConfiguration->new( %$_ );
178 }
179 3 };
180  
181 3 package Cfn::Resource::Properties::Object::AWS::OpsWorks::Layer::LifecycleEventConfiguration {
182 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
183 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
184 3 extends 'Cfn::Value::TypedValue';
185
186 3 has ShutdownEventConfiguration => (isa => 'Cfn::Resource::Properties::AWS::OpsWorks::Layer::ShutdownEventConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
187 }
188  
189 3 package Cfn::Resource::Properties::AWS::OpsWorks::Layer {
190 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
191 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
192 3 extends 'Cfn::Resource::Properties';
193
194 3 has Attributes => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
195 3 has AutoAssignElasticIps => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
196 3 has AutoAssignPublicIps => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
197 3 has CustomInstanceProfileArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
198 3 has CustomJson => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
199 3 has CustomRecipes => (isa => 'Cfn::Resource::Properties::AWS::OpsWorks::Layer::Recipes', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
200 3 has CustomSecurityGroupIds => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
201 3 has EnableAutoHealing => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
202 3 has InstallUpdatesOnBoot => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
203 3 has LifecycleEventConfiguration => (isa => 'Cfn::Resource::Properties::AWS::OpsWorks::Layer::LifecycleEventConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
204 3 has LoadBasedAutoScaling => (isa => 'Cfn::Resource::Properties::AWS::OpsWorks::Layer::LoadBasedAutoScaling', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
205 3 has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
206 3 has Packages => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
207 3 has Shortname => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
208 3 has StackId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
209 3 has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
210 3 has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
211 3 has UseEbsOptimizedInstances => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
212 3 has VolumeConfigurations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::OpsWorks::Layer::VolumeConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
213 }
214  
215 3 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
« Cfn/Resource/AWS/Events/Rule.pm ↑ Summary Cfn/Resource/AWS/KinesisFirehose/DeliveryStream.pm »