updateProvisionedLimit method
- required LimitDefinitionType limitDefinition,
- required int requestedLimitValue,
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.
Learn more
- Signing Amazon Web Services API Requests
- Using the Amazon Cognito user pools API and user pool endpoints
May throw InternalErrorException.
May throw InvalidParameterException.
May throw NotAuthorizedException.
May throw ResourceNotFoundException.
May throw ServiceQuotaExceededException.
May throw TooManyRequestsException.
Parameter limitDefinition :
The limit to update. Specify the limit class and the attributes that
identify the limit.
Parameter requestedLimitValue :
The provisioned rate to set, in requests per second (RPS).
Implementation
Future<UpdateProvisionedLimitResponse> updateProvisionedLimit({
required LimitDefinitionType limitDefinition,
required int requestedLimitValue,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSCognitoIdentityProviderService.UpdateProvisionedLimit'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'LimitDefinition': limitDefinition,
'RequestedLimitValue': requestedLimitValue,
},
);
return UpdateProvisionedLimitResponse.fromJson(jsonResponse.body);
}