UNPKG

@lbrlabs/pulumi-scaleway

Version:

A Pulumi package for creating and managing scaleway cloud resources.

64 lines 2.65 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.Cockpit = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * ## Import * * Cockpits can be imported using the `{project_id}`, e.g. bash * * ```sh * $ pulumi import scaleway:index/cockpit:Cockpit main 11111111-1111-1111-1111-111111111111 * ``` */ class Cockpit extends pulumi.CustomResource { /** * Get an existing Cockpit 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 Cockpit(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Cockpit. 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'] === Cockpit.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["endpoints"] = state ? state.endpoints : undefined; resourceInputs["plan"] = state ? state.plan : undefined; resourceInputs["planId"] = state ? state.planId : undefined; resourceInputs["projectId"] = state ? state.projectId : undefined; } else { const args = argsOrState; resourceInputs["plan"] = args ? args.plan : undefined; resourceInputs["projectId"] = args ? args.projectId : undefined; resourceInputs["endpoints"] = undefined /*out*/; resourceInputs["planId"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Cockpit.__pulumiType, name, resourceInputs, opts); } } exports.Cockpit = Cockpit; /** @internal */ Cockpit.__pulumiType = 'scaleway:index/cockpit:Cockpit'; //# sourceMappingURL=cockpit.js.map