"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.routesOutput = exports.routes = 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",
 * });
 * ```
 */
/** @deprecated volcengine.apig.Routes has been deprecated in favor of volcengine.apig.getRoutes */
function routes(args, opts) {
    pulumi.log.warn("routes is deprecated: volcengine.apig.Routes has been deprecated in favor of volcengine.apig.getRoutes");
    args = args || {};
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("volcengine:apig/routes:Routes", {
        "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.routes = routes;
/**
 * 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",
 * });
 * ```
 */
/** @deprecated volcengine.apig.Routes has been deprecated in favor of volcengine.apig.getRoutes */
function routesOutput(args, opts) {
    return pulumi.output(args).apply((a) => routes(a, opts));
}
exports.routesOutput = routesOutput;
//# sourceMappingURL=routes.js.map