getUsageLimit method
Returns information about a usage limit.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter usageLimitId :
The unique identifier of the usage limit to return information for.
Implementation
Future<GetUsageLimitResponse> getUsageLimit({
required String usageLimitId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'RedshiftServerless.GetUsageLimit'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'usageLimitId': usageLimitId,
},
);
return GetUsageLimitResponse.fromJson(jsonResponse.body);
}