Skip to content

Files

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Latest commit

Jan 13, 2025
a7772ed · Jan 13, 2025

History

History
48 lines (34 loc) · 1.09 KB

cls_logset.html.markdown

File metadata and controls

48 lines (34 loc) · 1.09 KB
subcategory layout page_title sidebar_current description
Cloud Log Service(CLS)
tencentcloud
TencentCloud: tencentcloud_cls_logset
docs-tencentcloud-resource-cls_logset
Provides a resource to create a CLS logset

tencentcloud_cls_logset

Provides a resource to create a CLS logset

Example Usage

resource "tencentcloud_cls_logset" "example" {
  logset_name = "tf-example"
  tags = {
    createdBy = "Terraform"
  }
}

Argument Reference

The following arguments are supported:

  • logset_name - (Required, String) Logset name, which must be unique.
  • tags - (Optional, Map) Tag description list.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • id - ID of the resource.
  • create_time - Creation time.
  • role_name - If assumer_uin is not empty, it indicates the service provider who creates the logset.
  • topic_count - Number of log topics in logset.

Import

CLS logset can be imported using the id, e.g.

$ terraform import tencentcloud_cls_logset.example 698902ff-8b5a-4c65-824b-d8956f366351