alicloud_ddos_basic_defense_threshold

Provides a Ddos Basic defense threshold resource.

For information about Ddos Basic Antiddos and how to use it, see What is Defense Threshold.

Example Usage

Basic Usage

variable "name" {
  default = "tf-example"
}
resource "alicloud_eip_address" "default" {
  address_name         = var.name
  isp                  = "BGP"
  internet_charge_type = "PayByBandwidth"
  payment_type         = "PayAsYouGo"
}

resource "alicloud_ddos_basic_defense_threshold" "default" {
  instance_id   = alicloud_eip_address.default.id
  ddos_type     = "defense"
  instance_type = "eip"
  bps           = 390
  pps           = 90000
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Import

Ddos Basic Antiddos can be imported using the id, e.g.

$ terraform import alicloud_ddos_basic_antiddos.example <instance_id>:<instance_type>:<ddos_type>