published on Thursday, Apr 23, 2026 by Volcengine
published on Thursday, Apr 23, 2026 by Volcengine
Bucket inventory rules. After creating a bucket inventory, TOS outputs various object information daily or weekly, including object count, size, storage type, and more.
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
resources:
tOSBucketInventoryDemo:
type: volcenginecc:tos:BucketInventory
name: TOSBucketInventoryDemo
properties:
bucketName: ccapi-test
destination:
tos_bucket_destination:
accountId: 21xxxxxxxxx
bucket: ccapi-test
format: CSV
prefix: tos_bucket_inventory
role: TosArchiveTOSxxxxxx
filter:
prefix: sdfsaf
includedObjectVersions: Current
inventoryId: test
isEnabled: true
isUnCompressed: false
optionalFields:
field:
- StorageClass
- IntelligentTieringAccessTier
schedule:
frequency: Weekly
Create BucketInventory Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BucketInventory(name: string, args: BucketInventoryArgs, opts?: CustomResourceOptions);@overload
def BucketInventory(resource_name: str,
args: BucketInventoryArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BucketInventory(resource_name: str,
opts: Optional[ResourceOptions] = None,
bucket_name: Optional[str] = None,
destination: Optional[BucketInventoryDestinationArgs] = None,
included_object_versions: Optional[str] = None,
inventory_id: Optional[str] = None,
is_enabled: Optional[bool] = None,
is_un_compressed: Optional[bool] = None,
schedule: Optional[BucketInventoryScheduleArgs] = None,
filter: Optional[BucketInventoryFilterArgs] = None,
optional_fields: Optional[BucketInventoryOptionalFieldsArgs] = None)func NewBucketInventory(ctx *Context, name string, args BucketInventoryArgs, opts ...ResourceOption) (*BucketInventory, error)public BucketInventory(string name, BucketInventoryArgs args, CustomResourceOptions? opts = null)
public BucketInventory(String name, BucketInventoryArgs args)
public BucketInventory(String name, BucketInventoryArgs args, CustomResourceOptions options)
type: volcenginecc:tos:BucketInventory
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args BucketInventoryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args BucketInventoryArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args BucketInventoryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BucketInventoryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BucketInventoryArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var bucketInventoryResource = new Volcenginecc.Tos.BucketInventory("bucketInventoryResource", new()
{
BucketName = "string",
Destination = new Volcenginecc.Tos.Inputs.BucketInventoryDestinationArgs
{
TosBucketDestination = new Volcenginecc.Tos.Inputs.BucketInventoryDestinationTosBucketDestinationArgs
{
AccountId = "string",
Bucket = "string",
Format = "string",
Prefix = "string",
Role = "string",
},
},
IncludedObjectVersions = "string",
InventoryId = "string",
IsEnabled = false,
IsUnCompressed = false,
Schedule = new Volcenginecc.Tos.Inputs.BucketInventoryScheduleArgs
{
Frequency = "string",
},
Filter = new Volcenginecc.Tos.Inputs.BucketInventoryFilterArgs
{
Prefix = "string",
},
OptionalFields = new Volcenginecc.Tos.Inputs.BucketInventoryOptionalFieldsArgs
{
Fields = new[]
{
"string",
},
},
});
example, err := tos.NewBucketInventory(ctx, "bucketInventoryResource", &tos.BucketInventoryArgs{
BucketName: pulumi.String("string"),
Destination: &tos.BucketInventoryDestinationArgs{
TosBucketDestination: &tos.BucketInventoryDestinationTosBucketDestinationArgs{
AccountId: pulumi.String("string"),
Bucket: pulumi.String("string"),
Format: pulumi.String("string"),
Prefix: pulumi.String("string"),
Role: pulumi.String("string"),
},
},
IncludedObjectVersions: pulumi.String("string"),
InventoryId: pulumi.String("string"),
IsEnabled: pulumi.Bool(false),
IsUnCompressed: pulumi.Bool(false),
Schedule: &tos.BucketInventoryScheduleArgs{
Frequency: pulumi.String("string"),
},
Filter: &tos.BucketInventoryFilterArgs{
Prefix: pulumi.String("string"),
},
OptionalFields: &tos.BucketInventoryOptionalFieldsArgs{
Fields: pulumi.StringArray{
pulumi.String("string"),
},
},
})
var bucketInventoryResource = new BucketInventory("bucketInventoryResource", BucketInventoryArgs.builder()
.bucketName("string")
.destination(BucketInventoryDestinationArgs.builder()
.tosBucketDestination(BucketInventoryDestinationTosBucketDestinationArgs.builder()
.accountId("string")
.bucket("string")
.format("string")
.prefix("string")
.role("string")
.build())
.build())
.includedObjectVersions("string")
.inventoryId("string")
.isEnabled(false)
.isUnCompressed(false)
.schedule(BucketInventoryScheduleArgs.builder()
.frequency("string")
.build())
.filter(BucketInventoryFilterArgs.builder()
.prefix("string")
.build())
.optionalFields(BucketInventoryOptionalFieldsArgs.builder()
.fields("string")
.build())
.build());
bucket_inventory_resource = volcenginecc.tos.BucketInventory("bucketInventoryResource",
bucket_name="string",
destination={
"tos_bucket_destination": {
"account_id": "string",
"bucket": "string",
"format": "string",
"prefix": "string",
"role": "string",
},
},
included_object_versions="string",
inventory_id="string",
is_enabled=False,
is_un_compressed=False,
schedule={
"frequency": "string",
},
filter={
"prefix": "string",
},
optional_fields={
"fields": ["string"],
})
const bucketInventoryResource = new volcenginecc.tos.BucketInventory("bucketInventoryResource", {
bucketName: "string",
destination: {
tosBucketDestination: {
accountId: "string",
bucket: "string",
format: "string",
prefix: "string",
role: "string",
},
},
includedObjectVersions: "string",
inventoryId: "string",
isEnabled: false,
isUnCompressed: false,
schedule: {
frequency: "string",
},
filter: {
prefix: "string",
},
optionalFields: {
fields: ["string"],
},
});
type: volcenginecc:tos:BucketInventory
properties:
bucketName: string
destination:
tosBucketDestination:
accountId: string
bucket: string
format: string
prefix: string
role: string
filter:
prefix: string
includedObjectVersions: string
inventoryId: string
isEnabled: false
isUnCompressed: false
optionalFields:
fields:
- string
schedule:
frequency: string
BucketInventory Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The BucketInventory resource accepts the following input properties:
- Bucket
Name string - Bucket name.
- Destination
Volcengine.
Bucket Inventory Destination - Information related to inventory files.
- Included
Object stringVersions - Object version to export. Options: All: export information for all object versions. Current: export information for the current object version.
- Inventory
Id string - Bucket inventory name, which must be globally unique within the current bucket. Details: Length must be 0–64 characters. Only lowercase letters a–z, uppercase letters A–Z, digits 0–9, hyphens (-), underscores (_), and periods (.) are allowed. The name must start and end with a lowercase letter a–z, uppercase letter A–Z, or digit 0–9.
- Is
Enabled bool - Whether to enable the bucket inventory feature. Options: true: enable; false: disable.
- Is
Un boolCompressed - Whether it is uncompressed.
- Schedule
Volcengine.
Bucket Inventory Schedule - Bucket inventory export frequency information.
- Filter
Volcengine.
Bucket Inventory Filter - Prefix for filtering bucket inventory.
- Optional
Fields Volcengine.Bucket Inventory Optional Fields - Information about exported inventory files.
- Bucket
Name string - Bucket name.
- Destination
Bucket
Inventory Destination Args - Information related to inventory files.
- Included
Object stringVersions - Object version to export. Options: All: export information for all object versions. Current: export information for the current object version.
- Inventory
Id string - Bucket inventory name, which must be globally unique within the current bucket. Details: Length must be 0–64 characters. Only lowercase letters a–z, uppercase letters A–Z, digits 0–9, hyphens (-), underscores (_), and periods (.) are allowed. The name must start and end with a lowercase letter a–z, uppercase letter A–Z, or digit 0–9.
- Is
Enabled bool - Whether to enable the bucket inventory feature. Options: true: enable; false: disable.
- Is
Un boolCompressed - Whether it is uncompressed.
- Schedule
Bucket
Inventory Schedule Args - Bucket inventory export frequency information.
- Filter
Bucket
Inventory Filter Args - Prefix for filtering bucket inventory.
- Optional
Fields BucketInventory Optional Fields Args - Information about exported inventory files.
- bucket
Name String - Bucket name.
- destination
Bucket
Inventory Destination - Information related to inventory files.
- included
Object StringVersions - Object version to export. Options: All: export information for all object versions. Current: export information for the current object version.
- inventory
Id String - Bucket inventory name, which must be globally unique within the current bucket. Details: Length must be 0–64 characters. Only lowercase letters a–z, uppercase letters A–Z, digits 0–9, hyphens (-), underscores (_), and periods (.) are allowed. The name must start and end with a lowercase letter a–z, uppercase letter A–Z, or digit 0–9.
- is
Enabled Boolean - Whether to enable the bucket inventory feature. Options: true: enable; false: disable.
- is
Un BooleanCompressed - Whether it is uncompressed.
- schedule
Bucket
Inventory Schedule - Bucket inventory export frequency information.
- filter
Bucket
Inventory Filter - Prefix for filtering bucket inventory.
- optional
Fields BucketInventory Optional Fields - Information about exported inventory files.
- bucket
Name string - Bucket name.
- destination
Bucket
Inventory Destination - Information related to inventory files.
- included
Object stringVersions - Object version to export. Options: All: export information for all object versions. Current: export information for the current object version.
- inventory
Id string - Bucket inventory name, which must be globally unique within the current bucket. Details: Length must be 0–64 characters. Only lowercase letters a–z, uppercase letters A–Z, digits 0–9, hyphens (-), underscores (_), and periods (.) are allowed. The name must start and end with a lowercase letter a–z, uppercase letter A–Z, or digit 0–9.
- is
Enabled boolean - Whether to enable the bucket inventory feature. Options: true: enable; false: disable.
- is
Un booleanCompressed - Whether it is uncompressed.
- schedule
Bucket
Inventory Schedule - Bucket inventory export frequency information.
- filter
Bucket
Inventory Filter - Prefix for filtering bucket inventory.
- optional
Fields BucketInventory Optional Fields - Information about exported inventory files.
- bucket_
name str - Bucket name.
- destination
Bucket
Inventory Destination Args - Information related to inventory files.
- included_
object_ strversions - Object version to export. Options: All: export information for all object versions. Current: export information for the current object version.
- inventory_
id str - Bucket inventory name, which must be globally unique within the current bucket. Details: Length must be 0–64 characters. Only lowercase letters a–z, uppercase letters A–Z, digits 0–9, hyphens (-), underscores (_), and periods (.) are allowed. The name must start and end with a lowercase letter a–z, uppercase letter A–Z, or digit 0–9.
- is_
enabled bool - Whether to enable the bucket inventory feature. Options: true: enable; false: disable.
- is_
un_ boolcompressed - Whether it is uncompressed.
- schedule
Bucket
Inventory Schedule Args - Bucket inventory export frequency information.
- filter
Bucket
Inventory Filter Args - Prefix for filtering bucket inventory.
- optional_
fields BucketInventory Optional Fields Args - Information about exported inventory files.
- bucket
Name String - Bucket name.
- destination Property Map
- Information related to inventory files.
- included
Object StringVersions - Object version to export. Options: All: export information for all object versions. Current: export information for the current object version.
- inventory
Id String - Bucket inventory name, which must be globally unique within the current bucket. Details: Length must be 0–64 characters. Only lowercase letters a–z, uppercase letters A–Z, digits 0–9, hyphens (-), underscores (_), and periods (.) are allowed. The name must start and end with a lowercase letter a–z, uppercase letter A–Z, or digit 0–9.
- is
Enabled Boolean - Whether to enable the bucket inventory feature. Options: true: enable; false: disable.
- is
Un BooleanCompressed - Whether it is uncompressed.
- schedule Property Map
- Bucket inventory export frequency information.
- filter Property Map
- Prefix for filtering bucket inventory.
- optional
Fields Property Map - Information about exported inventory files.
Outputs
All input properties are implicitly available as output properties. Additionally, the BucketInventory resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing BucketInventory Resource
Get an existing BucketInventory resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: BucketInventoryState, opts?: CustomResourceOptions): BucketInventory@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bucket_name: Optional[str] = None,
destination: Optional[BucketInventoryDestinationArgs] = None,
filter: Optional[BucketInventoryFilterArgs] = None,
included_object_versions: Optional[str] = None,
inventory_id: Optional[str] = None,
is_enabled: Optional[bool] = None,
is_un_compressed: Optional[bool] = None,
optional_fields: Optional[BucketInventoryOptionalFieldsArgs] = None,
schedule: Optional[BucketInventoryScheduleArgs] = None) -> BucketInventoryfunc GetBucketInventory(ctx *Context, name string, id IDInput, state *BucketInventoryState, opts ...ResourceOption) (*BucketInventory, error)public static BucketInventory Get(string name, Input<string> id, BucketInventoryState? state, CustomResourceOptions? opts = null)public static BucketInventory get(String name, Output<String> id, BucketInventoryState state, CustomResourceOptions options)resources: _: type: volcenginecc:tos:BucketInventory get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Bucket
Name string - Bucket name.
- Destination
Volcengine.
Bucket Inventory Destination - Information related to inventory files.
- Filter
Volcengine.
Bucket Inventory Filter - Prefix for filtering bucket inventory.
- Included
Object stringVersions - Object version to export. Options: All: export information for all object versions. Current: export information for the current object version.
- Inventory
Id string - Bucket inventory name, which must be globally unique within the current bucket. Details: Length must be 0–64 characters. Only lowercase letters a–z, uppercase letters A–Z, digits 0–9, hyphens (-), underscores (_), and periods (.) are allowed. The name must start and end with a lowercase letter a–z, uppercase letter A–Z, or digit 0–9.
- Is
Enabled bool - Whether to enable the bucket inventory feature. Options: true: enable; false: disable.
- Is
Un boolCompressed - Whether it is uncompressed.
- Optional
Fields Volcengine.Bucket Inventory Optional Fields - Information about exported inventory files.
- Schedule
Volcengine.
Bucket Inventory Schedule - Bucket inventory export frequency information.
- Bucket
Name string - Bucket name.
- Destination
Bucket
Inventory Destination Args - Information related to inventory files.
- Filter
Bucket
Inventory Filter Args - Prefix for filtering bucket inventory.
- Included
Object stringVersions - Object version to export. Options: All: export information for all object versions. Current: export information for the current object version.
- Inventory
Id string - Bucket inventory name, which must be globally unique within the current bucket. Details: Length must be 0–64 characters. Only lowercase letters a–z, uppercase letters A–Z, digits 0–9, hyphens (-), underscores (_), and periods (.) are allowed. The name must start and end with a lowercase letter a–z, uppercase letter A–Z, or digit 0–9.
- Is
Enabled bool - Whether to enable the bucket inventory feature. Options: true: enable; false: disable.
- Is
Un boolCompressed - Whether it is uncompressed.
- Optional
Fields BucketInventory Optional Fields Args - Information about exported inventory files.
- Schedule
Bucket
Inventory Schedule Args - Bucket inventory export frequency information.
- bucket
Name String - Bucket name.
- destination
Bucket
Inventory Destination - Information related to inventory files.
- filter
Bucket
Inventory Filter - Prefix for filtering bucket inventory.
- included
Object StringVersions - Object version to export. Options: All: export information for all object versions. Current: export information for the current object version.
- inventory
Id String - Bucket inventory name, which must be globally unique within the current bucket. Details: Length must be 0–64 characters. Only lowercase letters a–z, uppercase letters A–Z, digits 0–9, hyphens (-), underscores (_), and periods (.) are allowed. The name must start and end with a lowercase letter a–z, uppercase letter A–Z, or digit 0–9.
- is
Enabled Boolean - Whether to enable the bucket inventory feature. Options: true: enable; false: disable.
- is
Un BooleanCompressed - Whether it is uncompressed.
- optional
Fields BucketInventory Optional Fields - Information about exported inventory files.
- schedule
Bucket
Inventory Schedule - Bucket inventory export frequency information.
- bucket
Name string - Bucket name.
- destination
Bucket
Inventory Destination - Information related to inventory files.
- filter
Bucket
Inventory Filter - Prefix for filtering bucket inventory.
- included
Object stringVersions - Object version to export. Options: All: export information for all object versions. Current: export information for the current object version.
- inventory
Id string - Bucket inventory name, which must be globally unique within the current bucket. Details: Length must be 0–64 characters. Only lowercase letters a–z, uppercase letters A–Z, digits 0–9, hyphens (-), underscores (_), and periods (.) are allowed. The name must start and end with a lowercase letter a–z, uppercase letter A–Z, or digit 0–9.
- is
Enabled boolean - Whether to enable the bucket inventory feature. Options: true: enable; false: disable.
- is
Un booleanCompressed - Whether it is uncompressed.
- optional
Fields BucketInventory Optional Fields - Information about exported inventory files.
- schedule
Bucket
Inventory Schedule - Bucket inventory export frequency information.
- bucket_
name str - Bucket name.
- destination
Bucket
Inventory Destination Args - Information related to inventory files.
- filter
Bucket
Inventory Filter Args - Prefix for filtering bucket inventory.
- included_
object_ strversions - Object version to export. Options: All: export information for all object versions. Current: export information for the current object version.
- inventory_
id str - Bucket inventory name, which must be globally unique within the current bucket. Details: Length must be 0–64 characters. Only lowercase letters a–z, uppercase letters A–Z, digits 0–9, hyphens (-), underscores (_), and periods (.) are allowed. The name must start and end with a lowercase letter a–z, uppercase letter A–Z, or digit 0–9.
- is_
enabled bool - Whether to enable the bucket inventory feature. Options: true: enable; false: disable.
- is_
un_ boolcompressed - Whether it is uncompressed.
- optional_
fields BucketInventory Optional Fields Args - Information about exported inventory files.
- schedule
Bucket
Inventory Schedule Args - Bucket inventory export frequency information.
- bucket
Name String - Bucket name.
- destination Property Map
- Information related to inventory files.
- filter Property Map
- Prefix for filtering bucket inventory.
- included
Object StringVersions - Object version to export. Options: All: export information for all object versions. Current: export information for the current object version.
- inventory
Id String - Bucket inventory name, which must be globally unique within the current bucket. Details: Length must be 0–64 characters. Only lowercase letters a–z, uppercase letters A–Z, digits 0–9, hyphens (-), underscores (_), and periods (.) are allowed. The name must start and end with a lowercase letter a–z, uppercase letter A–Z, or digit 0–9.
- is
Enabled Boolean - Whether to enable the bucket inventory feature. Options: true: enable; false: disable.
- is
Un BooleanCompressed - Whether it is uncompressed.
- optional
Fields Property Map - Information about exported inventory files.
- schedule Property Map
- Bucket inventory export frequency information.
Supporting Types
BucketInventoryDestination, BucketInventoryDestinationArgs
- Tos
Bucket Volcengine.Destination Bucket Inventory Destination Tos Bucket Destination - Bucket information related to the inventory files.
- Tos
Bucket BucketDestination Inventory Destination Tos Bucket Destination - Bucket information related to the inventory files.
- tos
Bucket BucketDestination Inventory Destination Tos Bucket Destination - Bucket information related to the inventory files.
- tos
Bucket BucketDestination Inventory Destination Tos Bucket Destination - Bucket information related to the inventory files.
- tos_
bucket_ Bucketdestination Inventory Destination Tos Bucket Destination - Bucket information related to the inventory files.
- tos
Bucket Property MapDestination - Bucket information related to the inventory files.
BucketInventoryDestinationTosBucketDestination, BucketInventoryDestinationTosBucketDestinationArgs
- Account
Id string - Account ID of the bucket owner.
- Bucket string
- Specify the bucket to store the inventory files.
- Format string
- Inventory file format. Value is CSV, meaning the inventory file is in CSV format compressed with GZIP.
- Prefix string
- Prefix for the storage path of inventory files. By default, files are saved under tosbucketinventory/sourceBucketName/inventoryId/YYYY-MM-DDTHH-MMZ/files in the target bucket.
- Role string
- Role name used to grant permission to read all files from the source bucket and write files to the target bucket. The role must have TOS read/write and service access permissions. You can also use the default TOS role TosArchiveTOSInventory.
- Account
Id string - Account ID of the bucket owner.
- Bucket string
- Specify the bucket to store the inventory files.
- Format string
- Inventory file format. Value is CSV, meaning the inventory file is in CSV format compressed with GZIP.
- Prefix string
- Prefix for the storage path of inventory files. By default, files are saved under tosbucketinventory/sourceBucketName/inventoryId/YYYY-MM-DDTHH-MMZ/files in the target bucket.
- Role string
- Role name used to grant permission to read all files from the source bucket and write files to the target bucket. The role must have TOS read/write and service access permissions. You can also use the default TOS role TosArchiveTOSInventory.
- account
Id String - Account ID of the bucket owner.
- bucket String
- Specify the bucket to store the inventory files.
- format String
- Inventory file format. Value is CSV, meaning the inventory file is in CSV format compressed with GZIP.
- prefix String
- Prefix for the storage path of inventory files. By default, files are saved under tosbucketinventory/sourceBucketName/inventoryId/YYYY-MM-DDTHH-MMZ/files in the target bucket.
- role String
- Role name used to grant permission to read all files from the source bucket and write files to the target bucket. The role must have TOS read/write and service access permissions. You can also use the default TOS role TosArchiveTOSInventory.
- account
Id string - Account ID of the bucket owner.
- bucket string
- Specify the bucket to store the inventory files.
- format string
- Inventory file format. Value is CSV, meaning the inventory file is in CSV format compressed with GZIP.
- prefix string
- Prefix for the storage path of inventory files. By default, files are saved under tosbucketinventory/sourceBucketName/inventoryId/YYYY-MM-DDTHH-MMZ/files in the target bucket.
- role string
- Role name used to grant permission to read all files from the source bucket and write files to the target bucket. The role must have TOS read/write and service access permissions. You can also use the default TOS role TosArchiveTOSInventory.
- account_
id str - Account ID of the bucket owner.
- bucket str
- Specify the bucket to store the inventory files.
- format str
- Inventory file format. Value is CSV, meaning the inventory file is in CSV format compressed with GZIP.
- prefix str
- Prefix for the storage path of inventory files. By default, files are saved under tosbucketinventory/sourceBucketName/inventoryId/YYYY-MM-DDTHH-MMZ/files in the target bucket.
- role str
- Role name used to grant permission to read all files from the source bucket and write files to the target bucket. The role must have TOS read/write and service access permissions. You can also use the default TOS role TosArchiveTOSInventory.
- account
Id String - Account ID of the bucket owner.
- bucket String
- Specify the bucket to store the inventory files.
- format String
- Inventory file format. Value is CSV, meaning the inventory file is in CSV format compressed with GZIP.
- prefix String
- Prefix for the storage path of inventory files. By default, files are saved under tosbucketinventory/sourceBucketName/inventoryId/YYYY-MM-DDTHH-MMZ/files in the target bucket.
- role String
- Role name used to grant permission to read all files from the source bucket and write files to the target bucket. The role must have TOS read/write and service access permissions. You can also use the default TOS role TosArchiveTOSInventory.
BucketInventoryFilter, BucketInventoryFilterArgs
- Prefix string
- Prefix matching information for exported files. If not set, an inventory of all objects in the bucket is generated by default.
- Prefix string
- Prefix matching information for exported files. If not set, an inventory of all objects in the bucket is generated by default.
- prefix String
- Prefix matching information for exported files. If not set, an inventory of all objects in the bucket is generated by default.
- prefix string
- Prefix matching information for exported files. If not set, an inventory of all objects in the bucket is generated by default.
- prefix str
- Prefix matching information for exported files. If not set, an inventory of all objects in the bucket is generated by default.
- prefix String
- Prefix matching information for exported files. If not set, an inventory of all objects in the bucket is generated by default.
BucketInventoryOptionalFields, BucketInventoryOptionalFieldsArgs
- Fields List<string>
- Information about exported inventory files.
- Fields []string
- Information about exported inventory files.
- fields List<String>
- Information about exported inventory files.
- fields string[]
- Information about exported inventory files.
- fields Sequence[str]
- Information about exported inventory files.
- fields List<String>
- Information about exported inventory files.
BucketInventorySchedule, BucketInventoryScheduleArgs
- Frequency string
- Export frequency for inventory files. Options: Daily: export inventory files daily. Weekly: export inventory files weekly. Once: export inventory files once.
- Frequency string
- Export frequency for inventory files. Options: Daily: export inventory files daily. Weekly: export inventory files weekly. Once: export inventory files once.
- frequency String
- Export frequency for inventory files. Options: Daily: export inventory files daily. Weekly: export inventory files weekly. Once: export inventory files once.
- frequency string
- Export frequency for inventory files. Options: Daily: export inventory files daily. Weekly: export inventory files weekly. Once: export inventory files once.
- frequency str
- Export frequency for inventory files. Options: Daily: export inventory files daily. Weekly: export inventory files weekly. Once: export inventory files once.
- frequency String
- Export frequency for inventory files. Options: Daily: export inventory files daily. Weekly: export inventory files weekly. Once: export inventory files once.
Import
$ pulumi import volcenginecc:tos/bucketInventory:BucketInventory example "bucket_name|inventory_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcengineccTerraform Provider.
published on Thursday, Apr 23, 2026 by Volcengine
