Cfn/Resource/AWS/IoT/TopicRule.pm

filter: Statementstmt 80.5% 414 / 514 Branchbran 5.7% 4 / 70 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 63.4% 66 / 104 Podpod 0.0% 0 / 2 totaltotal 70.1% 484 / 690 CC 36 SCAR 12.0
CC
36
Cov
72%
__ANON__
6.0
__ANON__
6.0
__ANON__
6.0
CRAP 3.3
« Cfn/Resource/AWS/CloudTrail/Trail.pm ↑ Summary Cfn/Resource/AWS/RDS/DBInstance.pm »
1 # AWS::IoT::TopicRule generated from spec 18.4.0
2 3 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule',
5 from 'HashRef',
6 2 ▶ via { Cfn::Resource::Properties::AWS::IoT::TopicRule->new( %$_ ) };
Subroutine __ANON__: called CC=1 SCAR=0.0
7  
8 3 package Cfn::Resource::AWS::IoT::TopicRule {
9 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 3 extends 'Cfn::Resource';
11 3 has Properties => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule', is => 'rw', coerce => 1);
12
13 sub AttributeList {
14 1 ▶ [ 'Arn' ]
Subroutine AttributeList: called CC=1 SCAR=0.0
Pod undocumented
15 }
16 sub supported_regions {
17 1 ▶ [ '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' ]
Subroutine supported_regions: called CC=1 SCAR=0.0
Pod undocumented
18 }
19 }
20  
21  
22  
23 3 subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::AssetPropertyVariant',
24 as 'Cfn::Value';
25  
26 coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::AssetPropertyVariant',
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::IoT::TopicRule::AssetPropertyVariant->new( %$_ );
33 }
34 3 };
35  
36 3 package Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::AssetPropertyVariant {
37 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
38 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
39 3 extends 'Cfn::Value::TypedValue';
40
41 3 has BooleanValue => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42 3 has DoubleValue => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43 3 has IntegerValue => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
44 3 has StringValue => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
45 }
46  
47 3 subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::AssetPropertyTimestamp',
48 as 'Cfn::Value';
49  
50 coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::AssetPropertyTimestamp',
51 from 'HashRef',
52 via {
53 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
54 0 return $f
55 } else {
56 0 return Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::AssetPropertyTimestamp->new( %$_ );
57 }
58 3 };
59  
60 3 package Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::AssetPropertyTimestamp {
61 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
62 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
63 3 extends 'Cfn::Value::TypedValue';
64
65 3 has OffsetInNanos => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
66 3 has TimeInSeconds => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
67 }
68  
69 3 subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::SigV4Authorization',
70 as 'Cfn::Value';
71  
72 coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::SigV4Authorization',
73 from 'HashRef',
74 via {
75 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
76 0 return $f
77 } else {
78 0 return Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::SigV4Authorization->new( %$_ );
79 }
80 3 };
81  
82 3 package Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::SigV4Authorization {
83 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
84 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
85 3 extends 'Cfn::Value::TypedValue';
86
87 3 has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
88 3 has ServiceName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
89 3 has SigningRegion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
90 }
91 subtype 'ArrayOfCfn::Resource::Properties::AWS::IoT::TopicRule::AssetPropertyValue',
92 as 'Cfn::Value',
93 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
94 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
95  
96 coerce 'ArrayOfCfn::Resource::Properties::AWS::IoT::TopicRule::AssetPropertyValue',
97 from 'HashRef',
98 via {
99 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
100 0 return $f
101 } else {
102 0 die 'Only accepts functions';
103 }
104 },
105 from 'ArrayRef',
106 via {
107 Cfn::Value::Array->new(Value => [
108 map {
109 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::IoT::TopicRule::AssetPropertyValue')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
110 } @$_
111 ]);
112 3 };
113  
114 3 subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::AssetPropertyValue',
115 as 'Cfn::Value';
116  
117 coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::AssetPropertyValue',
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 return Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::AssetPropertyValue->new( %$_ );
124 }
125 3 };
126  
127 3 package Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::AssetPropertyValue {
128 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
129 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
130 3 extends 'Cfn::Value::TypedValue';
131
132 3 has Quality => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
133 3 has Timestamp => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::AssetPropertyTimestamp', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
134 3 has Value => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::AssetPropertyVariant', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
135 }
136  
137 3 subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::PutItemInput',
138 as 'Cfn::Value';
139  
140 coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::PutItemInput',
141 from 'HashRef',
142 via {
143 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
144 0 return $f
145 } else {
146 0 return Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::PutItemInput->new( %$_ );
147 }
148 3 };
149  
150 3 package Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::PutItemInput {
151 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
152 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
153 3 extends 'Cfn::Value::TypedValue';
154
155 3 has TableName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
156 }
157 subtype 'ArrayOfCfn::Resource::Properties::AWS::IoT::TopicRule::PutAssetPropertyValueEntry',
158 as 'Cfn::Value',
159 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
160 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
161  
162 coerce 'ArrayOfCfn::Resource::Properties::AWS::IoT::TopicRule::PutAssetPropertyValueEntry',
163 from 'HashRef',
164 via {
165 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
166 0 return $f
167 } else {
168 0 die 'Only accepts functions';
169 }
170 },
171 from 'ArrayRef',
172 via {
173 Cfn::Value::Array->new(Value => [
174 map {
175 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::IoT::TopicRule::PutAssetPropertyValueEntry')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
176 } @$_
177 ]);
178 3 };
179  
180 3 subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::PutAssetPropertyValueEntry',
181 as 'Cfn::Value';
182  
183 coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::PutAssetPropertyValueEntry',
184 from 'HashRef',
185 via {
186 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
187 0 return $f
188 } else {
189 0 return Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::PutAssetPropertyValueEntry->new( %$_ );
190 }
191 3 };
192  
193 3 package Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::PutAssetPropertyValueEntry {
194 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
195 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
196 3 extends 'Cfn::Value::TypedValue';
197
198 3 has AssetId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
199 3 has EntryId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
200 3 has PropertyAlias => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
201 3 has PropertyId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
202 3 has PropertyValues => (isa => 'ArrayOfCfn::Resource::Properties::AWS::IoT::TopicRule::AssetPropertyValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
203 }
204  
205 3 subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::HttpAuthorization',
206 as 'Cfn::Value';
207  
208 coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::HttpAuthorization',
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::IoT::TopicRule::HttpAuthorization->new( %$_ );
215 }
216 3 };
217  
218 3 package Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::HttpAuthorization {
219 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
220 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
221 3 extends 'Cfn::Value::TypedValue';
222
223 3 has Sigv4 => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::SigV4Authorization', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
224 }
225 subtype 'ArrayOfCfn::Resource::Properties::AWS::IoT::TopicRule::HttpActionHeader',
226 as 'Cfn::Value',
227 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
228 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
229  
230 coerce 'ArrayOfCfn::Resource::Properties::AWS::IoT::TopicRule::HttpActionHeader',
231 from 'HashRef',
232 via {
233 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
234 0 return $f
235 } else {
236 0 die 'Only accepts functions';
237 }
238 },
239 from 'ArrayRef',
240 via {
241 Cfn::Value::Array->new(Value => [
242 map {
243 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::IoT::TopicRule::HttpActionHeader')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
244 } @$_
245 ]);
246 3 };
247  
248 3 subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::HttpActionHeader',
249 as 'Cfn::Value';
250  
251 coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::HttpActionHeader',
252 from 'HashRef',
253 via {
254 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
255 0 return $f
256 } else {
257 0 return Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::HttpActionHeader->new( %$_ );
258 }
259 3 };
260  
261 3 package Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::HttpActionHeader {
262 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
263 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
264 3 extends 'Cfn::Value::TypedValue';
265
266 3 has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
267 3 has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
268 }
269  
270 3 subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::StepFunctionsAction',
271 as 'Cfn::Value';
272  
273 coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::StepFunctionsAction',
274 from 'HashRef',
275 via {
276 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
277 0 return $f
278 } else {
279 0 return Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::StepFunctionsAction->new( %$_ );
280 }
281 3 };
282  
283 3 package Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::StepFunctionsAction {
284 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
285 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
286 3 extends 'Cfn::Value::TypedValue';
287
288 3 has ExecutionNamePrefix => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
289 3 has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
290 3 has StateMachineName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
291 }
292  
293 3 subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::SqsAction',
294 as 'Cfn::Value';
295  
296 coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::SqsAction',
297 from 'HashRef',
298 via {
299 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
300 0 return $f
301 } else {
302 0 return Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::SqsAction->new( %$_ );
303 }
304 3 };
305  
306 3 package Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::SqsAction {
307 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
308 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
309 3 extends 'Cfn::Value::TypedValue';
310
311 3 has QueueUrl => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
312 3 has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
313 3 has UseBase64 => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
314 }
315  
316 3 subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::SnsAction',
317 as 'Cfn::Value';
318  
319 coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::SnsAction',
320 from 'HashRef',
321 via {
322 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
323 0 return $f
324 } else {
325 0 return Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::SnsAction->new( %$_ );
326 }
327 3 };
328  
329 3 package Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::SnsAction {
330 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
331 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
332 3 extends 'Cfn::Value::TypedValue';
333
334 3 has MessageFormat => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
335 3 has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
336 3 has TargetArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
337 }
338  
339 3 subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::S3Action',
340 as 'Cfn::Value';
341  
342 coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::S3Action',
343 from 'HashRef',
344 via {
345 2 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 2 2
346 0 return $f
347 } else {
348 2 return Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::S3Action->new( %$_ );
349 }
350 3 };
351  
352 3 package Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::S3Action {
353 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
354 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
355 3 extends 'Cfn::Value::TypedValue';
356
357 3 has BucketName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
358 3 has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
359 3 has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
360 }
361  
362 3 subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::RepublishAction',
363 as 'Cfn::Value';
364  
365 coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::RepublishAction',
366 from 'HashRef',
367 via {
368 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
369 0 return $f
370 } else {
371 0 return Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::RepublishAction->new( %$_ );
372 }
373 3 };
374  
375 3 package Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::RepublishAction {
376 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
377 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
378 3 extends 'Cfn::Value::TypedValue';
379
380 3 has Qos => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
381 3 has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
382 3 has Topic => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
383 }
384  
385 3 subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::LambdaAction',
386 as 'Cfn::Value';
387  
388 coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::LambdaAction',
389 from 'HashRef',
390 via {
391 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
392 0 return $f
393 } else {
394 0 return Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::LambdaAction->new( %$_ );
395 }
396 3 };
397  
398 3 package Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::LambdaAction {
399 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
400 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
401 3 extends 'Cfn::Value::TypedValue';
402
403 3 has FunctionArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
404 }
405  
406 3 subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::KinesisAction',
407 as 'Cfn::Value';
408  
409 coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::KinesisAction',
410 from 'HashRef',
411 via {
412 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
413 0 return $f
414 } else {
415 0 return Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::KinesisAction->new( %$_ );
416 }
417 3 };
418  
419 3 package Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::KinesisAction {
420 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
421 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
422 3 extends 'Cfn::Value::TypedValue';
423
424 3 has PartitionKey => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
425 3 has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
426 3 has StreamName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
427 }
428  
429 3 subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::IotSiteWiseAction',
430 as 'Cfn::Value';
431  
432 coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::IotSiteWiseAction',
433 from 'HashRef',
434 via {
435 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
436 0 return $f
437 } else {
438 0 return Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::IotSiteWiseAction->new( %$_ );
439 }
440 3 };
441  
442 3 package Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::IotSiteWiseAction {
443 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
444 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
445 3 extends 'Cfn::Value::TypedValue';
446
447 3 has PutAssetPropertyValueEntries => (isa => 'ArrayOfCfn::Resource::Properties::AWS::IoT::TopicRule::PutAssetPropertyValueEntry', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
448 3 has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
449 }
450  
451 3 subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::IotEventsAction',
452 as 'Cfn::Value';
453  
454 coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::IotEventsAction',
455 from 'HashRef',
456 via {
457 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
458 0 return $f
459 } else {
460 0 return Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::IotEventsAction->new( %$_ );
461 }
462 3 };
463  
464 3 package Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::IotEventsAction {
465 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
466 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
467 3 extends 'Cfn::Value::TypedValue';
468
469 3 has InputName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
470 3 has MessageId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
471 3 has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
472 }
473  
474 3 subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::IotAnalyticsAction',
475 as 'Cfn::Value';
476  
477 coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::IotAnalyticsAction',
478 from 'HashRef',
479 via {
480 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
481 0 return $f
482 } else {
483 0 return Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::IotAnalyticsAction->new( %$_ );
484 }
485 3 };
486  
487 3 package Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::IotAnalyticsAction {
488 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
489 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
490 3 extends 'Cfn::Value::TypedValue';
491
492 3 has ChannelName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
493 3 has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
494 }
495  
496 3 subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::HttpAction',
497 as 'Cfn::Value';
498  
499 coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::HttpAction',
500 from 'HashRef',
501 via {
502 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
503 0 return $f
504 } else {
505 0 return Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::HttpAction->new( %$_ );
506 }
507 3 };
508  
509 3 package Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::HttpAction {
510 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
511 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
512 3 extends 'Cfn::Value::TypedValue';
513
514 3 has Auth => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::HttpAuthorization', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
515 3 has ConfirmationUrl => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
516 3 has Headers => (isa => 'ArrayOfCfn::Resource::Properties::AWS::IoT::TopicRule::HttpActionHeader', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
517 3 has Url => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
518 }
519  
520 3 subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::FirehoseAction',
521 as 'Cfn::Value';
522  
523 coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::FirehoseAction',
524 from 'HashRef',
525 via {
526 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
527 0 return $f
528 } else {
529 0 return Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::FirehoseAction->new( %$_ );
530 }
531 3 };
532  
533 3 package Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::FirehoseAction {
534 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
535 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
536 3 extends 'Cfn::Value::TypedValue';
537
538 3 has DeliveryStreamName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
539 3 has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
540 3 has Separator => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
541 }
542  
543 3 subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::ElasticsearchAction',
544 as 'Cfn::Value';
545  
546 coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::ElasticsearchAction',
547 from 'HashRef',
548 via {
549 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
550 0 return $f
551 } else {
552 0 return Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::ElasticsearchAction->new( %$_ );
553 }
554 3 };
555  
556 3 package Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::ElasticsearchAction {
557 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
558 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
559 3 extends 'Cfn::Value::TypedValue';
560
561 3 has Endpoint => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
562 3 has Id => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
563 3 has Index => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
564 3 has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
565 3 has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
566 }
567  
568 3 subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::DynamoDBv2Action',
569 as 'Cfn::Value';
570  
571 coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::DynamoDBv2Action',
572 from 'HashRef',
573 via {
574 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
575 0 return $f
576 } else {
577 0 return Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::DynamoDBv2Action->new( %$_ );
578 }
579 3 };
580  
581 3 package Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::DynamoDBv2Action {
582 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
583 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
584 3 extends 'Cfn::Value::TypedValue';
585
586 3 has PutItem => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::PutItemInput', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
587 3 has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
588 }
589  
590 3 subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::DynamoDBAction',
591 as 'Cfn::Value';
592  
593 coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::DynamoDBAction',
594 from 'HashRef',
595 via {
596 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
597 0 return $f
598 } else {
599 0 return Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::DynamoDBAction->new( %$_ );
600 }
601 3 };
602  
603 3 package Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::DynamoDBAction {
604 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
605 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
606 3 extends 'Cfn::Value::TypedValue';
607
608 3 has HashKeyField => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
609 3 has HashKeyType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
610 3 has HashKeyValue => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
611 3 has PayloadField => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
612 3 has RangeKeyField => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
613 3 has RangeKeyType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
614 3 has RangeKeyValue => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
615 3 has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
616 3 has TableName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
617 }
618  
619 3 subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::CloudwatchMetricAction',
620 as 'Cfn::Value';
621  
622 coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::CloudwatchMetricAction',
623 from 'HashRef',
624 via {
625 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
626 0 return $f
627 } else {
628 0 return Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::CloudwatchMetricAction->new( %$_ );
629 }
630 3 };
631  
632 3 package Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::CloudwatchMetricAction {
633 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
634 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
635 3 extends 'Cfn::Value::TypedValue';
636
637 3 has MetricName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
638 3 has MetricNamespace => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
639 3 has MetricTimestamp => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
640 3 has MetricUnit => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
641 3 has MetricValue => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
642 3 has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
643 }
644  
645 3 subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::CloudwatchAlarmAction',
646 as 'Cfn::Value';
647  
648 coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::CloudwatchAlarmAction',
649 from 'HashRef',
650 via {
651 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
652 0 return $f
653 } else {
654 0 return Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::CloudwatchAlarmAction->new( %$_ );
655 }
656 3 };
657  
658 3 package Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::CloudwatchAlarmAction {
659 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
660 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
661 3 extends 'Cfn::Value::TypedValue';
662
663 3 has AlarmName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
664 3 has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
665 3 has StateReason => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
666 3 has StateValue => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
667 }
668 subtype 'ArrayOfCfn::Resource::Properties::AWS::IoT::TopicRule::Action',
669 as 'Cfn::Value',
670 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") 0 2 2
671 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
672  
673 coerce 'ArrayOfCfn::Resource::Properties::AWS::IoT::TopicRule::Action',
674 from 'HashRef',
675 via {
676 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
677 0 return $f
678 } else {
679 0 die 'Only accepts functions';
680 }
681 },
682 from 'ArrayRef',
683 via {
684 Cfn::Value::Array->new(Value => [
685 map {
686 2 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::IoT::TopicRule::Action')->coerce($_)
Subroutine __ANON__: called CC=1 SCAR=0.0
687 } @$_
688 ]);
689 3 };
690  
691 3 subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::Action',
692 as 'Cfn::Value';
693  
694 coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::Action',
695 from 'HashRef',
696 via {
697 2 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 2 2
698 0 return $f
699 } else {
700 2 return Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::Action->new( %$_ );
701 }
702 3 };
703  
704 3 package Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::Action {
705 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
706 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
707 3 extends 'Cfn::Value::TypedValue';
708
709 3 has CloudwatchAlarm => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::CloudwatchAlarmAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
710 3 has CloudwatchMetric => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::CloudwatchMetricAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
711 3 has DynamoDB => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::DynamoDBAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
712 3 has DynamoDBv2 => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::DynamoDBv2Action', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
713 3 has Elasticsearch => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::ElasticsearchAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
714 3 has Firehose => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::FirehoseAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
715 3 has Http => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::HttpAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
716 3 has IotAnalytics => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::IotAnalyticsAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
717 3 has IotEvents => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::IotEventsAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
718 3 has IotSiteWise => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::IotSiteWiseAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
719 3 has Kinesis => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::KinesisAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
720 3 has Lambda => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::LambdaAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
721 3 has Republish => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::RepublishAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
722 3 has S3 => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::S3Action', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
723 3 has Sns => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::SnsAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
724 3 has Sqs => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::SqsAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
725 3 has StepFunctions => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::StepFunctionsAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
726 }
727  
728 3 subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::TopicRulePayload',
729 as 'Cfn::Value';
730  
731 coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::TopicRulePayload',
732 from 'HashRef',
733 via {
734 2 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 2 2
735 0 return $f
736 } else {
737 2 return Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::TopicRulePayload->new( %$_ );
738 }
739 3 };
740  
741 3 package Cfn::Resource::Properties::Object::AWS::IoT::TopicRule::TopicRulePayload {
742 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
743 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
744 3 extends 'Cfn::Value::TypedValue';
745
746 3 has Actions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::IoT::TopicRule::Action', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
747 3 has AwsIotSqlVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
748 3 has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
749 3 has ErrorAction => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::Action', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
750 3 has RuleDisabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
751 3 has Sql => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
752 }
753  
754 3 package Cfn::Resource::Properties::AWS::IoT::TopicRule {
755 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
756 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
757 3 extends 'Cfn::Resource::Properties';
758
759 3 has RuleName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
760 3 has TopicRulePayload => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::TopicRulePayload', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
761 }
762  
763 3 1;
764 ### main pod documentation begin ###
765  
766 =encoding UTF-8
767  
768 =head1 NAME
769  
770 Cfn::Resource::AWS::IoT::TopicRule - Cfn resource for AWS::IoT::TopicRule
771  
772 =head1 DESCRIPTION
773  
774 This module implements a Perl module that represents the CloudFormation object AWS::IoT::TopicRule.
775  
776 See L<Cfn> for more information on how to use it.
777  
778 =head1 AUTHOR
779  
780 Jose Luis Martinez
781 CAPSiDE
782 jlmartinez@capside.com
783  
784 =head1 COPYRIGHT and LICENSE
785  
786 Copyright (c) 2013 by CAPSiDE
787 This code is distributed under the Apache 2 License. The full text of the
788 license can be found in the LICENSE file included with this module.
789  
790 =cut
« Cfn/Resource/AWS/CloudTrail/Trail.pm ↑ Summary Cfn/Resource/AWS/RDS/DBInstance.pm »