aws-sdk-cognitoidentityprovider 1.145.0 → 1.146.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b6d76e0739d68ceecdf2dc621c82df4e167c8e2f794fc42112cc1f47c8ed7209
4
- data.tar.gz: 10da5b733cb761b9e9875247e74defaace8bd3ec74f06ce34253923b06bd99a0
3
+ metadata.gz: ef442d32491f8da4e840b92200ec6d2b27d58d907b5a08181f2b3a41237c1733
4
+ data.tar.gz: 9892880f54bb1586263f6822d9428a7c58d8526e43c9818836aed4acdbabbee5
5
5
  SHA512:
6
- metadata.gz: 77512b0cf6d02f4c9bd9eaff2ef359223829ee130de476641f4e8b0cd834b09136f0c9e695af1175623877631da0deae7dd5155f80e318599d63a81b84ca5017
7
- data.tar.gz: 289044320295b9822e12755b4c43344bfe75ac07371fa4464ace126a317cc9e16f56bf5eb87da95439ec508ef3b288e341eee611dfd9cbb57705127a94fdfc9e
6
+ metadata.gz: 39f47a5aedb653901ef0f1361f03e523034bef41277cccc403cfa1248efcd8945e99959fd8defbf56b6bc60c6ff343eed2408bff2cc0839448a7fce3da92f0f6
7
+ data.tar.gz: c35a888e870e3cca3d209fa4aa262bdd04a2417971ebfd3f6d1789a0fd1870b7c252d71b883518b029932fb0592cf82fc7d17223ffd355af4929340fed8c51cc
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.146.0 (2026-07-02)
5
+ ------------------
6
+
7
+ * Feature - Add support for provisioned limit management, enabling customers to view and update their provisioned API rate limits for Amazon Cognito User Pools programmatically through the new GetProvisionedLimit and UpdateProvisionedLimit APIs.
8
+
4
9
  1.145.0 (2026-06-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.145.0
1
+ 1.146.0
@@ -8307,6 +8307,90 @@ module Aws::CognitoIdentityProvider
8307
8307
  req.send_request(options)
8308
8308
  end
8309
8309
 
8310
+ # Returns the current provisioned limit for a specific API category.
8311
+ #
8312
+ # <note markdown="1"> Amazon Cognito evaluates Identity and Access Management (IAM) policies
8313
+ # in requests for this API operation. For this operation, you must use
8314
+ # IAM credentials to authorize requests, and you must grant yourself the
8315
+ # corresponding IAM permission in a policy.
8316
+ #
8317
+ # **Learn more**
8318
+ #
8319
+ # * [Signing Amazon Web Services API Requests][1]
8320
+ #
8321
+ # * [Using the Amazon Cognito user pools API and user pool endpoints][2]
8322
+ #
8323
+ # </note>
8324
+ #
8325
+ #
8326
+ #
8327
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html
8328
+ # [2]: https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html
8329
+ #
8330
+ # @option params [required, Types::LimitDefinitionType] :limit_definition
8331
+ # The limit to retrieve. Specify the limit class and the attributes that
8332
+ # identify the limit.
8333
+ #
8334
+ # @return [Types::GetProvisionedLimitResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
8335
+ #
8336
+ # * {Types::GetProvisionedLimitResponse#limit #limit} => Types::LimitType
8337
+ #
8338
+ #
8339
+ # @example Example: Example get a provisioned limit
8340
+ #
8341
+ # # The following example returns the provisioned limit for the UserAuthentication API category.
8342
+ #
8343
+ # resp = client.get_provisioned_limit({
8344
+ # limit_definition: {
8345
+ # attributes: {
8346
+ # "Category" => "UserAuthentication",
8347
+ # },
8348
+ # limit_class: "API_CATEGORY",
8349
+ # },
8350
+ # })
8351
+ #
8352
+ # resp.to_h outputs the following:
8353
+ # {
8354
+ # limit: {
8355
+ # free_limit_value: 120,
8356
+ # limit_definition: {
8357
+ # attributes: {
8358
+ # "Category" => "UserAuthentication",
8359
+ # },
8360
+ # limit_class: "API_CATEGORY",
8361
+ # },
8362
+ # provisioned_limit_value: 120,
8363
+ # },
8364
+ # }
8365
+ #
8366
+ # @example Request syntax with placeholder values
8367
+ #
8368
+ # resp = client.get_provisioned_limit({
8369
+ # limit_definition: { # required
8370
+ # limit_class: "API_CATEGORY", # required, accepts API_CATEGORY
8371
+ # attributes: { # required
8372
+ # "StringType" => "StringType",
8373
+ # },
8374
+ # },
8375
+ # })
8376
+ #
8377
+ # @example Response structure
8378
+ #
8379
+ # resp.limit.limit_definition.limit_class #=> String, one of "API_CATEGORY"
8380
+ # resp.limit.limit_definition.attributes #=> Hash
8381
+ # resp.limit.limit_definition.attributes["StringType"] #=> String
8382
+ # resp.limit.provisioned_limit_value #=> Integer
8383
+ # resp.limit.free_limit_value #=> Integer
8384
+ #
8385
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetProvisionedLimit AWS API Documentation
8386
+ #
8387
+ # @overload get_provisioned_limit(params = {})
8388
+ # @param [Hash] params ({})
8389
+ def get_provisioned_limit(params = {}, options = {})
8390
+ req = build_request(:get_provisioned_limit, params)
8391
+ req.send_request(options)
8392
+ end
8393
+
8310
8394
  # Given a user pool ID, returns the signing certificate for SAML 2.0
8311
8395
  # federation.
8312
8396
  #
@@ -12578,6 +12662,101 @@ module Aws::CognitoIdentityProvider
12578
12662
  req.send_request(options)
12579
12663
  end
12580
12664
 
12665
+ # Sets the provisioned limit for a specific API category. The value must
12666
+ # be between the default limit and your account-level maximum limit in
12667
+ # Service Quotas.
12668
+ #
12669
+ # Managed login user pools don't support adjustments to the
12670
+ # `UserAuthentication` or `UserFederation` categories. To increase these
12671
+ # limits, submit a Service Quotas increase request.
12672
+ #
12673
+ # <note markdown="1"> Amazon Cognito evaluates Identity and Access Management (IAM) policies
12674
+ # in requests for this API operation. For this operation, you must use
12675
+ # IAM credentials to authorize requests, and you must grant yourself the
12676
+ # corresponding IAM permission in a policy.
12677
+ #
12678
+ # **Learn more**
12679
+ #
12680
+ # * [Signing Amazon Web Services API Requests][1]
12681
+ #
12682
+ # * [Using the Amazon Cognito user pools API and user pool endpoints][2]
12683
+ #
12684
+ # </note>
12685
+ #
12686
+ #
12687
+ #
12688
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html
12689
+ # [2]: https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html
12690
+ #
12691
+ # @option params [required, Types::LimitDefinitionType] :limit_definition
12692
+ # The limit to update. Specify the limit class and the attributes that
12693
+ # identify the limit.
12694
+ #
12695
+ # @option params [required, Integer] :requested_limit_value
12696
+ # The provisioned rate to set, in requests per second (RPS).
12697
+ #
12698
+ # @return [Types::UpdateProvisionedLimitResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
12699
+ #
12700
+ # * {Types::UpdateProvisionedLimitResponse#limit #limit} => Types::LimitType
12701
+ #
12702
+ #
12703
+ # @example Example: Example update a provisioned limit
12704
+ #
12705
+ # # The following example sets the provisioned limit for the UserAuthentication API category to 300 RPS.
12706
+ #
12707
+ # resp = client.update_provisioned_limit({
12708
+ # limit_definition: {
12709
+ # attributes: {
12710
+ # "Category" => "UserAuthentication",
12711
+ # },
12712
+ # limit_class: "API_CATEGORY",
12713
+ # },
12714
+ # requested_limit_value: 300,
12715
+ # })
12716
+ #
12717
+ # resp.to_h outputs the following:
12718
+ # {
12719
+ # limit: {
12720
+ # free_limit_value: 120,
12721
+ # limit_definition: {
12722
+ # attributes: {
12723
+ # "Category" => "UserAuthentication",
12724
+ # },
12725
+ # limit_class: "API_CATEGORY",
12726
+ # },
12727
+ # provisioned_limit_value: 300,
12728
+ # },
12729
+ # }
12730
+ #
12731
+ # @example Request syntax with placeholder values
12732
+ #
12733
+ # resp = client.update_provisioned_limit({
12734
+ # limit_definition: { # required
12735
+ # limit_class: "API_CATEGORY", # required, accepts API_CATEGORY
12736
+ # attributes: { # required
12737
+ # "StringType" => "StringType",
12738
+ # },
12739
+ # },
12740
+ # requested_limit_value: 1, # required
12741
+ # })
12742
+ #
12743
+ # @example Response structure
12744
+ #
12745
+ # resp.limit.limit_definition.limit_class #=> String, one of "API_CATEGORY"
12746
+ # resp.limit.limit_definition.attributes #=> Hash
12747
+ # resp.limit.limit_definition.attributes["StringType"] #=> String
12748
+ # resp.limit.provisioned_limit_value #=> Integer
12749
+ # resp.limit.free_limit_value #=> Integer
12750
+ #
12751
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateProvisionedLimit AWS API Documentation
12752
+ #
12753
+ # @overload update_provisioned_limit(params = {})
12754
+ # @param [Hash] params ({})
12755
+ def update_provisioned_limit(params = {}, options = {})
12756
+ req = build_request(:update_provisioned_limit, params)
12757
+ req.send_request(options)
12758
+ end
12759
+
12581
12760
  # Updates the name and scopes of a resource server. All other fields are
12582
12761
  # read-only. For more information about resource servers, see [Access
12583
12762
  # control with resource servers][1].
@@ -14077,7 +14256,7 @@ module Aws::CognitoIdentityProvider
14077
14256
  tracer: tracer
14078
14257
  )
