@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
82 lines • 3.31 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.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 "@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,
* });
* ```
*/
/** @deprecated scaleway.index/getvpcpublicgateway.getVpcPublicGateway has been deprecated in favor of scaleway.network/getpublicgateway.getPublicGateway */
function getVpcPublicGateway(args, opts) {
pulumi.log.warn("getVpcPublicGateway is deprecated: scaleway.index/getvpcpublicgateway.getVpcPublicGateway has been deprecated in favor of scaleway.network/getpublicgateway.getPublicGateway");
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("scaleway:index/getVpcPublicGateway:getVpcPublicGateway", {
"name": args.name,
"projectId": args.projectId,
"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 "@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,
* });
* ```
*/
/** @deprecated scaleway.index/getvpcpublicgateway.getVpcPublicGateway has been deprecated in favor of scaleway.network/getpublicgateway.getPublicGateway */
function getVpcPublicGatewayOutput(args, opts) {
pulumi.log.warn("getVpcPublicGateway is deprecated: scaleway.index/getvpcpublicgateway.getVpcPublicGateway has been deprecated in favor of scaleway.network/getpublicgateway.getPublicGateway");
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("scaleway:index/getVpcPublicGateway:getVpcPublicGateway", {
"name": args.name,
"projectId": args.projectId,
"publicGatewayId": args.publicGatewayId,
"zone": args.zone,
}, opts);
}
exports.getVpcPublicGatewayOutput = getVpcPublicGatewayOutput;
//# sourceMappingURL=getVpcPublicGateway.js.map