aws-sdk-wafv2 1.54.0 → 1.55.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: 7a8a6944fc39216091d4f73c48d8c61babb1e29e32bbcbdc4e3c47e24cc4a67a
4
- data.tar.gz: 32654d272457f0facc444f3b683347bfefe30e081e85dd4d5888e7bf090008fe
3
+ metadata.gz: b312e42fc9814644c96d187455979dfc42bb68b3f56143ab436be947259e107e
4
+ data.tar.gz: 1f98a4da60b377e79f570113687e727c976fab2f2d44bac235a48733116d8ae3
5
5
  SHA512:
6
- metadata.gz: b5b4b98e2a1748450a0d6f90b264363e03ead02c7c36d60da95841d92c06bc1cd8de701a36be2eed37d812f4d9a0e3e80d772a7e77a31a817b2eec87f9ba955d
7
- data.tar.gz: 72e221e8fd4c4e5cde5bf93c630ddc58f831083e1ef0ca1c998060f71bd38bf5858b4244fcb91e6c6256a1acd688eafc7e01fbca003ed6f4cab6fccce779ae4d
6
+ metadata.gz: e67e46800d56a4dd60ac536f2f3827eec3ea95ecea791bb06614141b079b9660f1129b2599ce37fa97490ebb7c8031562df3e5aaf07cbe46d97207137b2c8af8
7
+ data.tar.gz: adfcc383eaf27291ded159c8527991852a3fc13e0ff26853a45792704817eeb2779ccfd8b5a7598ed6a8897b9d09780984c62a67927439281ca77659c7e2edba
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.55.0 (2023-04-20)
5
+ ------------------
6
+
7
+ * Feature - You can now create encrypted API keys to use in a client application integration of the JavaScript CAPTCHA API . You can also retrieve a list of your API keys and the JavaScript application integration URL.
8
+
4
9
  1.54.0 (2023-04-11)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.54.0
1
+ 1.55.0
@@ -1191,6 +1191,63 @@ module Aws::WAFV2
1191
1191
  req.send_request(options)
1192
1192
  end
1193
1193
 
1194
+ # Creates an API key for use in the integration of the CAPTCHA API in
1195
+ # your JavaScript client applications. The integration lets you
1196
+ # customize the placement and characteristics of the CAPTCHA puzzle for
1197
+ # your end users. For more information about the CAPTCHA JavaScript
1198
+ # integration, see [WAF client application integration][1] in the *WAF
1199
+ # Developer Guide*.
1200
+ #
1201
+ # The CAPTCHA API requires a key that authorizes CAPTCHA use from the
1202
+ # client application domain. You can use a single key for up to 5
1203
+ # domains. After you generate a key, you can copy it for use in your
1204
+ # JavaScript integration.
1205
+ #
1206
+ #
1207
+ #
1208
+ # [1]: https://docs.aws.amazon.com/waf/latest/developerguide/waf-application-integration.html
1209
+ #
1210
+ # @option params [required, String] :scope
1211
+ # Specifies whether this is for an Amazon CloudFront distribution or for
1212
+ # a regional application. A regional application can be an Application
1213
+ # Load Balancer (ALB), an Amazon API Gateway REST API, an AppSync
1214
+ # GraphQL API, an Amazon Cognito user pool, or an App Runner service.
1215
+ #
1216
+ # To work with CloudFront, you must also specify the Region US East (N.
1217
+ # Virginia) as follows:
1218
+ #
1219
+ # * CLI - Specify the Region when you use the CloudFront scope:
1220
+ # `--scope=CLOUDFRONT --region=us-east-1`.
1221
+ #
1222
+ # * API and SDKs - For all calls, use the Region endpoint us-east-1.
1223
+ #
1224
+ # @option params [required, Array<String>] :token_domains
1225
+ # The client application domains that you want to use this API key for.
1226
+ #
1227
+ # @return [Types::CreateAPIKeyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1228
+ #
1229
+ # * {Types::CreateAPIKeyResponse#api_key #api_key} => String
1230
+ #
1231
+ # @example Request syntax with placeholder values
1232
+ #
1233
+ # resp = client.create_api_key({
1234
+ # scope: "CLOUDFRONT", # required, accepts CLOUDFRONT, REGIONAL
1235
+ # token_domains: ["TokenDomain"], # required
1236
+ # })
1237
+ #
1238
+ # @example Response structure
1239
+ #
1240
+ # resp.api_key #=> String
1241
+ #
1242
+ # @see http://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/CreateAPIKey AWS API Documentation
1243
+ #
1244
+ # @overload create_api_key(params = {})
1245
+ # @param [Hash] params ({})
1246
+ def create_api_key(params = {}, options = {})
1247
+ req = build_request(:create_api_key, params)
1248
+ req.send_request(options)
1249
+ end
1250
+
1194
1251
  # Creates an IPSet, which you use to identify web requests that
1195
1252
  # originate from specific IP addresses or ranges of IP addresses. For
1196
1253
  # example, if you're receiving a lot of requests from a ranges of IP
@@ -3597,6 +3654,53 @@ module Aws::WAFV2
3597
3654
  req.send_request(options)
3598
3655
  end
3599
3656
 
