@ediri/vultr
Version:
A Pulumi package for creating and managing Vultr cloud resources.
62 lines • 1.73 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** 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");
/**
* Get information about a Vultr VPC.
*
* ## Example Usage
*
* Get the information for a VPC by `description`:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as vultr from "@ediri/vultr";
*
* const myVpc = vultr.getVpc({
* filters: [{
* name: "description",
* values: ["my-vpc-description"],
* }],
* });
* ```
*/
function getVpc(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("vultr:index/getVpc:getVpc", {
"filters": args.filters,
}, opts);
}
exports.getVpc = getVpc;
/**
* Get information about a Vultr VPC.
*
* ## Example Usage
*
* Get the information for a VPC by `description`:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as vultr from "@ediri/vultr";
*
* const myVpc = vultr.getVpc({
* filters: [{
* name: "description",
* values: ["my-vpc-description"],
* }],
* });
* ```
*/
function getVpcOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("vultr:index/getVpc:getVpc", {
"filters": args.filters,
}, opts);
}
exports.getVpcOutput = getVpcOutput;
//# sourceMappingURL=getVpc.js.map