14079
14258
  context[:gem_name] = 'aws-sdk-cognitoidentityprovider'
14080
- context[:gem_version] = '1.145.0'
14259
+ context[:gem_version] = '1.146.0'
14081
14260
  Seahorse::Client::Request.new(handlers, context)
14082
14261
  end
14083
14262
 
@@ -291,6 +291,8 @@ module Aws::CognitoIdentityProvider
291
291
  GetIdentityProviderByIdentifierResponse = Shapes::StructureShape.new(name: 'GetIdentityProviderByIdentifierResponse')
292
292
  GetLogDeliveryConfigurationRequest = Shapes::StructureShape.new(name: 'GetLogDeliveryConfigurationRequest')
293
293
  GetLogDeliveryConfigurationResponse = Shapes::StructureShape.new(name: 'GetLogDeliveryConfigurationResponse')
294
+ GetProvisionedLimitRequest = Shapes::StructureShape.new(name: 'GetProvisionedLimitRequest')
295
+ GetProvisionedLimitResponse = Shapes::StructureShape.new(name: 'GetProvisionedLimitResponse')
294
296
  GetSigningCertificateRequest = Shapes::StructureShape.new(name: 'GetSigningCertificateRequest')
295
297
  GetSigningCertificateResponse = Shapes::StructureShape.new(name: 'GetSigningCertificateResponse')
