AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::DataSync::LocationNFS

CfnLocationNFS

The `AWS::DataSync::LocationNFS` resource specifies a Network File System (NFS) file server that AWS DataSync can use as a transfer source or destination.

Import

import { CfnLocationNFS } from 'aws-cdk-lib/aws-datasync';

Or use the module namespace:

import * as datasync from 'aws-cdk-lib/aws-datasync';
// datasync.CfnLocationNFS

Properties

Configuration passed to the constructor as CfnLocationNFSProps.

onPremConfigRequired
IResolvable | OnPremConfigProperty

Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect to your NFS file server. You can specify more than one agent. For more information, see [Using multiple DataSync agents](https://docs.aws.amazon.com/datasync/latest/userguide/do-i-need-datasync-agent.html#multiple-agents) .

mountOptionsOptional
IResolvable | MountOptionsProperty

Specifies the options that DataSync can use to mount your NFS file server.

serverHostnameOptional
string

Specifies the DNS name or IP address (IPv4 or IPv6) of the NFS file server that your DataSync agent connects to.

subdirectoryOptional
string

Specifies the export path in your NFS file server that you want DataSync to mount. This path (or a subdirectory of the path) is where DataSync transfers data to or from. For information on configuring an export for DataSync, see [Accessing NFS file servers](https://docs.aws.amazon.com/datasync/latest/userguide/create-nfs-location.html#accessing-nfs) .

tagsOptional
CfnTag[]

Specifies labels that help you categorize, filter, and search for your AWS resources. We recommend creating at least a name tag for your location.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter