UNPKG

@lbrlabs/pulumi-scaleway

Version:

A Pulumi package for creating and managing scaleway cloud resources.

68 lines 2.22 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.getVpcPublicGatewayOutput = exports.getVpcPublicGateway = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Gets information about a public gateway. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@lbrlabs/pulumi-scaleway"; * import * as scaleway from "@pulumi/scaleway"; * * const main = new scaleway.VpcPublicGateway("main", { * type: "VPC-GW-S", * zone: "nl-ams-1", * }); * const pgTestByName = scaleway.getVpcPublicGatewayOutput({ * name: main.name, * zone: "nl-ams-1", * }); * const pgTestById = scaleway.getVpcPublicGatewayOutput({ * publicGatewayId: main.id, * }); * ``` */ function getVpcPublicGateway(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scaleway:index/getVpcPublicGateway:getVpcPublicGateway", { "name": args.name, "publicGatewayId": args.publicGatewayId, "zone": args.zone, }, opts); } exports.getVpcPublicGateway = getVpcPublicGateway; /** * Gets information about a public gateway. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@lbrlabs/pulumi-scaleway"; * import * as scaleway from "@pulumi/scaleway"; * * const main = new scaleway.VpcPublicGateway("main", { * type: "VPC-GW-S", * zone: "nl-ams-1", * }); * const pgTestByName = scaleway.getVpcPublicGatewayOutput({ * name: main.name, * zone: "nl-ams-1", * }); * const pgTestById = scaleway.getVpcPublicGatewayOutput({ * publicGatewayId: main.id, * }); * ``` */ function getVpcPublicGatewayOutput(args, opts) { return pulumi.output(args).apply((a) => getVpcPublicGateway(a, opts)); } exports.getVpcPublicGatewayOutput = getVpcPublicGatewayOutput; //# sourceMappingURL=getVpcPublicGateway.js.map