update_provisioned_limit
async
¶
update_provisioned_limit(
limit_definition: LimitDefinitionType,
requested_limit_value: IntegerType,
*,
config_overrides: Optional[AsyncCognitoIdentityProviderClientConfig] = 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.
>>> await 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/async_cognito_identity_provider.py
10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 | |