alicloud_wafv3_defense_template

Provides a WAFV3 Defense Template resource.

For information about WAFV3 Defense Template and how to use it, see What is Defense Template.

Example Usage

Basic Usage

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

data "alicloud_wafv3_instances" "default" {
}

resource "alicloud_wafv3_defense_template" "default" {
  status                = "1"
  instance_id           = data.alicloud_wafv3_instances.default.ids.0
  defense_template_name = var.name

  template_type                      = "user_custom"
  template_origin                    = "custom"
  defense_scene                      = "antiscan"
  resource_manager_resource_group_id = "example"
  description                        = var.name
}

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

WAFV3 Defense Template can be imported using the id, e.g.

$ terraform import alicloud_wafv3_defense_template.example <instance_id>:<defense_template_id>