alicloud_dcdn_kv_namespace

更新时间:

Provides a Dcdn Kv Namespace resource.

For information about Dcdn Kv Namespace and how to use it, see What is Kv Namespace.

-> NOTE: Available since v1.198.0.

Example Usage

Basic Usage


variable "name" {
  default = "terraform-example"
}

resource "random_integer" "default" {
  min = 10000
  max = 99999
}

resource "alicloud_dcdn_kv_namespace" "default" {
  description = var.name
  namespace   = "${var.name}-${random_integer.default.result}"
}

Argument Reference

The following arguments are supported:

  • description - (Required, ForceNew) Namespace description information
  • namespace - (Required, ForceNew) Namespace name. The name can contain letters, digits, hyphens (-), and underscores (_).

Attributes Reference

The following attributes are exported:

  • id - The key of the resource supplied above.
  • status - The status of the resource

Timeouts

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

  • create - (Defaults to 5 mins) Used when create the Kv Namespace.
  • delete - (Defaults to 5 mins) Used when delete the Kv Namespace.

Import

Dcdn Kv Namespace can be imported using the id, e.g.

$ terraform import alicloud_dcdn_kv_namespace.example