aws-sdk-wafv2 1.38.0 → 1.41.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -37,6 +37,9 @@ module Aws::WAFV2
37
37
  Condition = Shapes::StructureShape.new(name: 'Condition')
38
38
  Conditions = Shapes::ListShape.new(name: 'Conditions')
39
39
  ConsumedCapacity = Shapes::IntegerShape.new(name: 'ConsumedCapacity')
40
+ CookieMatchPattern = Shapes::StructureShape.new(name: 'CookieMatchPattern')
41
+ CookieNames = Shapes::ListShape.new(name: 'CookieNames')
42
+ Cookies = Shapes::StructureShape.new(name: 'Cookies')
40
43
  CountAction = Shapes::StructureShape.new(name: 'CountAction')
41
44
  Country = Shapes::StringShape.new(name: 'Country')
42
45
  CountryCode = Shapes::StringShape.new(name: 'CountryCode')
@@ -129,8 +132,11 @@ module Aws::WAFV2
129
132
  HTTPMethod = Shapes::StringShape.new(name: 'HTTPMethod')
130
133
  HTTPRequest = Shapes::StructureShape.new(name: 'HTTPRequest')
131
134
  HTTPVersion = Shapes::StringShape.new(name: 'HTTPVersion')
135
+ HeaderMatchPattern = Shapes::StructureShape.new(name: 'HeaderMatchPattern')
132
136
  HeaderName = Shapes::StringShape.new(name: 'HeaderName')
137
+ HeaderNames = Shapes::ListShape.new(name: 'HeaderNames')
133
138
  HeaderValue = Shapes::StringShape.new(name: 'HeaderValue')
139
+ Headers = Shapes::StructureShape.new(name: 'Headers')
134
140
  IPAddress = Shapes::StringShape.new(name: 'IPAddress')
135
141
  IPAddressVersion = Shapes::StringShape.new(name: 'IPAddressVersion')
136
142
  IPAddresses = Shapes::ListShape.new(name: 'IPAddresses')
@@ -195,6 +201,7 @@ module Aws::WAFV2
195
201
  ManagedRuleSetSummaries = Shapes::ListShape.new(name: 'ManagedRuleSetSummaries')
196
202
  ManagedRuleSetSummary = Shapes::StructureShape.new(name: 'ManagedRuleSetSummary')
197
203
  ManagedRuleSetVersion = Shapes::StructureShape.new(name: 'ManagedRuleSetVersion')
204
+ MapMatchScope = Shapes::StringShape.new(name: 'MapMatchScope')
198
205
  Method = Shapes::StructureShape.new(name: 'Method')
199
206
  MetricName = Shapes::StringShape.new(name: 'MetricName')
200
207
  MobileSdkRelease = Shapes::StructureShape.new(name: 'MobileSdkRelease')
@@ -204,6 +211,7 @@ module Aws::WAFV2
204
211
  OrStatement = Shapes::StructureShape.new(name: 'OrStatement')
205
212
  OutputUrl = Shapes::StringShape.new(name: 'OutputUrl')
206
213
  OverrideAction = Shapes::StructureShape.new(name: 'OverrideAction')
214
+ OversizeHandling = Shapes::StringShape.new(name: 'OversizeHandling')
207
215
  PaginationLimit = Shapes::IntegerShape.new(name: 'PaginationLimit')
208
216
  ParameterExceptionField = Shapes::StringShape.new(name: 'ParameterExceptionField')
209
217
  ParameterExceptionParameter = Shapes::StringShape.new(name: 'ParameterExceptionParameter')
@@ -259,6 +267,8 @@ module Aws::WAFV2
259
267
  SampledHTTPRequests = Shapes::ListShape.new(name: 'SampledHTTPRequests')
260
268
  Scope = Shapes::StringShape.new(name: 'Scope')
261
269
  SearchString = Shapes::BlobShape.new(name: 'SearchString')
270
+ SensitivityLevel = Shapes::StringShape.new(name: 'SensitivityLevel')
271
+ SingleCookieName = Shapes::StringShape.new(name: 'SingleCookieName')
262
272
  SingleHeader = Shapes::StructureShape.new(name: 'SingleHeader')
