"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.getInstanceTasksOutput = exports.getInstanceTasks = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Use this data source to query detailed information of rds postgresql instance tasks
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 *
 * const example = volcengine.rds_postgresql.getInstanceTasks({
 *     creationEndTime: "2025-12-15T23:40:00Z",
 *     creationStartTime: "2025-12-10T21:30:00Z",
 *     instanceId: "postgres-72715e0d9f58",
 *     projectName: "default",
 *     taskAction: "ModifyDBEndpointReadWriteFlag",
 *     taskStatuses: [
 *         "Running",
 *         "Success",
 *     ],
 * });
 * ```
 */
function getInstanceTasks(args, opts) {
    args = args || {};
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("volcengine:rds_postgresql/getInstanceTasks:getInstanceTasks", {
        "creationEndTime": args.creationEndTime,
        "creationStartTime": args.creationStartTime,
        "instanceId": args.instanceId,
        "outputFile": args.outputFile,
        "projectName": args.projectName,
        "taskAction": args.taskAction,
        "taskId": args.taskId,
        "taskStatuses": args.taskStatuses,
    }, opts);
}
exports.getInstanceTasks = getInstanceTasks;
/**
 * Use this data source to query detailed information of rds postgresql instance tasks
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 *
 * const example = volcengine.rds_postgresql.getInstanceTasks({
 *     creationEndTime: "2025-12-15T23:40:00Z",
 *     creationStartTime: "2025-12-10T21:30:00Z",
 *     instanceId: "postgres-72715e0d9f58",
 *     projectName: "default",
 *     taskAction: "ModifyDBEndpointReadWriteFlag",
 *     taskStatuses: [
 *         "Running",
 *         "Success",
 *     ],
 * });
 * ```
 */
function getInstanceTasksOutput(args, opts) {
    return pulumi.output(args).apply((a) => getInstanceTasks(a, opts));
}
exports.getInstanceTasksOutput = getInstanceTasksOutput;
//# sourceMappingURL=getInstanceTasks.js.map