alicloud_ddoscoo_scheduler_rule

Provides a DdosCoo Scheduler Rule resource. For information about DdosCoo Scheduler Rule and how to use it, seeWhat is DdosCoo Scheduler Rule.

Example Usage

Basic Usage

provider "alicloud" {
  region = "cn-hangzhou"
}

variable "name" {
  default = "tf-example"
}
resource "alicloud_ddoscoo_scheduler_rule" "example" {
  rule_name = var.name
  rule_type = 3
  rules {
    priority   = 100
    region_id  = "cn-hangzhou"
    type       = "A"
    value      = "127.0.0.1"
    value_type = 3
  }
  rules {
    priority   = 50
    region_id  = "cn-hangzhou"
    type       = "A"
    value      = "127.0.0.0"
    value_type = 1
  }
}

Argument Reference

The following arguments are supported:

rules

The rules supports the following:

Attributes Reference

The following attributes are exported:

Timeouts

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

Import

DdosCoo Scheduler Rule can be imported using the id or the rule name, e.g.

$ terraform import alicloud_ddoscoo_scheduler_rule.example fbb20dc77e8fc******