deleteLink method

Future<DeleteLinkResponse> deleteLink({
  1. required String globalNetworkId,
  2. required String linkId,
})

Deletes an existing link. You must first disassociate the link from any devices and customer gateways.

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

Parameter globalNetworkId : The ID of the global network.

Parameter linkId : The ID of the link.

Implementation

Future<DeleteLinkResponse> deleteLink({
  required String globalNetworkId,
  required String linkId,
}) async {
  ArgumentError.checkNotNull(globalNetworkId, 'globalNetworkId');
  ArgumentError.checkNotNull(linkId, 'linkId');
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/global-networks/${Uri.encodeComponent(globalNetworkId)}/links/${Uri.encodeComponent(linkId)}',
    exceptionFnMap: _exceptionFns,
  );
  return DeleteLinkResponse.fromJson(response);
}