296
298
  GetTokensFromRefreshTokenRequest = Shapes::StructureShape.new(name: 'GetTokensFromRefreshTokenRequest')
@@ -343,7 +345,10 @@ module Aws::CognitoIdentityProvider
343
345
  KeyConfigurationType = Shapes::StructureShape.new(name: 'KeyConfigurationType')
344
346
  LambdaConfigType = Shapes::StructureShape.new(name: 'LambdaConfigType')
345
347
  LanguageIdType = Shapes::StringShape.new(name: 'LanguageIdType')
348
+ LimitClass = Shapes::StringShape.new(name: 'LimitClass')
349
+ LimitDefinitionType = Shapes::StructureShape.new(name: 'LimitDefinitionType')
346
350
  LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
351
+ LimitType = Shapes::StructureShape.new(name: 'LimitType')
347
352
  LinkUrlType = Shapes::StringShape.new(name: 'LinkUrlType')
348
353
  LinksType = Shapes::MapShape.new(name: 'LinksType')
349
354
  ListDevicesRequest = Shapes::StructureShape.new(name: 'ListDevicesRequest')
@@ -475,6 +480,7 @@ module Aws::CognitoIdentityProvider
475
480
  SecretCodeType = Shapes::StringShape.new(name: 'SecretCodeType')
476
481
  SecretHashType = Shapes::StringShape.new(name: 'SecretHashType')
477
482
  SecurityPolicyType = Shapes::StringShape.new(name: 'SecurityPolicyType')
483
+ ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
478
484
  SessionType = Shapes::StringShape.new(name: 'SessionType')
479
485
  SetLogDeliveryConfigurationRequest = Shapes::StructureShape.new(name: 'SetLogDeliveryConfigurationRequest')
480
486
  SetLogDeliveryConfigurationResponse = Shapes::StructureShape.new(name: 'SetLogDeliveryConfigurationResponse')
@@ -508,6 +514,7 @@ module Aws::CognitoIdentityProvider
508
514
  StopUserImportJobRequest = Shapes::StructureShape.new(name: 'StopUserImportJobRequest')
509
515
  StopUserImportJobResponse = Shapes::StructureShape.new(name: 'StopUserImportJobResponse')
510
516
  StringAttributeConstraintsType = Shapes::StructureShape.new(name: 'StringAttributeConstraintsType')
517
+ StringToStringMapType = Shapes::MapShape.new(name: 'StringToStringMapType')
511
518
  StringType = Shapes::StringShape.new(name: 'StringType')
512
519
  SupportedIdentityProvidersListType = Shapes::ListShape.new(name: 'SupportedIdentityProvidersListType')
513
520
  TagKeysType = Shapes::StringShape.new(name: 'TagKeysType')
