Skip to content

Commit 670aa59

Browse files
committed
add
1 parent 99e9093 commit 670aa59

File tree

3 files changed

+92
-6
lines changed

3 files changed

+92
-6
lines changed

go.sum

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -946,6 +946,10 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.955 h1:kr5K
946946
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.955/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
947947
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.962 h1:H7V/7lpplT3r5zW5/W+agrsJC8MCA1/f6zWWrMZYykU=
948948
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.962/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
949+
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.950 h1:gsBG5scMDYykLzPSj9aXCTxVjWE5lt+y6VwNAROf7Fw=
950+
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.950/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
951+
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.961 h1:UqinjIsO+Y48BQYSxrD6aHQe8SD+Wsbvj+jU9V9VvWM=
952+
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.961/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
949953
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/csip v1.0.860 h1:F3esKBIT3HW9+7Gt8cVgf8X06VdGIczpgLBUECzSEzU=
950954
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/csip v1.0.860/go.mod h1:NZo1WplQcC314kMlCRUoy8NQju2BnolIJj7NAWgsuhY=
951955
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cvm v1.0.624 h1:nEZqsoqt1pEoaP9JjkHQy3/H00suCfzlHW1qOm2nYD8=

tencentcloud/services/cls/resource_tc_cls_topic.md

Lines changed: 45 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ Provides a resource to create a cls topic.
22

33
Example Usage
44

5+
Create a standard cls topic
6+
57
```hcl
68
resource "tencentcloud_cls_logset" "example" {
79
logset_name = "tf_example"
8-
tags = {
9-
"demo" = "test"
10+
tags = {
11+
tagKey = "tagValue"
1012
}
1113
}
1214
@@ -20,8 +22,47 @@ resource "tencentcloud_cls_topic" "example" {
2022
storage_type = "hot"
2123
describes = "Test Demo."
2224
hot_period = 10
23-
tags = {
24-
"test" = "test",
25+
tags = {
26+
tagKey = "tagValue"
27+
}
28+
}
29+
```
30+
31+
Create a cls topic with web tracking
32+
33+
```hcl
34+
resource "tencentcloud_cls_logset" "example" {
35+
logset_name = "tf_example"
36+
tags = {
37+
tagKey = "tagValue"
38+
}
39+
}
40+
41+
resource "tencentcloud_cls_topic" "example" {
42+
topic_name = "tf_example"
43+
logset_id = tencentcloud_cls_logset.example.id
44+
auto_split = false
45+
max_split_partitions = 20
46+
partition_count = 1
47+
period = 30
48+
storage_type = "hot"
49+
describes = "Test Demo."
50+
hot_period = 10
51+
is_web_tracking = true
52+
53+
extends {
54+
anonymous_access {
55+
operations = ["trackLog", "realtimeProducer"]
56+
conditions {
57+
attributes = "VpcID"
58+
rule = 1
59+
condition_value = "vpc-ahr3xajx"
60+
}
61+
}
62+
}
63+
64+
tags = {
65+
tagKey = "tagValue"
2566
}
2667
}
2768
```

website/docs/r/cls_topic.html.markdown

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,39 @@ Provides a resource to create a cls topic.
1313

1414
## Example Usage
1515

16+
### Create a standard cls topic
17+
18+
```hcl
19+
resource "tencentcloud_cls_logset" "example" {
20+
logset_name = "tf_example"
21+
tags = {
22+
tagKey = "tagValue"
23+
}
24+
}
25+
26+
resource "tencentcloud_cls_topic" "example" {
27+
topic_name = "tf_example"
28+
logset_id = tencentcloud_cls_logset.example.id
29+
auto_split = false
30+
max_split_partitions = 20
31+
partition_count = 1
32+
period = 30
33+
storage_type = "hot"
34+
describes = "Test Demo."
35+
hot_period = 10
36+
tags = {
37+
tagKey = "tagValue"
38+
}
39+
}
40+
```
41+
42+
### Create a cls topic with web tracking
43+
1644
```hcl
1745
resource "tencentcloud_cls_logset" "example" {
1846
logset_name = "tf_example"
1947
tags = {
20-
"demo" = "test"
48+
tagKey = "tagValue"
2149
}
2250
}
2351
@@ -31,8 +59,21 @@ resource "tencentcloud_cls_topic" "example" {
3159
storage_type = "hot"
3260
describes = "Test Demo."
3361
hot_period = 10
62+
is_web_tracking = true
63+
64+
extends {
65+
anonymous_access {
66+
operations = ["trackLog", "realtimeProducer"]
67+
conditions {
68+
attributes = "VpcID"
69+
rule = 1
70+
condition_value = "vpc-ahr3xajx"
71+
}
72+
}
73+
}
74+
3475
tags = {
35-
"test" = "test",
76+
tagKey = "tagValue"
3677
}
3778
}
3879
```

0 commit comments

Comments
 (0)