volcengine.tos.BucketInventory
Explore with Pulumi AI
Provides a resource to manage tos bucket inventory
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const foo = new volcengine.tos.BucketInventory("foo", {
bucketName: "terraform-demo",
destination: {
tosBucketDestination: {
accountId: "21000*****",
bucket: "terraform-demo",
format: "CSV",
prefix: "tf-test-prefix",
role: "TosArchiveTOSInventory",
},
},
filter: {
prefix: "test-tf",
},
includedObjectVersions: "All",
inventoryId: "acc-test-inventory",
isEnabled: true,
optionalFields: {
fields: [
"Size",
"StorageClass",
"CRC64",
],
},
schedule: {
frequency: "Weekly",
},
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.tos.BucketInventory("foo",
bucket_name="terraform-demo",
destination=volcengine.tos.BucketInventoryDestinationArgs(
tos_bucket_destination=volcengine.tos.BucketInventoryDestinationTosBucketDestinationArgs(
account_id="21000*****",
bucket="terraform-demo",
format="CSV",
prefix="tf-test-prefix",
role="TosArchiveTOSInventory",
),
),
filter=volcengine.tos.BucketInventoryFilterArgs(
prefix="test-tf",
),
included_object_versions="All",
inventory_id="acc-test-inventory",
is_enabled=True,
optional_fields=volcengine.tos.BucketInventoryOptionalFieldsArgs(
fields=[
"Size",
"StorageClass",
"CRC64",
],
),
schedule=volcengine.tos.BucketInventoryScheduleArgs(
frequency="Weekly",
))
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/tos"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tos.NewBucketInventory(ctx, "foo", &tos.BucketInventoryArgs{
BucketName: pulumi.String("terraform-demo"),
Destination: &tos.BucketInventoryDestinationArgs{
TosBucketDestination: &tos.BucketInventoryDestinationTosBucketDestinationArgs{
AccountId: pulumi.String("21000*****"),
Bucket: pulumi.String("terraform-demo"),
Format: pulumi.String("CSV"),
Prefix: pulumi.String("tf-test-prefix"),
Role: pulumi.String("TosArchiveTOSInventory"),
},
},
Filter: &tos.BucketInventoryFilterArgs{
Prefix: pulumi.String("test-tf"),
},
IncludedObjectVersions: pulumi.String("All"),
InventoryId: pulumi.String("acc-test-inventory"),
IsEnabled: pulumi.Bool(true),
OptionalFields: &tos.BucketInventoryOptionalFieldsArgs{
Fields: pulumi.StringArray{
pulumi.String("Size"),
pulumi.String("StorageClass"),
pulumi.String("CRC64"),
},
},
Schedule: &tos.BucketInventoryScheduleArgs{
Frequency: pulumi.String("Weekly"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = new Volcengine.Tos.BucketInventory("foo", new()
{
BucketName = "terraform-demo",
Destination = new Volcengine.Tos.Inputs.BucketInventoryDestinationArgs
{
TosBucketDestination = new Volcengine.Tos.Inputs.BucketInventoryDestinationTosBucketDestinationArgs
{
AccountId = "21000*****",
Bucket = "terraform-demo",
Format = "CSV",
Prefix = "tf-test-prefix",
Role = "TosArchiveTOSInventory",
},
},
Filter = new Volcengine.Tos.Inputs.BucketInventoryFilterArgs
{
Prefix = "test-tf",
},
IncludedObjectVersions = "All",
InventoryId = "acc-test-inventory",
IsEnabled = true,
OptionalFields = new Volcengine.Tos.Inputs.BucketInventoryOptionalFieldsArgs
{
Fields = new[]
{
"Size",
"StorageClass",
"CRC64",
},
},
Schedule = new Volcengine.Tos.Inputs.BucketInventoryScheduleArgs
{
Frequency = "Weekly",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.tos.BucketInventory;
import com.pulumi.volcengine.tos.BucketInventoryArgs;
import com.pulumi.volcengine.tos.inputs.BucketInventoryDestinationArgs;
import com.pulumi.volcengine.tos.inputs.BucketInventoryDestinationTosBucketDestinationArgs;
import com.pulumi.volcengine.tos.inputs.BucketInventoryFilterArgs;
import com.pulumi.volcengine.tos.inputs.BucketInventoryOptionalFieldsArgs;
import com.pulumi.volcengine.tos.inputs.BucketInventoryScheduleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var foo = new BucketInventory("foo", BucketInventoryArgs.builder()
.bucketName("terraform-demo")
.destination(BucketInventoryDestinationArgs.builder()
.tosBucketDestination(BucketInventoryDestinationTosBucketDestinationArgs.builder()
.accountId("21000*****")
.bucket("terraform-demo")
.format("CSV")
.prefix("tf-test-prefix")
.role("TosArchiveTOSInventory")
.build())
.build())
.filter(BucketInventoryFilterArgs.builder()
.prefix("test-tf")
.build())
.includedObjectVersions("All")
.inventoryId("acc-test-inventory")
.isEnabled(true)
.optionalFields(BucketInventoryOptionalFieldsArgs.builder()
.fields(
"Size",
"StorageClass",
"CRC64")
.build())
.schedule(BucketInventoryScheduleArgs.builder()
.frequency("Weekly")
.build())
.build());
}
}
resources:
foo:
type: volcengine:tos:BucketInventory
properties:
bucketName: terraform-demo
destination:
tosBucketDestination:
accountId: 21000*****
bucket: terraform-demo
format: CSV
prefix: tf-test-prefix
role: TosArchiveTOSInventory
filter:
prefix: test-tf
includedObjectVersions: All
inventoryId: acc-test-inventory
isEnabled: true
optionalFields:
fields:
- Size
- StorageClass
- CRC64
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,
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: volcengine: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 Volcengine.Tos.BucketInventory("bucketInventoryResource", new()
{
BucketName = "string",
Destination = new Volcengine.Tos.Inputs.BucketInventoryDestinationArgs
{
TosBucketDestination = new Volcengine.Tos.Inputs.BucketInventoryDestinationTosBucketDestinationArgs
{
AccountId = "string",
Bucket = "string",
Format = "string",
Role = "string",
Prefix = "string",
},
},
IncludedObjectVersions = "string",
InventoryId = "string",
IsEnabled = false,
Schedule = new Volcengine.Tos.Inputs.BucketInventoryScheduleArgs
{
Frequency = "string",
},
Filter = new Volcengine.Tos.Inputs.BucketInventoryFilterArgs
{
Prefix = "string",
},
OptionalFields = new Volcengine.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"),
Role: pulumi.String("string"),
Prefix: pulumi.String("string"),
},
},
IncludedObjectVersions: pulumi.String("string"),
InventoryId: pulumi.String("string"),
IsEnabled: 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")
.role("string")
.prefix("string")
.build())
.build())
.includedObjectVersions("string")
.inventoryId("string")
.isEnabled(false)
.schedule(BucketInventoryScheduleArgs.builder()
.frequency("string")
.build())
.filter(BucketInventoryFilterArgs.builder()
.prefix("string")
.build())
.optionalFields(BucketInventoryOptionalFieldsArgs.builder()
.fields("string")
.build())
.build());
bucket_inventory_resource = volcengine.tos.BucketInventory("bucketInventoryResource",
bucket_name="string",
destination={
"tos_bucket_destination": {
"account_id": "string",
"bucket": "string",
"format": "string",
"role": "string",
"prefix": "string",
},
},
included_object_versions="string",
inventory_id="string",
is_enabled=False,
schedule={
"frequency": "string",
},
filter={
"prefix": "string",
},
optional_fields={
"fields": ["string"],
})
const bucketInventoryResource = new volcengine.tos.BucketInventory("bucketInventoryResource", {
bucketName: "string",
destination: {
tosBucketDestination: {
accountId: "string",
bucket: "string",
format: "string",
role: "string",
prefix: "string",
},
},
includedObjectVersions: "string",
inventoryId: "string",
isEnabled: false,
schedule: {
frequency: "string",
},
filter: {
prefix: "string",
},
optionalFields: {
fields: ["string"],
},
});
type: volcengine: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
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 - The name of the bucket.
- Destination
Bucket
Inventory Destination - The destination information of the bucket inventory.
- Included
Object stringVersions - The export version of object. Valid values:
All
,Current
. - Inventory
Id string - The name of the bucket inventory.
- Is
Enabled bool - Whether to enable the bucket inventory.
- Schedule
Bucket
Inventory Schedule - The export schedule of the bucket inventory.
- Filter
Bucket
Inventory Filter - The filter of the bucket inventory.
- Optional
Fields BucketInventory Optional Fields - The information exported from the bucket inventory.
- Bucket
Name string - The name of the bucket.
- Destination
Bucket
Inventory Destination Args - The destination information of the bucket inventory.
- Included
Object stringVersions - The export version of object. Valid values:
All
,Current
. - Inventory
Id string - The name of the bucket inventory.
- Is
Enabled bool - Whether to enable the bucket inventory.
- Schedule
Bucket
Inventory Schedule Args - The export schedule of the bucket inventory.
- Filter
Bucket
Inventory Filter Args - The filter of the bucket inventory.
- Optional
Fields BucketInventory Optional Fields Args - The information exported from the bucket inventory.
- bucket
Name String - The name of the bucket.
- destination
Bucket
Inventory Destination - The destination information of the bucket inventory.
- included
Object StringVersions - The export version of object. Valid values:
All
,Current
. - inventory
Id String - The name of the bucket inventory.
- is
Enabled Boolean - Whether to enable the bucket inventory.
- schedule
Bucket
Inventory Schedule - The export schedule of the bucket inventory.
- filter
Bucket
Inventory Filter - The filter of the bucket inventory.
- optional
Fields BucketInventory Optional Fields - The information exported from the bucket inventory.
- bucket
Name string - The name of the bucket.
- destination
Bucket
Inventory Destination - The destination information of the bucket inventory.
- included
Object stringVersions - The export version of object. Valid values:
All
,Current
. - inventory
Id string - The name of the bucket inventory.
- is
Enabled boolean - Whether to enable the bucket inventory.
- schedule
Bucket
Inventory Schedule - The export schedule of the bucket inventory.
- filter
Bucket
Inventory Filter - The filter of the bucket inventory.
- optional
Fields BucketInventory Optional Fields - The information exported from the bucket inventory.
- bucket_
name str - The name of the bucket.
- destination
Bucket
Inventory Destination Args - The destination information of the bucket inventory.
- included_
object_ strversions - The export version of object. Valid values:
All
,Current
. - inventory_
id str - The name of the bucket inventory.
- is_
enabled bool - Whether to enable the bucket inventory.
- schedule
Bucket
Inventory Schedule Args - The export schedule of the bucket inventory.
- filter
Bucket
Inventory Filter Args - The filter of the bucket inventory.
- optional_
fields BucketInventory Optional Fields Args - The information exported from the bucket inventory.
- bucket
Name String - The name of the bucket.
- destination Property Map
- The destination information of the bucket inventory.
- included
Object StringVersions - The export version of object. Valid values:
All
,Current
. - inventory
Id String - The name of the bucket inventory.
- is
Enabled Boolean - Whether to enable the bucket inventory.
- schedule Property Map
- The export schedule of the bucket inventory.
- filter Property Map
- The filter of the bucket inventory.
- optional
Fields Property Map - The information exported from the bucket inventory.
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,
optional_fields: Optional[BucketInventoryOptionalFieldsArgs] = None,
schedule: Optional[BucketInventoryScheduleArgs] = None) -> BucketInventory
func 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: volcengine: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 - The name of the bucket.
- Destination
Bucket
Inventory Destination - The destination information of the bucket inventory.
- Filter
Bucket
Inventory Filter - The filter of the bucket inventory.
- Included
Object stringVersions - The export version of object. Valid values:
All
,Current
. - Inventory
Id string - The name of the bucket inventory.
- Is
Enabled bool - Whether to enable the bucket inventory.
- Optional
Fields BucketInventory Optional Fields - The information exported from the bucket inventory.
- Schedule
Bucket
Inventory Schedule - The export schedule of the bucket inventory.
- Bucket
Name string - The name of the bucket.
- Destination
Bucket
Inventory Destination Args - The destination information of the bucket inventory.
- Filter
Bucket
Inventory Filter Args - The filter of the bucket inventory.
- Included
Object stringVersions - The export version of object. Valid values:
All
,Current
. - Inventory
Id string - The name of the bucket inventory.
- Is
Enabled bool - Whether to enable the bucket inventory.
- Optional
Fields BucketInventory Optional Fields Args - The information exported from the bucket inventory.
- Schedule
Bucket
Inventory Schedule Args - The export schedule of the bucket inventory.
- bucket
Name String - The name of the bucket.
- destination
Bucket
Inventory Destination - The destination information of the bucket inventory.
- filter
Bucket
Inventory Filter - The filter of the bucket inventory.
- included
Object StringVersions - The export version of object. Valid values:
All
,Current
. - inventory
Id String - The name of the bucket inventory.
- is
Enabled Boolean - Whether to enable the bucket inventory.
- optional
Fields BucketInventory Optional Fields - The information exported from the bucket inventory.
- schedule
Bucket
Inventory Schedule - The export schedule of the bucket inventory.
- bucket
Name string - The name of the bucket.
- destination
Bucket
Inventory Destination - The destination information of the bucket inventory.
- filter
Bucket
Inventory Filter - The filter of the bucket inventory.
- included
Object stringVersions - The export version of object. Valid values:
All
,Current
. - inventory
Id string - The name of the bucket inventory.
- is
Enabled boolean - Whether to enable the bucket inventory.
- optional
Fields BucketInventory Optional Fields - The information exported from the bucket inventory.
- schedule
Bucket
Inventory Schedule - The export schedule of the bucket inventory.
- bucket_
name str - The name of the bucket.
- destination
Bucket
Inventory Destination Args - The destination information of the bucket inventory.
- filter
Bucket
Inventory Filter Args - The filter of the bucket inventory.
- included_
object_ strversions - The export version of object. Valid values:
All
,Current
. - inventory_
id str - The name of the bucket inventory.
- is_
enabled bool - Whether to enable the bucket inventory.
- optional_
fields BucketInventory Optional Fields Args - The information exported from the bucket inventory.
- schedule
Bucket
Inventory Schedule Args - The export schedule of the bucket inventory.
- bucket
Name String - The name of the bucket.
- destination Property Map
- The destination information of the bucket inventory.
- filter Property Map
- The filter of the bucket inventory.
- included
Object StringVersions - The export version of object. Valid values:
All
,Current
. - inventory
Id String - The name of the bucket inventory.
- is
Enabled Boolean - Whether to enable the bucket inventory.
- optional
Fields Property Map - The information exported from the bucket inventory.
- schedule Property Map
- The export schedule of the bucket inventory.
Supporting Types
BucketInventoryDestination, BucketInventoryDestinationArgs
- Tos
Bucket BucketDestination Inventory Destination Tos Bucket Destination - The destination tos bucket information of the bucket inventory.
- Tos
Bucket BucketDestination Inventory Destination Tos Bucket Destination - The destination tos bucket information of the bucket inventory.
- tos
Bucket BucketDestination Inventory Destination Tos Bucket Destination - The destination tos bucket information of the bucket inventory.
- tos
Bucket BucketDestination Inventory Destination Tos Bucket Destination - The destination tos bucket information of the bucket inventory.
- tos_
bucket_ Bucketdestination Inventory Destination Tos Bucket Destination - The destination tos bucket information of the bucket inventory.
- tos
Bucket Property MapDestination - The destination tos bucket information of the bucket inventory.
BucketInventoryDestinationTosBucketDestination, BucketInventoryDestinationTosBucketDestinationArgs
- Account
Id string - The account id of the destination tos bucket.
- Bucket string
- The name of the destination tos bucket.
- Format string
- The format of the bucket inventory. Valid values:
CSV
. - Role string
- The role name used to grant TOS access to read all files from the source bucket and write files to the destination bucket. You can use the default TOS role
TosArchiveTOSInventory
. - Prefix string
- The storage path prefix of the bucket inventory in destination tos bucket.
- Account
Id string - The account id of the destination tos bucket.
- Bucket string
- The name of the destination tos bucket.
- Format string
- The format of the bucket inventory. Valid values:
CSV
. - Role string
- The role name used to grant TOS access to read all files from the source bucket and write files to the destination bucket. You can use the default TOS role
TosArchiveTOSInventory
. - Prefix string
- The storage path prefix of the bucket inventory in destination tos bucket.
- account
Id String - The account id of the destination tos bucket.
- bucket String
- The name of the destination tos bucket.
- format String
- The format of the bucket inventory. Valid values:
CSV
. - role String
- The role name used to grant TOS access to read all files from the source bucket and write files to the destination bucket. You can use the default TOS role
TosArchiveTOSInventory
. - prefix String
- The storage path prefix of the bucket inventory in destination tos bucket.
- account
Id string - The account id of the destination tos bucket.
- bucket string
- The name of the destination tos bucket.
- format string
- The format of the bucket inventory. Valid values:
CSV
. - role string
- The role name used to grant TOS access to read all files from the source bucket and write files to the destination bucket. You can use the default TOS role
TosArchiveTOSInventory
. - prefix string
- The storage path prefix of the bucket inventory in destination tos bucket.
- account_
id str - The account id of the destination tos bucket.
- bucket str
- The name of the destination tos bucket.
- format str
- The format of the bucket inventory. Valid values:
CSV
. - role str
- The role name used to grant TOS access to read all files from the source bucket and write files to the destination bucket. You can use the default TOS role
TosArchiveTOSInventory
. - prefix str
- The storage path prefix of the bucket inventory in destination tos bucket.
- account
Id String - The account id of the destination tos bucket.
- bucket String
- The name of the destination tos bucket.
- format String
- The format of the bucket inventory. Valid values:
CSV
. - role String
- The role name used to grant TOS access to read all files from the source bucket and write files to the destination bucket. You can use the default TOS role
TosArchiveTOSInventory
. - prefix String
- The storage path prefix of the bucket inventory in destination tos bucket.
BucketInventoryFilter, BucketInventoryFilterArgs
- Prefix string
- The prefix matching information of the exported object. If not set, a list of all objects in the bucket will be generated by default.
- Prefix string
- The prefix matching information of the exported object. If not set, a list of all objects in the bucket will be generated by default.
- prefix String
- The prefix matching information of the exported object. If not set, a list of all objects in the bucket will be generated by default.
- prefix string
- The prefix matching information of the exported object. If not set, a list of all objects in the bucket will be generated by default.
- prefix str
- The prefix matching information of the exported object. If not set, a list of all objects in the bucket will be generated by default.
- prefix String
- The prefix matching information of the exported object. If not set, a list of all objects in the bucket will be generated by default.
BucketInventoryOptionalFields, BucketInventoryOptionalFieldsArgs
- Fields List<string>
- The information exported from the bucket inventory. Valid values:
Size
,LastModifiedDate
,ETag
,StorageClass
,IsMultipartUploaded
,EncryptionStatus
,CRC64
,ReplicationStatus
.
- Fields []string
- The information exported from the bucket inventory. Valid values:
Size
,LastModifiedDate
,ETag
,StorageClass
,IsMultipartUploaded
,EncryptionStatus
,CRC64
,ReplicationStatus
.
- fields List<String>
- The information exported from the bucket inventory. Valid values:
Size
,LastModifiedDate
,ETag
,StorageClass
,IsMultipartUploaded
,EncryptionStatus
,CRC64
,ReplicationStatus
.
- fields string[]
- The information exported from the bucket inventory. Valid values:
Size
,LastModifiedDate
,ETag
,StorageClass
,IsMultipartUploaded
,EncryptionStatus
,CRC64
,ReplicationStatus
.
- fields Sequence[str]
- The information exported from the bucket inventory. Valid values:
Size
,LastModifiedDate
,ETag
,StorageClass
,IsMultipartUploaded
,EncryptionStatus
,CRC64
,ReplicationStatus
.
- fields List<String>
- The information exported from the bucket inventory. Valid values:
Size
,LastModifiedDate
,ETag
,StorageClass
,IsMultipartUploaded
,EncryptionStatus
,CRC64
,ReplicationStatus
.
BucketInventorySchedule, BucketInventoryScheduleArgs
- Frequency string
- The export schedule of the bucket inventory. Valid values:
Daily
,Weekly
.
- Frequency string
- The export schedule of the bucket inventory. Valid values:
Daily
,Weekly
.
- frequency String
- The export schedule of the bucket inventory. Valid values:
Daily
,Weekly
.
- frequency string
- The export schedule of the bucket inventory. Valid values:
Daily
,Weekly
.
- frequency str
- The export schedule of the bucket inventory. Valid values:
Daily
,Weekly
.
- frequency String
- The export schedule of the bucket inventory. Valid values:
Daily
,Weekly
.
Import
TosBucketInventory can be imported using the bucket_name:inventory_id, e.g.
$ pulumi import volcengine:tos/bucketInventory:BucketInventory default resource_id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.