@@ -548,6 +555,8 @@ module Aws::CognitoIdentityProvider
548
555
  UpdateIdentityProviderResponse = Shapes::StructureShape.new(name: 'UpdateIdentityProviderResponse')
549
556
  UpdateManagedLoginBrandingRequest = Shapes::StructureShape.new(name: 'UpdateManagedLoginBrandingRequest')
550
557
  UpdateManagedLoginBrandingResponse = Shapes::StructureShape.new(name: 'UpdateManagedLoginBrandingResponse')
558
+ UpdateProvisionedLimitRequest = Shapes::StructureShape.new(name: 'UpdateProvisionedLimitRequest')
559
+ UpdateProvisionedLimitResponse = Shapes::StructureShape.new(name: 'UpdateProvisionedLimitResponse')
551
560
  UpdateReplicaStatusType = Shapes::StringShape.new(name: 'UpdateReplicaStatusType')
552
561
  UpdateResourceServerRequest = Shapes::StructureShape.new(name: 'UpdateResourceServerRequest')
553
562
  UpdateResourceServerResponse = Shapes::StructureShape.new(name: 'UpdateResourceServerResponse')
@@ -1500,6 +1509,12 @@ module Aws::CognitoIdentityProvider
1500
1509
  GetLogDeliveryConfigurationResponse.add_member(:log_delivery_configuration, Shapes::ShapeRef.new(shape: LogDeliveryConfigurationType, location_name: "LogDeliveryConfiguration"))
1501
1510
  GetLogDeliveryConfigurationResponse.struct_class = Types::GetLogDeliveryConfigurationResponse
1502
1511
 
1512
+ GetProvisionedLimitRequest.add_member(:limit_definition, Shapes::ShapeRef.new(shape: LimitDefinitionType, required: true, location_name: "LimitDefinition"))
1513
+ GetProvisionedLimitRequest.struct_class = Types::GetProvisionedLimitRequest
1514
+
1515
+ GetProvisionedLimitResponse.add_member(:limit, Shapes::ShapeRef.new(shape: LimitType, required: true, location_name: "Limit"))
1516
+ GetProvisionedLimitResponse.struct_class = Types::GetProvisionedLimitResponse
1517
+
1503
1518
  GetSigningCertificateRequest.add_member(:user_pool_id, Shapes::ShapeRef.new(shape: UserPoolIdType, required: true, location_name: "UserPoolId"))
1504
1519
  GetSigningCertificateRequest.struct_class = Types::GetSigningCertificateRequest
1505
1520
 
@@ -1672,9 +1687,18 @@ module Aws::CognitoIdentityProvider
1672
1687
  LambdaConfigType.add_member(:inbound_federation, Shapes::ShapeRef.new(shape: InboundFederationLambdaType, location_name: "InboundFederation"))
1673
1688
  LambdaConfigType.struct_class = Types::LambdaConfigType
1674
1689
 
1690
+ LimitDefinitionType.add_member(:limit_class, Shapes::ShapeRef.new(shape: LimitClass, required: true, location_name: "LimitClass"))
1691
+ LimitDefinitionType.add_member(:attributes, Shapes::ShapeRef.new(shape: StringToStringMapType, required: true, location_name: "Attributes"))
1692
+ LimitDefinitionType.struct_class = Types::LimitDefinitionType
1693
+
1675
1694
  LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: MessageType, location_name: "message"))
1676
1695
  LimitExceededException.struct_class = Types::LimitExceededException
1677
1696
 
1697
+ LimitType.add_member(:limit_definition, Shapes::ShapeRef.new(shape: LimitDefinitionType, required: true, location_name: "LimitDefinition"))
1698
+ LimitType.add_member(:provisioned_limit_value, Shapes::ShapeRef.new(shape: IntegerType, required: true, location_name: "ProvisionedLimitValue"))
1699
+ LimitType.add_member(:free_limit_value, Shapes::ShapeRef.new(shape: IntegerType, required: true, location_name: "FreeLimitValue"))
1700
+ LimitType.struct_class = Types::LimitType
1701
+
1678
1702
  LinksType.key = Shapes::ShapeRef.new(shape: LanguageIdType)
1679
1703
  LinksType.value = Shapes::ShapeRef.new(shape: LinkUrlType)
1680
1704
 
@@ -2017,6 +2041,9 @@ module Aws::CognitoIdentityProvider
2017
2041
 
2018
2042
  SearchedAttributeNamesListType.member = Shapes::ShapeRef.new(shape: AttributeNameType)
2019
2043
 
2044
+ ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: MessageType, location_name: "message"))
2045
+ ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
2046
+
2020
2047
  SetLogDeliveryConfigurationRequest.add_member(:user_pool_id, Shapes::ShapeRef.new(shape: UserPoolIdType, required: true, location_name: "UserPoolId"))
