File Coverage

blib/lib/Cfn/Resource/AWS/DataPipeline/Pipeline.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::DataPipeline::Pipeline generated from spec 18.4.0
2 2     2   1497 use Moose::Util::TypeConstraints;
  2         6  
  2         21  
3              
4             coerce 'Cfn::Resource::Properties::AWS::DataPipeline::Pipeline',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::DataPipeline::Pipeline->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::DataPipeline::Pipeline {
9 2     2   4706 use Moose;
  2         7  
  2         18  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::DataPipeline::Pipeline', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 5 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1213 [ '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             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
25             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
26              
27             coerce 'ArrayOfCfn::Resource::Properties::AWS::DataPipeline::Pipeline::ParameterAttribute',
28             from 'HashRef',
29             via {
30             if (my $f = Cfn::TypeLibrary::try_function($_)) {
31             return $f
32             } else {
33             die 'Only accepts functions';
34             }
35             },
36             from 'ArrayRef',
37             via {
38             Cfn::Value::Array->new(Value => [
39             map {
40             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::DataPipeline::Pipeline::ParameterAttribute')->coerce($_)
41             } @$_
42             ]);
43             };
44              
45             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             via {
51             if (my $f = Cfn::TypeLibrary::try_function($_)) {
52             return $f
53             } else {
54             return Cfn::Resource::Properties::Object::AWS::DataPipeline::Pipeline::ParameterAttribute->new( %$_ );
55             }
56             };
57              
58             package Cfn::Resource::Properties::Object::AWS::DataPipeline::Pipeline::ParameterAttribute {
59 2     2   15715 use Moose;
  2         6  
  2         14  
60 2     2   13309 use MooseX::StrictConstructor;
  2         7  
  2         26  
61             extends 'Cfn::Value::TypedValue';
62            
63             has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64             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             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
69             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
70              
71             coerce 'ArrayOfCfn::Resource::Properties::AWS::DataPipeline::Pipeline::Field',
72             from 'HashRef',
73             via {
74             if (my $f = Cfn::TypeLibrary::try_function($_)) {
75             return $f
76             } else {
77             die 'Only accepts functions';
78             }
79             },
80             from 'ArrayRef',
81             via {
82             Cfn::Value::Array->new(Value => [
83             map {
84             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::DataPipeline::Pipeline::Field')->coerce($_)
85             } @$_
86             ]);
87             };
88              
89             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             via {
95             if (my $f = Cfn::TypeLibrary::try_function($_)) {
96             return $f
97             } else {
98             return Cfn::Resource::Properties::Object::AWS::DataPipeline::Pipeline::Field->new( %$_ );
99             }
100             };
101              
102             package Cfn::Resource::Properties::Object::AWS::DataPipeline::Pipeline::Field {
103 2     2   7915 use Moose;
  2         8  
  2         11  
104 2     2   13155 use MooseX::StrictConstructor;
  2         5  
  2         11  
105             extends 'Cfn::Value::TypedValue';
106            
107             has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
108             has RefValue => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
109             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             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
114             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
115              
116             coerce 'ArrayOfCfn::Resource::Properties::AWS::DataPipeline::Pipeline::PipelineTag',
117             from 'HashRef',
118             via {
119             if (my $f = Cfn::TypeLibrary::try_function($_)) {
120             return $f
121             } else {
122             die 'Only accepts functions';
123             }
124             },
125             from 'ArrayRef',
126             via {
127             Cfn::Value::Array->new(Value => [
128             map {
129             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::DataPipeline::Pipeline::PipelineTag')->coerce($_)
130             } @$_
131             ]);
132             };
133              
134             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             via {
140             if (my $f = Cfn::TypeLibrary::try_function($_)) {
141             return $f
142             } else {
143             return Cfn::Resource::Properties::Object::AWS::DataPipeline::Pipeline::PipelineTag->new( %$_ );
144             }
145             };
146              
147             package Cfn::Resource::Properties::Object::AWS::DataPipeline::Pipeline::PipelineTag {
148 2     2   7217 use Moose;
  2         6  
  2         9  
149 2     2   13291 use MooseX::StrictConstructor;
  2         6  
  2         12  
150             extends 'Cfn::Value::TypedValue';
151            
152             has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
153             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             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
158             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
159              
160             coerce 'ArrayOfCfn::Resource::Properties::AWS::DataPipeline::Pipeline::PipelineObject',
161             from 'HashRef',
162             via {
163             if (my $f = Cfn::TypeLibrary::try_function($_)) {
164             return $f
165             } else {
166             die 'Only accepts functions';
167             }
168             },
169             from 'ArrayRef',
170             via {
171             Cfn::Value::Array->new(Value => [
172             map {
173             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::DataPipeline::Pipeline::PipelineObject')->coerce($_)
174             } @$_
175             ]);
176             };
177              
178             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             via {
184             if (my $f = Cfn::TypeLibrary::try_function($_)) {
185             return $f
186             } else {
187             return Cfn::Resource::Properties::Object::AWS::DataPipeline::Pipeline::PipelineObject->new( %$_ );
188             }
189             };
190              
191             package Cfn::Resource::Properties::Object::AWS::DataPipeline::Pipeline::PipelineObject {
192 2     2   7480 use Moose;
  2         7  
  2         12  
193 2     2   13284 use MooseX::StrictConstructor;
  2         6  
  2         14  
194             extends 'Cfn::Value::TypedValue';
195            
196             has Fields => (isa => 'ArrayOfCfn::Resource::Properties::AWS::DataPipeline::Pipeline::Field', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
197             has Id => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
198             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             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
203             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
204              
205             coerce 'ArrayOfCfn::Resource::Properties::AWS::DataPipeline::Pipeline::ParameterValue',
206             from 'HashRef',
207             via {
208             if (my $f = Cfn::TypeLibrary::try_function($_)) {
209             return $f
210             } else {
211             die 'Only accepts functions';
212             }
213             },
214             from 'ArrayRef',
215             via {
216             Cfn::Value::Array->new(Value => [
217             map {
218             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::DataPipeline::Pipeline::ParameterValue')->coerce($_)
219             } @$_
220             ]);
221             };
222              
223             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             via {
229             if (my $f = Cfn::TypeLibrary::try_function($_)) {
230             return $f
231             } else {
232             return Cfn::Resource::Properties::Object::AWS::DataPipeline::Pipeline::ParameterValue->new( %$_ );
233             }
234             };
235              
236             package Cfn::Resource::Properties::Object::AWS::DataPipeline::Pipeline::ParameterValue {
237 2     2   7345 use Moose;
  2         8  
  2         11  
238 2     2   13606 use MooseX::StrictConstructor;
  2         4  
  2         10  
239             extends 'Cfn::Value::TypedValue';
240            
241             has Id => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
242             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             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
247             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
248              
249             coerce 'ArrayOfCfn::Resource::Properties::AWS::DataPipeline::Pipeline::ParameterObject',
250             from 'HashRef',
251             via {
252             if (my $f = Cfn::TypeLibrary::try_function($_)) {
253             return $f
254             } else {
255             die 'Only accepts functions';
256             }
257             },
258             from 'ArrayRef',
259             via {
260             Cfn::Value::Array->new(Value => [
261             map {
262             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::DataPipeline::Pipeline::ParameterObject')->coerce($_)
263             } @$_
264             ]);
265             };
266              
267             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             via {
273             if (my $f = Cfn::TypeLibrary::try_function($_)) {
274             return $f
275             } else {
276             return Cfn::Resource::Properties::Object::AWS::DataPipeline::Pipeline::ParameterObject->new( %$_ );
277             }
278             };
279              
280             package Cfn::Resource::Properties::Object::AWS::DataPipeline::Pipeline::ParameterObject {
281 2     2   7243 use Moose;
  2         6  
  2         12  
282 2     2   13350 use MooseX::StrictConstructor;
  2         5  
  2         12  
283             extends 'Cfn::Value::TypedValue';
284            
285             has Attributes => (isa => 'ArrayOfCfn::Resource::Properties::AWS::DataPipeline::Pipeline::ParameterAttribute', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
286             has Id => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
287             }
288              
289             package Cfn::Resource::Properties::AWS::DataPipeline::Pipeline {
290 2     2   6961 use Moose;
  2         5  
  2         14  
291 2     2   13526 use MooseX::StrictConstructor;
  2         7  
  2         14  
292             extends 'Cfn::Resource::Properties';
293            
294             has Activate => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
295             has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
296             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
297             has ParameterObjects => (isa => 'ArrayOfCfn::Resource::Properties::AWS::DataPipeline::Pipeline::ParameterObject', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
298             has ParameterValues => (isa => 'ArrayOfCfn::Resource::Properties::AWS::DataPipeline::Pipeline::ParameterValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
299             has PipelineObjects => (isa => 'ArrayOfCfn::Resource::Properties::AWS::DataPipeline::Pipeline::PipelineObject', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
300             has PipelineTags => (isa => 'ArrayOfCfn::Resource::Properties::AWS::DataPipeline::Pipeline::PipelineTag', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
301             }
302              
303             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