getRequestValidator method

Future<RequestValidator> getRequestValidator({
  1. required String requestValidatorId,
  2. required String restApiId,
})

Gets a RequestValidator of a given RestApi.

May throw BadRequestException. May throw NotFoundException. May throw TooManyRequestsException. May throw UnauthorizedException.

Parameter requestValidatorId : The identifier of the RequestValidator to be retrieved.

Parameter restApiId : The string identifier of the associated RestApi.

Implementation

Future<RequestValidator> getRequestValidator({
  required String requestValidatorId,
  required String restApiId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/restapis/${Uri.encodeComponent(restApiId)}/requestvalidators/${Uri.encodeComponent(requestValidatorId)}',
    exceptionFnMap: _exceptionFns,
  );
  return RequestValidator.fromJson(response);
}