DataSync / Client / update_location_efs

update_location_efs#

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.

See also: AWS API Documentation

Request Syntax

response = client.update_location_efs(
    LocationArn='string',
    Subdirectory='string',
    AccessPointArn='string',
    FileSystemAccessRoleArn='string',
    InTransitEncryption='NONE'|'TLS1_2'
)
Parameters:
  • LocationArn (string) –

    [REQUIRED]

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

  • Subdirectory (string) –

    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 if you provide one by using AccessPointArn). You can also include subdirectories using forward slashes (for example, /path/to/folder).

  • AccessPointArn (string) –

    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.

  • FileSystemAccessRoleArn (string) –

    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.

  • InTransitEncryption (string) –

    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.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • DataSync.Client.exceptions.InvalidRequestException

  • DataSync.Client.exceptions.InternalException