deleteGatewayResponse method

Future<void> deleteGatewayResponse({
  1. required GatewayResponseType responseType,
  2. required String restApiId,
})

Clears any customization of a GatewayResponse of a specified response type on the given RestApi and resets it with the default settings.

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

Parameter responseType : The response type of the associated GatewayResponse.

Parameter restApiId : The string identifier of the associated RestApi.

Implementation

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