alicloud_cms_namespace

更新时间:

Provides a Cloud Monitor Service Namespace resource.

For information about Cloud Monitor Service Namespace and how to use it, see What is Namespace.

-> NOTE: Available since v1.171.0.

Example Usage

Basic Usage


resource "alicloud_cms_namespace" "example" {
  namespace     = "tf-example"
  specification = "cms.s1.large"
}

Argument Reference

The following arguments are supported:

  • namespace - (Required, ForceNew) The name of the namespace. The name can contain lowercase letters, digits, and hyphens (-).
  • specification - (Optional) The data retention period. Default value: cms.s1.3xlarge. Valid values:
    • cms.s1.large: Data storage duration is 15 days.
    • cms.s1.xlarge: Data storage duration is 32 days.
    • cms.s1.2xlarge: Data storage duration 63 days.
    • cms.s1.3xlarge: Data storage duration 93 days.
    • cms.s1.6xlarge: Data storage duration 185 days.
    • cms.s1.12xlarge: Data storage duration 376 days.
  • description - (Optional) The description of the namespace.

Attributes Reference

The following attributes are exported:

  • id - The resource ID in terraform of Namespace. Its value is same as namespace.

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • create - (Defaults to 1 min) Used when create the Namespace.
  • update - (Defaults to 1 min) Used when update the Namespace.
  • delete - (Defaults to 1 min) Used when delete the Namespace.

Import

Cloud Monitor Service Namespace can be imported using the id, e.g.

$ terraform import alicloud_cms_namespace.example <id>