263
273
  SingleQueryArgument = Shapes::StructureShape.new(name: 'SingleQueryArgument')
264
274
  Size = Shapes::IntegerShape.new(name: 'Size')
@@ -304,6 +314,7 @@ module Aws::WAFV2
304
314
  VersionsToPublish = Shapes::MapShape.new(name: 'VersionsToPublish')
305
315
  VisibilityConfig = Shapes::StructureShape.new(name: 'VisibilityConfig')
306
316
  WAFAssociatedItemException = Shapes::StructureShape.new(name: 'WAFAssociatedItemException')
317
+ WAFConfigurationWarningException = Shapes::StructureShape.new(name: 'WAFConfigurationWarningException')
307
318
  WAFDuplicateItemException = Shapes::StructureShape.new(name: 'WAFDuplicateItemException')
308
319
  WAFExpiredManagedRuleGroupVersionException = Shapes::StructureShape.new(name: 'WAFExpiredManagedRuleGroupVersionException')
309
320
  WAFInternalErrorException = Shapes::StructureShape.new(name: 'WAFInternalErrorException')
@@ -347,6 +358,7 @@ module Aws::WAFV2
347
358
  BlockAction.add_member(:custom_response, Shapes::ShapeRef.new(shape: CustomResponse, location_name: "CustomResponse"))
348
359
  BlockAction.struct_class = Types::BlockAction
349
360
 
361
+ Body.add_member(:oversize_handling, Shapes::ShapeRef.new(shape: OversizeHandling, location_name: "OversizeHandling"))
350
362
  Body.struct_class = Types::Body
351
363
 
352
364
  ByteMatchStatement.add_member(:search_string, Shapes::ShapeRef.new(shape: SearchString, required: true, location_name: "SearchString"))
@@ -379,6 +391,18 @@ module Aws::WAFV2
379
391
 
380
392
  Conditions.member = Shapes::ShapeRef.new(shape: Condition)
381
393
 
394
+ CookieMatchPattern.add_member(:all, Shapes::ShapeRef.new(shape: All, location_name: "All"))
395
+ CookieMatchPattern.add_member(:included_cookies, Shapes::ShapeRef.new(shape: CookieNames, location_name: "IncludedCookies"))
396
+ CookieMatchPattern.add_member(:excluded_cookies, Shapes::ShapeRef.new(shape: CookieNames, location_name: "ExcludedCookies"))
397
+ CookieMatchPattern.struct_class = Types::CookieMatchPattern
398
+
399
+ CookieNames.member = Shapes::ShapeRef.new(shape: SingleCookieName)
400
+
401
+ Cookies.add_member(:match_pattern, Shapes::ShapeRef.new(shape: CookieMatchPattern, required: true, location_name: "MatchPattern"))
402
+ Cookies.add_member(:match_scope, Shapes::ShapeRef.new(shape: MapMatchScope, required: true, location_name: "MatchScope"))
403
+ Cookies.add_member(:oversize_handling, Shapes::ShapeRef.new(shape: OversizeHandling, required: true, location_name: "OversizeHandling"))
404
+ Cookies.struct_class = Types::Cookies
405
+
382
406
  CountAction.add_member(:custom_request_handling, Shapes::ShapeRef.new(shape: CustomRequestHandling, location_name: "CustomRequestHandling"))
383
407
  CountAction.struct_class = Types::CountAction
384
408
 
@@ -539,6 +563,8 @@ module Aws::WAFV2
539
563
  FieldToMatch.add_member(:body, Shapes::ShapeRef.new(shape: Body, location_name: "Body"))
540
564
  FieldToMatch.add_member(:method, Shapes::ShapeRef.new(shape: Method, location_name: "Method"))
541
565
  FieldToMatch.add_member(:json_body, Shapes::ShapeRef.new(shape: JsonBody, location_name: "JsonBody"))
