@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
108 lines • 3.58 kB
JavaScript
;
// *** 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.getBucketInventoriesOutput = exports.getBucketInventories = 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,
* });
* ```
*/
function getBucketInventories(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("volcengine:tos/getBucketInventories:getBucketInventories", {
"bucketName": args.bucketName,
"inventoryId": args.inventoryId,
"nameRegex": args.nameRegex,
"outputFile": args.outputFile,
}, opts);
}
exports.getBucketInventories = getBucketInventories;
/**
* 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,
* });
* ```
*/
function getBucketInventoriesOutput(args, opts) {
return pulumi.output(args).apply((a) => getBucketInventories(a, opts));
}
exports.getBucketInventoriesOutput = getBucketInventoriesOutput;
//# sourceMappingURL=getBucketInventories.js.map