3657
+ # Returns your API key in decrypted form. Use this to check the token
3658
+ # domains that you have defined for the key.
3659
+ #
3660
+ # @option params [required, String] :scope
3661
+ # Specifies whether this is for an Amazon CloudFront distribution or for
3662
+ # a regional application. A regional application can be an Application
3663
+ # Load Balancer (ALB), an Amazon API Gateway REST API, an AppSync
3664
+ # GraphQL API, an Amazon Cognito user pool, or an App Runner service.
3665
+ #
3666
+ # To work with CloudFront, you must also specify the Region US East (N.
3667
+ # Virginia) as follows:
3668
+ #
3669
+ # * CLI - Specify the Region when you use the CloudFront scope:
3670
+ # `--scope=CLOUDFRONT --region=us-east-1`.
3671
+ #
3672
+ # * API and SDKs - For all calls, use the Region endpoint us-east-1.
3673
+ #
3674
+ # @option params [required, String] :api_key
3675
+ # The encrypted API key.
3676
+ #
3677
+ # @return [Types::GetDecryptedAPIKeyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3678
+ #
3679
+ # * {Types::GetDecryptedAPIKeyResponse#token_domains #token_domains} => Array&lt;String&gt;
3680
+ # * {Types::GetDecryptedAPIKeyResponse#creation_timestamp #creation_timestamp} => Time
3681
+ #
3682
+ # @example Request syntax with placeholder values
3683
+ #
3684
+ # resp = client.get_decrypted_api_key({
3685
+ # scope: "CLOUDFRONT", # required, accepts CLOUDFRONT, REGIONAL
3686
+ # api_key: "APIKey", # required
3687
+ # })
3688
+ #
3689
+ # @example Response structure
3690
+ #
3691
+ # resp.token_domains #=> Array
3692
+ # resp.token_domains[0] #=> String
3693
+ # resp.creation_timestamp #=> Time
3694
+ #
3695
+ # @see http://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/GetDecryptedAPIKey AWS API Documentation
3696
+ #
3697
+ # @overload get_decrypted_api_key(params = {})
3698
+ # @param [Hash] params ({})
3699
+ def get_decrypted_api_key(params = {}, options = {})
3700
+ req = build_request(:get_decrypted_api_key, params)
3701
+ req.send_request(options)
3702
+ end
3703
+
3600
3704
  # Retrieves the specified IPSet.
3601
3705
  #
3602
3706
  # @option params [required, String] :name
@@ -6247,6 +6351,70 @@ module Aws::WAFV2
6247
6351
  req.send_request(options)
6248
6352
  end
6249
6353
 
6354
+ # Retrieves a list of the API keys that you've defined for the
6355
+ # specified scope.
6356
+ #
6357
+ # @option params [required, String] :scope
6358
+ # Specifies whether this is for an Amazon CloudFront distribution or for
6359
+ # a regional application. A regional application can be an Application
6360
+ # Load Balancer (ALB), an Amazon API Gateway REST API, an AppSync
6361
+ # GraphQL API, an Amazon Cognito user pool, or an App Runner service.
6362
+ #
6363
+ # To work with CloudFront, you must also specify the Region US East (N.
6364
+ # Virginia) as follows:
6365
+ #
6366
+ # * CLI - Specify the Region when you use the CloudFront scope:
6367
+ # `--scope=CLOUDFRONT --region=us-east-1`.
6368
+ #
6369
+ # * API and SDKs - For all calls, use the Region endpoint us-east-1.
6370
+ #
6371
+ # @option params [String] :next_marker
6372
+ # When you request a list of objects with a `Limit` setting, if the
6373
+ # number of objects that are still available for retrieval exceeds the
6374
+ # limit, WAF returns a `NextMarker` value in the response. To retrieve
6375
+ # the next batch of objects, provide the marker from the prior call in
6376
+ # your next request.
6377
+ #
6378
+ # @option params [Integer] :limit
6379
+ # The maximum number of objects that you want WAF to return for this
6380
+ # request. If more objects are available, in the response, WAF provides
6381
+ # a `NextMarker` value that you can use in a subsequent call to get the
6382
+ # next batch of objects.
6383
+ #
6384
+ # @return [Types::ListAPIKeysResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
6385
+ #
6386
+ # * {Types::ListAPIKeysResponse#next_marker #next_marker} => String
6387
+ # * {Types::ListAPIKeysResponse#api_key_summaries #api_key_summaries} => Array&lt;Types::APIKeySummary&gt;
6388
+ # * {Types::ListAPIKeysResponse#application_integration_url #application_integration_url} => String
6389
+ #
6390
+ # @example Request syntax with placeholder values
6391
+ #
6392
+ # resp = client.list_api_keys({
6393
+ # scope: "CLOUDFRONT", # required, accepts CLOUDFRONT, REGIONAL
6394
+ # next_marker: "NextMarker",
6395
+ # limit: 1,
6396
+ # })
6397
+ #
6398
+ # @example Response structure
6399
+ #
6400
+ # resp.next_marker #=> String
6401
+ # resp.api_key_summaries #=> Array
6402
+ # resp.api_key_summaries[0].token_domains #=> Array
6403
+ # resp.api_key_summaries[0].token_domains[0] #=> String
6404
+ # resp.api_key_summaries[0].api_key #=> String
6405
+ # resp.api_key_summaries[0].creation_timestamp #=> Time
6406
+ # resp.api_key_summaries[0].version #=> Integer
6407
+ # resp.application_integration_url #=> String
6408
+ #
6409
+ # @see http://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/ListAPIKeys AWS API Documentation
6410
+ #
6411
+ # @overload list_api_keys(params = {})
6412
+ # @param [Hash] params ({})
6413
+ def list_api_keys(params = {}, options = {})
6414
+ req = build_request(:list_api_keys, params)
6415
+ req.send_request(options)
6416
+ end
6417
+
6250
6418
  # Returns a list of the available versions for the specified managed
6251
6419
  # rule group.
6252
6420
  #
@@ -9452,7 +9620,7 @@ module Aws::WAFV2
9452
9620
  params: params,
