AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.10.0 published on Monday, Jul 11, 2022 by Pulumi

FsxOpenZfsFileSystem

Manages an AWS DataSync FSx OpenZfs Location.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new Aws.DataSync.FsxOpenZfsFileSystem("example", new Aws.DataSync.FsxOpenZfsFileSystemArgs
        {
            FsxFilesystemArn = aws_fsx_openzfs_file_system.Example.Arn,
            SecurityGroupArns = 
            {
                aws_security_group.Example.Arn,
            },
            Protocol = new Aws.DataSync.Inputs.FsxOpenZfsFileSystemProtocolArgs
            {
                Nfs = new Aws.DataSync.Inputs.FsxOpenZfsFileSystemProtocolNfsArgs
                {
                    MountOptions = new Aws.DataSync.Inputs.FsxOpenZfsFileSystemProtocolNfsMountOptionsArgs
                    {
                        Version = "AUTOMATIC",
                    },
                },
            },
        });
    }

}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := datasync.NewFsxOpenZfsFileSystem(ctx, "example", &datasync.FsxOpenZfsFileSystemArgs{
			FsxFilesystemArn: pulumi.Any(aws_fsx_openzfs_file_system.Example.Arn),
			SecurityGroupArns: pulumi.StringArray{
				pulumi.Any(aws_security_group.Example.Arn),
			},
			Protocol: &datasync.FsxOpenZfsFileSystemProtocolArgs{
				Nfs: &datasync.FsxOpenZfsFileSystemProtocolNfsArgs{
					MountOptions: &datasync.FsxOpenZfsFileSystemProtocolNfsMountOptionsArgs{
						Version: pulumi.String("AUTOMATIC"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new FsxOpenZfsFileSystem("example", FsxOpenZfsFileSystemArgs.builder()        
            .fsxFilesystemArn(aws_fsx_openzfs_file_system.example().arn())
            .securityGroupArns(aws_security_group.example().arn())
            .protocol(FsxOpenZfsFileSystemProtocolArgs.builder()
                .nfs(FsxOpenZfsFileSystemProtocolNfsArgs.builder()
                    .mountOptions(FsxOpenZfsFileSystemProtocolNfsMountOptionsArgs.builder()
                        .version("AUTOMATIC")
                        .build())
                    .build())
                .build())
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example = aws.datasync.FsxOpenZfsFileSystem("example",
    fsx_filesystem_arn=aws_fsx_openzfs_file_system["example"]["arn"],
    security_group_arns=[aws_security_group["example"]["arn"]],
    protocol=aws.datasync.FsxOpenZfsFileSystemProtocolArgs(
        nfs=aws.datasync.FsxOpenZfsFileSystemProtocolNfsArgs(
            mount_options=aws.datasync.FsxOpenZfsFileSystemProtocolNfsMountOptionsArgs(
                version="AUTOMATIC",
            ),
        ),
    ))
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.datasync.FsxOpenZfsFileSystem("example", {
    fsxFilesystemArn: aws_fsx_openzfs_file_system.example.arn,
    securityGroupArns: [aws_security_group.example.arn],
    protocol: {
        nfs: {
            mountOptions: {
                version: "AUTOMATIC",
            },
        },
    },
});
resources:
  example:
    type: aws:datasync:FsxOpenZfsFileSystem
    properties:
      fsxFilesystemArn: ${aws_fsx_openzfs_file_system.example.arn}
      securityGroupArns:
        - ${aws_security_group.example.arn}
      protocol:
        nfs:
          mountOptions:
            version: AUTOMATIC

Create a FsxOpenZfsFileSystem Resource

new FsxOpenZfsFileSystem(name: string, args: FsxOpenZfsFileSystemArgs, opts?: CustomResourceOptions);
@overload
def FsxOpenZfsFileSystem(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         fsx_filesystem_arn: Optional[str] = None,
                         protocol: Optional[FsxOpenZfsFileSystemProtocolArgs] = None,
                         security_group_arns: Optional[Sequence[str]] = None,
                         subdirectory: Optional[str] = None,
                         tags: Optional[Mapping[str, str]] = None)
@overload
def FsxOpenZfsFileSystem(resource_name: str,
                         args: FsxOpenZfsFileSystemArgs,
                         opts: Optional[ResourceOptions] = None)
func NewFsxOpenZfsFileSystem(ctx *Context, name string, args FsxOpenZfsFileSystemArgs, opts ...ResourceOption) (*FsxOpenZfsFileSystem, error)
public FsxOpenZfsFileSystem(string name, FsxOpenZfsFileSystemArgs args, CustomResourceOptions? opts = null)
public FsxOpenZfsFileSystem(String name, FsxOpenZfsFileSystemArgs args)
public FsxOpenZfsFileSystem(String name, FsxOpenZfsFileSystemArgs args, CustomResourceOptions options)
type: aws:datasync:FsxOpenZfsFileSystem
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args FsxOpenZfsFileSystemArgs
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 FsxOpenZfsFileSystemArgs
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 FsxOpenZfsFileSystemArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args FsxOpenZfsFileSystemArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args FsxOpenZfsFileSystemArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

FsxOpenZfsFileSystem 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 FsxOpenZfsFileSystem resource accepts the following input properties:

FsxFilesystemArn string

The Amazon Resource Name (ARN) for the FSx for OpenZfs file system.

Protocol FsxOpenZfsFileSystemProtocolArgs

The type of protocol that DataSync uses to access your file system. See below.

SecurityGroupArns List<string>

The Amazon Resource Names (ARNs) of the security groups that are to use to configure the FSx for openzfs file system.

Subdirectory string

Subdirectory to perform actions as source or destination. Must start with /fsx.

Tags Dictionary<string, string>

Key-value pairs of resource tags to assign to the DataSync Location. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

FsxFilesystemArn string

The Amazon Resource Name (ARN) for the FSx for OpenZfs file system.

Protocol FsxOpenZfsFileSystemProtocolArgs

The type of protocol that DataSync uses to access your file system. See below.

SecurityGroupArns []string

The Amazon Resource Names (ARNs) of the security groups that are to use to configure the FSx for openzfs file system.

Subdirectory string

Subdirectory to perform actions as source or destination. Must start with /fsx.

Tags map[string]string

Key-value pairs of resource tags to assign to the DataSync Location. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

fsxFilesystemArn String

The Amazon Resource Name (ARN) for the FSx for OpenZfs file system.

protocol FsxOpenZfsFileSystemProtocolArgs

The type of protocol that DataSync uses to access your file system. See below.

securityGroupArns List<String>

The Amazon Resource Names (ARNs) of the security groups that are to use to configure the FSx for openzfs file system.

subdirectory String

Subdirectory to perform actions as source or destination. Must start with /fsx.

tags Map<String,String>

Key-value pairs of resource tags to assign to the DataSync Location. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

fsxFilesystemArn string

The Amazon Resource Name (ARN) for the FSx for OpenZfs file system.

protocol FsxOpenZfsFileSystemProtocolArgs

The type of protocol that DataSync uses to access your file system. See below.

securityGroupArns string[]

The Amazon Resource Names (ARNs) of the security groups that are to use to configure the FSx for openzfs file system.

subdirectory string

Subdirectory to perform actions as source or destination. Must start with /fsx.

tags {[key: string]: string}

Key-value pairs of resource tags to assign to the DataSync Location. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

fsx_filesystem_arn str

The Amazon Resource Name (ARN) for the FSx for OpenZfs file system.

protocol FsxOpenZfsFileSystemProtocolArgs

The type of protocol that DataSync uses to access your file system. See below.

security_group_arns Sequence[str]

The Amazon Resource Names (ARNs) of the security groups that are to use to configure the FSx for openzfs file system.

subdirectory str

Subdirectory to perform actions as source or destination. Must start with /fsx.

tags Mapping[str, str]

Key-value pairs of resource tags to assign to the DataSync Location. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

fsxFilesystemArn String

The Amazon Resource Name (ARN) for the FSx for OpenZfs file system.

protocol Property Map

The type of protocol that DataSync uses to access your file system. See below.

securityGroupArns List<String>

The Amazon Resource Names (ARNs) of the security groups that are to use to configure the FSx for openzfs file system.

subdirectory String

Subdirectory to perform actions as source or destination. Must start with /fsx.

tags Map<String>

Key-value pairs of resource tags to assign to the DataSync Location. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Outputs

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

Arn string

Amazon Resource Name (ARN) of the DataSync Location.

CreationTime string

The time that the FSx for openzfs location was created.

Id string

The provider-assigned unique ID for this managed resource.

TagsAll Dictionary<string, string>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Uri string

The URL of the FSx for openzfs location that was described.

Arn string

Amazon Resource Name (ARN) of the DataSync Location.

CreationTime string

The time that the FSx for openzfs location was created.

Id string

The provider-assigned unique ID for this managed resource.

TagsAll map[string]string

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Uri string

The URL of the FSx for openzfs location that was described.

arn String

Amazon Resource Name (ARN) of the DataSync Location.

creationTime String

The time that the FSx for openzfs location was created.

id String

The provider-assigned unique ID for this managed resource.

tagsAll Map<String,String>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

uri String

The URL of the FSx for openzfs location that was described.

arn string

Amazon Resource Name (ARN) of the DataSync Location.

creationTime string

The time that the FSx for openzfs location was created.

id string

The provider-assigned unique ID for this managed resource.

tagsAll {[key: string]: string}

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

uri string

The URL of the FSx for openzfs location that was described.

arn str

Amazon Resource Name (ARN) of the DataSync Location.

creation_time str

The time that the FSx for openzfs location was created.

id str

The provider-assigned unique ID for this managed resource.

tags_all Mapping[str, str]

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

uri str

The URL of the FSx for openzfs location that was described.

arn String

Amazon Resource Name (ARN) of the DataSync Location.

creationTime String

The time that the FSx for openzfs location was created.

id String

The provider-assigned unique ID for this managed resource.

tagsAll Map<String>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

uri String

The URL of the FSx for openzfs location that was described.

Look up an Existing FsxOpenZfsFileSystem Resource

Get an existing FsxOpenZfsFileSystem resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: FsxOpenZfsFileSystemState, opts?: CustomResourceOptions): FsxOpenZfsFileSystem
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        arn: Optional[str] = None,
        creation_time: Optional[str] = None,
        fsx_filesystem_arn: Optional[str] = None,
        protocol: Optional[FsxOpenZfsFileSystemProtocolArgs] = None,
        security_group_arns: Optional[Sequence[str]] = None,
        subdirectory: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None,
        uri: Optional[str] = None) -> FsxOpenZfsFileSystem
func GetFsxOpenZfsFileSystem(ctx *Context, name string, id IDInput, state *FsxOpenZfsFileSystemState, opts ...ResourceOption) (*FsxOpenZfsFileSystem, error)
public static FsxOpenZfsFileSystem Get(string name, Input<string> id, FsxOpenZfsFileSystemState? state, CustomResourceOptions? opts = null)
public static FsxOpenZfsFileSystem get(String name, Output<String> id, FsxOpenZfsFileSystemState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Arn string

Amazon Resource Name (ARN) of the DataSync Location.

CreationTime string

The time that the FSx for openzfs location was created.

FsxFilesystemArn string

The Amazon Resource Name (ARN) for the FSx for OpenZfs file system.

Protocol FsxOpenZfsFileSystemProtocolArgs

The type of protocol that DataSync uses to access your file system. See below.

SecurityGroupArns List<string>

The Amazon Resource Names (ARNs) of the security groups that are to use to configure the FSx for openzfs file system.

Subdirectory string

Subdirectory to perform actions as source or destination. Must start with /fsx.

Tags Dictionary<string, string>

Key-value pairs of resource tags to assign to the DataSync Location. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

TagsAll Dictionary<string, string>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Uri string

The URL of the FSx for openzfs location that was described.

Arn string

Amazon Resource Name (ARN) of the DataSync Location.

CreationTime string

The time that the FSx for openzfs location was created.

FsxFilesystemArn string

The Amazon Resource Name (ARN) for the FSx for OpenZfs file system.

Protocol FsxOpenZfsFileSystemProtocolArgs

The type of protocol that DataSync uses to access your file system. See below.

SecurityGroupArns []string

The Amazon Resource Names (ARNs) of the security groups that are to use to configure the FSx for openzfs file system.

Subdirectory string

Subdirectory to perform actions as source or destination. Must start with /fsx.

Tags map[string]string

Key-value pairs of resource tags to assign to the DataSync Location. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

TagsAll map[string]string

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Uri string

The URL of the FSx for openzfs location that was described.

arn String

Amazon Resource Name (ARN) of the DataSync Location.

creationTime String

The time that the FSx for openzfs location was created.

fsxFilesystemArn String

The Amazon Resource Name (ARN) for the FSx for OpenZfs file system.

protocol FsxOpenZfsFileSystemProtocolArgs

The type of protocol that DataSync uses to access your file system. See below.

securityGroupArns List<String>

The Amazon Resource Names (ARNs) of the security groups that are to use to configure the FSx for openzfs file system.

subdirectory String

Subdirectory to perform actions as source or destination. Must start with /fsx.

tags Map<String,String>

Key-value pairs of resource tags to assign to the DataSync Location. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tagsAll Map<String,String>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

uri String

The URL of the FSx for openzfs location that was described.

arn string

Amazon Resource Name (ARN) of the DataSync Location.

creationTime string

The time that the FSx for openzfs location was created.

fsxFilesystemArn string

The Amazon Resource Name (ARN) for the FSx for OpenZfs file system.

protocol FsxOpenZfsFileSystemProtocolArgs

The type of protocol that DataSync uses to access your file system. See below.

securityGroupArns string[]

The Amazon Resource Names (ARNs) of the security groups that are to use to configure the FSx for openzfs file system.

subdirectory string

Subdirectory to perform actions as source or destination. Must start with /fsx.

tags {[key: string]: string}

Key-value pairs of resource tags to assign to the DataSync Location. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tagsAll {[key: string]: string}

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

uri string

The URL of the FSx for openzfs location that was described.

arn str

Amazon Resource Name (ARN) of the DataSync Location.

creation_time str

The time that the FSx for openzfs location was created.

fsx_filesystem_arn str

The Amazon Resource Name (ARN) for the FSx for OpenZfs file system.

protocol FsxOpenZfsFileSystemProtocolArgs

The type of protocol that DataSync uses to access your file system. See below.

security_group_arns Sequence[str]

The Amazon Resource Names (ARNs) of the security groups that are to use to configure the FSx for openzfs file system.

subdirectory str

Subdirectory to perform actions as source or destination. Must start with /fsx.

tags Mapping[str, str]

Key-value pairs of resource tags to assign to the DataSync Location. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tags_all Mapping[str, str]

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

uri str

The URL of the FSx for openzfs location that was described.

arn String

Amazon Resource Name (ARN) of the DataSync Location.

creationTime String

The time that the FSx for openzfs location was created.

fsxFilesystemArn String

The Amazon Resource Name (ARN) for the FSx for OpenZfs file system.

protocol Property Map

The type of protocol that DataSync uses to access your file system. See below.

securityGroupArns List<String>

The Amazon Resource Names (ARNs) of the security groups that are to use to configure the FSx for openzfs file system.

subdirectory String

Subdirectory to perform actions as source or destination. Must start with /fsx.

tags Map<String>

Key-value pairs of resource tags to assign to the DataSync Location. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tagsAll Map<String>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

uri String

The URL of the FSx for openzfs location that was described.

Supporting Types

FsxOpenZfsFileSystemProtocol

Nfs FsxOpenZfsFileSystemProtocolNfs

Represents the Network File System (NFS) protocol that DataSync uses to access your FSx for OpenZFS file system. See below.

Nfs FsxOpenZfsFileSystemProtocolNfs

Represents the Network File System (NFS) protocol that DataSync uses to access your FSx for OpenZFS file system. See below.

nfs FsxOpenZfsFileSystemProtocolNfs

Represents the Network File System (NFS) protocol that DataSync uses to access your FSx for OpenZFS file system. See below.

nfs FsxOpenZfsFileSystemProtocolNfs

Represents the Network File System (NFS) protocol that DataSync uses to access your FSx for OpenZFS file system. See below.

nfs FsxOpenZfsFileSystemProtocolNfs

Represents the Network File System (NFS) protocol that DataSync uses to access your FSx for OpenZFS file system. See below.

nfs Property Map

Represents the Network File System (NFS) protocol that DataSync uses to access your FSx for OpenZFS file system. See below.

FsxOpenZfsFileSystemProtocolNfs

MountOptions FsxOpenZfsFileSystemProtocolNfsMountOptions

Represents the mount options that are available for DataSync to access an NFS location. See below.

MountOptions FsxOpenZfsFileSystemProtocolNfsMountOptions

Represents the mount options that are available for DataSync to access an NFS location. See below.

mountOptions FsxOpenZfsFileSystemProtocolNfsMountOptions

Represents the mount options that are available for DataSync to access an NFS location. See below.

mountOptions FsxOpenZfsFileSystemProtocolNfsMountOptions

Represents the mount options that are available for DataSync to access an NFS location. See below.

mount_options FsxOpenZfsFileSystemProtocolNfsMountOptions

Represents the mount options that are available for DataSync to access an NFS location. See below.

mountOptions Property Map

Represents the mount options that are available for DataSync to access an NFS location. See below.

FsxOpenZfsFileSystemProtocolNfsMountOptions

Version string

The specific NFS version that you want DataSync to use for mounting your NFS share. Valid values: AUTOMATIC, NFS3, NFS4_0 and NFS4_1. Default: AUTOMATIC

Version string

The specific NFS version that you want DataSync to use for mounting your NFS share. Valid values: AUTOMATIC, NFS3, NFS4_0 and NFS4_1. Default: AUTOMATIC

version String

The specific NFS version that you want DataSync to use for mounting your NFS share. Valid values: AUTOMATIC, NFS3, NFS4_0 and NFS4_1. Default: AUTOMATIC

version string

The specific NFS version that you want DataSync to use for mounting your NFS share. Valid values: AUTOMATIC, NFS3, NFS4_0 and NFS4_1. Default: AUTOMATIC

version str

The specific NFS version that you want DataSync to use for mounting your NFS share. Valid values: AUTOMATIC, NFS3, NFS4_0 and NFS4_1. Default: AUTOMATIC

version String

The specific NFS version that you want DataSync to use for mounting your NFS share. Valid values: AUTOMATIC, NFS3, NFS4_0 and NFS4_1. Default: AUTOMATIC

Import

aws_datasync_location_fsx_openzfs_file_system can be imported by using the DataSync-ARN#FSx-openzfs-ARN, e.g.,

 $ pulumi import aws:datasync/fsxOpenZfsFileSystem:FsxOpenZfsFileSystem example arn:aws:datasync:us-west-2:123456789012:location/loc-12345678901234567#arn:aws:fsx:us-west-2:123456789012:file-system/fs-08e04cd442c1bb94a

Package Details

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

This Pulumi package is based on the aws Terraform Provider.