UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

84 lines 2.91 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.getVpcOutput = exports.getVpc = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Gets information about a Scaleway Virtual Private Cloud. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * // Get info by name * const byName = scaleway.network.getVpc({ * name: "foobar", * }); * // Get info by ID * const byId = scaleway.network.getVpc({ * vpcId: "11111111-1111-1111-1111-111111111111", * }); * // Get default VPC info * const _default = scaleway.network.getVpc({ * isDefault: true, * }); * ``` */ /** @deprecated scaleway.index/getvpc.getVpc has been deprecated in favor of scaleway.network/getvpc.getVpc */ function getVpc(args, opts) { pulumi.log.warn("getVpc is deprecated: scaleway.index/getvpc.getVpc has been deprecated in favor of scaleway.network/getvpc.getVpc"); args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scaleway:index/getVpc:getVpc", { "isDefault": args.isDefault, "name": args.name, "organizationId": args.organizationId, "projectId": args.projectId, "region": args.region, "vpcId": args.vpcId, }, opts); } exports.getVpc = getVpc; /** * Gets information about a Scaleway Virtual Private Cloud. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * // Get info by name * const byName = scaleway.network.getVpc({ * name: "foobar", * }); * // Get info by ID * const byId = scaleway.network.getVpc({ * vpcId: "11111111-1111-1111-1111-111111111111", * }); * // Get default VPC info * const _default = scaleway.network.getVpc({ * isDefault: true, * }); * ``` */ /** @deprecated scaleway.index/getvpc.getVpc has been deprecated in favor of scaleway.network/getvpc.getVpc */ function getVpcOutput(args, opts) { pulumi.log.warn("getVpc is deprecated: scaleway.index/getvpc.getVpc has been deprecated in favor of scaleway.network/getvpc.getVpc"); args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("scaleway:index/getVpc:getVpc", { "isDefault": args.isDefault, "name": args.name, "organizationId": args.organizationId, "projectId": args.projectId, "region": args.region, "vpcId": args.vpcId, }, opts); } exports.getVpcOutput = getVpcOutput; //# sourceMappingURL=getVpc.js.map