Cfn/Resource/AWS/DataPipeline/Pipeline.pm

filter: Statementstmt 78.8% 138 / 175 Branchbran 27.7% 10 / 36 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 65.3% 32 / 49 Podpod 0.0% 0 / 2 totaltotal 68.7% 180 / 262 CC 19 SCAR 9.6
CC
19
Cov
70%
__ANON__
6.0
__ANON__
6.0
__ANON__
6.0
CRAP 2.6
« Cfn/Resource/AWS/EMR/Step.pm ↑ Summary Cfn/Resource/AWS/DynamoDB/Table.pm »
1 # AWS::DataPipeline::Pipeline generated from spec 18.4.0
2 1 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 coerce 'Cfn::Resource::Properties::AWS::DataPipeline::Pipeline',
5 from 'HashRef',
6 2 ▶ via { Cfn::Resource::Properties::AWS::DataPipeline::Pipeline->new( %$_ ) };
Subroutine __ANON__: called CC=1 SCAR=0.0
7  
8 1 package Cfn::Resource::AWS::DataPipeline::Pipeline {
9 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 extends 'Cfn::Resource';
11 1 has Properties => (isa => 'Cfn::Resource::Properties::AWS::DataPipeline::Pipeline', 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 subtype 'ArrayOfCfn::Resource::Properties::AWS::DataPipeline::Pipeline::ParameterAttribute',
23 as 'Cfn::Value',
24 6 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 6 0 6
25 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
26  
27 coerce 'ArrayOfCfn::Resource::Properties::AWS::DataPipeline::Pipeline::ParameterAttribute',
28 from 'HashRef',
29 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
30 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
31 0 return $f
32 } else {
33 0 die 'Only accepts functions';
34 }
35 },
36 from 'ArrayRef',
37 6 ▶ via {
Subroutine __ANON__: called CC=1 SCAR=0.0
38 Cfn::Value::Array->new(Value => [
39 map {
40 6 Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::DataPipeline::Pipeline::ParameterAttribute')->coerce($_)
41 } @$_
42 ]);
43 1 };
44  
45 1 subtype 'Cfn::Resource::Properties::AWS::DataPipeline::Pipeline::ParameterAttribute',
46 as 'Cfn::Value';
47  
48 coerce 'Cfn::Resource::Properties::AWS::DataPipeline::Pipeline::ParameterAttribute',
49 from 'HashRef',
50 16 ▶ via {
Subroutine __ANON__: called CC=2 SCAR=8.1
51 16 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 16 16
52 0 return $f
53 } else {
54 16 return Cfn::Resource::Properties::Object::AWS::DataPipeline::Pipeline::ParameterAttribute->new( %$_ );
55 }
56 1 };
57  
58 1 package Cfn::Resource::Properties::Object::AWS::DataPipeline::Pipeline::ParameterAttribute {
59 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
60 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
61 1 extends 'Cfn::Value::TypedValue';
62
63 1 has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64 1 has StringValue => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
65 }
66 subtype 'ArrayOfCfn::Resource::Properties::AWS::DataPipeline::Pipeline::Field',
67 as 'Cfn::Value',
68 14 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 14 0 14
69 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
70  
71 coerce 'ArrayOfCfn::Resource::Properties::AWS::DataPipeline::Pipeline::Field',
72 from 'HashRef',
73 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
74 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
75 0 return $f
76 } else {
77 0 die 'Only accepts functions';
78 }
79 },
80 from 'ArrayRef',
81 14 ▶ via {
Subroutine __ANON__: called CC=1 SCAR=0.0
82 Cfn::Value::Array->new(Value => [
83 map {
84 14 Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::DataPipeline::Pipeline::Field')->coerce($_)
85 } @$_
86 ]);
87 1 };
88  
89 1 subtype 'Cfn::Resource::Properties::AWS::DataPipeline::Pipeline::Field',
90 as 'Cfn::Value';
91  
92 coerce 'Cfn::Resource::Properties::AWS::DataPipeline::Pipeline::Field',
93 from 'HashRef',
94 58 ▶ via {
Subroutine __ANON__: called CC=2 SCAR=8.1
95 58 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 58 58
96 0 return $f
97 } else {
98 58 return Cfn::Resource::Properties::Object::AWS::DataPipeline::Pipeline::Field->new( %$_ );
99 }
100 1 };
101  
102 1 package Cfn::Resource::Properties::Object::AWS::DataPipeline::Pipeline::Field {
103 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
104 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
105 1 extends 'Cfn::Value::TypedValue';
106
107 1 has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
108 1 has RefValue => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
109 1 has StringValue => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
110 }
111 subtype 'ArrayOfCfn::Resource::Properties::AWS::DataPipeline::Pipeline::PipelineTag',
112 as 'Cfn::Value',
113 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
114 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
115  
116 coerce 'ArrayOfCfn::Resource::Properties::AWS::DataPipeline::Pipeline::PipelineTag',
117 from 'HashRef',
118 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
119 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
120 0 return $f
121 } else {
122 0 die 'Only accepts functions';
123 }
124 },
125 from 'ArrayRef',
126 0 ▶ via {
Subroutine __ANON__: not called CC=1 SCAR=6.9
127 Cfn::Value::Array->new(Value => [
128 map {
129 0 Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::DataPipeline::Pipeline::PipelineTag')->coerce($_)
130 } @$_
131 ]);
132 1 };
133  
134 1 subtype 'Cfn::Resource::Properties::AWS::DataPipeline::Pipeline::PipelineTag',
135 as 'Cfn::Value';
136  
137 coerce 'Cfn::Resource::Properties::AWS::DataPipeline::Pipeline::PipelineTag',
138 from 'HashRef',
139 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
140 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
141 0 return $f
142 } else {
143 0 return Cfn::Resource::Properties::Object::AWS::DataPipeline::Pipeline::PipelineTag->new( %$_ );
144 }
145 1 };
146  
147 1 package Cfn::Resource::Properties::Object::AWS::DataPipeline::Pipeline::PipelineTag {
148 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
149 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
150 1 extends 'Cfn::Value::TypedValue';
151
152 1 has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
153 1 has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
154 }
155 subtype 'ArrayOfCfn::Resource::Properties::AWS::DataPipeline::Pipeline::PipelineObject',
156 as 'Cfn::Value',
157 2 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 2 0 2
158 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
159  
160 coerce 'ArrayOfCfn::Resource::Properties::AWS::DataPipeline::Pipeline::PipelineObject',
161 from 'HashRef',
162 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
163 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
164 0 return $f
165 } else {
166 0 die 'Only accepts functions';
167 }
168 },
169 from 'ArrayRef',
170 2 ▶ via {
Subroutine __ANON__: called CC=1 SCAR=0.0
171 Cfn::Value::Array->new(Value => [
172 map {
173 2 Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::DataPipeline::Pipeline::PipelineObject')->coerce($_)
174 } @$_
175 ]);
176 1 };
177  
178 1 subtype 'Cfn::Resource::Properties::AWS::DataPipeline::Pipeline::PipelineObject',
179 as 'Cfn::Value';
180  
181 coerce 'Cfn::Resource::Properties::AWS::DataPipeline::Pipeline::PipelineObject',
182 from 'HashRef',
183 14 ▶ via {
Subroutine __ANON__: called CC=2 SCAR=8.1
184 14 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 14 14
185 0 return $f
186 } else {
187 14 return Cfn::Resource::Properties::Object::AWS::DataPipeline::Pipeline::PipelineObject->new( %$_ );
188 }
189 1 };
190  
191 1 package Cfn::Resource::Properties::Object::AWS::DataPipeline::Pipeline::PipelineObject {
192 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
193 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
194 1 extends 'Cfn::Value::TypedValue';
195
196 1 has Fields => (isa => 'ArrayOfCfn::Resource::Properties::AWS::DataPipeline::Pipeline::Field', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
197 1 has Id => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
198 1 has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
199 }
200 subtype 'ArrayOfCfn::Resource::Properties::AWS::DataPipeline::Pipeline::ParameterValue',
201 as 'Cfn::Value',
202 2 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 2 0 2
203 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
204  
205 coerce 'ArrayOfCfn::Resource::Properties::AWS::DataPipeline::Pipeline::ParameterValue',
206 from 'HashRef',
207 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
208 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
209 0 return $f
210 } else {
211 0 die 'Only accepts functions';
212 }
213 },
214 from 'ArrayRef',
215 2 ▶ via {
Subroutine __ANON__: called CC=1 SCAR=0.0
216 Cfn::Value::Array->new(Value => [
217 map {
218 2 Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::DataPipeline::Pipeline::ParameterValue')->coerce($_)
219 } @$_
220 ]);
221 1 };
222  
223 1 subtype 'Cfn::Resource::Properties::AWS::DataPipeline::Pipeline::ParameterValue',
224 as 'Cfn::Value';
225  
226 coerce 'Cfn::Resource::Properties::AWS::DataPipeline::Pipeline::ParameterValue',
227 from 'HashRef',
228 2 ▶ via {
Subroutine __ANON__: called CC=2 SCAR=8.1
229 2 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 2 2
230 0 return $f
231 } else {
232 2 return Cfn::Resource::Properties::Object::AWS::DataPipeline::Pipeline::ParameterValue->new( %$_ );
233 }
234 1 };
235  
236 1 package Cfn::Resource::Properties::Object::AWS::DataPipeline::Pipeline::ParameterValue {
237 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
238 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
239 1 extends 'Cfn::Value::TypedValue';
240
241 1 has Id => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
242 1 has StringValue => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
243 }
244 subtype 'ArrayOfCfn::Resource::Properties::AWS::DataPipeline::Pipeline::ParameterObject',
245 as 'Cfn::Value',
246 2 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 2 0 2
247 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
248  
249 coerce 'ArrayOfCfn::Resource::Properties::AWS::DataPipeline::Pipeline::ParameterObject',
250 from 'HashRef',
251 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
252 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
253 0 return $f
254 } else {
255 0 die 'Only accepts functions';
256 }
257 },
258 from 'ArrayRef',
259 2 ▶ via {
Subroutine __ANON__: called CC=1 SCAR=0.0
260 Cfn::Value::Array->new(Value => [
261 map {
262 2 Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::DataPipeline::Pipeline::ParameterObject')->coerce($_)
263 } @$_
264 ]);
265 1 };
266  
267 1 subtype 'Cfn::Resource::Properties::AWS::DataPipeline::Pipeline::ParameterObject',
268 as 'Cfn::Value';
269  
270 coerce 'Cfn::Resource::Properties::AWS::DataPipeline::Pipeline::ParameterObject',
271 from 'HashRef',
272 6 ▶ via {
Subroutine __ANON__: called CC=2 SCAR=8.1
273 6 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 6 6
274 0 return $f
275 } else {
276 6 return Cfn::Resource::Properties::Object::AWS::DataPipeline::Pipeline::ParameterObject->new( %$_ );
277 }
278 1 };
279  
280 1 package Cfn::Resource::Properties::Object::AWS::DataPipeline::Pipeline::ParameterObject {
281 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
282 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
283 1 extends 'Cfn::Value::TypedValue';
284
285 1 has Attributes => (isa => 'ArrayOfCfn::Resource::Properties::AWS::DataPipeline::Pipeline::ParameterAttribute', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
286 1 has Id => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
287 }
288  
289 1 package Cfn::Resource::Properties::AWS::DataPipeline::Pipeline {
290 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
291 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
292 1 extends 'Cfn::Resource::Properties';
293
294 1 has Activate => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
295 1 has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
296 1 has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
297 1 has ParameterObjects => (isa => 'ArrayOfCfn::Resource::Properties::AWS::DataPipeline::Pipeline::ParameterObject', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
298 1 has ParameterValues => (isa => 'ArrayOfCfn::Resource::Properties::AWS::DataPipeline::Pipeline::ParameterValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
299 1 has PipelineObjects => (isa => 'ArrayOfCfn::Resource::Properties::AWS::DataPipeline::Pipeline::PipelineObject', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
300 1 has PipelineTags => (isa => 'ArrayOfCfn::Resource::Properties::AWS::DataPipeline::Pipeline::PipelineTag', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
301 }
302  
303 1 1;
304 ### main pod documentation begin ###
305  
306 =encoding UTF-8
307  
308 =head1 NAME
309  
310 Cfn::Resource::AWS::DataPipeline::Pipeline - Cfn resource for AWS::DataPipeline::Pipeline
311  
312 =head1 DESCRIPTION
313  
314 This module implements a Perl module that represents the CloudFormation object AWS::DataPipeline::Pipeline.
315  
316 See L<Cfn> for more information on how to use it.
317  
318 =head1 AUTHOR
319  
320 Jose Luis Martinez
321 CAPSiDE
322 jlmartinez@capside.com
323  
324 =head1 COPYRIGHT and LICENSE
325  
326 Copyright (c) 2013 by CAPSiDE
327 This code is distributed under the Apache 2 License. The full text of the
328 license can be found in the LICENSE file included with this module.
329  
330 =cut
« Cfn/Resource/AWS/EMR/Step.pm ↑ Summary Cfn/Resource/AWS/DynamoDB/Table.pm »