getGatewayRateLimit method

Future<GetGatewayRateLimitResponse> getGatewayRateLimit({
  1. required String gatewayIdentifier,
  2. required String rateLimitId,
})

Retrieves information about a gateway rate limit.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter gatewayIdentifier : The unique identifier of the gateway.

Parameter rateLimitId : The unique identifier of the rate limit to retrieve.

Implementation

Future<GetGatewayRateLimitResponse> getGatewayRateLimit({
  required String gatewayIdentifier,
  required String rateLimitId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/gateways/${Uri.encodeComponent(gatewayIdentifier)}/rate-limits/${Uri.encodeComponent(rateLimitId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetGatewayRateLimitResponse.fromJson(response);
}