Class NfsLocation
Manages an NFS Location within AWS DataSync.
NOTE: The DataSync Agents must be available before creating this resource.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.DataSync.NfsLocation("example", new Aws.DataSync.NfsLocationArgs
{
OnPremConfig = new Aws.DataSync.Inputs.NfsLocationOnPremConfigArgs
{
AgentArns =
{
aws_datasync_agent.Example.Arn,
},
},
ServerHostname = "nfs.example.com",
Subdirectory = "/exported/path",
});
}
}
Inherited Members
Namespace: Pulumi.Aws.DataSync
Assembly: Pulumi.Aws.dll
Syntax
public class NfsLocation : CustomResource
Constructors
View SourceNfsLocation(String, NfsLocationArgs, CustomResourceOptions)
Create a NfsLocation resource with the given unique name, arguments, and options.
Declaration
public NfsLocation(string name, NfsLocationArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| NfsLocationArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceArn
Amazon Resource Name (ARN) of the DataSync Location.
Declaration
public Output<string> Arn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
OnPremConfig
Configuration block containing information for connecting to the NFS File System.
Declaration
public Output<NfsLocationOnPremConfig> OnPremConfig { get; }
Property Value
| Type | Description |
|---|---|
| Output<NfsLocationOnPremConfig> |
ServerHostname
Specifies the IP address or DNS name of the NFS server. The DataSync Agent(s) use this to mount the NFS server.
Declaration
public Output<string> ServerHostname { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Subdirectory
Subdirectory to perform actions as source or destination. Should be exported by the NFS server.
Declaration
public Output<string> Subdirectory { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Tags
Key-value pairs of resource tags to assign to the DataSync Location.
Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
Uri
Declaration
public Output<string> Uri { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, NfsLocationState, CustomResourceOptions)
Get an existing NfsLocation resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static NfsLocation Get(string name, Input<string> id, NfsLocationState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| NfsLocationState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| NfsLocation |