aws-sdk-wafv2 1.74.0 → 1.76.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a84902a31da18248d4cf4bcaa973890de47e1e55aa76f391e624000ef3b5416
4
- data.tar.gz: 771d1f93b6f6cb97edacff0f22ce95d9e29888c824b045502cce483040af117a
3
+ metadata.gz: 58aab4cae5a9a4c8ae7201eb885b84f12a345db0b09d83112552d6a65b44f3ad
4
+ data.tar.gz: 84d0468c41f15343de45e232455f1bff31b67827664a7478fcd333fce795da61
5
5
  SHA512:
6
- metadata.gz: 4e985b8fe08dbe4a663a8b232bf24eba9d634274476d5d0e75010b61c7edc4d0f0a553cd7a336f9a5f87d58321bf5d87234d0545c8cd538b6dbb805c7ba9db00
7
- data.tar.gz: e92532100dfc080d0b6775ffb2da944c5adc192264e3cdf6b97f9f021522043100f6934e1b6a9766cf9abbc2ed4544307b186a03864404f1b587688353cafd8d
6
+ metadata.gz: a2f660d0b4ff4a2aa8a31f773701140ba653c13caa92b81cc284dc62c42a5ef747705f159abed8661fcac1c3e9659b28c75cf24ac323e0503b788b9d6750b37b
7
+ data.tar.gz: fbb743e861e90cafbf28efcb6e343a859e15ba8c22c9ef7763d5a40ae2c65ee975037d54a6f770ce85da904cda8bf2c88821abf3cf38f317afddbaaa4a45db01
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.76.0 (2024-02-06)
5
+ ------------------
6
+
7
+ * Feature - You can now delete an API key that you've created for use with your CAPTCHA JavaScript integration API.
8
+
9
+ 1.75.0 (2024-01-26)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.74.0 (2023-11-28)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.74.0
1
+ 1.76.0
@@ -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 `usa.gov`
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 `usa.gov`
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 `usa.gov`
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.74.0'
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
@@ -14,6 +14,7 @@ module Aws::WAFV2
14
14
  option(
15
15
  :endpoint_provider,
16
16
  doc_type: 'Aws::WAFV2::EndpointProvider',
17
+ rbs_type: 'untyped',
17
18
  docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
19
  'object that responds to `#resolve_endpoint(parameters)` '\
19
20
  'where `parameters` is a Struct similar to '\
@@ -71,6 +72,8 @@ module Aws::WAFV2
71
72
  Aws::WAFV2::Endpoints::CreateRuleGroup.build(context)
72
73
  when :create_web_acl
73
74
  Aws::WAFV2::Endpoints::CreateWebACL.build(context)
75
+ when :delete_api_key
76
+ Aws::WAFV2::Endpoints::DeleteAPIKey.build(context)
74
77
  when :delete_firewall_manager_rule_groups
75
78
  Aws::WAFV2::Endpoints::DeleteFirewallManagerRuleGroups.build(context)
76
79
  when :delete_ip_set
@@ -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
- # `usa.gov` or `co.uk` as token domains.
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
- # `usa.gov` or `co.uk` as token domains.
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
- # `usa.gov` or `co.uk` as token domains.
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
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-wafv2/customizations'
52
52
  # @!group service
53
53
  module Aws::WAFV2
54
54
 
55
- GEM_VERSION = '1.74.0'
55
+ GEM_VERSION = '1.76.0'
56
56
 
57
57
  end