diff --git a/website/docs/r/cls_topic.html.markdown b/website/docs/r/cls_topic.html.markdown index e42a2fed68..004cefaac3 100644 --- a/website/docs/r/cls_topic.html.markdown +++ b/website/docs/r/cls_topic.html.markdown @@ -14,14 +14,23 @@ Provides a resource to create a cls topic. ## Example Usage ```hcl -resource "tencentcloud_cls_topic" "topic" { - topic_name = "topic" - logset_id = "5cd3a17e-fb0b-418c-afd7-77b365397426" +resource "tencentcloud_cls_logset" "example" { + logset_name = "tf_example" + tags = { + "demo" = "test" + } +} + +resource "tencentcloud_cls_topic" "example" { + topic_name = "tf_example" + logset_id = tencentcloud_cls_logset.example.id auto_split = false max_split_partitions = 20 partition_count = 1 - period = 10 + period = 30 storage_type = "hot" + describes = "Test Demo." + hot_period = 10 tags = { "test" = "test", } @@ -35,10 +44,12 @@ The following arguments are supported: * `logset_id` - (Required, String) Logset ID. * `topic_name` - (Required, String) Log topic name. * `auto_split` - (Optional, Bool) Whether to enable automatic split. Default value: true. +* `describes` - (Optional, String) Log Topic Description. +* `hot_period` - (Optional, Int) 0: Turn off log sinking. Non 0: The number of days of standard storage after enabling log settling. HotPeriod needs to be greater than or equal to 7 and less than Period. Only effective when StorageType is hot. * `max_split_partitions` - (Optional, Int) Maximum number of partitions to split into for this topic if automatic split is enabled. Default value: 50. * `partition_count` - (Optional, Int) Number of log topic partitions. Default value: 1. Maximum value: 10. * `period` - (Optional, Int) Lifecycle in days. Value range: 1~366. Default value: 30. -* `storage_type` - (Optional, String) Log topic storage class. Valid values: hot: real-time storage; cold: offline storage. Default value: hot. If cold is passed in, please contact the customer service to add the log topic to the allowlist first.. +* `storage_type` - (Optional, String) Log topic storage class. Valid values: hot: real-time storage; cold: offline storage. Default value: hot. If cold is passed in, please contact the customer service to add the log topic to the allowlist first. * `tags` - (Optional, Map) Tag description list. Up to 10 tag key-value pairs are supported and must be unique. ## Attributes Reference @@ -54,6 +65,6 @@ In addition to all arguments above, the following attributes are exported: cls topic can be imported using the id, e.g. ``` -$ terraform import tencentcloud_cls_topic.topic 2f5764c1-c833-44c5-84c7-950979b2a278 +$ terraform import tencentcloud_cls_topic.example 2f5764c1-c833-44c5-84c7-950979b2a278 ```