| 1 | # AWS::WAFv2::RuleGroup generated from spec 20.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 | ▶ | [ 'af-south-1','ap-east-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-south-1','eu-west-1','eu-west-2','eu-west-3','me-south-1','sa-east-1','us-east-1','us-east-2','us-gov-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::Object::AWS::WAFv2::RuleGroup::TextTransformation->new( %$_ ); | |||||||||
| 55 | } | ||||||||||
| 56 | 1 | }; | |||||||||
| 57 | |||||||||||
| 58 | 1 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::TextTransformation { | |||||||||
| 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::IPSetForwardedIPConfiguration', | |||||||||
| 68 | as 'Cfn::Value'; | ||||||||||
| 69 | |||||||||||
| 70 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::IPSetForwardedIPConfiguration', | ||||||||||
| 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::Object::AWS::WAFv2::RuleGroup::IPSetForwardedIPConfiguration->new( %$_ ); | |||||||||
| 77 | } | ||||||||||
| 78 | 1 | }; | |||||||||
| 79 | |||||||||||
| 80 | 1 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::IPSetForwardedIPConfiguration { | |||||||||
| 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 FallbackBehavior => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 86 | 1 | has HeaderName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 87 | 1 | has Position => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 88 | } | ||||||||||
| 89 | |||||||||||
| 90 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::ForwardedIPConfiguration', | |||||||||
| 91 | as 'Cfn::Value'; | ||||||||||
| 92 | |||||||||||
| 93 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::ForwardedIPConfiguration', | ||||||||||
| 94 | from 'HashRef', | ||||||||||
| 95 | via { | ||||||||||
| 96 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 97 | 0 | return $f | |||||||||
| 98 | } else { | ||||||||||
| 99 | 0 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::ForwardedIPConfiguration->new( %$_ ); | |||||||||
| 100 | } | ||||||||||
| 101 | 1 | }; | |||||||||
| 102 | |||||||||||
| 103 | 1 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::ForwardedIPConfiguration { | |||||||||
| 104 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 105 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 106 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 107 | |||||||||||
| 108 | 1 | has FallbackBehavior => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 109 | 1 | has HeaderName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 110 | } | ||||||||||
| 111 | |||||||||||
| 112 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::FieldToMatch', | |||||||||
| 113 | as 'Cfn::Value'; | ||||||||||
| 114 | |||||||||||
| 115 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::FieldToMatch', | ||||||||||
| 116 | from 'HashRef', | ||||||||||
| 117 | via { | ||||||||||
| 118 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 119 | 0 | return $f | |||||||||
| 120 | } else { | ||||||||||
| 121 | 0 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::FieldToMatch->new( %$_ ); | |||||||||
| 122 | } | ||||||||||
| 123 | 1 | }; | |||||||||
| 124 | |||||||||||
| 125 | 1 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::FieldToMatch { | |||||||||
| 126 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 127 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 128 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 129 | |||||||||||
| 130 | 1 | has AllQueryArguments => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 131 | 1 | has Body => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 132 | 1 | has Method => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 133 | 1 | has QueryString => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 134 | 1 | has SingleHeader => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 135 | 1 | has SingleQueryArgument => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 136 | 1 | has UriPath => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 137 | } | ||||||||||
| 138 | |||||||||||
| 139 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::XssMatchStatement', | |||||||||
| 140 | as 'Cfn::Value'; | ||||||||||
| 141 | |||||||||||
| 142 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::XssMatchStatement', | ||||||||||
| 143 | from 'HashRef', | ||||||||||
| 144 | via { | ||||||||||
| 145 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 146 | 0 | return $f | |||||||||
| 147 | } else { | ||||||||||
| 148 | 0 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::XssMatchStatement->new( %$_ ); | |||||||||
| 149 | } | ||||||||||
| 150 | 1 | }; | |||||||||
| 151 | |||||||||||
| 152 | 1 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::XssMatchStatement { | |||||||||
| 153 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 154 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 155 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 156 | |||||||||||
| 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 TextTransformations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::TextTransformation', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 159 | } | ||||||||||
| 160 | |||||||||||
| 161 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::SqliMatchStatement', | |||||||||
| 162 | as 'Cfn::Value'; | ||||||||||
| 163 | |||||||||||
| 164 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::SqliMatchStatement', | ||||||||||
| 165 | from 'HashRef', | ||||||||||
| 166 | via { | ||||||||||
| 167 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 168 | 0 | return $f | |||||||||
| 169 | } else { | ||||||||||
| 170 | 0 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::SqliMatchStatement->new( %$_ ); | |||||||||
| 171 | } | ||||||||||
| 172 | 1 | }; | |||||||||
| 173 | |||||||||||
| 174 | 1 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::SqliMatchStatement { | |||||||||
| 175 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 176 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 177 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 178 | |||||||||||
| 179 | 1 | has FieldToMatch => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::FieldToMatch', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 180 | 1 | has TextTransformations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::TextTransformation', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 181 | } | ||||||||||
| 182 | |||||||||||
| 183 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::SizeConstraintStatement', | |||||||||
| 184 | as 'Cfn::Value'; | ||||||||||
| 185 | |||||||||||
| 186 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::SizeConstraintStatement', | ||||||||||
| 187 | from 'HashRef', | ||||||||||
| 188 | via { | ||||||||||
| 189 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 190 | 0 | return $f | |||||||||
| 191 | } else { | ||||||||||
| 192 | 0 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::SizeConstraintStatement->new( %$_ ); | |||||||||
| 193 | } | ||||||||||
| 194 | 1 | }; | |||||||||
| 195 | |||||||||||
| 196 | 1 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::SizeConstraintStatement { | |||||||||
| 197 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 198 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 199 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 200 | |||||||||||
| 201 | 1 | has ComparisonOperator => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 202 | 1 | has FieldToMatch => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::FieldToMatch', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 203 | 1 | has Size => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 204 | 1 | has TextTransformations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::TextTransformation', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 205 | } | ||||||||||
| 206 | |||||||||||
| 207 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RegexPatternSetReferenceStatement', | |||||||||
| 208 | as 'Cfn::Value'; | ||||||||||
| 209 | |||||||||||
| 210 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RegexPatternSetReferenceStatement', | ||||||||||
| 211 | from 'HashRef', | ||||||||||
| 212 | via { | ||||||||||
| 213 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 214 | 0 | return $f | |||||||||
| 215 | } else { | ||||||||||
| 216 | 0 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::RegexPatternSetReferenceStatement->new( %$_ ); | |||||||||
| 217 | } | ||||||||||
| 218 | 1 | }; | |||||||||
| 219 | |||||||||||
| 220 | 1 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::RegexPatternSetReferenceStatement { | |||||||||
| 221 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 222 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 223 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 224 | |||||||||||
| 225 | 1 | has Arn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 226 | 1 | has FieldToMatch => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::FieldToMatch', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 227 | 1 | has TextTransformations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::TextTransformation', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 228 | } | ||||||||||
| 229 | |||||||||||
| 230 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::IPSetReferenceStatement', | |||||||||
| 231 | as 'Cfn::Value'; | ||||||||||
| 232 | |||||||||||
| 233 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::IPSetReferenceStatement', | ||||||||||
| 234 | from 'HashRef', | ||||||||||
| 235 | via { | ||||||||||
| 236 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 237 | 0 | return $f | |||||||||
| 238 | } else { | ||||||||||
| 239 | 0 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::IPSetReferenceStatement->new( %$_ ); | |||||||||
| 240 | } | ||||||||||
| 241 | 1 | }; | |||||||||
| 242 | |||||||||||
| 243 | 1 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::IPSetReferenceStatement { | |||||||||
| 244 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 245 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 246 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 247 | |||||||||||
| 248 | 1 | has Arn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 249 | 1 | has IPSetForwardedIPConfig => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::IPSetForwardedIPConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 250 | } | ||||||||||
| 251 | |||||||||||
| 252 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::GeoMatchStatement', | |||||||||
| 253 | as 'Cfn::Value'; | ||||||||||
| 254 | |||||||||||
| 255 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::GeoMatchStatement', | ||||||||||
| 256 | from 'HashRef', | ||||||||||
| 257 | via { | ||||||||||
| 258 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 259 | 0 | return $f | |||||||||
| 260 | } else { | ||||||||||
| 261 | 0 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::GeoMatchStatement->new( %$_ ); | |||||||||
| 262 | } | ||||||||||
| 263 | 1 | }; | |||||||||
| 264 | |||||||||||
| 265 | 1 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::GeoMatchStatement { | |||||||||
| 266 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 267 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 268 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 269 | |||||||||||
| 270 | 1 | has CountryCodes => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 271 | 1 | has ForwardedIPConfig => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::ForwardedIPConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 272 | } | ||||||||||
| 273 | |||||||||||
| 274 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::ByteMatchStatement', | |||||||||
| 275 | as 'Cfn::Value'; | ||||||||||
| 276 | |||||||||||
| 277 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::ByteMatchStatement', | ||||||||||
| 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::Object::AWS::WAFv2::RuleGroup::ByteMatchStatement->new( %$_ ); | |||||||||
| 284 | } | ||||||||||
| 285 | 1 | }; | |||||||||
| 286 | |||||||||||
| 287 | 1 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::ByteMatchStatement { | |||||||||
| 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 FieldToMatch => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::FieldToMatch', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 293 | 1 | has PositionalConstraint => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 294 | 1 | has SearchString => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 295 | 1 | has SearchStringBase64 => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 296 | 1 | has TextTransformations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::TextTransformation', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 297 | } | ||||||||||
| 298 | subtype 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementThree', | ||||||||||
| 299 | as 'Cfn::Value', | ||||||||||
| 300 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 301 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 302 | |||||||||||
| 303 | coerce 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementThree', | ||||||||||
| 304 | from 'HashRef', | ||||||||||
| 305 | via { | ||||||||||
| 306 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 307 | 0 | return $f | |||||||||
| 308 | } else { | ||||||||||
| 309 | 0 | die 'Only accepts functions'; | |||||||||
| 310 | } | ||||||||||
| 311 | }, | ||||||||||
| 312 | from 'ArrayRef', | ||||||||||
| 313 | via { | ||||||||||
| 314 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 315 | map { | ||||||||||
| 316 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementThree')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 317 | } @$_ | ||||||||||
| 318 | ]); | ||||||||||
| 319 | 1 | }; | |||||||||
| 320 | |||||||||||
| 321 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementThree', | |||||||||
| 322 | as 'Cfn::Value'; | ||||||||||
| 323 | |||||||||||
| 324 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementThree', | ||||||||||
| 325 | from 'HashRef', | ||||||||||
| 326 | via { | ||||||||||
| 327 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 328 | 0 | return $f | |||||||||
| 329 | } else { | ||||||||||
| 330 | 0 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::StatementThree->new( %$_ ); | |||||||||
| 331 | } | ||||||||||
| 332 | 1 | }; | |||||||||
| 333 | |||||||||||
| 334 | 1 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::StatementThree { | |||||||||
| 335 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 336 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 337 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 338 | |||||||||||
| 339 | 1 | has ByteMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::ByteMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 340 | 1 | has GeoMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::GeoMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 341 | 1 | has IPSetReferenceStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::IPSetReferenceStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 342 | 1 | has RegexPatternSetReferenceStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RegexPatternSetReferenceStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 343 | 1 | has SizeConstraintStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::SizeConstraintStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 344 | 1 | has SqliMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::SqliMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 345 | 1 | has XssMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::XssMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 346 | } | ||||||||||
| 347 | |||||||||||
| 348 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RateBasedStatementTwo', | |||||||||
| 349 | as 'Cfn::Value'; | ||||||||||
| 350 | |||||||||||
| 351 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RateBasedStatementTwo', | ||||||||||
| 352 | from 'HashRef', | ||||||||||
| 353 | via { | ||||||||||
| 354 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 355 | 0 | return $f | |||||||||
| 356 | } else { | ||||||||||
| 357 | 0 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::RateBasedStatementTwo->new( %$_ ); | |||||||||
| 358 | } | ||||||||||
| 359 | 1 | }; | |||||||||
| 360 | |||||||||||
| 361 | 1 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::RateBasedStatementTwo { | |||||||||
| 362 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 363 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 364 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 365 | |||||||||||
| 366 | 1 | has AggregateKeyType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 367 | 1 | has ForwardedIPConfig => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::ForwardedIPConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 368 | 1 | has Limit => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 369 | 1 | has ScopeDownStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementThree', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 370 | } | ||||||||||
| 371 | |||||||||||
| 372 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::OrStatementTwo', | |||||||||
| 373 | as 'Cfn::Value'; | ||||||||||
| 374 | |||||||||||
| 375 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::OrStatementTwo', | ||||||||||
| 376 | from 'HashRef', | ||||||||||
| 377 | via { | ||||||||||
| 378 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 379 | 0 | return $f | |||||||||
| 380 | } else { | ||||||||||
| 381 | 0 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::OrStatementTwo->new( %$_ ); | |||||||||
| 382 | } | ||||||||||
| 383 | 1 | }; | |||||||||
| 384 | |||||||||||
| 385 | 1 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::OrStatementTwo { | |||||||||
| 386 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 387 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 388 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 389 | |||||||||||
| 390 | 1 | has Statements => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementThree', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 391 | } | ||||||||||
| 392 | |||||||||||
| 393 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::NotStatementTwo', | |||||||||
| 394 | as 'Cfn::Value'; | ||||||||||
| 395 | |||||||||||
| 396 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::NotStatementTwo', | ||||||||||
| 397 | from 'HashRef', | ||||||||||
| 398 | via { | ||||||||||
| 399 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 400 | 0 | return $f | |||||||||
| 401 | } else { | ||||||||||
| 402 | 0 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::NotStatementTwo->new( %$_ ); | |||||||||
| 403 | } | ||||||||||
| 404 | 1 | }; | |||||||||
| 405 | |||||||||||
| 406 | 1 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::NotStatementTwo { | |||||||||
| 407 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 408 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 409 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 410 | |||||||||||
| 411 | 1 | has Statement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementThree', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 412 | } | ||||||||||
| 413 | |||||||||||
| 414 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::AndStatementTwo', | |||||||||
| 415 | as 'Cfn::Value'; | ||||||||||
| 416 | |||||||||||
| 417 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::AndStatementTwo', | ||||||||||
| 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
| |||||||||||
| 421 | 0 | return $f | |||||||||
| 422 | } else { | ||||||||||
| 423 | 0 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::AndStatementTwo->new( %$_ ); | |||||||||
| 424 | } | ||||||||||
| 425 | 1 | }; | |||||||||
| 426 | |||||||||||
| 427 | 1 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::AndStatementTwo { | |||||||||
| 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::RuleGroup::StatementThree', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 433 | } | ||||||||||
| 434 | subtype 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementTwo', | ||||||||||
| 435 | as 'Cfn::Value', | ||||||||||
| 436 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 437 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 438 | |||||||||||
| 439 | coerce 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementTwo', | ||||||||||
| 440 | from 'HashRef', | ||||||||||
| 441 | via { | ||||||||||
| 442 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 443 | 0 | return $f | |||||||||
| 444 | } else { | ||||||||||
| 445 | 0 | die 'Only accepts functions'; | |||||||||
| 446 | } | ||||||||||
| 447 | }, | ||||||||||
| 448 | from 'ArrayRef', | ||||||||||
| 449 | via { | ||||||||||
| 450 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 451 | map { | ||||||||||
| 452 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementTwo')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 453 | } @$_ | ||||||||||
| 454 | ]); | ||||||||||
| 455 | 1 | }; | |||||||||
| 456 | |||||||||||
| 457 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementTwo', | |||||||||
| 458 | as 'Cfn::Value'; | ||||||||||
| 459 | |||||||||||
| 460 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementTwo', | ||||||||||
| 461 | from 'HashRef', | ||||||||||
| 462 | via { | ||||||||||
| 463 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 464 | 0 | return $f | |||||||||
| 465 | } else { | ||||||||||
| 466 | 0 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::StatementTwo->new( %$_ ); | |||||||||
| 467 | } | ||||||||||
| 468 | 1 | }; | |||||||||
| 469 | |||||||||||
| 470 | 1 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::StatementTwo { | |||||||||
| 471 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 472 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 473 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 474 | |||||||||||
| 475 | 1 | has AndStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::AndStatementTwo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 476 | 1 | has ByteMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::ByteMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 477 | 1 | has GeoMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::GeoMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 478 | 1 | has IPSetReferenceStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::IPSetReferenceStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 479 | 1 | has NotStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::NotStatementTwo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 480 | 1 | has OrStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::OrStatementTwo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 481 | 1 | has RateBasedStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RateBasedStatementTwo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 482 | 1 | has RegexPatternSetReferenceStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RegexPatternSetReferenceStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 483 | 1 | has SizeConstraintStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::SizeConstraintStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 484 | 1 | has SqliMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::SqliMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 485 | 1 | has XssMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::XssMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 486 | } | ||||||||||
| 487 | |||||||||||
| 488 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RateBasedStatementOne', | |||||||||
| 489 | as 'Cfn::Value'; | ||||||||||
| 490 | |||||||||||
| 491 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RateBasedStatementOne', | ||||||||||
| 492 | from 'HashRef', | ||||||||||
| 493 | via { | ||||||||||
| 494 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 495 | 0 | return $f | |||||||||
| 496 | } else { | ||||||||||
| 497 | 0 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::RateBasedStatementOne->new( %$_ ); | |||||||||
| 498 | } | ||||||||||
| 499 | 1 | }; | |||||||||
| 500 | |||||||||||
| 501 | 1 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::RateBasedStatementOne { | |||||||||
| 502 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 503 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 504 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 505 | |||||||||||
| 506 | 1 | has AggregateKeyType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 507 | 1 | has ForwardedIPConfig => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::ForwardedIPConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 508 | 1 | has Limit => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 509 | 1 | has ScopeDownStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementTwo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 510 | } | ||||||||||
| 511 | |||||||||||
| 512 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::OrStatementOne', | |||||||||
| 513 | as 'Cfn::Value'; | ||||||||||
| 514 | |||||||||||
| 515 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::OrStatementOne', | ||||||||||
| 516 | from 'HashRef', | ||||||||||
| 517 | via { | ||||||||||
| 518 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 519 | 0 | return $f | |||||||||
| 520 | } else { | ||||||||||
| 521 | 0 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::OrStatementOne->new( %$_ ); | |||||||||
| 522 | } | ||||||||||
| 523 | 1 | }; | |||||||||
| 524 | |||||||||||
| 525 | 1 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::OrStatementOne { | |||||||||
| 526 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 527 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 528 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 529 | |||||||||||
| 530 | 1 | has Statements => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementTwo', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 531 | } | ||||||||||
| 532 | |||||||||||
| 533 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::NotStatementOne', | |||||||||
| 534 | as 'Cfn::Value'; | ||||||||||
| 535 | |||||||||||
| 536 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::NotStatementOne', | ||||||||||
| 537 | from 'HashRef', | ||||||||||
| 538 | via { | ||||||||||
| 539 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 540 | 0 | return $f | |||||||||
| 541 | } else { | ||||||||||
| 542 | 0 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::NotStatementOne->new( %$_ ); | |||||||||
| 543 | } | ||||||||||
| 544 | 1 | }; | |||||||||
| 545 | |||||||||||
| 546 | 1 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::NotStatementOne { | |||||||||
| 547 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 548 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 549 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 550 | |||||||||||
| 551 | 1 | has Statement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementTwo', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 552 | } | ||||||||||
| 553 | |||||||||||
| 554 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::AndStatementOne', | |||||||||
| 555 | as 'Cfn::Value'; | ||||||||||
| 556 | |||||||||||
| 557 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::AndStatementOne', | ||||||||||
| 558 | from 'HashRef', | ||||||||||
| 559 | via { | ||||||||||
| 560 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 561 | 0 | return $f | |||||||||
| 562 | } else { | ||||||||||
| 563 | 0 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::AndStatementOne->new( %$_ ); | |||||||||
| 564 | } | ||||||||||
| 565 | 1 | }; | |||||||||
| 566 | |||||||||||
| 567 | 1 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::AndStatementOne { | |||||||||
| 568 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 569 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 570 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 571 | |||||||||||
| 572 | 1 | has Statements => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementTwo', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 573 | } | ||||||||||
| 574 | |||||||||||
| 575 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::VisibilityConfig', | |||||||||
| 576 | as 'Cfn::Value'; | ||||||||||
| 577 | |||||||||||
| 578 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::VisibilityConfig', | ||||||||||
| 579 | from 'HashRef', | ||||||||||
| 580 | via { | ||||||||||
| 581 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 582 | 0 | return $f | |||||||||
| 583 | } else { | ||||||||||
| 584 | 0 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::VisibilityConfig->new( %$_ ); | |||||||||
| 585 | } | ||||||||||
| 586 | 1 | }; | |||||||||
| 587 | |||||||||||
| 588 | 1 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::VisibilityConfig { | |||||||||
| 589 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 590 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 591 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 592 | |||||||||||
| 593 | 1 | has CloudWatchMetricsEnabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 594 | 1 | has MetricName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 595 | 1 | has SampledRequestsEnabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 596 | } | ||||||||||
| 597 | |||||||||||
| 598 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementOne', | |||||||||
| 599 | as 'Cfn::Value'; | ||||||||||
| 600 | |||||||||||
| 601 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementOne', | ||||||||||
| 602 | from 'HashRef', | ||||||||||
| 603 | via { | ||||||||||
| 604 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 605 | 0 | return $f | |||||||||
| 606 | } else { | ||||||||||
| 607 | 0 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::StatementOne->new( %$_ ); | |||||||||
| 608 | } | ||||||||||
| 609 | 1 | }; | |||||||||
| 610 | |||||||||||
| 611 | 1 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::StatementOne { | |||||||||
| 612 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 613 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 614 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 615 | |||||||||||
| 616 | 1 | has AndStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::AndStatementOne', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 617 | 1 | has ByteMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::ByteMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 618 | 1 | has GeoMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::GeoMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 619 | 1 | has IPSetReferenceStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::IPSetReferenceStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 620 | 1 | has NotStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::NotStatementOne', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 621 | 1 | has OrStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::OrStatementOne', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 622 | 1 | has RateBasedStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RateBasedStatementOne', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 623 | 1 | has RegexPatternSetReferenceStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RegexPatternSetReferenceStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 624 | 1 | has SizeConstraintStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::SizeConstraintStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 625 | 1 | has SqliMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::SqliMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 626 | 1 | has XssMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::XssMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 627 | } | ||||||||||
| 628 | |||||||||||
| 629 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RuleAction', | |||||||||
| 630 | as 'Cfn::Value'; | ||||||||||
| 631 | |||||||||||
| 632 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RuleAction', | ||||||||||
| 633 | from 'HashRef', | ||||||||||
| 634 | via { | ||||||||||
| 635 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 636 | 0 | return $f | |||||||||
| 637 | } else { | ||||||||||
| 638 | 0 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::RuleAction->new( %$_ ); | |||||||||
| 639 | } | ||||||||||
| 640 | 1 | }; | |||||||||
| 641 | |||||||||||
| 642 | 1 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::RuleAction { | |||||||||
| 643 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 644 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 645 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 646 | |||||||||||
| 647 | 1 | has Allow => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 648 | 1 | has Block => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 649 | 1 | has Count => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 650 | } | ||||||||||
| 651 | subtype 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::Rule', | ||||||||||
| 652 | as 'Cfn::Value', | ||||||||||
| 653 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 654 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 655 | |||||||||||
| 656 | coerce 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::Rule', | ||||||||||
| 657 | from 'HashRef', | ||||||||||
| 658 | via { | ||||||||||
| 659 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 660 | 0 | return $f | |||||||||
| 661 | } else { | ||||||||||
| 662 | 0 | die 'Only accepts functions'; | |||||||||
| 663 | } | ||||||||||
| 664 | }, | ||||||||||
| 665 | from 'ArrayRef', | ||||||||||
| 666 | via { | ||||||||||
| 667 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 668 | map { | ||||||||||
| 669 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::Rule')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 670 | } @$_ | ||||||||||
| 671 | ]); | ||||||||||
| 672 | 1 | }; | |||||||||
| 673 | |||||||||||
| 674 | 1 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::Rule', | |||||||||
| 675 | as 'Cfn::Value'; | ||||||||||
| 676 | |||||||||||
| 677 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::Rule', | ||||||||||
| 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
| |||||||||||
| 681 | 0 | return $f | |||||||||
| 682 | } else { | ||||||||||
| 683 | 0 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::Rule->new( %$_ ); | |||||||||
| 684 | } | ||||||||||
| 685 | 1 | }; | |||||||||
| 686 | |||||||||||
| 687 | 1 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::Rule { | |||||||||
| 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 Action => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RuleAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 693 | 1 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 694 | 1 | has Priority => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 695 | 1 | has Statement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementOne', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 696 | 1 | has VisibilityConfig => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::VisibilityConfig', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 697 | } | ||||||||||
| 698 | |||||||||||
| 699 | 1 | package Cfn::Resource::Properties::AWS::WAFv2::RuleGroup { | |||||||||
| 700 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 701 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 702 | 1 | extends 'Cfn::Resource::Properties'; | |||||||||
| 703 | |||||||||||
| 704 | 1 | has Capacity => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 705 | 1 | has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 706 | 1 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 707 | 1 | has Rules => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::Rule', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 708 | 1 | has Scope => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 709 | 1 | has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 710 | 1 | has VisibilityConfig => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::VisibilityConfig', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 711 | } | ||||||||||
| 712 | |||||||||||
| 713 | 1 | 1; | |||||||||
| 714 | ### main pod documentation begin ### | ||||||||||
| 715 | |||||||||||
| 716 | =encoding UTF-8 | ||||||||||
| 717 | |||||||||||
| 718 | =head1 NAME | ||||||||||
| 719 | |||||||||||
| 720 | Cfn::Resource::AWS::WAFv2::RuleGroup - Cfn resource for AWS::WAFv2::RuleGroup | ||||||||||
| 721 | |||||||||||
| 722 | =head1 DESCRIPTION | ||||||||||
| 723 | |||||||||||
| 724 | This module implements a Perl module that represents the CloudFormation object AWS::WAFv2::RuleGroup. | ||||||||||
| 725 | |||||||||||
| 726 | See L<Cfn> for more information on how to use it. | ||||||||||
| 727 | |||||||||||
| 728 | =head1 AUTHOR | ||||||||||
| 729 | |||||||||||
| 730 | Jose Luis Martinez | ||||||||||
| 731 | CAPSiDE | ||||||||||
| 732 | jlmartinez@capside.com | ||||||||||
| 733 | |||||||||||
| 734 | =head1 COPYRIGHT and LICENSE | ||||||||||
| 735 | |||||||||||
| 736 | Copyright (c) 2013 by CAPSiDE | ||||||||||
| 737 | This code is distributed under the Apache 2 License. The full text of the | ||||||||||
| 738 | license can be found in the LICENSE file included with this module. | ||||||||||
| 739 | |||||||||||
| 740 | =cut | ||||||||||