aws-sdk-wafv2 1.50.0 → 1.51.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,6 +24,8 @@ module Aws::WAFV2
24
24
  AndStatement = Shapes::StructureShape.new(name: 'AndStatement')
25
25
  AssociateWebACLRequest = Shapes::StructureShape.new(name: 'AssociateWebACLRequest')
26
26
  AssociateWebACLResponse = Shapes::StructureShape.new(name: 'AssociateWebACLResponse')
27
+ AssociatedResourceType = Shapes::StringShape.new(name: 'AssociatedResourceType')
28
+ AssociationConfig = Shapes::StructureShape.new(name: 'AssociationConfig')
27
29
  BlockAction = Shapes::StructureShape.new(name: 'BlockAction')
28
30
  Body = Shapes::StructureShape.new(name: 'Body')
29
31
  BodyParsingFallbackBehavior = Shapes::StringShape.new(name: 'BodyParsingFallbackBehavior')
@@ -253,6 +255,8 @@ module Aws::WAFV2
253
255
  ReleaseNotes = Shapes::StringShape.new(name: 'ReleaseNotes')
254
256
  ReleaseSummaries = Shapes::ListShape.new(name: 'ReleaseSummaries')
255
257
  ReleaseSummary = Shapes::StructureShape.new(name: 'ReleaseSummary')
258
+ RequestBody = Shapes::MapShape.new(name: 'RequestBody')
259
+ RequestBodyAssociatedResourceTypeConfig = Shapes::StructureShape.new(name: 'RequestBodyAssociatedResourceTypeConfig')
256
260
  RequestInspection = Shapes::StructureShape.new(name: 'RequestInspection')
257
261
  ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
258
262
  ResourceArns = Shapes::ListShape.new(name: 'ResourceArns')
@@ -298,6 +302,7 @@ module Aws::WAFV2
298
302
  SingleQueryArgument = Shapes::StructureShape.new(name: 'SingleQueryArgument')
299
303
  Size = Shapes::IntegerShape.new(name: 'Size')
300
304
  SizeConstraintStatement = Shapes::StructureShape.new(name: 'SizeConstraintStatement')
305
+ SizeInspectionLimit = Shapes::StringShape.new(name: 'SizeInspectionLimit')
301
306
  SolveTimestamp = Shapes::IntegerShape.new(name: 'SolveTimestamp')
302
307
  SqliMatchStatement = Shapes::StructureShape.new(name: 'SqliMatchStatement')
303
308
  Statement = Shapes::StructureShape.new(name: 'Statement')
@@ -393,6 +398,9 @@ module Aws::WAFV2
393
398
 
394
399
  AssociateWebACLResponse.struct_class = Types::AssociateWebACLResponse
395
400
 
401
+ AssociationConfig.add_member(:request_body, Shapes::ShapeRef.new(shape: RequestBody, location_name: "RequestBody"))
402
+ AssociationConfig.struct_class = Types::AssociationConfig
403
+
396
404
  BlockAction.add_member(:custom_response, Shapes::ShapeRef.new(shape: CustomResponse, location_name: "CustomResponse"))
397
405
  BlockAction.struct_class = Types::BlockAction
398
406
 
@@ -502,6 +510,7 @@ module Aws::WAFV2
502
510
  CreateWebACLRequest.add_member(:captcha_config, Shapes::ShapeRef.new(shape: CaptchaConfig, location_name: "CaptchaConfig"))
503
511
  CreateWebACLRequest.add_member(:challenge_config, Shapes::ShapeRef.new(shape: ChallengeConfig, location_name: "ChallengeConfig"))
504
512
  CreateWebACLRequest.add_member(:token_domains, Shapes::ShapeRef.new(shape: TokenDomains, location_name: "TokenDomains"))
513
+ CreateWebACLRequest.add_member(:association_config, Shapes::ShapeRef.new(shape: AssociationConfig, location_name: "AssociationConfig"))
505
514
  CreateWebACLRequest.struct_class = Types::CreateWebACLRequest
506
515
 
507
516
  CreateWebACLResponse.add_member(:summary, Shapes::ShapeRef.new(shape: WebACLSummary, location_name: "Summary"))
@@ -1109,6 +1118,12 @@ module Aws::WAFV2
1109
1118
  ReleaseSummary.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "Timestamp"))
1110
1119
  ReleaseSummary.struct_class = Types::ReleaseSummary
1111
1120
 
