Cfn/Resource/AWS/Glue/Trigger.pm

filter: Statementstmt 76.5% 88 / 115 Branchbran 0.0% 0 / 16 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 51.8% 14 / 27 Podpod 0.0% 0 / 2 totaltotal 63.7% 102 / 160 CC 9 SCAR 12.1
CC
9
Cov
67%
__ANON__
6.0
__ANON__
6.0
__ANON__
6.0
CRAP 3.4
« Cfn/Resource/AWS/SageMaker/EndpointConfig.pm ↑ Summary Cfn/Resource/AWS/ECS/TaskSet.pm »
1 # AWS::Glue::Trigger generated from spec 18.4.0
2 1 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 coerce 'Cfn::Resource::Properties::AWS::Glue::Trigger',
5 from 'HashRef',
6 0 ▶ via { Cfn::Resource::Properties::AWS::Glue::Trigger->new( %$_ ) };
Subroutine __ANON__: not called CC=1 SCAR=1.2
7  
8 1 package Cfn::Resource::AWS::Glue::Trigger {
9 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 extends 'Cfn::Resource';
11 1 has Properties => (isa => 'Cfn::Resource::Properties::AWS::Glue::Trigger', is => 'rw', coerce => 1);
12
13 sub AttributeList {
14 1 ▶ [ ]
Subroutine AttributeList: called CC=1 SCAR=0.0
Pod undocumented
15 }
16 sub supported_regions {
17 1 ▶ [ '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' ]
Subroutine supported_regions: called CC=1 SCAR=0.0
Pod undocumented
18 }
19 }
20  
21  
22  
23 1 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 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
30 0 return $f
31 } else {
32 0 return Cfn::Resource::Properties::Object::AWS::Glue::Trigger::NotificationProperty->new( %$_ );
33 }
34 1 };
35  
36 1 package Cfn::Resource::Properties::Object::AWS::Glue::Trigger::NotificationProperty {
37 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
38 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
39 1 extends 'Cfn::Value::TypedValue';
40
41 1 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 0 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 0 0 0
46 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
47  
48 coerce 'ArrayOfCfn::Resource::Properties::AWS::Glue::Trigger::Condition',
49 from 'HashRef',
50 via {
51 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
52 0 return $f
53 } else {
54 0 die 'Only accepts functions';
55 }
56 },
57 from 'ArrayRef',
58 via {
59 Cfn::Value::Array->new(Value => [
60 map {
61 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Glue::Trigger::Condition')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
62 } @$_
63 ]);
64 1 };
65  
66 1 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 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
73 0 return $f
74 } else {
75 0 return Cfn::Resource::Properties::Object::AWS::Glue::Trigger::Condition->new( %$_ );
76 }
77 1 };
78  
79 1 package Cfn::Resource::Properties::Object::AWS::Glue::Trigger::Condition {
80 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
81 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
82 1 extends 'Cfn::Value::TypedValue';
83
84 1 has CrawlerName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
85 1 has CrawlState => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
86 1 has JobName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
87 1 has LogicalOperator => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
88 1 has State => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
89 }
90  
91 1 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 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
98 0 return $f
99 } else {
100 0 return Cfn::Resource::Properties::Object::AWS::Glue::Trigger::Predicate->new( %$_ );
101 }
102 1 };
103  
104 1 package Cfn::Resource::Properties::Object::AWS::Glue::Trigger::Predicate {
105 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
106 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
107 1 extends 'Cfn::Value::TypedValue';
108
109 1 has Conditions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Glue::Trigger::Condition', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
110 1 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 0 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 0 0 0
115 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
116  
117 coerce 'ArrayOfCfn::Resource::Properties::AWS::Glue::Trigger::Action',
118 from 'HashRef',
119 via {
120 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
121 0 return $f
122 } else {
123 0 die 'Only accepts functions';
124 }
125 },
126 from 'ArrayRef',
127 via {
128 Cfn::Value::Array->new(Value => [
129 map {
130 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Glue::Trigger::Action')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
131 } @$_
132 ]);
133 1 };
134  
135 1 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 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
142 0 return $f
143 } else {
144 0 return Cfn::Resource::Properties::Object::AWS::Glue::Trigger::Action->new( %$_ );
145 }
146 1 };
147  
148 1 package Cfn::Resource::Properties::Object::AWS::Glue::Trigger::Action {
149 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
150 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
151 1 extends 'Cfn::Value::TypedValue';
152
153 1 has Arguments => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
154 1 has CrawlerName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
155 1 has JobName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
156 1 has NotificationProperty => (isa => 'Cfn::Resource::Properties::AWS::Glue::Trigger::NotificationProperty', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
157 1 has SecurityConfiguration => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
158 1 has Timeout => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
159 }
160  
161 1 package Cfn::Resource::Properties::AWS::Glue::Trigger {
162 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
163 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
164 1 extends 'Cfn::Resource::Properties';
165
166 1 has Actions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Glue::Trigger::Action', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
167 1 has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
168 1 has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
169 1 has Predicate => (isa => 'Cfn::Resource::Properties::AWS::Glue::Trigger::Predicate', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
170 1 has Schedule => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
171 1 has StartOnCreation => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
172 1 has Tags => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
173 1 has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
174 1 has WorkflowName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
175 }
176  
177 1 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
« Cfn/Resource/AWS/SageMaker/EndpointConfig.pm ↑ Summary Cfn/Resource/AWS/ECS/TaskSet.pm »