Cfn/Resource/AWS/SES/ReceiptRule.pm

filter: Statementstmt 80.9% 149 / 184 Branchbran 0.0% 0 / 22 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 63.1% 24 / 38 Podpod 0.0% 0 / 2 totaltotal 70.3% 173 / 246 CC 12 SCAR 11.8
CC
12
Cov
72%
__ANON__
6.0
__ANON__
6.0
__ANON__
6.0
CRAP 3.3
« Cfn/Resource/AWS/Greengrass/ResourceDefinitionVersion.pm ↑ Summary Cfn/Resource/AWS/Events/Rule.pm »
1 # AWS::SES::ReceiptRule 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::SES::ReceiptRule',
5 from 'HashRef',
6 0 ▶ via { Cfn::Resource::Properties::AWS::SES::ReceiptRule->new( %$_ ) };
Subroutine __ANON__: not called CC=1 SCAR=1.2
7  
8 1 package Cfn::Resource::AWS::SES::ReceiptRule {
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::SES::ReceiptRule', 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 ▶ [ 'eu-west-1','us-east-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::SES::ReceiptRule::WorkmailAction',
24 as 'Cfn::Value';
25  
26 coerce 'Cfn::Resource::Properties::AWS::SES::ReceiptRule::WorkmailAction',
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::SES::ReceiptRule::WorkmailAction->new( %$_ );
33 }
34 1 };
35  
36 1 package Cfn::Resource::Properties::Object::AWS::SES::ReceiptRule::WorkmailAction {
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 OrganizationArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42 1 has TopicArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43 }
44  
45 1 subtype 'Cfn::Resource::Properties::AWS::SES::ReceiptRule::StopAction',
46 as 'Cfn::Value';
47  
48 coerce 'Cfn::Resource::Properties::AWS::SES::ReceiptRule::StopAction',
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 return Cfn::Resource::Properties::Object::AWS::SES::ReceiptRule::StopAction->new( %$_ );
55 }
56 1 };
57  
58 1 package Cfn::Resource::Properties::Object::AWS::SES::ReceiptRule::StopAction {
59 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
60 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
61 1 extends 'Cfn::Value::TypedValue';
62
63 1 has Scope => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64 1 has TopicArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
65 }
66  
67 1 subtype 'Cfn::Resource::Properties::AWS::SES::ReceiptRule::SNSAction',
68 as 'Cfn::Value';
69  
70 coerce 'Cfn::Resource::Properties::AWS::SES::ReceiptRule::SNSAction',
71 from 'HashRef',
72 via {
73 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
74 0 return $f
75 } else {
76 0 return Cfn::Resource::Properties::Object::AWS::SES::ReceiptRule::SNSAction->new( %$_ );
77 }
78 1 };
79  
80 1 package Cfn::Resource::Properties::Object::AWS::SES::ReceiptRule::SNSAction {
81 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
82 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
83 1 extends 'Cfn::Value::TypedValue';
84
85 1 has Encoding => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
86 1 has TopicArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
87 }
88  
89 1 subtype 'Cfn::Resource::Properties::AWS::SES::ReceiptRule::S3Action',
90 as 'Cfn::Value';
91  
92 coerce 'Cfn::Resource::Properties::AWS::SES::ReceiptRule::S3Action',
93 from 'HashRef',
94 via {
95 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
96 0 return $f
97 } else {
98 0 return Cfn::Resource::Properties::Object::AWS::SES::ReceiptRule::S3Action->new( %$_ );
99 }
100 1 };
101  
102 1 package Cfn::Resource::Properties::Object::AWS::SES::ReceiptRule::S3Action {
103 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
104 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
105 1 extends 'Cfn::Value::TypedValue';
106
107 1 has BucketName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
108 1 has KmsKeyArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
109 1 has ObjectKeyPrefix => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
110 1 has TopicArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
111 }
112  
113 1 subtype 'Cfn::Resource::Properties::AWS::SES::ReceiptRule::LambdaAction',
114 as 'Cfn::Value';
115  
116 coerce 'Cfn::Resource::Properties::AWS::SES::ReceiptRule::LambdaAction',
117 from 'HashRef',
118 via {
119 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
120 0 return $f
121 } else {
122 0 return Cfn::Resource::Properties::Object::AWS::SES::ReceiptRule::LambdaAction->new( %$_ );
123 }
124 1 };
125  
126 1 package Cfn::Resource::Properties::Object::AWS::SES::ReceiptRule::LambdaAction {
127 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
128 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
129 1 extends 'Cfn::Value::TypedValue';
130
131 1 has FunctionArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
132 1 has InvocationType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
133 1 has TopicArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
134 }
135  
136 1 subtype 'Cfn::Resource::Properties::AWS::SES::ReceiptRule::BounceAction',
137 as 'Cfn::Value';
138  
139 coerce 'Cfn::Resource::Properties::AWS::SES::ReceiptRule::BounceAction',
140 from 'HashRef',
141 via {
142 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
143 0 return $f
144 } else {
145 0 return Cfn::Resource::Properties::Object::AWS::SES::ReceiptRule::BounceAction->new( %$_ );
146 }
147 1 };
148  
149 1 package Cfn::Resource::Properties::Object::AWS::SES::ReceiptRule::BounceAction {
150 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
151 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
152 1 extends 'Cfn::Value::TypedValue';
153
154 1 has Message => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
155 1 has Sender => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
156 1 has SmtpReplyCode => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
157 1 has StatusCode => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
158 1 has TopicArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
159 }
160  
161 1 subtype 'Cfn::Resource::Properties::AWS::SES::ReceiptRule::AddHeaderAction',
162 as 'Cfn::Value';
163  
164 coerce 'Cfn::Resource::Properties::AWS::SES::ReceiptRule::AddHeaderAction',
165 from 'HashRef',
166 via {
167 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
168 0 return $f
169 } else {
170 0 return Cfn::Resource::Properties::Object::AWS::SES::ReceiptRule::AddHeaderAction->new( %$_ );
171 }
172 1 };
173  
174 1 package Cfn::Resource::Properties::Object::AWS::SES::ReceiptRule::AddHeaderAction {
175 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
176 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
177 1 extends 'Cfn::Value::TypedValue';
178
179 1 has HeaderName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
180 1 has HeaderValue => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
181 }
182 subtype 'ArrayOfCfn::Resource::Properties::AWS::SES::ReceiptRule::Action',
183 as 'Cfn::Value',
184 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
185 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
186  
187 coerce 'ArrayOfCfn::Resource::Properties::AWS::SES::ReceiptRule::Action',
188 from 'HashRef',
189 via {
190 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
191 0 return $f
192 } else {
193 0 die 'Only accepts functions';
194 }
195 },
196 from 'ArrayRef',
197 via {
198 Cfn::Value::Array->new(Value => [
199 map {
200 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::SES::ReceiptRule::Action')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
201 } @$_
202 ]);
203 1 };
204  
205 1 subtype 'Cfn::Resource::Properties::AWS::SES::ReceiptRule::Action',
206 as 'Cfn::Value';
207  
208 coerce 'Cfn::Resource::Properties::AWS::SES::ReceiptRule::Action',
209 from 'HashRef',
210 via {
211 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
212 0 return $f
213 } else {
214 0 return Cfn::Resource::Properties::Object::AWS::SES::ReceiptRule::Action->new( %$_ );
215 }
216 1 };
217  
218 1 package Cfn::Resource::Properties::Object::AWS::SES::ReceiptRule::Action {
219 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
220 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
221 1 extends 'Cfn::Value::TypedValue';
222
223 1 has AddHeaderAction => (isa => 'Cfn::Resource::Properties::AWS::SES::ReceiptRule::AddHeaderAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
224 1 has BounceAction => (isa => 'Cfn::Resource::Properties::AWS::SES::ReceiptRule::BounceAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
225 1 has LambdaAction => (isa => 'Cfn::Resource::Properties::AWS::SES::ReceiptRule::LambdaAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
226 1 has S3Action => (isa => 'Cfn::Resource::Properties::AWS::SES::ReceiptRule::S3Action', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
227 1 has SNSAction => (isa => 'Cfn::Resource::Properties::AWS::SES::ReceiptRule::SNSAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
228 1 has StopAction => (isa => 'Cfn::Resource::Properties::AWS::SES::ReceiptRule::StopAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
229 1 has WorkmailAction => (isa => 'Cfn::Resource::Properties::AWS::SES::ReceiptRule::WorkmailAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
230 }
231  
232 1 subtype 'Cfn::Resource::Properties::AWS::SES::ReceiptRule::Rule',
233 as 'Cfn::Value';
234  
235 coerce 'Cfn::Resource::Properties::AWS::SES::ReceiptRule::Rule',
236 from 'HashRef',
237 via {
238 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
239 0 return $f
240 } else {
241 0 return Cfn::Resource::Properties::Object::AWS::SES::ReceiptRule::Rule->new( %$_ );
242 }
243 1 };
244  
245 1 package Cfn::Resource::Properties::Object::AWS::SES::ReceiptRule::Rule {
246 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
247 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
248 1 extends 'Cfn::Value::TypedValue';
249
250 1 has Actions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::SES::ReceiptRule::Action', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
251 1 has Enabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
252 1 has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
253 1 has Recipients => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
254 1 has ScanEnabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
255 1 has TlsPolicy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
256 }
257  
258 1 package Cfn::Resource::Properties::AWS::SES::ReceiptRule {
259 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
260 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
261 1 extends 'Cfn::Resource::Properties';
262
263 1 has After => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
264 1 has Rule => (isa => 'Cfn::Resource::Properties::AWS::SES::ReceiptRule::Rule', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
265 1 has RuleSetName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
266 }
267  
268 1 1;
269 ### main pod documentation begin ###
270  
271 =encoding UTF-8
272  
273 =head1 NAME
274  
275 Cfn::Resource::AWS::SES::ReceiptRule - Cfn resource for AWS::SES::ReceiptRule
276  
277 =head1 DESCRIPTION
278  
279 This module implements a Perl module that represents the CloudFormation object AWS::SES::ReceiptRule.
280  
281 See L<Cfn> for more information on how to use it.
282  
283 =head1 AUTHOR
284  
285 Jose Luis Martinez
286 CAPSiDE
287 jlmartinez@capside.com
288  
289 =head1 COPYRIGHT and LICENSE
290  
291 Copyright (c) 2013 by CAPSiDE
292 This code is distributed under the Apache 2 License. The full text of the
293 license can be found in the LICENSE file included with this module.
294  
295 =cut
« Cfn/Resource/AWS/Greengrass/ResourceDefinitionVersion.pm ↑ Summary Cfn/Resource/AWS/Events/Rule.pm »