« Cfn/Resource/AWS/IoTAnalytics/Dataset.pm
↑ Summary
Cfn/Resource/AWS/KinesisAnalyticsV2/Application.pm »
| 1 | # AWS::WAFv2::RuleGroup 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::RuleGroup', | ||||||||||
| 5 | from 'HashRef', | ||||||||||
| 6 | 0 | ▶ | via { Cfn::Resource::Properties::AWS::WAFv2::RuleGroup->new( %$_ ) }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 7 | |||||||||||
| 8 | 1 | package Cfn::Resource::AWS::WAFv2::RuleGroup { | |||||||||
| 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::RuleGroup', is => 'rw', coerce => 1); | |||||||||
| 12 | |||||||||||
| 13 | sub AttributeList { | ||||||||||
| 14 | 1 | ▶ | [ 'Arn','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::RuleGroup::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
| |||||||||||
| 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::RuleGroup::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
| |||||||||||
| 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::RuleGroup::TextTransformation')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 41 | } @$_ | ||||||||||
| 42 | ]); | ||||||||||
| 43 | 1 | }; | |||||||||
| 44 | |||||||||||
| 45 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::TextTransformation', | |||||||||
| 46 | as 'Cfn::Value'; | ||||||||||
| 47 | |||||||||||
| 48 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::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
| |||||||||||
| 52 | 0 | return $f | |||||||||
| 53 | } else { | ||||||||||
| 54 | 0 | return Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::TextTransformationValue->new( %$_ ); | |||||||||
| 55 | } | ||||||||||
| 56 | 1 | }; | |||||||||
| 57 | |||||||||||
| 58 | 1 | package Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::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::RuleGroup::FieldToMatch', | |||||||||
| 68 | as 'Cfn::Value'; | ||||||||||
| 69 | |||||||||||
| 70 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::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
| |||||||||||
| 74 | 0 | return $f | |||||||||
| 75 | } else { | ||||||||||
| 76 | 0 | return Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::FieldToMatchValue->new( %$_ ); | |||||||||
| 77 | } | ||||||||||
| 78 | 1 | }; | |||||||||
| 79 | |||||||||||
| 80 | 1 | package Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::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 | |||||||||||
| 94 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::XssMatchStatement', | |||||||||
| 95 | as 'Cfn::Value'; | ||||||||||
| 96 | |||||||||||
| 97 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::XssMatchStatement', | ||||||||||
| 98 | from 'HashRef', | ||||||||||
| 99 | via { | ||||||||||
| 100 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 101 | 0 | return $f | |||||||||
| 102 | } else { | ||||||||||
| 103 | 0 | return Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::XssMatchStatementValue->new( %$_ ); | |||||||||
| 104 | } | ||||||||||
| 105 | 1 | }; | |||||||||
| 106 | |||||||||||
| 107 | 1 | package Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::XssMatchStatementValue { | |||||||||
| 108 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 109 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 110 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 111 | |||||||||||
| 112 | 1 | has FieldToMatch => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::FieldToMatch', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 113 | 1 | has TextTransformations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::TextTransformation', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 114 | } | ||||||||||
| 115 | |||||||||||
| 116 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::SqliMatchStatement', | |||||||||
| 117 | as 'Cfn::Value'; | ||||||||||
| 118 | |||||||||||
| 119 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::SqliMatchStatement', | ||||||||||
| 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
| |||||||||||
| 123 | 0 | return $f | |||||||||
| 124 | } else { | ||||||||||
| 125 | 0 | return Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::SqliMatchStatementValue->new( %$_ ); | |||||||||
| 126 | } | ||||||||||
| 127 | 1 | }; | |||||||||
| 128 | |||||||||||
| 129 | 1 | package Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::SqliMatchStatementValue { | |||||||||
| 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 FieldToMatch => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::FieldToMatch', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 135 | 1 | has TextTransformations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::TextTransformation', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 136 | } | ||||||||||
| 137 | |||||||||||
| 138 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::SizeConstraintStatement', | |||||||||
| 139 | as 'Cfn::Value'; | ||||||||||
| 140 | |||||||||||
| 141 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::SizeConstraintStatement', | ||||||||||
| 142 | from 'HashRef', | ||||||||||
| 143 | via { | ||||||||||
| 144 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 145 | 0 | return $f | |||||||||
| 146 | } else { | ||||||||||
| 147 | 0 | return Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::SizeConstraintStatementValue->new( %$_ ); | |||||||||
| 148 | } | ||||||||||
| 149 | 1 | }; | |||||||||
| 150 | |||||||||||
| 151 | 1 | package Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::SizeConstraintStatementValue { | |||||||||
| 152 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 153 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 154 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 155 | |||||||||||
| 156 | 1 | has ComparisonOperator => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 157 | 1 | has FieldToMatch => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::FieldToMatch', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 158 | 1 | has Size => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 159 | 1 | has TextTransformations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::TextTransformation', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 160 | } | ||||||||||
| 161 | |||||||||||
| 162 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RegexPatternSetReferenceStatement', | |||||||||
| 163 | as 'Cfn::Value'; | ||||||||||
| 164 | |||||||||||
| 165 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RegexPatternSetReferenceStatement', | ||||||||||
| 166 | from 'HashRef', | ||||||||||
| 167 | via { | ||||||||||
| 168 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 169 | 0 | return $f | |||||||||
| 170 | } else { | ||||||||||
| 171 | 0 | return Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RegexPatternSetReferenceStatementValue->new( %$_ ); | |||||||||
| 172 | } | ||||||||||
| 173 | 1 | }; | |||||||||
| 174 | |||||||||||
| 175 | 1 | package Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RegexPatternSetReferenceStatementValue { | |||||||||
| 176 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 177 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 178 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 179 | |||||||||||
| 180 | 1 | has Arn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 181 | 1 | has FieldToMatch => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::FieldToMatch', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 182 | 1 | has TextTransformations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::TextTransformation', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 183 | } | ||||||||||
| 184 | |||||||||||
| 185 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::IPSetReferenceStatement', | |||||||||
| 186 | as 'Cfn::Value'; | ||||||||||
| 187 | |||||||||||
| 188 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::IPSetReferenceStatement', | ||||||||||
| 189 | from 'HashRef', | ||||||||||
| 190 | via { | ||||||||||
| 191 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 192 | 0 | return $f | |||||||||
| 193 | } else { | ||||||||||
| 194 | 0 | return Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::IPSetReferenceStatementValue->new( %$_ ); | |||||||||
| 195 | } | ||||||||||
| 196 | 1 | }; | |||||||||
| 197 | |||||||||||
| 198 | 1 | package Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::IPSetReferenceStatementValue { | |||||||||
| 199 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 200 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 201 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 202 | |||||||||||
| 203 | 1 | has Arn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 204 | } | ||||||||||
| 205 | |||||||||||
| 206 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::GeoMatchStatement', | |||||||||
| 207 | as 'Cfn::Value'; | ||||||||||
| 208 | |||||||||||
| 209 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::GeoMatchStatement', | ||||||||||
| 210 | from 'HashRef', | ||||||||||
| 211 | via { | ||||||||||
| 212 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 213 | 0 | return $f | |||||||||
| 214 | } else { | ||||||||||
| 215 | 0 | return Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::GeoMatchStatementValue->new( %$_ ); | |||||||||
| 216 | } | ||||||||||
| 217 | 1 | }; | |||||||||
| 218 | |||||||||||
| 219 | 1 | package Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::GeoMatchStatementValue { | |||||||||
| 220 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 221 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 222 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 223 | |||||||||||
| 224 | 1 | has CountryCodes => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 225 | } | ||||||||||
| 226 | |||||||||||
| 227 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::ByteMatchStatement', | |||||||||
| 228 | as 'Cfn::Value'; | ||||||||||
| 229 | |||||||||||
| 230 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::ByteMatchStatement', | ||||||||||
| 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
| |||||||||||
| 234 | 0 | return $f | |||||||||
| 235 | } else { | ||||||||||
| 236 | 0 | return Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::ByteMatchStatementValue->new( %$_ ); | |||||||||
| 237 | } | ||||||||||
| 238 | 1 | }; | |||||||||
| 239 | |||||||||||
| 240 | 1 | package Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::ByteMatchStatementValue { | |||||||||
| 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 FieldToMatch => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::FieldToMatch', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 246 | 1 | has PositionalConstraint => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 247 | 1 | has SearchString => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 248 | 1 | has SearchStringBase64 => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 249 | 1 | has TextTransformations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::TextTransformation', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 250 | } | ||||||||||
| 251 | subtype 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementThree', | ||||||||||
| 252 | as 'Cfn::Value', | ||||||||||
| 253 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 254 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 255 | |||||||||||
| 256 | coerce 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementThree', | ||||||||||
| 257 | from 'HashRef', | ||||||||||
| 258 | via { | ||||||||||
| 259 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 260 | 0 | return $f | |||||||||
| 261 | } else { | ||||||||||
| 262 | 0 | die 'Only accepts functions'; | |||||||||
| 263 | } | ||||||||||
| 264 | }, | ||||||||||
| 265 | from 'ArrayRef', | ||||||||||
| 266 | via { | ||||||||||
| 267 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 268 | map { | ||||||||||
| 269 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementThree')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 270 | } @$_ | ||||||||||
| 271 | ]); | ||||||||||
| 272 | 1 | }; | |||||||||
| 273 | |||||||||||
| 274 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementThree', | |||||||||
| 275 | as 'Cfn::Value'; | ||||||||||
| 276 | |||||||||||
| 277 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementThree', | ||||||||||
| 278 | from 'HashRef', | ||||||||||
| 279 | via { | ||||||||||
| 280 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 281 | 0 | return $f | |||||||||
| 282 | } else { | ||||||||||
| 283 | 0 | return Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementThreeValue->new( %$_ ); | |||||||||
| 284 | } | ||||||||||
| 285 | 1 | }; | |||||||||
| 286 | |||||||||||
| 287 | 1 | package Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementThreeValue { | |||||||||
| 288 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 289 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 290 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 291 | |||||||||||
| 292 | 1 | has ByteMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::ByteMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 293 | 1 | has GeoMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::GeoMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 294 | 1 | has IPSetReferenceStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::IPSetReferenceStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 295 | 1 | has RegexPatternSetReferenceStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RegexPatternSetReferenceStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 296 | 1 | has SizeConstraintStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::SizeConstraintStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 297 | 1 | has SqliMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::SqliMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 298 | 1 | has XssMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::XssMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 299 | } | ||||||||||
| 300 | |||||||||||
| 301 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RateBasedStatementTwo', | |||||||||
| 302 | as 'Cfn::Value'; | ||||||||||
| 303 | |||||||||||
| 304 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RateBasedStatementTwo', | ||||||||||
| 305 | from 'HashRef', | ||||||||||
| 306 | via { | ||||||||||
| 307 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 308 | 0 | return $f | |||||||||
| 309 | } else { | ||||||||||
| 310 | 0 | return Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RateBasedStatementTwoValue->new( %$_ ); | |||||||||
| 311 | } | ||||||||||
| 312 | 1 | }; | |||||||||
| 313 | |||||||||||
| 314 | 1 | package Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RateBasedStatementTwoValue { | |||||||||
| 315 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 316 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 317 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 318 | |||||||||||
| 319 | 1 | has AggregateKeyType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 320 | 1 | has Limit => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 321 | 1 | has ScopeDownStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementThree', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 322 | } | ||||||||||
| 323 | |||||||||||
| 324 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::OrStatementTwo', | |||||||||
| 325 | as 'Cfn::Value'; | ||||||||||
| 326 | |||||||||||
| 327 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::OrStatementTwo', | ||||||||||
| 328 | from 'HashRef', | ||||||||||
| 329 | via { | ||||||||||
| 330 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 331 | 0 | return $f | |||||||||
| 332 | } else { | ||||||||||
| 333 | 0 | return Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::OrStatementTwoValue->new( %$_ ); | |||||||||
| 334 | } | ||||||||||
| 335 | 1 | }; | |||||||||
| 336 | |||||||||||
| 337 | 1 | package Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::OrStatementTwoValue { | |||||||||
| 338 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 339 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 340 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 341 | |||||||||||
| 342 | 1 | has Statements => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementThree', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 343 | } | ||||||||||
| 344 | |||||||||||
| 345 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::NotStatementTwo', | |||||||||
| 346 | as 'Cfn::Value'; | ||||||||||
| 347 | |||||||||||
| 348 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::NotStatementTwo', | ||||||||||
| 349 | from 'HashRef', | ||||||||||
| 350 | via { | ||||||||||
| 351 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 352 | 0 | return $f | |||||||||
| 353 | } else { | ||||||||||
| 354 | 0 | return Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::NotStatementTwoValue->new( %$_ ); | |||||||||
| 355 | } | ||||||||||
| 356 | 1 | }; | |||||||||
| 357 | |||||||||||
| 358 | 1 | package Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::NotStatementTwoValue { | |||||||||
| 359 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 360 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 361 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 362 | |||||||||||
| 363 | 1 | has Statement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementThree', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 364 | } | ||||||||||
| 365 | |||||||||||
| 366 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::AndStatementTwo', | |||||||||
| 367 | as 'Cfn::Value'; | ||||||||||
| 368 | |||||||||||
| 369 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::AndStatementTwo', | ||||||||||
| 370 | from 'HashRef', | ||||||||||
| 371 | via { | ||||||||||
| 372 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 373 | 0 | return $f | |||||||||
| 374 | } else { | ||||||||||
| 375 | 0 | return Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::AndStatementTwoValue->new( %$_ ); | |||||||||
| 376 | } | ||||||||||
| 377 | 1 | }; | |||||||||
| 378 | |||||||||||
| 379 | 1 | package Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::AndStatementTwoValue { | |||||||||
| 380 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 381 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 382 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 383 | |||||||||||
| 384 | 1 | has Statements => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementThree', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 385 | } | ||||||||||
| 386 | subtype 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementTwo', | ||||||||||
| 387 | as 'Cfn::Value', | ||||||||||
| 388 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 389 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 390 | |||||||||||
| 391 | coerce 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementTwo', | ||||||||||
| 392 | from 'HashRef', | ||||||||||
| 393 | via { | ||||||||||
| 394 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 395 | 0 | return $f | |||||||||
| 396 | } else { | ||||||||||
| 397 | 0 | die 'Only accepts functions'; | |||||||||
| 398 | } | ||||||||||
| 399 | }, | ||||||||||
| 400 | from 'ArrayRef', | ||||||||||
| 401 | via { | ||||||||||
| 402 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 403 | map { | ||||||||||
| 404 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementTwo')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 405 | } @$_ | ||||||||||
| 406 | ]); | ||||||||||
| 407 | 1 | }; | |||||||||
| 408 | |||||||||||
| 409 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementTwo', | |||||||||
| 410 | as 'Cfn::Value'; | ||||||||||
| 411 | |||||||||||
| 412 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementTwo', | ||||||||||
| 413 | from 'HashRef', | ||||||||||
| 414 | via { | ||||||||||
| 415 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 416 | 0 | return $f | |||||||||
| 417 | } else { | ||||||||||
| 418 | 0 | return Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementTwoValue->new( %$_ ); | |||||||||
| 419 | } | ||||||||||
| 420 | 1 | }; | |||||||||
| 421 | |||||||||||
| 422 | 1 | package Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementTwoValue { | |||||||||
| 423 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 424 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 425 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 426 | |||||||||||
| 427 | 1 | has AndStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::AndStatementTwo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 428 | 1 | has ByteMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::ByteMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 429 | 1 | has GeoMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::GeoMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 430 | 1 | has IPSetReferenceStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::IPSetReferenceStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 431 | 1 | has NotStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::NotStatementTwo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 432 | 1 | has OrStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::OrStatementTwo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 433 | 1 | has RateBasedStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RateBasedStatementTwo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 434 | 1 | has RegexPatternSetReferenceStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RegexPatternSetReferenceStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 435 | 1 | has SizeConstraintStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::SizeConstraintStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 436 | 1 | has SqliMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::SqliMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 437 | 1 | has XssMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::XssMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 438 | } | ||||||||||
| 439 | |||||||||||
| 440 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RateBasedStatementOne', | |||||||||
| 441 | as 'Cfn::Value'; | ||||||||||
| 442 | |||||||||||
| 443 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RateBasedStatementOne', | ||||||||||
| 444 | from 'HashRef', | ||||||||||
| 445 | via { | ||||||||||
| 446 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 447 | 0 | return $f | |||||||||
| 448 | } else { | ||||||||||
| 449 | 0 | return Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RateBasedStatementOneValue->new( %$_ ); | |||||||||
| 450 | } | ||||||||||
| 451 | 1 | }; | |||||||||
| 452 | |||||||||||
| 453 | 1 | package Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RateBasedStatementOneValue { | |||||||||
| 454 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 455 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 456 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 457 | |||||||||||
| 458 | 1 | has AggregateKeyType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 459 | 1 | has Limit => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 460 | 1 | has ScopeDownStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementTwo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 461 | } | ||||||||||
| 462 | |||||||||||
| 463 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::OrStatementOne', | |||||||||
| 464 | as 'Cfn::Value'; | ||||||||||
| 465 | |||||||||||
| 466 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::OrStatementOne', | ||||||||||
| 467 | from 'HashRef', | ||||||||||
| 468 | via { | ||||||||||
| 469 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 470 | 0 | return $f | |||||||||
| 471 | } else { | ||||||||||
| 472 | 0 | return Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::OrStatementOneValue->new( %$_ ); | |||||||||
| 473 | } | ||||||||||
| 474 | 1 | }; | |||||||||
| 475 | |||||||||||
| 476 | 1 | package Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::OrStatementOneValue { | |||||||||
| 477 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 478 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 479 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 480 | |||||||||||
| 481 | 1 | has Statements => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementTwo', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 482 | } | ||||||||||
| 483 | |||||||||||
| 484 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::NotStatementOne', | |||||||||
| 485 | as 'Cfn::Value'; | ||||||||||
| 486 | |||||||||||
| 487 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::NotStatementOne', | ||||||||||
| 488 | from 'HashRef', | ||||||||||
| 489 | via { | ||||||||||
| 490 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 491 | 0 | return $f | |||||||||
| 492 | } else { | ||||||||||
| 493 | 0 | return Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::NotStatementOneValue->new( %$_ ); | |||||||||
| 494 | } | ||||||||||
| 495 | 1 | }; | |||||||||
| 496 | |||||||||||
| 497 | 1 | package Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::NotStatementOneValue { | |||||||||
| 498 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 499 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 500 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 501 | |||||||||||
| 502 | 1 | has Statement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementTwo', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 503 | } | ||||||||||
| 504 | |||||||||||
| 505 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::AndStatementOne', | |||||||||
| 506 | as 'Cfn::Value'; | ||||||||||
| 507 | |||||||||||
| 508 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::AndStatementOne', | ||||||||||
| 509 | from 'HashRef', | ||||||||||
| 510 | via { | ||||||||||
| 511 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 512 | 0 | return $f | |||||||||
| 513 | } else { | ||||||||||
| 514 | 0 | return Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::AndStatementOneValue->new( %$_ ); | |||||||||
| 515 | } | ||||||||||
| 516 | 1 | }; | |||||||||
| 517 | |||||||||||
| 518 | 1 | package Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::AndStatementOneValue { | |||||||||
| 519 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 520 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 521 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 522 | |||||||||||
| 523 | 1 | has Statements => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementTwo', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 524 | } | ||||||||||
| 525 | |||||||||||
| 526 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::VisibilityConfig', | |||||||||
| 527 | as 'Cfn::Value'; | ||||||||||
| 528 | |||||||||||
| 529 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::VisibilityConfig', | ||||||||||
| 530 | from 'HashRef', | ||||||||||
| 531 | via { | ||||||||||
| 532 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 533 | 0 | return $f | |||||||||
| 534 | } else { | ||||||||||
| 535 | 0 | return Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::VisibilityConfigValue->new( %$_ ); | |||||||||
| 536 | } | ||||||||||
| 537 | 1 | }; | |||||||||
| 538 | |||||||||||
| 539 | 1 | package Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::VisibilityConfigValue { | |||||||||
| 540 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 541 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 542 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 543 | |||||||||||
| 544 | 1 | has CloudWatchMetricsEnabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 545 | 1 | has MetricName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 546 | 1 | has SampledRequestsEnabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 547 | } | ||||||||||
| 548 | |||||||||||
| 549 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementOne', | |||||||||
| 550 | as 'Cfn::Value'; | ||||||||||
| 551 | |||||||||||
| 552 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementOne', | ||||||||||
| 553 | from 'HashRef', | ||||||||||
| 554 | via { | ||||||||||
| 555 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 556 | 0 | return $f | |||||||||
| 557 | } else { | ||||||||||
| 558 | 0 | return Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementOneValue->new( %$_ ); | |||||||||
| 559 | } | ||||||||||
| 560 | 1 | }; | |||||||||
| 561 | |||||||||||
| 562 | 1 | package Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementOneValue { | |||||||||
| 563 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 564 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 565 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 566 | |||||||||||
| 567 | 1 | has AndStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::AndStatementOne', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 568 | 1 | has ByteMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::ByteMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 569 | 1 | has GeoMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::GeoMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 570 | 1 | has IPSetReferenceStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::IPSetReferenceStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 571 | 1 | has NotStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::NotStatementOne', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 572 | 1 | has OrStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::OrStatementOne', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 573 | 1 | has RateBasedStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RateBasedStatementOne', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 574 | 1 | has RegexPatternSetReferenceStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RegexPatternSetReferenceStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 575 | 1 | has SizeConstraintStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::SizeConstraintStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 576 | 1 | has SqliMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::SqliMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 577 | 1 | has XssMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::XssMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 578 | } | ||||||||||
| 579 | |||||||||||
| 580 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RuleAction', | |||||||||
| 581 | as 'Cfn::Value'; | ||||||||||
| 582 | |||||||||||
| 583 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RuleAction', | ||||||||||
| 584 | from 'HashRef', | ||||||||||
| 585 | via { | ||||||||||
| 586 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 587 | 0 | return $f | |||||||||
| 588 | } else { | ||||||||||
| 589 | 0 | return Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RuleActionValue->new( %$_ ); | |||||||||
| 590 | } | ||||||||||
| 591 | 1 | }; | |||||||||
| 592 | |||||||||||
| 593 | 1 | package Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RuleActionValue { | |||||||||
| 594 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 595 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 596 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 597 | |||||||||||
| 598 | 1 | has Allow => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 599 | 1 | has Block => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 600 | 1 | has Count => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 601 | } | ||||||||||
| 602 | subtype 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::Rule', | ||||||||||
| 603 | as 'Cfn::Value', | ||||||||||
| 604 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 605 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 606 | |||||||||||
| 607 | coerce 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::Rule', | ||||||||||
| 608 | from 'HashRef', | ||||||||||
| 609 | via { | ||||||||||
| 610 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 611 | 0 | return $f | |||||||||
| 612 | } else { | ||||||||||
| 613 | 0 | die 'Only accepts functions'; | |||||||||
| 614 | } | ||||||||||
| 615 | }, | ||||||||||
| 616 | from 'ArrayRef', | ||||||||||
| 617 | via { | ||||||||||
| 618 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 619 | map { | ||||||||||
| 620 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::Rule')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 621 | } @$_ | ||||||||||
| 622 | ]); | ||||||||||
| 623 | 1 | }; | |||||||||
| 624 | |||||||||||
| 625 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::Rule', | |||||||||
| 626 | as 'Cfn::Value'; | ||||||||||
| 627 | |||||||||||
| 628 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::Rule', | ||||||||||
| 629 | from 'HashRef', | ||||||||||
| 630 | via { | ||||||||||
| 631 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 632 | 0 | return $f | |||||||||
| 633 | } else { | ||||||||||
| 634 | 0 | return Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RuleValue->new( %$_ ); | |||||||||
| 635 | } | ||||||||||
| 636 | 1 | }; | |||||||||
| 637 | |||||||||||
| 638 | 1 | package Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RuleValue { | |||||||||
| 639 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 640 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 641 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 642 | |||||||||||
| 643 | 1 | has Action => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RuleAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 644 | 1 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 645 | 1 | has Priority => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 646 | 1 | has Statement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementOne', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 647 | 1 | has VisibilityConfig => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::VisibilityConfig', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 648 | } | ||||||||||
| 649 | |||||||||||
| 650 | 1 | package Cfn::Resource::Properties::AWS::WAFv2::RuleGroup { | |||||||||
| 651 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 652 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 653 | 1 | extends 'Cfn::Resource::Properties'; | |||||||||
| 654 | |||||||||||
| 655 | 1 | has Capacity => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 656 | 1 | has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 657 | 1 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 658 | 1 | has Rules => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::Rule', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 659 | 1 | has Scope => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 660 | 1 | has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 661 | 1 | has VisibilityConfig => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::VisibilityConfig', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 662 | } | ||||||||||
| 663 | |||||||||||
| 664 | 1 | 1; | |||||||||