FrontDoorPolicySettingsArgs

data class FrontDoorPolicySettingsArgs(val customBlockResponseBody: Output<String>? = null, val customBlockResponseStatusCode: Output<Int>? = null, val enabledState: Output<Either<String, PolicyEnabledState>>? = null, val mode: Output<Either<String, PolicyMode>>? = null, val redirectUrl: Output<String>? = null, val requestBodyCheck: Output<Either<String, PolicyRequestBodyCheck>>? = null) : ConvertibleToJava<FrontDoorPolicySettingsArgs>

Defines top-level WebApplicationFirewallPolicy configuration settings.

Constructors

Link copied to clipboard
constructor(customBlockResponseBody: Output<String>? = null, customBlockResponseStatusCode: Output<Int>? = null, enabledState: Output<Either<String, PolicyEnabledState>>? = null, mode: Output<Either<String, PolicyMode>>? = null, redirectUrl: Output<String>? = null, requestBodyCheck: Output<Either<String, PolicyRequestBodyCheck>>? = null)

Properties

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

If the action type is block, customer can override the response body. The body must be specified in base64 encoding.

Link copied to clipboard
val customBlockResponseStatusCode: Output<Int>? = null

If the action type is block, customer can override the response status code.

Link copied to clipboard
val enabledState: Output<Either<String, PolicyEnabledState>>? = null

Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified.

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

Describes if it is in detection mode or prevention mode at policy level.

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

If action type is redirect, this field represents redirect URL for the client.

Link copied to clipboard
val requestBodyCheck: Output<Either<String, PolicyRequestBodyCheck>>? = null

Describes if policy managed rules will inspect the request body content.

Functions

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