566
+ FieldToMatch.add_member(:headers, Shapes::ShapeRef.new(shape: Headers, location_name: "Headers"))
567
+ FieldToMatch.add_member(:cookies, Shapes::ShapeRef.new(shape: Cookies, location_name: "Cookies"))
542
568
  FieldToMatch.struct_class = Types::FieldToMatch
543
569
 
544
570
  Filter.add_member(:behavior, Shapes::ShapeRef.new(shape: FilterBehavior, required: true, location_name: "Behavior"))
@@ -685,6 +711,18 @@ module Aws::WAFV2
685
711
  HTTPRequest.add_member(:headers, Shapes::ShapeRef.new(shape: HTTPHeaders, location_name: "Headers"))
686
712
  HTTPRequest.struct_class = Types::HTTPRequest
687
713
 
714
+ HeaderMatchPattern.add_member(:all, Shapes::ShapeRef.new(shape: All, location_name: "All"))
715
+ HeaderMatchPattern.add_member(:included_headers, Shapes::ShapeRef.new(shape: HeaderNames, location_name: "IncludedHeaders"))
716
+ HeaderMatchPattern.add_member(:excluded_headers, Shapes::ShapeRef.new(shape: HeaderNames, location_name: "ExcludedHeaders"))
717
+ HeaderMatchPattern.struct_class = Types::HeaderMatchPattern
718
+
719
+ HeaderNames.member = Shapes::ShapeRef.new(shape: FieldToMatchData)
720
+
721
+ Headers.add_member(:match_pattern, Shapes::ShapeRef.new(shape: HeaderMatchPattern, required: true, location_name: "MatchPattern"))
722
+ Headers.add_member(:match_scope, Shapes::ShapeRef.new(shape: MapMatchScope, required: true, location_name: "MatchScope"))
723
+ Headers.add_member(:oversize_handling, Shapes::ShapeRef.new(shape: OversizeHandling, required: true, location_name: "OversizeHandling"))
724
+ Headers.struct_class = Types::Headers
725
+
688
726
  IPAddresses.member = Shapes::ShapeRef.new(shape: IPAddress)
689
727
 
690
728
  IPSet.add_member(:name, Shapes::ShapeRef.new(shape: EntityName, required: true, location_name: "Name"))
@@ -719,6 +757,7 @@ module Aws::WAFV2
719
757
  JsonBody.add_member(:match_pattern, Shapes::ShapeRef.new(shape: JsonMatchPattern, required: true, location_name: "MatchPattern"))
720
758
  JsonBody.add_member(:match_scope, Shapes::ShapeRef.new(shape: JsonMatchScope, required: true, location_name: "MatchScope"))
721
759
  JsonBody.add_member(:invalid_fallback_behavior, Shapes::ShapeRef.new(shape: BodyParsingFallbackBehavior, location_name: "InvalidFallbackBehavior"))
760
+ JsonBody.add_member(:oversize_handling, Shapes::ShapeRef.new(shape: OversizeHandling, location_name: "OversizeHandling"))
722
761
  JsonBody.struct_class = Types::JsonBody
723
762
 
724
763
  JsonMatchPattern.add_member(:all, Shapes::ShapeRef.new(shape: All, location_name: "All"))
@@ -1095,6 +1134,7 @@ module Aws::WAFV2
1095
1134
 
1096
1135
  SqliMatchStatement.add_member(:field_to_match, Shapes::ShapeRef.new(shape: FieldToMatch, required: true, location_name: "FieldToMatch"))
1097
1136
  SqliMatchStatement.add_member(:text_transformations, Shapes::ShapeRef.new(shape: TextTransformations, required: true, location_name: "TextTransformations"))
1137
+ SqliMatchStatement.add_member(:sensitivity_level, Shapes::ShapeRef.new(shape: SensitivityLevel, location_name: "SensitivityLevel"))
1098
1138
  SqliMatchStatement.struct_class = Types::SqliMatchStatement
1099
1139
 
1100
1140
  Statement.add_member(:byte_match_statement, Shapes::ShapeRef.new(shape: ByteMatchStatement, location_name: "ByteMatchStatement"))
