Skip to main content

location_fsx_open_zfs

Creates, updates, deletes, gets or lists a location_fsx_open_zfs resource.

Overview

Namelocation_fsx_open_zfs
TypeResource
Idaws.datasync.location_fsx_open_zfs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
creation_timestring (date-time)The time that the FSx for OpenZFS location was created.
location_arnstringThe ARN of the FSx for OpenZFS location that was described. (pattern: <code>^arn:(aws|aws-cn|aws-us-gov|aws-eusc|aws-iso|aws-iso-b):datasync:[a-z-0-9]+:[0-9]{12}:location/loc-[0-9a-z]{17}$</code>)
location_uristringThe uniform resource identifier (URI) of the FSx for OpenZFS location that was described. Example: fsxz:​//us-west-2.fs-1234567890abcdef02/fsx/folderA/folder (pattern: <code>^(efs|nfs|s3|smb|hdfs|fsx[a-z0-9-]+):​//[a-zA-Z0-9.:/-]+$</code>)
protocolobjectSpecifies the data transfer protocol that DataSync uses to access your Amazon FSx file system.
security_group_arnsarrayThe ARNs of the security groups that are configured for the FSx for OpenZFS file system.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_location_fsx_open_zfsselectregionProvides details about how an DataSync transfer location for an Amazon FSx for OpenZFS file system is configured. Response elements related to SMB aren't supported with the DescribeLocationFsxOpenZfs operation.
create_location_fsx_open_zfsinsertregion, FsxFilesystemArn, SecurityGroupArnsCreates a transfer location for an Amazon FSx for OpenZFS 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 OpenZFS file systems. Request parameters related to SMB aren't supported with the CreateLocationFsxOpenZfs operation.
update_location_fsx_open_zfsupdateregion, LocationArnModifies the following configuration parameters of the Amazon FSx for OpenZFS transfer location that you're using with DataSync. For more information, see Configuring DataSync transfers with FSx for OpenZFS. Request parameters related to SMB aren't supported with the UpdateLocationFsxOpenZfs operation.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Provides details about how an DataSync transfer location for an Amazon FSx for OpenZFS file system is configured. Response elements related to SMB aren't supported with the DescribeLocationFsxOpenZfs operation.

SELECT
creation_time,
location_arn,
location_uri,
protocol,
security_group_arns
FROM aws.datasync.location_fsx_open_zfs
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a transfer location for an Amazon FSx for OpenZFS 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 OpenZFS file systems. Request parameters related to SMB aren't supported with the CreateLocationFsxOpenZfs operation.

INSERT INTO aws.datasync.location_fsx_open_zfs (
FsxFilesystemArn,
Protocol,
SecurityGroupArns,
Subdirectory,
Tags,
region
)
SELECT
'{{ FsxFilesystemArn }}' /* required */,
'{{ Protocol }}',
'{{ SecurityGroupArns }}' /* required */,
'{{ Subdirectory }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
location_arn
;

UPDATE examples

Modifies the following configuration parameters of the Amazon FSx for OpenZFS transfer location that you're using with DataSync. For more information, see Configuring DataSync transfers with FSx for OpenZFS. Request parameters related to SMB aren't supported with the UpdateLocationFsxOpenZfs operation.

UPDATE aws.datasync.location_fsx_open_zfs
SET
LocationArn = '{{ LocationArn }}',
Protocol = '{{ Protocol }}',
Subdirectory = '{{ Subdirectory }}'
WHERE
region = '{{ region }}' --required
AND LocationArn = '{{ LocationArn }}' --required;