deleteGateway method
Deletes a gateway. Before you can delete a gateway, you must deregister its instances and delete its bridges.
May throw BadRequestException.
May throw ConflictException.
May throw ForbiddenException.
May throw InternalServerErrorException.
May throw NotFoundException.
May throw ServiceUnavailableException.
May throw TooManyRequestsException.
Parameter gatewayArn :
The Amazon Resource Name (ARN) of the gateway that you want to delete.
Implementation
Future<DeleteGatewayResponse> deleteGateway({
required String gatewayArn,
}) async {
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri: '/v1/gateways/${Uri.encodeComponent(gatewayArn)}',
exceptionFnMap: _exceptionFns,
);
return DeleteGatewayResponse.fromJson(response);
}