update_location_efs
async
¶
update_location_efs(
location_arn: LocationArn,
*,
config_overrides: Optional[AsyncDataSyncClientConfig] = None,
subdirectory: Optional[EfsSubdirectory] = None,
access_point_arn: Optional[UpdatedEfsAccessPointArn] = None,
file_system_access_role_arn: Optional[UpdatedEfsIamRoleArn] = None,
in_transit_encryption: Optional[EfsInTransitEncryption] = None,
) -> UpdateLocationEfsResponse
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.
Parameters:
-
location_arn(LocationArn) –Specifies the Amazon Resource Name (ARN) of the Amazon EFS transfer location that you're updating.
-
subdirectory(Optional[EfsSubdirectory], default:None) –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). -
access_point_arn(Optional[UpdatedEfsAccessPointArn], default:None) –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.
-
file_system_access_role_arn(Optional[UpdatedEfsIamRoleArn], default:None) –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.
-
in_transit_encryption(Optional[EfsInTransitEncryption], default:None) –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
AccessPointArnor an IAM role usingFileSystemAccessRoleArn, you must set this parameter toTLS1_2.
Raises:
-
InternalException–This exception is thrown when an error occurs in the DataSync service.
-
InvalidRequestException–This exception is thrown when the client submits a malformed request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_datasync/_services/async_data_sync.py
3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 | |