create_location_fsx_lustre
¶
create_location_fsx_lustre(
fsx_filesystem_arn: FsxFilesystemArn,
security_group_arns: Ec2SecurityGroupArnList,
*,
config_overrides: Optional[DataSyncClientConfig] = None,
subdirectory: Optional[FsxLustreSubdirectory] = None,
tags: Optional[InputTagList] = None,
) -> CreateLocationFsxLustreResponse
Creates a transfer location for an Amazon FSx for Lustre 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 FSx for Lustre file systems.
Parameters:
-
fsx_filesystem_arn(FsxFilesystemArn) –Specifies the Amazon Resource Name (ARN) of the FSx for Lustre file system.
-
security_group_arns(Ec2SecurityGroupArnList) –Specifies the Amazon Resource Names (ARNs) of up to five security groups that provide access to your FSx for Lustre file system.
The security groups must be able to access the file system's ports. The file system must also allow access from the security groups. For information about file system access, see the Amazon FSx for Lustre User Guide .
-
subdirectory(Optional[FsxLustreSubdirectory], default:None) –Specifies a mount path for your FSx for Lustre file system. The path can include subdirectories.
When the location is used as a source, DataSync reads data from the mount path. When the location is used as a destination, DataSync writes data to the mount path. If you don't include this parameter, DataSync uses the file system's root directory (
/). -
tags(Optional[InputTagList], default:None) –Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your location.
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.