acceptInboundConnection method
Allows the remote domain owner to accept an inbound cross-cluster connection request.
May throw ResourceNotFoundException. May throw LimitExceededException. May throw DisabledOperationException.
Parameter connectionId
:
The ID of the inbound connection you want to accept.
Implementation
Future<AcceptInboundConnectionResponse> acceptInboundConnection({
required String connectionId,
}) async {
ArgumentError.checkNotNull(connectionId, 'connectionId');
_s.validateStringLength(
'connectionId',
connectionId,
10,
256,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'PUT',
requestUri:
'/2021-01-01/opensearch/cc/inboundConnection/${Uri.encodeComponent(connectionId)}/accept',
exceptionFnMap: _exceptionFns,
);
return AcceptInboundConnectionResponse.fromJson(response);
}