alicloud_esa_list

更新时间:

Provides a ESA List resource.

For information about ESA List and how to use it, see What is List.

-> NOTE: Available since v1.242.0.

Example Usage

Basic Usage


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

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

resource "alicloud_esa_list" "default" {
  description = "resource example ip list"
  kind        = "ip"
  items = [
    "10.1.1.1",
    "10.1.1.2",
    "10.1.1.3"
  ]
  name = "resource_example_ip_list"
}

Argument Reference

The following arguments are supported:

  • description - (Optional) The description of the custom list.
  • items - (Optional, List) The items in the custom list, which are displayed as an array.
  • kind - (Optional, ForceNew) The type of the custom list.
  • name - (Required) The name of the custom list.

Attributes Reference

The following attributes are exported:

  • id - The ID of the resource supplied above.

Timeouts

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

  • create - (Defaults to 5 mins) Used when create the List.
  • delete - (Defaults to 5 mins) Used when delete the List.
  • update - (Defaults to 5 mins) Used when update the List.

Import

ESA List can be imported using the id, e.g.

$ terraform import alicloud_esa_list.example <id>