"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.allowlistsOutput = exports.allowlists = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Use this data source to query detailed information of rds mysql allowlists
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const fooZones = volcengine.ecs.getZones({});
 * const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
 *     vpcName: "acc-test-vpc",
 *     cidrBlock: "172.16.0.0/16",
 * });
 * const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
 *     subnetName: "acc-test-subnet",
 *     cidrBlock: "172.16.0.0/24",
 *     zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
 *     vpcId: fooVpc.id,
 * });
 * const fooAllowlist: volcengine.rds_mysql.Allowlist[] = [];
 * for (const range = {value: 0}; range.value < 3; range.value++) {
 *     fooAllowlist.push(new volcengine.rds_mysql.Allowlist(`fooAllowlist-${range.value}`, {
 *         allowListName: `acc-test-allowlist-${range.value}`,
 *         allowListDesc: "acc-test",
 *         allowListType: "IPv4",
 *         allowLists: [
 *             "192.168.0.0/24",
 *             "192.168.1.0/24",
 *         ],
 *     }));
 * }
 * const fooInstance = new volcengine.rds_mysql.Instance("fooInstance", {
 *     instanceName: "acc-test-rds-mysql",
 *     dbEngineVersion: "MySQL_5_7",
 *     nodeSpec: "rds.mysql.1c2g",
 *     primaryZoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
 *     secondaryZoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
 *     storageSpace: 80,
 *     subnetId: fooSubnet.id,
 *     lowerCaseTableNames: "1",
 *     chargeInfo: {
 *         chargeType: "PostPaid",
 *     },
 *     parameters: [
 *         {
 *             parameterName: "auto_increment_increment",
 *             parameterValue: "2",
 *         },
 *         {
 *             parameterName: "auto_increment_offset",
 *             parameterValue: "4",
 *         },
 *     ],
 *     allowListIds: fooAllowlist.map(__item => __item.id),
 * });
 * const fooAllowlists = volcengine.rds_mysql.getAllowlistsOutput({
 *     instanceId: fooInstance.id,
 *     regionId: "cn-beijing",
 * });
 * ```
 */
/** @deprecated volcengine.rds_mysql.Allowlists has been deprecated in favor of volcengine.rds_mysql.getAllowlists */
function allowlists(args, opts) {
    pulumi.log.warn("allowlists is deprecated: volcengine.rds_mysql.Allowlists has been deprecated in favor of volcengine.rds_mysql.getAllowlists");
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("volcengine:rds_mysql/allowlists:Allowlists", {
        "instanceId": args.instanceId,
        "outputFile": args.outputFile,
        "regionId": args.regionId,
    }, opts);
}
exports.allowlists = allowlists;
/**
 * Use this data source to query detailed information of rds mysql allowlists
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const fooZones = volcengine.ecs.getZones({});
 * const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
 *     vpcName: "acc-test-vpc",
 *     cidrBlock: "172.16.0.0/16",
 * });
 * const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
 *     subnetName: "acc-test-subnet",
 *     cidrBlock: "172.16.0.0/24",
 *     zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
 *     vpcId: fooVpc.id,
 * });
 * const fooAllowlist: volcengine.rds_mysql.Allowlist[] = [];
 * for (const range = {value: 0}; range.value < 3; range.value++) {
 *     fooAllowlist.push(new volcengine.rds_mysql.Allowlist(`fooAllowlist-${range.value}`, {
 *         allowListName: `acc-test-allowlist-${range.value}`,
 *         allowListDesc: "acc-test",
 *         allowListType: "IPv4",
 *         allowLists: [
 *             "192.168.0.0/24",
 *             "192.168.1.0/24",
 *         ],
 *     }));
 * }
 * const fooInstance = new volcengine.rds_mysql.Instance("fooInstance", {
 *     instanceName: "acc-test-rds-mysql",
 *     dbEngineVersion: "MySQL_5_7",
 *     nodeSpec: "rds.mysql.1c2g",
 *     primaryZoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
 *     secondaryZoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
 *     storageSpace: 80,
 *     subnetId: fooSubnet.id,
 *     lowerCaseTableNames: "1",
 *     chargeInfo: {
 *         chargeType: "PostPaid",
 *     },
 *     parameters: [
 *         {
 *             parameterName: "auto_increment_increment",
 *             parameterValue: "2",
 *         },
 *         {
 *             parameterName: "auto_increment_offset",
 *             parameterValue: "4",
 *         },
 *     ],
 *     allowListIds: fooAllowlist.map(__item => __item.id),
 * });
 * const fooAllowlists = volcengine.rds_mysql.getAllowlistsOutput({
 *     instanceId: fooInstance.id,
 *     regionId: "cn-beijing",
 * });
 * ```
 */
/** @deprecated volcengine.rds_mysql.Allowlists has been deprecated in favor of volcengine.rds_mysql.getAllowlists */
function allowlistsOutput(args, opts) {
    return pulumi.output(args).apply((a) => allowlists(a, opts));
}
exports.allowlistsOutput = allowlistsOutput;
//# sourceMappingURL=allowlists.js.map