Cfn/Resource/AWS/Glue/Trigger.pm untested

filter: Statementstmt 0.0% 0 / 140 Branchbran 0.0% 0 / 12 Conditioncond 0.0% 0 / 6 MC/DCmcdc 0.0% 0 / 4 Subroutinesub 0.0% 0 / 14 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 178 CC 1 SCAR 6.9
CC
1
Cov
0%
AttributeList
2.0
supported_regions
2.0
BEGIN
2.0
CRAP 2.0
1 # AWS::Glue::Trigger generated from spec 18.4.0
2 use Moose::Util::TypeConstraints;
3  
4 coerce 'Cfn::Resource::Properties::AWS::Glue::Trigger',
5 from 'HashRef',
6 via { Cfn::Resource::Properties::AWS::Glue::Trigger->new( %$_ ) };
7  
8 package Cfn::Resource::AWS::Glue::Trigger {
9 use Moose;
10 extends 'Cfn::Resource';
11 has Properties => (isa => 'Cfn::Resource::Properties::AWS::Glue::Trigger', is => 'rw', coerce => 1);
12
13 sub AttributeList {
14 [ ]
15 }
16 sub supported_regions {
17 [ '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::Trigger::NotificationProperty',
24 as 'Cfn::Value';
25  
26 coerce 'Cfn::Resource::Properties::AWS::Glue::Trigger::NotificationProperty',
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::Trigger::NotificationProperty->new( %$_ );
33 }
34 };
35  
36 package Cfn::Resource::Properties::Object::AWS::Glue::Trigger::NotificationProperty {
37 use Moose;
38 use MooseX::StrictConstructor;
39 extends 'Cfn::Value::TypedValue';
40
41 has NotifyDelayAfter => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42 }
43 subtype 'ArrayOfCfn::Resource::Properties::AWS::Glue::Trigger::Condition',
44 as 'Cfn::Value',
45 where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
46 message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
47  
48 coerce 'ArrayOfCfn::Resource::Properties::AWS::Glue::Trigger::Condition',
49 from 'HashRef',
50 via {
51 if (my $f = Cfn::TypeLibrary::try_function($_)) {
52 return $f
53 } else {
54 die 'Only accepts functions';
55 }
56 },
57 from 'ArrayRef',
58 via {
59 Cfn::Value::Array->new(Value => [
60 map {
61 Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Glue::Trigger::Condition')->coerce($_)
62 } @$_
63 ]);
64 };
65  
66 subtype 'Cfn::Resource::Properties::AWS::Glue::Trigger::Condition',
67 as 'Cfn::Value';
68  
69 coerce 'Cfn::Resource::Properties::AWS::Glue::Trigger::Condition',
70 from 'HashRef',
71 via {
72 if (my $f = Cfn::TypeLibrary::try_function($_)) {
73 return $f
74 } else {
75 return Cfn::Resource::Properties::Object::AWS::Glue::Trigger::Condition->new( %$_ );
76 }
77 };
78  
79 package Cfn::Resource::Properties::Object::AWS::Glue::Trigger::Condition {
80 use Moose;
81 use MooseX::StrictConstructor;
82 extends 'Cfn::Value::TypedValue';
83
84 has CrawlerName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
85 has CrawlState => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
86 has JobName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
87 has LogicalOperator => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
88 has State => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
89 }
90  
91 subtype 'Cfn::Resource::Properties::AWS::Glue::Trigger::Predicate',
92 as 'Cfn::Value';
93  
94 coerce 'Cfn::Resource::Properties::AWS::Glue::Trigger::Predicate',
95 from 'HashRef',
96 via {
97 if (my $f = Cfn::TypeLibrary::try_function($_)) {
98 return $f
99 } else {
100 return Cfn::Resource::Properties::Object::AWS::Glue::Trigger::Predicate->new( %$_ );
101 }
102 };
103  
104 package Cfn::Resource::Properties::Object::AWS::Glue::Trigger::Predicate {
105 use Moose;
106 use MooseX::StrictConstructor;
107 extends 'Cfn::Value::TypedValue';
108
109 has Conditions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Glue::Trigger::Condition', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
110 has Logical => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
111 }
112 subtype 'ArrayOfCfn::Resource::Properties::AWS::Glue::Trigger::Action',
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::Trigger::Action',
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::Trigger::Action')->coerce($_)
131 } @$_
132 ]);
133 };
134  
135 subtype 'Cfn::Resource::Properties::AWS::Glue::Trigger::Action',
136 as 'Cfn::Value';
137  
138 coerce 'Cfn::Resource::Properties::AWS::Glue::Trigger::Action',
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::Trigger::Action->new( %$_ );
145 }
146 };
147  
148 package Cfn::Resource::Properties::Object::AWS::Glue::Trigger::Action {
149 use Moose;
150 use MooseX::StrictConstructor;
151 extends 'Cfn::Value::TypedValue';
152
153 has Arguments => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
154 has CrawlerName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
155 has JobName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
156 has NotificationProperty => (isa => 'Cfn::Resource::Properties::AWS::Glue::Trigger::NotificationProperty', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
157 has SecurityConfiguration => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
158 has Timeout => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
159 }
160  
161 package Cfn::Resource::Properties::AWS::Glue::Trigger {
162 use Moose;
163 use MooseX::StrictConstructor;
164 extends 'Cfn::Resource::Properties';
165
166 has Actions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Glue::Trigger::Action', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
167 has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
168 has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
169 has Predicate => (isa => 'Cfn::Resource::Properties::AWS::Glue::Trigger::Predicate', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
170 has Schedule => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
171 has StartOnCreation => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
172 has Tags => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
173 has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
174 has WorkflowName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
175 }
176  
177 1;
178 ### main pod documentation begin ###
179  
180 =encoding UTF-8
181  
182 =head1 NAME
183  
184 Cfn::Resource::AWS::Glue::Trigger - Cfn resource for AWS::Glue::Trigger
185  
186 =head1 DESCRIPTION
187  
188 This module implements a Perl module that represents the CloudFormation object AWS::Glue::Trigger.
189  
190 See L<Cfn> for more information on how to use it.
191  
192 =head1 AUTHOR
193  
194 Jose Luis Martinez
195 CAPSiDE
196 jlmartinez@capside.com
197  
198 =head1 COPYRIGHT and LICENSE
199  
200 Copyright (c) 2013 by CAPSiDE
201 This code is distributed under the Apache 2 License. The full text of the
202 license can be found in the LICENSE file included with this module.
203  
204 =cut