aws-sdk-wafv2 1.44.0 → 1.45.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-wafv2/client.rb +1 -1
- data/lib/aws-sdk-wafv2/types.rb +85 -13
- data/lib/aws-sdk-wafv2.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 54da821c1d4dcf409e62899dbe4b01df619d2e5d6f1d7a96d35061adbec205cd
|
4
|
+
data.tar.gz: 45129a1f5293aa98093c264facb0d2106897f5d885d454700f17ba991a635c2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b9a2c54275691ea555d65a0cd43dbc759a6edbb12de7cabb71eeeef1739126fe7050f8104fbf631281362b665cea26fa02154cd96542282599ab66607d5eb87
|
7
|
+
data.tar.gz: 83c8f9abe4447cf0762691a1f24c06d50cbb538e0eb5d159f408dca2f9536d87926e98b45752c2e9e81f30824f05ef0f7c52797b76062278e50d3a622b716bf7
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.45.0 (2022-11-07)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - The geo match statement now adds labels for country and region. You can match requests at the region level by combining a geo match statement with label match statements.
|
8
|
+
|
4
9
|
1.44.0 (2022-10-27)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.45.0
|
data/lib/aws-sdk-wafv2/client.rb
CHANGED
@@ -9021,7 +9021,7 @@ module Aws::WAFV2
|
|
9021
9021
|
params: params,
|
9022
9022
|
config: config)
|
9023
9023
|
context[:gem_name] = 'aws-sdk-wafv2'
|
9024
|
-
context[:gem_version] = '1.
|
9024
|
+
context[:gem_version] = '1.45.0'
|
9025
9025
|
Seahorse::Client::Request.new(handlers, context)
|
9026
9026
|
end
|
9027
9027
|
|
data/lib/aws-sdk-wafv2/types.rb
CHANGED
@@ -5191,8 +5191,41 @@ module Aws::WAFV2
|
|
5191
5191
|
include Aws::Structure
|
5192
5192
|
end
|
5193
5193
|
|
5194
|
-
# A rule statement
|
5195
|
-
#
|
5194
|
+
# A rule statement that labels web requests by country and region and
|
5195
|
+
# that matches against web requests based on country code. A geo match
|
5196
|
+
# rule labels every request that it inspects regardless of whether it
|
5197
|
+
# finds a match.
|
5198
|
+
#
|
5199
|
+
# * To manage requests only by country, you can use this statement by
|
5200
|
+
# itself and specify the countries that you want to match against in
|
5201
|
+
# the `CountryCodes` array.
|
5202
|
+
#
|
5203
|
+
# * Otherwise, configure your geo match rule with Count action so that
|
5204
|
+
# it only labels requests. Then, add one or more label match rules to
|
5205
|
+
# run after the geo match rule and configure them to match against the
|
5206
|
+
# geographic labels and handle the requests as needed.
|
5207
|
+
#
|
5208
|
+
# WAF labels requests using the alpha-2 country and region codes from
|
5209
|
+
# the International Organization for Standardization (ISO) 3166
|
5210
|
+
# standard. WAF determines the codes using either the IP address in the
|
5211
|
+
# web request origin or, if you specify it, the address in the geo match
|
5212
|
+
# `ForwardedIPConfig`.
|
5213
|
+
#
|
5214
|
+
# If you use the web request origin, the label formats are
|
5215
|
+
# `awswaf:clientip:geo:region:<ISO country code>-<ISO region code>` and
|
5216
|
+
# `awswaf:clientip:geo:country:<ISO country code>`.
|
5217
|
+
#
|
5218
|
+
# If you use a forwarded IP address, the label formats are
|
5219
|
+
# `awswaf:forwardedip:geo:region:<ISO country code>-<ISO region code>`
|
5220
|
+
# and `awswaf:forwardedip:geo:country:<ISO country code>`.
|
5221
|
+
#
|
5222
|
+
# For additional details, see [Geographic match rule statement][1] in
|
5223
|
+
# the [WAF Developer Guide][2].
|
5224
|
+
#
|
5225
|
+
#
|
5226
|
+
#
|
5227
|
+
# [1]: https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-type-geo-match.html
|
5228
|
+
# [2]: https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html
|
5196
5229
|
#
|
5197
5230
|
# @note When making an API call, you may pass GeoMatchStatement
|
5198
5231
|
# data as a hash:
|
@@ -5206,9 +5239,17 @@ module Aws::WAFV2
|
|
5206
5239
|
# }
|
5207
5240
|
#
|
5208
5241
|
# @!attribute [rw] country_codes
|
5209
|
-
# An array of two-character country codes
|
5210
|
-
# ]`, from the alpha-2 country ISO
|
5211
|
-
# standard.
|
5242
|
+
# An array of two-character country codes that you want to match
|
5243
|
+
# against, for example, `[ "US", "CN" ]`, from the alpha-2 country ISO
|
5244
|
+
# codes of the ISO 3166 international standard.
|
5245
|
+
#
|
5246
|
+
# When you use a geo match statement just for the region and country
|
5247
|
+
# labels that it adds to requests, you still have to supply a country
|
5248
|
+
# code for the rule to evaluate. In this case, you configure the rule
|
5249
|
+
# to only count matching requests, but it will still generate logging
|
5250
|
+
# and count metrics for any matches. You can reduce the logging and
|
5251
|
+
# metrics that the rule produces by specifying a country that's
|
5252
|
+
# unlikely to be a source of traffic to your site.
|
5212
5253
|
# @return [Array<String>]
|
5213
5254
|
#
|
5214
5255
|
# @!attribute [rw] forwarded_ip_config
|
@@ -6608,9 +6649,8 @@ module Aws::WAFV2
|
|
6608
6649
|
include Aws::Structure
|
6609
6650
|
end
|
6610
6651
|
|
6611
|
-
# A rule statement
|
6612
|
-
#
|
6613
|
-
# in the web ACL.
|
6652
|
+
# A rule statement to match against labels that have been added to the
|
6653
|
+
# web request by rules that have already run in the web ACL.
|
6614
6654
|
#
|
6615
6655
|
# The label match statement provides the label or namespace string to
|
6616
6656
|
# search for. The label string can represent a part or all of the fully
|
@@ -16217,8 +16257,41 @@ module Aws::WAFV2
|
|
16217
16257
|
# @return [Types::SizeConstraintStatement]
|
16218
16258
|
#
|
16219
16259
|
# @!attribute [rw] geo_match_statement
|
16220
|
-
# A rule statement
|
16221
|
-
#
|
16260
|
+
# A rule statement that labels web requests by country and region and
|
16261
|
+
# that matches against web requests based on country code. A geo match
|
16262
|
+
# rule labels every request that it inspects regardless of whether it
|
16263
|
+
# finds a match.
|
16264
|
+
#
|
16265
|
+
# * To manage requests only by country, you can use this statement by
|
16266
|
+
# itself and specify the countries that you want to match against in
|
16267
|
+
# the `CountryCodes` array.
|
16268
|
+
#
|
16269
|
+
# * Otherwise, configure your geo match rule with Count action so that
|
16270
|
+
# it only labels requests. Then, add one or more label match rules
|
16271
|
+
# to run after the geo match rule and configure them to match
|
16272
|
+
# against the geographic labels and handle the requests as needed.
|
16273
|
+
#
|
16274
|
+
# WAF labels requests using the alpha-2 country and region codes from
|
16275
|
+
# the International Organization for Standardization (ISO) 3166
|
16276
|
+
# standard. WAF determines the codes using either the IP address in
|
16277
|
+
# the web request origin or, if you specify it, the address in the geo
|
16278
|
+
# match `ForwardedIPConfig`.
|
16279
|
+
#
|
16280
|
+
# If you use the web request origin, the label formats are
|
16281
|
+
# `awswaf:clientip:geo:region:<ISO country code>-<ISO region code>`
|
16282
|
+
# and `awswaf:clientip:geo:country:<ISO country code>`.
|
16283
|
+
#
|
16284
|
+
# If you use a forwarded IP address, the label formats are
|
16285
|
+
# `awswaf:forwardedip:geo:region:<ISO country code>-<ISO region code>`
|
16286
|
+
# and `awswaf:forwardedip:geo:country:<ISO country code>`.
|
16287
|
+
#
|
16288
|
+
# For additional details, see [Geographic match rule statement][1] in
|
16289
|
+
# the [WAF Developer Guide][2].
|
16290
|
+
#
|
16291
|
+
#
|
16292
|
+
#
|
16293
|
+
# [1]: https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-type-geo-match.html
|
16294
|
+
# [2]: https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html
|
16222
16295
|
# @return [Types::GeoMatchStatement]
|
16223
16296
|
#
|
16224
16297
|
# @!attribute [rw] rule_group_reference_statement
|
@@ -16345,9 +16418,8 @@ module Aws::WAFV2
|
|
16345
16418
|
# @return [Types::ManagedRuleGroupStatement]
|
16346
16419
|
#
|
16347
16420
|
# @!attribute [rw] label_match_statement
|
16348
|
-
# A rule statement
|
16349
|
-
#
|
16350
|
-
# run in the web ACL.
|
16421
|
+
# A rule statement to match against labels that have been added to the
|
16422
|
+
# web request by rules that have already run in the web ACL.
|
16351
16423
|
#
|
16352
16424
|
# The label match statement provides the label or namespace string to
|
16353
16425
|
# search for. The label string can represent a part or all of the
|
data/lib/aws-sdk-wafv2.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-wafv2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.45.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|