| 1 | # AWS::WAFv2::RuleGroup generated from spec 34.0.0 | ||
| 2 | use Moose::Util::TypeConstraints; | ||
| 3 | |||
| 4 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup', | ||
| 5 | from 'HashRef', | ||
| 6 | via { Cfn::Resource::Properties::AWS::WAFv2::RuleGroup->new( %$_ ) }; | ||
| 7 | |||
| 8 | package Cfn::Resource::AWS::WAFv2::RuleGroup { | ||
| 9 | use Moose; | ||
| 10 | extends 'Cfn::Resource'; | ||
| 11 | has Properties => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup', is => 'rw', coerce => 1); | ||
| 12 | |||
| 13 | sub AttributeList { | ||
| 14 | [ 'Arn','AvailableLabels','ConsumedLabels','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::RuleGroup::JsonMatchPattern', | ||
| 24 | as 'Cfn::Value'; | ||
| 25 | |||
| 26 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::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::RuleGroup::JsonMatchPattern->new( %$_ ); | ||
| 33 | } | ||
| 34 | }; | ||
| 35 | |||
| 36 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::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::RuleGroup::JsonBody', | ||
| 46 | as 'Cfn::Value'; | ||
| 47 | |||
| 48 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::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::RuleGroup::JsonBody->new( %$_ ); | ||
| 55 | } | ||
| 56 | }; | ||
| 57 | |||
| 58 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::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::RuleGroup::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::RuleGroup::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::RuleGroup::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::RuleGroup::TextTransformation')->coerce($_) | ||
| 86 | } @$_ | ||
| 87 | ]); | ||
| 88 | }; | ||
| 89 | |||
| 90 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::TextTransformation', | ||
| 91 | as 'Cfn::Value'; | ||
| 92 | |||
| 93 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::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::RuleGroup::TextTransformation->new( %$_ ); | ||
| 100 | } | ||
| 101 | }; | ||
| 102 | |||
| 103 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::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::RuleGroup::IPSetForwardedIPConfiguration', | ||
| 113 | as 'Cfn::Value'; | ||
| 114 | |||
| 115 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::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::RuleGroup::IPSetForwardedIPConfiguration->new( %$_ ); | ||
| 122 | } | ||
| 123 | }; | ||
| 124 | |||
| 125 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::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::RuleGroup::ForwardedIPConfiguration', | ||
| 136 | as 'Cfn::Value'; | ||
| 137 | |||
| 138 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::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::RuleGroup::ForwardedIPConfiguration->new( %$_ ); | ||
| 145 | } | ||
| 146 | }; | ||
| 147 | |||
| 148 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::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::RuleGroup::FieldToMatch', | ||
| 158 | as 'Cfn::Value'; | ||
| 159 | |||
| 160 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::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::RuleGroup::FieldToMatch->new( %$_ ); | ||
| 167 | } | ||
| 168 | }; | ||
| 169 | |||
| 170 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::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::RuleGroup::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 | |||
| 185 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::XssMatchStatement', | ||
| 186 | as 'Cfn::Value'; | ||
| 187 | |||
| 188 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::XssMatchStatement', | ||
| 189 | from 'HashRef', | ||
| 190 | via { | ||
| 191 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 192 | return $f | ||
| 193 | } else { | ||
| 194 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::XssMatchStatement->new( %$_ ); | ||
| 195 | } | ||
| 196 | }; | ||
| 197 | |||
| 198 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::XssMatchStatement { | ||
| 199 | use Moose; | ||
| 200 | use MooseX::StrictConstructor; | ||
| 201 | extends 'Cfn::Value::TypedValue'; | ||
| 202 | |||
| 203 | has FieldToMatch => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::FieldToMatch', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 204 | has TextTransformations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::TextTransformation', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 205 | } | ||
| 206 | |||
| 207 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::SqliMatchStatement', | ||
| 208 | as 'Cfn::Value'; | ||
| 209 | |||
| 210 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::SqliMatchStatement', | ||
| 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::RuleGroup::SqliMatchStatement->new( %$_ ); | ||
| 217 | } | ||
| 218 | }; | ||
| 219 | |||
| 220 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::SqliMatchStatement { | ||
| 221 | use Moose; | ||
| 222 | use MooseX::StrictConstructor; | ||
| 223 | extends 'Cfn::Value::TypedValue'; | ||
| 224 | |||
| 225 | has FieldToMatch => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::FieldToMatch', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 226 | has TextTransformations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::TextTransformation', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 227 | } | ||
| 228 | |||
| 229 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::SizeConstraintStatement', | ||
| 230 | as 'Cfn::Value'; | ||
| 231 | |||
| 232 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::SizeConstraintStatement', | ||
| 233 | from 'HashRef', | ||
| 234 | via { | ||
| 235 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 236 | return $f | ||
| 237 | } else { | ||
| 238 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::SizeConstraintStatement->new( %$_ ); | ||
| 239 | } | ||
| 240 | }; | ||
| 241 | |||
| 242 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::SizeConstraintStatement { | ||
| 243 | use Moose; | ||
| 244 | use MooseX::StrictConstructor; | ||
| 245 | extends 'Cfn::Value::TypedValue'; | ||
| 246 | |||
| 247 | has ComparisonOperator => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 248 | has FieldToMatch => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::FieldToMatch', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 249 | has Size => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 250 | has TextTransformations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::TextTransformation', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 251 | } | ||
| 252 | |||
| 253 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RegexPatternSetReferenceStatement', | ||
| 254 | as 'Cfn::Value'; | ||
| 255 | |||
| 256 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RegexPatternSetReferenceStatement', | ||
| 257 | from 'HashRef', | ||
| 258 | via { | ||
| 259 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 260 | return $f | ||
| 261 | } else { | ||
| 262 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::RegexPatternSetReferenceStatement->new( %$_ ); | ||
| 263 | } | ||
| 264 | }; | ||
| 265 | |||
| 266 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::RegexPatternSetReferenceStatement { | ||
| 267 | use Moose; | ||
| 268 | use MooseX::StrictConstructor; | ||
| 269 | extends 'Cfn::Value::TypedValue'; | ||
| 270 | |||
| 271 | has Arn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 272 | has FieldToMatch => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::FieldToMatch', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 273 | has TextTransformations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::TextTransformation', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 274 | } | ||
| 275 | |||
| 276 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::LabelMatchStatement', | ||
| 277 | as 'Cfn::Value'; | ||
| 278 | |||
| 279 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::LabelMatchStatement', | ||
| 280 | from 'HashRef', | ||
| 281 | via { | ||
| 282 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 283 | return $f | ||
| 284 | } else { | ||
| 285 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::LabelMatchStatement->new( %$_ ); | ||
| 286 | } | ||
| 287 | }; | ||
| 288 | |||
| 289 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::LabelMatchStatement { | ||
| 290 | use Moose; | ||
| 291 | use MooseX::StrictConstructor; | ||
| 292 | extends 'Cfn::Value::TypedValue'; | ||
| 293 | |||
| 294 | has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 295 | has Scope => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 296 | } | ||
| 297 | |||
| 298 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::IPSetReferenceStatement', | ||
| 299 | as 'Cfn::Value'; | ||
| 300 | |||
| 301 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::IPSetReferenceStatement', | ||
| 302 | from 'HashRef', | ||
| 303 | via { | ||
| 304 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 305 | return $f | ||
| 306 | } else { | ||
| 307 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::IPSetReferenceStatement->new( %$_ ); | ||
| 308 | } | ||
| 309 | }; | ||
| 310 | |||
| 311 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::IPSetReferenceStatement { | ||
| 312 | use Moose; | ||
| 313 | use MooseX::StrictConstructor; | ||
| 314 | extends 'Cfn::Value::TypedValue'; | ||
| 315 | |||
| 316 | has Arn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 317 | has IPSetForwardedIPConfig => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::IPSetForwardedIPConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 318 | } | ||
| 319 | |||
| 320 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::GeoMatchStatement', | ||
| 321 | as 'Cfn::Value'; | ||
| 322 | |||
| 323 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::GeoMatchStatement', | ||
| 324 | from 'HashRef', | ||
| 325 | via { | ||
| 326 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 327 | return $f | ||
| 328 | } else { | ||
| 329 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::GeoMatchStatement->new( %$_ ); | ||
| 330 | } | ||
| 331 | }; | ||
| 332 | |||
| 333 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::GeoMatchStatement { | ||
| 334 | use Moose; | ||
| 335 | use MooseX::StrictConstructor; | ||
| 336 | extends 'Cfn::Value::TypedValue'; | ||
| 337 | |||
| 338 | has CountryCodes => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 339 | has ForwardedIPConfig => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::ForwardedIPConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 340 | } | ||
| 341 | |||
| 342 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::ByteMatchStatement', | ||
| 343 | as 'Cfn::Value'; | ||
| 344 | |||
| 345 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::ByteMatchStatement', | ||
| 346 | from 'HashRef', | ||
| 347 | via { | ||
| 348 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 349 | return $f | ||
| 350 | } else { | ||
| 351 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::ByteMatchStatement->new( %$_ ); | ||
| 352 | } | ||
| 353 | }; | ||
| 354 | |||
| 355 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::ByteMatchStatement { | ||
| 356 | use Moose; | ||
| 357 | use MooseX::StrictConstructor; | ||
| 358 | extends 'Cfn::Value::TypedValue'; | ||
| 359 | |||
| 360 | has FieldToMatch => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::FieldToMatch', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 361 | has PositionalConstraint => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 362 | has SearchString => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 363 | has SearchStringBase64 => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 364 | has TextTransformations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::TextTransformation', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 365 | } | ||
| 366 | subtype 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementThree', | ||
| 367 | as 'Cfn::Value', | ||
| 368 | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||
| 369 | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||
| 370 | |||
| 371 | coerce 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementThree', | ||
| 372 | from 'HashRef', | ||
| 373 | via { | ||
| 374 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 375 | return $f | ||
| 376 | } else { | ||
| 377 | die 'Only accepts functions'; | ||
| 378 | } | ||
| 379 | }, | ||
| 380 | from 'ArrayRef', | ||
| 381 | via { | ||
| 382 | Cfn::Value::Array->new(Value => [ | ||
| 383 | map { | ||
| 384 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementThree')->coerce($_) | ||
| 385 | } @$_ | ||
| 386 | ]); | ||
| 387 | }; | ||
| 388 | |||
| 389 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementThree', | ||
| 390 | as 'Cfn::Value'; | ||
| 391 | |||
| 392 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementThree', | ||
| 393 | from 'HashRef', | ||
| 394 | via { | ||
| 395 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 396 | return $f | ||
| 397 | } else { | ||
| 398 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::StatementThree->new( %$_ ); | ||
| 399 | } | ||
| 400 | }; | ||
| 401 | |||
| 402 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::StatementThree { | ||
| 403 | use Moose; | ||
| 404 | use MooseX::StrictConstructor; | ||
| 405 | extends 'Cfn::Value::TypedValue'; | ||
| 406 | |||
| 407 | has ByteMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::ByteMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 408 | has GeoMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::GeoMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 409 | has IPSetReferenceStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::IPSetReferenceStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 410 | has LabelMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::LabelMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 411 | has RegexPatternSetReferenceStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RegexPatternSetReferenceStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 412 | has SizeConstraintStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::SizeConstraintStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 413 | has SqliMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::SqliMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 414 | has XssMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::XssMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 415 | } | ||
| 416 | |||
| 417 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RateBasedStatementTwo', | ||
| 418 | as 'Cfn::Value'; | ||
| 419 | |||
| 420 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RateBasedStatementTwo', | ||
| 421 | from 'HashRef', | ||
| 422 | via { | ||
| 423 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 424 | return $f | ||
| 425 | } else { | ||
| 426 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::RateBasedStatementTwo->new( %$_ ); | ||
| 427 | } | ||
| 428 | }; | ||
| 429 | |||
| 430 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::RateBasedStatementTwo { | ||
| 431 | use Moose; | ||
| 432 | use MooseX::StrictConstructor; | ||
| 433 | extends 'Cfn::Value::TypedValue'; | ||
| 434 | |||
| 435 | has AggregateKeyType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 436 | has ForwardedIPConfig => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::ForwardedIPConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 437 | has Limit => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 438 | has ScopeDownStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementThree', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 439 | } | ||
| 440 | |||
| 441 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::OrStatementTwo', | ||
| 442 | as 'Cfn::Value'; | ||
| 443 | |||
| 444 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::OrStatementTwo', | ||
| 445 | from 'HashRef', | ||
| 446 | via { | ||
| 447 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 448 | return $f | ||
| 449 | } else { | ||
| 450 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::OrStatementTwo->new( %$_ ); | ||
| 451 | } | ||
| 452 | }; | ||
| 453 | |||
| 454 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::OrStatementTwo { | ||
| 455 | use Moose; | ||
| 456 | use MooseX::StrictConstructor; | ||
| 457 | extends 'Cfn::Value::TypedValue'; | ||
| 458 | |||
| 459 | has Statements => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementThree', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 460 | } | ||
| 461 | |||
| 462 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::NotStatementTwo', | ||
| 463 | as 'Cfn::Value'; | ||
| 464 | |||
| 465 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::NotStatementTwo', | ||
| 466 | from 'HashRef', | ||
| 467 | via { | ||
| 468 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 469 | return $f | ||
| 470 | } else { | ||
| 471 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::NotStatementTwo->new( %$_ ); | ||
| 472 | } | ||
| 473 | }; | ||
| 474 | |||
| 475 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::NotStatementTwo { | ||
| 476 | use Moose; | ||
| 477 | use MooseX::StrictConstructor; | ||
| 478 | extends 'Cfn::Value::TypedValue'; | ||
| 479 | |||
| 480 | has Statement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementThree', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 481 | } | ||
| 482 | |||
| 483 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::AndStatementTwo', | ||
| 484 | as 'Cfn::Value'; | ||
| 485 | |||
| 486 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::AndStatementTwo', | ||
| 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::RuleGroup::AndStatementTwo->new( %$_ ); | ||
| 493 | } | ||
| 494 | }; | ||
| 495 | |||
| 496 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::AndStatementTwo { | ||
| 497 | use Moose; | ||
| 498 | use MooseX::StrictConstructor; | ||
| 499 | extends 'Cfn::Value::TypedValue'; | ||
| 500 | |||
| 501 | has Statements => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementThree', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 502 | } | ||
| 503 | subtype 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementTwo', | ||
| 504 | as 'Cfn::Value', | ||
| 505 | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||
| 506 | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||
| 507 | |||
| 508 | coerce 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementTwo', | ||
| 509 | from 'HashRef', | ||
| 510 | via { | ||
| 511 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 512 | return $f | ||
| 513 | } else { | ||
| 514 | die 'Only accepts functions'; | ||
| 515 | } | ||
| 516 | }, | ||
| 517 | from 'ArrayRef', | ||
| 518 | via { | ||
| 519 | Cfn::Value::Array->new(Value => [ | ||
| 520 | map { | ||
| 521 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementTwo')->coerce($_) | ||
| 522 | } @$_ | ||
| 523 | ]); | ||
| 524 | }; | ||
| 525 | |||
| 526 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementTwo', | ||
| 527 | as 'Cfn::Value'; | ||
| 528 | |||
| 529 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementTwo', | ||
| 530 | from 'HashRef', | ||
| 531 | via { | ||
| 532 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 533 | return $f | ||
| 534 | } else { | ||
| 535 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::StatementTwo->new( %$_ ); | ||
| 536 | } | ||
| 537 | }; | ||
| 538 | |||
| 539 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::StatementTwo { | ||
| 540 | use Moose; | ||
| 541 | use MooseX::StrictConstructor; | ||
| 542 | extends 'Cfn::Value::TypedValue'; | ||
| 543 | |||
| 544 | has AndStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::AndStatementTwo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 545 | has ByteMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::ByteMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 546 | has GeoMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::GeoMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 547 | has IPSetReferenceStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::IPSetReferenceStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 548 | has LabelMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::LabelMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 549 | has NotStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::NotStatementTwo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 550 | has OrStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::OrStatementTwo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 551 | has RateBasedStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RateBasedStatementTwo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 552 | has RegexPatternSetReferenceStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RegexPatternSetReferenceStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 553 | has SizeConstraintStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::SizeConstraintStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 554 | has SqliMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::SqliMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 555 | has XssMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::XssMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 556 | } | ||
| 557 | |||
| 558 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RateBasedStatementOne', | ||
| 559 | as 'Cfn::Value'; | ||
| 560 | |||
| 561 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RateBasedStatementOne', | ||
| 562 | from 'HashRef', | ||
| 563 | via { | ||
| 564 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 565 | return $f | ||
| 566 | } else { | ||
| 567 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::RateBasedStatementOne->new( %$_ ); | ||
| 568 | } | ||
| 569 | }; | ||
| 570 | |||
| 571 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::RateBasedStatementOne { | ||
| 572 | use Moose; | ||
| 573 | use MooseX::StrictConstructor; | ||
| 574 | extends 'Cfn::Value::TypedValue'; | ||
| 575 | |||
| 576 | has AggregateKeyType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 577 | has ForwardedIPConfig => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::ForwardedIPConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 578 | has Limit => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 579 | has ScopeDownStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementTwo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 580 | } | ||
| 581 | |||
| 582 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::OrStatementOne', | ||
| 583 | as 'Cfn::Value'; | ||
| 584 | |||
| 585 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::OrStatementOne', | ||
| 586 | from 'HashRef', | ||
| 587 | via { | ||
| 588 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 589 | return $f | ||
| 590 | } else { | ||
| 591 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::OrStatementOne->new( %$_ ); | ||
| 592 | } | ||
| 593 | }; | ||
| 594 | |||
| 595 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::OrStatementOne { | ||
| 596 | use Moose; | ||
| 597 | use MooseX::StrictConstructor; | ||
| 598 | extends 'Cfn::Value::TypedValue'; | ||
| 599 | |||
| 600 | has Statements => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementTwo', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 601 | } | ||
| 602 | |||
| 603 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::NotStatementOne', | ||
| 604 | as 'Cfn::Value'; | ||
| 605 | |||
| 606 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::NotStatementOne', | ||
| 607 | from 'HashRef', | ||
| 608 | via { | ||
| 609 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 610 | return $f | ||
| 611 | } else { | ||
| 612 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::NotStatementOne->new( %$_ ); | ||
| 613 | } | ||
| 614 | }; | ||
| 615 | |||
| 616 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::NotStatementOne { | ||
| 617 | use Moose; | ||
| 618 | use MooseX::StrictConstructor; | ||
| 619 | extends 'Cfn::Value::TypedValue'; | ||
| 620 | |||
| 621 | has Statement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementTwo', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 622 | } | ||
| 623 | |||
| 624 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::AndStatementOne', | ||
| 625 | as 'Cfn::Value'; | ||
| 626 | |||
| 627 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::AndStatementOne', | ||
| 628 | from 'HashRef', | ||
| 629 | via { | ||
| 630 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 631 | return $f | ||
| 632 | } else { | ||
| 633 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::AndStatementOne->new( %$_ ); | ||
| 634 | } | ||
| 635 | }; | ||
| 636 | |||
| 637 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::AndStatementOne { | ||
| 638 | use Moose; | ||
| 639 | use MooseX::StrictConstructor; | ||
| 640 | extends 'Cfn::Value::TypedValue'; | ||
| 641 | |||
| 642 | has Statements => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementTwo', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 643 | } | ||
| 644 | |||
| 645 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::VisibilityConfig', | ||
| 646 | as 'Cfn::Value'; | ||
| 647 | |||
| 648 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::VisibilityConfig', | ||
| 649 | from 'HashRef', | ||
| 650 | via { | ||
| 651 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 652 | return $f | ||
| 653 | } else { | ||
| 654 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::VisibilityConfig->new( %$_ ); | ||
| 655 | } | ||
| 656 | }; | ||
| 657 | |||
| 658 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::VisibilityConfig { | ||
| 659 | use Moose; | ||
| 660 | use MooseX::StrictConstructor; | ||
| 661 | extends 'Cfn::Value::TypedValue'; | ||
| 662 | |||
| 663 | has CloudWatchMetricsEnabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 664 | has MetricName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 665 | has SampledRequestsEnabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 666 | } | ||
| 667 | |||
| 668 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementOne', | ||
| 669 | as 'Cfn::Value'; | ||
| 670 | |||
| 671 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementOne', | ||
| 672 | from 'HashRef', | ||
| 673 | via { | ||
| 674 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 675 | return $f | ||
| 676 | } else { | ||
| 677 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::StatementOne->new( %$_ ); | ||
| 678 | } | ||
| 679 | }; | ||
| 680 | |||
| 681 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::StatementOne { | ||
| 682 | use Moose; | ||
| 683 | use MooseX::StrictConstructor; | ||
| 684 | extends 'Cfn::Value::TypedValue'; | ||
| 685 | |||
| 686 | has AndStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::AndStatementOne', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 687 | has ByteMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::ByteMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 688 | has GeoMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::GeoMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 689 | has IPSetReferenceStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::IPSetReferenceStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 690 | has LabelMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::LabelMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 691 | has NotStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::NotStatementOne', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 692 | has OrStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::OrStatementOne', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 693 | has RateBasedStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RateBasedStatementOne', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 694 | has RegexPatternSetReferenceStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RegexPatternSetReferenceStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 695 | has SizeConstraintStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::SizeConstraintStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 696 | has SqliMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::SqliMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 697 | has XssMatchStatement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::XssMatchStatement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 698 | } | ||
| 699 | |||
| 700 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RuleAction', | ||
| 701 | as 'Cfn::Value'; | ||
| 702 | |||
| 703 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RuleAction', | ||
| 704 | from 'HashRef', | ||
| 705 | via { | ||
| 706 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 707 | return $f | ||
| 708 | } else { | ||
| 709 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::RuleAction->new( %$_ ); | ||
| 710 | } | ||
| 711 | }; | ||
| 712 | |||
| 713 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::RuleAction { | ||
| 714 | use Moose; | ||
| 715 | use MooseX::StrictConstructor; | ||
| 716 | extends 'Cfn::Value::TypedValue'; | ||
| 717 | |||
| 718 | has Allow => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 719 | has Block => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 720 | has Count => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 721 | } | ||
| 722 | subtype 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::Label', | ||
| 723 | as 'Cfn::Value', | ||
| 724 | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||
| 725 | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||
| 726 | |||
| 727 | coerce 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::Label', | ||
| 728 | from 'HashRef', | ||
| 729 | via { | ||
| 730 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 731 | return $f | ||
| 732 | } else { | ||
| 733 | die 'Only accepts functions'; | ||
| 734 | } | ||
| 735 | }, | ||
| 736 | from 'ArrayRef', | ||
| 737 | via { | ||
| 738 | Cfn::Value::Array->new(Value => [ | ||
| 739 | map { | ||
| 740 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::Label')->coerce($_) | ||
| 741 | } @$_ | ||
| 742 | ]); | ||
| 743 | }; | ||
| 744 | |||
| 745 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::Label', | ||
| 746 | as 'Cfn::Value'; | ||
| 747 | |||
| 748 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::Label', | ||
| 749 | from 'HashRef', | ||
| 750 | via { | ||
| 751 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 752 | return $f | ||
| 753 | } else { | ||
| 754 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::Label->new( %$_ ); | ||
| 755 | } | ||
| 756 | }; | ||
| 757 | |||
| 758 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::Label { | ||
| 759 | use Moose; | ||
| 760 | use MooseX::StrictConstructor; | ||
| 761 | extends 'Cfn::Value::TypedValue'; | ||
| 762 | |||
| 763 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 764 | } | ||
| 765 | subtype 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::Rule', | ||
| 766 | as 'Cfn::Value', | ||
| 767 | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||
| 768 | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||
| 769 | |||
| 770 | coerce 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::Rule', | ||
| 771 | from 'HashRef', | ||
| 772 | via { | ||
| 773 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 774 | return $f | ||
| 775 | } else { | ||
| 776 | die 'Only accepts functions'; | ||
| 777 | } | ||
| 778 | }, | ||
| 779 | from 'ArrayRef', | ||
| 780 | via { | ||
| 781 | Cfn::Value::Array->new(Value => [ | ||
| 782 | map { | ||
| 783 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::Rule')->coerce($_) | ||
| 784 | } @$_ | ||
| 785 | ]); | ||
| 786 | }; | ||
| 787 | |||
| 788 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::Rule', | ||
| 789 | as 'Cfn::Value'; | ||
| 790 | |||
| 791 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::Rule', | ||
| 792 | from 'HashRef', | ||
| 793 | via { | ||
| 794 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 795 | return $f | ||
| 796 | } else { | ||
| 797 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::Rule->new( %$_ ); | ||
| 798 | } | ||
| 799 | }; | ||
| 800 | |||
| 801 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::Rule { | ||
| 802 | use Moose; | ||
| 803 | use MooseX::StrictConstructor; | ||
| 804 | extends 'Cfn::Value::TypedValue'; | ||
| 805 | |||
| 806 | has Action => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::RuleAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 807 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 808 | has Priority => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 809 | has RuleLabels => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::Label', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 810 | has Statement => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::StatementOne', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 811 | has VisibilityConfig => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::VisibilityConfig', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 812 | } | ||
| 813 | |||
| 814 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::LabelSummary', | ||
| 815 | as 'Cfn::Value'; | ||
| 816 | |||
| 817 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::LabelSummary', | ||
| 818 | from 'HashRef', | ||
| 819 | via { | ||
| 820 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 821 | return $f | ||
| 822 | } else { | ||
| 823 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::LabelSummary->new( %$_ ); | ||
| 824 | } | ||
| 825 | }; | ||
| 826 | |||
| 827 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::LabelSummary { | ||
| 828 | use Moose; | ||
| 829 | use MooseX::StrictConstructor; | ||
| 830 | extends 'Cfn::Value::TypedValue'; | ||
| 831 | |||
| 832 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 833 | } | ||
| 834 | |||
| 835 | subtype 'MapOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::CustomResponseBody', | ||
| 836 | as 'Cfn::Value', | ||
| 837 | where { $_->isa('Cfn::Value::Hash') or $_->isa('Cfn::Value::Function') }, | ||
| 838 | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||
| 839 | |||
| 840 | coerce 'MapOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::CustomResponseBody', | ||
| 841 | from 'HashRef', | ||
| 842 | via { | ||
| 843 | my $arg = $_; | ||
| 844 | if (my $f = Cfn::TypeLibrary::try_function($arg)) { | ||
| 845 | return $f | ||
| 846 | } else { | ||
| 847 | Cfn::Value::Hash->new(Value => { | ||
| 848 | map { $_ => Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::CustomResponseBody')->coerce($arg->{$_}) } keys %$arg | ||
| 849 | }); | ||
| 850 | } | ||
| 851 | }; | ||
| 852 | |||
| 853 | subtype 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::CustomResponseBody', | ||
| 854 | as 'Cfn::Value'; | ||
| 855 | |||
| 856 | coerce 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::CustomResponseBody', | ||
| 857 | from 'HashRef', | ||
| 858 | via { | ||
| 859 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 860 | return $f | ||
| 861 | } else { | ||
| 862 | return Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::CustomResponseBody->new( %$_ ); | ||
| 863 | } | ||
| 864 | }; | ||
| 865 | |||
| 866 | package Cfn::Resource::Properties::Object::AWS::WAFv2::RuleGroup::CustomResponseBody { | ||
| 867 | use Moose; | ||
| 868 | use MooseX::StrictConstructor; | ||
| 869 | extends 'Cfn::Value::TypedValue'; | ||
| 870 | |||
| 871 | has Content => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 872 | has ContentType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 873 | } | ||
| 874 | |||
| 875 | package Cfn::Resource::Properties::AWS::WAFv2::RuleGroup { | ||
| 876 | use Moose; | ||
| 877 | use MooseX::StrictConstructor; | ||
| 878 | extends 'Cfn::Resource::Properties'; | ||
| 879 | |||
| 880 | has Capacity => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 881 | has CustomResponseBodies => (isa => 'MapOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::CustomResponseBody', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 882 | has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 883 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | ||
| 884 | has Rules => (isa => 'ArrayOfCfn::Resource::Properties::AWS::WAFv2::RuleGroup::Rule', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 885 | has Scope => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | ||
| 886 | has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 887 | has VisibilityConfig => (isa => 'Cfn::Resource::Properties::AWS::WAFv2::RuleGroup::VisibilityConfig', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 888 | } | ||
| 889 | |||
| 890 | 1; | ||
| 891 | ### main pod documentation begin ### | ||
| 892 | |||
| 893 | =encoding UTF-8 | ||
| 894 | |||
| 895 | =head1 NAME | ||
| 896 | |||
| 897 | Cfn::Resource::AWS::WAFv2::RuleGroup - Cfn resource for AWS::WAFv2::RuleGroup | ||
| 898 | |||
| 899 | =head1 DESCRIPTION | ||
| 900 | |||
| 901 | This module implements a Perl module that represents the CloudFormation object AWS::WAFv2::RuleGroup. | ||
| 902 | |||
| 903 | See L<Cfn> for more information on how to use it. | ||
| 904 | |||
| 905 | =head1 AUTHOR | ||
| 906 | |||
| 907 | Jose Luis Martinez | ||
| 908 | CAPSiDE | ||
| 909 | jlmartinez@capside.com | ||
| 910 | |||
| 911 | =head1 COPYRIGHT and LICENSE | ||
| 912 | |||
| 913 | Copyright (c) 2013 by CAPSiDE | ||
| 914 | This code is distributed under the Apache 2 License. The full text of the | ||
| 915 | license can be found in the LICENSE file included with this module. | ||
| 916 | |||
| 917 | =cut |