deleteInboundConnection method

Future<DeleteInboundConnectionResponse> deleteInboundConnection({
  1. required String connectionId,
})

Allows the remote domain owner to delete an existing inbound cross-cluster connection.

May throw ResourceNotFoundException. May throw DisabledOperationException.

Parameter connectionId : The ID of the inbound connection to permanently delete.

Implementation

Future<DeleteInboundConnectionResponse> deleteInboundConnection({
  required String connectionId,
}) async {
  ArgumentError.checkNotNull(connectionId, 'connectionId');
  _s.validateStringLength(
    'connectionId',
    connectionId,
    10,
    256,
    isRequired: true,
  );
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/2021-01-01/opensearch/cc/inboundConnection/${Uri.encodeComponent(connectionId)}',
    exceptionFnMap: _exceptionFns,
  );
  return DeleteInboundConnectionResponse.fromJson(response);
}