"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.getInstanceParametersOutput = exports.getInstanceParameters = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Use this data source to query detailed information of mongodb instance parameters
 * ## 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 fooInstance = new volcengine.mongodb.Instance("fooInstance", {
 *     dbEngineVersion: "MongoDB_4_0",
 *     instanceType: "ReplicaSet",
 *     superAccountPassword: "@acc-test-123",
 *     nodeSpec: "mongo.2c4g",
 *     mongosNodeSpec: "mongo.mongos.2c4g",
 *     instanceName: "acc-test-mongo-replica",
 *     chargeType: "PostPaid",
 *     projectName: "default",
 *     mongosNodeNumber: 32,
 *     shardNumber: 3,
 *     storageSpaceGb: 20,
 *     subnetId: fooSubnet.id,
 *     zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
 *     tags: [{
 *         key: "k1",
 *         value: "v1",
 *     }],
 * });
 * const fooInstanceParameter = new volcengine.mongodb.InstanceParameter("fooInstanceParameter", {
 *     instanceId: fooInstance.id,
 *     parameterName: "cursorTimeoutMillis",
 *     parameterRole: "Node",
 *     parameterValue: "600111",
 * });
 * const fooInstanceParameters = volcengine.mongodb.getInstanceParametersOutput({
 *     instanceId: fooInstance.id,
 *     parameterNames: "cursorTimeoutMillis",
 *     parameterRole: "Node",
 * });
 * ```
 */
function getInstanceParameters(args, opts) {
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("volcengine:mongodb/getInstanceParameters:getInstanceParameters", {
        "instanceId": args.instanceId,
        "outputFile": args.outputFile,
        "parameterNames": args.parameterNames,
        "parameterRole": args.parameterRole,
    }, opts);
}
exports.getInstanceParameters = getInstanceParameters;
/**
 * Use this data source to query detailed information of mongodb instance parameters
 * ## 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 fooInstance = new volcengine.mongodb.Instance("fooInstance", {
 *     dbEngineVersion: "MongoDB_4_0",
 *     instanceType: "ReplicaSet",
 *     superAccountPassword: "@acc-test-123",
 *     nodeSpec: "mongo.2c4g",
 *     mongosNodeSpec: "mongo.mongos.2c4g",
 *     instanceName: "acc-test-mongo-replica",
 *     chargeType: "PostPaid",
 *     projectName: "default",
 *     mongosNodeNumber: 32,
 *     shardNumber: 3,
 *     storageSpaceGb: 20,
 *     subnetId: fooSubnet.id,
 *     zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
 *     tags: [{
 *         key: "k1",
 *         value: "v1",
 *     }],
 * });
 * const fooInstanceParameter = new volcengine.mongodb.InstanceParameter("fooInstanceParameter", {
 *     instanceId: fooInstance.id,
 *     parameterName: "cursorTimeoutMillis",
 *     parameterRole: "Node",
 *     parameterValue: "600111",
 * });
 * const fooInstanceParameters = volcengine.mongodb.getInstanceParametersOutput({
 *     instanceId: fooInstance.id,
 *     parameterNames: "cursorTimeoutMillis",
 *     parameterRole: "Node",
 * });
 * ```
 */
function getInstanceParametersOutput(args, opts) {
    return pulumi.output(args).apply((a) => getInstanceParameters(a, opts));
}
exports.getInstanceParametersOutput = getInstanceParametersOutput;
//# sourceMappingURL=getInstanceParameters.js.map