LocationFsxOntapFileSystemArgs

data class LocationFsxOntapFileSystemArgs(val protocol: Output<LocationFsxOntapFileSystemProtocolArgs>? = null, val securityGroupArns: Output<List<String>>? = null, val storageVirtualMachineArn: Output<String>? = null, val subdirectory: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<LocationFsxOntapFileSystemArgs>

Resource for managing an AWS DataSync Location FSx Ontap File System.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.datasync.LocationFsxOntapFileSystem;
import com.pulumi.aws.datasync.LocationFsxOntapFileSystemArgs;
import com.pulumi.aws.datasync.inputs.LocationFsxOntapFileSystemProtocolArgs;
import com.pulumi.aws.datasync.inputs.LocationFsxOntapFileSystemProtocolNfsArgs;
import com.pulumi.aws.datasync.inputs.LocationFsxOntapFileSystemProtocolNfsMountOptionsArgs;
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 test = new LocationFsxOntapFileSystem("test", LocationFsxOntapFileSystemArgs.builder()
.fsxFilesystemArn(aws_fsx_ontap_file_system.test().arn())
.securityGroupArns(aws_security_group.test().arn())
.storageVirtualMachineArn(aws_fsx_ontap_storage_virtual_machine.test().arn())
.protocol(LocationFsxOntapFileSystemProtocolArgs.builder()
.nfs(LocationFsxOntapFileSystemProtocolNfsArgs.builder()
.mountOptions(LocationFsxOntapFileSystemProtocolNfsMountOptionsArgs.builder()
.version("NFS3")
.build())
.build())
.build())
.build());
}
}

Import

Using pulumi import, import aws_datasync_location_fsx_ontap_file_system using the DataSync-ARN#FSx-ontap-svm-ARN. For example:

$ pulumi import aws:datasync/locationFsxOntapFileSystem:LocationFsxOntapFileSystem example arn:aws:datasync:us-west-2:123456789012:location/loc-12345678901234567#arn:aws:fsx:us-west-2:123456789012:storage-virtual-machine/svm-12345678abcdef123

Constructors

Link copied to clipboard
fun LocationFsxOntapFileSystemArgs(protocol: Output<LocationFsxOntapFileSystemProtocolArgs>? = null, securityGroupArns: Output<List<String>>? = null, storageVirtualMachineArn: Output<String>? = null, subdirectory: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Functions

Link copied to clipboard
open override fun toJava(): LocationFsxOntapFileSystemArgs

Properties

Link copied to clipboard

The data transfer protocol that DataSync uses to access your Amazon FSx file system. See Protocol below.

Link copied to clipboard
val securityGroupArns: Output<List<String>>? = null

The security groups that provide access to your file system's preferred subnet. The security groups must allow outbbound traffic on the following ports (depending on the protocol you use):

Link copied to clipboard
val storageVirtualMachineArn: Output<String>? = null

The ARN of the SVM in your file system where you want to copy data to of from. The following arguments are optional:

Link copied to clipboard
val subdirectory: Output<String>? = null

Path to the file share in the SVM where you'll copy your data. You can specify a junction path (also known as a mount point), qtree path (for NFS file shares), or share name (for SMB file shares) (e.g. /vol1, /vol1/tree1, share1).

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

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.