Cfn/Resource/AWS/WAFv2/WebACL.pm

filter: Statementstmt 77.5% 414 / 534 Branchbran 0.0% 0 / 76 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 55.8% 62 / 111 Podpod 0.0% 0 / 2 totaltotal 65.8% 476 / 723 SCAR 44.9
CC
39
Cov
68%
__ANON__
6.0
__ANON__
6.0
__ANON__
6.0
CRAP 89.5
« Cfn/Resource/AWS/MediaLive/Channel.pm ↑ Summary Cfn/Resource/AWS/EC2/Instance.pm »
1 # AWS::WAFv2::WebACL generated from spec 11.1.0
2 1 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL',
5 from 'HashRef',
6 0 ▶ via { Cfn::Resource::Properties::AWS::WAFv2::WebACL->new( %$_ ) };
Subroutine __ANON__: not called CC=1 SCAR=1.2
7  
8 1 package Cfn::Resource::AWS::WAFv2::WebACL {
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::WAFv2::WebACL', is => 'rw', coerce => 1);
12
13 sub AttributeList {
14 1 ▶ [ 'Arn','Capacity','Id' ]
Subroutine AttributeList: called CC=1 SCAR=0.0
Pod undocumented
15 }
16 sub supported_regions {
17 1 ▶ [ 'ap-northeast-1','ap-northeast-2','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','eu-central-1','eu-north-1','eu-west-1','eu-west-2','eu-west-3','sa-east-1','us-east-1','us-east-2','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 subtype 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::TextTransformation',
23 as 'Cfn::Value',
24 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
25 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
26  
27 coerce 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::TextTransformation',
28 from 'HashRef',
29 via {
30 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
31 0 return $f
32 } else {
33 0 die 'Only accepts functions';
34 }
35 },
36 from 'ArrayRef',
37 via {
38 Cfn::Value::Array->new(Value => [
39 map {
40 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::WAFv2::WebACL::TextTransformation')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
41 } @$_
42 ]);
43 1 };
44  
45 1 subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::TextTransformation',
46 as 'Cfn::Value';
47  
48 coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::TextTransformation',
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::AWS::WAFv2::WebACL::TextTransformationValue->new( %$_ );
55 }
56 1 };
57  
58 1 package Cfn::Resource::Properties::AWS::WAFv2::WebACL::TextTransformationValue {
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 Priority => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64 1 has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
65 }
66  
67 1 subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::FieldToMatch',
68 as 'Cfn::Value';
69  
70 coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::FieldToMatch',
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::AWS::WAFv2::WebACL::FieldToMatchValue->new( %$_ );
77 }
78 1 };
79  
80 1 package Cfn::Resource::Properties::AWS::WAFv2::WebACL::FieldToMatchValue {
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 AllQueryArguments => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
86 1 has Body => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
87 1 has Method => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
88 1 has QueryString => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
89 1 has SingleHeader => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
90 1 has SingleQueryArgument => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
91 1 has UriPath => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
92 }
93 subtype 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::ExcludedRule',
94 as 'Cfn::Value',
95 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
96 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
97  
98 coerce 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::ExcludedRule',
99 from 'HashRef',
100 via {
101 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
102 0 return $f
103 } else {
104 0 die 'Only accepts functions';
105 }
106 },
107 from 'ArrayRef',
108 via {
109 Cfn::Value::Array->new(Value => [
110 map {
111 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::WAFv2::WebACL::ExcludedRule')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
112 } @$_
113 ]);
114 1 };
115  
116 1 subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::ExcludedRule',
117 as 'Cfn::Value';
118  
119 coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::ExcludedRule',
120 from 'HashRef',
121 via {
122 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
123 0 return $f
124 } else {
125 0 return Cfn::Resource::Properties::AWS::WAFv2::WebACL::ExcludedRuleValue->new( %$_ );
126 }
127 1 };
128  
129 1 package Cfn::Resource::Properties::AWS::WAFv2::WebACL::ExcludedRuleValue {
130 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
131 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
132 1 extends 'Cfn::Value::TypedValue';
133
134 1 has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
135 }
136  
137 1 subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::XssMatchStatement',
138 as 'Cfn::Value';
139  
140 coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::XssMatchStatement',
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::AWS::WAFv2::WebACL::XssMatchStatementValue->new( %$_ );
147 }
148 1 };
149  
150 1 package Cfn::Resource::Properties::AWS::WAFv2::WebACL::XssMatchStatementValue {
151 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
152 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
153 1 extends 'Cfn::Value::TypedValue';
154
155 1 has FieldToMatch => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::FieldToMatch', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
156 1 has TextTransformations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::TextTransformation', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
157 }
158  
159 1 subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::SqliMatchStatement',
160 as 'Cfn::Value';
161  
162 coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::SqliMatchStatement',
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 return Cfn::Resource::Properties::AWS::WAFv2::WebACL::SqliMatchStatementValue->new( %$_ );
169 }
170 1 };
171  
172 1 package Cfn::Resource::Properties::AWS::WAFv2::WebACL::SqliMatchStatementValue {
173 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
174 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
175 1 extends 'Cfn::Value::TypedValue';
176
177 1 has FieldToMatch => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::FieldToMatch', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
178 1 has TextTransformations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::TextTransformation', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
179 }
180  
181 1 subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::SizeConstraintStatement',
182 as 'Cfn::Value';
183  
184 coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::SizeConstraintStatement',
185 from 'HashRef',
186 via {
187 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
188 0 return $f
189 } else {
190 0 return Cfn::Resource::Properties::AWS::WAFv2::WebACL::SizeConstraintStatementValue->new( %$_ );
191 }
192 1 };
193  
194 1 package Cfn::Resource::Properties::AWS::WAFv2::WebACL::SizeConstraintStatementValue {
195 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
196 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
197 1 extends 'Cfn::Value::TypedValue';
198
199 1 has ComparisonOperator => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
200 1 has FieldToMatch => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::FieldToMatch', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
201 1 has Size => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
202 1 has TextTransformations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::TextTransformation', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
203 }
204  
205 1 subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::RuleGroupReferenceStatement',
206 as 'Cfn::Value';
207  
208 coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::RuleGroupReferenceStatement',
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::AWS::WAFv2::WebACL::RuleGroupReferenceStatementValue->new( %$_ );
215 }
216 1 };
217  
218 1 package Cfn::Resource::Properties::AWS::WAFv2::WebACL::RuleGroupReferenceStatementValue {
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 Arn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
224 1 has ExcludedRules => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::ExcludedRule', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
225 }
226  
227 1 subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::RegexPatternSetReferenceStatement',
228 as 'Cfn::Value';
229  
230 coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::RegexPatternSetReferenceStatement',
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 return Cfn::Resource::Properties::AWS::WAFv2::WebACL::RegexPatternSetReferenceStatementValue->new( %$_ );
237 }
238 1 };
239  
240 1 package Cfn::Resource::Properties::AWS::WAFv2::WebACL::RegexPatternSetReferenceStatementValue {
241 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
242 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
243 1 extends 'Cfn::Value::TypedValue';
244
245 1 has Arn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
246 1 has FieldToMatch => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::FieldToMatch', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
247 1 has TextTransformations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::TextTransformation', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
248 }
249  
250 1 subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::ManagedRuleGroupStatement',
251 as 'Cfn::Value';
252  
253 coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::ManagedRuleGroupStatement',
254 from 'HashRef',
255 via {
256 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
257 0 return $f
258 } else {
259 0 return Cfn::Resource::Properties::AWS::WAFv2::WebACL::ManagedRuleGroupStatementValue->new( %$_ );
260 }
261 1 };
262  
263 1 package Cfn::Resource::Properties::AWS::WAFv2::WebACL::ManagedRuleGroupStatementValue {
264 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
265 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
266 1 extends 'Cfn::Value::TypedValue';
267
268 1 has ExcludedRules => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::ExcludedRule', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
269 1 has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
270 1 has VendorName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
271 }
272  
273 1 subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::IPSetReferenceStatement',
274 as 'Cfn::Value';
275  
276 coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::IPSetReferenceStatement',
277 from 'HashRef',
278 via {
279 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
280 0 return $f
281 } else {
282 0 return Cfn::Resource::Properties::AWS::WAFv2::WebACL::IPSetReferenceStatementValue->new( %$_ );
283 }
284 1 };
285  
286 1 package Cfn::Resource::Properties::AWS::WAFv2::WebACL::IPSetReferenceStatementValue {
287 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
288 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
289 1 extends 'Cfn::Value::TypedValue';
290
291 1 has Arn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
292 }
293  
294 1 subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::GeoMatchStatement',
295 as 'Cfn::Value';
296  
297 coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::GeoMatchStatement',
298 from 'HashRef',
299 via {
300 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
301 0 return $f
302 } else {
303 0 return Cfn::Resource::Properties::AWS::WAFv2::WebACL::GeoMatchStatementValue->new( %$_ );
304 }
305 1 };
306  
307 1 package Cfn::Resource::Properties::AWS::WAFv2::WebACL::GeoMatchStatementValue {
308 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
309 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
310 1 extends 'Cfn::Value::TypedValue';
311
312 1 has CountryCodes => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
313 }
314  
315 1 subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::ByteMatchStatement',
316 as 'Cfn::Value';
317  
318 coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::ByteMatchStatement',
319 from 'HashRef',
320 via {
321 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
322 0 return $f
323 } else {
324 0 return Cfn::Resource::Properties::AWS::WAFv2::WebACL::ByteMatchStatementValue->new( %$_ );
325 }
326 1 };
327  
328 1 package Cfn::Resource::Properties::AWS::WAFv2::WebACL::ByteMatchStatementValue {
329 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
330 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
331 1 extends 'Cfn::Value::TypedValue';
332
333 1 has FieldToMatch => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::FieldToMatch', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
334 1 has PositionalConstraint => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
335 1 has SearchString => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
336 1 has SearchStringBase64 => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
337 1 has TextTransformations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::TextTransformation', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
338 }
339 subtype 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::StatementThree',
340 as 'Cfn::Value',
341 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
342 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
343  
344 coerce 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::StatementThree',
345 from 'HashRef',
346 via {
347 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
348 0 return $f
349 } else {
350 0 die 'Only accepts functions';
351 }
352 },
353 from 'ArrayRef',
354 via {
355 Cfn::Value::Array->new(Value => [
356 map {
357 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::WAFv2::WebACL::StatementThree')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
358 } @$_
359 ]);
360 1 };
361  
362 1 subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::StatementThree',
363 as 'Cfn::Value';
364  
365 coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::StatementThree',
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::AWS::WAFv2::WebACL::StatementThreeValue->new( %$_ );
372 }
373 1 };
374  
375 1 package Cfn::Resource::Properties::AWS::WAFv2::WebACL::StatementThreeValue {
376 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
377 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
378 1 extends 'Cfn::Value::TypedValue';
379
380 1 has ByteMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::ByteMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
381 1 has GeoMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::GeoMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
382 1 has IPSetReferenceStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::IPSetReferenceStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
383 1 has ManagedRuleGroupStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::ManagedRuleGroupStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
384 1 has RegexPatternSetReferenceStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::RegexPatternSetReferenceStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
385 1 has RuleGroupReferenceStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::RuleGroupReferenceStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
386 1 has SizeConstraintStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::SizeConstraintStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
387 1 has SqliMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::SqliMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
388 1 has XssMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::XssMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
389 }
390  
391 1 subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::RateBasedStatementTwo',
392 as 'Cfn::Value';
393  
394 coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::RateBasedStatementTwo',
395 from 'HashRef',
396 via {
397 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
398 0 return $f
399 } else {
400 0 return Cfn::Resource::Properties::AWS::WAFv2::WebACL::RateBasedStatementTwoValue->new( %$_ );
401 }
402 1 };
403  
404 1 package Cfn::Resource::Properties::AWS::WAFv2::WebACL::RateBasedStatementTwoValue {
405 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
406 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
407 1 extends 'Cfn::Value::TypedValue';
408
409 1 has AggregateKeyType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
410 1 has Limit => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
411 1 has ScopeDownStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::StatementThree', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
412 }
413  
414 1 subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::OrStatementTwo',
415 as 'Cfn::Value';
416  
417 coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::OrStatementTwo',
418 from 'HashRef',
419 via {
420 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
421 0 return $f
422 } else {
423 0 return Cfn::Resource::Properties::AWS::WAFv2::WebACL::OrStatementTwoValue->new( %$_ );
424 }
425 1 };
426  
427 1 package Cfn::Resource::Properties::AWS::WAFv2::WebACL::OrStatementTwoValue {
428 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
429 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
430 1 extends 'Cfn::Value::TypedValue';
431
432 1 has Statements => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::StatementThree', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
433 }
434  
435 1 subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::NotStatementTwo',
436 as 'Cfn::Value';
437  
438 coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::NotStatementTwo',
439 from 'HashRef',
440 via {
441 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
442 0 return $f
443 } else {
444 0 return Cfn::Resource::Properties::AWS::WAFv2::WebACL::NotStatementTwoValue->new( %$_ );
445 }
446 1 };
447  
448 1 package Cfn::Resource::Properties::AWS::WAFv2::WebACL::NotStatementTwoValue {
449 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
450 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
451 1 extends 'Cfn::Value::TypedValue';
452
453 1 has Statement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::StatementThree', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
454 }
455  
456 1 subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::AndStatementTwo',
457 as 'Cfn::Value';
458  
459 coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::AndStatementTwo',
460 from 'HashRef',
461 via {
462 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
463 0 return $f
464 } else {
465 0 return Cfn::Resource::Properties::AWS::WAFv2::WebACL::AndStatementTwoValue->new( %$_ );
466 }
467 1 };
468  
469 1 package Cfn::Resource::Properties::AWS::WAFv2::WebACL::AndStatementTwoValue {
470 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
471 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
472 1 extends 'Cfn::Value::TypedValue';
473
474 1 has Statements => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::StatementThree', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
475 }
476 subtype 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::StatementTwo',
477 as 'Cfn::Value',
478 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
479 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
480  
481 coerce 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::StatementTwo',
482 from 'HashRef',
483 via {
484 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
485 0 return $f
486 } else {
487 0 die 'Only accepts functions';
488 }
489 },
490 from 'ArrayRef',
491 via {
492 Cfn::Value::Array->new(Value => [
493 map {
494 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::WAFv2::WebACL::StatementTwo')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
495 } @$_
496 ]);
497 1 };
498  
499 1 subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::StatementTwo',
500 as 'Cfn::Value';
501  
502 coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::StatementTwo',
503 from 'HashRef',
504 via {
505 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
506 0 return $f
507 } else {
508 0 return Cfn::Resource::Properties::AWS::WAFv2::WebACL::StatementTwoValue->new( %$_ );
509 }
510 1 };
511  
512 1 package Cfn::Resource::Properties::AWS::WAFv2::WebACL::StatementTwoValue {
513 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
514 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
515 1 extends 'Cfn::Value::TypedValue';
516
517 1 has AndStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::AndStatementTwo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
518 1 has ByteMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::ByteMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
519 1 has GeoMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::GeoMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
520 1 has IPSetReferenceStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::IPSetReferenceStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
521 1 has ManagedRuleGroupStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::ManagedRuleGroupStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
522 1 has NotStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::NotStatementTwo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
523 1 has OrStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::OrStatementTwo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
524 1 has RateBasedStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::RateBasedStatementTwo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
525 1 has RegexPatternSetReferenceStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::RegexPatternSetReferenceStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
526 1 has RuleGroupReferenceStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::RuleGroupReferenceStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
527 1 has SizeConstraintStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::SizeConstraintStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
528 1 has SqliMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::SqliMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
529 1 has XssMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::XssMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
530 }
531  
532 1 subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::RateBasedStatementOne',
533 as 'Cfn::Value';
534  
535 coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::RateBasedStatementOne',
536 from 'HashRef',
537 via {
538 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
539 0 return $f
540 } else {
541 0 return Cfn::Resource::Properties::AWS::WAFv2::WebACL::RateBasedStatementOneValue->new( %$_ );
542 }
543 1 };
544  
545 1 package Cfn::Resource::Properties::AWS::WAFv2::WebACL::RateBasedStatementOneValue {
546 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
547 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
548 1 extends 'Cfn::Value::TypedValue';
549
550 1 has AggregateKeyType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
551 1 has Limit => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
552 1 has ScopeDownStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::StatementTwo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
553 }
554  
555 1 subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::OrStatementOne',
556 as 'Cfn::Value';
557  
558 coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::OrStatementOne',
559 from 'HashRef',
560 via {
561 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
562 0 return $f
563 } else {
564 0 return Cfn::Resource::Properties::AWS::WAFv2::WebACL::OrStatementOneValue->new( %$_ );
565 }
566 1 };
567  
568 1 package Cfn::Resource::Properties::AWS::WAFv2::WebACL::OrStatementOneValue {
569 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
570 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
571 1 extends 'Cfn::Value::TypedValue';
572
573 1 has Statements => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::StatementTwo', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
574 }
575  
576 1 subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::NotStatementOne',
577 as 'Cfn::Value';
578  
579 coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::NotStatementOne',
580 from 'HashRef',
581 via {
582 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
583 0 return $f
584 } else {
585 0 return Cfn::Resource::Properties::AWS::WAFv2::WebACL::NotStatementOneValue->new( %$_ );
586 }
587 1 };
588  
589 1 package Cfn::Resource::Properties::AWS::WAFv2::WebACL::NotStatementOneValue {
590 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
591 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
592 1 extends 'Cfn::Value::TypedValue';
593
594 1 has Statement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::StatementTwo', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
595 }
596  
597 1 subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::AndStatementOne',
598 as 'Cfn::Value';
599  
600 coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::AndStatementOne',
601 from 'HashRef',
602 via {
603 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
604 0 return $f
605 } else {
606 0 return Cfn::Resource::Properties::AWS::WAFv2::WebACL::AndStatementOneValue->new( %$_ );
607 }
608 1 };
609  
610 1 package Cfn::Resource::Properties::AWS::WAFv2::WebACL::AndStatementOneValue {
611 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
612 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
613 1 extends 'Cfn::Value::TypedValue';
614
615 1 has Statements => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::StatementTwo', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
616 }
617  
618 1 subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::VisibilityConfig',
619 as 'Cfn::Value';
620  
621 coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::VisibilityConfig',
622 from 'HashRef',
623 via {
624 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
625 0 return $f
626 } else {
627 0 return Cfn::Resource::Properties::AWS::WAFv2::WebACL::VisibilityConfigValue->new( %$_ );
628 }
629 1 };
630  
631 1 package Cfn::Resource::Properties::AWS::WAFv2::WebACL::VisibilityConfigValue {
632 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
633 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
634 1 extends 'Cfn::Value::TypedValue';
635
636 1 has CloudWatchMetricsEnabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
637 1 has MetricName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
638 1 has SampledRequestsEnabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
639 }
640  
641 1 subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::StatementOne',
642 as 'Cfn::Value';
643  
644 coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::StatementOne',
645 from 'HashRef',
646 via {
647 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
648 0 return $f
649 } else {
650 0 return Cfn::Resource::Properties::AWS::WAFv2::WebACL::StatementOneValue->new( %$_ );
651 }
652 1 };
653  
654 1 package Cfn::Resource::Properties::AWS::WAFv2::WebACL::StatementOneValue {
655 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
656 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
657 1 extends 'Cfn::Value::TypedValue';
658
659 1 has AndStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::AndStatementOne', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
660 1 has ByteMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::ByteMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
661 1 has GeoMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::GeoMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
662 1 has IPSetReferenceStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::IPSetReferenceStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
663 1 has ManagedRuleGroupStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::ManagedRuleGroupStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
664 1 has NotStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::NotStatementOne', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
665 1 has OrStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::OrStatementOne', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
666 1 has RateBasedStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::RateBasedStatementOne', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
667 1 has RegexPatternSetReferenceStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::RegexPatternSetReferenceStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
668 1 has RuleGroupReferenceStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::RuleGroupReferenceStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
669 1 has SizeConstraintStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::SizeConstraintStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
670 1 has SqliMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::SqliMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
671 1 has XssMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::XssMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
672 }
673  
674 1 subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::RuleAction',
675 as 'Cfn::Value';
676  
677 coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::RuleAction',
678 from 'HashRef',
679 via {
680 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
681 0 return $f
682 } else {
683 0 return Cfn::Resource::Properties::AWS::WAFv2::WebACL::RuleActionValue->new( %$_ );
684 }
685 1 };
686  
687 1 package Cfn::Resource::Properties::AWS::WAFv2::WebACL::RuleActionValue {
688 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
689 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
690 1 extends 'Cfn::Value::TypedValue';
691
692 1 has Allow => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
693 1 has Block => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
694 1 has Count => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
695 }
696  
697 1 subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::OverrideAction',
698 as 'Cfn::Value';
699  
700 coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::OverrideAction',
701 from 'HashRef',
702 via {
703 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
704 0 return $f
705 } else {
706 0 return Cfn::Resource::Properties::AWS::WAFv2::WebACL::OverrideActionValue->new( %$_ );
707 }
708 1 };
709  
710 1 package Cfn::Resource::Properties::AWS::WAFv2::WebACL::OverrideActionValue {
711 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
712 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
713 1 extends 'Cfn::Value::TypedValue';
714
715 1 has Count => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
716 1 has None => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
717 }
718 subtype 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::Rule',
719 as 'Cfn::Value',
720 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
721 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
722  
723 coerce 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::Rule',
724 from 'HashRef',
725 via {
726 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
727 0 return $f
728 } else {
729 0 die 'Only accepts functions';
730 }
731 },
732 from 'ArrayRef',
733 via {
734 Cfn::Value::Array->new(Value => [
735 map {
736 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::WAFv2::WebACL::Rule')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
737 } @$_
738 ]);
739 1 };
740  
741 1 subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::Rule',
742 as 'Cfn::Value';
743  
744 coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::Rule',
745 from 'HashRef',
746 via {
747 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
748 0 return $f
749 } else {
750 0 return Cfn::Resource::Properties::AWS::WAFv2::WebACL::RuleValue->new( %$_ );
751 }
752 1 };
753  
754 1 package Cfn::Resource::Properties::AWS::WAFv2::WebACL::RuleValue {
755 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
756 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
757 1 extends 'Cfn::Value::TypedValue';
758
759 1 has Action => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::RuleAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
760 1 has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
761 1 has OverrideAction => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::OverrideAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
762 1 has Priority => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
763 1 has Statement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::StatementOne', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
764 1 has VisibilityConfig => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::VisibilityConfig', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
765 }
766  
767 1 subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::DefaultAction',
768 as 'Cfn::Value';
769  
770 coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::DefaultAction',
771 from 'HashRef',
772 via {
773 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
774 0 return $f
775 } else {
776 0 return Cfn::Resource::Properties::AWS::WAFv2::WebACL::DefaultActionValue->new( %$_ );
777 }
778 1 };
779  
780 1 package Cfn::Resource::Properties::AWS::WAFv2::WebACL::DefaultActionValue {
781 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
782 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
783 1 extends 'Cfn::Value::TypedValue';
784
785 1 has Allow => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
786 1 has Block => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
787 }
788  
789 1 package Cfn::Resource::Properties::AWS::WAFv2::WebACL {
790 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
791 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
792 1 extends 'Cfn::Resource::Properties';
793
794 1 has DefaultAction => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::DefaultAction', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
795 1 has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
796 1 has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
797 1 has Rules => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::Rule', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
798 1 has Scope => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
799 1 has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
800 1 has VisibilityConfig => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::VisibilityConfig', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
801 }
802  
803 1 1;
« Cfn/Resource/AWS/MediaLive/Channel.pm ↑ Summary Cfn/Resource/AWS/EC2/Instance.pm »