"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.backupsOutput = exports.backups = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Use this data source to query detailed information of vedb mysql backups
 * ## 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?.[2]?.id),
 *     vpcId: fooVpc.id,
 * });
 * const fooInstance = new volcengine.vedb_mysql.Instance("fooInstance", {
 *     chargeType: "PostPaid",
 *     storageChargeType: "PostPaid",
 *     dbEngineVersion: "MySQL_8_0",
 *     dbMinorVersion: "3.0",
 *     nodeNumber: 2,
 *     nodeSpec: "vedb.mysql.x4.large",
 *     subnetId: fooSubnet.id,
 *     instanceName: "tf-test",
 *     projectName: "testA",
 *     tags: [
 *         {
 *             key: "tftest",
 *             value: "tftest",
 *         },
 *         {
 *             key: "tftest2",
 *             value: "tftest2",
 *         },
 *     ],
 * });
 * const fooBackup = new volcengine.vedb_mysql.Backup("fooBackup", {
 *     instanceId: fooInstance.id,
 *     backupPolicy: {
 *         backupTime: "18:00Z-20:00Z",
 *         fullBackupPeriod: "Monday,Tuesday,Wednesday",
 *         backupRetentionPeriod: 8,
 *     },
 * });
 * const fooBackups = volcengine.vedb_mysql.getBackupsOutput({
 *     instanceId: fooInstance.id,
 * });
 * ```
 */
/** @deprecated volcengine.vedb_mysql.Backups has been deprecated in favor of volcengine.vedb_mysql.getBackups */
function backups(args, opts) {
    pulumi.log.warn("backups is deprecated: volcengine.vedb_mysql.Backups has been deprecated in favor of volcengine.vedb_mysql.getBackups");
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("volcengine:vedb_mysql/backups:Backups", {
        "backupEndTime": args.backupEndTime,
        "backupMethod": args.backupMethod,
        "backupStartTime": args.backupStartTime,
        "backupStatus": args.backupStatus,
        "backupType": args.backupType,
        "instanceId": args.instanceId,
        "outputFile": args.outputFile,
    }, opts);
}
exports.backups = backups;
/**
 * Use this data source to query detailed information of vedb mysql backups
 * ## 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?.[2]?.id),
 *     vpcId: fooVpc.id,
 * });
 * const fooInstance = new volcengine.vedb_mysql.Instance("fooInstance", {
 *     chargeType: "PostPaid",
 *     storageChargeType: "PostPaid",
 *     dbEngineVersion: "MySQL_8_0",
 *     dbMinorVersion: "3.0",
 *     nodeNumber: 2,
 *     nodeSpec: "vedb.mysql.x4.large",
 *     subnetId: fooSubnet.id,
 *     instanceName: "tf-test",
 *     projectName: "testA",
 *     tags: [
 *         {
 *             key: "tftest",
 *             value: "tftest",
 *         },
 *         {
 *             key: "tftest2",
 *             value: "tftest2",
 *         },
 *     ],
 * });
 * const fooBackup = new volcengine.vedb_mysql.Backup("fooBackup", {
 *     instanceId: fooInstance.id,
 *     backupPolicy: {
 *         backupTime: "18:00Z-20:00Z",
 *         fullBackupPeriod: "Monday,Tuesday,Wednesday",
 *         backupRetentionPeriod: 8,
 *     },
 * });
 * const fooBackups = volcengine.vedb_mysql.getBackupsOutput({
 *     instanceId: fooInstance.id,
 * });
 * ```
 */
/** @deprecated volcengine.vedb_mysql.Backups has been deprecated in favor of volcengine.vedb_mysql.getBackups */
function backupsOutput(args, opts) {
    return pulumi.output(args).apply((a) => backups(a, opts));
}
exports.backupsOutput = backupsOutput;
//# sourceMappingURL=backups.js.map