پرش به مطلب اصلی

arvancloud_cdn_domain_ddos (Resource)

Domain's DDoS Settings.

Example Usage

resource "arvancloud_cdn_domain_ddos" "example" {
domain = "cdn-terraform.ir"
protection_mode = "cookie"
preflight = {
"access_credentials" = "include"
"access_expose_headers" = ""
"access_headers" = ""
"access_methods" = [
"GET",
"OPTIONS",
"DELETE",
"POST",
]
"access_origin" = ""
}
https_only = false
captcha_service = "recaptcha"
ttl = 100
}

Schema

Required

  • domain (String) UUID or the name of the domain.

Optional

  • captcha_service (String) DDoS Captcha service
  • https_only (Boolean) Adds 'SameSite=None; Secure' to set-cookie header.
  • preflight (Attributes) (see below for nested schema)
  • protection_mode (String) DDoS protection mode.
  • ttl (Number) Time in seconds for cookie max-age.

Read-Only

  • is_enabled (Boolean) Whether the DDoS is active or not.
  • last_updated (String) Timestamp of the last Terraform update of the domain.

Nested Schema for preflight

Optional:

  • access_credentials (String)
  • access_expose_headers (String)
  • access_headers (String)
  • access_methods (List of String)
  • access_origin (String)

Import

Import is supported using the following syntax:

terraform import arvancloud_cdn_domain_ddos.example cdn-terraform.ir