"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.getPlannedEventsOutput = exports.getPlannedEvents = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Use this data source to query detailed information of rds postgresql planned events
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 *
 * const example = volcengine.rds_postgresql.getPlannedEvents({
 *     eventTypes: ["VersionUpgrade"],
 *     instanceId: "postgres-72715e0d9f58",
 *     instanceName: "test-01",
 *     plannedSwitchTimeSearchRangeEnd: "2025-12-15T17:40:53.000Z",
 *     plannedSwitchTimeSearchRangeStart: "2025-12-01T02:06:53.000Z",
 *     statuses: [
 *         "WaitStart",
 *         "Running",
 *     ],
 * });
 * ```
 */
function getPlannedEvents(args, opts) {
    args = args || {};
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("volcengine:rds_postgresql/getPlannedEvents:getPlannedEvents", {
        "eventId": args.eventId,
        "eventTypes": args.eventTypes,
        "instanceId": args.instanceId,
        "instanceName": args.instanceName,
        "outputFile": args.outputFile,
        "plannedBeginTimeSearchRangeEnd": args.plannedBeginTimeSearchRangeEnd,
        "plannedBeginTimeSearchRangeStart": args.plannedBeginTimeSearchRangeStart,
        "plannedSwitchTimeSearchRangeEnd": args.plannedSwitchTimeSearchRangeEnd,
        "plannedSwitchTimeSearchRangeStart": args.plannedSwitchTimeSearchRangeStart,
        "statuses": args.statuses,
    }, opts);
}
exports.getPlannedEvents = getPlannedEvents;
/**
 * Use this data source to query detailed information of rds postgresql planned events
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 *
 * const example = volcengine.rds_postgresql.getPlannedEvents({
 *     eventTypes: ["VersionUpgrade"],
 *     instanceId: "postgres-72715e0d9f58",
 *     instanceName: "test-01",
 *     plannedSwitchTimeSearchRangeEnd: "2025-12-15T17:40:53.000Z",
 *     plannedSwitchTimeSearchRangeStart: "2025-12-01T02:06:53.000Z",
 *     statuses: [
 *         "WaitStart",
 *         "Running",
 *     ],
 * });
 * ```
 */
function getPlannedEventsOutput(args, opts) {
    return pulumi.output(args).apply((a) => getPlannedEvents(a, opts));
}
exports.getPlannedEventsOutput = getPlannedEventsOutput;
//# sourceMappingURL=getPlannedEvents.js.map