alicloud_esa_page
更新时间:
Provides a ESA Page resource.
For information about ESA Page and how to use it, see What is Page.
-> NOTE: Available since v1.242.0.
Example Usage
Basic Usage
provider "alicloud" {
region = "cn-hangzhou"
}
variable "name" {
default = "terraform-example"
}
resource "alicloud_esa_page" "default" {
description = "example resource html page"
content_type = "text/html"
content = "PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9InpoLUNOIj4KICA8aGVhZD4KICAgIDx0aXRsZT40MDMgRm9yYmlkZGVuPC90aXRsZT4KICA8L2hlYWQ+CiAgPGJvZHk+CiAgICA8aDE+NDAzIEZvcmJpZGRlbjwvaDE+CiAgPC9ib2R5Pgo8L2h0bWw+"
page_name = "resource_example_html_page"
}
Argument Reference
The following arguments are supported:
content
- (Optional) The Base64-encoded content of the error page. The content type is specified by the Content-Type field.content_type
- (Required) The Content-Type field in the HTTP header.description
- (Optional) The description of the custom error page.page_name
- (Required) The name of the custom response page.
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 Page.delete
- (Defaults to 5 mins) Used when delete the Page.update
- (Defaults to 5 mins) Used when update the Page.
Import
ESA Page can be imported using the id, e.g.
$ terraform import alicloud_esa_page.example <id>
该文章对您有帮助吗?