"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.getPeerAttachmentsOutput = exports.getPeerAttachments = 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****"],
 * });
 * ```
 */
function getPeerAttachments(args, opts) {
    args = args || {};
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("volcengine:transit_router/getPeerAttachments:getPeerAttachments", {
        "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.getPeerAttachments = getPeerAttachments;
/**
 * 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****"],
 * });
 * ```
 */
function getPeerAttachmentsOutput(args, opts) {
    return pulumi.output(args).apply((a) => getPeerAttachments(a, opts));
}
exports.getPeerAttachmentsOutput = getPeerAttachmentsOutput;
//# sourceMappingURL=getPeerAttachments.js.map