deleteOutboundConnection method
Future<DeleteOutboundConnectionResponse>
deleteOutboundConnection({
- required String connectionId,
Allows the local domain owner to delete an existing outbound cross-cluster connection.
May throw ResourceNotFoundException. May throw DisabledOperationException.
Parameter connectionId
:
The ID of the outbound connection you want to permanently delete.
Implementation
Future<DeleteOutboundConnectionResponse> deleteOutboundConnection({
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/outboundConnection/${Uri.encodeComponent(connectionId)}',
exceptionFnMap: _exceptionFns,
);
return DeleteOutboundConnectionResponse.fromJson(response);
}