deleteLink method
Deletes a link between gateways.
Permanently removes the connection between gateways. This action cannot be undone.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter gatewayId :
The unique identifier of the gateway.
Parameter linkId :
The unique identifier of the link.
Implementation
Future<DeleteLinkResponse> deleteLink({
required String gatewayId,
required String linkId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/gateway/${Uri.encodeComponent(gatewayId)}/link/${Uri.encodeComponent(linkId)}',
exceptionFnMap: _exceptionFns,
);
return DeleteLinkResponse.fromJson(response);
}