UNPKG

@pulumi/aws

Version:

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

127 lines 5.62 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.KxDataview = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Resource for managing an AWS FinSpace Kx Dataview. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.finspace.KxDataview("example", { * name: "my-tf-kx-dataview", * environmentId: exampleAwsFinspaceKxEnvironment.id, * databaseName: exampleAwsFinspaceKxDatabase.name, * availabilityZoneId: "use1-az2", * description: "Terraform managed Kx Dataview", * azMode: "SINGLE", * autoUpdate: true, * segmentConfigurations: [{ * volumeName: exampleAwsFinspaceKxVolume.name, * dbPaths: ["/*"], * }], * }); * ``` * * ## Import * * Using `pulumi import`, import an AWS FinSpace Kx Cluster using the `id` (environment ID and cluster name, comma-delimited). For example: * * ```sh * $ pulumi import aws:finspace/kxDataview:KxDataview example n3ceo7wqxoxcti5tujqwzs,my-tf-kx-database,my-tf-kx-dataview * ``` */ class KxDataview extends pulumi.CustomResource { /** * Get an existing KxDataview 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 KxDataview(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of KxDataview. 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'] === KxDataview.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["arn"] = state?.arn; resourceInputs["autoUpdate"] = state?.autoUpdate; resourceInputs["availabilityZoneId"] = state?.availabilityZoneId; resourceInputs["azMode"] = state?.azMode; resourceInputs["changesetId"] = state?.changesetId; resourceInputs["createdTimestamp"] = state?.createdTimestamp; resourceInputs["databaseName"] = state?.databaseName; resourceInputs["description"] = state?.description; resourceInputs["environmentId"] = state?.environmentId; resourceInputs["lastModifiedTimestamp"] = state?.lastModifiedTimestamp; resourceInputs["name"] = state?.name; resourceInputs["readWrite"] = state?.readWrite; resourceInputs["region"] = state?.region; resourceInputs["segmentConfigurations"] = state?.segmentConfigurations; resourceInputs["status"] = state?.status; resourceInputs["tags"] = state?.tags; resourceInputs["tagsAll"] = state?.tagsAll; } else { const args = argsOrState; if (args?.autoUpdate === undefined && !opts.urn) { throw new Error("Missing required property 'autoUpdate'"); } if (args?.azMode === undefined && !opts.urn) { throw new Error("Missing required property 'azMode'"); } if (args?.databaseName === undefined && !opts.urn) { throw new Error("Missing required property 'databaseName'"); } if (args?.environmentId === undefined && !opts.urn) { throw new Error("Missing required property 'environmentId'"); } resourceInputs["autoUpdate"] = args?.autoUpdate; resourceInputs["availabilityZoneId"] = args?.availabilityZoneId; resourceInputs["azMode"] = args?.azMode; resourceInputs["changesetId"] = args?.changesetId; resourceInputs["databaseName"] = args?.databaseName; resourceInputs["description"] = args?.description; resourceInputs["environmentId"] = args?.environmentId; resourceInputs["name"] = args?.name; resourceInputs["readWrite"] = args?.readWrite; resourceInputs["region"] = args?.region; resourceInputs["segmentConfigurations"] = args?.segmentConfigurations; resourceInputs["tags"] = args?.tags; resourceInputs["arn"] = undefined /*out*/; resourceInputs["createdTimestamp"] = undefined /*out*/; resourceInputs["lastModifiedTimestamp"] = undefined /*out*/; resourceInputs["status"] = undefined /*out*/; resourceInputs["tagsAll"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(KxDataview.__pulumiType, name, resourceInputs, opts); } } exports.KxDataview = KxDataview; /** @internal */ KxDataview.__pulumiType = 'aws:finspace/kxDataview:KxDataview'; //# sourceMappingURL=kxDataview.js.map