RateLimitActionArgs

data class RateLimitActionArgs(val mode: Output<String>? = null, val response: Output<RateLimitActionResponseArgs>? = null, val timeout: Output<Double>? = null) : ConvertibleToJava<RateLimitActionArgs>

Constructors

Link copied to clipboard
constructor(mode: Output<String>? = null, response: Output<RateLimitActionResponseArgs>? = null, timeout: Output<Double>? = null)

Properties

Link copied to clipboard
val mode: Output<String>? = null

The action to perform. Available values: "simulate", "ban", "challenge", "jschallenge", "managedchallenge".

Link copied to clipboard

A custom content type and reponse to return when the threshold is exceeded. The custom response configured in this object will override the custom error for the zone. This object is optional. Notes: If you omit this object, Cloudflare will use the default HTML error page. If "mode" is "challenge", "managedchallenge", or "jschallenge", Cloudflare will use the zone challenge pages and you should not provide the "response" object.

Link copied to clipboard
val timeout: Output<Double>? = null

The time in seconds during which Cloudflare will perform the mitigation action. Must be an integer value greater than or equal to the period. Notes: If "mode" is "challenge", "managedchallenge", or "jschallenge", Cloudflare will use the zone's Challenge Passage time and you should not provide this value.

Functions

Link copied to clipboard
open override fun toJava(): RateLimitActionArgs