9453
9621
  config: config)
9454
9622
  context[:gem_name] = 'aws-sdk-wafv2'
9455
- context[:gem_version] = '1.54.0'
9623
+ context[:gem_version] = '1.55.0'
9456
9624
  Seahorse::Client::Request.new(handlers, context)
9457
9625
  end
9458
9626
 
@@ -13,6 +13,11 @@ module Aws::WAFV2
13
13
 
14
14
  include Seahorse::Model
15
15
 
16
+ APIKey = Shapes::StringShape.new(name: 'APIKey')
17
+ APIKeySummaries = Shapes::ListShape.new(name: 'APIKeySummaries')
18
+ APIKeySummary = Shapes::StructureShape.new(name: 'APIKeySummary')
19
+ APIKeyTokenDomains = Shapes::ListShape.new(name: 'APIKeyTokenDomains')
20
+ APIKeyVersion = Shapes::IntegerShape.new(name: 'APIKeyVersion')
16
21
  AWSManagedRulesATPRuleSet = Shapes::StructureShape.new(name: 'AWSManagedRulesATPRuleSet')
17
22
  AWSManagedRulesBotControlRuleSet = Shapes::StructureShape.new(name: 'AWSManagedRulesBotControlRuleSet')
18
23
  Action = Shapes::StringShape.new(name: 'Action')
@@ -51,6 +56,8 @@ module Aws::WAFV2
51
56
  Country = Shapes::StringShape.new(name: 'Country')
52
57
  CountryCode = Shapes::StringShape.new(name: 'CountryCode')
53
58
  CountryCodes = Shapes::ListShape.new(name: 'CountryCodes')
59
+ CreateAPIKeyRequest = Shapes::StructureShape.new(name: 'CreateAPIKeyRequest')
60
+ CreateAPIKeyResponse = Shapes::StructureShape.new(name: 'CreateAPIKeyResponse')
54
61
  CreateIPSetRequest = Shapes::StructureShape.new(name: 'CreateIPSetRequest')
55
62
  CreateIPSetResponse = Shapes::StructureShape.new(name: 'CreateIPSetResponse')
56
63
  CreateRegexPatternSetRequest = Shapes::StructureShape.new(name: 'CreateRegexPatternSetRequest')
@@ -114,6 +121,8 @@ module Aws::WAFV2
114
121
  GenerateMobileSdkReleaseUrlRequest = Shapes::StructureShape.new(name: 'GenerateMobileSdkReleaseUrlRequest')
115
122
  GenerateMobileSdkReleaseUrlResponse = Shapes::StructureShape.new(name: 'GenerateMobileSdkReleaseUrlResponse')
116
123
  GeoMatchStatement = Shapes::StructureShape.new(name: 'GeoMatchStatement')
124
+ GetDecryptedAPIKeyRequest = Shapes::StructureShape.new(name: 'GetDecryptedAPIKeyRequest')
125
+ GetDecryptedAPIKeyResponse = Shapes::StructureShape.new(name: 'GetDecryptedAPIKeyResponse')
117
126
  GetIPSetRequest = Shapes::StructureShape.new(name: 'GetIPSetRequest')
118
127
  GetIPSetResponse = Shapes::StructureShape.new(name: 'GetIPSetResponse')
119
128
  GetLoggingConfigurationRequest = Shapes::StructureShape.new(name: 'GetLoggingConfigurationRequest')
@@ -171,6 +180,8 @@ module Aws::WAFV2
171
180
  LabelSummaries = Shapes::ListShape.new(name: 'LabelSummaries')
172
181
  LabelSummary = Shapes::StructureShape.new(name: 'LabelSummary')
173
182
  Labels = Shapes::ListShape.new(name: 'Labels')
183
+ ListAPIKeysRequest = Shapes::StructureShape.new(name: 'ListAPIKeysRequest')
184
+ ListAPIKeysResponse = Shapes::StructureShape.new(name: 'ListAPIKeysResponse')
174
185
  ListAvailableManagedRuleGroupVersionsRequest = Shapes::StructureShape.new(name: 'ListAvailableManagedRuleGroupVersionsRequest')
175
186
  ListAvailableManagedRuleGroupVersionsResponse = Shapes::StructureShape.new(name: 'ListAvailableManagedRuleGroupVersionsResponse')
176
187
  ListAvailableManagedRuleGroupsRequest = Shapes::StructureShape.new(name: 'ListAvailableManagedRuleGroupsRequest')
@@ -371,6 +382,16 @@ module Aws::WAFV2
371
382
  WebACLSummary = Shapes::StructureShape.new(name: 'WebACLSummary')
372
383
  XssMatchStatement = Shapes::StructureShape.new(name: 'XssMatchStatement')
373
384
 
