aws-sdk-wafv2 1.37.0 → 1.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-wafv2/client.rb +1449 -21
- data/lib/aws-sdk-wafv2/client_api.rb +49 -0
- data/lib/aws-sdk-wafv2/errors.rb +16 -0
- data/lib/aws-sdk-wafv2/types.rb +3008 -177
- data/lib/aws-sdk-wafv2.rb +1 -1
- metadata +2 -2
@@ -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"))
|
@@ -753,6 +792,7 @@ module Aws::WAFV2
|
|
753
792
|
|
754
793
|
ListAvailableManagedRuleGroupVersionsResponse.add_member(:next_marker, Shapes::ShapeRef.new(shape: NextMarker, location_name: "NextMarker"))
|
755
794
|
ListAvailableManagedRuleGroupVersionsResponse.add_member(:versions, Shapes::ShapeRef.new(shape: ManagedRuleGroupVersions, location_name: "Versions"))
|
795
|
+
ListAvailableManagedRuleGroupVersionsResponse.add_member(:current_default_version, Shapes::ShapeRef.new(shape: VersionKeyString, location_name: "CurrentDefaultVersion"))
|
756
796
|
ListAvailableManagedRuleGroupVersionsResponse.struct_class = Types::ListAvailableManagedRuleGroupVersionsResponse
|
757
797
|
|
758
798
|
ListAvailableManagedRuleGroupsRequest.add_member(:scope, Shapes::ShapeRef.new(shape: Scope, required: true, location_name: "Scope"))
|
@@ -878,6 +918,7 @@ module Aws::WAFV2
|
|
878
918
|
|
879
919
|
ManagedRuleGroupSummary.add_member(:vendor_name, Shapes::ShapeRef.new(shape: VendorName, location_name: "VendorName"))
|
880
920
|
ManagedRuleGroupSummary.add_member(:name, Shapes::ShapeRef.new(shape: EntityName, location_name: "Name"))
|
921
|
+
ManagedRuleGroupSummary.add_member(:versioning_supported, Shapes::ShapeRef.new(shape: Boolean, location_name: "VersioningSupported"))
|
881
922
|
ManagedRuleGroupSummary.add_member(:description, Shapes::ShapeRef.new(shape: EntityDescription, location_name: "Description"))
|
882
923
|
ManagedRuleGroupSummary.struct_class = Types::ManagedRuleGroupSummary
|
883
924
|
|
@@ -1093,6 +1134,7 @@ module Aws::WAFV2
|
|
1093
1134
|
|
1094
1135
|
SqliMatchStatement.add_member(:field_to_match, Shapes::ShapeRef.new(shape: FieldToMatch, required: true, location_name: "FieldToMatch"))
|
1095
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"))
|
1096
1138
|
SqliMatchStatement.struct_class = Types::SqliMatchStatement
|
1097
1139
|
|
1098
1140
|
Statement.add_member(:byte_match_statement, Shapes::ShapeRef.new(shape: ByteMatchStatement, location_name: "ByteMatchStatement"))
|
@@ -1231,6 +1273,9 @@ module Aws::WAFV2
|
|
1231
1273
|
WAFAssociatedItemException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
1232
1274
|
WAFAssociatedItemException.struct_class = Types::WAFAssociatedItemException
|
1233
1275
|
|
1276
|
+
WAFConfigurationWarningException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
1277
|
+
WAFConfigurationWarningException.struct_class = Types::WAFConfigurationWarningException
|
1278
|
+
|
1234
1279
|
WAFDuplicateItemException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
1235
1280
|
WAFDuplicateItemException.struct_class = Types::WAFDuplicateItemException
|
1236
1281
|
|
@@ -1428,6 +1473,7 @@ module Aws::WAFV2
|
|
1428
1473
|
o.errors << Shapes::ShapeRef.new(shape: WAFTagOperationInternalErrorException)
|
1429
1474
|
o.errors << Shapes::ShapeRef.new(shape: WAFSubscriptionNotFoundException)
|
1430
1475
|
o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
|
1476
|
+
o.errors << Shapes::ShapeRef.new(shape: WAFConfigurationWarningException)
|
1431
1477
|
end)
|
1432
1478
|
|
1433
1479
|
api.add_operation(:delete_firewall_manager_rule_groups, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1708,6 +1754,7 @@ module Aws::WAFV2
|
|
1708
1754
|
o.output = Shapes::ShapeRef.new(shape: ListAvailableManagedRuleGroupVersionsResponse)
|
1709
1755
|
o.errors << Shapes::ShapeRef.new(shape: WAFInternalErrorException)
|
1710
1756
|
o.errors << Shapes::ShapeRef.new(shape: WAFInvalidParameterException)
|
1757
|
+
o.errors << Shapes::ShapeRef.new(shape: WAFNonexistentItemException)
|
1711
1758
|
o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
|
1712
1759
|
end)
|
1713
1760
|
|
@@ -1953,6 +2000,7 @@ module Aws::WAFV2
|
|
1953
2000
|
o.errors << Shapes::ShapeRef.new(shape: WAFUnavailableEntityException)
|
1954
2001
|
o.errors << Shapes::ShapeRef.new(shape: WAFSubscriptionNotFoundException)
|
1955
2002
|
o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
|
2003
|
+
o.errors << Shapes::ShapeRef.new(shape: WAFConfigurationWarningException)
|
1956
2004
|
end)
|
1957
2005
|
|
1958
2006
|
api.add_operation(:update_web_acl, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1972,6 +2020,7 @@ module Aws::WAFV2
|
|
1972
2020
|
o.errors << Shapes::ShapeRef.new(shape: WAFSubscriptionNotFoundException)
|
1973
2021
|
o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
|
1974
2022
|
o.errors << Shapes::ShapeRef.new(shape: WAFExpiredManagedRuleGroupVersionException)
|
2023
|
+
o.errors << Shapes::ShapeRef.new(shape: WAFConfigurationWarningException)
|
1975
2024
|
end)
|
1976
2025
|
end
|
1977
2026
|
|
data/lib/aws-sdk-wafv2/errors.rb
CHANGED
@@ -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
|