Skip to main content

location_nfs

Creates, updates, deletes or gets a location_nf resource or lists location_nfs in a region

Overview

Namelocation_nfs
TypeResource
DescriptionResource schema for AWS::DataSync::LocationNFS
Idawscc.datasync.location_nfs

Fields

NameDatatypeDescription
mount_optionsobjectThe mount options used by DataSync to access the SMB server.
on_prem_configobjectContains a list of Amazon Resource Names (ARNs) of agents that are used to connect an NFS server.
server_hostnamestringThe name of the NFS server. This value is the IP address or DNS name of the NFS server.
subdirectorystringThe subdirectory in the NFS file system that is used to read data from the NFS source location or write data to the NFS destination.
tagsarrayAn array of key-value pairs to apply to this resource.
location_arnstringThe Amazon Resource Name (ARN) of the NFS location.
location_uristringThe URL of the NFS location that was described.
regionstringAWS region.

For more information, see AWS::DataSync::LocationNFS.

Methods

NameResourceAccessible byRequired Params
create_resourcelocation_nfsINSERTOnPremConfig, region
delete_resourcelocation_nfsDELETEIdentifier, region
update_resourcelocation_nfsUPDATEIdentifier, PatchDocument, region
list_resourceslocation_nfs_list_onlySELECTregion
get_resourcelocation_nfsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual location_nf.

SELECT
region,
mount_options,
on_prem_config,
server_hostname,
subdirectory,
tags,
location_arn,
location_uri
FROM awscc.datasync.location_nfs
WHERE
region = 'us-east-1' AND
Identifier = '{{ location_arn }}';

INSERT example

Use the following StackQL query and manifest file to create a new location_nf resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.datasync.location_nfs (
OnPremConfig,
region
)
SELECT
'{{ on_prem_config }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a location_nf resource, using stack-deploy.

/*+ update */
UPDATE awscc.datasync.location_nfs
SET PatchDocument = string('{{ {
"MountOptions": mount_options,
"OnPremConfig": on_prem_config,
"ServerHostname": server_hostname,
"Subdirectory": subdirectory,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ location_arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.datasync.location_nfs
WHERE
Identifier = '{{ location_arn }}' AND
region = 'us-east-1';

Permissions

To operate on the location_nfs resource, the following permissions are required:

datasync:CreateLocationNfs,
datasync:DescribeLocationNfs,
datasync:ListTagsForResource,
datasync:TagResource