update_location_efs
¶
update_location_efs(
location_arn: LocationArn,
*,
config_overrides: Optional[DataSyncClientConfig] = 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/data_sync.py
3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 | |