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 18.4.0
2 1     1   744 use Moose::Util::TypeConstraints;
  1         2  
  1         13  
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   2304 use Moose;
  1         2  
  1         8  
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 1151 [ '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              
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::Object::AWS::Glue::Classifier::XMLClassifier->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::Object::AWS::Glue::Classifier::XMLClassifier {
37 1     1   7766 use Moose;
  1         3  
  1         6  
38 1     1   6648 use MooseX::StrictConstructor;
  1         4  
  1         14  
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::Object::AWS::Glue::Classifier::JsonClassifier->new( %$_ );
56             }
57             };
58              
59             package Cfn::Resource::Properties::Object::AWS::Glue::Classifier::JsonClassifier {
60 1     1   3956 use Moose;
  1         3  
  1         7  
61 1     1   6877 use MooseX::StrictConstructor;
  1         3  
  1         5  
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::Object::AWS::Glue::Classifier::GrokClassifier->new( %$_ );
78             }
79             };
80              
81             package Cfn::Resource::Properties::Object::AWS::Glue::Classifier::GrokClassifier {
82 1     1   3486 use Moose;
  1         3  
  1         6  
83 1     1   6579 use MooseX::StrictConstructor;
  1         2  
  1         5  
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::Object::AWS::Glue::Classifier::CsvClassifier->new( %$_ );
102             }
103             };
104              
105             package Cfn::Resource::Properties::Object::AWS::Glue::Classifier::CsvClassifier {
106 1     1   3391 use Moose;
  1         12  
  1         9  
107 1     1   6641 use MooseX::StrictConstructor;
  1         2  
  1         5  
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   3465 use Moose;
  1         4  
  1         5  
121 1     1   7051 use MooseX::StrictConstructor;
  1         2  
  1         5  
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;
131             ### main pod documentation begin ###
132              
133             =encoding UTF-8
134              
135             =head1 NAME
136              
137             Cfn::Resource::AWS::Glue::Classifier - Cfn resource for AWS::Glue::Classifier
138              
139             =head1 DESCRIPTION
140              
141             This module implements a Perl module that represents the CloudFormation object AWS::Glue::Classifier.
142              
143             See L<Cfn> for more information on how to use it.
144              
145             =head1 AUTHOR
146              
147             Jose Luis Martinez
148             CAPSiDE
149             jlmartinez@capside.com
150              
151             =head1 COPYRIGHT and LICENSE
152              
153             Copyright (c) 2013 by CAPSiDE
154             This code is distributed under the Apache 2 License. The full text of the
155             license can be found in the LICENSE file included with this module.
156              
157             =cut