UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

78 lines 2.57 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.getPublicGatewayOutput = exports.getPublicGateway = 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 "@pulumi/scaleway"; * import * as scaleway from "@pulumiverse/scaleway"; * * const main = new scaleway.network.PublicGateway("main", { * name: "demo", * type: "VPC-GW-S", * zone: "nl-ams-1", * }); * const pgTestByName = scaleway.network.getPublicGatewayOutput({ * name: main.name, * zone: "nl-ams-1", * }); * const pgTestById = scaleway.network.getPublicGatewayOutput({ * publicGatewayId: main.id, * }); * ``` */ function getPublicGateway(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scaleway:network/getPublicGateway:getPublicGateway", { "name": args.name, "projectId": args.projectId, "publicGatewayId": args.publicGatewayId, "zone": args.zone, }, opts); } exports.getPublicGateway = getPublicGateway; /** * Gets information about a Public Gateway. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * import * as scaleway from "@pulumiverse/scaleway"; * * const main = new scaleway.network.PublicGateway("main", { * name: "demo", * type: "VPC-GW-S", * zone: "nl-ams-1", * }); * const pgTestByName = scaleway.network.getPublicGatewayOutput({ * name: main.name, * zone: "nl-ams-1", * }); * const pgTestById = scaleway.network.getPublicGatewayOutput({ * publicGatewayId: main.id, * }); * ``` */ function getPublicGatewayOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("scaleway:network/getPublicGateway:getPublicGateway", { "name": args.name, "projectId": args.projectId, "publicGatewayId": args.publicGatewayId, "zone": args.zone, }, opts); } exports.getPublicGatewayOutput = getPublicGatewayOutput; //# sourceMappingURL=getPublicGateway.js.map