aws-sdk-wafv2 1.36.0 → 1.39.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 +1437 -19
- data/lib/aws-sdk-wafv2/client_api.rb +47 -0
- data/lib/aws-sdk-wafv2/errors.rb +16 -0
- data/lib/aws-sdk-wafv2/types.rb +2928 -116
- data/lib/aws-sdk-wafv2.rb +1 -1
- metadata +4 -4
@@ -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,7 @@ 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
|
+
SingleCookieName = Shapes::StringShape.new(name: 'SingleCookieName')
|
262
271
|
SingleHeader = Shapes::StructureShape.new(name: 'SingleHeader')
|
263
272
|
SingleQueryArgument = Shapes::StructureShape.new(name: 'SingleQueryArgument')
|
264
273
|
Size = Shapes::IntegerShape.new(name: 'Size')
|
@@ -304,6 +313,7 @@ module Aws::WAFV2
|
|
304
313
|
VersionsToPublish = Shapes::MapShape.new(name: 'VersionsToPublish')
|
305
314
|
VisibilityConfig = Shapes::StructureShape.new(name: 'VisibilityConfig')
|
306
315
|
WAFAssociatedItemException = Shapes::StructureShape.new(name: 'WAFAssociatedItemException')
|
316
|
+
WAFConfigurationWarningException = Shapes::StructureShape.new(name: 'WAFConfigurationWarningException')
|
307
317
|
WAFDuplicateItemException = Shapes::StructureShape.new(name: 'WAFDuplicateItemException')
|
308
318
|
WAFExpiredManagedRuleGroupVersionException = Shapes::StructureShape.new(name: 'WAFExpiredManagedRuleGroupVersionException')
|
309
319
|
WAFInternalErrorException = Shapes::StructureShape.new(name: 'WAFInternalErrorException')
|
@@ -347,6 +357,7 @@ module Aws::WAFV2
|
|
347
357
|
BlockAction.add_member(:custom_response, Shapes::ShapeRef.new(shape: CustomResponse, location_name: "CustomResponse"))
|
348
358
|
BlockAction.struct_class = Types::BlockAction
|
349
359
|
|
360
|
+
Body.add_member(:oversize_handling, Shapes::ShapeRef.new(shape: OversizeHandling, location_name: "OversizeHandling"))
|
350
361
|
Body.struct_class = Types::Body
|
351
362
|
|
352
363
|
ByteMatchStatement.add_member(:search_string, Shapes::ShapeRef.new(shape: SearchString, required: true, location_name: "SearchString"))
|
@@ -379,6 +390,18 @@ module Aws::WAFV2
|
|
379
390
|
|
380
391
|
Conditions.member = Shapes::ShapeRef.new(shape: Condition)
|
381
392
|
|
393
|
+
CookieMatchPattern.add_member(:all, Shapes::ShapeRef.new(shape: All, location_name: "All"))
|
394
|
+
CookieMatchPattern.add_member(:included_cookies, Shapes::ShapeRef.new(shape: CookieNames, location_name: "IncludedCookies"))
|
395
|
+
CookieMatchPattern.add_member(:excluded_cookies, Shapes::ShapeRef.new(shape: CookieNames, location_name: "ExcludedCookies"))
|
396
|
+
CookieMatchPattern.struct_class = Types::CookieMatchPattern
|
397
|
+
|
398
|
+
CookieNames.member = Shapes::ShapeRef.new(shape: SingleCookieName)
|
399
|
+
|
400
|
+
Cookies.add_member(:match_pattern, Shapes::ShapeRef.new(shape: CookieMatchPattern, required: true, location_name: "MatchPattern"))
|
401
|
+
Cookies.add_member(:match_scope, Shapes::ShapeRef.new(shape: MapMatchScope, required: true, location_name: "MatchScope"))
|
402
|
+
Cookies.add_member(:oversize_handling, Shapes::ShapeRef.new(shape: OversizeHandling, required: true, location_name: "OversizeHandling"))
|
403
|
+
Cookies.struct_class = Types::Cookies
|
404
|
+
|
382
405
|
CountAction.add_member(:custom_request_handling, Shapes::ShapeRef.new(shape: CustomRequestHandling, location_name: "CustomRequestHandling"))
|
383
406
|
CountAction.struct_class = Types::CountAction
|
384
407
|
|
@@ -539,6 +562,8 @@ module Aws::WAFV2
|
|
539
562
|
FieldToMatch.add_member(:body, Shapes::ShapeRef.new(shape: Body, location_name: "Body"))
|
540
563
|
FieldToMatch.add_member(:method, Shapes::ShapeRef.new(shape: Method, location_name: "Method"))
|
541
564
|
FieldToMatch.add_member(:json_body, Shapes::ShapeRef.new(shape: JsonBody, location_name: "JsonBody"))
|
565
|
+
FieldToMatch.add_member(:headers, Shapes::ShapeRef.new(shape: Headers, location_name: "Headers"))
|
566
|
+
FieldToMatch.add_member(:cookies, Shapes::ShapeRef.new(shape: Cookies, location_name: "Cookies"))
|
542
567
|
FieldToMatch.struct_class = Types::FieldToMatch
|
543
568
|
|
544
569
|
Filter.add_member(:behavior, Shapes::ShapeRef.new(shape: FilterBehavior, required: true, location_name: "Behavior"))
|
@@ -685,6 +710,18 @@ module Aws::WAFV2
|
|
685
710
|
HTTPRequest.add_member(:headers, Shapes::ShapeRef.new(shape: HTTPHeaders, location_name: "Headers"))
|
686
711
|
HTTPRequest.struct_class = Types::HTTPRequest
|
687
712
|
|
713
|
+
HeaderMatchPattern.add_member(:all, Shapes::ShapeRef.new(shape: All, location_name: "All"))
|
714
|
+
HeaderMatchPattern.add_member(:included_headers, Shapes::ShapeRef.new(shape: HeaderNames, location_name: "IncludedHeaders"))
|
715
|
+
HeaderMatchPattern.add_member(:excluded_headers, Shapes::ShapeRef.new(shape: HeaderNames, location_name: "ExcludedHeaders"))
|
716
|
+
HeaderMatchPattern.struct_class = Types::HeaderMatchPattern
|
717
|
+
|
718
|
+
HeaderNames.member = Shapes::ShapeRef.new(shape: FieldToMatchData)
|
719
|
+
|
720
|
+
Headers.add_member(:match_pattern, Shapes::ShapeRef.new(shape: HeaderMatchPattern, required: true, location_name: "MatchPattern"))
|
721
|
+
Headers.add_member(:match_scope, Shapes::ShapeRef.new(shape: MapMatchScope, required: true, location_name: "MatchScope"))
|
722
|
+
Headers.add_member(:oversize_handling, Shapes::ShapeRef.new(shape: OversizeHandling, required: true, location_name: "OversizeHandling"))
|
723
|
+
Headers.struct_class = Types::Headers
|
724
|
+
|
688
725
|
IPAddresses.member = Shapes::ShapeRef.new(shape: IPAddress)
|
689
726
|
|
690
727
|
IPSet.add_member(:name, Shapes::ShapeRef.new(shape: EntityName, required: true, location_name: "Name"))
|
@@ -719,6 +756,7 @@ module Aws::WAFV2
|
|
719
756
|
JsonBody.add_member(:match_pattern, Shapes::ShapeRef.new(shape: JsonMatchPattern, required: true, location_name: "MatchPattern"))
|
720
757
|
JsonBody.add_member(:match_scope, Shapes::ShapeRef.new(shape: JsonMatchScope, required: true, location_name: "MatchScope"))
|
721
758
|
JsonBody.add_member(:invalid_fallback_behavior, Shapes::ShapeRef.new(shape: BodyParsingFallbackBehavior, location_name: "InvalidFallbackBehavior"))
|
759
|
+
JsonBody.add_member(:oversize_handling, Shapes::ShapeRef.new(shape: OversizeHandling, location_name: "OversizeHandling"))
|
722
760
|
JsonBody.struct_class = Types::JsonBody
|
723
761
|
|
724
762
|
JsonMatchPattern.add_member(:all, Shapes::ShapeRef.new(shape: All, location_name: "All"))
|
@@ -753,6 +791,7 @@ module Aws::WAFV2
|
|
753
791
|
|
754
792
|
ListAvailableManagedRuleGroupVersionsResponse.add_member(:next_marker, Shapes::ShapeRef.new(shape: NextMarker, location_name: "NextMarker"))
|
755
793
|
ListAvailableManagedRuleGroupVersionsResponse.add_member(:versions, Shapes::ShapeRef.new(shape: ManagedRuleGroupVersions, location_name: "Versions"))
|
794
|
+
ListAvailableManagedRuleGroupVersionsResponse.add_member(:current_default_version, Shapes::ShapeRef.new(shape: VersionKeyString, location_name: "CurrentDefaultVersion"))
|
756
795
|
ListAvailableManagedRuleGroupVersionsResponse.struct_class = Types::ListAvailableManagedRuleGroupVersionsResponse
|
757
796
|
|
758
797
|
ListAvailableManagedRuleGroupsRequest.add_member(:scope, Shapes::ShapeRef.new(shape: Scope, required: true, location_name: "Scope"))
|
@@ -878,6 +917,7 @@ module Aws::WAFV2
|
|
878
917
|
|
879
918
|
ManagedRuleGroupSummary.add_member(:vendor_name, Shapes::ShapeRef.new(shape: VendorName, location_name: "VendorName"))
|
880
919
|
ManagedRuleGroupSummary.add_member(:name, Shapes::ShapeRef.new(shape: EntityName, location_name: "Name"))
|
920
|
+
ManagedRuleGroupSummary.add_member(:versioning_supported, Shapes::ShapeRef.new(shape: Boolean, location_name: "VersioningSupported"))
|
881
921
|
ManagedRuleGroupSummary.add_member(:description, Shapes::ShapeRef.new(shape: EntityDescription, location_name: "Description"))
|
882
922
|
ManagedRuleGroupSummary.struct_class = Types::ManagedRuleGroupSummary
|
883
923
|
|
@@ -1231,6 +1271,9 @@ module Aws::WAFV2
|
|
1231
1271
|
WAFAssociatedItemException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
1232
1272
|
WAFAssociatedItemException.struct_class = Types::WAFAssociatedItemException
|
1233
1273
|
|
1274
|
+
WAFConfigurationWarningException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
1275
|
+
WAFConfigurationWarningException.struct_class = Types::WAFConfigurationWarningException
|
1276
|
+
|
1234
1277
|
WAFDuplicateItemException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
1235
1278
|
WAFDuplicateItemException.struct_class = Types::WAFDuplicateItemException
|
1236
1279
|
|
@@ -1428,6 +1471,7 @@ module Aws::WAFV2
|
|
1428
1471
|
o.errors << Shapes::ShapeRef.new(shape: WAFTagOperationInternalErrorException)
|
1429
1472
|
o.errors << Shapes::ShapeRef.new(shape: WAFSubscriptionNotFoundException)
|
1430
1473
|
o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
|
1474
|
+
o.errors << Shapes::ShapeRef.new(shape: WAFConfigurationWarningException)
|
1431
1475
|
end)
|
1432
1476
|
|
1433
1477
|
api.add_operation(:delete_firewall_manager_rule_groups, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1708,6 +1752,7 @@ module Aws::WAFV2
|
|
1708
1752
|
o.output = Shapes::ShapeRef.new(shape: ListAvailableManagedRuleGroupVersionsResponse)
|
1709
1753
|
o.errors << Shapes::ShapeRef.new(shape: WAFInternalErrorException)
|
1710
1754
|
o.errors << Shapes::ShapeRef.new(shape: WAFInvalidParameterException)
|
1755
|
+
o.errors << Shapes::ShapeRef.new(shape: WAFNonexistentItemException)
|
1711
1756
|
o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
|
1712
1757
|
end)
|
1713
1758
|
|
@@ -1953,6 +1998,7 @@ module Aws::WAFV2
|
|
1953
1998
|
o.errors << Shapes::ShapeRef.new(shape: WAFUnavailableEntityException)
|
1954
1999
|
o.errors << Shapes::ShapeRef.new(shape: WAFSubscriptionNotFoundException)
|
1955
2000
|
o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
|
2001
|
+
o.errors << Shapes::ShapeRef.new(shape: WAFConfigurationWarningException)
|
1956
2002
|
end)
|
1957
2003
|
|
1958
2004
|
api.add_operation(:update_web_acl, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1972,6 +2018,7 @@ module Aws::WAFV2
|
|
1972
2018
|
o.errors << Shapes::ShapeRef.new(shape: WAFSubscriptionNotFoundException)
|
1973
2019
|
o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
|
1974
2020
|
o.errors << Shapes::ShapeRef.new(shape: WAFExpiredManagedRuleGroupVersionException)
|
2021
|
+
o.errors << Shapes::ShapeRef.new(shape: WAFConfigurationWarningException)
|
1975
2022
|
end)
|
1976
2023
|
end
|
1977
2024
|
|
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
|