UNPKG

@lbrlabs/pulumi-scaleway

Version:

A Pulumi package for creating and managing scaleway cloud resources.

51 lines 1.75 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.getCockpitPlanOutput = exports.getCockpitPlan = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Gets information about a Scaleway Cockpit plan. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@lbrlabs/pulumi-scaleway"; * import * as scaleway from "@pulumi/scaleway"; * * const premium = scaleway.getCockpitPlan({ * name: "premium", * }); * const main = new scaleway.Cockpit("main", {plan: premium.then(premium => premium.id)}); * ``` */ function getCockpitPlan(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scaleway:index/getCockpitPlan:getCockpitPlan", { "name": args.name, }, opts); } exports.getCockpitPlan = getCockpitPlan; /** * Gets information about a Scaleway Cockpit plan. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@lbrlabs/pulumi-scaleway"; * import * as scaleway from "@pulumi/scaleway"; * * const premium = scaleway.getCockpitPlan({ * name: "premium", * }); * const main = new scaleway.Cockpit("main", {plan: premium.then(premium => premium.id)}); * ``` */ function getCockpitPlanOutput(args, opts) { return pulumi.output(args).apply((a) => getCockpitPlan(a, opts)); } exports.getCockpitPlanOutput = getCockpitPlanOutput; //# sourceMappingURL=getCockpitPlan.js.map