deleteRequestValidator method

Future<void> deleteRequestValidator({
  1. required String requestValidatorId,
  2. required String restApiId,
})

Deletes a RequestValidator of a given RestApi.

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

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

Parameter restApiId : The string identifier of the associated RestApi.

Implementation

Future<void> deleteRequestValidator({
  required String requestValidatorId,
  required String restApiId,
}) async {
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/restapis/${Uri.encodeComponent(restApiId)}/requestvalidators/${Uri.encodeComponent(requestValidatorId)}',
    exceptionFnMap: _exceptionFns,
  );
}