Skip to main content

location_nfs

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

Overview

Namelocation_nfs
TypeResource
Idaws.datasync.location_nfs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
creation_timestring (date-time)The time when the NFS location was created.
location_arnstringThe ARN of the NFS location. (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 URI of the NFS location. (pattern: <code>^(efs|nfs|s3|smb|hdfs|fsx[a-z0-9-]+):​//[a-zA-Z0-9.:/-]+$</code>)
mount_optionsobjectSpecifies how DataSync can access a location using the NFS protocol.
on_prem_configobjectThe DataSync agents that can connect to your Network File System (NFS) file server.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_location_nfsselectregionProvides details about how an DataSync transfer location for a Network File System (NFS) file server is configured.
create_location_nfsinsertregion, Subdirectory, ServerHostname, OnPremConfigCreates a transfer location for a Network File System (NFS) file server. DataSync can use this location as a source or destination for transferring data. Before you begin, make sure that you understand how DataSync accesses NFS file servers.
update_location_nfsupdateregion, LocationArnModifies the following configuration parameters of the Network File System (NFS) transfer location that you're using with DataSync. For more information, see Configuring transfers with an NFS file server.

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 a Network File System (NFS) file server is configured.

SELECT
creation_time,
location_arn,
location_uri,
mount_options,
on_prem_config
FROM aws.datasync.location_nfs
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a transfer location for a Network File System (NFS) file server. DataSync can use this location as a source or destination for transferring data. Before you begin, make sure that you understand how DataSync accesses NFS file servers.

INSERT INTO aws.datasync.location_nfs (
Subdirectory,
ServerHostname,
OnPremConfig,
MountOptions,
Tags,
region
)
SELECT
'{{ Subdirectory }}' /* required */,
'{{ ServerHostname }}' /* required */,
'{{ OnPremConfig }}' /* required */,
'{{ MountOptions }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
location_arn
;

UPDATE examples

Modifies the following configuration parameters of the Network File System (NFS) transfer location that you're using with DataSync. For more information, see Configuring transfers with an NFS file server.

UPDATE aws.datasync.location_nfs
SET
LocationArn = '{{ LocationArn }}',
Subdirectory = '{{ Subdirectory }}',
ServerHostname = '{{ ServerHostname }}',
OnPremConfig = '{{ OnPremConfig }}',
MountOptions = '{{ MountOptions }}'
WHERE
region = '{{ region }}' --required
AND LocationArn = '{{ LocationArn }}' --required;