rejectInboundConnection method

Future<RejectInboundConnectionResponse> rejectInboundConnection({
  1. required String connectionId,
})

Allows the remote domain owner to reject an inbound cross-cluster connection request.

May throw ResourceNotFoundException. May throw DisabledOperationException.

Parameter connectionId : The ID of the inbound connection to reject.

Implementation

Future<RejectInboundConnectionResponse> rejectInboundConnection({
  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)}/reject',
    exceptionFnMap: _exceptionFns,
  );
  return RejectInboundConnectionResponse.fromJson(response);
}