File Coverage

blib/lib/Cfn/Resource/AWS/Glue/Classifier.pm
Criterion Covered Total %
statement 38 38 100.0
branch n/a
condition n/a
subroutine 14 14 100.0
pod 0 2 0.0
total 52 54 96.3


line stmt bran cond sub pod time code
1             # AWS::Glue::Classifier generated from spec 3.2.0
2 1     1   773 use Moose::Util::TypeConstraints;
  1         2  
  1         10  
3              
4             coerce 'Cfn::Resource::Properties::AWS::Glue::Classifier',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::Glue::Classifier->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::Glue::Classifier {
9 1     1   2215 use Moose;
  1         3  
  1         9  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::Glue::Classifier', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 4 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1095 [ '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              
23             subtype 'Cfn::Resource::Properties::AWS::Glue::Classifier::XMLClassifier',
24             as 'Cfn::Value';
25              
26             coerce 'Cfn::Resource::Properties::AWS::Glue::Classifier::XMLClassifier',
27             from 'HashRef',
28             via {
29             if (my $f = Cfn::TypeLibrary::try_function($_)) {
30             return $f
31             } else {
32             return Cfn::Resource::Properties::AWS::Glue::Classifier::XMLClassifierValue->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::AWS::Glue::Classifier::XMLClassifierValue {
37 1     1   7325 use Moose;
  1         7  
  1         6  
38 1     1   6585 use MooseX::StrictConstructor;
  1         3  
  1         12  
39             extends 'Cfn::Value::TypedValue';
40            
41             has Classification => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
43             has RowTag => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
44             }
45              
46             subtype 'Cfn::Resource::Properties::AWS::Glue::Classifier::JsonClassifier',
47             as 'Cfn::Value';
48              
49             coerce 'Cfn::Resource::Properties::AWS::Glue::Classifier::JsonClassifier',
50             from 'HashRef',
51             via {
52             if (my $f = Cfn::TypeLibrary::try_function($_)) {
53             return $f
54             } else {
55             return Cfn::Resource::Properties::AWS::Glue::Classifier::JsonClassifierValue->new( %$_ );
56             }
57             };
58              
59             package Cfn::Resource::Properties::AWS::Glue::Classifier::JsonClassifierValue {
60 1     1   3635 use Moose;
  1         3  
  1         5  
61 1     1   6548 use MooseX::StrictConstructor;
  1         3  
  1         4  
62             extends 'Cfn::Value::TypedValue';
63            
64             has JsonPath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
65             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
66             }
67              
68             subtype 'Cfn::Resource::Properties::AWS::Glue::Classifier::GrokClassifier',
69             as 'Cfn::Value';
70              
71             coerce 'Cfn::Resource::Properties::AWS::Glue::Classifier::GrokClassifier',
72             from 'HashRef',
73             via {
74             if (my $f = Cfn::TypeLibrary::try_function($_)) {
75             return $f
76             } else {
77             return Cfn::Resource::Properties::AWS::Glue::Classifier::GrokClassifierValue->new( %$_ );
78             }
79             };
80              
81             package Cfn::Resource::Properties::AWS::Glue::Classifier::GrokClassifierValue {
82 1     1   3361 use Moose;
  1         3  
  1         6  
83 1     1   6528 use MooseX::StrictConstructor;
  1         3  
  1         6  
84             extends 'Cfn::Value::TypedValue';
85            
86             has Classification => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
87             has CustomPatterns => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
88             has GrokPattern => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
89             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
90             }
91              
92             subtype 'Cfn::Resource::Properties::AWS::Glue::Classifier::CsvClassifier',
93             as 'Cfn::Value';
94              
95             coerce 'Cfn::Resource::Properties::AWS::Glue::Classifier::CsvClassifier',
96             from 'HashRef',
97             via {
98             if (my $f = Cfn::TypeLibrary::try_function($_)) {
99             return $f
100             } else {
101             return Cfn::Resource::Properties::AWS::Glue::Classifier::CsvClassifierValue->new( %$_ );
102             }
103             };
104              
105             package Cfn::Resource::Properties::AWS::Glue::Classifier::CsvClassifierValue {
106 1     1   3397 use Moose;
  1         3  
  1         6  
107 1     1   6641 use MooseX::StrictConstructor;
  1         3  
  1         7  
108             extends 'Cfn::Value::TypedValue';
109            
110             has AllowSingleColumn => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
111             has ContainsHeader => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
112             has Delimiter => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
113             has DisableValueTrimming => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
114             has Header => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
115             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
116             has QuoteSymbol => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
117             }
118              
119             package Cfn::Resource::Properties::AWS::Glue::Classifier {
120 1     1   3458 use Moose;
  1         2  
  1         7  
121 1     1   6523 use MooseX::StrictConstructor;
  1         2  
  1         6  
122             extends 'Cfn::Resource::Properties';
123            
124             has CsvClassifier => (isa => 'Cfn::Resource::Properties::AWS::Glue::Classifier::CsvClassifier', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
125             has GrokClassifier => (isa => 'Cfn::Resource::Properties::AWS::Glue::Classifier::GrokClassifier', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
126             has JsonClassifier => (isa => 'Cfn::Resource::Properties::AWS::Glue::Classifier::JsonClassifier', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
127             has XMLClassifier => (isa => 'Cfn::Resource::Properties::AWS::Glue::Classifier::XMLClassifier', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
128             }
129              
130             1;