Interface ICfnLocationNFSProps
Properties for defining a CfnLocationNFS.
Namespace: Amazon.CDK.AWS.DataSync
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICfnLocationNFSProps
Syntax (vb)
Public Interface ICfnLocationNFSProps
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationnfs.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DataSync;
var cfnLocationNFSProps = new CfnLocationNFSProps {
OnPremConfig = new OnPremConfigProperty {
AgentArns = new [] { "agentArns" }
},
// the properties below are optional
MountOptions = new MountOptionsProperty {
Version = "version"
},
ServerHostname = "serverHostname",
Subdirectory = "subdirectory",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Properties
| MountOptions | Specifies the options that DataSync can use to mount your NFS file server. |
| OnPremConfig | Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect to your NFS file server. |
| ServerHostname | Specifies the DNS name or IP address (IPv4 or IPv6) of the NFS file server that your DataSync agent connects to. |
| Subdirectory | Specifies the export path in your NFS file server that you want DataSync to mount. |
| Tags | Specifies labels that help you categorize, filter, and search for your AWS resources. |
Properties
MountOptions
Specifies the options that DataSync can use to mount your NFS file server.
object? MountOptions { get; }
Property Value
Remarks
OnPremConfig
Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect to your NFS file server.
object OnPremConfig { get; }
Property Value
Remarks
You can specify more than one agent. For more information, see Using multiple DataSync agents .
Type union: either IResolvable or CfnLocationNFS.IOnPremConfigProperty
ServerHostname
Specifies the DNS name or IP address (IPv4 or IPv6) of the NFS file server that your DataSync agent connects to.
string? ServerHostname { get; }
Property Value
Remarks
Subdirectory
Specifies the export path in your NFS file server that you want DataSync to mount.
string? Subdirectory { get; }
Property Value
Remarks
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 .
Tags
Specifies labels that help you categorize, filter, and search for your AWS resources.
ICfnTag[]? Tags { get; }
Property Value
ICfnTag[]
Remarks
We recommend creating at least a name tag for your location.