deleteGateway method

Future<DeleteGatewayResponse> deleteGateway({
  1. required String gatewayIdentifier,
})

Deletes a gateway.

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

Parameter gatewayIdentifier : The identifier of the gateway to delete.

Implementation

Future<DeleteGatewayResponse> deleteGateway({
  required String gatewayIdentifier,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/gateways/${Uri.encodeComponent(gatewayIdentifier)}/',
    exceptionFnMap: _exceptionFns,
  );
  return DeleteGatewayResponse.fromJson(response);
}