File Coverage

blib/lib/Cfn/Resource/AWS/Glue/Crawler.pm
Criterion Covered Total %
statement 56 56 100.0
branch n/a
condition n/a
subroutine 20 20 100.0
pod 0 2 0.0
total 76 78 97.4


line stmt bran cond sub pod time code
1             # AWS::Glue::Crawler generated from spec 21.0.0
2 1     1   845 use Moose::Util::TypeConstraints;
  1         4  
  1         12  
3              
4             coerce 'Cfn::Resource::Properties::AWS::Glue::Crawler',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::Glue::Crawler->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::Glue::Crawler {
9 1     1   2381 use Moose;
  1         2  
  1         8  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::Glue::Crawler', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 4 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1175 [ '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' ]
18             }
19             }
20              
21              
22             subtype 'ArrayOfCfn::Resource::Properties::AWS::Glue::Crawler::S3Target',
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::Glue::Crawler::S3Target',
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::Glue::Crawler::S3Target')->coerce($_)
41             } @$_
42             ]);
43             };
44              
45             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             if (my $f = Cfn::TypeLibrary::try_function($_)) {
52             return $f
53             } else {
54             return Cfn::Resource::Properties::Object::AWS::Glue::Crawler::S3Target->new( %$_ );
55             }
56             };
57              
58             package Cfn::Resource::Properties::Object::AWS::Glue::Crawler::S3Target {
59 1     1   7980 use Moose;
  1         2  
  1         5  
60 1     1   6949 use MooseX::StrictConstructor;
  1         3  
  1         11  
61             extends 'Cfn::Value::TypedValue';
62            
63             has ConnectionName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64             has Exclusions => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
65             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             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
70             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
71              
72             coerce 'ArrayOfCfn::Resource::Properties::AWS::Glue::Crawler::JdbcTarget',
73             from 'HashRef',
74             via {
75             if (my $f = Cfn::TypeLibrary::try_function($_)) {
76             return $f
77             } else {
78             die 'Only accepts functions';
79             }
80             },
81             from 'ArrayRef',
82             via {
83             Cfn::Value::Array->new(Value => [
84             map {
85             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Glue::Crawler::JdbcTarget')->coerce($_)
86             } @$_
87             ]);
88             };
89              
90             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             if (my $f = Cfn::TypeLibrary::try_function($_)) {
97             return $f
98             } else {
99             return Cfn::Resource::Properties::Object::AWS::Glue::Crawler::JdbcTarget->new( %$_ );
100             }
101             };
102              
103             package Cfn::Resource::Properties::Object::AWS::Glue::Crawler::JdbcTarget {
104 1     1   4063 use Moose;
  1         3  
  1         7  
105 1     1   6866 use MooseX::StrictConstructor;
  1         4  
  1         5  
106             extends 'Cfn::Value::TypedValue';
107            
108             has ConnectionName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
109             has Exclusions => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
110             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             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
115             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
116              
117             coerce 'ArrayOfCfn::Resource::Properties::AWS::Glue::Crawler::DynamoDBTarget',
118             from 'HashRef',
119             via {
120             if (my $f = Cfn::TypeLibrary::try_function($_)) {
121             return $f
122             } else {
123             die 'Only accepts functions';
124             }
125             },
126             from 'ArrayRef',
127             via {
128             Cfn::Value::Array->new(Value => [
129             map {
130             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Glue::Crawler::DynamoDBTarget')->coerce($_)
131             } @$_
132             ]);
133             };
134              
135             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             if (my $f = Cfn::TypeLibrary::try_function($_)) {
142             return $f
143             } else {
144             return Cfn::Resource::Properties::Object::AWS::Glue::Crawler::DynamoDBTarget->new( %$_ );
145             }
146             };
147              
148             package Cfn::Resource::Properties::Object::AWS::Glue::Crawler::DynamoDBTarget {
149 1     1   3751 use Moose;
  1         4  
  1         6  
150 1     1   6881 use MooseX::StrictConstructor;
  1         3  
  1         6  
151             extends 'Cfn::Value::TypedValue';
152            
153             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             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::Glue::Crawler::CatalogTarget',
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::Glue::Crawler::CatalogTarget')->coerce($_)
174             } @$_
175             ]);
176             };
177              
178             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             if (my $f = Cfn::TypeLibrary::try_function($_)) {
185             return $f
186             } else {
187             return Cfn::Resource::Properties::Object::AWS::Glue::Crawler::CatalogTarget->new( %$_ );
188             }
189             };
190              
191             package Cfn::Resource::Properties::Object::AWS::Glue::Crawler::CatalogTarget {
192 1     1   3772 use Moose;
  1         5  
  1         7  
193 1     1   7000 use MooseX::StrictConstructor;
  1         4  
  1         6  
194             extends 'Cfn::Value::TypedValue';
195            
196             has DatabaseName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
197             has Tables => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
198             }
199              
200             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             if (my $f = Cfn::TypeLibrary::try_function($_)) {
207             return $f
208             } else {
209             return Cfn::Resource::Properties::Object::AWS::Glue::Crawler::Targets->new( %$_ );
210             }
211             };
212              
213             package Cfn::Resource::Properties::Object::AWS::Glue::Crawler::Targets {
214 1     1   3716 use Moose;
  1         3  
  1         5  
215 1     1   6987 use MooseX::StrictConstructor;
  1         4  
  1         8  
216             extends 'Cfn::Value::TypedValue';
217            
218             has CatalogTargets => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Glue::Crawler::CatalogTarget', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
219             has DynamoDBTargets => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Glue::Crawler::DynamoDBTarget', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
220             has JdbcTargets => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Glue::Crawler::JdbcTarget', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
221             has S3Targets => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Glue::Crawler::S3Target', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
222             }
223              
224             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             if (my $f = Cfn::TypeLibrary::try_function($_)) {
231             return $f
232             } else {
233             return Cfn::Resource::Properties::Object::AWS::Glue::Crawler::SchemaChangePolicy->new( %$_ );
234             }
235             };
236              
237             package Cfn::Resource::Properties::Object::AWS::Glue::Crawler::SchemaChangePolicy {
238 1     1   3618 use Moose;
  1         3  
  1         4  
239 1     1   6919 use MooseX::StrictConstructor;
  1         5  
  1         6  
240             extends 'Cfn::Value::TypedValue';
241            
242             has DeleteBehavior => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
243             has UpdateBehavior => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
244             }
245              
246             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             if (my $f = Cfn::TypeLibrary::try_function($_)) {
253             return $f
254             } else {
255             return Cfn::Resource::Properties::Object::AWS::Glue::Crawler::Schedule->new( %$_ );
256             }
257             };
258              
259             package Cfn::Resource::Properties::Object::AWS::Glue::Crawler::Schedule {
260 1     1   3493 use Moose;
  1         3  
  1         7  
261 1     1   7545 use MooseX::StrictConstructor;
  1         8  
  1         15  
262             extends 'Cfn::Value::TypedValue';
263            
264             has ScheduleExpression => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
265             }
266              
267             package Cfn::Resource::Properties::AWS::Glue::Crawler {
268 1     1   7576 use Moose;
  1         4  
  1         11  
269 1     1   8742 use MooseX::StrictConstructor;
  1         3  
  1         5  
270             extends 'Cfn::Resource::Properties';
271            
272             has Classifiers => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
273             has Configuration => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
274             has CrawlerSecurityConfiguration => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
275             has DatabaseName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
276             has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
277             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
278             has Role => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
279             has Schedule => (isa => 'Cfn::Resource::Properties::AWS::Glue::Crawler::Schedule', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
280             has SchemaChangePolicy => (isa => 'Cfn::Resource::Properties::AWS::Glue::Crawler::SchemaChangePolicy', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
281             has TablePrefix => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
282             has Tags => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
283             has Targets => (isa => 'Cfn::Resource::Properties::AWS::Glue::Crawler::Targets', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
284             }
285              
286             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