:doc:`ECS <../../ecs>` / Client / discover_poll_endpoint

**********************
discover_poll_endpoint
**********************



.. py:method:: ECS.Client.discover_poll_endpoint(**kwargs)

  

  .. note::

    

    This action is only used by the Amazon ECS agent, and it is not intended for use outside of the agent.

    

   

  Returns an endpoint for the Amazon ECS agent to poll for updates.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DiscoverPollEndpoint>`_  


  **Request Syntax**
  ::

    response = client.discover_poll_endpoint(
        containerInstance='string',
        cluster='string'
    )
    
  :type containerInstance: string
  :param containerInstance: 

    The container instance ID or full ARN of the container instance. For more information about the ARN format, see `Amazon Resource Name (ARN) <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids>`__ in the *Amazon ECS Developer Guide*.

    

  
  :type cluster: string
  :param cluster: 

    The short name or full Amazon Resource Name (ARN) of the cluster that the container instance belongs to.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'endpoint': 'string',
          'telemetryEndpoint': 'string',
          'serviceConnectEndpoint': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **endpoint** *(string) --* 

        The endpoint for the Amazon ECS agent to poll.

        
      

      - **telemetryEndpoint** *(string) --* 

        The telemetry endpoint for the Amazon ECS agent.

        
      

      - **serviceConnectEndpoint** *(string) --* 

        The endpoint for the Amazon ECS agent to poll for Service Connect configuration. For more information, see `Service Connect <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html>`__ in the *Amazon Elastic Container Service Developer Guide*.

        
  
  **Exceptions**
  
  *   :py:class:`ECS.Client.exceptions.ServerException`

  
  *   :py:class:`ECS.Client.exceptions.ClientException`

  