@lbrlabs/pulumi-scaleway
Version:
A Pulumi package for creating and managing scaleway cloud resources.
56 lines • 1.76 kB
JavaScript
;
// *** 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";
*
* const byName = scaleway.getWebHostOffer({
* name: "performance",
* });
* const byId = scaleway.getWebHostOffer({
* offerId: "de2426b4-a9e9-11ec-b909-0242ac120002",
* });
* ```
*/
function getWebHostOffer(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("scaleway:index/getWebHostOffer:getWebHostOffer", {
"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";
*
* const byName = scaleway.getWebHostOffer({
* name: "performance",
* });
* const byId = scaleway.getWebHostOffer({
* offerId: "de2426b4-a9e9-11ec-b909-0242ac120002",
* });
* ```
*/
function getWebHostOfferOutput(args, opts) {
return pulumi.output(args).apply((a) => getWebHostOffer(a, opts));
}
exports.getWebHostOfferOutput = getWebHostOfferOutput;
//# sourceMappingURL=getWebHostOffer.js.map