"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.getServiceRouteEntriesOutput = exports.getServiceRouteEntries = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Use this data source to query detailed information of cen service route entries
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const fooVpc: volcengine.vpc.Vpc[] = [];
 * for (const range = {value: 0}; range.value < 3; range.value++) {
 *     fooVpc.push(new volcengine.vpc.Vpc(`fooVpc-${range.value}`, {
 *         vpcName: "acc-test-vpc",
 *         cidrBlock: "172.16.0.0/16",
 *     }));
 * }
 * const fooCen = new volcengine.cen.Cen("fooCen", {
 *     cenName: "acc-test-cen",
 *     description: "acc-test",
 *     projectName: "default",
 *     tags: [{
 *         key: "k1",
 *         value: "v1",
 *     }],
 * });
 * const fooAttachInstance: volcengine.cen.AttachInstance[] = [];
 * for (const range = {value: 0}; range.value < 3; range.value++) {
 *     fooAttachInstance.push(new volcengine.cen.AttachInstance(`fooAttachInstance-${range.value}`, {
 *         cenId: fooCen.id,
 *         instanceId: fooVpc[range.value].id,
 *         instanceRegionId: "cn-beijing",
 *         instanceType: "VPC",
 *     }));
 * }
 * const fooServiceRouteEntry = new volcengine.cen.ServiceRouteEntry("fooServiceRouteEntry", {
 *     cenId: fooCen.id,
 *     destinationCidrBlock: "100.64.0.0/11",
 *     serviceRegionId: "cn-beijing",
 *     serviceVpcId: fooAttachInstance[0].instanceId,
 *     description: "acc-test",
 *     publishMode: "Custom",
 *     publishToInstances: [
 *         {
 *             instanceRegionId: "cn-beijing",
 *             instanceType: "VPC",
 *             instanceId: fooAttachInstance[1].instanceId,
 *         },
 *         {
 *             instanceRegionId: "cn-beijing",
 *             instanceType: "VPC",
 *             instanceId: fooAttachInstance[2].instanceId,
 *         },
 *     ],
 * });
 * const fooServiceRouteEntries = volcengine.cen.getServiceRouteEntriesOutput({
 *     cenId: fooCen.id,
 *     destinationCidrBlock: fooServiceRouteEntry.destinationCidrBlock,
 * });
 * ```
 */
function getServiceRouteEntries(args, opts) {
    args = args || {};
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("volcengine:cen/getServiceRouteEntries:getServiceRouteEntries", {
        "cenId": args.cenId,
        "destinationCidrBlock": args.destinationCidrBlock,
        "outputFile": args.outputFile,
        "serviceRegionId": args.serviceRegionId,
        "serviceVpcId": args.serviceVpcId,
    }, opts);
}
exports.getServiceRouteEntries = getServiceRouteEntries;
/**
 * Use this data source to query detailed information of cen service route entries
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const fooVpc: volcengine.vpc.Vpc[] = [];
 * for (const range = {value: 0}; range.value < 3; range.value++) {
 *     fooVpc.push(new volcengine.vpc.Vpc(`fooVpc-${range.value}`, {
 *         vpcName: "acc-test-vpc",
 *         cidrBlock: "172.16.0.0/16",
 *     }));
 * }
 * const fooCen = new volcengine.cen.Cen("fooCen", {
 *     cenName: "acc-test-cen",
 *     description: "acc-test",
 *     projectName: "default",
 *     tags: [{
 *         key: "k1",
 *         value: "v1",
 *     }],
 * });
 * const fooAttachInstance: volcengine.cen.AttachInstance[] = [];
 * for (const range = {value: 0}; range.value < 3; range.value++) {
 *     fooAttachInstance.push(new volcengine.cen.AttachInstance(`fooAttachInstance-${range.value}`, {
 *         cenId: fooCen.id,
 *         instanceId: fooVpc[range.value].id,
 *         instanceRegionId: "cn-beijing",
 *         instanceType: "VPC",
 *     }));
 * }
 * const fooServiceRouteEntry = new volcengine.cen.ServiceRouteEntry("fooServiceRouteEntry", {
 *     cenId: fooCen.id,
 *     destinationCidrBlock: "100.64.0.0/11",
 *     serviceRegionId: "cn-beijing",
 *     serviceVpcId: fooAttachInstance[0].instanceId,
 *     description: "acc-test",
 *     publishMode: "Custom",
 *     publishToInstances: [
 *         {
 *             instanceRegionId: "cn-beijing",
 *             instanceType: "VPC",
 *             instanceId: fooAttachInstance[1].instanceId,
 *         },
 *         {
 *             instanceRegionId: "cn-beijing",
 *             instanceType: "VPC",
 *             instanceId: fooAttachInstance[2].instanceId,
 *         },
 *     ],
 * });
 * const fooServiceRouteEntries = volcengine.cen.getServiceRouteEntriesOutput({
 *     cenId: fooCen.id,
 *     destinationCidrBlock: fooServiceRouteEntry.destinationCidrBlock,
 * });
 * ```
 */
function getServiceRouteEntriesOutput(args, opts) {
    return pulumi.output(args).apply((a) => getServiceRouteEntries(a, opts));
}
exports.getServiceRouteEntriesOutput = getServiceRouteEntriesOutput;
//# sourceMappingURL=getServiceRouteEntries.js.map