@lbrlabs/pulumi-scaleway
Version:
A Pulumi package for creating and managing scaleway cloud resources.
65 lines • 1.89 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.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";
*
* const byName = scaleway.getVpc({
* name: "foobar",
* });
* const byId = scaleway.getVpc({
* vpcId: "11111111-1111-1111-1111-111111111111",
* });
* const default = scaleway.getVpc({
* isDefault: true,
* });
* ```
*/
function getVpc(args, opts) {
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";
*
* const byName = scaleway.getVpc({
* name: "foobar",
* });
* const byId = scaleway.getVpc({
* vpcId: "11111111-1111-1111-1111-111111111111",
* });
* const default = scaleway.getVpc({
* isDefault: true,
* });
* ```
*/
function getVpcOutput(args, opts) {
return pulumi.output(args).apply((a) => getVpc(a, opts));
}
exports.getVpcOutput = getVpcOutput;
//# sourceMappingURL=getVpc.js.map