UNPKG

@pulumi/aws

Version:

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

123 lines 5.8 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, Object.assign(Object.assign({}, 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 ? state.arn : undefined; resourceInputs["attachedClusters"] = state ? state.attachedClusters : undefined; resourceInputs["availabilityZones"] = state ? state.availabilityZones : undefined; resourceInputs["azMode"] = state ? state.azMode : undefined; resourceInputs["createdTimestamp"] = state ? state.createdTimestamp : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["environmentId"] = state ? state.environmentId : undefined; resourceInputs["lastModifiedTimestamp"] = state ? state.lastModifiedTimestamp : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["nas1Configurations"] = state ? state.nas1Configurations : undefined; resourceInputs["region"] = state ? state.region : undefined; resourceInputs["status"] = state ? state.status : undefined; resourceInputs["statusReason"] = state ? state.statusReason : undefined; resourceInputs["tags"] = state ? state.tags : undefined; resourceInputs["tagsAll"] = state ? state.tagsAll : undefined; resourceInputs["type"] = state ? state.type : undefined; } else { const args = argsOrState; if ((!args || args.availabilityZones === undefined) && !opts.urn) { throw new Error("Missing required property 'availabilityZones'"); } if ((!args || args.azMode === undefined) && !opts.urn) { throw new Error("Missing required property 'azMode'"); } if ((!args || args.environmentId === undefined) && !opts.urn) { throw new Error("Missing required property 'environmentId'"); } if ((!args || args.type === undefined) && !opts.urn) { throw new Error("Missing required property 'type'"); } resourceInputs["availabilityZones"] = args ? args.availabilityZones : undefined; resourceInputs["azMode"] = args ? args.azMode : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["environmentId"] = args ? args.environmentId : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["nas1Configurations"] = args ? args.nas1Configurations : undefined; resourceInputs["region"] = args ? args.region : undefined; resourceInputs["tags"] = args ? args.tags : undefined; resourceInputs["type"] = args ? args.type : undefined; 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