:doc:`Comprehend <../../comprehend>` / Client / update_endpoint

***************
update_endpoint
***************



.. py:method:: Comprehend.Client.update_endpoint(**kwargs)

  

  Updates information about the specified endpoint. For information about endpoints, see `Managing endpoints <https://docs.aws.amazon.com/comprehend/latest/dg/manage-endpoints.html>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/UpdateEndpoint>`_  


  **Request Syntax**
  ::

    response = client.update_endpoint(
        EndpointArn='string',
        DesiredModelArn='string',
        DesiredInferenceUnits=123,
        DesiredDataAccessRoleArn='string',
        FlywheelArn='string'
    )
    
  :type EndpointArn: string
  :param EndpointArn: **[REQUIRED]** 

    The Amazon Resource Number (ARN) of the endpoint being updated.

    

  
  :type DesiredModelArn: string
  :param DesiredModelArn: 

    The ARN of the new model to use when updating an existing endpoint.

    

  
  :type DesiredInferenceUnits: integer
  :param DesiredInferenceUnits: 

    The desired number of inference units to be used by the model using this endpoint. Each inference unit represents of a throughput of 100 characters per second.

    

  
  :type DesiredDataAccessRoleArn: string
  :param DesiredDataAccessRoleArn: 

    Data access role ARN to use in case the new model is encrypted with a customer CMK.

    

  
  :type FlywheelArn: string
  :param FlywheelArn: 

    The Amazon Resource Number (ARN) of the flywheel

    

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

    
    ::

      {
          'DesiredModelArn': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **DesiredModelArn** *(string) --* 

        The Amazon Resource Number (ARN) of the new model.

        
  
  **Exceptions**
  
  *   :py:class:`Comprehend.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`Comprehend.Client.exceptions.TooManyRequestsException`

  
  *   :py:class:`Comprehend.Client.exceptions.ResourceInUseException`

  
  *   :py:class:`Comprehend.Client.exceptions.ResourceLimitExceededException`

  
  *   :py:class:`Comprehend.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`Comprehend.Client.exceptions.ResourceUnavailableException`

  
  *   :py:class:`Comprehend.Client.exceptions.InternalServerException`

  