:doc:`OpenSearchService <../../opensearch>` / Client / accept_inbound_connection

*************************
accept_inbound_connection
*************************



.. py:method:: 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 <https://docs.aws.amazon.com/opensearch-service/latest/developerguide/cross-cluster-search.html>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/AcceptInboundConnection>`_  


  **Request Syntax**
  ::

    response = client.accept_inbound_connection(
        ConnectionId='string'
    )
    
  :type ConnectionId: string
  :param ConnectionId: **[REQUIRED]** 

    The ID of the inbound connection to accept.

    

  
  
  :rtype: 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**
  
  *   :py:class:`OpenSearchService.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`OpenSearchService.Client.exceptions.LimitExceededException`

  
  *   :py:class:`OpenSearchService.Client.exceptions.DisabledOperationException`

  