@@ -1233,6 +1273,9 @@ module Aws::WAFV2
1233
1273
  WAFAssociatedItemException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
1234
1274
  WAFAssociatedItemException.struct_class = Types::WAFAssociatedItemException
1235
1275
 
1276
+ WAFConfigurationWarningException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
1277
+ WAFConfigurationWarningException.struct_class = Types::WAFConfigurationWarningException
1278
+
1236
1279
  WAFDuplicateItemException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
1237
1280
  WAFDuplicateItemException.struct_class = Types::WAFDuplicateItemException
1238
1281
 
@@ -1359,6 +1402,7 @@ module Aws::WAFV2
1359
1402
  o.errors << Shapes::ShapeRef.new(shape: WAFUnavailableEntityException)
1360
1403
  o.errors << Shapes::ShapeRef.new(shape: WAFSubscriptionNotFoundException)
1361
1404
  o.errors << Shapes::ShapeRef.new(shape: WAFExpiredManagedRuleGroupVersionException)
1405
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1362
1406
  end)
1363
1407
 
1364
1408
  api.add_operation(:create_ip_set, Seahorse::Model::Operation.new.tap do |o|
@@ -1430,6 +1474,7 @@ module Aws::WAFV2
1430
1474
  o.errors << Shapes::ShapeRef.new(shape: WAFTagOperationInternalErrorException)
1431
1475
  o.errors << Shapes::ShapeRef.new(shape: WAFSubscriptionNotFoundException)
1432
1476
  o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1477
+ o.errors << Shapes::ShapeRef.new(shape: WAFConfigurationWarningException)
1433
1478
  end)
1434
1479
 
1435
1480
  api.add_operation(:delete_firewall_manager_rule_groups, Seahorse::Model::Operation.new.tap do |o|
@@ -1956,6 +2001,7 @@ module Aws::WAFV2
1956
2001
  o.errors << Shapes::ShapeRef.new(shape: WAFUnavailableEntityException)
1957
2002
  o.errors << Shapes::ShapeRef.new(shape: WAFSubscriptionNotFoundException)
1958
2003
  o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
2004
+ o.errors << Shapes::ShapeRef.new(shape: WAFConfigurationWarningException)
1959
2005
  end)
1960
2006
 
1961
2007
  api.add_operation(:update_web_acl, Seahorse::Model::Operation.new.tap do |o|
@@ -1975,6 +2021,7 @@ module Aws::WAFV2
1975
2021
  o.errors << Shapes::ShapeRef.new(shape: WAFSubscriptionNotFoundException)
1976
2022
  o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1977
2023
  o.errors << Shapes::ShapeRef.new(shape: WAFExpiredManagedRuleGroupVersionException)
2024
+ o.errors << Shapes::ShapeRef.new(shape: WAFConfigurationWarningException)
1978
2025
  end)
1979
2026
  end
1980
2027
 
@@ -28,6 +28,7 @@ module Aws::WAFV2
28
28
  #
29
29
  # ## Error Classes
30
30
  # * {WAFAssociatedItemException}
31
+ # * {WAFConfigurationWarningException}
31
32
  # * {WAFDuplicateItemException}
32
33
  # * {WAFExpiredManagedRuleGroupVersionException}
33
34
  # * {WAFInternalErrorException}
@@ -66,6 +67,21 @@ module Aws::WAFV2
66
67
  end
67
68
  end
68
69
 
70
+ class WAFConfigurationWarningException < ServiceError
71
+
72
+ # @param [Seahorse::Client::RequestContext] context
73
+ # @param [String] message
74
+ # @param [Aws::WAFV2::Types::WAFConfigurationWarningException] data
75
+ def initialize(context, message, data = Aws::EmptyStructure.new)
76
+ super(context, message, data)
77
+ end
78
+
79
+ # @return [String]
80
+ def message
81
+ @message || @data[:message]
82
+ end
83
+ end
84
+
69
85
  class WAFDuplicateItemException < ServiceError
70
86
 
71
87
  # @param [Seahorse::Client::RequestContext] context