1121
+ RequestBody.key = Shapes::ShapeRef.new(shape: AssociatedResourceType)
1122
+ RequestBody.value = Shapes::ShapeRef.new(shape: RequestBodyAssociatedResourceTypeConfig)
1123
+
1124
+ RequestBodyAssociatedResourceTypeConfig.add_member(:default_size_inspection_limit, Shapes::ShapeRef.new(shape: SizeInspectionLimit, required: true, location_name: "DefaultSizeInspectionLimit"))
1125
+ RequestBodyAssociatedResourceTypeConfig.struct_class = Types::RequestBodyAssociatedResourceTypeConfig
1126
+
1112
1127
  RequestInspection.add_member(:payload_type, Shapes::ShapeRef.new(shape: PayloadType, required: true, location_name: "PayloadType"))
1113
1128
  RequestInspection.add_member(:username_field, Shapes::ShapeRef.new(shape: UsernameField, required: true, location_name: "UsernameField"))
1114
1129
  RequestInspection.add_member(:password_field, Shapes::ShapeRef.new(shape: PasswordField, required: true, location_name: "PasswordField"))
@@ -1362,6 +1377,7 @@ module Aws::WAFV2
1362
1377
  UpdateWebACLRequest.add_member(:captcha_config, Shapes::ShapeRef.new(shape: CaptchaConfig, location_name: "CaptchaConfig"))
1363
1378
  UpdateWebACLRequest.add_member(:challenge_config, Shapes::ShapeRef.new(shape: ChallengeConfig, location_name: "ChallengeConfig"))
1364
1379
  UpdateWebACLRequest.add_member(:token_domains, Shapes::ShapeRef.new(shape: TokenDomains, location_name: "TokenDomains"))
1380
+ UpdateWebACLRequest.add_member(:association_config, Shapes::ShapeRef.new(shape: AssociationConfig, location_name: "AssociationConfig"))
1365
1381
  UpdateWebACLRequest.struct_class = Types::UpdateWebACLRequest
1366
1382
 
1367
1383
  UpdateWebACLResponse.add_member(:next_lock_token, Shapes::ShapeRef.new(shape: LockToken, location_name: "NextLockToken"))
@@ -1457,6 +1473,7 @@ module Aws::WAFV2
1457
1473
  WebACL.add_member(:captcha_config, Shapes::ShapeRef.new(shape: CaptchaConfig, location_name: "CaptchaConfig"))
1458
1474
  WebACL.add_member(:challenge_config, Shapes::ShapeRef.new(shape: ChallengeConfig, location_name: "ChallengeConfig"))
1459
1475
  WebACL.add_member(:token_domains, Shapes::ShapeRef.new(shape: TokenDomains, location_name: "TokenDomains"))
1476
+ WebACL.add_member(:association_config, Shapes::ShapeRef.new(shape: AssociationConfig, location_name: "AssociationConfig"))
1460
1477
  WebACL.struct_class = Types::WebACL
1461
1478
 
1462
1479
  WebACLSummaries.member = Shapes::ShapeRef.new(shape: WebACLSummary)
@@ -43,84 +43,6 @@ module Aws::WAFV2
43
43
  end
44
44
  raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
45
45
  end
