FsxOpenZfsFileSystem

class FsxOpenZfsFileSystem : KotlinCustomResource

Manages an AWS DataSync FSx OpenZfs Location.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.datasync.FsxOpenZfsFileSystem("example", {
fsxFilesystemArn: exampleAwsFsxOpenzfsFileSystem.arn,
securityGroupArns: [exampleAwsSecurityGroup.arn],
protocol: {
nfs: {
mountOptions: {
version: "AUTOMATIC",
},
},
},
});
import pulumi
import pulumi_aws as aws
example = aws.datasync.FsxOpenZfsFileSystem("example",
fsx_filesystem_arn=example_aws_fsx_openzfs_file_system["arn"],
security_group_arns=[example_aws_security_group["arn"]],
protocol={
"nfs": {
"mount_options": {
"version": "AUTOMATIC",
},
},
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.DataSync.FsxOpenZfsFileSystem("example", new()
{
FsxFilesystemArn = exampleAwsFsxOpenzfsFileSystem.Arn,
SecurityGroupArns = new[]
{
exampleAwsSecurityGroup.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/v6/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(exampleAwsFsxOpenzfsFileSystem.Arn),
SecurityGroupArns: pulumi.StringArray{
exampleAwsSecurityGroup.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 com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.datasync.FsxOpenZfsFileSystem;
import com.pulumi.aws.datasync.FsxOpenZfsFileSystemArgs;
import com.pulumi.aws.datasync.inputs.FsxOpenZfsFileSystemProtocolArgs;
import com.pulumi.aws.datasync.inputs.FsxOpenZfsFileSystemProtocolNfsArgs;
import com.pulumi.aws.datasync.inputs.FsxOpenZfsFileSystemProtocolNfsMountOptionsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
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(exampleAwsFsxOpenzfsFileSystem.arn())
.securityGroupArns(exampleAwsSecurityGroup.arn())
.protocol(FsxOpenZfsFileSystemProtocolArgs.builder()
.nfs(FsxOpenZfsFileSystemProtocolNfsArgs.builder()
.mountOptions(FsxOpenZfsFileSystemProtocolNfsMountOptionsArgs.builder()
.version("AUTOMATIC")
.build())
.build())
.build())
.build());
}
}
resources:
example:
type: aws:datasync:FsxOpenZfsFileSystem
properties:
fsxFilesystemArn: ${exampleAwsFsxOpenzfsFileSystem.arn}
securityGroupArns:
- ${exampleAwsSecurityGroup.arn}
protocol:
nfs:
mountOptions:
version: AUTOMATIC

Import

Using pulumi import, import aws_datasync_location_fsx_openzfs_file_system using the DataSync-ARN#FSx-openzfs-ARN. For example:

$ 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

Properties

Link copied to clipboard
val arn: Output<String>

Amazon Resource Name (ARN) of the DataSync Location.

Link copied to clipboard
val creationTime: Output<String>

The time that the FSx for openzfs location was created.

Link copied to clipboard

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

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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

Link copied to clipboard
val subdirectory: Output<String>

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

Link copied to clipboard
val tags: Output<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.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

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

Link copied to clipboard
val uri: Output<String>

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

Link copied to clipboard
val urn: Output<String>