Skip to content

Commit 4895751

Browse files
committed
add
1 parent 72fd00c commit 4895751

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

.changelog/3335.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
```release-note:new-resource
22
tencentcloud_cls_cloud_product_log_task_v2
3-
```
3+
```
4+
5+
```release-note:enhancement
6+
resource/tencentcloud_cls_cloud_product_log_task: This resource has been deprecated in Terraform TencentCloud provider version 1.81.188. Please use `tencentcloud_cls_cloud_product_log_task_v2` instead.
7+
```

tencentcloud/services/cls/resource_tc_cls_cloud_product_log_task_v2.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,28 @@ func ResourceTencentCloudClsCloudProductLogTaskV2() *schema.Resource {
2828
"instance_id": {
2929
Type: schema.TypeString,
3030
Required: true,
31+
ForceNew: true,
3132
Description: "Instance ID.",
3233
},
3334

3435
"assumer_name": {
3536
Type: schema.TypeString,
3637
Required: true,
38+
ForceNew: true,
3739
Description: "Cloud product identification, Values: CDS, CWP, CDB, TDSQL-C, MongoDB, TDStore, DCDB, MariaDB, PostgreSQL, BH, APIS.",
3840
},
3941

4042
"log_type": {
4143
Type: schema.TypeString,
4244
Required: true,
45+
ForceNew: true,
4346
Description: "Log type, Values: CDS-AUDIT, CDS-RISK, CDB-AUDIT, TDSQL-C-AUDIT, MongoDB-AUDIT, MongoDB-SlowLog, MongoDB-ErrorLog, TDMYSQL-SLOW, DCDB-AUDIT, DCDB-SLOW, DCDB-ERROR, MariaDB-AUDIT, MariaDB-SLOW, MariaDB-ERROR, PostgreSQL-SLOW, PostgreSQL-ERROR, PostgreSQL-AUDIT, BH-FILELOG, BH-COMMANDLOG, APIS-ACCESS.",
4447
},
4548

4649
"cloud_product_region": {
4750
Type: schema.TypeString,
4851
Required: true,
52+
ForceNew: true,
4953
Description: "Cloud product region. There are differences in the input format of different log types in different regions. Please refer to the following example:\n- CDS(all log type): ap-guangzhou\n- CDB-AUDIT: gz\n- TDSQL-C-AUDIT: gz\n- MongoDB-AUDIT: gz\n- MongoDB-SlowLog: ap-guangzhou\n- MongoDB-ErrorLog: ap-guangzhou\n- TDMYSQL-SLOW: gz\n- DCDB(all log type): gz\n- MariaDB(all log type): gz\n- PostgreSQL(all log type): gz\n- BH(all log type): overseas-polaris(Domestic sites overseas)/fsi-polaris(Domestic sites finance)/general-polaris(Domestic sites)/intl-sg-prod(International sites)\n- APIS(all log type): gz.",
5054
},
5155

@@ -280,7 +284,7 @@ func resourceTencentCloudClsCloudProductLogTaskV2Update(d *schema.ResourceData,
280284
ctx = tccommon.NewResourceLifeCycleHandleFuncContext(context.Background(), logId, d, meta)
281285
)
282286

283-
immutableArgs := []string{"instance_id", "assumer_name", "log_type", "cloud_product_region", "cls_region"}
287+
immutableArgs := []string{"cls_region"}
284288
for _, v := range immutableArgs {
285289
if d.HasChange(v) {
286290
return fmt.Errorf("argument `%s` cannot be changed", v)

website/docs/r/cls_cloud_product_log_task_v2.html.markdown

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ resource "tencentcloud_cls_cloud_product_log_task_v2" "example" {
4949

5050
The following arguments are supported:
5151

52-
* `assumer_name` - (Required, String) Cloud product identification, Values: CDS, CWP, CDB, TDSQL-C, MongoDB, TDStore, DCDB, MariaDB, PostgreSQL, BH, APIS.
53-
* `cloud_product_region` - (Required, String) Cloud product region. There are differences in the input format of different log types in different regions. Please refer to the following example:
52+
* `assumer_name` - (Required, String, ForceNew) Cloud product identification, Values: CDS, CWP, CDB, TDSQL-C, MongoDB, TDStore, DCDB, MariaDB, PostgreSQL, BH, APIS.
53+
* `cloud_product_region` - (Required, String, ForceNew) Cloud product region. There are differences in the input format of different log types in different regions. Please refer to the following example:
5454
- CDS(all log type): ap-guangzhou
5555
- CDB-AUDIT: gz
5656
- TDSQL-C-AUDIT: gz
@@ -64,8 +64,8 @@ The following arguments are supported:
6464
- BH(all log type): overseas-polaris(Domestic sites overseas)/fsi-polaris(Domestic sites finance)/general-polaris(Domestic sites)/intl-sg-prod(International sites)
6565
- APIS(all log type): gz.
6666
* `cls_region` - (Required, String) CLS target region.
67-
* `instance_id` - (Required, String) Instance ID.
68-
* `log_type` - (Required, String) Log type, Values: CDS-AUDIT, CDS-RISK, CDB-AUDIT, TDSQL-C-AUDIT, MongoDB-AUDIT, MongoDB-SlowLog, MongoDB-ErrorLog, TDMYSQL-SLOW, DCDB-AUDIT, DCDB-SLOW, DCDB-ERROR, MariaDB-AUDIT, MariaDB-SLOW, MariaDB-ERROR, PostgreSQL-SLOW, PostgreSQL-ERROR, PostgreSQL-AUDIT, BH-FILELOG, BH-COMMANDLOG, APIS-ACCESS.
67+
* `instance_id` - (Required, String, ForceNew) Instance ID.
68+
* `log_type` - (Required, String, ForceNew) Log type, Values: CDS-AUDIT, CDS-RISK, CDB-AUDIT, TDSQL-C-AUDIT, MongoDB-AUDIT, MongoDB-SlowLog, MongoDB-ErrorLog, TDMYSQL-SLOW, DCDB-AUDIT, DCDB-SLOW, DCDB-ERROR, MariaDB-AUDIT, MariaDB-SLOW, MariaDB-ERROR, PostgreSQL-SLOW, PostgreSQL-ERROR, PostgreSQL-AUDIT, BH-FILELOG, BH-COMMANDLOG, APIS-ACCESS.
6969
* `extend` - (Optional, String) Log configuration extension information, generally used to store additional log delivery configurations.
7070
* `force_delete` - (Optional, Bool) Indicate whether to forcibly delete the corresponding logset and topic. If set to true, it will be forcibly deleted. Default is false.
7171
* `logset_id` - (Optional, String, ForceNew) Log set ID.

0 commit comments

Comments
 (0)