Skip to content

Commit c43845d

Browse files
committed
fix(crs): [119721766] support state
1 parent 76a060b commit c43845d

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

tencentcloud/services/crs/resource_tc_redis_log_delivery.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ func ResourceTencentCloudRedisLogDelivery() *schema.Resource {
8282
Computed: true,
8383
Description: "Whether to create an index when creating a log topic.",
8484
},
85+
86+
"enabled": {
87+
Type: schema.TypeBool,
88+
Computed: true,
89+
Description: "Log delivery enable status, enable: `true`, disable: `false`.",
90+
},
8591
},
8692
}
8793
}
@@ -227,6 +233,10 @@ func resourceTencentCloudRedisLogDeliveryRead(d *schema.ResourceData, meta inter
227233
_ = d.Set("log_region", respData.LogRegion)
228234
}
229235

236+
if respData.Enabled != nil {
237+
_ = d.Set("enabled", respData.Enabled)
238+
}
239+
230240
_ = instanceId
231241
return nil
232242
}

website/docs/r/redis_log_delivery.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ The following arguments are supported:
6969
In addition to all arguments above, the following attributes are exported:
7070

7171
* `id` - ID of the resource.
72-
72+
* `enabled` - Log delivery enable status, enable: `true`, disable: `false`.
7373

7474

7575
## Import

0 commit comments

Comments
 (0)