alicloud_dcdn_waf_policy

Provides a DCDN Waf Policy resource.

For information about DCDN Waf Policy and how to use it, see What is Waf Policy.

Example Usage

Basic Usage

variable "name" {
  default = "tf_example"
}

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

resource "alicloud_dcdn_waf_policy" "example" {
  defense_scene = "waf_group"
  policy_name   = "${var.name}_${random_integer.default.result}"
  policy_type   = "custom"
  status        = "on"
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Timeouts

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

Import

DCDN Waf Policy can be imported using the id, e.g.

$ terraform import alicloud_dcdn_waf_policy.example <id>