getLimit method
Gets information about a specific limit.
May throw AccessDeniedException.
May throw InternalServerErrorException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter farmId :
The unique identifier of the farm that contains the limit.
Parameter limitId :
The unique identifier of the limit to return.
Implementation
Future<GetLimitResponse> getLimit({
required String farmId,
required String limitId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/2023-10-12/farms/${Uri.encodeComponent(farmId)}/limits/${Uri.encodeComponent(limitId)}',
exceptionFnMap: _exceptionFns,
);
return GetLimitResponse.fromJson(response);
}