All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.datasync.LocationFsxOntapFileSystem Maven / Gradle / Ivy

// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.datasync;

import com.pulumi.aws.Utilities;
import com.pulumi.aws.datasync.LocationFsxOntapFileSystemArgs;
import com.pulumi.aws.datasync.inputs.LocationFsxOntapFileSystemState;
import com.pulumi.aws.datasync.outputs.LocationFsxOntapFileSystemProtocol;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Resource for managing an AWS DataSync Location FSx Ontap File System.
 * 
 * ## Example Usage
 * 
 * ### Basic Usage
 * 
 * <!--Start PulumiCodeChooser -->
 * <!--End PulumiCodeChooser -->
 * 
 * ## Import
 * 
 * Using `pulumi import`, import `aws_datasync_location_fsx_ontap_file_system` using the `DataSync-ARN#FSx-ontap-svm-ARN`. For example:
 * 
 * ```sh
 * $ 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
 * ```
 * 
 */
@ResourceType(type="aws:datasync/locationFsxOntapFileSystem:LocationFsxOntapFileSystem")
public class LocationFsxOntapFileSystem extends com.pulumi.resources.CustomResource {
    /**
     * ARN of the DataSync Location for the FSx Ontap File System.
     * 
     */
    @Export(name="arn", refs={String.class}, tree="[0]")
    private Output arn;

    /**
     * @return ARN of the DataSync Location for the FSx Ontap File System.
     * 
     */
    public Output arn() {
        return this.arn;
    }
    @Export(name="creationTime", refs={String.class}, tree="[0]")
    private Output creationTime;

    public Output creationTime() {
        return this.creationTime;
    }
    /**
     * ARN of the FSx Ontap File System.
     * 
     */
    @Export(name="fsxFilesystemArn", refs={String.class}, tree="[0]")
    private Output fsxFilesystemArn;

    /**
     * @return ARN of the FSx Ontap File System.
     * 
     */
    public Output fsxFilesystemArn() {
        return this.fsxFilesystemArn;
    }
    /**
     * The data transfer protocol that DataSync uses to access your Amazon FSx file system. See Protocol below.
     * 
     */
    @Export(name="protocol", refs={LocationFsxOntapFileSystemProtocol.class}, tree="[0]")
    private Output protocol;

    /**
     * @return The data transfer protocol that DataSync uses to access your Amazon FSx file system. See Protocol below.
     * 
     */
    public Output protocol() {
        return this.protocol;
    }
    /**
     * 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):
     * * Network File System (NFS): TCP ports 111, 635, and 2049
     * * Server Message Block (SMB): TCP port 445
     * 
     */
    @Export(name="securityGroupArns", refs={List.class,String.class}, tree="[0,1]")
    private Output> securityGroupArns;

    /**
     * @return 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):
     * * Network File System (NFS): TCP ports 111, 635, and 2049
     * * Server Message Block (SMB): TCP port 445
     * 
     */
    public Output> securityGroupArns() {
        return this.securityGroupArns;
    }
    /**
     * The ARN of the SVM in your file system where you want to copy data to of from.
     * 
     * The following arguments are optional:
     * 
     */
    @Export(name="storageVirtualMachineArn", refs={String.class}, tree="[0]")
    private Output storageVirtualMachineArn;

    /**
     * @return The ARN of the SVM in your file system where you want to copy data to of from.
     * 
     * The following arguments are optional:
     * 
     */
    public Output storageVirtualMachineArn() {
        return this.storageVirtualMachineArn;
    }
    /**
     * 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`).
     * 
     */
    @Export(name="subdirectory", refs={String.class}, tree="[0]")
    private Output subdirectory;

    /**
     * @return 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`).
     * 
     */
    public Output subdirectory() {
        return this.subdirectory;
    }
    /**
     * 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.
     * 
     */
    @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
    private Output> tags;

    /**
     * @return 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.
     * 
     */
    public Output>> tags() {
        return Codegen.optional(this.tags);
    }
    /**
     * @deprecated
     * Please use `tags` instead.
     * 
     */
    @Deprecated /* Please use `tags` instead. */
    @Export(name="tagsAll", refs={Map.class,String.class}, tree="[0,1,1]")
    private Output> tagsAll;

    public Output> tagsAll() {
        return this.tagsAll;
    }
    /**
     * URI of the FSx ONTAP file system location
     * 
     */
    @Export(name="uri", refs={String.class}, tree="[0]")
    private Output uri;

    /**
     * @return URI of the FSx ONTAP file system location
     * 
     */
    public Output uri() {
        return this.uri;
    }

    /**
     *
     * @param name The _unique_ name of the resulting resource.
     */
    public LocationFsxOntapFileSystem(java.lang.String name) {
        this(name, LocationFsxOntapFileSystemArgs.Empty);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     */
    public LocationFsxOntapFileSystem(java.lang.String name, LocationFsxOntapFileSystemArgs args) {
        this(name, args, null);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     * @param options A bag of options that control this resource's behavior.
     */
    public LocationFsxOntapFileSystem(java.lang.String name, LocationFsxOntapFileSystemArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("aws:datasync/locationFsxOntapFileSystem:LocationFsxOntapFileSystem", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
    }

    private LocationFsxOntapFileSystem(java.lang.String name, Output id, @Nullable LocationFsxOntapFileSystemState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("aws:datasync/locationFsxOntapFileSystem:LocationFsxOntapFileSystem", name, state, makeResourceOptions(options, id), false);
    }

    private static LocationFsxOntapFileSystemArgs makeArgs(LocationFsxOntapFileSystemArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        if (options != null && options.getUrn().isPresent()) {
            return null;
        }
        return args == null ? LocationFsxOntapFileSystemArgs.Empty : args;
    }

    private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
        var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
            .version(Utilities.getVersion())
            .build();
        return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
    }

    /**
     * Get an existing Host resource's state with the given name, ID, and optional extra
     * properties used to qualify the lookup.
     *
     * @param name The _unique_ name of the resulting resource.
     * @param id The _unique_ provider ID of the resource to lookup.
     * @param state
     * @param options Optional settings to control the behavior of the CustomResource.
     */
    public static LocationFsxOntapFileSystem get(java.lang.String name, Output id, @Nullable LocationFsxOntapFileSystemState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        return new LocationFsxOntapFileSystem(name, id, state, options);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy