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

*******************
update_location_efs
*******************



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

  

  Modifies the following configuration parameters of the Amazon EFS transfer location that you're using with DataSync.

   

  For more information, see `Configuring DataSync transfers with Amazon EFS <https://docs.aws.amazon.com/datasync/latest/userguide/create-efs-location.html>`__.

  

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


  **Request Syntax**
  ::

    response = client.update_location_efs(
        LocationArn='string',
        Subdirectory='string',
        AccessPointArn='string',
        FileSystemAccessRoleArn='string',
        InTransitEncryption='NONE'|'TLS1_2'
    )
    
  :type LocationArn: string
  :param LocationArn: **[REQUIRED]** 

    Specifies the Amazon Resource Name (ARN) of the Amazon EFS transfer location that you're updating.

    

  
  :type Subdirectory: string
  :param Subdirectory: 

    Specifies a mount path for your Amazon EFS file system. This is where DataSync reads or writes data on your file system (depending on if this is a source or destination location).

     

    By default, DataSync uses the root directory (or `access point <https://docs.aws.amazon.com/efs/latest/ug/efs-access-points.html>`__ if you provide one by using ``AccessPointArn``). You can also include subdirectories using forward slashes (for example, ``/path/to/folder``).

    

  
  :type AccessPointArn: string
  :param AccessPointArn: 

    Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to mount your Amazon EFS file system.

     

    For more information, see `Accessing restricted Amazon EFS file systems <https://docs.aws.amazon.com/datasync/latest/userguide/create-efs-location.html#create-efs-location-iam>`__.

    

  
  :type FileSystemAccessRoleArn: string
  :param FileSystemAccessRoleArn: 

    Specifies an Identity and Access Management (IAM) role that allows DataSync to access your Amazon EFS file system.

     

    For information on creating this role, see `Creating a DataSync IAM role for Amazon EFS file system access <https://docs.aws.amazon.com/datasync/latest/userguide/create-efs-location.html#create-efs-location-iam-role>`__.

    

  
  :type InTransitEncryption: string
  :param InTransitEncryption: 

    Specifies whether you want DataSync to use Transport Layer Security (TLS) 1.2 encryption when it transfers data to or from your Amazon EFS file system.

     

    If you specify an access point using ``AccessPointArn`` or an IAM role using ``FileSystemAccessRoleArn``, you must set this parameter to ``TLS1_2``.

    

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

    
    ::

      {}
      
    **Response Structure**

    

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

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

  