385
+ APIKeySummaries.member = Shapes::ShapeRef.new(shape: APIKeySummary)
386
+
387
+ APIKeySummary.add_member(:token_domains, Shapes::ShapeRef.new(shape: TokenDomains, location_name: "TokenDomains"))
388
+ APIKeySummary.add_member(:api_key, Shapes::ShapeRef.new(shape: APIKey, location_name: "APIKey"))
389
+ APIKeySummary.add_member(:creation_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreationTimestamp"))
390
+ APIKeySummary.add_member(:version, Shapes::ShapeRef.new(shape: APIKeyVersion, location_name: "Version"))
391
+ APIKeySummary.struct_class = Types::APIKeySummary
392
+
393
+ APIKeyTokenDomains.member = Shapes::ShapeRef.new(shape: TokenDomain)
394
+
374
395
  AWSManagedRulesATPRuleSet.add_member(:login_path, Shapes::ShapeRef.new(shape: String, required: true, location_name: "LoginPath"))
375
396
  AWSManagedRulesATPRuleSet.add_member(:request_inspection, Shapes::ShapeRef.new(shape: RequestInspection, location_name: "RequestInspection"))
376
397
  AWSManagedRulesATPRuleSet.add_member(:response_inspection, Shapes::ShapeRef.new(shape: ResponseInspection, location_name: "ResponseInspection"))
@@ -465,6 +486,13 @@ module Aws::WAFV2
465
486
 
466
487
  CountryCodes.member = Shapes::ShapeRef.new(shape: CountryCode)
467
488
 
489
+ CreateAPIKeyRequest.add_member(:scope, Shapes::ShapeRef.new(shape: Scope, required: true, location_name: "Scope"))
490
+ CreateAPIKeyRequest.add_member(:token_domains, Shapes::ShapeRef.new(shape: APIKeyTokenDomains, required: true, location_name: "TokenDomains"))
491
+ CreateAPIKeyRequest.struct_class = Types::CreateAPIKeyRequest
492
+
493
+ CreateAPIKeyResponse.add_member(:api_key, Shapes::ShapeRef.new(shape: APIKey, location_name: "APIKey"))
494
+ CreateAPIKeyResponse.struct_class = Types::CreateAPIKeyResponse
495
+
468
496
  CreateIPSetRequest.add_member(:name, Shapes::ShapeRef.new(shape: EntityName, required: true, location_name: "Name"))
469
497
  CreateIPSetRequest.add_member(:scope, Shapes::ShapeRef.new(shape: Scope, required: true, location_name: "Scope"))
470
498
  CreateIPSetRequest.add_member(:description, Shapes::ShapeRef.new(shape: EntityDescription, location_name: "Description"))
@@ -662,6 +690,14 @@ module Aws::WAFV2
662
690
  GeoMatchStatement.add_member(:forwarded_ip_config, Shapes::ShapeRef.new(shape: ForwardedIPConfig, location_name: "ForwardedIPConfig"))
663
691
  GeoMatchStatement.struct_class = Types::GeoMatchStatement
664
692
 
693
+ GetDecryptedAPIKeyRequest.add_member(:scope, Shapes::ShapeRef.new(shape: Scope, required: true, location_name: "Scope"))
694
+ GetDecryptedAPIKeyRequest.add_member(:api_key, Shapes::ShapeRef.new(shape: APIKey, required: true, location_name: "APIKey"))
695
+ GetDecryptedAPIKeyRequest.struct_class = Types::GetDecryptedAPIKeyRequest
696
+
697
+ GetDecryptedAPIKeyResponse.add_member(:token_domains, Shapes::ShapeRef.new(shape: TokenDomains, location_name: "TokenDomains"))
698
+ GetDecryptedAPIKeyResponse.add_member(:creation_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreationTimestamp"))
699
+ GetDecryptedAPIKeyResponse.struct_class = Types::GetDecryptedAPIKeyResponse
700
+
665
701
  GetIPSetRequest.add_member(:name, Shapes::ShapeRef.new(shape: EntityName, required: true, location_name: "Name"))
666
702
  GetIPSetRequest.add_member(:scope, Shapes::ShapeRef.new(shape: Scope, required: true, location_name: "Scope"))
667
703
  GetIPSetRequest.add_member(:id, Shapes::ShapeRef.new(shape: EntityId, required: true, location_name: "Id"))
@@ -843,6 +879,16 @@ module Aws::WAFV2
843
879
 
844
880
  Labels.member = Shapes::ShapeRef.new(shape: Label)
845
881
 
882
+ ListAPIKeysRequest.add_member(:scope, Shapes::ShapeRef.new(shape: Scope, required: true, location_name: "Scope"))
883
+ ListAPIKeysRequest.add_member(:next_marker, Shapes::ShapeRef.new(shape: NextMarker, location_name: "NextMarker"))
884
+ ListAPIKeysRequest.add_member(:limit, Shapes::ShapeRef.new(shape: PaginationLimit, location_name: "Limit"))
885
+ ListAPIKeysRequest.struct_class = Types::ListAPIKeysRequest
886
+
887
+ ListAPIKeysResponse.add_member(:next_marker, Shapes::ShapeRef.new(shape: NextMarker, location_name: "NextMarker"))
888
+ ListAPIKeysResponse.add_member(:api_key_summaries, Shapes::ShapeRef.new(shape: APIKeySummaries, location_name: "APIKeySummaries"))
889
+ ListAPIKeysResponse.add_member(:application_integration_url, Shapes::ShapeRef.new(shape: OutputUrl, location_name: "ApplicationIntegrationURL"))
890
+ ListAPIKeysResponse.struct_class = Types::ListAPIKeysResponse
891
+
846
892
  ListAvailableManagedRuleGroupVersionsRequest.add_member(:vendor_name, Shapes::ShapeRef.new(shape: VendorName, required: true, location_name: "VendorName"))
847
893
  ListAvailableManagedRuleGroupVersionsRequest.add_member(:name, Shapes::ShapeRef.new(shape: EntityName, required: true, location_name: "Name"))
848
894
  ListAvailableManagedRuleGroupVersionsRequest.add_member(:scope, Shapes::ShapeRef.new(shape: Scope, required: true, location_name: "Scope"))
@@ -1538,6 +1584,18 @@ module Aws::WAFV2
1538
1584
  o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1539
1585
  end)
1540
1586
 
1587
+ api.add_operation(:create_api_key, Seahorse::Model::Operation.new.tap do |o|
1588
+ o.name = "CreateAPIKey"
1589
+ o.http_method = "POST"
1590
+ o.http_request_uri = "/"
1591
+ o.input = Shapes::ShapeRef.new(shape: CreateAPIKeyRequest)
1592
+ o.output = Shapes::ShapeRef.new(shape: CreateAPIKeyResponse)
1593
+ o.errors << Shapes::ShapeRef.new(shape: WAFInternalErrorException)
1594
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidParameterException)
1595
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1596
+ o.errors << Shapes::ShapeRef.new(shape: WAFLimitsExceededException)
1597
+ end)
1598
+
1541
1599
  api.add_operation(:create_ip_set, Seahorse::Model::Operation.new.tap do |o|
1542
1600
  o.name = "CreateIPSet"
1543
1601
  o.http_method = "POST"
@@ -1750,6 +1808,18 @@ module Aws::WAFV2
1750
1808
  o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1751
1809
  end)
