OpenSearchService / Client / accept_inbound_connection

accept_inbound_connection#

OpenSearchService.Client.accept_inbound_connection(**kwargs)#

Allows the destination Amazon OpenSearch Service domain owner to accept an inbound cross-cluster search connection request. For more information, see Cross-cluster search for Amazon OpenSearch Service.

See also: AWS API Documentation

Request Syntax

response = client.accept_inbound_connection(
    ConnectionId='string'
)
Parameters:

ConnectionId (string) –

[REQUIRED]

The ID of the inbound connection to accept.

Return type:

dict

Returns:

Response Syntax

{
    'Connection': {
        'LocalDomainInfo': {
            'AWSDomainInformation': {
                'OwnerId': 'string',
                'DomainName': 'string',
                'Region': 'string'
            }
        },
        'RemoteDomainInfo': {
            'AWSDomainInformation': {
                'OwnerId': 'string',
                'DomainName': 'string',
                'Region': 'string'
            }
        },
        'ConnectionId': 'string',
        'ConnectionStatus': {
            'StatusCode': 'PENDING_ACCEPTANCE'|'APPROVED'|'PROVISIONING'|'ACTIVE'|'REJECTING'|'REJECTED'|'DELETING'|'DELETED',
            'Message': 'string'
        },
        'ConnectionMode': 'DIRECT'|'VPC_ENDPOINT'
    }
}

Response Structure

  • (dict) –

    Contains details about the accepted inbound connection.

    • Connection (dict) –

      Information about the accepted inbound connection.

      • LocalDomainInfo (dict) –

        Information about the source (local) domain.

        • AWSDomainInformation (dict) –

          Information about an Amazon OpenSearch Service domain.

          • OwnerId (string) –

            The Amazon Web Services account ID of the domain owner.

          • DomainName (string) –

            Name of the domain.

          • Region (string) –

            The Amazon Web Services Region in which the domain is located.

      • RemoteDomainInfo (dict) –

        Information about the destination (remote) domain.

        • AWSDomainInformation (dict) –

          Information about an Amazon OpenSearch Service domain.

          • OwnerId (string) –

            The Amazon Web Services account ID of the domain owner.

          • DomainName (string) –

            Name of the domain.

          • Region (string) –

            The Amazon Web Services Region in which the domain is located.

      • ConnectionId (string) –

        The unique identifier of the connection.

      • ConnectionStatus (dict) –

        The current status of the connection.

        • StatusCode (string) –

          The status code for the connection. Can be one of the following:

          • PENDING_ACCEPTANCE - Inbound connection is not yet accepted by the remote domain owner.

          • APPROVED: Inbound connection is pending acceptance by the remote domain owner.

          • PROVISIONING: Inbound connection is being provisioned.

          • ACTIVE: Inbound connection is active and ready to use.

          • REJECTING: Inbound connection rejection is in process.

          • REJECTED: Inbound connection is rejected.

          • DELETING: Inbound connection deletion is in progress.

          • DELETED: Inbound connection is deleted and can no longer be used.

        • Message (string) –

          Information about the connection.

      • ConnectionMode (string) –

        The connection mode.

Exceptions

  • OpenSearchService.Client.exceptions.ResourceNotFoundException

  • OpenSearchService.Client.exceptions.LimitExceededException

  • OpenSearchService.Client.exceptions.DisabledOperationException