aws-sdk-wafv2 1.75.0 → 1.76.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 +45 -4
- data/lib/aws-sdk-wafv2/client_api.rb +21 -0
- data/lib/aws-sdk-wafv2/endpoints.rb +14 -0
- data/lib/aws-sdk-wafv2/plugins/endpoints.rb +2 -0
- data/lib/aws-sdk-wafv2/types.rb +36 -3
- data/lib/aws-sdk-wafv2.rb +1 -1
- data/sig/client.rbs +10 -0
- data/sig/types.rbs +9 -0
- 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: 58aab4cae5a9a4c8ae7201eb885b84f12a345db0b09d83112552d6a65b44f3ad
|
4
|
+
data.tar.gz: 84d0468c41f15343de45e232455f1bff31b67827664a7478fcd333fce795da61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2f660d0b4ff4a2aa8a31f773701140ba653c13caa92b81cc284dc62c42a5ef747705f159abed8661fcac1c3e9659b28c75cf24ac323e0503b788b9d6750b37b
|
7
|
+
data.tar.gz: fbb743e861e90cafbf28efcb6e343a859e15ba8c22c9ef7763d5a40ae2c65ee975037d54a6f770ce85da904cda8bf2c88821abf3cf38f317afddbaaa4a45db01
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.76.0
|
data/lib/aws-sdk-wafv2/client.rb
CHANGED
@@ -1412,7 +1412,7 @@ module Aws::WAFV2
|
|
1412
1412
|
#
|
1413
1413
|
# Example JSON: `"TokenDomains": ["abc.com", "store.abc.com"]`
|
1414
1414
|
#
|
1415
|
-
# Public suffixes aren't allowed. For example, you can't use `
|
1415
|
+
# Public suffixes aren't allowed. For example, you can't use `gov.au`
|
1416
1416
|
# or `co.uk` as token domains.
|
1417
1417
|
#
|
1418
1418
|
# @return [Types::CreateAPIKeyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
@@ -2671,7 +2671,7 @@ module Aws::WAFV2
|
|
2671
2671
|
# Example JSON: `"TokenDomains": \{ "mywebsite.com",
|
2672
2672
|
# "myotherwebsite.com" \}`
|
2673
2673
|
#
|
2674
|
-
# Public suffixes aren't allowed. For example, you can't use `
|
2674
|
+
# Public suffixes aren't allowed. For example, you can't use `gov.au`
|
2675
2675
|
# or `co.uk` as token domains.
|
2676
2676
|
#
|
2677
2677
|
# @option params [Types::AssociationConfig] :association_config
|
@@ -3601,6 +3601,47 @@ module Aws::WAFV2
|
|
3601
3601
|
req.send_request(options)
|
3602
3602
|
end
|
3603
3603
|
|
3604
|
+
# Deletes the specified API key.
|
3605
|
+
#
|
3606
|
+
# After you delete a key, it can take up to 24 hours for WAF to disallow
|
3607
|
+
# use of the key in all regions.
|
3608
|
+
#
|
3609
|
+
# @option params [required, String] :scope
|
3610
|
+
# Specifies whether this is for an Amazon CloudFront distribution or for
|
3611
|
+
# a regional application. A regional application can be an Application
|
3612
|
+
# Load Balancer (ALB), an Amazon API Gateway REST API, an AppSync
|
3613
|
+
# GraphQL API, an Amazon Cognito user pool, an App Runner service, or an
|
3614
|
+
# Amazon Web Services Verified Access instance.
|
3615
|
+
#
|
3616
|
+
# To work with CloudFront, you must also specify the Region US East (N.
|
3617
|
+
# Virginia) as follows:
|
3618
|
+
#
|
3619
|
+
# * CLI - Specify the Region when you use the CloudFront scope:
|
3620
|
+
# `--scope=CLOUDFRONT --region=us-east-1`.
|
3621
|
+
#
|
3622
|
+
# * API and SDKs - For all calls, use the Region endpoint us-east-1.
|
3623
|
+
#
|
3624
|
+
# @option params [required, String] :api_key
|
3625
|
+
# The encrypted API key that you want to delete.
|
3626
|
+
#
|
3627
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
3628
|
+
#
|
3629
|
+
# @example Request syntax with placeholder values
|
3630
|
+
#
|
3631
|
+
# resp = client.delete_api_key({
|
3632
|
+
# scope: "CLOUDFRONT", # required, accepts CLOUDFRONT, REGIONAL
|
3633
|
+
# api_key: "APIKey", # required
|
3634
|
+
# })
|
3635
|
+
#
|
3636
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/DeleteAPIKey AWS API Documentation
|
3637
|
+
#
|
3638
|
+
# @overload delete_api_key(params = {})
|
3639
|
+
# @param [Hash] params ({})
|
3640
|
+
def delete_api_key(params = {}, options = {})
|
3641
|
+
req = build_request(:delete_api_key, params)
|
3642
|
+
req.send_request(options)
|
3643
|
+
end
|
3644
|
+
|
3604
3645
|
# Deletes all rule groups that are managed by Firewall Manager for the
|
3605
3646
|
# specified web ACL.
|
3606
3647
|
#
|
@@ -8091,7 +8132,7 @@ module Aws::WAFV2
|
|
8091
8132
|
# Example JSON: `"TokenDomains": \{ "mywebsite.com",
|
8092
8133
|
# "myotherwebsite.com" \}`
|
8093
8134
|
#
|
8094
|
-
# Public suffixes aren't allowed. For example, you can't use `
|
8135
|
+
# Public suffixes aren't allowed. For example, you can't use `gov.au`
|
8095
8136
|
# or `co.uk` as token domains.
|
8096
8137
|
#
|
8097
8138
|
# @option params [Types::AssociationConfig] :association_config
|
@@ -9026,7 +9067,7 @@ module Aws::WAFV2
|
|
9026
9067
|
params: params,
|
9027
9068
|
config: config)
|
9028
9069
|
context[:gem_name] = 'aws-sdk-wafv2'
|
9029
|
-
context[:gem_version] = '1.
|
9070
|
+
context[:gem_version] = '1.76.0'
|
9030
9071
|
Seahorse::Client::Request.new(handlers, context)
|
9031
9072
|
end
|
9032
9073
|
|
@@ -79,6 +79,8 @@ module Aws::WAFV2
|
|
79
79
|
CustomResponseBodies = Shapes::MapShape.new(name: 'CustomResponseBodies')
|
80
80
|
CustomResponseBody = Shapes::StructureShape.new(name: 'CustomResponseBody')
|
81
81
|
DefaultAction = Shapes::StructureShape.new(name: 'DefaultAction')
|
82
|
+
DeleteAPIKeyRequest = Shapes::StructureShape.new(name: 'DeleteAPIKeyRequest')
|
83
|
+
DeleteAPIKeyResponse = Shapes::StructureShape.new(name: 'DeleteAPIKeyResponse')
|
82
84
|
DeleteFirewallManagerRuleGroupsRequest = Shapes::StructureShape.new(name: 'DeleteFirewallManagerRuleGroupsRequest')
|
83
85
|
DeleteFirewallManagerRuleGroupsResponse = Shapes::StructureShape.new(name: 'DeleteFirewallManagerRuleGroupsResponse')
|
84
86
|
DeleteIPSetRequest = Shapes::StructureShape.new(name: 'DeleteIPSetRequest')
|
@@ -617,6 +619,12 @@ module Aws::WAFV2
|
|
617
619
|
DefaultAction.add_member(:allow, Shapes::ShapeRef.new(shape: AllowAction, location_name: "Allow"))
|
618
620
|
DefaultAction.struct_class = Types::DefaultAction
|
619
621
|
|
622
|
+
DeleteAPIKeyRequest.add_member(:scope, Shapes::ShapeRef.new(shape: Scope, required: true, location_name: "Scope"))
|
623
|
+
DeleteAPIKeyRequest.add_member(:api_key, Shapes::ShapeRef.new(shape: APIKey, required: true, location_name: "APIKey"))
|
624
|
+
DeleteAPIKeyRequest.struct_class = Types::DeleteAPIKeyRequest
|
625
|
+
|
626
|
+
DeleteAPIKeyResponse.struct_class = Types::DeleteAPIKeyResponse
|
627
|
+
|
620
628
|
DeleteFirewallManagerRuleGroupsRequest.add_member(:web_acl_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "WebACLArn"))
|
621
629
|
DeleteFirewallManagerRuleGroupsRequest.add_member(:web_acl_lock_token, Shapes::ShapeRef.new(shape: LockToken, required: true, location_name: "WebACLLockToken"))
|
622
630
|
DeleteFirewallManagerRuleGroupsRequest.struct_class = Types::DeleteFirewallManagerRuleGroupsRequest
|
@@ -1812,6 +1820,19 @@ module Aws::WAFV2
|
|
1812
1820
|
o.errors << Shapes::ShapeRef.new(shape: WAFExpiredManagedRuleGroupVersionException)
|
1813
1821
|
end)
|
1814
1822
|
|
1823
|
+
api.add_operation(:delete_api_key, Seahorse::Model::Operation.new.tap do |o|
|
1824
|
+
o.name = "DeleteAPIKey"
|
1825
|
+
o.http_method = "POST"
|
1826
|
+
o.http_request_uri = "/"
|
1827
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteAPIKeyRequest)
|
1828
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteAPIKeyResponse)
|
1829
|
+
o.errors << Shapes::ShapeRef.new(shape: WAFInternalErrorException)
|
1830
|
+
o.errors << Shapes::ShapeRef.new(shape: WAFNonexistentItemException)
|
1831
|
+
o.errors << Shapes::ShapeRef.new(shape: WAFOptimisticLockException)
|
1832
|
+
o.errors << Shapes::ShapeRef.new(shape: WAFInvalidParameterException)
|
1833
|
+
o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
|
1834
|
+
end)
|
1835
|
+
|
1815
1836
|
api.add_operation(:delete_firewall_manager_rule_groups, Seahorse::Model::Operation.new.tap do |o|
|
1816
1837
|
o.name = "DeleteFirewallManagerRuleGroups"
|
1817
1838
|
o.http_method = "POST"
|
@@ -110,6 +110,20 @@ module Aws::WAFV2
|
|
110
110
|
end
|
111
111
|
end
|
112
112
|
|
113
|
+
class DeleteAPIKey
|
114
|
+
def self.build(context)
|
115
|
+
unless context.config.regional_endpoint
|
116
|
+
endpoint = context.config.endpoint.to_s
|
117
|
+
end
|
118
|
+
Aws::WAFV2::EndpointParameters.new(
|
119
|
+
region: context.config.region,
|
120
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
121
|
+
use_fips: context.config.use_fips_endpoint,
|
122
|
+
endpoint: endpoint,
|
123
|
+
)
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
113
127
|
class DeleteFirewallManagerRuleGroups
|
114
128
|
def self.build(context)
|
115
129
|
unless context.config.regional_endpoint
|
@@ -72,6 +72,8 @@ module Aws::WAFV2
|
|
72
72
|
Aws::WAFV2::Endpoints::CreateRuleGroup.build(context)
|
73
73
|
when :create_web_acl
|
74
74
|
Aws::WAFV2::Endpoints::CreateWebACL.build(context)
|
75
|
+
when :delete_api_key
|
76
|
+
Aws::WAFV2::Endpoints::DeleteAPIKey.build(context)
|
75
77
|
when :delete_firewall_manager_rule_groups
|
76
78
|
Aws::WAFV2::Endpoints::DeleteFirewallManagerRuleGroups.build(context)
|
77
79
|
when :delete_ip_set
|
data/lib/aws-sdk-wafv2/types.rb
CHANGED
@@ -1065,7 +1065,7 @@ module Aws::WAFV2
|
|
1065
1065
|
# Example JSON: `"TokenDomains": ["abc.com", "store.abc.com"]`
|
1066
1066
|
#
|
1067
1067
|
# Public suffixes aren't allowed. For example, you can't use
|
1068
|
-
# `
|
1068
|
+
# `gov.au` or `co.uk` as token domains.
|
1069
1069
|
# @return [Array<String>]
|
1070
1070
|
#
|
1071
1071
|
# @see http://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/CreateAPIKeyRequest AWS API Documentation
|
@@ -1462,7 +1462,7 @@ module Aws::WAFV2
|
|
1462
1462
|
# "myotherwebsite.com" \}`
|
1463
1463
|
#
|
1464
1464
|
# Public suffixes aren't allowed. For example, you can't use
|
1465
|
-
# `
|
1465
|
+
# `gov.au` or `co.uk` as token domains.
|
1466
1466
|
# @return [Array<String>]
|
1467
1467
|
#
|
1468
1468
|
# @!attribute [rw] association_config
|
@@ -1690,6 +1690,39 @@ module Aws::WAFV2
|
|
1690
1690
|
include Aws::Structure
|
1691
1691
|
end
|
1692
1692
|
|
1693
|
+
# @!attribute [rw] scope
|
1694
|
+
# Specifies whether this is for an Amazon CloudFront distribution or
|
1695
|
+
# for a regional application. A regional application can be an
|
1696
|
+
# Application Load Balancer (ALB), an Amazon API Gateway REST API, an
|
1697
|
+
# AppSync GraphQL API, an Amazon Cognito user pool, an App Runner
|
1698
|
+
# service, or an Amazon Web Services Verified Access instance.
|
1699
|
+
#
|
1700
|
+
# To work with CloudFront, you must also specify the Region US East
|
1701
|
+
# (N. Virginia) as follows:
|
1702
|
+
#
|
1703
|
+
# * CLI - Specify the Region when you use the CloudFront scope:
|
1704
|
+
# `--scope=CLOUDFRONT --region=us-east-1`.
|
1705
|
+
#
|
1706
|
+
# * API and SDKs - For all calls, use the Region endpoint us-east-1.
|
1707
|
+
# @return [String]
|
1708
|
+
#
|
1709
|
+
# @!attribute [rw] api_key
|
1710
|
+
# The encrypted API key that you want to delete.
|
1711
|
+
# @return [String]
|
1712
|
+
#
|
1713
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/DeleteAPIKeyRequest AWS API Documentation
|
1714
|
+
#
|
1715
|
+
class DeleteAPIKeyRequest < Struct.new(
|
1716
|
+
:scope,
|
1717
|
+
:api_key)
|
1718
|
+
SENSITIVE = []
|
1719
|
+
include Aws::Structure
|
1720
|
+
end
|
1721
|
+
|
1722
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/DeleteAPIKeyResponse AWS API Documentation
|
1723
|
+
#
|
1724
|
+
class DeleteAPIKeyResponse < Aws::EmptyStructure; end
|
1725
|
+
|
1693
1726
|
# @!attribute [rw] web_acl_arn
|
1694
1727
|
# The Amazon Resource Name (ARN) of the web ACL.
|
1695
1728
|
# @return [String]
|
@@ -8959,7 +8992,7 @@ module Aws::WAFV2
|
|
8959
8992
|
# "myotherwebsite.com" \}`
|
8960
8993
|
#
|
8961
8994
|
# Public suffixes aren't allowed. For example, you can't use
|
8962
|
-
# `
|
8995
|
+
# `gov.au` or `co.uk` as token domains.
|
8963
8996
|
# @return [Array<String>]
|
8964
8997
|
#
|
8965
8998
|
# @!attribute [rw] association_config
|
data/lib/aws-sdk-wafv2.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -2675,6 +2675,16 @@ module Aws
|
|
2675
2675
|
) -> _CreateWebACLResponseSuccess
|
2676
2676
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateWebACLResponseSuccess
|
2677
2677
|
|
2678
|
+
interface _DeleteAPIKeyResponseSuccess
|
2679
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::DeleteAPIKeyResponse]
|
2680
|
+
end
|
2681
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/WAFV2/Client.html#delete_api_key-instance_method
|
2682
|
+
def delete_api_key: (
|
2683
|
+
scope: ("CLOUDFRONT" | "REGIONAL"),
|
2684
|
+
api_key: ::String
|
2685
|
+
) -> _DeleteAPIKeyResponseSuccess
|
2686
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteAPIKeyResponseSuccess
|
2687
|
+
|
2678
2688
|
interface _DeleteFirewallManagerRuleGroupsResponseSuccess
|
2679
2689
|
include ::Seahorse::Client::_ResponseSuccess[Types::DeleteFirewallManagerRuleGroupsResponse]
|
2680
2690
|
def next_web_acl_lock_token: () -> ::String
|
data/sig/types.rbs
CHANGED
@@ -275,6 +275,15 @@ module Aws::WAFV2
|
|
275
275
|
SENSITIVE: []
|
276
276
|
end
|
277
277
|
|
278
|
+
class DeleteAPIKeyRequest
|
279
|
+
attr_accessor scope: ("CLOUDFRONT" | "REGIONAL")
|
280
|
+
attr_accessor api_key: ::String
|
281
|
+
SENSITIVE: []
|
282
|
+
end
|
283
|
+
|
284
|
+
class DeleteAPIKeyResponse < Aws::EmptyStructure
|
285
|
+
end
|
286
|
+
|
278
287
|
class DeleteFirewallManagerRuleGroupsRequest
|
279
288
|
attr_accessor web_acl_arn: ::String
|
280
289
|
attr_accessor web_acl_lock_token: ::String
|
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.76.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: 2024-
|
11
|
+
date: 2024-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|