UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

70 lines 2.17 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.getOfferOutput = exports.getOffer = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Gets information about a webhosting offer. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * // Get info by offer name * const byName = scaleway.hosting.getOffer({ * name: "performance", * controlPanel: "Cpanel", * }); * // Get info by offer id * const byId = scaleway.hosting.getOffer({ * offerId: "de2426b4-a9e9-11ec-b909-0242ac120002", * }); * ``` */ function getOffer(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scaleway:hosting/getOffer:getOffer", { "controlPanel": args.controlPanel, "name": args.name, "offerId": args.offerId, "region": args.region, }, opts); } exports.getOffer = getOffer; /** * Gets information about a webhosting offer. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * // Get info by offer name * const byName = scaleway.hosting.getOffer({ * name: "performance", * controlPanel: "Cpanel", * }); * // Get info by offer id * const byId = scaleway.hosting.getOffer({ * offerId: "de2426b4-a9e9-11ec-b909-0242ac120002", * }); * ``` */ function getOfferOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("scaleway:hosting/getOffer:getOffer", { "controlPanel": args.controlPanel, "name": args.name, "offerId": args.offerId, "region": args.region, }, opts); } exports.getOfferOutput = getOfferOutput; //# sourceMappingURL=getOffer.js.map