aws-sdk-waf 1.49.0 → 1.51.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-waf/client.rb +21 -16
- data/lib/aws-sdk-waf/endpoints.rb +1 -0
- data/lib/aws-sdk-waf/types.rb +36 -36
- data/lib/aws-sdk-waf.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9477cb93605cca5fce0f1b59597c50b937e38ad68189b045f3aa55993c44cc70
|
4
|
+
data.tar.gz: ee186215cd699188ba4224c1b98a21bcea1e234919bb0f6492367634ceb82bd0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8d9b24a3cb6c511154b670c29cd772952c1f4ed9b87adc6df3ae0f89e4ed303ffd6e26f7e498ea302fcc01db130617c1d8a1f3bcbf1dbc3f163c47db1109ecf
|
7
|
+
data.tar.gz: 4efff12bc8ce541b815863216591070b53db4ba5e690e76e58c88be7948640d9f258f5622f7c86ecc83c7691a299a96673fec98fdd2e4b71473d923a789009e4
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.51.0 (2023-06-15)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.50.0 (2023-05-31)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
4
14
|
1.49.0 (2023-01-18)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.51.0
|
data/lib/aws-sdk-waf/client.rb
CHANGED
@@ -275,6 +275,11 @@ module Aws::WAF
|
|
275
275
|
# in the future.
|
276
276
|
#
|
277
277
|
#
|
278
|
+
# @option options [String] :sdk_ua_app_id
|
279
|
+
# A unique and opaque application ID that is appended to the
|
280
|
+
# User-Agent header as app/<sdk_ua_app_id>. It should have a
|
281
|
+
# maximum length of 50.
|
282
|
+
#
|
278
283
|
# @option options [String] :secret_access_key
|
279
284
|
#
|
280
285
|
# @option options [String] :session_token
|
@@ -652,7 +657,7 @@ module Aws::WAF
|
|
652
657
|
# If you add more than one predicate to a `RateBasedRule`, a request not
|
653
658
|
# only must exceed the `RateLimit`, but it also must match all the
|
654
659
|
# conditions to be counted or blocked. For example, suppose you add the
|
655
|
-
# following to a `RateBasedRule
|
660
|
+
# following to a `RateBasedRule`:
|
656
661
|
#
|
657
662
|
# * An `IPSet` that matches the IP address `192.0.2.44/32`
|
658
663
|
#
|
@@ -672,7 +677,7 @@ module Aws::WAF
|
|
672
677
|
#
|
673
678
|
# As a second example, suppose you want to limit requests to a
|
674
679
|
# particular page on your site. To do this, you could add the following
|
675
|
-
# to a `RateBasedRule
|
680
|
+
# to a `RateBasedRule`:
|
676
681
|
#
|
677
682
|
# * A `ByteMatchSet` with `FieldToMatch` of `URI`
|
678
683
|
#
|
@@ -958,7 +963,7 @@ module Aws::WAF
|
|
958
963
|
# objects, and other predicates that identify the requests that you want
|
959
964
|
# to block. If you add more than one predicate to a `Rule`, a request
|
960
965
|
# must match all of the specifications to be allowed or blocked. For
|
961
|
-
# example, suppose that you add the following to a `Rule
|
966
|
+
# example, suppose that you add the following to a `Rule`:
|
962
967
|
#
|
963
968
|
# * An `IPSet` that matches the IP address `192.0.2.44/32`
|
964
969
|
#
|
@@ -2778,14 +2783,14 @@ module Aws::WAF
|
|
2778
2783
|
# Returns the status of a `ChangeToken` that you got by calling
|
2779
2784
|
# GetChangeToken. `ChangeTokenStatus` is one of the following values:
|
2780
2785
|
#
|
2781
|
-
# * `PROVISIONED
|
2786
|
+
# * `PROVISIONED`: You requested the change token by calling
|
2782
2787
|
# `GetChangeToken`, but you haven't used it yet in a call to create,
|
2783
2788
|
# update, or delete an AWS WAF object.
|
2784
2789
|
#
|
2785
|
-
# * `PENDING
|
2790
|
+
# * `PENDING`: AWS WAF is propagating the create, update, or delete
|
2786
2791
|
# request to all AWS WAF servers.
|
2787
2792
|
#
|
2788
|
-
# * `INSYNC
|
2793
|
+
# * `INSYNC`: Propagation is complete.
|
2789
2794
|
#
|
2790
2795
|
#
|
2791
2796
|
#
|
@@ -5564,7 +5569,7 @@ module Aws::WAF
|
|
5564
5569
|
# If you add more than one predicate to a `RateBasedRule`, a request
|
5565
5570
|
# must match all the predicates and exceed the `RateLimit` to be counted
|
5566
5571
|
# or blocked. For example, suppose you add the following to a
|
5567
|
-
# `RateBasedRule
|
5572
|
+
# `RateBasedRule`:
|
5568
5573
|
#
|
5569
5574
|
# * An `IPSet` that matches the IP address `192.0.2.44/32`
|
5570
5575
|
#
|
@@ -5582,7 +5587,7 @@ module Aws::WAF
|
|
5582
5587
|
#
|
5583
5588
|
# As a second example, suppose you want to limit requests to a
|
5584
5589
|
# particular page on your site. To do this, you could add the following
|
5585
|
-
# to a `RateBasedRule
|
5590
|
+
# to a `RateBasedRule`:
|
5586
5591
|
#
|
5587
5592
|
# * A `ByteMatchSet` with `FieldToMatch` of `URI`
|
5588
5593
|
#
|
@@ -5865,7 +5870,7 @@ module Aws::WAF
|
|
5865
5870
|
# that specifies the web requests that you want to allow, block, or
|
5866
5871
|
# count. If you add more than one predicate to a `Rule`, a request must
|
5867
5872
|
# match all of the specifications to be allowed, blocked, or counted.
|
5868
|
-
# For example, suppose that you add the following to a `Rule
|
5873
|
+
# For example, suppose that you add the following to a `Rule`:
|
5869
5874
|
#
|
5870
5875
|
# * A `ByteMatchSet` that matches the value `BadBot` in the `User-Agent`
|
5871
5876
|
# header
|
@@ -6251,15 +6256,15 @@ module Aws::WAF
|
|
6251
6256
|
# SqlInjectionMatchSet. For each `SqlInjectionMatchTuple` object, you
|
6252
6257
|
# specify the following values:
|
6253
6258
|
#
|
6254
|
-
# * `Action
|
6259
|
+
# * `Action`: Whether to insert the object into or delete the object
|
6255
6260
|
# from the array. To change a `SqlInjectionMatchTuple`, you delete the
|
6256
6261
|
# existing object and add a new one.
|
6257
6262
|
#
|
6258
|
-
# * `FieldToMatch
|
6263
|
+
# * `FieldToMatch`: The part of web requests that you want AWS WAF to
|
6259
6264
|
# inspect and, if you want AWS WAF to inspect a header or custom query
|
6260
6265
|
# parameter, the name of the header or parameter.
|
6261
6266
|
#
|
6262
|
-
# * `TextTransformation
|
6267
|
+
# * `TextTransformation`: Which text transformation, if any, to perform
|
6263
6268
|
# on the web request before inspecting the request for snippets of
|
6264
6269
|
# malicious SQL code.
|
6265
6270
|
#
|
@@ -6575,15 +6580,15 @@ module Aws::WAF
|
|
6575
6580
|
# Inserts or deletes XssMatchTuple objects (filters) in an XssMatchSet.
|
6576
6581
|
# For each `XssMatchTuple` object, you specify the following values:
|
6577
6582
|
#
|
6578
|
-
# * `Action
|
6583
|
+
# * `Action`: Whether to insert the object into or delete the object
|
6579
6584
|
# from the array. To change an `XssMatchTuple`, you delete the
|
6580
6585
|
# existing object and add a new one.
|
6581
6586
|
#
|
6582
|
-
# * `FieldToMatch
|
6587
|
+
# * `FieldToMatch`: The part of web requests that you want AWS WAF to
|
6583
6588
|
# inspect and, if you want AWS WAF to inspect a header or custom query
|
6584
6589
|
# parameter, the name of the header or parameter.
|
6585
6590
|
#
|
6586
|
-
# * `TextTransformation
|
6591
|
+
# * `TextTransformation`: Which text transformation, if any, to perform
|
6587
6592
|
# on the web request before inspecting the request for cross-site
|
6588
6593
|
# scripting attacks.
|
6589
6594
|
#
|
@@ -6711,7 +6716,7 @@ module Aws::WAF
|
|
6711
6716
|
params: params,
|
6712
6717
|
config: config)
|
6713
6718
|
context[:gem_name] = 'aws-sdk-waf'
|
6714
|
-
context[:gem_version] = '1.
|
6719
|
+
context[:gem_version] = '1.51.0'
|
6715
6720
|
Seahorse::Client::Request.new(handlers, context)
|
6716
6721
|
end
|
6717
6722
|
|
data/lib/aws-sdk-waf/types.rb
CHANGED
@@ -54,12 +54,12 @@ module Aws::WAF
|
|
54
54
|
# request matches the conditions in the `Rule`. Valid values for
|
55
55
|
# `Action` include the following:
|
56
56
|
#
|
57
|
-
# * `ALLOW
|
57
|
+
# * `ALLOW`: CloudFront responds with the requested object.
|
58
58
|
#
|
59
|
-
# * `BLOCK
|
59
|
+
# * `BLOCK`: CloudFront responds with an HTTP 403 (Forbidden) status
|
60
60
|
# code.
|
61
61
|
#
|
62
|
-
# * `COUNT
|
62
|
+
# * `COUNT`: AWS WAF increments a counter of requests that match the
|
63
63
|
# conditions in the rule and then continues to inspect the web
|
64
64
|
# request based on the remaining rules in the web ACL.
|
65
65
|
#
|
@@ -327,26 +327,26 @@ module Aws::WAF
|
|
327
327
|
# in `FieldToMatch`. The maximum length of the value is 50 bytes.
|
328
328
|
#
|
329
329
|
# Valid values depend on the values that you specified for
|
330
|
-
# `FieldToMatch
|
330
|
+
# `FieldToMatch`:
|
331
331
|
#
|
332
|
-
# * `HEADER
|
332
|
+
# * `HEADER`: The value that you want AWS WAF to search for in the
|
333
333
|
# request header that you specified in FieldToMatch, for example,
|
334
334
|
# the value of the `User-Agent` or `Referer` header.
|
335
335
|
#
|
336
|
-
# * `METHOD
|
336
|
+
# * `METHOD`: The HTTP method, which indicates the type of operation
|
337
337
|
# specified in the request. CloudFront supports the following
|
338
338
|
# methods: `DELETE`, `GET`, `HEAD`, `OPTIONS`, `PATCH`, `POST`, and
|
339
339
|
# `PUT`.
|
340
340
|
#
|
341
|
-
# * `QUERY_STRING
|
341
|
+
# * `QUERY_STRING`: The value that you want AWS WAF to search for in
|
342
342
|
# the query string, which is the part of a URL that appears after a
|
343
343
|
# `?` character.
|
344
344
|
#
|
345
|
-
# * `URI
|
345
|
+
# * `URI`: The value that you want AWS WAF to search for in the part
|
346
346
|
# of a URL that identifies a resource, for example,
|
347
347
|
# `/images/daily-ad.jpg`.
|
348
348
|
#
|
349
|
-
# * `BODY
|
349
|
+
# * `BODY`: The part of a request that contains any additional data
|
350
350
|
# that you want to send to your web server as the HTTP request body,
|
351
351
|
# such as data from a form. The request body immediately follows the
|
352
352
|
# request headers. Note that only the first `8192` bytes of the
|
@@ -355,11 +355,11 @@ module Aws::WAF
|
|
355
355
|
# size constraint set. For more information, see
|
356
356
|
# CreateSizeConstraintSet.
|
357
357
|
#
|
358
|
-
# * `SINGLE_QUERY_ARG
|
358
|
+
# * `SINGLE_QUERY_ARG`: The parameter in the query string that you
|
359
359
|
# will inspect, such as *UserName* or *SalesRegion*. The maximum
|
360
360
|
# length for `SINGLE_QUERY_ARG` is 30 characters.
|
361
361
|
#
|
362
|
-
# * `ALL_QUERY_ARGS
|
362
|
+
# * `ALL_QUERY_ARGS`: Similar to `SINGLE_QUERY_ARG`, but instead of
|
363
363
|
# inspecting a single parameter, AWS WAF inspects all parameters
|
364
364
|
# within the query string for the value or regex pattern that you
|
365
365
|
# specify in `TargetString`.
|
@@ -1607,22 +1607,22 @@ module Aws::WAF
|
|
1607
1607
|
# specified string. Parts of a request that you can search include the
|
1608
1608
|
# following:
|
1609
1609
|
#
|
1610
|
-
# * `HEADER
|
1610
|
+
# * `HEADER`: A specified request header, for example, the value of
|
1611
1611
|
# the `User-Agent` or `Referer` header. If you choose `HEADER` for
|
1612
1612
|
# the type, specify the name of the header in `Data`.
|
1613
1613
|
#
|
1614
|
-
# * `METHOD
|
1614
|
+
# * `METHOD`: The HTTP method, which indicated the type of operation
|
1615
1615
|
# that the request is asking the origin to perform. Amazon
|
1616
1616
|
# CloudFront supports the following methods: `DELETE`, `GET`,
|
1617
1617
|
# `HEAD`, `OPTIONS`, `PATCH`, `POST`, and `PUT`.
|
1618
1618
|
#
|
1619
|
-
# * `QUERY_STRING
|
1619
|
+
# * `QUERY_STRING`: A query string, which is the part of a URL that
|
1620
1620
|
# appears after a `?` character, if any.
|
1621
1621
|
#
|
1622
|
-
# * `URI
|
1622
|
+
# * `URI`: The part of a web request that identifies a resource, for
|
1623
1623
|
# example, `/images/daily-ad.jpg`.
|
1624
1624
|
#
|
1625
|
-
# * `BODY
|
1625
|
+
# * `BODY`: The part of a request that contains any additional data
|
1626
1626
|
# that you want to send to your web server as the HTTP request body,
|
1627
1627
|
# such as data from a form. The request body immediately follows the
|
1628
1628
|
# request headers. Note that only the first `8192` bytes of the
|
@@ -1631,11 +1631,11 @@ module Aws::WAF
|
|
1631
1631
|
# size constraint set. For more information, see
|
1632
1632
|
# CreateSizeConstraintSet.
|
1633
1633
|
#
|
1634
|
-
# * `SINGLE_QUERY_ARG
|
1634
|
+
# * `SINGLE_QUERY_ARG`: The parameter in the query string that you
|
1635
1635
|
# will inspect, such as *UserName* or *SalesRegion*. The maximum
|
1636
1636
|
# length for `SINGLE_QUERY_ARG` is 30 characters.
|
1637
1637
|
#
|
1638
|
-
# * `ALL_QUERY_ARGS
|
1638
|
+
# * `ALL_QUERY_ARGS`: Similar to `SINGLE_QUERY_ARG`, but rather than
|
1639
1639
|
# inspecting a single parameter, AWS WAF will inspect all parameters
|
1640
1640
|
# within the query for the value or regex pattern that you specify
|
1641
1641
|
# in `TargetString`.
|
@@ -1839,7 +1839,7 @@ module Aws::WAF
|
|
1839
1839
|
# * ByteMatchSet: Contains `ByteMatchSetId`, `ByteMatchTuples`, and
|
1840
1840
|
# `Name`
|
1841
1841
|
#
|
1842
|
-
# * `ByteMatchTuples
|
1842
|
+
# * `ByteMatchTuples`: Contains an array of ByteMatchTuple objects.
|
1843
1843
|
# Each `ByteMatchTuple` object contains FieldToMatch,
|
1844
1844
|
# `PositionalConstraint`, `TargetString`, and `TextTransformation`
|
1845
1845
|
#
|
@@ -1947,7 +1947,7 @@ module Aws::WAF
|
|
1947
1947
|
#
|
1948
1948
|
# * IPSet: Contains `IPSetDescriptors`, `IPSetId`, and `Name`
|
1949
1949
|
#
|
1950
|
-
# * `IPSetDescriptors
|
1950
|
+
# * `IPSetDescriptors`: Contains an array of IPSetDescriptor objects.
|
1951
1951
|
# Each `IPSetDescriptor` object contains `Type` and `Value`
|
1952
1952
|
# @return [Types::IPSet]
|
1953
1953
|
#
|
@@ -2286,7 +2286,7 @@ module Aws::WAF
|
|
2286
2286
|
# * SizeConstraintSet: Contains `SizeConstraintSetId`,
|
2287
2287
|
# `SizeConstraints`, and `Name`
|
2288
2288
|
#
|
2289
|
-
# * `SizeConstraints
|
2289
|
+
# * `SizeConstraints`: Contains an array of SizeConstraint objects.
|
2290
2290
|
# Each `SizeConstraint` object contains FieldToMatch,
|
2291
2291
|
# `TextTransformation`, `ComparisonOperator`, and `Size`
|
2292
2292
|
#
|
@@ -2363,10 +2363,10 @@ module Aws::WAF
|
|
2363
2363
|
#
|
2364
2364
|
# * `DefaultAction` (Data type is WafAction): Contains `Type`
|
2365
2365
|
#
|
2366
|
-
# * `Rules
|
2366
|
+
# * `Rules`: Contains an array of `ActivatedRule` objects, which
|
2367
2367
|
# contain `Action`, `Priority`, and `RuleId`
|
2368
2368
|
#
|
2369
|
-
# * `Action
|
2369
|
+
# * `Action`: Contains `Type`
|
2370
2370
|
# @return [Types::WebACL]
|
2371
2371
|
#
|
2372
2372
|
# @see http://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetWebACLResponse AWS API Documentation
|
@@ -4588,23 +4588,23 @@ module Aws::WAF
|
|
4588
4588
|
# size in bytes of `FieldToMatch`". If that expression is true, the
|
4589
4589
|
# `SizeConstraint` is considered to match.
|
4590
4590
|
#
|
4591
|
-
# **EQ
|
4591
|
+
# **EQ**: Used to test if the `Size` is equal to the size of the
|
4592
4592
|
# `FieldToMatch`
|
4593
4593
|
#
|
4594
|
-
# **NE
|
4594
|
+
# **NE**: Used to test if the `Size` is not equal to the size of the
|
4595
4595
|
# `FieldToMatch`
|
4596
4596
|
#
|
4597
|
-
# **LE
|
4598
|
-
# size of the `FieldToMatch`
|
4599
|
-
#
|
4600
|
-
# **LT**\: Used to test if the `Size` is strictly less than the size
|
4597
|
+
# **LE**: Used to test if the `Size` is less than or equal to the size
|
4601
4598
|
# of the `FieldToMatch`
|
4602
4599
|
#
|
4603
|
-
# **
|
4604
|
-
#
|
4600
|
+
# **LT**: Used to test if the `Size` is strictly less than the size of
|
4601
|
+
# the `FieldToMatch`
|
4605
4602
|
#
|
4606
|
-
# **
|
4603
|
+
# **GE**: Used to test if the `Size` is greater than or equal to the
|
4607
4604
|
# size of the `FieldToMatch`
|
4605
|
+
#
|
4606
|
+
# **GT**: Used to test if the `Size` is strictly greater than the size
|
4607
|
+
# of the `FieldToMatch`
|
4608
4608
|
# @return [String]
|
4609
4609
|
#
|
4610
4610
|
# @!attribute [rw] size
|
@@ -5827,7 +5827,7 @@ module Aws::WAF
|
|
5827
5827
|
end
|
5828
5828
|
|
5829
5829
|
# The operation failed due to a problem with the migration. The failure
|
5830
|
-
# cause is provided in the exception, in the `MigrationErrorType
|
5830
|
+
# cause is provided in the exception, in the `MigrationErrorType`:
|
5831
5831
|
#
|
5832
5832
|
# * `ENTITY_NOT_SUPPORTED` - The web ACL has an unsupported entity but
|
5833
5833
|
# the `IgnoreUnsupportedType` is not set to true.
|
@@ -6212,11 +6212,11 @@ module Aws::WAF
|
|
6212
6212
|
# Specifies how you want AWS WAF to respond to requests that match the
|
6213
6213
|
# settings in a `Rule`. Valid settings include the following:
|
6214
6214
|
#
|
6215
|
-
# * `ALLOW
|
6215
|
+
# * `ALLOW`: AWS WAF allows requests
|
6216
6216
|
#
|
6217
|
-
# * `BLOCK
|
6217
|
+
# * `BLOCK`: AWS WAF blocks requests
|
6218
6218
|
#
|
6219
|
-
# * `COUNT
|
6219
|
+
# * `COUNT`: AWS WAF increments a counter of the requests that match
|
6220
6220
|
# all of the conditions in the rule. AWS WAF then continues to
|
6221
6221
|
# inspect the web request based on the remaining rules in the web
|
6222
6222
|
# ACL. You can't specify `COUNT` for the default action for a
|
data/lib/aws-sdk-waf.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-waf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.51.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: 2023-
|
11
|
+
date: 2023-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.174.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.174.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|