"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.getRoutesOutput = exports.getRoutes = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Use this data source to query detailed information of apig routes
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 *
 * const foo = volcengine.apig.getRoutes({
 *     gatewayId: "gd1ek1ki9optek6ooabh0",
 * });
 * ```
 */
function getRoutes(args, opts) {
    args = args || {};
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("volcengine:apig/getRoutes:getRoutes", {
        "gatewayId": args.gatewayId,
        "name": args.name,
        "nameRegex": args.nameRegex,
        "outputFile": args.outputFile,
        "path": args.path,
        "resourceType": args.resourceType,
        "serviceId": args.serviceId,
        "upstreamId": args.upstreamId,
        "upstreamVersion": args.upstreamVersion,
    }, opts);
}
exports.getRoutes = getRoutes;
/**
 * Use this data source to query detailed information of apig routes
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 *
 * const foo = volcengine.apig.getRoutes({
 *     gatewayId: "gd1ek1ki9optek6ooabh0",
 * });
 * ```
 */
function getRoutesOutput(args, opts) {
    return pulumi.output(args).apply((a) => getRoutes(a, opts));
}
exports.getRoutesOutput = getRoutesOutput;
//# sourceMappingURL=getRoutes.js.map