deleteConnection method

Future<DeleteConnectionResponse> deleteConnection({
  1. required String connectionId,
  2. required String globalNetworkId,
})

Deletes the specified connection in your global network.

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

Parameter connectionId : The ID of the connection.

Parameter globalNetworkId : The ID of the global network.

Implementation

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