tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack
tencentcloud.getCosBucketInventorys
Explore with Pulumi AI
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack
Use this data source to query the COS bucket inventorys.
NOTE: The current resource does not support cdc.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const cosBucketInventorys = tencentcloud.getCosBucketInventorys({
    bucket: "xxxxxx",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
cos_bucket_inventorys = tencentcloud.get_cos_bucket_inventorys(bucket="xxxxxx")
package main
import (
	"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 {
		_, err := tencentcloud.GetCosBucketInventorys(ctx, &tencentcloud.GetCosBucketInventorysArgs{
			Bucket: "xxxxxx",
		}, nil)
		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 cosBucketInventorys = Tencentcloud.GetCosBucketInventorys.Invoke(new()
    {
        Bucket = "xxxxxx",
    });
});
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.GetCosBucketInventorysArgs;
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 cosBucketInventorys = TencentcloudFunctions.getCosBucketInventorys(GetCosBucketInventorysArgs.builder()
            .bucket("xxxxxx")
            .build());
    }
}
variables:
  cosBucketInventorys:
    fn::invoke:
      function: tencentcloud:getCosBucketInventorys
      arguments:
        bucket: xxxxxx
Using getCosBucketInventorys
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getCosBucketInventorys(args: GetCosBucketInventorysArgs, opts?: InvokeOptions): Promise<GetCosBucketInventorysResult>
function getCosBucketInventorysOutput(args: GetCosBucketInventorysOutputArgs, opts?: InvokeOptions): Output<GetCosBucketInventorysResult>def get_cos_bucket_inventorys(bucket: Optional[str] = None,
                              id: Optional[str] = None,
                              result_output_file: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetCosBucketInventorysResult
def get_cos_bucket_inventorys_output(bucket: Optional[pulumi.Input[str]] = None,
                              id: Optional[pulumi.Input[str]] = None,
                              result_output_file: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetCosBucketInventorysResult]func GetCosBucketInventorys(ctx *Context, args *GetCosBucketInventorysArgs, opts ...InvokeOption) (*GetCosBucketInventorysResult, error)
func GetCosBucketInventorysOutput(ctx *Context, args *GetCosBucketInventorysOutputArgs, opts ...InvokeOption) GetCosBucketInventorysResultOutput> Note: This function is named GetCosBucketInventorys in the Go SDK.
public static class GetCosBucketInventorys 
{
    public static Task<GetCosBucketInventorysResult> InvokeAsync(GetCosBucketInventorysArgs args, InvokeOptions? opts = null)
    public static Output<GetCosBucketInventorysResult> Invoke(GetCosBucketInventorysInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCosBucketInventorysResult> getCosBucketInventorys(GetCosBucketInventorysArgs args, InvokeOptions options)
public static Output<GetCosBucketInventorysResult> getCosBucketInventorys(GetCosBucketInventorysArgs args, InvokeOptions options)
fn::invoke:
  function: tencentcloud:index/getCosBucketInventorys:getCosBucketInventorys
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Bucket string
- Bucket.
- Id string
- Whether to enable the inventory. true or false.
- ResultOutput stringFile 
- Used to save results.
- Bucket string
- Bucket.
- Id string
- Whether to enable the inventory. true or false.
- ResultOutput stringFile 
- Used to save results.
- bucket String
- Bucket.
- id String
- Whether to enable the inventory. true or false.
- resultOutput StringFile 
- Used to save results.
- bucket string
- Bucket.
- id string
- Whether to enable the inventory. true or false.
- resultOutput stringFile 
- Used to save results.
- bucket str
- Bucket.
- id str
- Whether to enable the inventory. true or false.
- result_output_ strfile 
- Used to save results.
- bucket String
- Bucket.
- id String
- Whether to enable the inventory. true or false.
- resultOutput StringFile 
- Used to save results.
getCosBucketInventorys Result
The following output properties are available:
- Bucket string
- Bucket name.
- Id string
- Whether to enable the inventory. true or false.
- Inventorys
List<GetCos Bucket Inventorys Inventory> 
- Multiple batch processing task information.
- ResultOutput stringFile 
- Bucket string
- Bucket name.
- Id string
- Whether to enable the inventory. true or false.
- Inventorys
[]GetCos Bucket Inventorys Inventory 
- Multiple batch processing task information.
- ResultOutput stringFile 
- bucket String
- Bucket name.
- id String
- Whether to enable the inventory. true or false.
- inventorys
List<GetCos Bucket Inventorys Inventory> 
- Multiple batch processing task information.
- resultOutput StringFile 
- bucket string
- Bucket name.
- id string
- Whether to enable the inventory. true or false.
- inventorys
GetCos Bucket Inventorys Inventory[] 
- Multiple batch processing task information.
- resultOutput stringFile 
- bucket str
- Bucket name.
- id str
- Whether to enable the inventory. true or false.
- inventorys
Sequence[GetCos Bucket Inventorys Inventory] 
- Multiple batch processing task information.
- result_output_ strfile 
- bucket String
- Bucket name.
- id String
- Whether to enable the inventory. true or false.
- inventorys List<Property Map>
- Multiple batch processing task information.
- resultOutput StringFile 
Supporting Types
GetCosBucketInventorysInventory    
- Destinations
List<GetCos Bucket Inventorys Inventory Destination> 
- Information about the inventory result destination.
- Filters
List<GetCos Bucket Inventorys Inventory Filter> 
- Filters objects prefixed with the specified value to analyze.
- Id string
- Whether to enable the inventory. true or false.
- IncludedObject stringVersions 
- Whether to include object versions in the inventory. All or No.
- IsEnabled string
- Whether to enable the inventory. true or false.
- OptionalFields List<GetCos Bucket Inventorys Inventory Optional Field> 
- Schedules
List<GetCos Bucket Inventorys Inventory Schedule> 
- Inventory job cycle.
- Destinations
[]GetCos Bucket Inventorys Inventory Destination 
- Information about the inventory result destination.
- Filters
[]GetCos Bucket Inventorys Inventory Filter 
- Filters objects prefixed with the specified value to analyze.
- Id string
- Whether to enable the inventory. true or false.
- IncludedObject stringVersions 
- Whether to include object versions in the inventory. All or No.
- IsEnabled string
- Whether to enable the inventory. true or false.
- OptionalFields []GetCos Bucket Inventorys Inventory Optional Field 
- Schedules
[]GetCos Bucket Inventorys Inventory Schedule 
- Inventory job cycle.
- destinations
List<GetCos Bucket Inventorys Inventory Destination> 
- Information about the inventory result destination.
- filters
List<GetCos Bucket Inventorys Inventory Filter> 
- Filters objects prefixed with the specified value to analyze.
- id String
- Whether to enable the inventory. true or false.
- includedObject StringVersions 
- Whether to include object versions in the inventory. All or No.
- isEnabled String
- Whether to enable the inventory. true or false.
- optionalFields List<GetCos Bucket Inventorys Inventory Optional Field> 
- schedules
List<GetCos Bucket Inventorys Inventory Schedule> 
- Inventory job cycle.
- destinations
GetCos Bucket Inventorys Inventory Destination[] 
- Information about the inventory result destination.
- filters
GetCos Bucket Inventorys Inventory Filter[] 
- Filters objects prefixed with the specified value to analyze.
- id string
- Whether to enable the inventory. true or false.
- includedObject stringVersions 
- Whether to include object versions in the inventory. All or No.
- isEnabled string
- Whether to enable the inventory. true or false.
- optionalFields GetCos Bucket Inventorys Inventory Optional Field[] 
- schedules
GetCos Bucket Inventorys Inventory Schedule[] 
- Inventory job cycle.
- destinations
Sequence[GetCos Bucket Inventorys Inventory Destination] 
- Information about the inventory result destination.
- filters
Sequence[GetCos Bucket Inventorys Inventory Filter] 
- Filters objects prefixed with the specified value to analyze.
- id str
- Whether to enable the inventory. true or false.
- included_object_ strversions 
- Whether to include object versions in the inventory. All or No.
- is_enabled str
- Whether to enable the inventory. true or false.
- optional_fields Sequence[GetCos Bucket Inventorys Inventory Optional Field] 
- schedules
Sequence[GetCos Bucket Inventorys Inventory Schedule] 
- Inventory job cycle.
- destinations List<Property Map>
- Information about the inventory result destination.
- filters List<Property Map>
- Filters objects prefixed with the specified value to analyze.
- id String
- Whether to enable the inventory. true or false.
- includedObject StringVersions 
- Whether to include object versions in the inventory. All or No.
- isEnabled String
- Whether to enable the inventory. true or false.
- optionalFields List<Property Map>
- schedules List<Property Map>
- Inventory job cycle.
GetCosBucketInventorysInventoryDestination     
- AccountId string
- ID of the bucket owner.
- Bucket string
- Bucket.
- Encryptions
List<GetCos Bucket Inventorys Inventory Destination Encryption> 
- Server-side encryption for the inventory result.
- Format string
- Format of the inventory result. Valid value: CSV.
- Prefix string
- Prefix of the objects to analyze.
- AccountId string
- ID of the bucket owner.
- Bucket string
- Bucket.
- Encryptions
[]GetCos Bucket Inventorys Inventory Destination Encryption 
- Server-side encryption for the inventory result.
- Format string
- Format of the inventory result. Valid value: CSV.
- Prefix string
- Prefix of the objects to analyze.
- accountId String
- ID of the bucket owner.
- bucket String
- Bucket.
- encryptions
List<GetCos Bucket Inventorys Inventory Destination Encryption> 
- Server-side encryption for the inventory result.
- format String
- Format of the inventory result. Valid value: CSV.
- prefix String
- Prefix of the objects to analyze.
- accountId string
- ID of the bucket owner.
- bucket string
- Bucket.
- encryptions
GetCos Bucket Inventorys Inventory Destination Encryption[] 
- Server-side encryption for the inventory result.
- format string
- Format of the inventory result. Valid value: CSV.
- prefix string
- Prefix of the objects to analyze.
- account_id str
- ID of the bucket owner.
- bucket str
- Bucket.
- encryptions
Sequence[GetCos Bucket Inventorys Inventory Destination Encryption] 
- Server-side encryption for the inventory result.
- format str
- Format of the inventory result. Valid value: CSV.
- prefix str
- Prefix of the objects to analyze.
- accountId String
- ID of the bucket owner.
- bucket String
- Bucket.
- encryptions List<Property Map>
- Server-side encryption for the inventory result.
- format String
- Format of the inventory result. Valid value: CSV.
- prefix String
- Prefix of the objects to analyze.
GetCosBucketInventorysInventoryDestinationEncryption      
- 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.
GetCosBucketInventorysInventoryFilter     
- Periods
List<GetCos Bucket Inventorys Inventory Filter Period> 
- Creation time range of the objects to analyze.
- Prefix string
- Prefix of the objects to analyze.
- Periods
[]GetCos Bucket Inventorys Inventory Filter Period 
- Creation time range of the objects to analyze.
- Prefix string
- Prefix of the objects to analyze.
- periods
List<GetCos Bucket Inventorys Inventory Filter Period> 
- Creation time range of the objects to analyze.
- prefix String
- Prefix of the objects to analyze.
- periods
GetCos Bucket Inventorys Inventory Filter Period[] 
- Creation time range of the objects to analyze.
- prefix string
- Prefix of the objects to analyze.
- periods
Sequence[GetCos Bucket Inventorys Inventory Filter Period] 
- Creation time range of the objects to analyze.
- prefix str
- Prefix of the objects to analyze.
- periods List<Property Map>
- Creation time range of the objects to analyze.
- prefix String
- Prefix of the objects to analyze.
GetCosBucketInventorysInventoryFilterPeriod      
- 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.
GetCosBucketInventorysInventoryOptionalField      
- Fields List<string>
- Fields []string
- fields List<String>
- fields string[]
- fields Sequence[str]
- fields List<String>
GetCosBucketInventorysInventorySchedule     
- 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.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the tencentcloudTerraform Provider.
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack