create_location_efs
async
¶
create_location_efs(
efs_filesystem_arn: EfsFilesystemArn,
ec2_config: Ec2Config,
*,
config_overrides: Optional[AsyncDataSyncClientConfig] = None,
subdirectory: Optional[EfsSubdirectory] = None,
tags: Optional[InputTagList] = None,
access_point_arn: Optional[EfsAccessPointArn] = None,
file_system_access_role_arn: Optional[IamRoleArn] = None,
in_transit_encryption: Optional[EfsInTransitEncryption] = None,
) -> CreateLocationEfsResponse
Creates a transfer location for an Amazon EFS file system. DataSync can use this location as a source or destination for transferring data.
Before you begin, make sure that you understand how DataSync accesses Amazon EFS file systems.
Parameters:
-
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). -
efs_filesystem_arn(EfsFilesystemArn) –Specifies the ARN for your Amazon EFS file system.
-
ec2_config(Ec2Config) –Specifies the subnet and security groups DataSync uses to connect to one of your Amazon EFS file system's mount targets.
-
tags(Optional[InputTagList], default:None) –Specifies the key-value pair that represents a tag that you want to add to the resource. The value can be an empty string. This value helps you manage, filter, and search for your resources. We recommend that you create a name tag for your location.
-
access_point_arn(Optional[EfsAccessPointArn], 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 file systems.
-
file_system_access_role_arn(Optional[IamRoleArn], 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 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
626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 | |