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 6.3.0
2 1     1   753 use Moose::Util::TypeConstraints;
  1         2  
  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   2134 use Moose;
  1         3  
  1         9  
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 4 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1596 [ 'ap-northeast-1','ap-northeast-2','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-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::AWS::Glue::Trigger::NotificationPropertyValue->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::AWS::Glue::Trigger::NotificationPropertyValue {
37 1     1   7261 use Moose;
  1         3  
  1         5  
38 1     1   6553 use MooseX::StrictConstructor;
  1         3  
  1         12  
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::AWS::Glue::Trigger::ConditionValue->new( %$_ );
76             }
77             };
78              
79             package Cfn::Resource::Properties::AWS::Glue::Trigger::ConditionValue {
80 1     1   3755 use Moose;
  1         3  
  1         5  
81 1     1   6506 use MooseX::StrictConstructor;
  1         3  
  1         5  
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::AWS::Glue::Trigger::PredicateValue->new( %$_ );
101             }
102             };
103              
104             package Cfn::Resource::Properties::AWS::Glue::Trigger::PredicateValue {
105 1     1   3362 use Moose;
  1         5  
  1         6  
106 1     1   6462 use MooseX::StrictConstructor;
  1         2  
  1         5  
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::AWS::Glue::Trigger::ActionValue->new( %$_ );
145             }
146             };
147              
148             package Cfn::Resource::Properties::AWS::Glue::Trigger::ActionValue {
149 1     1   3530 use Moose;
  1         2  
  1         5  
150 1     1   6413 use MooseX::StrictConstructor;
  1         2  
  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   3300 use Moose;
  1         2  
  1         7  
163 1     1   6672 use MooseX::StrictConstructor;
  1         4  
  1         7  
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;