interface CfnLocationNFSProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.DataSync.CfnLocationNFSProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsdatasync#CfnLocationNFSProps |
![]() | software.amazon.awscdk.services.datasync.CfnLocationNFSProps |
![]() | aws_cdk.aws_datasync.CfnLocationNFSProps |
![]() | aws-cdk-lib » aws_datasync » CfnLocationNFSProps |
Properties for defining a CfnLocationNFS
.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_datasync as datasync } from 'aws-cdk-lib';
const cfnLocationNFSProps: datasync.CfnLocationNFSProps = {
onPremConfig: {
agentArns: ['agentArns'],
},
// the properties below are optional
mountOptions: {
version: 'version',
},
serverHostname: 'serverHostname',
subdirectory: 'subdirectory',
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
Name | Type | Description |
---|---|---|
on | IResolvable | On | Specifies the Amazon Resource Names (ARNs) of agents that DataSync uses to connect to your NFS file server. |
mount | IResolvable | Mount | Specifies the mount options that DataSync can use to mount your NFS share. |
server | string | Specifies the IP address or domain name of your NFS file server. |
subdirectory? | string | Specifies the subdirectory in the NFS file server that DataSync transfers to or from. |
tags? | Cfn [] | Specifies labels that help you categorize, filter, and search for your AWS resources. |
onPremConfig
Type:
IResolvable
|
On
Specifies the Amazon Resource Names (ARNs) of agents that DataSync uses to connect to your NFS file server.
If you are copying data to or from your AWS Snowcone device, see NFS Server on AWS Snowcone for more information.
mountOptions?
Type:
IResolvable
|
Mount
(optional)
Specifies the mount options that DataSync can use to mount your NFS share.
serverHostname?
Type:
string
(optional)
Specifies the IP address or domain name of your NFS file server.
An agent that is installed on-premises uses this hostname to mount the NFS server in a network.
If you are copying data to or from your AWS Snowcone device, see NFS Server on AWS Snowcone for more information.
You must specify be an IP version 4 address or Domain Name System (DNS)-compliant name.
subdirectory?
Type:
string
(optional)
Specifies the subdirectory in the NFS file server that DataSync transfers to or from.
The NFS path should be a path that's exported by the NFS server, or a subdirectory of that path. The path should be such that it can be mounted by other NFS clients in your network.
To see all the paths exported by your NFS server, run " showmount -e nfs-server-name
" from an NFS client that has access to your server. You can specify any directory that appears in the results, and any subdirectory of that directory. Ensure that the NFS export is accessible without Kerberos authentication.
To transfer all the data in the folder you specified, DataSync needs to have permissions to read all the data. To ensure this, either configure the NFS export with no_root_squash,
or ensure that the permissions for all of the files that you want DataSync allow read access for all users. Doing either enables the agent to read the files. For the agent to access directories, you must additionally enable all execute access.
If you are copying data to or from your AWS Snowcone device, see NFS Server on AWS Snowcone for more information.
tags?
Type:
Cfn
[]
(optional)
Specifies labels that help you categorize, filter, and search for your AWS resources.
We recommend creating at least a name tag for your location.