"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.getInstancePriceDetailsOutput = exports.getInstancePriceDetails = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Use this data source to query detailed information of rds postgresql instance price details
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 *
 * const example = volcengine.rds_postgresql.getInstancePriceDetails({
 *     chargeInfo: {
 *         chargeType: "PrePaid",
 *         number: 4,
 *         period: 2,
 *         periodUnit: "Month",
 *     },
 *     nodeInfos: [
 *         {
 *             nodeOperateType: "Create",
 *             nodeSpec: "rds.postgres.1c2g",
 *             nodeType: "Primary",
 *             zoneId: "cn-beijing-a",
 *         },
 *         {
 *             nodeOperateType: "Create",
 *             nodeSpec: "rds.postgres.1c2g",
 *             nodeType: "Secondary",
 *             zoneId: "cn-beijing-a",
 *         },
 *         {
 *             nodeOperateType: "Create",
 *             nodeSpec: "rds.postgres.2c8g",
 *             nodeType: "ReadOnly",
 *             zoneId: "cn-beijing-a",
 *         },
 *     ],
 *     storageSpace: 100,
 *     storageType: "LocalSSD",
 * });
 * ```
 */
function getInstancePriceDetails(args, opts) {
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("volcengine:rds_postgresql/getInstancePriceDetails:getInstancePriceDetails", {
        "chargeInfo": args.chargeInfo,
        "nodeInfos": args.nodeInfos,
        "outputFile": args.outputFile,
        "storageSpace": args.storageSpace,
        "storageType": args.storageType,
    }, opts);
}
exports.getInstancePriceDetails = getInstancePriceDetails;
/**
 * Use this data source to query detailed information of rds postgresql instance price details
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 *
 * const example = volcengine.rds_postgresql.getInstancePriceDetails({
 *     chargeInfo: {
 *         chargeType: "PrePaid",
 *         number: 4,
 *         period: 2,
 *         periodUnit: "Month",
 *     },
 *     nodeInfos: [
 *         {
 *             nodeOperateType: "Create",
 *             nodeSpec: "rds.postgres.1c2g",
 *             nodeType: "Primary",
 *             zoneId: "cn-beijing-a",
 *         },
 *         {
 *             nodeOperateType: "Create",
 *             nodeSpec: "rds.postgres.1c2g",
 *             nodeType: "Secondary",
 *             zoneId: "cn-beijing-a",
 *         },
 *         {
 *             nodeOperateType: "Create",
 *             nodeSpec: "rds.postgres.2c8g",
 *             nodeType: "ReadOnly",
 *             zoneId: "cn-beijing-a",
 *         },
 *     ],
 *     storageSpace: 100,
 *     storageType: "LocalSSD",
 * });
 * ```
 */
function getInstancePriceDetailsOutput(args, opts) {
    return pulumi.output(args).apply((a) => getInstancePriceDetails(a, opts));
}
exports.getInstancePriceDetailsOutput = getInstancePriceDetailsOutput;
//# sourceMappingURL=getInstancePriceDetails.js.map