getProvisionedLimit method

Future<GetProvisionedLimitResponse> getProvisionedLimit({
  1. required LimitDefinitionType limitDefinition,
})

Returns the current provisioned limit for a specific API category.

Learn more

May throw InternalErrorException. May throw InvalidParameterException. May throw NotAuthorizedException. May throw ResourceNotFoundException. May throw TooManyRequestsException.

Parameter limitDefinition : The limit to retrieve. Specify the limit class and the attributes that identify the limit.

Implementation

Future<GetProvisionedLimitResponse> getProvisionedLimit({
  required LimitDefinitionType limitDefinition,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSCognitoIdentityProviderService.GetProvisionedLimit'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'LimitDefinition': limitDefinition,
    },
  );

  return GetProvisionedLimitResponse.fromJson(jsonResponse.body);
}