"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.bucketInventoriesOutput = exports.bucketInventories = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Use this data source to query detailed information of tos bucket inventories
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const fooBucketInventory = new volcengine.tos.BucketInventory("fooBucketInventory", {
 *     bucketName: "terraform-demo",
 *     inventoryId: "acc-test-inventory",
 *     isEnabled: true,
 *     includedObjectVersions: "All",
 *     schedule: {
 *         frequency: "Weekly",
 *     },
 *     filter: {
 *         prefix: "test-tf",
 *     },
 *     optionalFields: {
 *         fields: [
 *             "Size",
 *             "StorageClass",
 *             "CRC64",
 *         ],
 *     },
 *     destination: {
 *         tosBucketDestination: {
 *             format: "CSV",
 *             accountId: "21000*****",
 *             bucket: "terraform-demo",
 *             prefix: "tf-test-prefix",
 *             role: "TosArchiveTOSInventory",
 *         },
 *     },
 * });
 * const fooBucketInventories = volcengine.tos.getBucketInventoriesOutput({
 *     bucketName: "terraform-demo",
 *     inventoryId: fooBucketInventory.inventoryId,
 * });
 * ```
 */
/** @deprecated volcengine.tos.BucketInventories has been deprecated in favor of volcengine.tos.getBucketInventories */
function bucketInventories(args, opts) {
    pulumi.log.warn("bucketInventories is deprecated: volcengine.tos.BucketInventories has been deprecated in favor of volcengine.tos.getBucketInventories");
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("volcengine:tos/bucketInventories:BucketInventories", {
        "bucketName": args.bucketName,
        "inventoryId": args.inventoryId,
        "nameRegex": args.nameRegex,
        "outputFile": args.outputFile,
    }, opts);
}
exports.bucketInventories = bucketInventories;
/**
 * Use this data source to query detailed information of tos bucket inventories
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const fooBucketInventory = new volcengine.tos.BucketInventory("fooBucketInventory", {
 *     bucketName: "terraform-demo",
 *     inventoryId: "acc-test-inventory",
 *     isEnabled: true,
 *     includedObjectVersions: "All",
 *     schedule: {
 *         frequency: "Weekly",
 *     },
 *     filter: {
 *         prefix: "test-tf",
 *     },
 *     optionalFields: {
 *         fields: [
 *             "Size",
 *             "StorageClass",
 *             "CRC64",
 *         ],
 *     },
 *     destination: {
 *         tosBucketDestination: {
 *             format: "CSV",
 *             accountId: "21000*****",
 *             bucket: "terraform-demo",
 *             prefix: "tf-test-prefix",
 *             role: "TosArchiveTOSInventory",
 *         },
 *     },
 * });
 * const fooBucketInventories = volcengine.tos.getBucketInventoriesOutput({
 *     bucketName: "terraform-demo",
 *     inventoryId: fooBucketInventory.inventoryId,
 * });
 * ```
 */
/** @deprecated volcengine.tos.BucketInventories has been deprecated in favor of volcengine.tos.getBucketInventories */
function bucketInventoriesOutput(args, opts) {
    return pulumi.output(args).apply((a) => bucketInventories(a, opts));
}
exports.bucketInventoriesOutput = bucketInventoriesOutput;
//# sourceMappingURL=bucketInventories.js.map