aws-sdk-wafv2 1.56.0 → 1.57.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-wafv2/client.rb +379 -18
- data/lib/aws-sdk-wafv2/client_api.rb +53 -0
- data/lib/aws-sdk-wafv2/errors.rb +16 -0
- data/lib/aws-sdk-wafv2/types.rb +615 -109
- data/lib/aws-sdk-wafv2.rb +1 -1
- metadata +2 -2
@@ -177,6 +177,7 @@ module Aws::WAFV2
|
|
177
177
|
LabelMatchStatement = Shapes::StructureShape.new(name: 'LabelMatchStatement')
|
178
178
|
LabelName = Shapes::StringShape.new(name: 'LabelName')
|
179
179
|
LabelNameCondition = Shapes::StructureShape.new(name: 'LabelNameCondition')
|
180
|
+
LabelNamespace = Shapes::StringShape.new(name: 'LabelNamespace')
|
180
181
|
LabelSummaries = Shapes::ListShape.new(name: 'LabelSummaries')
|
181
182
|
LabelSummary = Shapes::StructureShape.new(name: 'LabelSummary')
|
182
183
|
Labels = Shapes::ListShape.new(name: 'Labels')
|
@@ -252,8 +253,18 @@ module Aws::WAFV2
|
|
252
253
|
QueryString = Shapes::StructureShape.new(name: 'QueryString')
|
253
254
|
RateBasedStatement = Shapes::StructureShape.new(name: 'RateBasedStatement')
|
254
255
|
RateBasedStatementAggregateKeyType = Shapes::StringShape.new(name: 'RateBasedStatementAggregateKeyType')
|
256
|
+
RateBasedStatementCustomKey = Shapes::StructureShape.new(name: 'RateBasedStatementCustomKey')
|
257
|
+
RateBasedStatementCustomKeys = Shapes::ListShape.new(name: 'RateBasedStatementCustomKeys')
|
255
258
|
RateBasedStatementManagedKeysIPSet = Shapes::StructureShape.new(name: 'RateBasedStatementManagedKeysIPSet')
|
256
259
|
RateLimit = Shapes::IntegerShape.new(name: 'RateLimit')
|
260
|
+
RateLimitCookie = Shapes::StructureShape.new(name: 'RateLimitCookie')
|
261
|
+
RateLimitForwardedIP = Shapes::StructureShape.new(name: 'RateLimitForwardedIP')
|
262
|
+
RateLimitHTTPMethod = Shapes::StructureShape.new(name: 'RateLimitHTTPMethod')
|
263
|
+
RateLimitHeader = Shapes::StructureShape.new(name: 'RateLimitHeader')
|
264
|
+
RateLimitIP = Shapes::StructureShape.new(name: 'RateLimitIP')
|
265
|
+
RateLimitLabelNamespace = Shapes::StructureShape.new(name: 'RateLimitLabelNamespace')
|
266
|
+
RateLimitQueryArgument = Shapes::StructureShape.new(name: 'RateLimitQueryArgument')
|
267
|
+
RateLimitQueryString = Shapes::StructureShape.new(name: 'RateLimitQueryString')
|
257
268
|
RedactedFields = Shapes::ListShape.new(name: 'RedactedFields')
|
258
269
|
Regex = Shapes::StructureShape.new(name: 'Regex')
|
259
270
|
RegexMatchStatement = Shapes::StructureShape.new(name: 'RegexMatchStatement')
|
@@ -377,6 +388,7 @@ module Aws::WAFV2
|
|
377
388
|
WAFTagOperationException = Shapes::StructureShape.new(name: 'WAFTagOperationException')
|
378
389
|
WAFTagOperationInternalErrorException = Shapes::StructureShape.new(name: 'WAFTagOperationInternalErrorException')
|
379
390
|
WAFUnavailableEntityException = Shapes::StructureShape.new(name: 'WAFUnavailableEntityException')
|
391
|
+
WAFUnsupportedAggregateKeyTypeException = Shapes::StructureShape.new(name: 'WAFUnsupportedAggregateKeyTypeException')
|
380
392
|
WebACL = Shapes::StructureShape.new(name: 'WebACL')
|
381
393
|
WebACLSummaries = Shapes::ListShape.new(name: 'WebACLSummaries')
|
382
394
|
WebACLSummary = Shapes::StructureShape.new(name: 'WebACLSummary')
|
@@ -1119,12 +1131,49 @@ module Aws::WAFV2
|
|
1119
1131
|
RateBasedStatement.add_member(:aggregate_key_type, Shapes::ShapeRef.new(shape: RateBasedStatementAggregateKeyType, required: true, location_name: "AggregateKeyType"))
|
1120
1132
|
RateBasedStatement.add_member(:scope_down_statement, Shapes::ShapeRef.new(shape: Statement, location_name: "ScopeDownStatement"))
|
1121
1133
|
RateBasedStatement.add_member(:forwarded_ip_config, Shapes::ShapeRef.new(shape: ForwardedIPConfig, location_name: "ForwardedIPConfig"))
|
1134
|
+
RateBasedStatement.add_member(:custom_keys, Shapes::ShapeRef.new(shape: RateBasedStatementCustomKeys, location_name: "CustomKeys"))
|
1122
1135
|
RateBasedStatement.struct_class = Types::RateBasedStatement
|
1123
1136
|
|
1137
|
+
RateBasedStatementCustomKey.add_member(:header, Shapes::ShapeRef.new(shape: RateLimitHeader, location_name: "Header"))
|
1138
|
+
RateBasedStatementCustomKey.add_member(:cookie, Shapes::ShapeRef.new(shape: RateLimitCookie, location_name: "Cookie"))
|
1139
|
+
RateBasedStatementCustomKey.add_member(:query_argument, Shapes::ShapeRef.new(shape: RateLimitQueryArgument, location_name: "QueryArgument"))
|
1140
|
+
RateBasedStatementCustomKey.add_member(:query_string, Shapes::ShapeRef.new(shape: RateLimitQueryString, location_name: "QueryString"))
|
1141
|
+
RateBasedStatementCustomKey.add_member(:http_method, Shapes::ShapeRef.new(shape: RateLimitHTTPMethod, location_name: "HTTPMethod"))
|
1142
|
+
RateBasedStatementCustomKey.add_member(:forwarded_ip, Shapes::ShapeRef.new(shape: RateLimitForwardedIP, location_name: "ForwardedIP"))
|
1143
|
+
RateBasedStatementCustomKey.add_member(:ip, Shapes::ShapeRef.new(shape: RateLimitIP, location_name: "IP"))
|
1144
|
+
RateBasedStatementCustomKey.add_member(:label_namespace, Shapes::ShapeRef.new(shape: RateLimitLabelNamespace, location_name: "LabelNamespace"))
|
1145
|
+
RateBasedStatementCustomKey.struct_class = Types::RateBasedStatementCustomKey
|
1146
|
+
|
1147
|
+
RateBasedStatementCustomKeys.member = Shapes::ShapeRef.new(shape: RateBasedStatementCustomKey)
|
1148
|
+
|
1124
1149
|
RateBasedStatementManagedKeysIPSet.add_member(:ip_address_version, Shapes::ShapeRef.new(shape: IPAddressVersion, location_name: "IPAddressVersion"))
|
1125
1150
|
RateBasedStatementManagedKeysIPSet.add_member(:addresses, Shapes::ShapeRef.new(shape: IPAddresses, location_name: "Addresses"))
|
1126
1151
|
RateBasedStatementManagedKeysIPSet.struct_class = Types::RateBasedStatementManagedKeysIPSet
|
1127
1152
|
|
1153
|
+
RateLimitCookie.add_member(:name, Shapes::ShapeRef.new(shape: FieldToMatchData, required: true, location_name: "Name"))
|
1154
|
+
RateLimitCookie.add_member(:text_transformations, Shapes::ShapeRef.new(shape: TextTransformations, required: true, location_name: "TextTransformations"))
|
1155
|
+
RateLimitCookie.struct_class = Types::RateLimitCookie
|
1156
|
+
|
1157
|
+
RateLimitForwardedIP.struct_class = Types::RateLimitForwardedIP
|
1158
|
+
|
1159
|
+
RateLimitHTTPMethod.struct_class = Types::RateLimitHTTPMethod
|
1160
|
+
|
1161
|
+
RateLimitHeader.add_member(:name, Shapes::ShapeRef.new(shape: FieldToMatchData, required: true, location_name: "Name"))
|
1162
|
+
RateLimitHeader.add_member(:text_transformations, Shapes::ShapeRef.new(shape: TextTransformations, required: true, location_name: "TextTransformations"))
|
1163
|
+
RateLimitHeader.struct_class = Types::RateLimitHeader
|
1164
|
+
|
1165
|
+
RateLimitIP.struct_class = Types::RateLimitIP
|
1166
|
+
|
1167
|
+
RateLimitLabelNamespace.add_member(:namespace, Shapes::ShapeRef.new(shape: LabelNamespace, required: true, location_name: "Namespace"))
|
1168
|
+
RateLimitLabelNamespace.struct_class = Types::RateLimitLabelNamespace
|
1169
|
+
|
1170
|
+
RateLimitQueryArgument.add_member(:name, Shapes::ShapeRef.new(shape: FieldToMatchData, required: true, location_name: "Name"))
|
1171
|
+
RateLimitQueryArgument.add_member(:text_transformations, Shapes::ShapeRef.new(shape: TextTransformations, required: true, location_name: "TextTransformations"))
|
1172
|
+
RateLimitQueryArgument.struct_class = Types::RateLimitQueryArgument
|
1173
|
+
|
1174
|
+
RateLimitQueryString.add_member(:text_transformations, Shapes::ShapeRef.new(shape: TextTransformations, required: true, location_name: "TextTransformations"))
|
1175
|
+
RateLimitQueryString.struct_class = Types::RateLimitQueryString
|
1176
|
+
|
1128
1177
|
RedactedFields.member = Shapes::ShapeRef.new(shape: FieldToMatch)
|
1129
1178
|
|
1130
1179
|
Regex.add_member(:regex_string, Shapes::ShapeRef.new(shape: RegexPatternString, location_name: "RegexString"))
|
@@ -1503,6 +1552,9 @@ module Aws::WAFV2
|
|
1503
1552
|
WAFUnavailableEntityException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
1504
1553
|
WAFUnavailableEntityException.struct_class = Types::WAFUnavailableEntityException
|
1505
1554
|
|
1555
|
+
WAFUnsupportedAggregateKeyTypeException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
1556
|
+
WAFUnsupportedAggregateKeyTypeException.struct_class = Types::WAFUnsupportedAggregateKeyTypeException
|
1557
|
+
|
1506
1558
|
WebACL.add_member(:name, Shapes::ShapeRef.new(shape: EntityName, required: true, location_name: "Name"))
|
1507
1559
|
WebACL.add_member(:id, Shapes::ShapeRef.new(shape: EntityId, required: true, location_name: "Id"))
|
1508
1560
|
WebACL.add_member(:arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "ARN"))
|
@@ -1889,6 +1941,7 @@ module Aws::WAFV2
|
|
1889
1941
|
o.errors << Shapes::ShapeRef.new(shape: WAFInvalidParameterException)
|
1890
1942
|
o.errors << Shapes::ShapeRef.new(shape: WAFNonexistentItemException)
|
1891
1943
|
o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
|
1944
|
+
o.errors << Shapes::ShapeRef.new(shape: WAFUnsupportedAggregateKeyTypeException)
|
1892
1945
|
end)
|
1893
1946
|
|
1894
1947
|
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
|