Skip to content

fix(crs): [119721766] support state #2971

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/2971.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
resource/tencentcloud_redis_log_delivery: support for enabled fields.
```
10 changes: 10 additions & 0 deletions tencentcloud/services/crs/resource_tc_redis_log_delivery.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ func ResourceTencentCloudRedisLogDelivery() *schema.Resource {
Computed: true,
Description: "Whether to create an index when creating a log topic.",
},

"enabled": {
Type: schema.TypeBool,
Computed: true,
Description: "Log delivery enable status, enable: `true`, disable: `false`.",
},
},
}
}
Expand Down Expand Up @@ -227,6 +233,10 @@ func resourceTencentCloudRedisLogDeliveryRead(d *schema.ResourceData, meta inter
_ = d.Set("log_region", respData.LogRegion)
}

if respData.Enabled != nil {
_ = d.Set("enabled", respData.Enabled)
}

_ = instanceId
return nil
}
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/redis_log_delivery.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ The following arguments are supported:
In addition to all arguments above, the following attributes are exported:

* `id` - ID of the resource.

* `enabled` - Log delivery enable status, enable: `true`, disable: `false`.


## Import
Expand Down
Loading