tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getCosBucketInventorys
Explore with Pulumi AI
tencentcloud 1.81.189 published on Wednesday, Apr 30, 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 dictionary
The following arguments are supported:
- Bucket string
- Bucket.
- Id string
- Whether to enable the inventory. true or false.
- Result
Output stringFile - Used to save results.
- Bucket string
- Bucket.
- Id string
- Whether to enable the inventory. true or false.
- Result
Output stringFile - Used to save results.
- bucket String
- Bucket.
- id String
- Whether to enable the inventory. true or false.
- result
Output StringFile - Used to save results.
- bucket string
- Bucket.
- id string
- Whether to enable the inventory. true or false.
- result
Output 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.
- result
Output 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<Get
Cos Bucket Inventorys Inventory> - Multiple batch processing task information.
- Result
Output stringFile
- Bucket string
- Bucket name.
- Id string
- Whether to enable the inventory. true or false.
- Inventorys
[]Get
Cos Bucket Inventorys Inventory - Multiple batch processing task information.
- Result
Output stringFile
- bucket String
- Bucket name.
- id String
- Whether to enable the inventory. true or false.
- inventorys
List<Get
Cos Bucket Inventorys Inventory> - Multiple batch processing task information.
- result
Output StringFile
- bucket string
- Bucket name.
- id string
- Whether to enable the inventory. true or false.
- inventorys
Get
Cos Bucket Inventorys Inventory[] - Multiple batch processing task information.
- result
Output stringFile
- bucket str
- Bucket name.
- id str
- Whether to enable the inventory. true or false.
- inventorys
Sequence[Get
Cos 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.
- result
Output StringFile
Supporting Types
GetCosBucketInventorysInventory
- Destinations
List<Get
Cos Bucket Inventorys Inventory Destination> - Information about the inventory result destination.
- Filters
List<Get
Cos Bucket Inventorys Inventory Filter> - Filters objects prefixed with the specified value to analyze.
- Id string
- Whether to enable the inventory. true or false.
- Included
Object stringVersions - Whether to include object versions in the inventory. All or No.
- Is
Enabled string - Whether to enable the inventory. true or false.
- Optional
Fields List<GetCos Bucket Inventorys Inventory Optional Field> - Schedules
List<Get
Cos Bucket Inventorys Inventory Schedule> - Inventory job cycle.
- Destinations
[]Get
Cos Bucket Inventorys Inventory Destination - Information about the inventory result destination.
- Filters
[]Get
Cos Bucket Inventorys Inventory Filter - Filters objects prefixed with the specified value to analyze.
- Id string
- Whether to enable the inventory. true or false.
- Included
Object stringVersions - Whether to include object versions in the inventory. All or No.
- Is
Enabled string - Whether to enable the inventory. true or false.
- Optional
Fields []GetCos Bucket Inventorys Inventory Optional Field - Schedules
[]Get
Cos Bucket Inventorys Inventory Schedule - Inventory job cycle.
- destinations
List<Get
Cos Bucket Inventorys Inventory Destination> - Information about the inventory result destination.
- filters
List<Get
Cos Bucket Inventorys Inventory Filter> - Filters objects prefixed with the specified value to analyze.
- id String
- Whether to enable the inventory. true or false.
- included
Object StringVersions - Whether to include object versions in the inventory. All or No.
- is
Enabled String - Whether to enable the inventory. true or false.
- optional
Fields List<GetCos Bucket Inventorys Inventory Optional Field> - schedules
List<Get
Cos Bucket Inventorys Inventory Schedule> - Inventory job cycle.
- destinations
Get
Cos Bucket Inventorys Inventory Destination[] - Information about the inventory result destination.
- filters
Get
Cos Bucket Inventorys Inventory Filter[] - Filters objects prefixed with the specified value to analyze.
- id string
- Whether to enable the inventory. true or false.
- included
Object stringVersions - Whether to include object versions in the inventory. All or No.
- is
Enabled string - Whether to enable the inventory. true or false.
- optional
Fields GetCos Bucket Inventorys Inventory Optional Field[] - schedules
Get
Cos Bucket Inventorys Inventory Schedule[] - Inventory job cycle.
- destinations
Sequence[Get
Cos Bucket Inventorys Inventory Destination] - Information about the inventory result destination.
- filters
Sequence[Get
Cos 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[Get
Cos 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.
- included
Object StringVersions - Whether to include object versions in the inventory. All or No.
- is
Enabled String - Whether to enable the inventory. true or false.
- optional
Fields List<Property Map> - schedules List<Property Map>
- Inventory job cycle.
GetCosBucketInventorysInventoryDestination
- Account
Id string - ID of the bucket owner.
- Bucket string
- Bucket.
- Encryptions
List<Get
Cos 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 string - ID of the bucket owner.
- Bucket string
- Bucket.
- Encryptions
[]Get
Cos 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 String - ID of the bucket owner.
- bucket String
- Bucket.
- encryptions
List<Get
Cos 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 string - ID of the bucket owner.
- bucket string
- Bucket.
- encryptions
Get
Cos 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[Get
Cos 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.
- account
Id 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
- Sse
Cos string - Encryption with COS-managed key. This field can be left empty.
- Sse
Cos string - Encryption with COS-managed key. This field can be left empty.
- sse
Cos String - Encryption with COS-managed key. This field can be left empty.
- sse
Cos 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.
- sse
Cos String - Encryption with COS-managed key. This field can be left empty.
GetCosBucketInventorysInventoryFilter
- Periods
List<Get
Cos Bucket Inventorys Inventory Filter Period> - Creation time range of the objects to analyze.
- Prefix string
- Prefix of the objects to analyze.
- Periods
[]Get
Cos Bucket Inventorys Inventory Filter Period - Creation time range of the objects to analyze.
- Prefix string
- Prefix of the objects to analyze.
- periods
List<Get
Cos Bucket Inventorys Inventory Filter Period> - Creation time range of the objects to analyze.
- prefix String
- Prefix of the objects to analyze.
- periods
Get
Cos Bucket Inventorys Inventory Filter Period[] - Creation time range of the objects to analyze.
- prefix string
- Prefix of the objects to analyze.
- periods
Sequence[Get
Cos 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
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack