"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.getMongoAllowListsOutput = exports.getMongoAllowLists = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Use this data source to query detailed information of mongodb allow lists
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const fooMongoAllowList = new volcengine.mongodb.MongoAllowList("fooMongoAllowList", {
 *     allowListName: "acc-test",
 *     allowListDesc: "acc-test",
 *     allowListType: "IPv4",
 *     allowList: "10.1.1.3,10.2.3.0/24,10.1.1.1",
 * });
 * const fooMongoAllowLists = volcengine.mongodb.getMongoAllowListsOutput({
 *     allowListIds: [fooMongoAllowList.id],
 *     regionId: "cn-beijing",
 * });
 * ```
 */
function getMongoAllowLists(args, opts) {
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("volcengine:mongodb/getMongoAllowLists:getMongoAllowLists", {
        "allowListIds": args.allowListIds,
        "instanceId": args.instanceId,
        "outputFile": args.outputFile,
        "projectName": args.projectName,
        "regionId": args.regionId,
    }, opts);
}
exports.getMongoAllowLists = getMongoAllowLists;
/**
 * Use this data source to query detailed information of mongodb allow lists
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const fooMongoAllowList = new volcengine.mongodb.MongoAllowList("fooMongoAllowList", {
 *     allowListName: "acc-test",
 *     allowListDesc: "acc-test",
 *     allowListType: "IPv4",
 *     allowList: "10.1.1.3,10.2.3.0/24,10.1.1.1",
 * });
 * const fooMongoAllowLists = volcengine.mongodb.getMongoAllowListsOutput({
 *     allowListIds: [fooMongoAllowList.id],
 *     regionId: "cn-beijing",
 * });
 * ```
 */
function getMongoAllowListsOutput(args, opts) {
    return pulumi.output(args).apply((a) => getMongoAllowLists(a, opts));
}
exports.getMongoAllowListsOutput = getMongoAllowListsOutput;
//# sourceMappingURL=getMongoAllowLists.js.map