Provides a Dcdn Kv Namespace resource.
For information about Dcdn Kv Namespace and how to use it, see What is Kv Namespace.
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}"
}
The following arguments are supported:
description
- (Required, ForceNew) Namespace description informationnamespace
- (Required, ForceNew) Namespace name. The name can contain letters, digits, hyphens (-), and underscores (_).The following attributes are exported:
id
- The key
of the resource supplied above.status
- The status of the resourceThe 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.Dcdn Kv Namespace can be imported using the id, e.g.
$ terraform import alicloud_dcdn_kv_namespace.example