update_provisioned_limit
¶
update_provisioned_limit(
limit_definition: LimitDefinitionType,
requested_limit_value: IntegerType,
*,
config_overrides: Optional[CognitoIdentityProviderClientConfig] = None,
) -> UpdateProvisionedLimitResponse
Sets the provisioned limit for a specific API category. The value must be between the default limit and your account-level maximum limit in Service Quotas.
Managed login user pools don't support adjustments to the UserAuthentication or UserFederation categories. To increase these limits, submit a Service Quotas increase request.
Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.
Learn more
Parameters:
-
limit_definition(LimitDefinitionType) –The limit to update. Specify the limit class and the attributes that identify the limit.
-
requested_limit_value(IntegerType) –The provisioned rate to set, in requests per second (RPS).
Raises:
-
InternalErrorException–This exception is thrown when Amazon Cognito encounters an internal error.
-
InvalidParameterException–This exception is thrown when the Amazon Cognito service encounters an invalid parameter.
-
NotAuthorizedException–This exception is thrown when a user isn't authorized.
-
ResourceNotFoundException–This exception is thrown when the Amazon Cognito service can't find the requested resource.
-
ServiceQuotaExceededException–The request exceeded your account's service quota. To increase your limit, use or submit a Service Quotas increase request.
-
TooManyRequestsException–This exception is thrown when the user has made too many requests for a given operation.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Example update a provisioned limit The following example sets the provisioned limit for the UserAuthentication API category to 300 RPS.
>>> client.update_provisioned_limit(limit_definition={'LimitClass': 'API_CATEGORY', 'Attributes': {'Category': 'UserAuthentication'}}, requested_limit_value=300)
Source code in docs_src/capo_cognito_identity_provider/_services/cognito_identity_provider.py
11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 | |