1752
1810
 
1811
+ api.add_operation(:get_decrypted_api_key, Seahorse::Model::Operation.new.tap do |o|
1812
+ o.name = "GetDecryptedAPIKey"
1813
+ o.http_method = "POST"
1814
+ o.http_request_uri = "/"
1815
+ o.input = Shapes::ShapeRef.new(shape: GetDecryptedAPIKeyRequest)
1816
+ o.output = Shapes::ShapeRef.new(shape: GetDecryptedAPIKeyResponse)
1817
+ o.errors << Shapes::ShapeRef.new(shape: WAFInternalErrorException)
1818
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidParameterException)
1819
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1820
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidResourceException)
1821
+ end)
1822
+
1753
1823
  api.add_operation(:get_ip_set, Seahorse::Model::Operation.new.tap do |o|
1754
1824
  o.name = "GetIPSet"
1755
1825
  o.http_method = "POST"
@@ -1881,6 +1951,18 @@ module Aws::WAFV2
1881
1951
  o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1882
1952
  end)
1883
1953
 
1954
+ api.add_operation(:list_api_keys, Seahorse::Model::Operation.new.tap do |o|
1955
+ o.name = "ListAPIKeys"
1956
+ o.http_method = "POST"
1957
+ o.http_request_uri = "/"
1958
+ o.input = Shapes::ShapeRef.new(shape: ListAPIKeysRequest)
1959
+ o.output = Shapes::ShapeRef.new(shape: ListAPIKeysResponse)
1960
+ o.errors << Shapes::ShapeRef.new(shape: WAFInternalErrorException)
1961
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidParameterException)
1962
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidOperationException)
1963
+ o.errors << Shapes::ShapeRef.new(shape: WAFInvalidResourceException)
1964
+ end)
1965
+
1884
1966
  api.add_operation(:list_available_managed_rule_group_versions, Seahorse::Model::Operation.new.tap do |o|
1885
1967
  o.name = "ListAvailableManagedRuleGroupVersions"
1886
1968
  o.http_method = "POST"
@@ -39,6 +39,20 @@ module Aws::WAFV2
39
39
  end
40
40
  end
41
41
 
42
+ class CreateAPIKey
43
+ def self.build(context)
44
+ unless context.config.regional_endpoint
45
+ endpoint = context.config.endpoint.to_s
46
+ end
47
+ Aws::WAFV2::EndpointParameters.new(
48
+ region: context.config.region,
49
+ use_dual_stack: context.config.use_dualstack_endpoint,
50
+ use_fips: context.config.use_fips_endpoint,
51
+ endpoint: endpoint,
52
+ )
53
+ end
54
+ end
55
+
42
56
  class CreateIPSet
43
57
  def self.build(context)
44
58
  unless context.config.regional_endpoint
@@ -235,6 +249,20 @@ module Aws::WAFV2
235
249
  end
236
250
  end
237
251
 
252
+ class GetDecryptedAPIKey
253
+ def self.build(context)
254
+ unless context.config.regional_endpoint
255
+ endpoint = context.config.endpoint.to_s
256
+ end
257
+ Aws::WAFV2::EndpointParameters.new(
258
+ region: context.config.region,
259
+ use_dual_stack: context.config.use_dualstack_endpoint,
260
+ use_fips: context.config.use_fips_endpoint,
261
+ endpoint: endpoint,
262
+ )
263
+ end
264
+ end
265
+
238
266
  class GetIPSet
239
267
  def self.build(context)
240
268
  unless context.config.regional_endpoint
@@ -389,6 +417,20 @@ module Aws::WAFV2
389
417
  end
390
418
  end
391
419
 
420
+ class ListAPIKeys
421
+ def self.build(context)
422
+ unless context.config.regional_endpoint
423
+ endpoint = context.config.endpoint.to_s
424
+ end
425
+ Aws::WAFV2::EndpointParameters.new(
426
+ region: context.config.region,
427
+ use_dual_stack: context.config.use_dualstack_endpoint,
428
+ use_fips: context.config.use_fips_endpoint,
429
+ endpoint: endpoint,
430
+ )
431
+ end
432
+ end
433
+
392
434
  class ListAvailableManagedRuleGroupVersions
393
435
  def self.build(context)
394
436
  unless context.config.regional_endpoint
@@ -60,6 +60,8 @@ module Aws::WAFV2
60
60
  Aws::WAFV2::Endpoints::AssociateWebACL.build(context)
61
61
  when :check_capacity
62
62
  Aws::WAFV2::Endpoints::CheckCapacity.build(context)
63
+ when :create_api_key
64
+ Aws::WAFV2::Endpoints::CreateAPIKey.build(context)
63
65
  when :create_ip_set
64
66
  Aws::WAFV2::Endpoints::CreateIPSet.build(context)
65
67
  when :create_regex_pattern_set
@@ -88,6 +90,8 @@ module Aws::WAFV2
88
90
  Aws::WAFV2::Endpoints::DisassociateWebACL.build(context)
89
91
  when :generate_mobile_sdk_release_url
90
92
  Aws::WAFV2::Endpoints::GenerateMobileSdkReleaseUrl.build(context)
93
+ when :get_decrypted_api_key
94
+ Aws::WAFV2::Endpoints::GetDecryptedAPIKey.build(context)
91
95
  when :get_ip_set
92
96
  Aws::WAFV2::Endpoints::GetIPSet.build(context)
93
97
  when :get_logging_configuration
@@ -110,6 +114,8 @@ module Aws::WAFV2
110
114
  Aws::WAFV2::Endpoints::GetWebACL.build(context)
111
115
  when :get_web_acl_for_resource
112
116
  Aws::WAFV2::Endpoints::GetWebACLForResource.build(context)
117
+ when :list_api_keys
118
+ Aws::WAFV2::Endpoints::ListAPIKeys.build(context)
113
119
  when :list_available_managed_rule_group_versions
114
120
  Aws::WAFV2::Endpoints::ListAvailableManagedRuleGroupVersions.build(context)
115
121
  when :list_available_managed_rule_groups
@@ -10,6 +10,44 @@
10
10
  module Aws::WAFV2
11
11
  module Types
12
12
 
13
+ # Information for a single API key.
14
+ #
15
+ # @!attribute [rw] token_domains
16
+ # The token domains that are defined in this API key.
17
+ # @return [Array<String>]
18
+ #
19
+ # @!attribute [rw] api_key
20
+ # The generated, encrypted API key. You can copy this for use in your
21
+ # JavaScript CAPTCHA integration.
22
+ #
23
+ # For information about how to use this in your CAPTCHA JavaScript
24
+ # integration, see [WAF client application integration][1] in the *WAF
25
+ # Developer Guide*.
26
+ #
27
+ #
28
+ #
29
+ # [1]: https://docs.aws.amazon.com/waf/latest/developerguide/waf-application-integration.html
30
+ # @return [String]
31
+ #
32
+ # @!attribute [rw] creation_timestamp
33
+ # The date and time that the key was created.
34
+ # @return [Time]
35
+ #
36
+ # @!attribute [rw] version
37
+ # Internal value used by WAF to manage the key.
38
+ # @return [Integer]
39
+ #
40
+ # @see http://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/APIKeySummary AWS API Documentation
41
+ #
42
+ class APIKeySummary < Struct.new(
43
+ :token_domains,
44
+ :api_key,
45
+ :creation_timestamp,
46
+ :version)
47
+ SENSITIVE = []
48
+ include Aws::Structure
49
+ end
50
+
13
51
  # Details for your use of the account takeover prevention managed rule
14
52
  # group, `AWSManagedRulesATPRuleSet`. This configuration is used in
15
53
  # `ManagedRuleGroupConfig`.
@@ -818,6 +856,57 @@ module Aws::WAFV2
818
856
  include Aws::Structure
819
857
  end
820
858
 
859
+ # @!attribute [rw] scope
860
+ # Specifies whether this is for an Amazon CloudFront distribution or
861
+ # for a regional application. A regional application can be an
862
+ # Application Load Balancer (ALB), an Amazon API Gateway REST API, an
863
+ # AppSync GraphQL API, an Amazon Cognito user pool, or an App Runner
864
+ # service.
865
+ #
866
+ # To work with CloudFront, you must also specify the Region US East
867
+ # (N. Virginia) as follows:
868
+ #
869
+ # * CLI - Specify the Region when you use the CloudFront scope:
870
+ # `--scope=CLOUDFRONT --region=us-east-1`.
871
+ #
872
+ # * API and SDKs - For all calls, use the Region endpoint us-east-1.
873
+ # @return [String]
874
+ #
875
+ # @!attribute [rw] token_domains
876
+ # The client application domains that you want to use this API key
877
+ # for.
878
+ # @return [Array<String>]
879
+ #
880
+ # @see http://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/CreateAPIKeyRequest AWS API Documentation
881
+ #
882
+ class CreateAPIKeyRequest < Struct.new(
883
+ :scope,
884
+ :token_domains)
885
+ SENSITIVE = []
886
+ include Aws::Structure
887
+ end
888
+
889
+ # @!attribute [rw] api_key
890
+ # The generated, encrypted API key. You can copy this for use in your
891
+ # JavaScript CAPTCHA integration.
892
+ #
893
+ # For information about how to use this in your CAPTCHA JavaScript
894
+ # integration, see [WAF client application integration][1] in the *WAF
895
+ # Developer Guide*.
896
+ #
897
+ #
898
+ #
899
+ # [1]: https://docs.aws.amazon.com/waf/latest/developerguide/waf-application-integration.html
900
+ # @return [String]
901
+ #
902
+ # @see http://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/CreateAPIKeyResponse AWS API Documentation
903
+ #
904
+ class CreateAPIKeyResponse < Struct.new(
905
+ :api_key)
906
+ SENSITIVE = []
907
+ include Aws::Structure
908
+ end
909
+
821
910
  # @!attribute [rw] name
822
911
  # The name of the IP set. You cannot change the name of an `IPSet`
823
912
  # after you create it.
@@ -2295,6 +2384,52 @@ module Aws::WAFV2
2295
2384
  include Aws::Structure
2296
2385
  end
2297
2386
 
2387
+ # @!attribute [rw] scope
2388
+ # Specifies whether this is for an Amazon CloudFront distribution or
2389
+ # for a regional application. A regional application can be an
2390
+ # Application Load Balancer (ALB), an Amazon API Gateway REST API, an
2391
+ # AppSync GraphQL API, an Amazon Cognito user pool, or an App Runner
2392
+ # service.
2393
+ #
2394
+ # To work with CloudFront, you must also specify the Region US East
2395
+ # (N. Virginia) as follows:
2396
+ #
2397
+ # * CLI - Specify the Region when you use the CloudFront scope:
2398
+ # `--scope=CLOUDFRONT --region=us-east-1`.
2399
+ #
2400
+ # * API and SDKs - For all calls, use the Region endpoint us-east-1.
2401
+ # @return [String]
2402
+ #
2403
+ # @!attribute [rw] api_key
2404
+ # The encrypted API key.
2405
+ # @return [String]
2406
+ #
2407
+ # @see http://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/GetDecryptedAPIKeyRequest AWS API Documentation
2408
+ #
2409
+ class GetDecryptedAPIKeyRequest < Struct.new(
2410
+ :scope,
2411
+ :api_key)
2412
+ SENSITIVE = []
2413
+ include Aws::Structure
2414
+ end
2415
+
2416
+ # @!attribute [rw] token_domains
2417
+ # The token domains that are defined in this API key.
2418
+ # @return [Array<String>]
2419
+ #
2420
+ # @!attribute [rw] creation_timestamp
2421
+ # The date and time that the key was created.
2422
+ # @return [Time]
2423
+ #
2424
+ # @see http://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/GetDecryptedAPIKeyResponse AWS API Documentation
2425
+ #
2426
+ class GetDecryptedAPIKeyResponse < Struct.new(
2427
+ :token_domains,
2428
+ :creation_timestamp)
2429
+ SENSITIVE = []
2430
+ include Aws::Structure
2431
+ end
2432
+
2298
2433
  # @!attribute [rw] name
2299
2434
  # The name of the IP set. You cannot change the name of an `IPSet`
2300
2435
  # after you create it.
@@ -3592,6 +3727,83 @@ module Aws::WAFV2
3592
3727
  include Aws::Structure
3593
3728
  end
3594
3729
 
3730
+ # @!attribute [rw] scope
3731
+ # Specifies whether this is for an Amazon CloudFront distribution or
3732
+ # for a regional application. A regional application can be an
3733
+ # Application Load Balancer (ALB), an Amazon API Gateway REST API, an
3734
+ # AppSync GraphQL API, an Amazon Cognito user pool, or an App Runner
3735
+ # service.
3736
+ #
3737
+ # To work with CloudFront, you must also specify the Region US East
3738
+ # (N. Virginia) as follows:
3739
+ #
3740
+ # * CLI - Specify the Region when you use the CloudFront scope:
3741
+ # `--scope=CLOUDFRONT --region=us-east-1`.
3742
+ #
3743
+ # * API and SDKs - For all calls, use the Region endpoint us-east-1.
3744
+ # @return [String]
3745
+ #
3746
+ # @!attribute [rw] next_marker
3747
+ # When you request a list of objects with a `Limit` setting, if the
3748
+ # number of objects that are still available for retrieval exceeds the
3749
+ # limit, WAF returns a `NextMarker` value in the response. To retrieve
3750
+ # the next batch of objects, provide the marker from the prior call in
3751
+ # your next request.
3752
+ # @return [String]
3753
+ #
3754
+ # @!attribute [rw] limit
3755
+ # The maximum number of objects that you want WAF to return for this
3756
+ # request. If more objects are available, in the response, WAF
3757
+ # provides a `NextMarker` value that you can use in a subsequent call
3758
+ # to get the next batch of objects.
3759
+ # @return [Integer]
3760
+ #
3761
+ # @see http://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/ListAPIKeysRequest AWS API Documentation
3762
+ #
3763
+ class ListAPIKeysRequest < Struct.new(
3764
+ :scope,
3765
+ :next_marker,
3766
+ :limit)
3767
+ SENSITIVE = []
3768
+ include Aws::Structure
3769
+ end
3770
+
3771
+ # @!attribute [rw] next_marker
3772
+ # When you request a list of objects with a `Limit` setting, if the
3773
+ # number of objects that are still available for retrieval exceeds the
3774
+ # limit, WAF returns a `NextMarker` value in the response. To retrieve
3775
+ # the next batch of objects, provide the marker from the prior call in
3776
+ # your next request.
3777
+ # @return [String]
3778
+ #
3779
+ # @!attribute [rw] api_key_summaries
3780
+ # The array of key summaries. If you specified a `Limit` in your
3781
+ # request, this might not be the full list.
3782
+ # @return [Array<Types::APIKeySummary>]
3783
+ #
3784
+ # @!attribute [rw] application_integration_url
3785
+ # The CAPTCHA application integration URL, for use in your JavaScript
3786
+ # implementation.
3787
+ #
3788
+ # For information about how to use this in your CAPTCHA JavaScript
3789
+ # integration, see [WAF client application integration][1] in the *WAF
3790
+ # Developer Guide*.
3791
+ #
3792
+ #
3793
+ #
3794
+ # [1]: https://docs.aws.amazon.com/waf/latest/developerguide/waf-application-integration.html
3795
+ # @return [String]
3796
+ #
3797
+ # @see http://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/ListAPIKeysResponse AWS API Documentation
3798
+ #
3799
+ class ListAPIKeysResponse < Struct.new(
3800
+ :next_marker,
3801
+ :api_key_summaries,
3802
+ :application_integration_url)
3803
+ SENSITIVE = []
3804
+ include Aws::Structure
3805
+ end
3806
+
3595
3807
  # @!attribute [rw] vendor_name
3596
3808
  # The name of the managed rule group vendor. You use this, along with
3597
3809
  # the rule group name, to identify the rule group.
@@ -3655,7 +3867,8 @@ module Aws::WAFV2
3655
3867
  #
3656
3868
  # @!attribute [rw] versions
3657
3869
  # The versions that are currently available for the specified managed
3658
- # rule group.
3870
+ # rule group. If you specified a `Limit` in your request, this might
3871
+ # not be the full list.
3659
3872
  # @return [Array<Types::ManagedRuleGroupVersion>]
3660
3873
  #
3661
3874
  # @!attribute [rw] current_default_version
@@ -3722,6 +3935,8 @@ module Aws::WAFV2
3722
3935
  # @return [String]
3723
3936
  #
3724
3937
  # @!attribute [rw] managed_rule_groups
3938
+ # Array of managed rule groups that you can use. If you specified a
3939
+ # `Limit` in your request, this might not be the full list.
3725
3940
  # @return [Array<Types::ManagedRuleGroupSummary>]
3726
3941
  #
3727
3942
  # @see http://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/ListAvailableManagedRuleGroupsResponse AWS API Documentation
@@ -3783,8 +3998,8 @@ module Aws::WAFV2
3783
3998
  # @return [String]
3784
3999
  #
3785
4000
  # @!attribute [rw] ip_sets
3786
- # Array of IPSets. This may not be the full list of IPSets that you
3787
- # have defined. See the `Limit` specification for this request.
4001
+ # Array of IPSets. If you specified a `Limit` in your request, this
4002
+ # might not be the full list.
3788
4003
  # @return [Array<Types::IPSetSummary>]
3789
4004
  #
3790
4005
  # @see http://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/ListIPSetsResponse AWS API Documentation
@@ -3838,6 +4053,8 @@ module Aws::WAFV2
3838
4053
  end
3839
4054
 
3840
4055
  # @!attribute [rw] logging_configurations
4056
+ # Array of logging configurations. If you specified a `Limit` in your
4057
+ # request, this might not be the full list.
3841
4058
  # @return [Array<Types::LoggingConfiguration>]
3842
4059
  #
3843
4060
  # @!attribute [rw] next_marker
@@ -3907,7 +4124,8 @@ module Aws::WAFV2
3907
4124
  # @return [String]
3908
4125
  #
3909
4126
  # @!attribute [rw] managed_rule_sets
3910
- # Your managed rule sets.
4127
+ # Your managed rule sets. If you specified a `Limit` in your request,
4128
+ # this might not be the full list.
3911
4129
  # @return [Array<Types::ManagedRuleSetSummary>]
3912
4130
  #
3913
4131
  # @see http://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/ListManagedRuleSetsResponse AWS API Documentation
@@ -3949,7 +4167,9 @@ module Aws::WAFV2
3949
4167
  end
3950
4168
 
3951
4169
  # @!attribute [rw] release_summaries
3952
- # High level information for the available SDK releases.
4170
+ # The high level information for the available SDK releases. If you
4171
+ # specified a `Limit` in your request, this might not be the full
4172
+ # list.
3953
4173
  # @return [Array<Types::ReleaseSummary>]
3954
4174
  #
3955
4175
  # @!attribute [rw] next_marker
@@ -4019,6 +4239,8 @@ module Aws::WAFV2
4019
4239
  # @return [String]
4020
4240
  #
4021
4241
  # @!attribute [rw] regex_pattern_sets
4242
+ # Array of regex pattern sets. If you specified a `Limit` in your
4243
+ # request, this might not be the full list.
4022
4244
  # @return [Array<Types::RegexPatternSetSummary>]
4023
4245
  #
4024
4246
  # @see http://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/ListRegexPatternSetsResponse AWS API Documentation
@@ -4120,6 +4342,8 @@ module Aws::WAFV2
4120
4342
  # @return [String]
4121
4343
  #
4122
4344
  # @!attribute [rw] rule_groups
4345
+ # Array of rule groups. If you specified a `Limit` in your request,
4346
+ # this might not be the full list.
4123
4347
  # @return [Array<Types::RuleGroupSummary>]
4124
4348
  #
4125
4349
  # @see http://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/ListRuleGroupsResponse AWS API Documentation
@@ -4169,7 +4393,9 @@ module Aws::WAFV2
4169
4393
  # @return [String]
4170
4394
  #
4171
4395
  # @!attribute [rw] tag_info_for_resource
4172
- # The collection of tagging definitions for the resource.
4396
+ # The collection of tagging definitions for the resource. If you
4397
+ # specified a `Limit` in your request, this might not be the full
4398
+ # list.
4173
4399
  # @return [Types::TagInfoForResource]
4174
4400
  #
4175
4401
  # @see http://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/ListTagsForResourceResponse AWS API Documentation
@@ -4231,6 +4457,8 @@ module Aws::WAFV2
4231
4457
  # @return [String]
4232
4458
  #
4233
4459
  # @!attribute [rw] web_acls
4460
+ # Array of web ACLs. If you specified a `Limit` in your request, this
4461
+ # might not be the full list.
4234
4462
  # @return [Array<Types::WebACLSummary>]
4235
4463
  #
4236
4464
  # @see http://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/ListWebACLsResponse AWS API Documentation
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.54.0'
55
+ GEM_VERSION = '1.55.0'
56
56
 
57
57
  end
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.54.0
4
+ version: 1.55.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-04-11 00:00:00.000000000 Z
11
+ date: 2023-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core