AWS Native

Pulumi Official
Package maintained by Pulumi
v0.19.0 published on Wednesday, Jun 8, 2022 by Pulumi

LocationNFS

Resource schema for AWS::DataSync::LocationNFS

Example Usage

Example

using Pulumi;
using AwsNative = Pulumi.AwsNative;

class MyStack : Stack
{
    public MyStack()
    {
        var locationNFS = new AwsNative.DataSync.LocationNFS("locationNFS", new AwsNative.DataSync.LocationNFSArgs
        {
            MountOptions = new AwsNative.DataSync.Inputs.LocationNFSMountOptionsArgs
            {
                Version = AwsNative.DataSync.LocationNFSMountOptionsVersion.Nfs40,
            },
            OnPremConfig = new AwsNative.DataSync.Inputs.LocationNFSOnPremConfigArgs
            {
                AgentArns = 
                {
                    "arn:aws:datasync:us-east-2:111222333444:agent/agent-0b0addbeef44b3nfs",
                },
            },
            ServerHostname = "MyServer@example.com",
            Subdirectory = "/MySubdirectory",
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/datasync"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := datasync.NewLocationNFS(ctx, "locationNFS", &datasync.LocationNFSArgs{
			MountOptions: &datasync.LocationNFSMountOptionsArgs{
				Version: datasync.LocationNFSMountOptionsVersionNfs40,
			},
			OnPremConfig: &datasync.LocationNFSOnPremConfigArgs{
				AgentArns: pulumi.StringArray{
					pulumi.String("arn:aws:datasync:us-east-2:111222333444:agent/agent-0b0addbeef44b3nfs"),
				},
			},
			ServerHostname: pulumi.String("MyServer@example.com"),
			Subdirectory:   pulumi.String("/MySubdirectory"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_aws_native as aws_native

location_nfs = aws_native.datasync.LocationNFS("locationNFS",
    mount_options=aws_native.datasync.LocationNFSMountOptionsArgs(
        version=aws_native.datasync.LocationNFSMountOptionsVersion.NFS40,
    ),
    on_prem_config=aws_native.datasync.LocationNFSOnPremConfigArgs(
        agent_arns=["arn:aws:datasync:us-east-2:111222333444:agent/agent-0b0addbeef44b3nfs"],
    ),
    server_hostname="MyServer@example.com",
    subdirectory="/MySubdirectory")
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";

const locationNFS = new aws_native.datasync.LocationNFS("locationNFS", {
    mountOptions: {
        version: aws_native.datasync.LocationNFSMountOptionsVersion.Nfs40,
    },
    onPremConfig: {
        agentArns: ["arn:aws:datasync:us-east-2:111222333444:agent/agent-0b0addbeef44b3nfs"],
    },
    serverHostname: "MyServer@example.com",
    subdirectory: "/MySubdirectory",
});

Coming soon!

Create a LocationNFS Resource

new LocationNFS(name: string, args: LocationNFSArgs, opts?: CustomResourceOptions);
@overload
def LocationNFS(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                mount_options: Optional[LocationNFSMountOptionsArgs] = None,
                on_prem_config: Optional[LocationNFSOnPremConfigArgs] = None,
                server_hostname: Optional[str] = None,
                subdirectory: Optional[str] = None,
                tags: Optional[Sequence[LocationNFSTagArgs]] = None)
@overload
def LocationNFS(resource_name: str,
                args: LocationNFSArgs,
                opts: Optional[ResourceOptions] = None)
func NewLocationNFS(ctx *Context, name string, args LocationNFSArgs, opts ...ResourceOption) (*LocationNFS, error)
public LocationNFS(string name, LocationNFSArgs args, CustomResourceOptions? opts = null)
public LocationNFS(String name, LocationNFSArgs args)
public LocationNFS(String name, LocationNFSArgs args, CustomResourceOptions options)
type: aws-native:datasync:LocationNFS
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args LocationNFSArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args LocationNFSArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args LocationNFSArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args LocationNFSArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args LocationNFSArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

LocationNFS Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The LocationNFS resource accepts the following input properties:

OnPremConfig Pulumi.AwsNative.DataSync.Inputs.LocationNFSOnPremConfigArgs
ServerHostname string

The name of the NFS server. This value is the IP address or DNS name of the NFS server.

Subdirectory string

The subdirectory in the NFS file system that is used to read data from the NFS source location or write data to the NFS destination.

MountOptions Pulumi.AwsNative.DataSync.Inputs.LocationNFSMountOptionsArgs
Tags List<Pulumi.AwsNative.DataSync.Inputs.LocationNFSTagArgs>

An array of key-value pairs to apply to this resource.

OnPremConfig LocationNFSOnPremConfigArgs
ServerHostname string

The name of the NFS server. This value is the IP address or DNS name of the NFS server.

Subdirectory string

The subdirectory in the NFS file system that is used to read data from the NFS source location or write data to the NFS destination.

MountOptions LocationNFSMountOptionsArgs
Tags []LocationNFSTagArgs

An array of key-value pairs to apply to this resource.

onPremConfig LocationNFSOnPremConfigArgs
serverHostname String

The name of the NFS server. This value is the IP address or DNS name of the NFS server.

subdirectory String

The subdirectory in the NFS file system that is used to read data from the NFS source location or write data to the NFS destination.

mountOptions LocationNFSMountOptionsArgs
tags List<LocationNFSTagArgs>

An array of key-value pairs to apply to this resource.

onPremConfig LocationNFSOnPremConfigArgs
serverHostname string

The name of the NFS server. This value is the IP address or DNS name of the NFS server.

subdirectory string

The subdirectory in the NFS file system that is used to read data from the NFS source location or write data to the NFS destination.

mountOptions LocationNFSMountOptionsArgs
tags LocationNFSTagArgs[]

An array of key-value pairs to apply to this resource.

on_prem_config LocationNFSOnPremConfigArgs
server_hostname str

The name of the NFS server. This value is the IP address or DNS name of the NFS server.

subdirectory str

The subdirectory in the NFS file system that is used to read data from the NFS source location or write data to the NFS destination.

mount_options LocationNFSMountOptionsArgs
tags Sequence[LocationNFSTagArgs]

An array of key-value pairs to apply to this resource.

onPremConfig Property Map
serverHostname String

The name of the NFS server. This value is the IP address or DNS name of the NFS server.

subdirectory String

The subdirectory in the NFS file system that is used to read data from the NFS source location or write data to the NFS destination.

mountOptions Property Map
tags List<Property Map>

An array of key-value pairs to apply to this resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the LocationNFS resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

LocationArn string

The Amazon Resource Name (ARN) of the NFS location.

LocationUri string

The URL of the NFS location that was described.

Id string

The provider-assigned unique ID for this managed resource.

LocationArn string

The Amazon Resource Name (ARN) of the NFS location.

LocationUri string

The URL of the NFS location that was described.

id String

The provider-assigned unique ID for this managed resource.

locationArn String

The Amazon Resource Name (ARN) of the NFS location.

locationUri String

The URL of the NFS location that was described.

id string

The provider-assigned unique ID for this managed resource.

locationArn string

The Amazon Resource Name (ARN) of the NFS location.

locationUri string

The URL of the NFS location that was described.

id str

The provider-assigned unique ID for this managed resource.

location_arn str

The Amazon Resource Name (ARN) of the NFS location.

location_uri str

The URL of the NFS location that was described.

id String

The provider-assigned unique ID for this managed resource.

locationArn String

The Amazon Resource Name (ARN) of the NFS location.

locationUri String

The URL of the NFS location that was described.

Supporting Types

LocationNFSMountOptions

Version Pulumi.AwsNative.DataSync.LocationNFSMountOptionsVersion

The specific NFS version that you want DataSync to use to mount your NFS share.

Version LocationNFSMountOptionsVersion

The specific NFS version that you want DataSync to use to mount your NFS share.

version LocationNFSMountOptionsVersion

The specific NFS version that you want DataSync to use to mount your NFS share.

version LocationNFSMountOptionsVersion

The specific NFS version that you want DataSync to use to mount your NFS share.

version LocationNFSMountOptionsVersion

The specific NFS version that you want DataSync to use to mount your NFS share.

version "AUTOMATIC" | "NFS3" | "NFS4_0" | "NFS4_1"

The specific NFS version that you want DataSync to use to mount your NFS share.

LocationNFSMountOptionsVersion

Automatic
AUTOMATIC
Nfs3
NFS3
Nfs40
NFS4_0
Nfs41
NFS4_1
LocationNFSMountOptionsVersionAutomatic
AUTOMATIC
LocationNFSMountOptionsVersionNfs3
NFS3
LocationNFSMountOptionsVersionNfs40
NFS4_0
LocationNFSMountOptionsVersionNfs41
NFS4_1
Automatic
AUTOMATIC
Nfs3
NFS3
Nfs40
NFS4_0
Nfs41
NFS4_1
Automatic
AUTOMATIC
Nfs3
NFS3
Nfs40
NFS4_0
Nfs41
NFS4_1
AUTOMATIC
AUTOMATIC
NFS3
NFS3
NFS40
NFS4_0
NFS41
NFS4_1
"AUTOMATIC"
AUTOMATIC
"NFS3"
NFS3
"NFS4_0"
NFS4_0
"NFS4_1"
NFS4_1

LocationNFSOnPremConfig

AgentArns List<string>

ARN(s) of the agent(s) to use for an NFS location.

AgentArns []string

ARN(s) of the agent(s) to use for an NFS location.

agentArns List<String>

ARN(s) of the agent(s) to use for an NFS location.

agentArns string[]

ARN(s) of the agent(s) to use for an NFS location.

agent_arns Sequence[str]

ARN(s) of the agent(s) to use for an NFS location.

agentArns List<String>

ARN(s) of the agent(s) to use for an NFS location.

LocationNFSTag

Key string

The key for an AWS resource tag.

Value string

The value for an AWS resource tag.

Key string

The key for an AWS resource tag.

Value string

The value for an AWS resource tag.

key String

The key for an AWS resource tag.

value String

The value for an AWS resource tag.

key string

The key for an AWS resource tag.

value string

The value for an AWS resource tag.

key str

The key for an AWS resource tag.

value str

The value for an AWS resource tag.

key String

The key for an AWS resource tag.

value String

The value for an AWS resource tag.

Package Details

Repository
https://github.com/pulumi/pulumi-aws-native
License
Apache-2.0