File tree 3 files changed +92
-6
lines changed
tencentcloud/services/cls 3 files changed +92
-6
lines changed Original file line number Diff line number Diff line change @@ -946,6 +946,10 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.955 h1:kr5K
946
946
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.955 /go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0 =
947
947
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.962 h1:H7V/7lpplT3r5zW5/W+agrsJC8MCA1/f6zWWrMZYykU =
948
948
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 =
949
953
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/csip v1.0.860 h1:F3esKBIT3HW9+7Gt8cVgf8X06VdGIczpgLBUECzSEzU =
950
954
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/csip v1.0.860 /go.mod h1:NZo1WplQcC314kMlCRUoy8NQju2BnolIJj7NAWgsuhY =
951
955
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cvm v1.0.624 h1:nEZqsoqt1pEoaP9JjkHQy3/H00suCfzlHW1qOm2nYD8 =
Original file line number Diff line number Diff line change @@ -2,11 +2,13 @@ Provides a resource to create a cls topic.
2
2
3
3
Example Usage
4
4
5
+ Create a standard cls topic
6
+
5
7
``` hcl
6
8
resource "tencentcloud_cls_logset" "example" {
7
9
logset_name = "tf_example"
8
- tags = {
9
- "demo" = "test "
10
+ tags = {
11
+ tagKey = "tagValue "
10
12
}
11
13
}
12
14
@@ -20,8 +22,47 @@ resource "tencentcloud_cls_topic" "example" {
20
22
storage_type = "hot"
21
23
describes = "Test Demo."
22
24
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"
25
66
}
26
67
}
27
68
```
Original file line number Diff line number Diff line change @@ -13,11 +13,39 @@ Provides a resource to create a cls topic.
13
13
14
14
## Example Usage
15
15
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
+
16
44
``` hcl
17
45
resource "tencentcloud_cls_logset" "example" {
18
46
logset_name = "tf_example"
19
47
tags = {
20
- "demo" = "test "
48
+ tagKey = "tagValue "
21
49
}
22
50
}
23
51
@@ -31,8 +59,21 @@ resource "tencentcloud_cls_topic" "example" {
31
59
storage_type = "hot"
32
60
describes = "Test Demo."
33
61
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
+
34
75
tags = {
35
- "test" = "test",
76
+ tagKey = "tagValue"
36
77
}
37
78
}
38
79
```
You can’t perform that action at this time.
0 commit comments