@lbrlabs/pulumi-scaleway
Version:
A Pulumi package for creating and managing scaleway cloud resources.
57 lines • 1.8 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.getWebhostingOutput = exports.getWebhosting = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Gets information about a webhosting.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* const byDomain = scaleway.getWebhosting({
* domain: "foobar.com",
* });
* const byId = scaleway.getWebhosting({
* webhostingId: "11111111-1111-1111-1111-111111111111",
* });
* ```
*/
function getWebhosting(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("scaleway:index/getWebhosting:getWebhosting", {
"domain": args.domain,
"organizationId": args.organizationId,
"projectId": args.projectId,
"webhostingId": args.webhostingId,
}, opts);
}
exports.getWebhosting = getWebhosting;
/**
* Gets information about a webhosting.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* const byDomain = scaleway.getWebhosting({
* domain: "foobar.com",
* });
* const byId = scaleway.getWebhosting({
* webhostingId: "11111111-1111-1111-1111-111111111111",
* });
* ```
*/
function getWebhostingOutput(args, opts) {
return pulumi.output(args).apply((a) => getWebhosting(a, opts));
}
exports.getWebhostingOutput = getWebhostingOutput;
//# sourceMappingURL=getWebhosting.js.map