aws-sdk-wafv2 1.56.0 → 1.58.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-wafv2/client.rb +517 -18
- data/lib/aws-sdk-wafv2/client_api.rb +58 -0
- data/lib/aws-sdk-wafv2/errors.rb +16 -0
- data/lib/aws-sdk-wafv2/types.rb +702 -138
- data/lib/aws-sdk-wafv2.rb +1 -1
- metadata +2 -2
@@ -153,6 +153,7 @@ module Aws::WAFV2
|
|
153
153
|
HeaderMatchPattern = Shapes::StructureShape.new(name: 'HeaderMatchPattern')
|
154
154
|
HeaderName = Shapes::StringShape.new(name: 'HeaderName')
|
155
155
|
HeaderNames = Shapes::ListShape.new(name: 'HeaderNames')
|
156
|
+
HeaderOrder = Shapes::StructureShape.new(name: 'HeaderOrder')
|
156
157
|
HeaderValue = Shapes::StringShape.new(name: 'HeaderValue')
|
157
158
|
Headers = Shapes::StructureShape.new(name: 'Headers')
|
158
159
|
IPAddress = Shapes::StringShape.new(name: 'IPAddress')
|
@@ -177,6 +178,7 @@ module Aws::WAFV2
|
|
177
178
|
LabelMatchStatement = Shapes::StructureShape.new(name: 'LabelMatchStatement')
|
178
179
|
LabelName = Shapes::StringShape.new(name: 'LabelName')
|
179
180
|
LabelNameCondition = Shapes::StructureShape.new(name: 'LabelNameCondition')
|
181
|
+
LabelNamespace = Shapes::StringShape.new(name: 'LabelNamespace')
|
180
182
|
LabelSummaries = Shapes::ListShape.new(name: 'LabelSummaries')
|
181
183
|
LabelSummary = Shapes::StructureShape.new(name: 'LabelSummary')
|
182
184
|
Labels = Shapes::ListShape.new(name: 'Labels')
|
@@ -252,8 +254,18 @@ module Aws::WAFV2
|
|
252
254
|
QueryString = Shapes::StructureShape.new(name: 'QueryString')
|
253
255
|
RateBasedStatement = Shapes::StructureShape.new(name: 'RateBasedStatement')
|
254
256
|
RateBasedStatementAggregateKeyType = Shapes::StringShape.new(name: 'RateBasedStatementAggregateKeyType')
|
257
|
+
RateBasedStatementCustomKey = Shapes::StructureShape.new(name: 'RateBasedStatementCustomKey')
|
258
|
+
RateBasedStatementCustomKeys = Shapes::ListShape.new(name: 'RateBasedStatementCustomKeys')
|
255
259
|
RateBasedStatementManagedKeysIPSet = Shapes::StructureShape.new(name: 'RateBasedStatementManagedKeysIPSet')
|
256
260
|
RateLimit = Shapes::IntegerShape.new(name: 'RateLimit')
|
261
|
+
RateLimitCookie = Shapes::StructureShape.new(name: 'RateLimitCookie')
|
262
|
+
RateLimitForwardedIP = Shapes::StructureShape.new(name: 'RateLimitForwardedIP')
|
263
|
+
RateLimitHTTPMethod = Shapes::StructureShape.new(name: 'RateLimitHTTPMethod')
|
264
|
+
RateLimitHeader = Shapes::StructureShape.new(name: 'RateLimitHeader')
|
265
|
+
RateLimitIP = Shapes::StructureShape.new(name: 'RateLimitIP')
|
266
|
+
RateLimitLabelNamespace = Shapes::StructureShape.new(name: 'RateLimitLabelNamespace')
|
267
|
+
RateLimitQueryArgument = Shapes::StructureShape.new(name: 'RateLimitQueryArgument')
|
268
|
+
RateLimitQueryString = Shapes::StructureShape.new(name: 'RateLimitQueryString')
|
257
269
|
RedactedFields = Shapes::ListShape.new(name: 'RedactedFields')
|
258
270
|
Regex = Shapes::StructureShape.new(name: 'Regex')
|
259
271
|
RegexMatchStatement = Shapes::StructureShape.new(name: 'RegexMatchStatement')
|
@@ -377,6 +389,7 @@ module Aws::WAFV2
|
|
377
389
|
WAFTagOperationException = Shapes::StructureShape.new(name: 'WAFTagOperationException')
|
378
390
|
WAFTagOperationInternalErrorException = Shapes::StructureShape.new(name: 'WAFTagOperationInternalErrorException')
|
379
391
|
WAFUnavailableEntityException = Shapes::StructureShape.new(name: 'WAFUnavailableEntityException')
|
392
|
+
WAFUnsupportedAggregateKeyTypeException = Shapes::StructureShape.new(name: 'WAFUnsupportedAggregateKeyTypeException')
|
380
393
|
WebACL = Shapes::StructureShape.new(name: 'WebACL')
|
381
394
|
WebACLSummaries = Shapes::ListShape.new(name: 'WebACLSummaries')
|
382
395
|
WebACLSummary = Shapes::StructureShape.new(name: 'WebACLSummary')
|
@@ -653,6 +666,7 @@ module Aws::WAFV2
|
|
653
666
|
FieldToMatch.add_member(:json_body, Shapes::ShapeRef.new(shape: JsonBody, location_name: "JsonBody"))
|
654
667
|
FieldToMatch.add_member(:headers, Shapes::ShapeRef.new(shape: Headers, location_name: "Headers"))
|
655
668
|
FieldToMatch.add_member(:cookies, Shapes::ShapeRef.new(shape: Cookies, location_name: "Cookies"))
|
669
|
+
FieldToMatch.add_member(:header_order, Shapes::ShapeRef.new(shape: HeaderOrder, location_name: "HeaderOrder"))
|
656
670
|
FieldToMatch.struct_class = Types::FieldToMatch
|
657
671
|
|
658
672
|
Filter.add_member(:behavior, Shapes::ShapeRef.new(shape: FilterBehavior, required: true, location_name: "Behavior"))
|
@@ -814,6 +828,9 @@ module Aws::WAFV2
|
|
814
828
|
|
815
829
|
HeaderNames.member = Shapes::ShapeRef.new(shape: FieldToMatchData)
|
816
830
|
|
831
|
+
HeaderOrder.add_member(:oversize_handling, Shapes::ShapeRef.new(shape: OversizeHandling, required: true, location_name: "OversizeHandling"))
|
832
|
+
HeaderOrder.struct_class = Types::HeaderOrder
|
833
|
+
|
817
834
|
Headers.add_member(:match_pattern, Shapes::ShapeRef.new(shape: HeaderMatchPattern, required: true, location_name: "MatchPattern"))
|
818
835
|
Headers.add_member(:match_scope, Shapes::ShapeRef.new(shape: MapMatchScope, required: true, location_name: "MatchScope"))
|
819
836
|
Headers.add_member(:oversize_handling, Shapes::ShapeRef.new(shape: OversizeHandling, required: true, location_name: "OversizeHandling"))
|
@@ -1119,12 +1136,49 @@ module Aws::WAFV2
|
|
1119
1136
|
RateBasedStatement.add_member(:aggregate_key_type, Shapes::ShapeRef.new(shape: RateBasedStatementAggregateKeyType, required: true, location_name: "AggregateKeyType"))
|
1120
1137
|
RateBasedStatement.add_member(:scope_down_statement, Shapes::ShapeRef.new(shape: Statement, location_name: "ScopeDownStatement"))
|
1121
1138
|
RateBasedStatement.add_member(:forwarded_ip_config, Shapes::ShapeRef.new(shape: ForwardedIPConfig, location_name: "ForwardedIPConfig"))
|
1139
|
+
RateBasedStatement.add_member(:custom_keys, Shapes::ShapeRef.new(shape: RateBasedStatementCustomKeys, location_name: "CustomKeys"))
|
1122
1140
|
RateBasedStatement.struct_class = Types::RateBasedStatement
|
1123
1141
|
|
1142
|
+
RateBasedStatementCustomKey.add_member(:header, Shapes::ShapeRef.new(shape: RateLimitHeader, location_name: "Header"))
|
1143
|
+
RateBasedStatementCustomKey.add_member(:cookie, Shapes::ShapeRef.new(shape: RateLimitCookie, location_name: "Cookie"))
|
1144
|
+
RateBasedStatementCustomKey.add_member(:query_argument, Shapes::ShapeRef.new(shape: RateLimitQueryArgument, location_name: "QueryArgument"))
|
1145
|
+
RateBasedStatementCustomKey.add_member(:query_string, Shapes::ShapeRef.new(shape: RateLimitQueryString, location_name: "QueryString"))
|
1146
|
+
RateBasedStatementCustomKey.add_member(:http_method, Shapes::ShapeRef.new(shape: RateLimitHTTPMethod, location_name: "HTTPMethod"))
|
1147
|
+
RateBasedStatementCustomKey.add_member(:forwarded_ip, Shapes::ShapeRef.new(shape: RateLimitForwardedIP, location_name: "ForwardedIP"))
|
1148
|
+
RateBasedStatementCustomKey.add_member(:ip, Shapes::ShapeRef.new(shape: RateLimitIP, location_name: "IP"))
|
1149
|
+
RateBasedStatementCustomKey.add_member(:label_namespace, Shapes::ShapeRef.new(shape: RateLimitLabelNamespace, location_name: "LabelNamespace"))
|
1150
|
+
RateBasedStatementCustomKey.struct_class = Types::RateBasedStatementCustomKey
|
1151
|
+
|
1152
|
+
RateBasedStatementCustomKeys.member = Shapes::ShapeRef.new(shape: RateBasedStatementCustomKey)
|
1153
|
+
|
1124
1154
|
RateBasedStatementManagedKeysIPSet.add_member(:ip_address_version, Shapes::ShapeRef.new(shape: IPAddressVersion, location_name: "IPAddressVersion"))
|
1125
1155
|
RateBasedStatementManagedKeysIPSet.add_member(:addresses, Shapes::ShapeRef.new(shape: IPAddresses, location_name: "Addresses"))
|
1126
1156
|
RateBasedStatementManagedKeysIPSet.struct_class = Types::RateBasedStatementManagedKeysIPSet
|
1127
1157
|
|
1158
|
+
RateLimitCookie.add_member(:name, Shapes::ShapeRef.new(shape: FieldToMatchData, required: true, location_name: "Name"))
|
1159
|
+
RateLimitCookie.add_member(:text_transformations, Shapes::ShapeRef.new(shape: TextTransformations, required: true, location_name: "TextTransformations"))
|
1160
|
+
RateLimitCookie.struct_class = Types::RateLimitCookie
|
1161
|
+
|
1162
|
+
RateLimitForwardedIP.struct_class = Types::RateLimitForwardedIP
|
1163
|
+
|
1164
|
+
RateLimitHTTPMethod.struct_class = Types::RateLimitHTTPMethod
|
1165
|
+
|
1166
|
+
RateLimitHeader.add_member(:name, Shapes::ShapeRef.new(shape: FieldToMatchData, required: true, location_name: "Name"))
|
1167
|
+
RateLimitHeader.add_member(:text_transformations, Shapes::ShapeRef.new(shape: TextTransformations, required: true, location_name: "TextTransformations"))
|
1168
|
+
RateLimitHeader.struct_class = Types::RateLimitHeader
|
1169
|
+
|
1170
|
+
RateLimitIP.struct_class = Types::RateLimitIP
|
1171
|
+
|
1172
|
+
RateLimitLabelNamespace.add_member(:namespace, Shapes::ShapeRef.new(shape: LabelNamespace, required: true, location_name: "Namespace"))
|
1173
|
+
RateLimitLabelNamespace.struct_class = Types::RateLimitLabelNamespace
|
1174
|
+
|
1175
|
+
RateLimitQueryArgument.add_member(:name, Shapes::ShapeRef.new(shape: FieldToMatchData, required: true, location_name: "Name"))
|
1176
|
+
RateLimitQueryArgument.add_member(:text_transformations, Shapes::ShapeRef.new(shape: TextTransformations, required: true, location_name: "TextTransformations"))
|
1177
|
+
RateLimitQueryArgument.struct_class = Types::RateLimitQueryArgument
|
1178
|
+
|
1179
|
+
RateLimitQueryString.add_member(:text_transformations, Shapes::ShapeRef.new(shape: TextTransformations, required: true, location_name: "TextTransformations"))
|
1180
|
+
RateLimitQueryString.struct_class = Types::RateLimitQueryString
|
1181
|
+
|
1128
1182
|
RedactedFields.member = Shapes::ShapeRef.new(shape: FieldToMatch)
|
1129
1183
|
|
1130
1184
|
Regex.add_member(:regex_string, Shapes::ShapeRef.new(shape: RegexPatternString, location_name: "RegexString"))
|
@@ -1503,6 +1557,9 @@ module Aws::WAFV2
|
|
1503
1557
|
WAFUnavailableEntityException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
1504
1558
|
WAFUnavailableEntityException.struct_class = Types::WAFUnavailableEntityException
|
1505
1559
|
|
1560
|
+
WAFUnsupportedAggregateKeyTypeException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
1561
|
+
WAFUnsupportedAggregateKeyTypeException.struct_class = Types::WAFUnsupportedAggregateKeyTypeException
|
1562
|
+
|
1506
1563
|
WebACL.add_member(:name, Shapes::ShapeRef.new(shape: EntityName, required: true, location_name: "Name"))
|
1507
1564
|
WebACL.add_member(:id, Shapes::ShapeRef.new(shape: EntityId, required: true, location_name: "Id"))
|
1508
1565
|
WebACL.add_member(:arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "ARN"))
|
@@ -1889,6 +1946,7 @@ module Aws::WAFV2
|
|
1889
1946
|
o.errors << Shapes::ShapeRef.new(shape: WAFInvalidParameterException)
|
1890
1947
|
o.errors << Shapes::ShapeRef.new(shape: WAFNonexistentItemException)
|
1891
1948
|
o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
|
1949
|
+
o.errors << Shapes::ShapeRef.new(shape: WAFUnsupportedAggregateKeyTypeException)
|
1892
1950
|
end)
|
1893
1951
|
|
1894
1952
|
api.add_operation(:get_regex_pattern_set, Seahorse::Model::Operation.new.tap do |o|
|
data/lib/aws-sdk-wafv2/errors.rb
CHANGED
@@ -45,6 +45,7 @@ module Aws::WAFV2
|
|
45
45
|
# * {WAFTagOperationException}
|
46
46
|
# * {WAFTagOperationInternalErrorException}
|
47
47
|
# * {WAFUnavailableEntityException}
|
48
|
+
# * {WAFUnsupportedAggregateKeyTypeException}
|
48
49
|
#
|
49
50
|
# Additionally, error classes are dynamically generated for service errors based on the error code
|
50
51
|
# if they are not defined above.
|
@@ -337,5 +338,20 @@ module Aws::WAFV2
|
|
337
338
|
end
|
338
339
|
end
|
339
340
|
|
341
|
+
class WAFUnsupportedAggregateKeyTypeException < ServiceError
|
342
|
+
|
343
|
+
# @param [Seahorse::Client::RequestContext] context
|
344
|
+
# @param [String] message
|
345
|
+
# @param [Aws::WAFV2::Types::WAFUnsupportedAggregateKeyTypeException] data
|
346
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
347
|
+
super(context, message, data)
|
348
|
+
end
|
349
|
+
|
350
|
+
# @return [String]
|
351
|
+
def message
|
352
|
+
@message || @data[:message]
|
353
|
+
end
|
354
|
+
end
|
355
|
+
|
340
356
|
end
|
341
357
|
end
|