Cfn/Resource/AWS/Glue/Crawler.pm

filter: Statementstmt 71.7% 127 / 177 Branchbran 0.0% 0 / 30 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 45.4% 20 / 44 Podpod 0.0% 0 / 2 totaltotal 58.1% 147 / 253 CC 16 SCAR 12.9
CC
16
Cov
61%
__ANON__
6.0
__ANON__
6.0
__ANON__
6.0
CRAP 3.6
« Cfn/Resource/AWS/MediaLive/Input.pm ↑ Summary Cfn/Resource/AWS/DLM/LifecyclePolicy.pm »
1 # AWS::Glue::Crawler generated from spec 21.0.0
2 1 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 coerce 'Cfn::Resource::Properties::AWS::Glue::Crawler',
5 from 'HashRef',
6 0 ▶ via { Cfn::Resource::Properties::AWS::Glue::Crawler->new( %$_ ) };
Subroutine __ANON__: not called CC=1 SCAR=1.2
7  
8 1 package Cfn::Resource::AWS::Glue::Crawler {
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::Glue::Crawler', is => 'rw', coerce => 1);
12
13 sub AttributeList {
14 1 ▶ [ ]
Subroutine AttributeList: called CC=1 SCAR=0.0
Pod undocumented
15 }
16 sub supported_regions {
17 1 ▶ [ 'ap-northeast-1','ap-northeast-2','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','cn-northwest-1','eu-central-1','eu-north-1','eu-west-1','eu-west-2','eu-west-3','us-east-1','us-east-2','us-west-1','us-west-2' ]
Subroutine supported_regions: called CC=1 SCAR=0.0
Pod undocumented
18 }
19 }
20  
21  
22 subtype 'ArrayOfCfn::Resource::Properties::AWS::Glue::Crawler::S3Target',
23 as 'Cfn::Value',
24 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
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::Glue::Crawler::S3Target',
28 from 'HashRef',
29 via {
30 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
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 via {
38 Cfn::Value::Array->new(Value => [
39 map {
40 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Glue::Crawler::S3Target')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
41 } @$_
42 ]);
43 1 };
44  
45 1 subtype 'Cfn::Resource::Properties::AWS::Glue::Crawler::S3Target',
46 as 'Cfn::Value';
47  
48 coerce 'Cfn::Resource::Properties::AWS::Glue::Crawler::S3Target',
49 from 'HashRef',
50 via {
51 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
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::Glue::Crawler::S3Target->new( %$_ );
55 }
56 1 };
57  
58 1 package Cfn::Resource::Properties::Object::AWS::Glue::Crawler::S3Target {
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 ConnectionName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64 1 has Exclusions => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
65 1 has Path => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
66 }
67 subtype 'ArrayOfCfn::Resource::Properties::AWS::Glue::Crawler::JdbcTarget',
68 as 'Cfn::Value',
69 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
70 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
71  
72 coerce 'ArrayOfCfn::Resource::Properties::AWS::Glue::Crawler::JdbcTarget',
73 from 'HashRef',
74 via {
75 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
76 0 return $f
77 } else {
78 0 die 'Only accepts functions';
79 }
80 },
81 from 'ArrayRef',
82 via {
83 Cfn::Value::Array->new(Value => [
84 map {
85 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Glue::Crawler::JdbcTarget')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
86 } @$_
87 ]);
88 1 };
89  
90 1 subtype 'Cfn::Resource::Properties::AWS::Glue::Crawler::JdbcTarget',
91 as 'Cfn::Value';
92  
93 coerce 'Cfn::Resource::Properties::AWS::Glue::Crawler::JdbcTarget',
94 from 'HashRef',
95 via {
96 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
97 0 return $f
98 } else {
99 0 return Cfn::Resource::Properties::Object::AWS::Glue::Crawler::JdbcTarget->new( %$_ );
100 }
101 1 };
102  
103 1 package Cfn::Resource::Properties::Object::AWS::Glue::Crawler::JdbcTarget {
104 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
105 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
106 1 extends 'Cfn::Value::TypedValue';
107
108 1 has ConnectionName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
109 1 has Exclusions => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
110 1 has Path => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
111 }
112 subtype 'ArrayOfCfn::Resource::Properties::AWS::Glue::Crawler::DynamoDBTarget',
113 as 'Cfn::Value',
114 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
115 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
116  
117 coerce 'ArrayOfCfn::Resource::Properties::AWS::Glue::Crawler::DynamoDBTarget',
118 from 'HashRef',
119 via {
120 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
121 0 return $f
122 } else {
123 0 die 'Only accepts functions';
124 }
125 },
126 from 'ArrayRef',
127 via {
128 Cfn::Value::Array->new(Value => [
129 map {
130 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Glue::Crawler::DynamoDBTarget')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
131 } @$_
132 ]);
133 1 };
134  
135 1 subtype 'Cfn::Resource::Properties::AWS::Glue::Crawler::DynamoDBTarget',
136 as 'Cfn::Value';
137  
138 coerce 'Cfn::Resource::Properties::AWS::Glue::Crawler::DynamoDBTarget',
139 from 'HashRef',
140 via {
141 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
142 0 return $f
143 } else {
144 0 return Cfn::Resource::Properties::Object::AWS::Glue::Crawler::DynamoDBTarget->new( %$_ );
145 }
146 1 };
147  
148 1 package Cfn::Resource::Properties::Object::AWS::Glue::Crawler::DynamoDBTarget {
149 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
150 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
151 1 extends 'Cfn::Value::TypedValue';
152
153 1 has Path => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
154 }
155 subtype 'ArrayOfCfn::Resource::Properties::AWS::Glue::Crawler::CatalogTarget',
156 as 'Cfn::Value',
157 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
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::Glue::Crawler::CatalogTarget',
161 from 'HashRef',
162 via {
163 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
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 via {
171 Cfn::Value::Array->new(Value => [
172 map {
173 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Glue::Crawler::CatalogTarget')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
174 } @$_
175 ]);
176 1 };
177  
178 1 subtype 'Cfn::Resource::Properties::AWS::Glue::Crawler::CatalogTarget',
179 as 'Cfn::Value';
180  
181 coerce 'Cfn::Resource::Properties::AWS::Glue::Crawler::CatalogTarget',
182 from 'HashRef',
183 via {
184 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
185 0 return $f
186 } else {
187 0 return Cfn::Resource::Properties::Object::AWS::Glue::Crawler::CatalogTarget->new( %$_ );
188 }
189 1 };
190  
191 1 package Cfn::Resource::Properties::Object::AWS::Glue::Crawler::CatalogTarget {
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 DatabaseName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
197 1 has Tables => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
198 }
199  
200 1 subtype 'Cfn::Resource::Properties::AWS::Glue::Crawler::Targets',
201 as 'Cfn::Value';
202  
203 coerce 'Cfn::Resource::Properties::AWS::Glue::Crawler::Targets',
204 from 'HashRef',
205 via {
206 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
207 0 return $f
208 } else {
209 0 return Cfn::Resource::Properties::Object::AWS::Glue::Crawler::Targets->new( %$_ );
210 }
211 1 };
212  
213 1 package Cfn::Resource::Properties::Object::AWS::Glue::Crawler::Targets {
214 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
215 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
216 1 extends 'Cfn::Value::TypedValue';
217
218 1 has CatalogTargets => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Glue::Crawler::CatalogTarget', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
219 1 has DynamoDBTargets => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Glue::Crawler::DynamoDBTarget', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
220 1 has JdbcTargets => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Glue::Crawler::JdbcTarget', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
221 1 has S3Targets => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Glue::Crawler::S3Target', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
222 }
223  
224 1 subtype 'Cfn::Resource::Properties::AWS::Glue::Crawler::SchemaChangePolicy',
225 as 'Cfn::Value';
226  
227 coerce 'Cfn::Resource::Properties::AWS::Glue::Crawler::SchemaChangePolicy',
228 from 'HashRef',
229 via {
230 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
231 0 return $f
232 } else {
233 0 return Cfn::Resource::Properties::Object::AWS::Glue::Crawler::SchemaChangePolicy->new( %$_ );
234 }
235 1 };
236  
237 1 package Cfn::Resource::Properties::Object::AWS::Glue::Crawler::SchemaChangePolicy {
238 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
239 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
240 1 extends 'Cfn::Value::TypedValue';
241
242 1 has DeleteBehavior => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
243 1 has UpdateBehavior => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
244 }
245  
246 1 subtype 'Cfn::Resource::Properties::AWS::Glue::Crawler::Schedule',
247 as 'Cfn::Value';
248  
249 coerce 'Cfn::Resource::Properties::AWS::Glue::Crawler::Schedule',
250 from 'HashRef',
251 via {
252 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
253 0 return $f
254 } else {
255 0 return Cfn::Resource::Properties::Object::AWS::Glue::Crawler::Schedule->new( %$_ );
256 }
257 1 };
258  
259 1 package Cfn::Resource::Properties::Object::AWS::Glue::Crawler::Schedule {
260 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
261 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
262 1 extends 'Cfn::Value::TypedValue';
263
264 1 has ScheduleExpression => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
265 }
266  
267 1 package Cfn::Resource::Properties::AWS::Glue::Crawler {
268 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
269 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
270 1 extends 'Cfn::Resource::Properties';
271
272 1 has Classifiers => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
273 1 has Configuration => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
274 1 has CrawlerSecurityConfiguration => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
275 1 has DatabaseName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
276 1 has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
277 1 has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
278 1 has Role => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
279 1 has Schedule => (isa => 'Cfn::Resource::Properties::AWS::Glue::Crawler::Schedule', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
280 1 has SchemaChangePolicy => (isa => 'Cfn::Resource::Properties::AWS::Glue::Crawler::SchemaChangePolicy', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
281 1 has TablePrefix => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
282 1 has Tags => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
283 1 has Targets => (isa => 'Cfn::Resource::Properties::AWS::Glue::Crawler::Targets', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
284 }
285  
286 1 1;
287 ### main pod documentation begin ###
288  
289 =encoding UTF-8
290  
291 =head1 NAME
292  
293 Cfn::Resource::AWS::Glue::Crawler - Cfn resource for AWS::Glue::Crawler
294  
295 =head1 DESCRIPTION
296  
297 This module implements a Perl module that represents the CloudFormation object AWS::Glue::Crawler.
298  
299 See L<Cfn> for more information on how to use it.
300  
301 =head1 AUTHOR
302  
303 Jose Luis Martinez
304 CAPSiDE
305 jlmartinez@capside.com
306  
307 =head1 COPYRIGHT and LICENSE
308  
309 Copyright (c) 2013 by CAPSiDE
310 This code is distributed under the Apache 2 License. The full text of the
311 license can be found in the LICENSE file included with this module.
312  
313 =cut
« Cfn/Resource/AWS/MediaLive/Input.pm ↑ Summary Cfn/Resource/AWS/DLM/LifecyclePolicy.pm »