tencentcloud.CosBucketInventory
Explore with Pulumi AI
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
Cos
Bucket Inventory Destination - Information about the inventory result destination.
- 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.
- Schedule
Cos
Bucket Inventory Schedule - Inventory job cycle.
- Cos
Bucket stringInventory Id - ID of the resource.
- Filter
Cos
Bucket Inventory Filter - Filters objects prefixed with the specified value to analyze.
- Name string
- Inventory Name.
- Optional
Fields CosBucket Inventory Optional Fields - Analysis items to include in the inventory result .
- Bucket string
- Bucket name.
- Destination
Cos
Bucket Inventory Destination Args - Information about the inventory result destination.
- 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.
- Schedule
Cos
Bucket Inventory Schedule Args - Inventory job cycle.
- Cos
Bucket stringInventory Id - ID of the resource.
- Filter
Cos
Bucket Inventory Filter Args - Filters objects prefixed with the specified value to analyze.
- Name string
- Inventory Name.
- Optional
Fields CosBucket Inventory Optional Fields Args - Analysis items to include in the inventory result .
- bucket String
- Bucket name.
- destination
Cos
Bucket Inventory Destination - Information about the inventory result destination.
- 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.
- schedule
Cos
Bucket Inventory Schedule - Inventory job cycle.
- cos
Bucket StringInventory Id - ID of the resource.
- filter
Cos
Bucket Inventory Filter - Filters objects prefixed with the specified value to analyze.
- name String
- Inventory Name.
- optional
Fields CosBucket Inventory Optional Fields - Analysis items to include in the inventory result .
- bucket string
- Bucket name.
- destination
Cos
Bucket Inventory Destination - Information about the inventory result destination.
- 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.
- schedule
Cos
Bucket Inventory Schedule - Inventory job cycle.
- cos
Bucket stringInventory Id - ID of the resource.
- filter
Cos
Bucket Inventory Filter - Filters objects prefixed with the specified value to analyze.
- name string
- Inventory Name.
- optional
Fields CosBucket Inventory Optional Fields - Analysis items to include in the inventory result .
- bucket str
- Bucket name.
- destination
Cos
Bucket Inventory Destination Args - Information about the inventory result destination.
- 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.
- schedule
Cos
Bucket Inventory Schedule Args - Inventory job cycle.
- cos_
bucket_ strinventory_ id - ID of the resource.
- filter
Cos
Bucket Inventory Filter Args - Filters objects prefixed with the specified value to analyze.
- name str
- Inventory Name.
- optional_
fields CosBucket Inventory Optional Fields Args - Analysis items to include in the inventory result .
- bucket String
- Bucket name.
- destination Property Map
- Information about the inventory result destination.
- 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.
- schedule Property Map
- Inventory job cycle.
- cos
Bucket StringInventory Id - ID of the resource.
- filter Property Map
- Filters objects prefixed with the specified value to analyze.
- name String
- Inventory Name.
- optional
Fields 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.
- Bucket string
- Bucket name.
- Cos
Bucket stringInventory Id - ID of the resource.
- Destination
Cos
Bucket Inventory Destination - Information about the inventory result destination.
- Filter
Cos
Bucket Inventory Filter - Filters objects prefixed with the specified value to analyze.
- 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.
- Name string
- Inventory Name.
- Optional
Fields CosBucket Inventory Optional Fields - Analysis items to include in the inventory result .
- Schedule
Cos
Bucket Inventory Schedule - Inventory job cycle.
- Bucket string
- Bucket name.
- Cos
Bucket stringInventory Id - ID of the resource.
- Destination
Cos
Bucket Inventory Destination Args - Information about the inventory result destination.
- Filter
Cos
Bucket Inventory Filter Args - Filters objects prefixed with the specified value to analyze.
- 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.
- Name string
- Inventory Name.
- Optional
Fields CosBucket Inventory Optional Fields Args - Analysis items to include in the inventory result .
- Schedule
Cos
Bucket Inventory Schedule Args - Inventory job cycle.
- bucket String
- Bucket name.
- cos
Bucket StringInventory Id - ID of the resource.
- destination
Cos
Bucket Inventory Destination - Information about the inventory result destination.
- filter
Cos
Bucket Inventory Filter - Filters objects prefixed with the specified value to analyze.
- 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.
- name String
- Inventory Name.
- optional
Fields CosBucket Inventory Optional Fields - Analysis items to include in the inventory result .
- schedule
Cos
Bucket Inventory Schedule - Inventory job cycle.
- bucket string
- Bucket name.
- cos
Bucket stringInventory Id - ID of the resource.
- destination
Cos
Bucket Inventory Destination - Information about the inventory result destination.
- filter
Cos
Bucket Inventory Filter - Filters objects prefixed with the specified value to analyze.
- 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.
- name string
- Inventory Name.
- optional
Fields CosBucket Inventory Optional Fields - Analysis items to include in the inventory result .
- schedule
Cos
Bucket Inventory Schedule - Inventory job cycle.
- bucket str
- Bucket name.
- cos_
bucket_ strinventory_ id - ID of the resource.
- destination
Cos
Bucket Inventory Destination Args - Information about the inventory result destination.
- filter
Cos
Bucket Inventory Filter Args - Filters objects prefixed with the specified value to analyze.
- 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.
- name str
- Inventory Name.
- optional_
fields CosBucket Inventory Optional Fields Args - Analysis items to include in the inventory result .
- schedule
Cos
Bucket Inventory Schedule Args - Inventory job cycle.
- bucket String
- Bucket name.
- cos
Bucket StringInventory Id - 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.
- 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.
- name String
- Inventory Name.
- optional
Fields 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.
- Account
Id string - ID of the bucket owner.
- Encryption
Cos
Bucket Inventory Destination Encryption - 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.
- Account
Id string - ID of the bucket owner.
- Encryption
Cos
Bucket Inventory Destination Encryption - 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.
- account
Id String - ID of the bucket owner.
- encryption
Cos
Bucket Inventory Destination Encryption - 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.
- account
Id string - ID of the bucket owner.
- encryption
Cos
Bucket Inventory Destination Encryption - 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
Cos
Bucket Inventory Destination Encryption - 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.
- account
Id 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
- 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.
CosBucketInventoryFilter, CosBucketInventoryFilterArgs
- Period
Cos
Bucket Inventory Filter Period - Creation time range of the objects to analyze.
- Prefix string
- Prefix of the objects to analyze.
- Period
Cos
Bucket Inventory Filter Period - Creation time range of the objects to analyze.
- Prefix string
- Prefix of the objects to analyze.
- period
Cos
Bucket Inventory Filter Period - Creation time range of the objects to analyze.
- prefix String
- Prefix of the objects to analyze.
- period
Cos
Bucket Inventory Filter Period - Creation time range of the objects to analyze.
- prefix string
- Prefix of the objects to analyze.
- period
Cos
Bucket Inventory Filter Period - 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
- 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.
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.