2021
2048
  SetLogDeliveryConfigurationRequest.add_member(:log_configurations, Shapes::ShapeRef.new(shape: LogConfigurationListType, required: true, location_name: "LogConfigurations"))
2022
2049
  SetLogDeliveryConfigurationRequest.struct_class = Types::SetLogDeliveryConfigurationRequest
@@ -2138,6 +2165,9 @@ module Aws::CognitoIdentityProvider
2138
2165
  StringAttributeConstraintsType.add_member(:max_length, Shapes::ShapeRef.new(shape: StringType, location_name: "MaxLength"))
2139
2166
  StringAttributeConstraintsType.struct_class = Types::StringAttributeConstraintsType
2140
2167
 
2168
+ StringToStringMapType.key = Shapes::ShapeRef.new(shape: StringType)
2169
+ StringToStringMapType.value = Shapes::ShapeRef.new(shape: StringType)
2170
+
2141
2171
  SupportedIdentityProvidersListType.member = Shapes::ShapeRef.new(shape: ProviderNameType)
2142
2172
 
2143
2173
  TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ArnType, required: true, location_name: "ResourceArn"))
@@ -2262,6 +2292,13 @@ module Aws::CognitoIdentityProvider
2262
2292
  UpdateManagedLoginBrandingResponse.add_member(:managed_login_branding, Shapes::ShapeRef.new(shape: ManagedLoginBrandingType, location_name: "ManagedLoginBranding"))
2263
2293
  UpdateManagedLoginBrandingResponse.struct_class = Types::UpdateManagedLoginBrandingResponse
2264
2294
 
2295
+ UpdateProvisionedLimitRequest.add_member(:limit_definition, Shapes::ShapeRef.new(shape: LimitDefinitionType, required: true, location_name: "LimitDefinition"))
2296
+ UpdateProvisionedLimitRequest.add_member(:requested_limit_value, Shapes::ShapeRef.new(shape: IntegerType, required: true, location_name: "RequestedLimitValue"))
2297
+ UpdateProvisionedLimitRequest.struct_class = Types::UpdateProvisionedLimitRequest
2298
+
2299
+ UpdateProvisionedLimitResponse.add_member(:limit, Shapes::ShapeRef.new(shape: LimitType, required: true, location_name: "Limit"))
2300
+ UpdateProvisionedLimitResponse.struct_class = Types::UpdateProvisionedLimitResponse
2301
+
2265
2302
  UpdateResourceServerRequest.add_member(:user_pool_id, Shapes::ShapeRef.new(shape: UserPoolIdType, required: true, location_name: "UserPoolId"))
2266
2303
  UpdateResourceServerRequest.add_member(:identifier, Shapes::ShapeRef.new(shape: ResourceServerIdentifierType, required: true, location_name: "Identifier"))
2267
2304
  UpdateResourceServerRequest.add_member(:name, Shapes::ShapeRef.new(shape: ResourceServerNameType, required: true, location_name: "Name"))
@@ -3892,6 +3929,19 @@ module Aws::CognitoIdentityProvider
3892
3929
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
3893
3930
  end)
3894
3931
 
3932
+ api.add_operation(:get_provisioned_limit, Seahorse::Model::Operation.new.tap do |o|
3933
+ o.name = "GetProvisionedLimit"
3934
+ o.http_method = "POST"
3935
+ o.http_request_uri = "/"
3936
+ o.input = Shapes::ShapeRef.new(shape: GetProvisionedLimitRequest)
3937
+ o.output = Shapes::ShapeRef.new(shape: GetProvisionedLimitResponse)
3938
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
3939
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
3940
+ o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
3941
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
3942
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
3943
+ end)
3944
+
3895
3945
  api.add_operation(:get_signing_certificate, Seahorse::Model::Operation.new.tap do |o|
3896
3946
  o.name = "GetSigningCertificate"
3897
3947
  o.http_method = "POST"
@@ -4680,6 +4730,20 @@ module Aws::CognitoIdentityProvider
4680
4730
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
4681
4731
  end)
4682
4732
 
4733
+ api.add_operation(:update_provisioned_limit, Seahorse::Model::Operation.new.tap do |o|
4734
+ o.name = "UpdateProvisionedLimit"
4735
+ o.http_method = "POST"
4736
+ o.http_request_uri = "/"
4737
+ o.input = Shapes::ShapeRef.new(shape: UpdateProvisionedLimitRequest)
4738
+ o.output = Shapes::ShapeRef.new(shape: UpdateProvisionedLimitResponse)
4739
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
4740
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
4741
+ o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
4742
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
4743
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
4744
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
4745
+ end)
4746
+
4683
4747
  api.add_operation(:update_resource_server, Seahorse::Model::Operation.new.tap do |o|
4684
4748
  o.name = "UpdateResourceServer"
4685
4749
  o.http_method = "POST"
@@ -60,6 +60,7 @@ module Aws::CognitoIdentityProvider
60
60
  # * {RefreshTokenReuseException}
61
61
  # * {ResourceNotFoundException}
62
62
  # * {ScopeDoesNotExistException}
63
+ # * {ServiceQuotaExceededException}
63
64
  # * {SoftwareTokenMFANotFoundException}
64
65
  # * {TermsExistsException}
65
66
  # * {TierChangeNotAllowedException}
@@ -592,6 +593,21 @@ module Aws::CognitoIdentityProvider
592
593
  end
593
594
  end
594
595
 
596
+ class ServiceQuotaExceededException < ServiceError
597
+
598
+ # @param [Seahorse::Client::RequestContext] context
599
+ # @param [String] message
600
+ # @param [Aws::CognitoIdentityProvider::Types::ServiceQuotaExceededException] data
601
+ def initialize(context, message, data = Aws::EmptyStructure.new)
602
+ super(context, message, data)
603
+ end
604
+
605
+ # @return [String]
606
+ def message
607
+ @message || @data[:message]
608
+ end
609
+ end
610
+
595
611
  class SoftwareTokenMFANotFoundException < ServiceError
596
612
 
597
613
  # @param [Seahorse::Client::RequestContext] context
@@ -6566,6 +6566,31 @@ module Aws::CognitoIdentityProvider
6566
6566
  include Aws::Structure
6567
6567
  end
6568
6568
 
6569
+ # @!attribute [rw] limit_definition
6570
+ # The limit to retrieve. Specify the limit class and the attributes
6571
+ # that identify the limit.
6572
+ # @return [Types::LimitDefinitionType]
6573
+ #
6574
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetProvisionedLimitRequest AWS API Documentation
6575
+ #
6576
+ class GetProvisionedLimitRequest < Struct.new(
6577
+ :limit_definition)
6578
+ SENSITIVE = []
6579
+ include Aws::Structure
6580
+ end
6581
+
6582
+ # @!attribute [rw] limit
6583
+ # The provisioned and default limit values for the requested limit.
6584
+ # @return [Types::LimitType]
6585
+ #
6586
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetProvisionedLimitResponse AWS API Documentation
6587
+ #
6588
+ class GetProvisionedLimitResponse < Struct.new(
6589
+ :limit)
6590
+ SENSITIVE = []
6591
+ include Aws::Structure
6592
+ end
6593
+
6569
6594
  # Request to get a signing certificate from Amazon Cognito.
6570
6595
  #
6571
6596
  # @!attribute [rw] user_pool_id
@@ -8081,6 +8106,28 @@ module Aws::CognitoIdentityProvider
8081
8106
  include Aws::Structure
8082
8107
  end
8083
8108
 
8109
+ # The class and attributes that identify a specific limit at the account
8110
+ # level.
8111
+ #
8112
+ # @!attribute [rw] limit_class
8113
+ # The class of the limit. For API rate limits, this is `API_CATEGORY`.
8114
+ # @return [String]
8115
+ #
8116
+ # @!attribute [rw] attributes
8117
+ # The attributes that identify the specific limit. For API rate
8118
+ # limits, specify the `Category` key with a value like
8119
+ # `UserAuthentication` or `UserCreation`.
8120
+ # @return [Hash<String,String>]
8121
+ #
8122
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/LimitDefinitionType AWS API Documentation
8123
+ #
8124
+ class LimitDefinitionType < Struct.new(
8125
+ :limit_class,
8126
+ :attributes)
8127
+ SENSITIVE = []
8128
+ include Aws::Structure
8129
+ end
8130
+
8084
8131
  # This exception is thrown when a user exceeds the limit for a requested
8085
8132
  # Amazon Web Services resource.
8086
8133
  #
@@ -8097,6 +8144,33 @@ module Aws::CognitoIdentityProvider
8097
8144
  include Aws::Structure
8098
8145
  end
8099
8146
 
8147
+ # The limit definition and current limit values for a provisioned limit.
8148
+ #
8149
+ # @!attribute [rw] limit_definition
8150
+ # The definition that identifies this limit, including the class and
8151
+ # attributes.
8152
+ # @return [Types::LimitDefinitionType]
8153
+ #
8154
+ # @!attribute [rw] provisioned_limit_value
8155
+ # The provisioned limit value, in requests per second (RPS). This is
8156
+ # the rate that Amazon Cognito currently enforces for your account.
8157
+ # @return [Integer]
8158
+ #
8159
+ # @!attribute [rw] free_limit_value
8160
+ # The default (free) limit value, in requests per second (RPS). This
8161
+ # is the rate included at no additional cost.
8162
+ # @return [Integer]
8163
+ #
8164
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/LimitType AWS API Documentation
8165
+ #
8166
+ class LimitType < Struct.new(
8167
+ :limit_definition,
8168
+ :provisioned_limit_value,
8169
+ :free_limit_value)
8170
+ SENSITIVE = []
8171
+ include Aws::Structure
8172
+ end
8173
+
8100
8174
  # Represents the request to list the devices.
8101
8175
  #
8102
8176
  # @!attribute [rw] access_token
@@ -10525,6 +10599,20 @@ module Aws::CognitoIdentityProvider
10525
10599
  include Aws::Structure
10526
10600
  end
10527
10601
 
10602
+ # The request exceeded your account's service quota. To increase your
10603
+ # limit, use or submit a Service Quotas increase request.
10604
+ #
10605
+ # @!attribute [rw] message
10606
+ # @return [String]
10607
+ #
10608
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ServiceQuotaExceededException AWS API Documentation
10609
+ #
10610
+ class ServiceQuotaExceededException < Struct.new(
10611
+ :message)
10612
+ SENSITIVE = []
10613
+ include Aws::Structure
10614
+ end
10615
+
10528
10616
  # @!attribute [rw] user_pool_id
10529
10617
  # The ID of the user pool where you want to configure logging.
10530
10618
  # @return [String]
@@ -12141,6 +12229,36 @@ module Aws::CognitoIdentityProvider
12141
12229
  include Aws::Structure
12142
12230
  end
12143
12231
 
12232
+ # @!attribute [rw] limit_definition
12233
+ # The limit to update. Specify the limit class and the attributes that
12234
+ # identify the limit.
12235
+ # @return [Types::LimitDefinitionType]
12236
+ #
12237
+ # @!attribute [rw] requested_limit_value
12238
+ # The provisioned rate to set, in requests per second (RPS).
12239
+ # @return [Integer]
12240
+ #
12241
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateProvisionedLimitRequest AWS API Documentation
12242
+ #
12243
+ class UpdateProvisionedLimitRequest < Struct.new(
12244
+ :limit_definition,
12245
+ :requested_limit_value)
12246
+ SENSITIVE = []
12247
+ include Aws::Structure
12248
+ end
12249
+
12250
+ # @!attribute [rw] limit
12251
+ # The updated provisioned and default limit values.
12252
+ # @return [Types::LimitType]
12253
+ #
12254
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateProvisionedLimitResponse AWS API Documentation
12255
+ #
12256
+ class UpdateProvisionedLimitResponse < Struct.new(
12257
+ :limit)
12258
+ SENSITIVE = []
12259
+ include Aws::Structure
12260
+ end
12261
+
12144
12262
  # @!attribute [rw] user_pool_id
12145
12263
  # The ID of the user pool that contains the resource server that you
12146
12264
  # want to update.
@@ -54,7 +54,7 @@ module Aws::CognitoIdentityProvider
54
54
  autoload :EndpointProvider, 'aws-sdk-cognitoidentityprovider/endpoint_provider'
55
55
  autoload :Endpoints, 'aws-sdk-cognitoidentityprovider/endpoints'
56
56
 
57
- GEM_VERSION = '1.145.0'
57
+ GEM_VERSION = '1.146.0'
58
58
 
59
59
  end
60
60
 
data/sig/client.rbs CHANGED
@@ -1111,6 +1111,19 @@ module Aws
1111
1111
  ) -> _GetLogDeliveryConfigurationResponseSuccess
1112
1112
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetLogDeliveryConfigurationResponseSuccess
1113
1113
 
1114
+ interface _GetProvisionedLimitResponseSuccess
1115
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetProvisionedLimitResponse]
1116
+ def limit: () -> Types::LimitType
1117
+ end
1118
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CognitoIdentityProvider/Client.html#get_provisioned_limit-instance_method
1119
+ def get_provisioned_limit: (
1120
+ limit_definition: {
1121
+ limit_class: ("API_CATEGORY"),
1122
+ attributes: Hash[::String, ::String]
1123
+ }
1124
+ ) -> _GetProvisionedLimitResponseSuccess
1125
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetProvisionedLimitResponseSuccess
1126
+
1114
1127
  interface _GetSigningCertificateResponseSuccess
1115
1128
  include ::Seahorse::Client::_ResponseSuccess[Types::GetSigningCertificateResponse]
1116
1129
  def certificate: () -> ::String
@@ -1800,6 +1813,20 @@ module Aws
1800
1813
  ) -> _UpdateManagedLoginBrandingResponseSuccess
1801
1814
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateManagedLoginBrandingResponseSuccess
1802
1815
 
1816
+ interface _UpdateProvisionedLimitResponseSuccess
1817
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateProvisionedLimitResponse]
1818
+ def limit: () -> Types::LimitType
1819
+ end
1820
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CognitoIdentityProvider/Client.html#update_provisioned_limit-instance_method
1821
+ def update_provisioned_limit: (
1822
+ limit_definition: {
1823
+ limit_class: ("API_CATEGORY"),
1824
+ attributes: Hash[::String, ::String]
1825
+ },
1826
+ requested_limit_value: ::Integer
1827
+ ) -> _UpdateProvisionedLimitResponseSuccess
1828
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateProvisionedLimitResponseSuccess
1829
+
1803
1830
  interface _UpdateResourceServerResponseSuccess
1804
1831
  include ::Seahorse::Client::_ResponseSuccess[Types::UpdateResourceServerResponse]
1805
1832
  def resource_server: () -> Types::ResourceServerType
data/sig/errors.rbs CHANGED
@@ -111,6 +111,9 @@ module Aws
111
111
  class ScopeDoesNotExistException < ::Aws::Errors::ServiceError
112
112
  def message: () -> ::String
113
113
  end
114
+ class ServiceQuotaExceededException < ::Aws::Errors::ServiceError
115
+ def message: () -> ::String
116
+ end
114
117
  class SoftwareTokenMFANotFoundException < ::Aws::Errors::ServiceError
115
118
  def message: () -> ::String
116
119
  end
data/sig/types.rbs CHANGED
@@ -1161,6 +1161,16 @@ module Aws::CognitoIdentityProvider
1161
1161
  SENSITIVE: []
1162
1162
  end
1163
1163
 
1164
+ class GetProvisionedLimitRequest
1165
+ attr_accessor limit_definition: Types::LimitDefinitionType
1166
+ SENSITIVE: []
1167
+ end
1168
+
1169
+ class GetProvisionedLimitResponse
1170
+ attr_accessor limit: Types::LimitType
1171
+ SENSITIVE: []
1172
+ end
1173
+
1164
1174
  class GetSigningCertificateRequest
1165
1175
  attr_accessor user_pool_id: ::String
1166
1176
  SENSITIVE: []
@@ -1398,11 +1408,24 @@ module Aws::CognitoIdentityProvider
1398
1408
  SENSITIVE: []
1399
1409
  end
1400
1410
 
1411
+ class LimitDefinitionType
1412
+ attr_accessor limit_class: ("API_CATEGORY")
1413
+ attr_accessor attributes: ::Hash[::String, ::String]
1414
+ SENSITIVE: []
1415
+ end
1416
+
1401
1417
  class LimitExceededException
1402
1418
  attr_accessor message: ::String
1403
1419
  SENSITIVE: []
1404
1420
  end
1405
1421
 
1422
+ class LimitType
1423
+ attr_accessor limit_definition: Types::LimitDefinitionType
1424
+ attr_accessor provisioned_limit_value: ::Integer
1425
+ attr_accessor free_limit_value: ::Integer
1426
+ SENSITIVE: []
1427
+ end
1428
+
1406
1429
  class ListDevicesRequest
1407
1430
  attr_accessor access_token: ::String
1408
1431
  attr_accessor limit: ::Integer
@@ -1846,6 +1869,11 @@ module Aws::CognitoIdentityProvider
1846
1869
  SENSITIVE: []
1847
1870
  end
1848
1871
 
1872
+ class ServiceQuotaExceededException
1873
+ attr_accessor message: ::String
1874
+ SENSITIVE: []
1875
+ end
1876
+
1849
1877
  class SetLogDeliveryConfigurationRequest
1850
1878
  attr_accessor user_pool_id: ::String
1851
1879
  attr_accessor log_configurations: ::Array[Types::LogConfigurationType]
@@ -2189,6 +2217,17 @@ module Aws::CognitoIdentityProvider
2189
2217
  SENSITIVE: []
2190
2218
  end
2191
2219
 
2220
+ class UpdateProvisionedLimitRequest
2221
+ attr_accessor limit_definition: Types::LimitDefinitionType
2222
+ attr_accessor requested_limit_value: ::Integer
2223
+ SENSITIVE: []
2224
+ end
2225
+
2226
+ class UpdateProvisionedLimitResponse
2227
+ attr_accessor limit: Types::LimitType
2228
+ SENSITIVE: []
2229
+ end
2230
+
2192
2231
  class UpdateResourceServerRequest
2193
2232
  attr_accessor user_pool_id: ::String
2194
2233
  attr_accessor identifier: ::String
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-cognitoidentityprovider
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.145.0
4
+ version: 1.146.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services