:doc:`DataSync <../../datasync>` / Client / update_agent

************
update_agent
************



.. py:method:: DataSync.Client.update_agent(**kwargs)

  

  Updates the name of an DataSync agent.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/UpdateAgent>`_  


  **Request Syntax**
  ::

    response = client.update_agent(
        AgentArn='string',
        Name='string'
    )
    
  :type AgentArn: string
  :param AgentArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the agent to update.

    

  
  :type Name: string
  :param Name: 

    The name that you want to use to configure the agent.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`DataSync.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`DataSync.Client.exceptions.InternalException`

  