46
- if Aws::Endpoints::Matchers.string_equals?(region, "af-south-1")
47
- return Aws::Endpoints::Endpoint.new(url: "https://wafv2.af-south-1.amazonaws.com", headers: {}, properties: {})
48
- end
49
- if Aws::Endpoints::Matchers.string_equals?(region, "ap-east-1")
50
- return Aws::Endpoints::Endpoint.new(url: "https://wafv2.ap-east-1.amazonaws.com", headers: {}, properties: {})
51
- end
52
- if Aws::Endpoints::Matchers.string_equals?(region, "ap-northeast-1")
53
- return Aws::Endpoints::Endpoint.new(url: "https://wafv2.ap-northeast-1.amazonaws.com", headers: {}, properties: {})
54
- end
55
- if Aws::Endpoints::Matchers.string_equals?(region, "ap-northeast-2")
56
- return Aws::Endpoints::Endpoint.new(url: "https://wafv2.ap-northeast-2.amazonaws.com", headers: {}, properties: {})
57
- end
58
- if Aws::Endpoints::Matchers.string_equals?(region, "ap-northeast-3")
59
- return Aws::Endpoints::Endpoint.new(url: "https://wafv2.ap-northeast-3.amazonaws.com", headers: {}, properties: {})
60
- end
61
- if Aws::Endpoints::Matchers.string_equals?(region, "ap-south-1")
62
- return Aws::Endpoints::Endpoint.new(url: "https://wafv2.ap-south-1.amazonaws.com", headers: {}, properties: {})
63
- end
64
- if Aws::Endpoints::Matchers.string_equals?(region, "ap-southeast-1")
65
- return Aws::Endpoints::Endpoint.new(url: "https://wafv2.ap-southeast-1.amazonaws.com", headers: {}, properties: {})
66
- end
67
- if Aws::Endpoints::Matchers.string_equals?(region, "ap-southeast-2")
68
- return Aws::Endpoints::Endpoint.new(url: "https://wafv2.ap-southeast-2.amazonaws.com", headers: {}, properties: {})
69
- end
70
- if Aws::Endpoints::Matchers.string_equals?(region, "ap-southeast-3")
71
- return Aws::Endpoints::Endpoint.new(url: "https://wafv2.ap-southeast-3.amazonaws.com", headers: {}, properties: {})
72
- end
73
- if Aws::Endpoints::Matchers.string_equals?(region, "ca-central-1")
74
- return Aws::Endpoints::Endpoint.new(url: "https://wafv2.ca-central-1.amazonaws.com", headers: {}, properties: {})
75
- end
76
- if Aws::Endpoints::Matchers.string_equals?(region, "eu-central-1")
77
- return Aws::Endpoints::Endpoint.new(url: "https://wafv2.eu-central-1.amazonaws.com", headers: {}, properties: {})
78
- end
79
- if Aws::Endpoints::Matchers.string_equals?(region, "eu-north-1")
80
- return Aws::Endpoints::Endpoint.new(url: "https://wafv2.eu-north-1.amazonaws.com", headers: {}, properties: {})
81
- end
82
- if Aws::Endpoints::Matchers.string_equals?(region, "eu-south-1")
83
- return Aws::Endpoints::Endpoint.new(url: "https://wafv2.eu-south-1.amazonaws.com", headers: {}, properties: {})
84
- end
85
- if Aws::Endpoints::Matchers.string_equals?(region, "eu-west-1")
86
- return Aws::Endpoints::Endpoint.new(url: "https://wafv2.eu-west-1.amazonaws.com", headers: {}, properties: {})
87
- end
88
- if Aws::Endpoints::Matchers.string_equals?(region, "eu-west-2")
89
- return Aws::Endpoints::Endpoint.new(url: "https://wafv2.eu-west-2.amazonaws.com", headers: {}, properties: {})
90
- end
91
- if Aws::Endpoints::Matchers.string_equals?(region, "eu-west-3")
92
- return Aws::Endpoints::Endpoint.new(url: "https://wafv2.eu-west-3.amazonaws.com", headers: {}, properties: {})
93
- end
94
- if Aws::Endpoints::Matchers.string_equals?(region, "me-south-1")
95
- return Aws::Endpoints::Endpoint.new(url: "https://wafv2.me-south-1.amazonaws.com", headers: {}, properties: {})
96
- end
97
- if Aws::Endpoints::Matchers.string_equals?(region, "sa-east-1")
98
- return Aws::Endpoints::Endpoint.new(url: "https://wafv2.sa-east-1.amazonaws.com", headers: {}, properties: {})
99
- end
100
- if Aws::Endpoints::Matchers.string_equals?(region, "us-east-1")
101
- return Aws::Endpoints::Endpoint.new(url: "https://wafv2.us-east-1.amazonaws.com", headers: {}, properties: {})
102
- end
103
- if Aws::Endpoints::Matchers.string_equals?(region, "us-east-2")
104
- return Aws::Endpoints::Endpoint.new(url: "https://wafv2.us-east-2.amazonaws.com", headers: {}, properties: {})
105
- end
106
- if Aws::Endpoints::Matchers.string_equals?(region, "us-west-1")
107
- return Aws::Endpoints::Endpoint.new(url: "https://wafv2.us-west-1.amazonaws.com", headers: {}, properties: {})
108
- end
109
- if Aws::Endpoints::Matchers.string_equals?(region, "us-west-2")
110
- return Aws::Endpoints::Endpoint.new(url: "https://wafv2.us-west-2.amazonaws.com", headers: {}, properties: {})
111
- end
112
- if Aws::Endpoints::Matchers.string_equals?(region, "cn-north-1")
113
- return Aws::Endpoints::Endpoint.new(url: "https://wafv2.cn-north-1.amazonaws.com.cn", headers: {}, properties: {})
114
- end
115
- if Aws::Endpoints::Matchers.string_equals?(region, "cn-northwest-1")
116
- return Aws::Endpoints::Endpoint.new(url: "https://wafv2.cn-northwest-1.amazonaws.com.cn", headers: {}, properties: {})
117
- end
118
- if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-east-1")
119
- return Aws::Endpoints::Endpoint.new(url: "https://wafv2.us-gov-east-1.amazonaws.com", headers: {}, properties: {})
120
- end
121
- if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-west-1")
122
- return Aws::Endpoints::Endpoint.new(url: "https://wafv2.us-gov-west-1.amazonaws.com", headers: {}, properties: {})
123
- end
124
46
  return Aws::Endpoints::Endpoint.new(url: "https://wafv2.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
125
47
  end
126
48
  end