File Coverage

blib/lib/Cfn/Resource/AWS/Glue/Trigger.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::Trigger generated from spec 18.4.0
2 1     1   572 use Moose::Util::TypeConstraints;
  1         4  
  1         10  
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 1     1   2001 use Moose;
  1         10  
  1         7  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::Glue::Trigger', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 5 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1156 [ '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 1     1   7188 use Moose;
  1         4  
  1         6  
38 1     1   6563 use MooseX::StrictConstructor;
  1         3  
  1         15  
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 1     1   3791 use Moose;
  1         3  
  1         7  
81 1     1   6924 use MooseX::StrictConstructor;
  1         2  
  1         6  
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 1     1   3449 use Moose;
  1         5  
  1         6  
106 1     1   6611 use MooseX::StrictConstructor;
  1         3  
  1         4  
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 1     1   3677 use Moose;
  1         4  
  1         5  
150 1     1   6849 use MooseX::StrictConstructor;
  1         4  
  1         5  
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 1     1   3280 use Moose;
  1         6  
  1         6  
163 1     1   6645 use MooseX::StrictConstructor;
  1         3  
  1         5  
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