UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

123 lines 5.27 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.KxVolume = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Resource for managing an AWS FinSpace Kx Volume. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.finspace.KxVolume("example", { * name: "my-tf-kx-volume", * environmentId: exampleAwsFinspaceKxEnvironment.id, * availabilityZones: ["use1-az2"], * azMode: "SINGLE", * type: "NAS_1", * nas1Configurations: [{ * size: 1200, * type: "SSD_250", * }], * }); * ``` * * ## Import * * Using `pulumi import`, import an AWS FinSpace Kx Volume using the `id` (environment ID and volume name, comma-delimited). For example: * * ```sh * $ pulumi import aws:finspace/kxVolume:KxVolume example n3ceo7wqxoxcti5tujqwzs,my-tf-kx-volume * ``` */ class KxVolume extends pulumi.CustomResource { /** * Get an existing KxVolume 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 Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name, id, state, opts) { return new KxVolume(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of KxVolume. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj) { if (obj === undefined || obj === null) { return false; } return obj['__pulumiType'] === KxVolume.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["arn"] = state?.arn; resourceInputs["attachedClusters"] = state?.attachedClusters; resourceInputs["availabilityZones"] = state?.availabilityZones; resourceInputs["azMode"] = state?.azMode; resourceInputs["createdTimestamp"] = state?.createdTimestamp; resourceInputs["description"] = state?.description; resourceInputs["environmentId"] = state?.environmentId; resourceInputs["lastModifiedTimestamp"] = state?.lastModifiedTimestamp; resourceInputs["name"] = state?.name; resourceInputs["nas1Configurations"] = state?.nas1Configurations; resourceInputs["region"] = state?.region; resourceInputs["status"] = state?.status; resourceInputs["statusReason"] = state?.statusReason; resourceInputs["tags"] = state?.tags; resourceInputs["tagsAll"] = state?.tagsAll; resourceInputs["type"] = state?.type; } else { const args = argsOrState; if (args?.availabilityZones === undefined && !opts.urn) { throw new Error("Missing required property 'availabilityZones'"); } if (args?.azMode === undefined && !opts.urn) { throw new Error("Missing required property 'azMode'"); } if (args?.environmentId === undefined && !opts.urn) { throw new Error("Missing required property 'environmentId'"); } if (args?.type === undefined && !opts.urn) { throw new Error("Missing required property 'type'"); } resourceInputs["availabilityZones"] = args?.availabilityZones; resourceInputs["azMode"] = args?.azMode; resourceInputs["description"] = args?.description; resourceInputs["environmentId"] = args?.environmentId; resourceInputs["name"] = args?.name; resourceInputs["nas1Configurations"] = args?.nas1Configurations; resourceInputs["region"] = args?.region; resourceInputs["tags"] = args?.tags; resourceInputs["type"] = args?.type; resourceInputs["arn"] = undefined /*out*/; resourceInputs["attachedClusters"] = undefined /*out*/; resourceInputs["createdTimestamp"] = undefined /*out*/; resourceInputs["lastModifiedTimestamp"] = undefined /*out*/; resourceInputs["status"] = undefined /*out*/; resourceInputs["statusReason"] = undefined /*out*/; resourceInputs["tagsAll"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(KxVolume.__pulumiType, name, resourceInputs, opts); } } exports.KxVolume = KxVolume; /** @internal */ KxVolume.__pulumiType = 'aws:finspace/kxVolume:KxVolume'; //# sourceMappingURL=kxVolume.js.map