| 1 | # AWS::WAFv2::WebACL generated from spec 34.0.0 | ||
| 2 | use Moose::Util::TypeConstraints; | ||
| 3 | |||
| 4 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL', | ||
| 5 | from 'HashRef', | ||
| 6 | via { Cfn::Resource::Properties::AWS::WAFv2::WebACL->new( %$_ ) }; | ||
| 7 | |||
| 8 | package Cfn::Resource::AWS::WAFv2::WebACL { | ||
| 9 | use Moose; | ||
| 10 | extends 'Cfn::Resource'; | ||
| 11 | has Properties => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL', is => 'rw', coerce => 1); | ||
| 12 | |||
| 13 | sub AttributeList { | ||
| 14 | [ 'Arn','Capacity','Id','LabelNamespace' ] | ||
| 15 | } | ||
| 16 | sub supported_regions { | ||
| 17 | [ 'af-south-1','ap-east-1','ap-northeast-1','ap-northeast-2','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','cn-north-1','cn-northwest-1','eu-central-1','eu-north-1','eu-south-1','eu-west-1','eu-west-2','eu-west-3','me-south-1','sa-east-1','us-east-1','us-east-2','us-gov-east-1','us-gov-west-1','us-west-1','us-west-2' ] | ||
| 18 | } | ||
| 19 | } | ||
| 20 | |||
| 21 | |||
| 22 | |||
| 23 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::JsonMatchPattern', | ||
| 24 | as 'Cfn::Value'; | ||
| 25 | |||
| 26 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::JsonMatchPattern', | ||
| 27 | from 'HashRef', | ||
| 28 | via { | ||
| 29 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 30 | return $f | ||
| 31 | } else { | ||
| 32 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::JsonMatchPattern->new( %$_ ); | ||
| 33 | } | ||
| 34 | }; | ||
| 35 | |||
| 36 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::JsonMatchPattern { | ||
| 37 | use Moose; | ||
| 38 | use MooseX::StrictConstructor; | ||
| 39 | extends 'Cfn::Value::TypedValue'; | ||
| 40 | |||
| 41 | has All => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 42 | has IncludedPaths => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 43 | } | ||
| 44 | |||
| 45 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::JsonBody', | ||
| 46 | as 'Cfn::Value'; | ||
| 47 | |||
| 48 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::JsonBody', | ||
| 49 | from 'HashRef', | ||
| 50 | via { | ||
| 51 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 52 | return $f | ||
| 53 | } else { | ||
| 54 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::JsonBody->new( %$_ ); | ||
| 55 | } | ||
| 56 | }; | ||
| 57 | |||
| 58 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::JsonBody { | ||
| 59 | use Moose; | ||
| 60 | use MooseX::StrictConstructor; | ||
| 61 | extends 'Cfn::Value::TypedValue'; | ||
| 62 | |||
| 63 | has InvalidFallbackBehavior => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 64 | has MatchPattern => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::JsonMatchPattern', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 65 | has MatchScope => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 66 | } | ||
| 67 | subtype 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::TextTransformation', | ||
| 68 | as 'Cfn::Value', | ||
| 69 | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||
| 70 | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||
| 71 | |||
| 72 | coerce 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::TextTransformation', | ||
| 73 | from 'HashRef', | ||
| 74 | via { | ||
| 75 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 76 | return $f | ||
| 77 | } else { | ||
| 78 | die 'Only accepts functions'; | ||
| 79 | } | ||
| 80 | }, | ||
| 81 | from 'ArrayRef', | ||
| 82 | via { | ||
| 83 | Cfn::Value::Array->new(Value => [ | ||
| 84 | map { | ||
| 85 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::WAFv2::WebACL::TextTransformation')->coerce($_) | ||
| 86 | } @$_ | ||
| 87 | ]); | ||
| 88 | }; | ||
| 89 | |||
| 90 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::TextTransformation', | ||
| 91 | as 'Cfn::Value'; | ||
| 92 | |||
| 93 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::TextTransformation', | ||
| 94 | from 'HashRef', | ||
| 95 | via { | ||
| 96 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 97 | return $f | ||
| 98 | } else { | ||
| 99 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::TextTransformation->new( %$_ ); | ||
| 100 | } | ||
| 101 | }; | ||
| 102 | |||
| 103 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::TextTransformation { | ||
| 104 | use Moose; | ||
| 105 | use MooseX::StrictConstructor; | ||
| 106 | extends 'Cfn::Value::TypedValue'; | ||
| 107 | |||
| 108 | has Priority => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 109 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 110 | } | ||
| 111 | |||
| 112 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::IPSetForwardedIPConfiguration', | ||
| 113 | as 'Cfn::Value'; | ||
| 114 | |||
| 115 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::IPSetForwardedIPConfiguration', | ||
| 116 | from 'HashRef', | ||
| 117 | via { | ||
| 118 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 119 | return $f | ||
| 120 | } else { | ||
| 121 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::IPSetForwardedIPConfiguration->new( %$_ ); | ||
| 122 | } | ||
| 123 | }; | ||
| 124 | |||
| 125 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::IPSetForwardedIPConfiguration { | ||
| 126 | use Moose; | ||
| 127 | use MooseX::StrictConstructor; | ||
| 128 | extends 'Cfn::Value::TypedValue'; | ||
| 129 | |||
| 130 | has FallbackBehavior => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 131 | has HeaderName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 132 | has Position => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 133 | } | ||
| 134 | |||
| 135 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::ForwardedIPConfiguration', | ||
| 136 | as 'Cfn::Value'; | ||
| 137 | |||
| 138 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::ForwardedIPConfiguration', | ||
| 139 | from 'HashRef', | ||
| 140 | via { | ||
| 141 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 142 | return $f | ||
| 143 | } else { | ||
| 144 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::ForwardedIPConfiguration->new( %$_ ); | ||
| 145 | } | ||
| 146 | }; | ||
| 147 | |||
| 148 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::ForwardedIPConfiguration { | ||
| 149 | use Moose; | ||
| 150 | use MooseX::StrictConstructor; | ||
| 151 | extends 'Cfn::Value::TypedValue'; | ||
| 152 | |||
| 153 | has FallbackBehavior => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 154 | has HeaderName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 155 | } | ||
| 156 | |||
| 157 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::FieldToMatch', | ||
| 158 | as 'Cfn::Value'; | ||
| 159 | |||
| 160 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::FieldToMatch', | ||
| 161 | from 'HashRef', | ||
| 162 | via { | ||
| 163 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 164 | return $f | ||
| 165 | } else { | ||
| 166 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::FieldToMatch->new( %$_ ); | ||
| 167 | } | ||
| 168 | }; | ||
| 169 | |||
| 170 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::FieldToMatch { | ||
| 171 | use Moose; | ||
| 172 | use MooseX::StrictConstructor; | ||
| 173 | extends 'Cfn::Value::TypedValue'; | ||
| 174 | |||
| 175 | has AllQueryArguments => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 176 | has Body => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 177 | has JsonBody => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::JsonBody', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 178 | has Method => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 179 | has QueryString => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 180 | has SingleHeader => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 181 | has SingleQueryArgument => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 182 | has UriPath => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 183 | } | ||
| 184 | subtype 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::ExcludedRule', | ||
| 185 | as 'Cfn::Value', | ||
| 186 | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||
| 187 | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||
| 188 | |||
| 189 | coerce 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::ExcludedRule', | ||
| 190 | from 'HashRef', | ||
| 191 | via { | ||
| 192 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 193 | return $f | ||
| 194 | } else { | ||
| 195 | die 'Only accepts functions'; | ||
| 196 | } | ||
| 197 | }, | ||
| 198 | from 'ArrayRef', | ||
| 199 | via { | ||
| 200 | Cfn::Value::Array->new(Value => [ | ||
| 201 | map { | ||
| 202 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::WAFv2::WebACL::ExcludedRule')->coerce($_) | ||
| 203 | } @$_ | ||
| 204 | ]); | ||
| 205 | }; | ||
| 206 | |||
| 207 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::ExcludedRule', | ||
| 208 | as 'Cfn::Value'; | ||
| 209 | |||
| 210 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::ExcludedRule', | ||
| 211 | from 'HashRef', | ||
| 212 | via { | ||
| 213 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 214 | return $f | ||
| 215 | } else { | ||
| 216 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::ExcludedRule->new( %$_ ); | ||
| 217 | } | ||
| 218 | }; | ||
| 219 | |||
| 220 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::ExcludedRule { | ||
| 221 | use Moose; | ||
| 222 | use MooseX::StrictConstructor; | ||
| 223 | extends 'Cfn::Value::TypedValue'; | ||
| 224 | |||
| 225 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 226 | } | ||
| 227 | |||
| 228 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::XssMatchStatement', | ||
| 229 | as 'Cfn::Value'; | ||
| 230 | |||
| 231 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::XssMatchStatement', | ||
| 232 | from 'HashRef', | ||
| 233 | via { | ||
| 234 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 235 | return $f | ||
| 236 | } else { | ||
| 237 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::XssMatchStatement->new( %$_ ); | ||
| 238 | } | ||
| 239 | }; | ||
| 240 | |||
| 241 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::XssMatchStatement { | ||
| 242 | use Moose; | ||
| 243 | use MooseX::StrictConstructor; | ||
| 244 | extends 'Cfn::Value::TypedValue'; | ||
| 245 | |||
| 246 | has FieldToMatch => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::FieldToMatch', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 247 | has TextTransformations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::TextTransformation', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 248 | } | ||
| 249 | |||
| 250 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::SqliMatchStatement', | ||
| 251 | as 'Cfn::Value'; | ||
| 252 | |||
| 253 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::SqliMatchStatement', | ||
| 254 | from 'HashRef', | ||
| 255 | via { | ||
| 256 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 257 | return $f | ||
| 258 | } else { | ||
| 259 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::SqliMatchStatement->new( %$_ ); | ||
| 260 | } | ||
| 261 | }; | ||
| 262 | |||
| 263 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::SqliMatchStatement { | ||
| 264 | use Moose; | ||
| 265 | use MooseX::StrictConstructor; | ||
| 266 | extends 'Cfn::Value::TypedValue'; | ||
| 267 | |||
| 268 | has FieldToMatch => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::FieldToMatch', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 269 | has TextTransformations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::TextTransformation', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 270 | } | ||
| 271 | |||
| 272 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::SizeConstraintStatement', | ||
| 273 | as 'Cfn::Value'; | ||
| 274 | |||
| 275 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::SizeConstraintStatement', | ||
| 276 | from 'HashRef', | ||
| 277 | via { | ||
| 278 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 279 | return $f | ||
| 280 | } else { | ||
| 281 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::SizeConstraintStatement->new( %$_ ); | ||
| 282 | } | ||
| 283 | }; | ||
| 284 | |||
| 285 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::SizeConstraintStatement { | ||
| 286 | use Moose; | ||
| 287 | use MooseX::StrictConstructor; | ||
| 288 | extends 'Cfn::Value::TypedValue'; | ||
| 289 | |||
| 290 | has ComparisonOperator => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 291 | has FieldToMatch => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::FieldToMatch', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 292 | has Size => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 293 | has TextTransformations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::TextTransformation', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 294 | } | ||
| 295 | |||
| 296 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::RuleGroupReferenceStatement', | ||
| 297 | as 'Cfn::Value'; | ||
| 298 | |||
| 299 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::RuleGroupReferenceStatement', | ||
| 300 | from 'HashRef', | ||
| 301 | via { | ||
| 302 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 303 | return $f | ||
| 304 | } else { | ||
| 305 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::RuleGroupReferenceStatement->new( %$_ ); | ||
| 306 | } | ||
| 307 | }; | ||
| 308 | |||
| 309 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::RuleGroupReferenceStatement { | ||
| 310 | use Moose; | ||
| 311 | use MooseX::StrictConstructor; | ||
| 312 | extends 'Cfn::Value::TypedValue'; | ||
| 313 | |||
| 314 | has Arn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 315 | has ExcludedRules => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::ExcludedRule', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 316 | } | ||
| 317 | |||
| 318 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::RegexPatternSetReferenceStatement', | ||
| 319 | as 'Cfn::Value'; | ||
| 320 | |||
| 321 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::RegexPatternSetReferenceStatement', | ||
| 322 | from 'HashRef', | ||
| 323 | via { | ||
| 324 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 325 | return $f | ||
| 326 | } else { | ||
| 327 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::RegexPatternSetReferenceStatement->new( %$_ ); | ||
| 328 | } | ||
| 329 | }; | ||
| 330 | |||
| 331 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::RegexPatternSetReferenceStatement { | ||
| 332 | use Moose; | ||
| 333 | use MooseX::StrictConstructor; | ||
| 334 | extends 'Cfn::Value::TypedValue'; | ||
| 335 | |||
| 336 | has Arn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 337 | has FieldToMatch => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::FieldToMatch', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 338 | has TextTransformations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::TextTransformation', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 339 | } | ||
| 340 | |||
| 341 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::LabelMatchStatement', | ||
| 342 | as 'Cfn::Value'; | ||
| 343 | |||
| 344 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::LabelMatchStatement', | ||
| 345 | from 'HashRef', | ||
| 346 | via { | ||
| 347 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 348 | return $f | ||
| 349 | } else { | ||
| 350 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::LabelMatchStatement->new( %$_ ); | ||
| 351 | } | ||
| 352 | }; | ||
| 353 | |||
| 354 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::LabelMatchStatement { | ||
| 355 | use Moose; | ||
| 356 | use MooseX::StrictConstructor; | ||
| 357 | extends 'Cfn::Value::TypedValue'; | ||
| 358 | |||
| 359 | has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 360 | has Scope => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 361 | } | ||
| 362 | |||
| 363 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::IPSetReferenceStatement', | ||
| 364 | as 'Cfn::Value'; | ||
| 365 | |||
| 366 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::IPSetReferenceStatement', | ||
| 367 | from 'HashRef', | ||
| 368 | via { | ||
| 369 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 370 | return $f | ||
| 371 | } else { | ||
| 372 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::IPSetReferenceStatement->new( %$_ ); | ||
| 373 | } | ||
| 374 | }; | ||
| 375 | |||
| 376 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::IPSetReferenceStatement { | ||
| 377 | use Moose; | ||
| 378 | use MooseX::StrictConstructor; | ||
| 379 | extends 'Cfn::Value::TypedValue'; | ||
| 380 | |||
| 381 | has Arn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 382 | has IPSetForwardedIPConfig => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::IPSetForwardedIPConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 383 | } | ||
| 384 | |||
| 385 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::GeoMatchStatement', | ||
| 386 | as 'Cfn::Value'; | ||
| 387 | |||
| 388 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::GeoMatchStatement', | ||
| 389 | from 'HashRef', | ||
| 390 | via { | ||
| 391 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 392 | return $f | ||
| 393 | } else { | ||
| 394 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::GeoMatchStatement->new( %$_ ); | ||
| 395 | } | ||
| 396 | }; | ||
| 397 | |||
| 398 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::GeoMatchStatement { | ||
| 399 | use Moose; | ||
| 400 | use MooseX::StrictConstructor; | ||
| 401 | extends 'Cfn::Value::TypedValue'; | ||
| 402 | |||
| 403 | has CountryCodes => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 404 | has ForwardedIPConfig => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::ForwardedIPConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 405 | } | ||
| 406 | |||
| 407 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::ByteMatchStatement', | ||
| 408 | as 'Cfn::Value'; | ||
| 409 | |||
| 410 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::ByteMatchStatement', | ||
| 411 | from 'HashRef', | ||
| 412 | via { | ||
| 413 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 414 | return $f | ||
| 415 | } else { | ||
| 416 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::ByteMatchStatement->new( %$_ ); | ||
| 417 | } | ||
| 418 | }; | ||
| 419 | |||
| 420 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::ByteMatchStatement { | ||
| 421 | use Moose; | ||
| 422 | use MooseX::StrictConstructor; | ||
| 423 | extends 'Cfn::Value::TypedValue'; | ||
| 424 | |||
| 425 | has FieldToMatch => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::FieldToMatch', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 426 | has PositionalConstraint => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 427 | has SearchString => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 428 | has SearchStringBase64 => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 429 | has TextTransformations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::TextTransformation', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 430 | } | ||
| 431 | subtype 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::StatementThree', | ||
| 432 | as 'Cfn::Value', | ||
| 433 | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||
| 434 | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||
| 435 | |||
| 436 | coerce 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::StatementThree', | ||
| 437 | from 'HashRef', | ||
| 438 | via { | ||
| 439 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 440 | return $f | ||
| 441 | } else { | ||
| 442 | die 'Only accepts functions'; | ||
| 443 | } | ||
| 444 | }, | ||
| 445 | from 'ArrayRef', | ||
| 446 | via { | ||
| 447 | Cfn::Value::Array->new(Value => [ | ||
| 448 | map { | ||
| 449 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::WAFv2::WebACL::StatementThree')->coerce($_) | ||
| 450 | } @$_ | ||
| 451 | ]); | ||
| 452 | }; | ||
| 453 | |||
| 454 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::StatementThree', | ||
| 455 | as 'Cfn::Value'; | ||
| 456 | |||
| 457 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::StatementThree', | ||
| 458 | from 'HashRef', | ||
| 459 | via { | ||
| 460 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 461 | return $f | ||
| 462 | } else { | ||
| 463 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::StatementThree->new( %$_ ); | ||
| 464 | } | ||
| 465 | }; | ||
| 466 | |||
| 467 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::StatementThree { | ||
| 468 | use Moose; | ||
| 469 | use MooseX::StrictConstructor; | ||
| 470 | extends 'Cfn::Value::TypedValue'; | ||
| 471 | |||
| 472 | has ByteMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::ByteMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 473 | has GeoMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::GeoMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 474 | has IPSetReferenceStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::IPSetReferenceStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 475 | has LabelMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::LabelMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 476 | has RegexPatternSetReferenceStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::RegexPatternSetReferenceStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 477 | has RuleGroupReferenceStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::RuleGroupReferenceStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 478 | has SizeConstraintStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::SizeConstraintStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 479 | has SqliMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::SqliMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 480 | has XssMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::XssMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 481 | } | ||
| 482 | |||
| 483 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::RateBasedStatementTwo', | ||
| 484 | as 'Cfn::Value'; | ||
| 485 | |||
| 486 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::RateBasedStatementTwo', | ||
| 487 | from 'HashRef', | ||
| 488 | via { | ||
| 489 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 490 | return $f | ||
| 491 | } else { | ||
| 492 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::RateBasedStatementTwo->new( %$_ ); | ||
| 493 | } | ||
| 494 | }; | ||
| 495 | |||
| 496 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::RateBasedStatementTwo { | ||
| 497 | use Moose; | ||
| 498 | use MooseX::StrictConstructor; | ||
| 499 | extends 'Cfn::Value::TypedValue'; | ||
| 500 | |||
| 501 | has AggregateKeyType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 502 | has ForwardedIPConfig => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::ForwardedIPConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 503 | has Limit => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 504 | has ScopeDownStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::StatementThree', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 505 | } | ||
| 506 | |||
| 507 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::OrStatementTwo', | ||
| 508 | as 'Cfn::Value'; | ||
| 509 | |||
| 510 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::OrStatementTwo', | ||
| 511 | from 'HashRef', | ||
| 512 | via { | ||
| 513 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 514 | return $f | ||
| 515 | } else { | ||
| 516 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::OrStatementTwo->new( %$_ ); | ||
| 517 | } | ||
| 518 | }; | ||
| 519 | |||
| 520 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::OrStatementTwo { | ||
| 521 | use Moose; | ||
| 522 | use MooseX::StrictConstructor; | ||
| 523 | extends 'Cfn::Value::TypedValue'; | ||
| 524 | |||
| 525 | has Statements => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::StatementThree', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 526 | } | ||
| 527 | |||
| 528 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::NotStatementTwo', | ||
| 529 | as 'Cfn::Value'; | ||
| 530 | |||
| 531 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::NotStatementTwo', | ||
| 532 | from 'HashRef', | ||
| 533 | via { | ||
| 534 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 535 | return $f | ||
| 536 | } else { | ||
| 537 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::NotStatementTwo->new( %$_ ); | ||
| 538 | } | ||
| 539 | }; | ||
| 540 | |||
| 541 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::NotStatementTwo { | ||
| 542 | use Moose; | ||
| 543 | use MooseX::StrictConstructor; | ||
| 544 | extends 'Cfn::Value::TypedValue'; | ||
| 545 | |||
| 546 | has Statement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::StatementThree', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 547 | } | ||
| 548 | subtype 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::CustomHTTPHeader', | ||
| 549 | as 'Cfn::Value', | ||
| 550 | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||
| 551 | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||
| 552 | |||
| 553 | coerce 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::CustomHTTPHeader', | ||
| 554 | from 'HashRef', | ||
| 555 | via { | ||
| 556 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 557 | return $f | ||
| 558 | } else { | ||
| 559 | die 'Only accepts functions'; | ||
| 560 | } | ||
| 561 | }, | ||
| 562 | from 'ArrayRef', | ||
| 563 | via { | ||
| 564 | Cfn::Value::Array->new(Value => [ | ||
| 565 | map { | ||
| 566 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::WAFv2::WebACL::CustomHTTPHeader')->coerce($_) | ||
| 567 | } @$_ | ||
| 568 | ]); | ||
| 569 | }; | ||
| 570 | |||
| 571 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::CustomHTTPHeader', | ||
| 572 | as 'Cfn::Value'; | ||
| 573 | |||
| 574 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::CustomHTTPHeader', | ||
| 575 | from 'HashRef', | ||
| 576 | via { | ||
| 577 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 578 | return $f | ||
| 579 | } else { | ||
| 580 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::CustomHTTPHeader->new( %$_ ); | ||
| 581 | } | ||
| 582 | }; | ||
| 583 | |||
| 584 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::CustomHTTPHeader { | ||
| 585 | use Moose; | ||
| 586 | use MooseX::StrictConstructor; | ||
| 587 | extends 'Cfn::Value::TypedValue'; | ||
| 588 | |||
| 589 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 590 | has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 591 | } | ||
| 592 | |||
| 593 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::AndStatementTwo', | ||
| 594 | as 'Cfn::Value'; | ||
| 595 | |||
| 596 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::AndStatementTwo', | ||
| 597 | from 'HashRef', | ||
| 598 | via { | ||
| 599 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 600 | return $f | ||
| 601 | } else { | ||
| 602 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::AndStatementTwo->new( %$_ ); | ||
| 603 | } | ||
| 604 | }; | ||
| 605 | |||
| 606 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::AndStatementTwo { | ||
| 607 | use Moose; | ||
| 608 | use MooseX::StrictConstructor; | ||
| 609 | extends 'Cfn::Value::TypedValue'; | ||
| 610 | |||
| 611 | has Statements => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::StatementThree', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 612 | } | ||
| 613 | subtype 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::StatementTwo', | ||
| 614 | as 'Cfn::Value', | ||
| 615 | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||
| 616 | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||
| 617 | |||
| 618 | coerce 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::StatementTwo', | ||
| 619 | from 'HashRef', | ||
| 620 | via { | ||
| 621 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 622 | return $f | ||
| 623 | } else { | ||
| 624 | die 'Only accepts functions'; | ||
| 625 | } | ||
| 626 | }, | ||
| 627 | from 'ArrayRef', | ||
| 628 | via { | ||
| 629 | Cfn::Value::Array->new(Value => [ | ||
| 630 | map { | ||
| 631 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::WAFv2::WebACL::StatementTwo')->coerce($_) | ||
| 632 | } @$_ | ||
| 633 | ]); | ||
| 634 | }; | ||
| 635 | |||
| 636 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::StatementTwo', | ||
| 637 | as 'Cfn::Value'; | ||
| 638 | |||
| 639 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::StatementTwo', | ||
| 640 | from 'HashRef', | ||
| 641 | via { | ||
| 642 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 643 | return $f | ||
| 644 | } else { | ||
| 645 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::StatementTwo->new( %$_ ); | ||
| 646 | } | ||
| 647 | }; | ||
| 648 | |||
| 649 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::StatementTwo { | ||
| 650 | use Moose; | ||
| 651 | use MooseX::StrictConstructor; | ||
| 652 | extends 'Cfn::Value::TypedValue'; | ||
| 653 | |||
| 654 | has AndStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::AndStatementTwo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 655 | has ByteMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::ByteMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 656 | has GeoMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::GeoMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 657 | has IPSetReferenceStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::IPSetReferenceStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 658 | has LabelMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::LabelMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 659 | has NotStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::NotStatementTwo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 660 | has OrStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::OrStatementTwo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 661 | has RateBasedStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::RateBasedStatementTwo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 662 | has RegexPatternSetReferenceStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::RegexPatternSetReferenceStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 663 | has RuleGroupReferenceStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::RuleGroupReferenceStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 664 | has SizeConstraintStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::SizeConstraintStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 665 | has SqliMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::SqliMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 666 | has XssMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::XssMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 667 | } | ||
| 668 | |||
| 669 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::CustomResponse', | ||
| 670 | as 'Cfn::Value'; | ||
| 671 | |||
| 672 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::CustomResponse', | ||
| 673 | from 'HashRef', | ||
| 674 | via { | ||
| 675 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 676 | return $f | ||
| 677 | } else { | ||
| 678 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::CustomResponse->new( %$_ ); | ||
| 679 | } | ||
| 680 | }; | ||
| 681 | |||
| 682 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::CustomResponse { | ||
| 683 | use Moose; | ||
| 684 | use MooseX::StrictConstructor; | ||
| 685 | extends 'Cfn::Value::TypedValue'; | ||
| 686 | |||
| 687 | has CustomResponseBodyKey => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 688 | has ResponseCode => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 689 | has ResponseHeaders => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::CustomHTTPHeader', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 690 | } | ||
| 691 | |||
| 692 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::CustomRequestHandling', | ||
| 693 | as 'Cfn::Value'; | ||
| 694 | |||
| 695 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::CustomRequestHandling', | ||
| 696 | from 'HashRef', | ||
| 697 | via { | ||
| 698 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 699 | return $f | ||
| 700 | } else { | ||
| 701 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::CustomRequestHandling->new( %$_ ); | ||
| 702 | } | ||
| 703 | }; | ||
| 704 | |||
| 705 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::CustomRequestHandling { | ||
| 706 | use Moose; | ||
| 707 | use MooseX::StrictConstructor; | ||
| 708 | extends 'Cfn::Value::TypedValue'; | ||
| 709 | |||
| 710 | has InsertHeaders => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::CustomHTTPHeader', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 711 | } | ||
| 712 | |||
| 713 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::RateBasedStatementOne', | ||
| 714 | as 'Cfn::Value'; | ||
| 715 | |||
| 716 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::RateBasedStatementOne', | ||
| 717 | from 'HashRef', | ||
| 718 | via { | ||
| 719 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 720 | return $f | ||
| 721 | } else { | ||
| 722 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::RateBasedStatementOne->new( %$_ ); | ||
| 723 | } | ||
| 724 | }; | ||
| 725 | |||
| 726 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::RateBasedStatementOne { | ||
| 727 | use Moose; | ||
| 728 | use MooseX::StrictConstructor; | ||
| 729 | extends 'Cfn::Value::TypedValue'; | ||
| 730 | |||
| 731 | has AggregateKeyType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 732 | has ForwardedIPConfig => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::ForwardedIPConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 733 | has Limit => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 734 | has ScopeDownStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::StatementTwo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 735 | } | ||
| 736 | |||
| 737 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::OrStatementOne', | ||
| 738 | as 'Cfn::Value'; | ||
| 739 | |||
| 740 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::OrStatementOne', | ||
| 741 | from 'HashRef', | ||
| 742 | via { | ||
| 743 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 744 | return $f | ||
| 745 | } else { | ||
| 746 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::OrStatementOne->new( %$_ ); | ||
| 747 | } | ||
| 748 | }; | ||
| 749 | |||
| 750 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::OrStatementOne { | ||
| 751 | use Moose; | ||
| 752 | use MooseX::StrictConstructor; | ||
| 753 | extends 'Cfn::Value::TypedValue'; | ||
| 754 | |||
| 755 | has Statements => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::StatementTwo', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 756 | } | ||
| 757 | |||
| 758 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::NotStatementOne', | ||
| 759 | as 'Cfn::Value'; | ||
| 760 | |||
| 761 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::NotStatementOne', | ||
| 762 | from 'HashRef', | ||
| 763 | via { | ||
| 764 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 765 | return $f | ||
| 766 | } else { | ||
| 767 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::NotStatementOne->new( %$_ ); | ||
| 768 | } | ||
| 769 | }; | ||
| 770 | |||
| 771 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::NotStatementOne { | ||
| 772 | use Moose; | ||
| 773 | use MooseX::StrictConstructor; | ||
| 774 | extends 'Cfn::Value::TypedValue'; | ||
| 775 | |||
| 776 | has Statement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::StatementTwo', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 777 | } | ||
| 778 | |||
| 779 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::ManagedRuleGroupStatement', | ||
| 780 | as 'Cfn::Value'; | ||
| 781 | |||
| 782 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::ManagedRuleGroupStatement', | ||
| 783 | from 'HashRef', | ||
| 784 | via { | ||
| 785 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 786 | return $f | ||
| 787 | } else { | ||
| 788 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::ManagedRuleGroupStatement->new( %$_ ); | ||
| 789 | } | ||
| 790 | }; | ||
| 791 | |||
| 792 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::ManagedRuleGroupStatement { | ||
| 793 | use Moose; | ||
| 794 | use MooseX::StrictConstructor; | ||
| 795 | extends 'Cfn::Value::TypedValue'; | ||
| 796 | |||
| 797 | has ExcludedRules => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::ExcludedRule', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 798 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 799 | has ScopeDownStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::StatementTwo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 800 | has VendorName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 801 | } | ||
| 802 | |||
| 803 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::CountAction', | ||
| 804 | as 'Cfn::Value'; | ||
| 805 | |||
| 806 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::CountAction', | ||
| 807 | from 'HashRef', | ||
| 808 | via { | ||
| 809 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 810 | return $f | ||
| 811 | } else { | ||
| 812 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::CountAction->new( %$_ ); | ||
| 813 | } | ||
| 814 | }; | ||
| 815 | |||
| 816 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::CountAction { | ||
| 817 | use Moose; | ||
| 818 | use MooseX::StrictConstructor; | ||
| 819 | extends 'Cfn::Value::TypedValue'; | ||
| 820 | |||
| 821 | has CustomRequestHandling => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::CustomRequestHandling', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 822 | } | ||
| 823 | |||
| 824 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::BlockAction', | ||
| 825 | as 'Cfn::Value'; | ||
| 826 | |||
| 827 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::BlockAction', | ||
| 828 | from 'HashRef', | ||
| 829 | via { | ||
| 830 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 831 | return $f | ||
| 832 | } else { | ||
| 833 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::BlockAction->new( %$_ ); | ||
| 834 | } | ||
| 835 | }; | ||
| 836 | |||
| 837 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::BlockAction { | ||
| 838 | use Moose; | ||
| 839 | use MooseX::StrictConstructor; | ||
| 840 | extends 'Cfn::Value::TypedValue'; | ||
| 841 | |||
| 842 | has CustomResponse => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::CustomResponse', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 843 | } | ||
| 844 | |||
| 845 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::AndStatementOne', | ||
| 846 | as 'Cfn::Value'; | ||
| 847 | |||
| 848 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::AndStatementOne', | ||
| 849 | from 'HashRef', | ||
| 850 | via { | ||
| 851 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 852 | return $f | ||
| 853 | } else { | ||
| 854 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::AndStatementOne->new( %$_ ); | ||
| 855 | } | ||
| 856 | }; | ||
| 857 | |||
| 858 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::AndStatementOne { | ||
| 859 | use Moose; | ||
| 860 | use MooseX::StrictConstructor; | ||
| 861 | extends 'Cfn::Value::TypedValue'; | ||
| 862 | |||
| 863 | has Statements => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::StatementTwo', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 864 | } | ||
| 865 | |||
| 866 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::AllowAction', | ||
| 867 | as 'Cfn::Value'; | ||
| 868 | |||
| 869 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::AllowAction', | ||
| 870 | from 'HashRef', | ||
| 871 | via { | ||
| 872 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 873 | return $f | ||
| 874 | } else { | ||
| 875 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::AllowAction->new( %$_ ); | ||
| 876 | } | ||
| 877 | }; | ||
| 878 | |||
| 879 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::AllowAction { | ||
| 880 | use Moose; | ||
| 881 | use MooseX::StrictConstructor; | ||
| 882 | extends 'Cfn::Value::TypedValue'; | ||
| 883 | |||
| 884 | has CustomRequestHandling => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::CustomRequestHandling', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 885 | } | ||
| 886 | |||
| 887 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::VisibilityConfig', | ||
| 888 | as 'Cfn::Value'; | ||
| 889 | |||
| 890 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::VisibilityConfig', | ||
| 891 | from 'HashRef', | ||
| 892 | via { | ||
| 893 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 894 | return $f | ||
| 895 | } else { | ||
| 896 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::VisibilityConfig->new( %$_ ); | ||
| 897 | } | ||
| 898 | }; | ||
| 899 | |||
| 900 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::VisibilityConfig { | ||
| 901 | use Moose; | ||
| 902 | use MooseX::StrictConstructor; | ||
| 903 | extends 'Cfn::Value::TypedValue'; | ||
| 904 | |||
| 905 | has CloudWatchMetricsEnabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 906 | has MetricName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 907 | has SampledRequestsEnabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 908 | } | ||
| 909 | |||
| 910 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::StatementOne', | ||
| 911 | as 'Cfn::Value'; | ||
| 912 | |||
| 913 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::StatementOne', | ||
| 914 | from 'HashRef', | ||
| 915 | via { | ||
| 916 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 917 | return $f | ||
| 918 | } else { | ||
| 919 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::StatementOne->new( %$_ ); | ||
| 920 | } | ||
| 921 | }; | ||
| 922 | |||
| 923 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::StatementOne { | ||
| 924 | use Moose; | ||
| 925 | use MooseX::StrictConstructor; | ||
| 926 | extends 'Cfn::Value::TypedValue'; | ||
| 927 | |||
| 928 | has AndStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::AndStatementOne', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 929 | has ByteMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::ByteMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 930 | has GeoMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::GeoMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 931 | has IPSetReferenceStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::IPSetReferenceStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 932 | has LabelMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::LabelMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 933 | has ManagedRuleGroupStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::ManagedRuleGroupStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 934 | has NotStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::NotStatementOne', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 935 | has OrStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::OrStatementOne', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 936 | has RateBasedStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::RateBasedStatementOne', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 937 | has RegexPatternSetReferenceStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::RegexPatternSetReferenceStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 938 | has RuleGroupReferenceStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::RuleGroupReferenceStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 939 | has SizeConstraintStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::SizeConstraintStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 940 | has SqliMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::SqliMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 941 | has XssMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::XssMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 942 | } | ||
| 943 | |||
| 944 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::RuleAction', | ||
| 945 | as 'Cfn::Value'; | ||
| 946 | |||
| 947 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::RuleAction', | ||
| 948 | from 'HashRef', | ||
| 949 | via { | ||
| 950 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 951 | return $f | ||
| 952 | } else { | ||
| 953 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::RuleAction->new( %$_ ); | ||
| 954 | } | ||
| 955 | }; | ||
| 956 | |||
| 957 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::RuleAction { | ||
| 958 | use Moose; | ||
| 959 | use MooseX::StrictConstructor; | ||
| 960 | extends 'Cfn::Value::TypedValue'; | ||
| 961 | |||
| 962 | has Allow => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::AllowAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 963 | has Block => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::BlockAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 964 | has Count => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::CountAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 965 | } | ||
| 966 | |||
| 967 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::OverrideAction', | ||
| 968 | as 'Cfn::Value'; | ||
| 969 | |||
| 970 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::OverrideAction', | ||
| 971 | from 'HashRef', | ||
| 972 | via { | ||
| 973 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 974 | return $f | ||
| 975 | } else { | ||
| 976 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::OverrideAction->new( %$_ ); | ||
| 977 | } | ||
| 978 | }; | ||
| 979 | |||
| 980 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::OverrideAction { | ||
| 981 | use Moose; | ||
| 982 | use MooseX::StrictConstructor; | ||
| 983 | extends 'Cfn::Value::TypedValue'; | ||
| 984 | |||
| 985 | has Count => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 986 | has None => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 987 | } | ||
| 988 | subtype 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::Label', | ||
| 989 | as 'Cfn::Value', | ||
| 990 | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||
| 991 | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||
| 992 | |||
| 993 | coerce 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::Label', | ||
| 994 | from 'HashRef', | ||
| 995 | via { | ||
| 996 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 997 | return $f | ||
| 998 | } else { | ||
| 999 | die 'Only accepts functions'; | ||
| 1000 | } | ||
| 1001 | }, | ||
| 1002 | from 'ArrayRef', | ||
| 1003 | via { | ||
| 1004 | Cfn::Value::Array->new(Value => [ | ||
| 1005 | map { | ||
| 1006 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::WAFv2::WebACL::Label')->coerce($_) | ||
| 1007 | } @$_ | ||
| 1008 | ]); | ||
| 1009 | }; | ||
| 1010 | |||
| 1011 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::Label', | ||
| 1012 | as 'Cfn::Value'; | ||
| 1013 | |||
| 1014 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::Label', | ||
| 1015 | from 'HashRef', | ||
| 1016 | via { | ||
| 1017 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 1018 | return $f | ||
| 1019 | } else { | ||
| 1020 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::Label->new( %$_ ); | ||
| 1021 | } | ||
| 1022 | }; | ||
| 1023 | |||
| 1024 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::Label { | ||
| 1025 | use Moose; | ||
| 1026 | use MooseX::StrictConstructor; | ||
| 1027 | extends 'Cfn::Value::TypedValue'; | ||
| 1028 | |||
| 1029 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 1030 | } | ||
| 1031 | subtype 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::Rule', | ||
| 1032 | as 'Cfn::Value', | ||
| 1033 | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||
| 1034 | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||
| 1035 | |||
| 1036 | coerce 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::Rule', | ||
| 1037 | from 'HashRef', | ||
| 1038 | via { | ||
| 1039 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 1040 | return $f | ||
| 1041 | } else { | ||
| 1042 | die 'Only accepts functions'; | ||
| 1043 | } | ||
| 1044 | }, | ||
| 1045 | from 'ArrayRef', | ||
| 1046 | via { | ||
| 1047 | Cfn::Value::Array->new(Value => [ | ||
| 1048 | map { | ||
| 1049 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::WAFv2::WebACL::Rule')->coerce($_) | ||
| 1050 | } @$_ | ||
| 1051 | ]); | ||
| 1052 | }; | ||
| 1053 | |||
| 1054 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::Rule', | ||
| 1055 | as 'Cfn::Value'; | ||
| 1056 | |||
| 1057 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::Rule', | ||
| 1058 | from 'HashRef', | ||
| 1059 | via { | ||
| 1060 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 1061 | return $f | ||
| 1062 | } else { | ||
| 1063 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::Rule->new( %$_ ); | ||
| 1064 | } | ||
| 1065 | }; | ||
| 1066 | |||
| 1067 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::Rule { | ||
| 1068 | use Moose; | ||
| 1069 | use MooseX::StrictConstructor; | ||
| 1070 | extends 'Cfn::Value::TypedValue'; | ||
| 1071 | |||
| 1072 | has Action => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::RuleAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 1073 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 1074 | has OverrideAction => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::OverrideAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 1075 | has Priority => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 1076 | has RuleLabels => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::Label', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 1077 | has Statement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::StatementOne', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 1078 | has VisibilityConfig => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::VisibilityConfig', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 1079 | } | ||
| 1080 | |||
| 1081 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::DefaultAction', | ||
| 1082 | as 'Cfn::Value'; | ||
| 1083 | |||
| 1084 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::DefaultAction', | ||
| 1085 | from 'HashRef', | ||
| 1086 | via { | ||
| 1087 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 1088 | return $f | ||
| 1089 | } else { | ||
| 1090 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::DefaultAction->new( %$_ ); | ||
| 1091 | } | ||
| 1092 | }; | ||
| 1093 | |||
| 1094 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::DefaultAction { | ||
| 1095 | use Moose; | ||
| 1096 | use MooseX::StrictConstructor; | ||
| 1097 | extends 'Cfn::Value::TypedValue'; | ||
| 1098 | |||
| 1099 | has Allow => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::AllowAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 1100 | has Block => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::BlockAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 1101 | } | ||
| 1102 | |||
| 1103 | subtype 'MapOfCfn::Resource::Properties::AWS::WAFv2::WebACL::CustomResponseBody', | ||
| 1104 | as 'Cfn::Value', | ||
| 1105 | where { $_->isa('Cfn::Value::Hash') or $_->isa('Cfn::Value::Function') }, | ||
| 1106 | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||
| 1107 | |||
| 1108 | coerce 'MapOfCfn::Resource::Properties::AWS::WAFv2::WebACL::CustomResponseBody', | ||
| 1109 | from 'HashRef', | ||
| 1110 | via { | ||
| 1111 | my $arg = $_; | ||
| 1112 | if (my $f = Cfn::TypeLibrary::try_function($arg)) { | ||
| 1113 | return $f | ||
| 1114 | } else { | ||
| 1115 | Cfn::Value::Hash->new(Value => { | ||
| 1116 | map { $_ => Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::WAFv2::WebACL::CustomResponseBody')->coerce($arg->{$_}) } keys %$arg | ||
| 1117 | }); | ||
| 1118 | } | ||
| 1119 | }; | ||
| 1120 | |||
| 1121 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::CustomResponseBody', | ||
| 1122 | as 'Cfn::Value'; | ||
| 1123 | |||
| 1124 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::CustomResponseBody', | ||
| 1125 | from 'HashRef', | ||
| 1126 | via { | ||
| 1127 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 1128 | return $f | ||
| 1129 | } else { | ||
| 1130 | return Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::CustomResponseBody->new( %$_ ); | ||
| 1131 | } | ||
| 1132 | }; | ||
| 1133 | |||
| 1134 | package Cfn::Resource::Properties::Object::AWS::WAFv2::WebACL::CustomResponseBody { | ||
| 1135 | use Moose; | ||
| 1136 | use MooseX::StrictConstructor; | ||
| 1137 | extends 'Cfn::Value::TypedValue'; | ||
| 1138 | |||
| 1139 | has Content => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 1140 | has ContentType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 1141 | } | ||
| 1142 | |||
| 1143 | package Cfn::Resource::Properties::AWS::WAFv2::WebACL { | ||
| 1144 | use Moose; | ||
| 1145 | use MooseX::StrictConstructor; | ||
| 1146 | extends 'Cfn::Resource::Properties'; | ||
| 1147 | |||
| 1148 | has CustomResponseBodies => (isa => 'MapOfCfn::Resource::Properties::AWS::WAFv2::WebACL::CustomResponseBody', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 1149 | has DefaultAction => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::DefaultAction', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 1150 | has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 1151 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | ||
| 1152 | has Rules => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::WebACL::Rule', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 1153 | has Scope => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | ||
| 1154 | has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 1155 | has VisibilityConfig => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::WebACL::VisibilityConfig', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 1156 | } | ||
| 1157 | |||
| 1158 | 1; | ||
| 1159 | ### main pod documentation begin ### | ||
| 1160 | |||
| 1161 | =encoding UTF-8 | ||
| 1162 | |||
| 1163 | =head1 NAME | ||
| 1164 | |||
| 1165 | Cfn::Resource::AWS::WAFv2::WebACL - Cfn resource for AWS::WAFv2::WebACL | ||
| 1166 | |||
| 1167 | =head1 DESCRIPTION | ||
| 1168 | |||
| 1169 | This module implements a Perl module that represents the CloudFormation object AWS::WAFv2::WebACL. | ||
| 1170 | |||
| 1171 | See L<Cfn> for more information on how to use it. | ||
| 1172 | |||
| 1173 | =head1 AUTHOR | ||
| 1174 | |||
| 1175 | Jose Luis Martinez | ||
| 1176 | CAPSiDE | ||
| 1177 | jlmartinez@capside.com | ||
| 1178 | |||
| 1179 | =head1 COPYRIGHT and LICENSE | ||
| 1180 | |||
| 1181 | Copyright (c) 2013 by CAPSiDE | ||
| 1182 | This code is distributed under the Apache 2 License. The full text of the | ||
| 1183 | license can be found in the LICENSE file included with this module. | ||
| 1184 | |||
| 1185 | =cut |