@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
51 lines • 1.95 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.getVpnAttachmentsOutput = exports.getVpnAttachments = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to query detailed information of transit router vpn attachments
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const default = volcengine.transit_router.getVpnAttachments({
* ids: ["tr-attach-3rf2xi7ae6y9s5zsk2hm6pibt"],
* transitRouterId: "tr-2d6fr7f39unsw58ozfe1ow21x",
* });
* ```
*/
function getVpnAttachments(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("volcengine:transit_router/getVpnAttachments:getVpnAttachments", {
"ids": args.ids,
"outputFile": args.outputFile,
"tags": args.tags,
"transitRouterId": args.transitRouterId,
"vpnConnectionId": args.vpnConnectionId,
}, opts);
}
exports.getVpnAttachments = getVpnAttachments;
/**
* Use this data source to query detailed information of transit router vpn attachments
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const default = volcengine.transit_router.getVpnAttachments({
* ids: ["tr-attach-3rf2xi7ae6y9s5zsk2hm6pibt"],
* transitRouterId: "tr-2d6fr7f39unsw58ozfe1ow21x",
* });
* ```
*/
function getVpnAttachmentsOutput(args, opts) {
return pulumi.output(args).apply((a) => getVpnAttachments(a, opts));
}
exports.getVpnAttachmentsOutput = getVpnAttachmentsOutput;
//# sourceMappingURL=getVpnAttachments.js.map