UNPKG

@ediri/vultr

Version:

A Pulumi package for creating and managing Vultr cloud resources.

66 lines 1.86 kB
"use strict"; // *** 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.getVpc2Output = exports.getVpc2 = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * ** Deprecated: Use `vultr.Vpc` instead ** * * Get information about a Vultr VPC 2.0. * * ## Example Usage * * Get the information for a VPC 2.0 by `description`: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vultr from "@ediri/vultr"; * * const myVpc2 = vultr.getVpc2({ * filters: [{ * name: "description", * values: ["my-vpc2-description"], * }], * }); * ``` */ function getVpc2(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vultr:index/getVpc2:getVpc2", { "filters": args.filters, }, opts); } exports.getVpc2 = getVpc2; /** * ** Deprecated: Use `vultr.Vpc` instead ** * * Get information about a Vultr VPC 2.0. * * ## Example Usage * * Get the information for a VPC 2.0 by `description`: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vultr from "@ediri/vultr"; * * const myVpc2 = vultr.getVpc2({ * filters: [{ * name: "description", * values: ["my-vpc2-description"], * }], * }); * ``` */ function getVpc2Output(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("vultr:index/getVpc2:getVpc2", { "filters": args.filters, }, opts); } exports.getVpc2Output = getVpc2Output; //# sourceMappingURL=getVpc2.js.map