File Coverage

blib/lib/Cfn/Resource/AWS/Events/Rule.pm
Criterion Covered Total %
statement 86 86 100.0
branch n/a
condition n/a
subroutine 30 30 100.0
pod 0 2 0.0
total 116 118 98.3


line stmt bran cond sub pod time code
1             # AWS::Events::Rule generated from spec 7.4.0
2 2     2   1291 use Moose::Util::TypeConstraints;
  2         7  
  2         23  
3              
4             coerce 'Cfn::Resource::Properties::AWS::Events::Rule',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::Events::Rule->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::Events::Rule {
9 2     2   4139 use Moose;
  2         9  
  2         17  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 5 [ 'Arn' ]
15             }
16             sub supported_regions {
17 1     1 0 1481 [ '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-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             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             via {
29             if (my $f = Cfn::TypeLibrary::try_function($_)) {
30             return $f
31             } else {
32             return Cfn::Resource::Properties::AWS::Events::Rule::AwsVpcConfigurationValue->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::AWS::Events::Rule::AwsVpcConfigurationValue {
37 2     2   14132 use Moose;
  2         13  
  2         14  
38 2     2   13416 use MooseX::StrictConstructor;
  2         5  
  2         18  
39             extends 'Cfn::Value::TypedValue';
40            
41             has AssignPublicIp => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42             has SecurityGroups => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43             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             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
48             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
49              
50             coerce 'ArrayOfCfn::Resource::Properties::AWS::Events::Rule::RunCommandTarget',
51             from 'HashRef',
52             via {
53             if (my $f = Cfn::TypeLibrary::try_function($_)) {
54             return $f
55             } else {
56             die 'Only accepts functions';
57             }
58             },
59             from 'ArrayRef',
60             via {
61             Cfn::Value::Array->new(Value => [
62             map {
63             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Events::Rule::RunCommandTarget')->coerce($_)
64             } @$_
65             ]);
66             };
67              
68             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             via {
74             if (my $f = Cfn::TypeLibrary::try_function($_)) {
75             return $f
76             } else {
77             return Cfn::Resource::Properties::AWS::Events::Rule::RunCommandTargetValue->new( %$_ );
78             }
79             };
80              
81             package Cfn::Resource::Properties::AWS::Events::Rule::RunCommandTargetValue {
82 2     2   7434 use Moose;
  2         5  
  2         11  
83 2     2   12953 use MooseX::StrictConstructor;
  2         7  
  2         12  
84             extends 'Cfn::Value::TypedValue';
85            
86             has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
87             has Values => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
88             }
89              
90             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             via {
96             if (my $f = Cfn::TypeLibrary::try_function($_)) {
97             return $f
98             } else {
99             return Cfn::Resource::Properties::AWS::Events::Rule::NetworkConfigurationValue->new( %$_ );
100             }
101             };
102              
103             package Cfn::Resource::Properties::AWS::Events::Rule::NetworkConfigurationValue {
104 2     2   6659 use Moose;
  2         5  
  2         11  
105 2     2   12979 use MooseX::StrictConstructor;
  2         6  
  2         13  
106             extends 'Cfn::Value::TypedValue';
107            
108             has AwsVpcConfiguration => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::AwsVpcConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
109             }
110              
111             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             via {
117             if (my $f = Cfn::TypeLibrary::try_function($_)) {
118             return $f
119             } else {
120             return Cfn::Resource::Properties::AWS::Events::Rule::BatchRetryStrategyValue->new( %$_ );
121             }
122             };
123              
124             package Cfn::Resource::Properties::AWS::Events::Rule::BatchRetryStrategyValue {
125 2     2   6614 use Moose;
  2         7  
  2         12  
126 2     2   13083 use MooseX::StrictConstructor;
  2         8  
  2         11  
127             extends 'Cfn::Value::TypedValue';
128            
129             has Attempts => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
130             }
131              
132             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             via {
138             if (my $f = Cfn::TypeLibrary::try_function($_)) {
139             return $f
140             } else {
141             return Cfn::Resource::Properties::AWS::Events::Rule::BatchArrayPropertiesValue->new( %$_ );
142             }
143             };
144              
145             package Cfn::Resource::Properties::AWS::Events::Rule::BatchArrayPropertiesValue {
146 2     2   6698 use Moose;
  2         7  
  2         14  
147 2     2   13348 use MooseX::StrictConstructor;
  2         4  
  2         11  
148             extends 'Cfn::Value::TypedValue';
149            
150             has Size => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
151             }
152              
153             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             via {
159             if (my $f = Cfn::TypeLibrary::try_function($_)) {
160             return $f
161             } else {
162             return Cfn::Resource::Properties::AWS::Events::Rule::SqsParametersValue->new( %$_ );
163             }
164             };
165              
166             package Cfn::Resource::Properties::AWS::Events::Rule::SqsParametersValue {
167 2     2   6680 use Moose;
  2         6  
  2         22  
168 2     2   13075 use MooseX::StrictConstructor;
  2         6  
  2         11  
169             extends 'Cfn::Value::TypedValue';
170            
171             has MessageGroupId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
172             }
173              
174             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             via {
180             if (my $f = Cfn::TypeLibrary::try_function($_)) {
181             return $f
182             } else {
183             return Cfn::Resource::Properties::AWS::Events::Rule::RunCommandParametersValue->new( %$_ );
184             }
185             };
186              
187             package Cfn::Resource::Properties::AWS::Events::Rule::RunCommandParametersValue {
188 2     2   6669 use Moose;
  2         6  
  2         20  
189 2     2   13055 use MooseX::StrictConstructor;
  2         6  
  2         11  
190             extends 'Cfn::Value::TypedValue';
191            
192             has RunCommandTargets => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Events::Rule::RunCommandTarget', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
193             }
194              
195             subtype 'Cfn::Resource::Properties::AWS::Events::Rule::KinesisParameters',
196             as 'Cfn::Value';
197              
198             coerce 'Cfn::Resource::Properties::AWS::Events::Rule::KinesisParameters',
199             from 'HashRef',
200             via {
201             if (my $f = Cfn::TypeLibrary::try_function($_)) {
202             return $f
203             } else {
204             return Cfn::Resource::Properties::AWS::Events::Rule::KinesisParametersValue->new( %$_ );
205             }
206             };
207              
208             package Cfn::Resource::Properties::AWS::Events::Rule::KinesisParametersValue {
209 2     2   6705 use Moose;
  2         7  
  2         11  
210 2     2   12937 use MooseX::StrictConstructor;
  2         7  
  2         12  
211             extends 'Cfn::Value::TypedValue';
212            
213             has PartitionKeyPath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
214             }
215              
216             subtype 'Cfn::Resource::Properties::AWS::Events::Rule::InputTransformer',
217             as 'Cfn::Value';
218              
219             coerce 'Cfn::Resource::Properties::AWS::Events::Rule::InputTransformer',
220             from 'HashRef',
221             via {
222             if (my $f = Cfn::TypeLibrary::try_function($_)) {
223             return $f
224             } else {
225             return Cfn::Resource::Properties::AWS::Events::Rule::InputTransformerValue->new( %$_ );
226             }
227             };
228              
229             package Cfn::Resource::Properties::AWS::Events::Rule::InputTransformerValue {
230 2     2   6748 use Moose;
  2         5  
  2         12  
231 2     2   13046 use MooseX::StrictConstructor;
  2         7  
  2         11  
232             extends 'Cfn::Value::TypedValue';
233            
234             has InputPathsMap => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
235             has InputTemplate => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
236             }
237              
238             subtype 'Cfn::Resource::Properties::AWS::Events::Rule::EcsParameters',
239             as 'Cfn::Value';
240              
241             coerce 'Cfn::Resource::Properties::AWS::Events::Rule::EcsParameters',
242             from 'HashRef',
243             via {
244             if (my $f = Cfn::TypeLibrary::try_function($_)) {
245             return $f
246             } else {
247             return Cfn::Resource::Properties::AWS::Events::Rule::EcsParametersValue->new( %$_ );
248             }
249             };
250              
251             package Cfn::Resource::Properties::AWS::Events::Rule::EcsParametersValue {
252 2     2   6625 use Moose;
  2         6  
  2         11  
253 2     2   12979 use MooseX::StrictConstructor;
  2         6  
  2         13  
254             extends 'Cfn::Value::TypedValue';
255            
256             has Group => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
257             has LaunchType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
258             has NetworkConfiguration => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::NetworkConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
259             has PlatformVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
260             has TaskCount => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
261             has TaskDefinitionArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
262             }
263              
264             subtype 'Cfn::Resource::Properties::AWS::Events::Rule::BatchParameters',
265             as 'Cfn::Value';
266              
267             coerce 'Cfn::Resource::Properties::AWS::Events::Rule::BatchParameters',
268             from 'HashRef',
269             via {
270             if (my $f = Cfn::TypeLibrary::try_function($_)) {
271             return $f
272             } else {
273             return Cfn::Resource::Properties::AWS::Events::Rule::BatchParametersValue->new( %$_ );
274             }
275             };
276              
277             package Cfn::Resource::Properties::AWS::Events::Rule::BatchParametersValue {
278 2     2   6835 use Moose;
  2         5  
  2         10  
279 2     2   13049 use MooseX::StrictConstructor;
  2         5  
  2         13  
280             extends 'Cfn::Value::TypedValue';
281            
282             has ArrayProperties => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::BatchArrayProperties', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
283             has JobDefinition => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
284             has JobName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
285             has RetryStrategy => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::BatchRetryStrategy', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
286             }
287             subtype 'ArrayOfCfn::Resource::Properties::AWS::Events::Rule::Target',
288             as 'Cfn::Value',
289             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
290             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
291              
292             coerce 'ArrayOfCfn::Resource::Properties::AWS::Events::Rule::Target',
293             from 'HashRef',
294             via {
295             if (my $f = Cfn::TypeLibrary::try_function($_)) {
296             return $f
297             } else {
298             die 'Only accepts functions';
299             }
300             },
301             from 'ArrayRef',
302             via {
303             Cfn::Value::Array->new(Value => [
304             map {
305             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Events::Rule::Target')->coerce($_)
306             } @$_
307             ]);
308             };
309              
310             subtype 'Cfn::Resource::Properties::AWS::Events::Rule::Target',
311             as 'Cfn::Value';
312              
313             coerce 'Cfn::Resource::Properties::AWS::Events::Rule::Target',
314             from 'HashRef',
315             via {
316             if (my $f = Cfn::TypeLibrary::try_function($_)) {
317             return $f
318             } else {
319             return Cfn::Resource::Properties::AWS::Events::Rule::TargetValue->new( %$_ );
320             }
321             };
322              
323             package Cfn::Resource::Properties::AWS::Events::Rule::TargetValue {
324 2     2   7185 use Moose;
  2         6  
  2         11  
325 2     2   12959 use MooseX::StrictConstructor;
  2         7  
  2         12  
326             extends 'Cfn::Value::TypedValue';
327            
328             has Arn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
329             has BatchParameters => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::BatchParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
330             has EcsParameters => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::EcsParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
331             has Id => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
332             has Input => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
333             has InputPath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
334             has InputTransformer => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::InputTransformer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
335             has KinesisParameters => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::KinesisParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
336             has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
337             has RunCommandParameters => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::RunCommandParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
338             has SqsParameters => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::SqsParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
339             }
340              
341             package Cfn::Resource::Properties::AWS::Events::Rule {
342 2     2   6804 use Moose;
  2         8  
  2         11  
343 2     2   13004 use MooseX::StrictConstructor;
  2         5  
  2         17  
344             extends 'Cfn::Resource::Properties';
345            
346             has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
347             has EventBusName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
348             has EventPattern => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
349             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
350             has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
351             has ScheduleExpression => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
352             has State => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
353             has Targets => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Events::Rule::Target', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
354             }
355              
356             1;