AWS::DataSync::LocationNFSThe `AWS::DataSync::LocationNFS` resource specifies a Network File System (NFS) file server that AWS DataSync can use as a transfer source or destination.
import { CfnLocationNFS } from 'aws-cdk-lib/aws-datasync';Or use the module namespace:
import * as datasync from 'aws-cdk-lib/aws-datasync';
// datasync.CfnLocationNFSConfiguration passed to the constructor as CfnLocationNFSProps.
onPremConfigRequiredIResolvable | OnPremConfigPropertySpecifies 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) .
mountOptionsOptionalIResolvable | MountOptionsPropertySpecifies the options that DataSync can use to mount your NFS file server.
serverHostnameOptionalstringSpecifies the DNS name or IP address (IPv4 or IPv6) of the NFS file server that your DataSync agent connects to.
subdirectoryOptionalstringSpecifies 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) .
tagsOptionalCfnTag[]Specifies labels that help you categorize, filter, and search for your AWS resources. We recommend creating at least a name tag for your location.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-datasyncAWS::DataSync::LocationNFS