UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

74 lines 2.86 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.getWebHostOfferOutput = exports.getWebHostOffer = 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", * }); * ``` */ /** @deprecated scaleway.index/getwebhostoffer.getWebHostOffer has been deprecated in favor of scaleway.hosting/getoffer.getOffer */ function getWebHostOffer(args, opts) { pulumi.log.warn("getWebHostOffer is deprecated: scaleway.index/getwebhostoffer.getWebHostOffer has been deprecated in favor of scaleway.hosting/getoffer.getOffer"); args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scaleway:index/getWebHostOffer:getWebHostOffer", { "controlPanel": args.controlPanel, "name": args.name, "offerId": args.offerId, "region": args.region, }, opts); } exports.getWebHostOffer = getWebHostOffer; /** * 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", * }); * ``` */ /** @deprecated scaleway.index/getwebhostoffer.getWebHostOffer has been deprecated in favor of scaleway.hosting/getoffer.getOffer */ function getWebHostOfferOutput(args, opts) { pulumi.log.warn("getWebHostOffer is deprecated: scaleway.index/getwebhostoffer.getWebHostOffer has been deprecated in favor of scaleway.hosting/getoffer.getOffer"); args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("scaleway:index/getWebHostOffer:getWebHostOffer", { "controlPanel": args.controlPanel, "name": args.name, "offerId": args.offerId, "region": args.region, }, opts); } exports.getWebHostOfferOutput = getWebHostOfferOutput; //# sourceMappingURL=getWebHostOffer.js.map