Cfn/Resource/AWS/Events/Rule.pm

filter: Statementstmt 80.7% 247 / 306 Branchbran 5.0% 2 / 40 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 63.4% 40 / 63 Podpod 0.0% 0 / 2 totaltotal 70.3% 289 / 411 CC 21 SCAR 11.8
CC
21
Cov
72%
__ANON__
6.0
__ANON__
6.0
__ANON__
6.0
CRAP 3.3
« Cfn/Resource/AWS/ElasticLoadBalancingV2/ListenerRule.pm ↑ Summary Cfn/Resource/AWS/OpsWorks/Layer.pm »
1 # AWS::Events::Rule generated from spec 20.1.0
2 1 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 coerce 'Cfn::Resource::Properties::AWS::Events::Rule',
5 from 'HashRef',
6 2 ▶ via { Cfn::Resource::Properties::AWS::Events::Rule->new( %$_ ) };
Subroutine __ANON__: called CC=1 SCAR=0.0
7  
8 1 package Cfn::Resource::AWS::Events::Rule {
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::Events::Rule', is => 'rw', coerce => 1);
12
13 0 ▶ sub AttributeList {
Subroutine AttributeList: not called CC=1 SCAR=6.9
Pod undocumented
14 0 [ 'Arn' ]
15 }
16 0 ▶ sub supported_regions {
Subroutine supported_regions: not called CC=1 SCAR=6.9
Pod undocumented
17 0 [ 'af-south-1','ap-east-1','ap-northeast-1','ap-northeast-2','ap-northeast-3','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','cn-north-1','cn-northwest-1','eu-central-1','eu-north-1','eu-south-1','eu-west-1','eu-west-2','eu-west-3','me-south-1','sa-east-1','us-east-1','us-east-2','us-gov-east-1','us-gov-west-1','us-west-1','us-west-2' ]
18 }
19 }
20  
21  
22  
23 1 subtype 'Cfn::Resource::Properties::AWS::Events::Rule::AwsVpcConfiguration',
24 as 'Cfn::Value';
25  
26 coerce 'Cfn::Resource::Properties::AWS::Events::Rule::AwsVpcConfiguration',
27 from 'HashRef',
28 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
29 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
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::Events::Rule::AwsVpcConfiguration->new( %$_ );
33 }
34 1 };
35  
36 1 package Cfn::Resource::Properties::Object::AWS::Events::Rule::AwsVpcConfiguration {
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 AssignPublicIp => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42 1 has SecurityGroups => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43 1 has Subnets => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
44 }
45 subtype 'ArrayOfCfn::Resource::Properties::AWS::Events::Rule::RunCommandTarget',
46 as 'Cfn::Value',
47 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
48 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
49  
50 coerce 'ArrayOfCfn::Resource::Properties::AWS::Events::Rule::RunCommandTarget',
51 from 'HashRef',
52 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
53 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
54 0 return $f
55 } else {
56 0 die 'Only accepts functions';
57 }
58 },
59 from 'ArrayRef',
60 0 ▶ via {
Subroutine __ANON__: not called CC=1 SCAR=6.9
61 Cfn::Value::Array->new(Value => [
62 map {
63 0 Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Events::Rule::RunCommandTarget')->coerce($_)
64 } @$_
65 ]);
66 1 };
67  
68 1 subtype 'Cfn::Resource::Properties::AWS::Events::Rule::RunCommandTarget',
69 as 'Cfn::Value';
70  
71 coerce 'Cfn::Resource::Properties::AWS::Events::Rule::RunCommandTarget',
72 from 'HashRef',
73 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
74 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
75 0 return $f
76 } else {
77 0 return Cfn::Resource::Properties::Object::AWS::Events::Rule::RunCommandTarget->new( %$_ );
78 }
79 1 };
80  
81 1 package Cfn::Resource::Properties::Object::AWS::Events::Rule::RunCommandTarget {
82 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
83 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
84 1 extends 'Cfn::Value::TypedValue';
85
86 1 has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
87 1 has Values => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
88 }
89  
90 1 subtype 'Cfn::Resource::Properties::AWS::Events::Rule::NetworkConfiguration',
91 as 'Cfn::Value';
92  
93 coerce 'Cfn::Resource::Properties::AWS::Events::Rule::NetworkConfiguration',
94 from 'HashRef',
95 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
96 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
97 0 return $f
98 } else {
99 0 return Cfn::Resource::Properties::Object::AWS::Events::Rule::NetworkConfiguration->new( %$_ );
100 }
101 1 };
102  
103 1 package Cfn::Resource::Properties::Object::AWS::Events::Rule::NetworkConfiguration {
104 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
105 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
106 1 extends 'Cfn::Value::TypedValue';
107
108 1 has AwsVpcConfiguration => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::AwsVpcConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
109 }
110  
111 1 subtype 'Cfn::Resource::Properties::AWS::Events::Rule::BatchRetryStrategy',
112 as 'Cfn::Value';
113  
114 coerce 'Cfn::Resource::Properties::AWS::Events::Rule::BatchRetryStrategy',
115 from 'HashRef',
116 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
117 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
118 0 return $f
119 } else {
120 0 return Cfn::Resource::Properties::Object::AWS::Events::Rule::BatchRetryStrategy->new( %$_ );
121 }
122 1 };
123  
124 1 package Cfn::Resource::Properties::Object::AWS::Events::Rule::BatchRetryStrategy {
125 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
126 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
127 1 extends 'Cfn::Value::TypedValue';
128
129 1 has Attempts => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
130 }
131  
132 1 subtype 'Cfn::Resource::Properties::AWS::Events::Rule::BatchArrayProperties',
133 as 'Cfn::Value';
134  
135 coerce 'Cfn::Resource::Properties::AWS::Events::Rule::BatchArrayProperties',
136 from 'HashRef',
137 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
138 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
139 0 return $f
140 } else {
141 0 return Cfn::Resource::Properties::Object::AWS::Events::Rule::BatchArrayProperties->new( %$_ );
142 }
143 1 };
144  
145 1 package Cfn::Resource::Properties::Object::AWS::Events::Rule::BatchArrayProperties {
146 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
147 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
148 1 extends 'Cfn::Value::TypedValue';
149
150 1 has Size => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
151 }
152  
153 1 subtype 'Cfn::Resource::Properties::AWS::Events::Rule::SqsParameters',
154 as 'Cfn::Value';
155  
156 coerce 'Cfn::Resource::Properties::AWS::Events::Rule::SqsParameters',
157 from 'HashRef',
158 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
159 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
160 0 return $f
161 } else {
162 0 return Cfn::Resource::Properties::Object::AWS::Events::Rule::SqsParameters->new( %$_ );
163 }
164 1 };
165  
166 1 package Cfn::Resource::Properties::Object::AWS::Events::Rule::SqsParameters {
167 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
168 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
169 1 extends 'Cfn::Value::TypedValue';
170
171 1 has MessageGroupId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
172 }
173  
174 1 subtype 'Cfn::Resource::Properties::AWS::Events::Rule::RunCommandParameters',
175 as 'Cfn::Value';
176  
177 coerce 'Cfn::Resource::Properties::AWS::Events::Rule::RunCommandParameters',
178 from 'HashRef',
179 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
180 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
181 0 return $f
182 } else {
183 0 return Cfn::Resource::Properties::Object::AWS::Events::Rule::RunCommandParameters->new( %$_ );
184 }
185 1 };
186  
187 1 package Cfn::Resource::Properties::Object::AWS::Events::Rule::RunCommandParameters {
188 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
189 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
190 1 extends 'Cfn::Value::TypedValue';
191
192 1 has RunCommandTargets => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Events::Rule::RunCommandTarget', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
193 }
194  
195 1 subtype 'Cfn::Resource::Properties::AWS::Events::Rule::RetryPolicy',
196 as 'Cfn::Value';
197  
198 coerce 'Cfn::Resource::Properties::AWS::Events::Rule::RetryPolicy',
199 from 'HashRef',
200 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
201 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
202 0 return $f
203 } else {
204 0 return Cfn::Resource::Properties::Object::AWS::Events::Rule::RetryPolicy->new( %$_ );
205 }
206 1 };
207  
208 1 package Cfn::Resource::Properties::Object::AWS::Events::Rule::RetryPolicy {
209 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
210 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
211 1 extends 'Cfn::Value::TypedValue';
212
213 1 has MaximumEventAgeInSeconds => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
214 1 has MaximumRetryAttempts => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
215 }
216  
217 1 subtype 'Cfn::Resource::Properties::AWS::Events::Rule::RedshiftDataParameters',
218 as 'Cfn::Value';
219  
220 coerce 'Cfn::Resource::Properties::AWS::Events::Rule::RedshiftDataParameters',
221 from 'HashRef',
222 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
223 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
224 0 return $f
225 } else {
226 0 return Cfn::Resource::Properties::Object::AWS::Events::Rule::RedshiftDataParameters->new( %$_ );
227 }
228 1 };
229  
230 1 package Cfn::Resource::Properties::Object::AWS::Events::Rule::RedshiftDataParameters {
231 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
232 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
233 1 extends 'Cfn::Value::TypedValue';
234
235 1 has Database => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
236 1 has DbUser => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
237 1 has SecretManagerArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
238 1 has Sql => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
239 1 has StatementName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
240 1 has WithEvent => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
241 }
242  
243 1 subtype 'Cfn::Resource::Properties::AWS::Events::Rule::KinesisParameters',
244 as 'Cfn::Value';
245  
246 coerce 'Cfn::Resource::Properties::AWS::Events::Rule::KinesisParameters',
247 from 'HashRef',
248 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
249 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
250 0 return $f
251 } else {
252 0 return Cfn::Resource::Properties::Object::AWS::Events::Rule::KinesisParameters->new( %$_ );
253 }
254 1 };
255  
256 1 package Cfn::Resource::Properties::Object::AWS::Events::Rule::KinesisParameters {
257 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
258 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
259 1 extends 'Cfn::Value::TypedValue';
260
261 1 has PartitionKeyPath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
262 }
263  
264 1 subtype 'Cfn::Resource::Properties::AWS::Events::Rule::InputTransformer',
265 as 'Cfn::Value';
266  
267 coerce 'Cfn::Resource::Properties::AWS::Events::Rule::InputTransformer',
268 from 'HashRef',
269 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
270 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
271 0 return $f
272 } else {
273 0 return Cfn::Resource::Properties::Object::AWS::Events::Rule::InputTransformer->new( %$_ );
274 }
275 1 };
276  
277 1 package Cfn::Resource::Properties::Object::AWS::Events::Rule::InputTransformer {
278 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
279 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
280 1 extends 'Cfn::Value::TypedValue';
281
282 1 has InputPathsMap => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
283 1 has InputTemplate => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
284 }
285  
286 1 subtype 'Cfn::Resource::Properties::AWS::Events::Rule::HttpParameters',
287 as 'Cfn::Value';
288  
289 coerce 'Cfn::Resource::Properties::AWS::Events::Rule::HttpParameters',
290 from 'HashRef',
291 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
292 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
293 0 return $f
294 } else {
295 0 return Cfn::Resource::Properties::Object::AWS::Events::Rule::HttpParameters->new( %$_ );
296 }
297 1 };
298  
299 1 package Cfn::Resource::Properties::Object::AWS::Events::Rule::HttpParameters {
300 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
301 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
302 1 extends 'Cfn::Value::TypedValue';
303
304 1 has HeaderParameters => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
305 1 has PathParameterValues => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
306 1 has QueryStringParameters => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
307 }
308  
309 1 subtype 'Cfn::Resource::Properties::AWS::Events::Rule::EcsParameters',
310 as 'Cfn::Value';
311  
312 coerce 'Cfn::Resource::Properties::AWS::Events::Rule::EcsParameters',
313 from 'HashRef',
314 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
315 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
316 0 return $f
317 } else {
318 0 return Cfn::Resource::Properties::Object::AWS::Events::Rule::EcsParameters->new( %$_ );
319 }
320 1 };
321  
322 1 package Cfn::Resource::Properties::Object::AWS::Events::Rule::EcsParameters {
323 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
324 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
325 1 extends 'Cfn::Value::TypedValue';
326
327 1 has Group => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
328 1 has LaunchType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
329 1 has NetworkConfiguration => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::NetworkConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
330 1 has PlatformVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
331 1 has TaskCount => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
332 1 has TaskDefinitionArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
333 }
334  
335 1 subtype 'Cfn::Resource::Properties::AWS::Events::Rule::DeadLetterConfig',
336 as 'Cfn::Value';
337  
338 coerce 'Cfn::Resource::Properties::AWS::Events::Rule::DeadLetterConfig',
339 from 'HashRef',
340 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
341 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
342 0 return $f
343 } else {
344 0 return Cfn::Resource::Properties::Object::AWS::Events::Rule::DeadLetterConfig->new( %$_ );
345 }
346 1 };
347  
348 1 package Cfn::Resource::Properties::Object::AWS::Events::Rule::DeadLetterConfig {
349 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
350 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
351 1 extends 'Cfn::Value::TypedValue';
352
353 1 has Arn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
354 }
355  
356 1 subtype 'Cfn::Resource::Properties::AWS::Events::Rule::BatchParameters',
357 as 'Cfn::Value';
358  
359 coerce 'Cfn::Resource::Properties::AWS::Events::Rule::BatchParameters',
360 from 'HashRef',
361 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
362 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
363 0 return $f
364 } else {
365 0 return Cfn::Resource::Properties::Object::AWS::Events::Rule::BatchParameters->new( %$_ );
366 }
367 1 };
368  
369 1 package Cfn::Resource::Properties::Object::AWS::Events::Rule::BatchParameters {
370 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
371 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
372 1 extends 'Cfn::Value::TypedValue';
373
374 1 has ArrayProperties => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::BatchArrayProperties', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
375 1 has JobDefinition => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
376 1 has JobName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
377 1 has RetryStrategy => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::BatchRetryStrategy', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
378 }
379 subtype 'ArrayOfCfn::Resource::Properties::AWS::Events::Rule::Target',
380 as 'Cfn::Value',
381 2 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 2 0 2
382 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
383  
384 coerce 'ArrayOfCfn::Resource::Properties::AWS::Events::Rule::Target',
385 from 'HashRef',
386 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
387 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
388 0 return $f
389 } else {
390 0 die 'Only accepts functions';
391 }
392 },
393 from 'ArrayRef',
394 2 ▶ via {
Subroutine __ANON__: called CC=1 SCAR=0.0
395 Cfn::Value::Array->new(Value => [
396 map {
397 2 Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Events::Rule::Target')->coerce($_)
398 } @$_
399 ]);
400 1 };
401  
402 1 subtype 'Cfn::Resource::Properties::AWS::Events::Rule::Target',
403 as 'Cfn::Value';
404  
405 coerce 'Cfn::Resource::Properties::AWS::Events::Rule::Target',
406 from 'HashRef',
407 2 ▶ via {
Subroutine __ANON__: called CC=2 SCAR=8.1
408 2 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 2 2
409 0 return $f
410 } else {
411 2 return Cfn::Resource::Properties::Object::AWS::Events::Rule::Target->new( %$_ );
412 }
413 1 };
414  
415 1 package Cfn::Resource::Properties::Object::AWS::Events::Rule::Target {
416 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
417 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
418 1 extends 'Cfn::Value::TypedValue';
419
420 1 has Arn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
421 1 has BatchParameters => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::BatchParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
422 1 has DeadLetterConfig => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::DeadLetterConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
423 1 has EcsParameters => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::EcsParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
424 1 has HttpParameters => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::HttpParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
425 1 has Id => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
426 1 has Input => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
427 1 has InputPath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
428 1 has InputTransformer => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::InputTransformer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
429 1 has KinesisParameters => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::KinesisParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
430 1 has RedshiftDataParameters => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::RedshiftDataParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
431 1 has RetryPolicy => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::RetryPolicy', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
432 1 has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
433 1 has RunCommandParameters => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::RunCommandParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
434 1 has SqsParameters => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::SqsParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
435 }
436  
437 1 package Cfn::Resource::Properties::AWS::Events::Rule {
438 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
439 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
440 1 extends 'Cfn::Resource::Properties';
441
442 1 has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
443 1 has EventBusName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
444 1 has EventPattern => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
445 1 has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
446 1 has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
447 1 has ScheduleExpression => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
448 1 has State => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
449 1 has Targets => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Events::Rule::Target', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
450 }
451  
452 1 1;
453 ### main pod documentation begin ###
454  
455 =encoding UTF-8
456  
457 =head1 NAME
458  
459 Cfn::Resource::AWS::Events::Rule - Cfn resource for AWS::Events::Rule
460  
461 =head1 DESCRIPTION
462  
463 This module implements a Perl module that represents the CloudFormation object AWS::Events::Rule.
464  
465 See L<Cfn> for more information on how to use it.
466  
467 =head1 AUTHOR
468  
469 Jose Luis Martinez
470 CAPSiDE
471 jlmartinez@capside.com
472  
473 =head1 COPYRIGHT and LICENSE
474  
475 Copyright (c) 2013 by CAPSiDE
476 This code is distributed under the Apache 2 License. The full text of the
477 license can be found in the LICENSE file included with this module.
478  
479 =cut
« Cfn/Resource/AWS/ElasticLoadBalancingV2/ListenerRule.pm ↑ Summary Cfn/Resource/AWS/OpsWorks/Layer.pm »