UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

89 lines 3.94 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.Instance = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Provides a resource to manage veenedge instance * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@volcengine/pulumi"; * * const foo = new volcengine.veenedge.Instance("foo", { * areaName: "*****", * cloudserverId: "cloudserver-x92*****jcc8f", * isp: "CMCC", * }); * const foo1 = new volcengine.veenedge.Instance("foo1", {instanceId: "veen0*****0111112"}); * ``` * * ## Import * * Instance can be imported using the id, e.g. * * ```sh * $ pulumi import volcengine:veenedge/instance:Instance default veenn769ewmjjqyqh5dv * ``` */ class Instance extends pulumi.CustomResource { /** * Get an existing Instance 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 Instance(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Instance. 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'] === Instance.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["areaName"] = state ? state.areaName : undefined; resourceInputs["cloudserverId"] = state ? state.cloudserverId : undefined; resourceInputs["clusterName"] = state ? state.clusterName : undefined; resourceInputs["defaultIsp"] = state ? state.defaultIsp : undefined; resourceInputs["instanceId"] = state ? state.instanceId : undefined; resourceInputs["isp"] = state ? state.isp : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["secretData"] = state ? state.secretData : undefined; resourceInputs["secretType"] = state ? state.secretType : undefined; } else { const args = argsOrState; resourceInputs["areaName"] = args ? args.areaName : undefined; resourceInputs["cloudserverId"] = args ? args.cloudserverId : undefined; resourceInputs["clusterName"] = args ? args.clusterName : undefined; resourceInputs["defaultIsp"] = args ? args.defaultIsp : undefined; resourceInputs["instanceId"] = args ? args.instanceId : undefined; resourceInputs["isp"] = args ? args.isp : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["secretData"] = args ? args.secretData : undefined; resourceInputs["secretType"] = args ? args.secretType : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Instance.__pulumiType, name, resourceInputs, opts); } } exports.Instance = Instance; /** @internal */ Instance.__pulumiType = 'volcengine:veenedge/instance:Instance'; //# sourceMappingURL=instance.js.map