1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. CosBucketInventory
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.CosBucketInventory

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a cos bucket inventory

    NOTE: The current resource does not support cdc.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const info = tencentcloud.getUserInfo({});
    const appId = info.then(info => info.appId);
    // create cos
    const exampleCosBucket = new tencentcloud.CosBucket("exampleCosBucket", {
        bucket: appId.then(appId => `private-bucket-${appId}`),
        acl: "private",
    });
    // create cos bucket inventory
    const exampleCosBucketInventory = new tencentcloud.CosBucketInventory("exampleCosBucketInventory", {
        bucket: exampleCosBucket.cosBucketId,
        isEnabled: "true",
        includedObjectVersions: "Current",
        optionalFields: {
            fields: [
                "Size",
                "ETag",
            ],
        },
        filter: {
            period: {
                startTime: "1687276800",
            },
        },
        schedule: {
            frequency: "Daily",
        },
        destination: {
            bucket: "qcs::cos:ap-guangzhou::private-bucket-1309118522",
            format: "CSV",
            prefix: "frontends",
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    info = tencentcloud.get_user_info()
    app_id = info.app_id
    # create cos
    example_cos_bucket = tencentcloud.CosBucket("exampleCosBucket",
        bucket=f"private-bucket-{app_id}",
        acl="private")
    # create cos bucket inventory
    example_cos_bucket_inventory = tencentcloud.CosBucketInventory("exampleCosBucketInventory",
        bucket=example_cos_bucket.cos_bucket_id,
        is_enabled="true",
        included_object_versions="Current",
        optional_fields={
            "fields": [
                "Size",
                "ETag",
            ],
        },
        filter={
            "period": {
                "start_time": "1687276800",
            },
        },
        schedule={
            "frequency": "Daily",
        },
        destination={
            "bucket": "qcs::cos:ap-guangzhou::private-bucket-1309118522",
            "format": "CSV",
            "prefix": "frontends",
        })
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		info, err := tencentcloud.GetUserInfo(ctx, &tencentcloud.GetUserInfoArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		appId := info.AppId
    		// create cos
    		exampleCosBucket, err := tencentcloud.NewCosBucket(ctx, "exampleCosBucket", &tencentcloud.CosBucketArgs{
    			Bucket: pulumi.Sprintf("private-bucket-%v", appId),
    			Acl:    pulumi.String("private"),
    		})
    		if err != nil {
    			return err
    		}
    		// create cos bucket inventory
    		_, err = tencentcloud.NewCosBucketInventory(ctx, "exampleCosBucketInventory", &tencentcloud.CosBucketInventoryArgs{
    			Bucket:                 exampleCosBucket.CosBucketId,
    			IsEnabled:              pulumi.String("true"),
    			IncludedObjectVersions: pulumi.String("Current"),
    			OptionalFields: &tencentcloud.CosBucketInventoryOptionalFieldsArgs{
    				Fields: pulumi.StringArray{
    					pulumi.String("Size"),
    					pulumi.String("ETag"),
    				},
    			},
    			Filter: &tencentcloud.CosBucketInventoryFilterArgs{
    				Period: &tencentcloud.CosBucketInventoryFilterPeriodArgs{
    					StartTime: pulumi.String("1687276800"),
    				},
    			},
    			Schedule: &tencentcloud.CosBucketInventoryScheduleArgs{
    				Frequency: pulumi.String("Daily"),
    			},
    			Destination: &tencentcloud.CosBucketInventoryDestinationArgs{
    				Bucket: pulumi.String("qcs::cos:ap-guangzhou::private-bucket-1309118522"),
    				Format: pulumi.String("CSV"),
    				Prefix: pulumi.String("frontends"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var info = Tencentcloud.GetUserInfo.Invoke();
    
        var appId = info.Apply(getUserInfoResult => getUserInfoResult.AppId);
    
        // create cos
        var exampleCosBucket = new Tencentcloud.CosBucket("exampleCosBucket", new()
        {
            Bucket = appId.Apply(appId => $"private-bucket-{appId}"),
            Acl = "private",
        });
    
        // create cos bucket inventory
        var exampleCosBucketInventory = new Tencentcloud.CosBucketInventory("exampleCosBucketInventory", new()
        {
            Bucket = exampleCosBucket.CosBucketId,
            IsEnabled = "true",
            IncludedObjectVersions = "Current",
            OptionalFields = new Tencentcloud.Inputs.CosBucketInventoryOptionalFieldsArgs
            {
                Fields = new[]
                {
                    "Size",
                    "ETag",
                },
            },
            Filter = new Tencentcloud.Inputs.CosBucketInventoryFilterArgs
            {
                Period = new Tencentcloud.Inputs.CosBucketInventoryFilterPeriodArgs
                {
                    StartTime = "1687276800",
                },
            },
            Schedule = new Tencentcloud.Inputs.CosBucketInventoryScheduleArgs
            {
                Frequency = "Daily",
            },
            Destination = new Tencentcloud.Inputs.CosBucketInventoryDestinationArgs
            {
                Bucket = "qcs::cos:ap-guangzhou::private-bucket-1309118522",
                Format = "CSV",
                Prefix = "frontends",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetUserInfoArgs;
    import com.pulumi.tencentcloud.CosBucket;
    import com.pulumi.tencentcloud.CosBucketArgs;
    import com.pulumi.tencentcloud.CosBucketInventory;
    import com.pulumi.tencentcloud.CosBucketInventoryArgs;
    import com.pulumi.tencentcloud.inputs.CosBucketInventoryOptionalFieldsArgs;
    import com.pulumi.tencentcloud.inputs.CosBucketInventoryFilterArgs;
    import com.pulumi.tencentcloud.inputs.CosBucketInventoryFilterPeriodArgs;
    import com.pulumi.tencentcloud.inputs.CosBucketInventoryScheduleArgs;
    import com.pulumi.tencentcloud.inputs.CosBucketInventoryDestinationArgs;
    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) {
            final var info = TencentcloudFunctions.getUserInfo();
    
            final var appId = info.applyValue(getUserInfoResult -> getUserInfoResult.appId());
    
            // create cos
            var exampleCosBucket = new CosBucket("exampleCosBucket", CosBucketArgs.builder()
                .bucket(String.format("private-bucket-%s", appId))
                .acl("private")
                .build());
    
            // create cos bucket inventory
            var exampleCosBucketInventory = new CosBucketInventory("exampleCosBucketInventory", CosBucketInventoryArgs.builder()
                .bucket(exampleCosBucket.cosBucketId())
                .isEnabled("true")
                .includedObjectVersions("Current")
                .optionalFields(CosBucketInventoryOptionalFieldsArgs.builder()
                    .fields(                
                        "Size",
                        "ETag")
                    .build())
                .filter(CosBucketInventoryFilterArgs.builder()
                    .period(CosBucketInventoryFilterPeriodArgs.builder()
                        .startTime("1687276800")
                        .build())
                    .build())
                .schedule(CosBucketInventoryScheduleArgs.builder()
                    .frequency("Daily")
                    .build())
                .destination(CosBucketInventoryDestinationArgs.builder()
                    .bucket("qcs::cos:ap-guangzhou::private-bucket-1309118522")
                    .format("CSV")
                    .prefix("frontends")
                    .build())
                .build());
    
        }
    }
    
    resources:
      # create cos
      exampleCosBucket:
        type: tencentcloud:CosBucket
        properties:
          bucket: private-bucket-${appId}
          acl: private
      # create cos bucket inventory
      exampleCosBucketInventory:
        type: tencentcloud:CosBucketInventory
        properties:
          bucket: ${exampleCosBucket.cosBucketId}
          isEnabled: 'true'
          includedObjectVersions: Current
          optionalFields:
            fields:
              - Size
              - ETag
          filter:
            period:
              startTime: '1687276800'
          schedule:
            frequency: Daily
          destination:
            bucket: qcs::cos:ap-guangzhou::private-bucket-1309118522
            format: CSV
            prefix: frontends
    variables:
      info:
        fn::invoke:
          function: tencentcloud:getUserInfo
          arguments: {}
      appId: ${info.appId}
    

    Create CosBucketInventory Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CosBucketInventory(name: string, args: CosBucketInventoryArgs, opts?: CustomResourceOptions);
    @overload
    def CosBucketInventory(resource_name: str,
                           args: CosBucketInventoryArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def CosBucketInventory(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           bucket: Optional[str] = None,
                           destination: Optional[CosBucketInventoryDestinationArgs] = None,
                           included_object_versions: Optional[str] = None,
                           is_enabled: Optional[str] = None,
                           schedule: Optional[CosBucketInventoryScheduleArgs] = None,
                           cos_bucket_inventory_id: Optional[str] = None,
                           filter: Optional[CosBucketInventoryFilterArgs] = None,
                           name: Optional[str] = None,
                           optional_fields: Optional[CosBucketInventoryOptionalFieldsArgs] = None)
    func NewCosBucketInventory(ctx *Context, name string, args CosBucketInventoryArgs, opts ...ResourceOption) (*CosBucketInventory, error)
    public CosBucketInventory(string name, CosBucketInventoryArgs args, CustomResourceOptions? opts = null)
    public CosBucketInventory(String name, CosBucketInventoryArgs args)
    public CosBucketInventory(String name, CosBucketInventoryArgs args, CustomResourceOptions options)
    
    type: tencentcloud:CosBucketInventory
    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 CosBucketInventoryArgs
    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 CosBucketInventoryArgs
    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 CosBucketInventoryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CosBucketInventoryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CosBucketInventoryArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    CosBucketInventory 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 CosBucketInventory resource accepts the following input properties:

    Bucket string
    Bucket name.
    Destination CosBucketInventoryDestination
    Information about the inventory result destination.
    IncludedObjectVersions string
    Whether to include object versions in the inventory. All or No.
    IsEnabled string
    Whether to enable the inventory. true or false.
    Schedule CosBucketInventorySchedule
    Inventory job cycle.
    CosBucketInventoryId string
    ID of the resource.
    Filter CosBucketInventoryFilter
    Filters objects prefixed with the specified value to analyze.
    Name string
    Inventory Name.
    OptionalFields CosBucketInventoryOptionalFields
    Analysis items to include in the inventory result .
    Bucket string
    Bucket name.
    Destination CosBucketInventoryDestinationArgs
    Information about the inventory result destination.
    IncludedObjectVersions string
    Whether to include object versions in the inventory. All or No.
    IsEnabled string
    Whether to enable the inventory. true or false.
    Schedule CosBucketInventoryScheduleArgs
    Inventory job cycle.
    CosBucketInventoryId string
    ID of the resource.
    Filter CosBucketInventoryFilterArgs
    Filters objects prefixed with the specified value to analyze.
    Name string
    Inventory Name.
    OptionalFields CosBucketInventoryOptionalFieldsArgs
    Analysis items to include in the inventory result .
    bucket String
    Bucket name.
    destination CosBucketInventoryDestination
    Information about the inventory result destination.
    includedObjectVersions String
    Whether to include object versions in the inventory. All or No.
    isEnabled String
    Whether to enable the inventory. true or false.
    schedule CosBucketInventorySchedule
    Inventory job cycle.
    cosBucketInventoryId String
    ID of the resource.
    filter CosBucketInventoryFilter
    Filters objects prefixed with the specified value to analyze.
    name String
    Inventory Name.
    optionalFields CosBucketInventoryOptionalFields
    Analysis items to include in the inventory result .
    bucket string
    Bucket name.
    destination CosBucketInventoryDestination
    Information about the inventory result destination.
    includedObjectVersions string
    Whether to include object versions in the inventory. All or No.
    isEnabled string
    Whether to enable the inventory. true or false.
    schedule CosBucketInventorySchedule
    Inventory job cycle.
    cosBucketInventoryId string
    ID of the resource.
    filter CosBucketInventoryFilter
    Filters objects prefixed with the specified value to analyze.
    name string
    Inventory Name.
    optionalFields CosBucketInventoryOptionalFields
    Analysis items to include in the inventory result .
    bucket str
    Bucket name.
    destination CosBucketInventoryDestinationArgs
    Information about the inventory result destination.
    included_object_versions str
    Whether to include object versions in the inventory. All or No.
    is_enabled str
    Whether to enable the inventory. true or false.
    schedule CosBucketInventoryScheduleArgs
    Inventory job cycle.
    cos_bucket_inventory_id str
    ID of the resource.
    filter CosBucketInventoryFilterArgs
    Filters objects prefixed with the specified value to analyze.
    name str
    Inventory Name.
    optional_fields CosBucketInventoryOptionalFieldsArgs
    Analysis items to include in the inventory result .
    bucket String
    Bucket name.
    destination Property Map
    Information about the inventory result destination.
    includedObjectVersions String
    Whether to include object versions in the inventory. All or No.
    isEnabled String
    Whether to enable the inventory. true or false.
    schedule Property Map
    Inventory job cycle.
    cosBucketInventoryId String
    ID of the resource.
    filter Property Map
    Filters objects prefixed with the specified value to analyze.
    name String
    Inventory Name.
    optionalFields Property Map
    Analysis items to include in the inventory result .

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CosBucketInventory 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 CosBucketInventory Resource

    Get an existing CosBucketInventory 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?: CosBucketInventoryState, opts?: CustomResourceOptions): CosBucketInventory
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            bucket: Optional[str] = None,
            cos_bucket_inventory_id: Optional[str] = None,
            destination: Optional[CosBucketInventoryDestinationArgs] = None,
            filter: Optional[CosBucketInventoryFilterArgs] = None,
            included_object_versions: Optional[str] = None,
            is_enabled: Optional[str] = None,
            name: Optional[str] = None,
            optional_fields: Optional[CosBucketInventoryOptionalFieldsArgs] = None,
            schedule: Optional[CosBucketInventoryScheduleArgs] = None) -> CosBucketInventory
    func GetCosBucketInventory(ctx *Context, name string, id IDInput, state *CosBucketInventoryState, opts ...ResourceOption) (*CosBucketInventory, error)
    public static CosBucketInventory Get(string name, Input<string> id, CosBucketInventoryState? state, CustomResourceOptions? opts = null)
    public static CosBucketInventory get(String name, Output<String> id, CosBucketInventoryState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:CosBucketInventory    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.
    The following state arguments are supported:
    Bucket string
    Bucket name.
    CosBucketInventoryId string
    ID of the resource.
    Destination CosBucketInventoryDestination
    Information about the inventory result destination.
    Filter CosBucketInventoryFilter
    Filters objects prefixed with the specified value to analyze.
    IncludedObjectVersions string
    Whether to include object versions in the inventory. All or No.
    IsEnabled string
    Whether to enable the inventory. true or false.
    Name string
    Inventory Name.
    OptionalFields CosBucketInventoryOptionalFields
    Analysis items to include in the inventory result .
    Schedule CosBucketInventorySchedule
    Inventory job cycle.
    Bucket string
    Bucket name.
    CosBucketInventoryId string
    ID of the resource.
    Destination CosBucketInventoryDestinationArgs
    Information about the inventory result destination.
    Filter CosBucketInventoryFilterArgs
    Filters objects prefixed with the specified value to analyze.
    IncludedObjectVersions string
    Whether to include object versions in the inventory. All or No.
    IsEnabled string
    Whether to enable the inventory. true or false.
    Name string
    Inventory Name.
    OptionalFields CosBucketInventoryOptionalFieldsArgs
    Analysis items to include in the inventory result .
    Schedule CosBucketInventoryScheduleArgs
    Inventory job cycle.
    bucket String
    Bucket name.
    cosBucketInventoryId String
    ID of the resource.
    destination CosBucketInventoryDestination
    Information about the inventory result destination.
    filter CosBucketInventoryFilter
    Filters objects prefixed with the specified value to analyze.
    includedObjectVersions String
    Whether to include object versions in the inventory. All or No.
    isEnabled String
    Whether to enable the inventory. true or false.
    name String
    Inventory Name.
    optionalFields CosBucketInventoryOptionalFields
    Analysis items to include in the inventory result .
    schedule CosBucketInventorySchedule
    Inventory job cycle.
    bucket string
    Bucket name.
    cosBucketInventoryId string
    ID of the resource.
    destination CosBucketInventoryDestination
    Information about the inventory result destination.
    filter CosBucketInventoryFilter
    Filters objects prefixed with the specified value to analyze.
    includedObjectVersions string
    Whether to include object versions in the inventory. All or No.
    isEnabled string
    Whether to enable the inventory. true or false.
    name string
    Inventory Name.
    optionalFields CosBucketInventoryOptionalFields
    Analysis items to include in the inventory result .
    schedule CosBucketInventorySchedule
    Inventory job cycle.
    bucket str
    Bucket name.
    cos_bucket_inventory_id str
    ID of the resource.
    destination CosBucketInventoryDestinationArgs
    Information about the inventory result destination.
    filter CosBucketInventoryFilterArgs
    Filters objects prefixed with the specified value to analyze.
    included_object_versions str
    Whether to include object versions in the inventory. All or No.
    is_enabled str
    Whether to enable the inventory. true or false.
    name str
    Inventory Name.
    optional_fields CosBucketInventoryOptionalFieldsArgs
    Analysis items to include in the inventory result .
    schedule CosBucketInventoryScheduleArgs
    Inventory job cycle.
    bucket String
    Bucket name.
    cosBucketInventoryId String
    ID of the resource.
    destination Property Map
    Information about the inventory result destination.
    filter Property Map
    Filters objects prefixed with the specified value to analyze.
    includedObjectVersions String
    Whether to include object versions in the inventory. All or No.
    isEnabled String
    Whether to enable the inventory. true or false.
    name String
    Inventory Name.
    optionalFields Property Map
    Analysis items to include in the inventory result .
    schedule Property Map
    Inventory job cycle.

    Supporting Types

    CosBucketInventoryDestination, CosBucketInventoryDestinationArgs

    Bucket string
    Bucket name.
    Format string
    Format of the inventory result. Valid value: CSV.
    AccountId string
    ID of the bucket owner.
    Encryption CosBucketInventoryDestinationEncryption
    Server-side encryption for the inventory result.
    Prefix string
    Prefix of the inventory result.
    Bucket string
    Bucket name.
    Format string
    Format of the inventory result. Valid value: CSV.
    AccountId string
    ID of the bucket owner.
    Encryption CosBucketInventoryDestinationEncryption
    Server-side encryption for the inventory result.
    Prefix string
    Prefix of the inventory result.
    bucket String
    Bucket name.
    format String
    Format of the inventory result. Valid value: CSV.
    accountId String
    ID of the bucket owner.
    encryption CosBucketInventoryDestinationEncryption
    Server-side encryption for the inventory result.
    prefix String
    Prefix of the inventory result.
    bucket string
    Bucket name.
    format string
    Format of the inventory result. Valid value: CSV.
    accountId string
    ID of the bucket owner.
    encryption CosBucketInventoryDestinationEncryption
    Server-side encryption for the inventory result.
    prefix string
    Prefix of the inventory result.
    bucket str
    Bucket name.
    format str
    Format of the inventory result. Valid value: CSV.
    account_id str
    ID of the bucket owner.
    encryption CosBucketInventoryDestinationEncryption
    Server-side encryption for the inventory result.
    prefix str
    Prefix of the inventory result.
    bucket String
    Bucket name.
    format String
    Format of the inventory result. Valid value: CSV.
    accountId String
    ID of the bucket owner.
    encryption Property Map
    Server-side encryption for the inventory result.
    prefix String
    Prefix of the inventory result.

    CosBucketInventoryDestinationEncryption, CosBucketInventoryDestinationEncryptionArgs

    SseCos string
    Encryption with COS-managed key. This field can be left empty.
    SseCos string
    Encryption with COS-managed key. This field can be left empty.
    sseCos String
    Encryption with COS-managed key. This field can be left empty.
    sseCos string
    Encryption with COS-managed key. This field can be left empty.
    sse_cos str
    Encryption with COS-managed key. This field can be left empty.
    sseCos String
    Encryption with COS-managed key. This field can be left empty.

    CosBucketInventoryFilter, CosBucketInventoryFilterArgs

    Period CosBucketInventoryFilterPeriod
    Creation time range of the objects to analyze.
    Prefix string
    Prefix of the objects to analyze.
    Period CosBucketInventoryFilterPeriod
    Creation time range of the objects to analyze.
    Prefix string
    Prefix of the objects to analyze.
    period CosBucketInventoryFilterPeriod
    Creation time range of the objects to analyze.
    prefix String
    Prefix of the objects to analyze.
    period CosBucketInventoryFilterPeriod
    Creation time range of the objects to analyze.
    prefix string
    Prefix of the objects to analyze.
    period CosBucketInventoryFilterPeriod
    Creation time range of the objects to analyze.
    prefix str
    Prefix of the objects to analyze.
    period Property Map
    Creation time range of the objects to analyze.
    prefix String
    Prefix of the objects to analyze.

    CosBucketInventoryFilterPeriod, CosBucketInventoryFilterPeriodArgs

    EndTime string
    Creation end time of the objects to analyze. The parameter is a timestamp in seconds, for example, 1568688762.
    StartTime string
    Creation start time of the objects to analyze. The parameter is a timestamp in seconds, for example, 1568688761.
    EndTime string
    Creation end time of the objects to analyze. The parameter is a timestamp in seconds, for example, 1568688762.
    StartTime string
    Creation start time of the objects to analyze. The parameter is a timestamp in seconds, for example, 1568688761.
    endTime String
    Creation end time of the objects to analyze. The parameter is a timestamp in seconds, for example, 1568688762.
    startTime String
    Creation start time of the objects to analyze. The parameter is a timestamp in seconds, for example, 1568688761.
    endTime string
    Creation end time of the objects to analyze. The parameter is a timestamp in seconds, for example, 1568688762.
    startTime string
    Creation start time of the objects to analyze. The parameter is a timestamp in seconds, for example, 1568688761.
    end_time str
    Creation end time of the objects to analyze. The parameter is a timestamp in seconds, for example, 1568688762.
    start_time str
    Creation start time of the objects to analyze. The parameter is a timestamp in seconds, for example, 1568688761.
    endTime String
    Creation end time of the objects to analyze. The parameter is a timestamp in seconds, for example, 1568688762.
    startTime String
    Creation start time of the objects to analyze. The parameter is a timestamp in seconds, for example, 1568688761.

    CosBucketInventoryOptionalFields, CosBucketInventoryOptionalFieldsArgs

    Fields List<string>
    Optional analysis items to include in the inventory result. The optional fields include Size, LastModifiedDate, StorageClass, ETag, IsMultipartUploaded, ReplicationStatus, Tag, Crc64, and x-cos-meta-*.
    Fields []string
    Optional analysis items to include in the inventory result. The optional fields include Size, LastModifiedDate, StorageClass, ETag, IsMultipartUploaded, ReplicationStatus, Tag, Crc64, and x-cos-meta-*.
    fields List<String>
    Optional analysis items to include in the inventory result. The optional fields include Size, LastModifiedDate, StorageClass, ETag, IsMultipartUploaded, ReplicationStatus, Tag, Crc64, and x-cos-meta-*.
    fields string[]
    Optional analysis items to include in the inventory result. The optional fields include Size, LastModifiedDate, StorageClass, ETag, IsMultipartUploaded, ReplicationStatus, Tag, Crc64, and x-cos-meta-*.
    fields Sequence[str]
    Optional analysis items to include in the inventory result. The optional fields include Size, LastModifiedDate, StorageClass, ETag, IsMultipartUploaded, ReplicationStatus, Tag, Crc64, and x-cos-meta-*.
    fields List<String>
    Optional analysis items to include in the inventory result. The optional fields include Size, LastModifiedDate, StorageClass, ETag, IsMultipartUploaded, ReplicationStatus, Tag, Crc64, and x-cos-meta-*.

    CosBucketInventorySchedule, CosBucketInventoryScheduleArgs

    Frequency string
    Frequency of the inventory job. Enumerated values: Daily, Weekly.
    Frequency string
    Frequency of the inventory job. Enumerated values: Daily, Weekly.
    frequency String
    Frequency of the inventory job. Enumerated values: Daily, Weekly.
    frequency string
    Frequency of the inventory job. Enumerated values: Daily, Weekly.
    frequency str
    Frequency of the inventory job. Enumerated values: Daily, Weekly.
    frequency String
    Frequency of the inventory job. Enumerated values: Daily, Weekly.

    Import

    cos bucket inventory can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/cosBucketInventory:CosBucketInventory example private-bucket-1309118522#tf-example
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack