PolicySettingsArgs

data class PolicySettingsArgs(val customBlockResponseBody: Output<String>? = null, val customBlockResponseStatusCode: Output<Int>? = null, val fileUploadEnforcement: Output<Boolean>? = null, val fileUploadLimitInMb: Output<Int>? = null, val logScrubbing: Output<PolicySettingsLogScrubbingArgs>? = null, val maxRequestBodySizeInKb: Output<Int>? = null, val mode: Output<Either<String, WebApplicationFirewallMode>>? = null, val requestBodyCheck: Output<Boolean>? = null, val requestBodyEnforcement: Output<Boolean>? = null, val requestBodyInspectLimitInKB: Output<Int>? = null, val state: Output<Either<String, WebApplicationFirewallEnabledState>>? = null) : ConvertibleToJava<PolicySettingsArgs>

Defines contents of a web application firewall global configuration.

Constructors

Link copied to clipboard
constructor(customBlockResponseBody: Output<String>? = null, customBlockResponseStatusCode: Output<Int>? = null, fileUploadEnforcement: Output<Boolean>? = null, fileUploadLimitInMb: Output<Int>? = null, logScrubbing: Output<PolicySettingsLogScrubbingArgs>? = null, maxRequestBodySizeInKb: Output<Int>? = null, mode: Output<Either<String, WebApplicationFirewallMode>>? = null, requestBodyCheck: Output<Boolean>? = null, requestBodyEnforcement: Output<Boolean>? = null, requestBodyInspectLimitInKB: Output<Int>? = null, state: Output<Either<String, WebApplicationFirewallEnabledState>>? = 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 fileUploadEnforcement: Output<Boolean>? = null

Whether allow WAF to enforce file upload limits.

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

Maximum file upload size in Mb for WAF.

Link copied to clipboard

To scrub sensitive log fields

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

Maximum request body size in Kb for WAF.

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

The mode of the policy.

Link copied to clipboard
val requestBodyCheck: Output<Boolean>? = null

Whether to allow WAF to check request Body.

Link copied to clipboard
val requestBodyEnforcement: Output<Boolean>? = null

Whether allow WAF to enforce request body limits.

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

Max inspection limit in KB for request body inspection for WAF.

Link copied to clipboard
val state: Output<Either<String, WebApplicationFirewallEnabledState>>? = null

The state of the policy.

Functions

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