"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.peerAttachmentsOutput = exports.peerAttachments = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Use this data source to query detailed information of transit router peer attachments
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 *
 * const foo = volcengine.transit_router.getPeerAttachments({
 *     ids: ["tr-attach-12be67d0yh2io17q7y1au****"],
 * });
 * ```
 */
/** @deprecated volcengine.transit_router.PeerAttachments has been deprecated in favor of volcengine.transit_router.getPeerAttachments */
function peerAttachments(args, opts) {
    pulumi.log.warn("peerAttachments is deprecated: volcengine.transit_router.PeerAttachments has been deprecated in favor of volcengine.transit_router.getPeerAttachments");
    args = args || {};
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("volcengine:transit_router/peerAttachments:PeerAttachments", {
        "ids": args.ids,
        "nameRegex": args.nameRegex,
        "outputFile": args.outputFile,
        "peerTransitRouterId": args.peerTransitRouterId,
        "peerTransitRouterRegionId": args.peerTransitRouterRegionId,
        "tags": args.tags,
        "transitRouterAttachmentName": args.transitRouterAttachmentName,
        "transitRouterId": args.transitRouterId,
    }, opts);
}
exports.peerAttachments = peerAttachments;
/**
 * Use this data source to query detailed information of transit router peer attachments
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 *
 * const foo = volcengine.transit_router.getPeerAttachments({
 *     ids: ["tr-attach-12be67d0yh2io17q7y1au****"],
 * });
 * ```
 */
/** @deprecated volcengine.transit_router.PeerAttachments has been deprecated in favor of volcengine.transit_router.getPeerAttachments */
function peerAttachmentsOutput(args, opts) {
    return pulumi.output(args).apply((a) => peerAttachments(a, opts));
}
exports.peerAttachmentsOutput = peerAttachmentsOutput;
//# sourceMappingURL=peerAttachments.js.map