File Coverage

blib/lib/Cfn/Resource/AWS/KinesisAnalyticsV2/ApplicationReferenceDataSource.pm
Criterion Covered Total %
statement 62 62 100.0
branch n/a
condition n/a
subroutine 22 22 100.0
pod 0 2 0.0
total 84 86 97.6


line stmt bran cond sub pod time code
1             # AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource generated from spec 18.4.0
2 1     1   833 use Moose::Util::TypeConstraints;
  1         3  
  1         10  
3              
4             coerce 'Cfn::Resource::Properties::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource {
9 1     1   2215 use Moose;
  1         3  
  1         9  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 4 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1185 [ 'ap-northeast-1','ap-northeast-2','ap-southeast-1','ap-southeast-2','eu-central-1','eu-west-1','eu-west-2','us-east-1','us-east-2','us-west-2' ]
18             }
19             }
20              
21              
22              
23             subtype 'Cfn::Resource::Properties::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::JSONMappingParameters',
24             as 'Cfn::Value';
25              
26             coerce 'Cfn::Resource::Properties::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::JSONMappingParameters',
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::KinesisAnalyticsV2::ApplicationReferenceDataSource::JSONMappingParameters->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::Object::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::JSONMappingParameters {
37 1     1   7476 use Moose;
  1         4  
  1         6  
38 1     1   6978 use MooseX::StrictConstructor;
  1         5  
  1         11  
39             extends 'Cfn::Value::TypedValue';
40            
41             has RecordRowPath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42             }
43              
44             subtype 'Cfn::Resource::Properties::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::CSVMappingParameters',
45             as 'Cfn::Value';
46              
47             coerce 'Cfn::Resource::Properties::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::CSVMappingParameters',
48             from 'HashRef',
49             via {
50             if (my $f = Cfn::TypeLibrary::try_function($_)) {
51             return $f
52             } else {
53             return Cfn::Resource::Properties::Object::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::CSVMappingParameters->new( %$_ );
54             }
55             };
56              
57             package Cfn::Resource::Properties::Object::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::CSVMappingParameters {
58 1     1   4093 use Moose;
  1         3  
  1         8  
59 1     1   7574 use MooseX::StrictConstructor;
  1         5  
  1         6  
60             extends 'Cfn::Value::TypedValue';
61            
62             has RecordColumnDelimiter => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
63             has RecordRowDelimiter => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64             }
65              
66             subtype 'Cfn::Resource::Properties::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::MappingParameters',
67             as 'Cfn::Value';
68              
69             coerce 'Cfn::Resource::Properties::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::MappingParameters',
70             from 'HashRef',
71             via {
72             if (my $f = Cfn::TypeLibrary::try_function($_)) {
73             return $f
74             } else {
75             return Cfn::Resource::Properties::Object::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::MappingParameters->new( %$_ );
76             }
77             };
78              
79             package Cfn::Resource::Properties::Object::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::MappingParameters {
80 1     1   3542 use Moose;
  1         4  
  1         6  
81 1     1   6743 use MooseX::StrictConstructor;
  1         3  
  1         6  
82             extends 'Cfn::Value::TypedValue';
83            
84             has CSVMappingParameters => (isa => 'Cfn::Resource::Properties::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::CSVMappingParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
85             has JSONMappingParameters => (isa => 'Cfn::Resource::Properties::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::JSONMappingParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
86             }
87              
88             subtype 'Cfn::Resource::Properties::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::RecordFormat',
89             as 'Cfn::Value';
90              
91             coerce 'Cfn::Resource::Properties::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::RecordFormat',
92             from 'HashRef',
93             via {
94             if (my $f = Cfn::TypeLibrary::try_function($_)) {
95             return $f
96             } else {
97             return Cfn::Resource::Properties::Object::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::RecordFormat->new( %$_ );
98             }
99             };
100              
101             package Cfn::Resource::Properties::Object::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::RecordFormat {
102 1     1   3451 use Moose;
  1         4  
  1         7  
103 1     1   6887 use MooseX::StrictConstructor;
  1         3  
  1         7  
104             extends 'Cfn::Value::TypedValue';
105            
106             has MappingParameters => (isa => 'Cfn::Resource::Properties::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::MappingParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
107             has RecordFormatType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
108             }
109             subtype 'ArrayOfCfn::Resource::Properties::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::RecordColumn',
110             as 'Cfn::Value',
111             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
112             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
113              
114             coerce 'ArrayOfCfn::Resource::Properties::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::RecordColumn',
115             from 'HashRef',
116             via {
117             if (my $f = Cfn::TypeLibrary::try_function($_)) {
118             return $f
119             } else {
120             die 'Only accepts functions';
121             }
122             },
123             from 'ArrayRef',
124             via {
125             Cfn::Value::Array->new(Value => [
126             map {
127             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::RecordColumn')->coerce($_)
128             } @$_
129             ]);
130             };
131              
132             subtype 'Cfn::Resource::Properties::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::RecordColumn',
133             as 'Cfn::Value';
134              
135             coerce 'Cfn::Resource::Properties::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::RecordColumn',
136             from 'HashRef',
137             via {
138             if (my $f = Cfn::TypeLibrary::try_function($_)) {
139             return $f
140             } else {
141             return Cfn::Resource::Properties::Object::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::RecordColumn->new( %$_ );
142             }
143             };
144              
145             package Cfn::Resource::Properties::Object::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::RecordColumn {
146 1     1   3895 use Moose;
  1         5  
  1         9  
147 1     1   6943 use MooseX::StrictConstructor;
  1         3  
  1         10  
148             extends 'Cfn::Value::TypedValue';
149            
150             has Mapping => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
151             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
152             has SqlType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
153             }
154              
155             subtype 'Cfn::Resource::Properties::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::S3ReferenceDataSource',
156             as 'Cfn::Value';
157              
158             coerce 'Cfn::Resource::Properties::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::S3ReferenceDataSource',
159             from 'HashRef',
160             via {
161             if (my $f = Cfn::TypeLibrary::try_function($_)) {
162             return $f
163             } else {
164             return Cfn::Resource::Properties::Object::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::S3ReferenceDataSource->new( %$_ );
165             }
166             };
167              
168             package Cfn::Resource::Properties::Object::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::S3ReferenceDataSource {
169 1     1   3481 use Moose;
  1         4  
  1         8  
170 1     1   6897 use MooseX::StrictConstructor;
  1         3  
  1         6  
171             extends 'Cfn::Value::TypedValue';
172            
173             has BucketARN => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
174             has FileKey => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
175             }
176              
177             subtype 'Cfn::Resource::Properties::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::ReferenceSchema',
178             as 'Cfn::Value';
179              
180             coerce 'Cfn::Resource::Properties::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::ReferenceSchema',
181             from 'HashRef',
182             via {
183             if (my $f = Cfn::TypeLibrary::try_function($_)) {
184             return $f
185             } else {
186             return Cfn::Resource::Properties::Object::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::ReferenceSchema->new( %$_ );
187             }
188             };
189              
190             package Cfn::Resource::Properties::Object::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::ReferenceSchema {
191 1     1   3570 use Moose;
  1         3  
  1         9  
192 1     1   6659 use MooseX::StrictConstructor;
  1         4  
  1         7  
193             extends 'Cfn::Value::TypedValue';
194            
195             has RecordColumns => (isa => 'ArrayOfCfn::Resource::Properties::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::RecordColumn', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
196             has RecordEncoding => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
197             has RecordFormat => (isa => 'Cfn::Resource::Properties::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::RecordFormat', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
198             }
199              
200             subtype 'Cfn::Resource::Properties::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::ReferenceDataSource',
201             as 'Cfn::Value';
202              
203             coerce 'Cfn::Resource::Properties::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::ReferenceDataSource',
204             from 'HashRef',
205             via {
206             if (my $f = Cfn::TypeLibrary::try_function($_)) {
207             return $f
208             } else {
209             return Cfn::Resource::Properties::Object::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::ReferenceDataSource->new( %$_ );
210             }
211             };
212              
213             package Cfn::Resource::Properties::Object::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::ReferenceDataSource {
214 1     1   3483 use Moose;
  1         3  
  1         6  
215 1     1   6758 use MooseX::StrictConstructor;
  1         3  
  1         7  
216             extends 'Cfn::Value::TypedValue';
217            
218             has ReferenceSchema => (isa => 'Cfn::Resource::Properties::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::ReferenceSchema', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
219             has S3ReferenceDataSource => (isa => 'Cfn::Resource::Properties::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::S3ReferenceDataSource', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
220             has TableName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
221             }
222              
223             package Cfn::Resource::Properties::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource {
224 1     1   3376 use Moose;
  1         5  
  1         6  
225 1     1   6741 use MooseX::StrictConstructor;
  1         3  
  1         6  
226             extends 'Cfn::Resource::Properties';
227            
228             has ApplicationName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
229             has ReferenceDataSource => (isa => 'Cfn::Resource::Properties::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource::ReferenceDataSource', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
230             }
231              
232             1;
233             ### main pod documentation begin ###
234              
235             =encoding UTF-8
236              
237             =head1 NAME
238              
239             Cfn::Resource::AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource - Cfn resource for AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource
240              
241             =head1 DESCRIPTION
242              
243             This module implements a Perl module that represents the CloudFormation object AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource.
244              
245             See L<Cfn> for more information on how to use it.
246              
247             =head1 AUTHOR
248              
249             Jose Luis Martinez
250             CAPSiDE
251             jlmartinez@capside.com
252              
253             =head1 COPYRIGHT and LICENSE
254              
255             Copyright (c) 2013 by CAPSiDE
256             This code is distributed under the Apache 2 License. The full text of the
257             license can be found in the LICENSE file included with this module.
258              
259             =cut