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 7.4.0
2 1     1   776 use Moose::Util::TypeConstraints;
  1         4  
  1         10  
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   2169 use Moose;
  1         3  
  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 3 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1581 [ 'ap-northeast-1','ap-northeast-2','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','eu-central-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::AWS::Glue::Crawler::S3TargetValue->new( %$_ );
55             }
56             };
57              
58             package Cfn::Resource::Properties::AWS::Glue::Crawler::S3TargetValue {
59 1     1   7436 use Moose;
  1         4  
  1         6  
60 1     1   6856 use MooseX::StrictConstructor;
  1         3  
  1         11  
61             extends 'Cfn::Value::TypedValue';
62            
63             has Exclusions => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64             has Path => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
65             }
66             subtype 'ArrayOfCfn::Resource::Properties::AWS::Glue::Crawler::JdbcTarget',
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::Glue::Crawler::JdbcTarget',
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::Glue::Crawler::JdbcTarget')->coerce($_)
85             } @$_
86             ]);
87             };
88              
89             subtype 'Cfn::Resource::Properties::AWS::Glue::Crawler::JdbcTarget',
90             as 'Cfn::Value';
91              
92             coerce 'Cfn::Resource::Properties::AWS::Glue::Crawler::JdbcTarget',
93             from 'HashRef',
94             via {
95             if (my $f = Cfn::TypeLibrary::try_function($_)) {
96             return $f
97             } else {
98             return Cfn::Resource::Properties::AWS::Glue::Crawler::JdbcTargetValue->new( %$_ );
99             }
100             };
101              
102             package Cfn::Resource::Properties::AWS::Glue::Crawler::JdbcTargetValue {
103 1     1   3951 use Moose;
  1         3  
  1         7  
104 1     1   6581 use MooseX::StrictConstructor;
  1         2  
  1         6  
105             extends 'Cfn::Value::TypedValue';
106            
107             has ConnectionName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
108             has Exclusions => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
109             has Path => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
110             }
111             subtype 'ArrayOfCfn::Resource::Properties::AWS::Glue::Crawler::DynamoDBTarget',
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::Glue::Crawler::DynamoDBTarget',
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::Glue::Crawler::DynamoDBTarget')->coerce($_)
130             } @$_
131             ]);
132             };
133              
134             subtype 'Cfn::Resource::Properties::AWS::Glue::Crawler::DynamoDBTarget',
135             as 'Cfn::Value';
136              
137             coerce 'Cfn::Resource::Properties::AWS::Glue::Crawler::DynamoDBTarget',
138             from 'HashRef',
139             via {
140             if (my $f = Cfn::TypeLibrary::try_function($_)) {
141             return $f
142             } else {
143             return Cfn::Resource::Properties::AWS::Glue::Crawler::DynamoDBTargetValue->new( %$_ );
144             }
145             };
146              
147             package Cfn::Resource::Properties::AWS::Glue::Crawler::DynamoDBTargetValue {
148 1     1   3484 use Moose;
  1         3  
  1         6  
149 1     1   6437 use MooseX::StrictConstructor;
  1         5  
  1         6  
150             extends 'Cfn::Value::TypedValue';
151            
152             has Path => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
153             }
154             subtype 'ArrayOfCfn::Resource::Properties::AWS::Glue::Crawler::CatalogTarget',
155             as 'Cfn::Value',
156             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
157             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
158              
159             coerce 'ArrayOfCfn::Resource::Properties::AWS::Glue::Crawler::CatalogTarget',
160             from 'HashRef',
161             via {
162             if (my $f = Cfn::TypeLibrary::try_function($_)) {
163             return $f
164             } else {
165             die 'Only accepts functions';
166             }
167             },
168             from 'ArrayRef',
169             via {
170             Cfn::Value::Array->new(Value => [
171             map {
172             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Glue::Crawler::CatalogTarget')->coerce($_)
173             } @$_
174             ]);
175             };
176              
177             subtype 'Cfn::Resource::Properties::AWS::Glue::Crawler::CatalogTarget',
178             as 'Cfn::Value';
179              
180             coerce 'Cfn::Resource::Properties::AWS::Glue::Crawler::CatalogTarget',
181             from 'HashRef',
182             via {
183             if (my $f = Cfn::TypeLibrary::try_function($_)) {
184             return $f
185             } else {
186             return Cfn::Resource::Properties::AWS::Glue::Crawler::CatalogTargetValue->new( %$_ );
187             }
188             };
189              
190             package Cfn::Resource::Properties::AWS::Glue::Crawler::CatalogTargetValue {
191 1     1   3644 use Moose;
  1         2  
  1         5  
192 1     1   6650 use MooseX::StrictConstructor;
  1         3  
  1         5  
193             extends 'Cfn::Value::TypedValue';
194            
195             has DatabaseName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
196             has Tables => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
197             }
198              
199             subtype 'Cfn::Resource::Properties::AWS::Glue::Crawler::Targets',
200             as 'Cfn::Value';
201              
202             coerce 'Cfn::Resource::Properties::AWS::Glue::Crawler::Targets',
203             from 'HashRef',
204             via {
205             if (my $f = Cfn::TypeLibrary::try_function($_)) {
206             return $f
207             } else {
208             return Cfn::Resource::Properties::AWS::Glue::Crawler::TargetsValue->new( %$_ );
209             }
210             };
211              
212             package Cfn::Resource::Properties::AWS::Glue::Crawler::TargetsValue {
213 1     1   3477 use Moose;
  1         3  
  1         5  
214 1     1   6496 use MooseX::StrictConstructor;
  1         4  
  1         5  
215             extends 'Cfn::Value::TypedValue';
216            
217             has CatalogTargets => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Glue::Crawler::CatalogTarget', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
218             has DynamoDBTargets => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Glue::Crawler::DynamoDBTarget', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
219             has JdbcTargets => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Glue::Crawler::JdbcTarget', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
220             has S3Targets => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Glue::Crawler::S3Target', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
221             }
222              
223             subtype 'Cfn::Resource::Properties::AWS::Glue::Crawler::SchemaChangePolicy',
224             as 'Cfn::Value';
225              
226             coerce 'Cfn::Resource::Properties::AWS::Glue::Crawler::SchemaChangePolicy',
227             from 'HashRef',
228             via {
229             if (my $f = Cfn::TypeLibrary::try_function($_)) {
230             return $f
231             } else {
232             return Cfn::Resource::Properties::AWS::Glue::Crawler::SchemaChangePolicyValue->new( %$_ );
233             }
234             };
235              
236             package Cfn::Resource::Properties::AWS::Glue::Crawler::SchemaChangePolicyValue {
237 1     1   3447 use Moose;
  1         4  
  1         5  
238 1     1   6462 use MooseX::StrictConstructor;
  1         4  
  1         6  
239             extends 'Cfn::Value::TypedValue';
240            
241             has DeleteBehavior => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
242             has UpdateBehavior => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
243             }
244              
245             subtype 'Cfn::Resource::Properties::AWS::Glue::Crawler::Schedule',
246             as 'Cfn::Value';
247              
248             coerce 'Cfn::Resource::Properties::AWS::Glue::Crawler::Schedule',
249             from 'HashRef',
250             via {
251             if (my $f = Cfn::TypeLibrary::try_function($_)) {
252             return $f
253             } else {
254             return Cfn::Resource::Properties::AWS::Glue::Crawler::ScheduleValue->new( %$_ );
255             }
256             };
257              
258             package Cfn::Resource::Properties::AWS::Glue::Crawler::ScheduleValue {
259 1     1   3350 use Moose;
  1         4  
  1         4  
260 1     1   6499 use MooseX::StrictConstructor;
  1         2  
  1         6  
261             extends 'Cfn::Value::TypedValue';
262            
263             has ScheduleExpression => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
264             }
265              
266             package Cfn::Resource::Properties::AWS::Glue::Crawler {
267 1     1   3601 use Moose;
  1         3  
  1         5  
268 1     1   6414 use MooseX::StrictConstructor;
  1         2  
  1         6  
269             extends 'Cfn::Resource::Properties';
270            
271             has Classifiers => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
272             has Configuration => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
273             has CrawlerSecurityConfiguration => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
274             has DatabaseName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
275             has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
276             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
277             has Role => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
278             has Schedule => (isa => 'Cfn::Resource::Properties::AWS::Glue::Crawler::Schedule', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
279             has SchemaChangePolicy => (isa => 'Cfn::Resource::Properties::AWS::Glue::Crawler::SchemaChangePolicy', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
280             has TablePrefix => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
281             has Tags => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
282             has Targets => (isa => 'Cfn::Resource::Properties::AWS::Glue::Crawler::Targets', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
283             }
284              
285             1;