@Stability(value=Stable) @Internal public static final class CfnWebACL.CustomResponseProperty.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnWebACL.CustomResponseProperty
CfnWebACL.CustomResponsePropertysoftware.amazon.jsii.JsiiObject.InitializationModeCfnWebACL.CustomResponseProperty.Builder, CfnWebACL.CustomResponseProperty.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(CfnWebACL.CustomResponseProperty.Builder builder)
Constructor that initializes the object based on literal property values passed by the
CfnWebACL.AllowActionProperty.Builder. |
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
String |
getCustomResponseBodyKey()
References the response body that you want AWS WAF to return to the web request client.
|
Number |
getResponseCode()
The HTTP status code to return to the client.
|
Object |
getResponseHeaders()
The HTTP headers to use in the response.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(CfnWebACL.CustomResponseProperty.Builder builder)
CfnWebACL.AllowActionProperty.Builder.public final Number getResponseCode()
CfnWebACL.CustomResponsePropertyFor a list of status codes that you can use in your custom reqponses, see Supported status codes for custom response in the AWS WAF Developer Guide .
getResponseCode in interface CfnWebACL.CustomResponsePropertypublic final String getCustomResponseBodyKey()
CfnWebACL.CustomResponseProperty
You can define a custom response for a rule action or a default web ACL action that is set to block. To do this, you first define the response body key and value in the CustomResponseBodies setting for the WebACL or RuleGroup where you want to use it. Then, in the rule action or web ACL default action BlockAction setting, you reference the response body using this key.
getCustomResponseBodyKey in interface CfnWebACL.CustomResponsePropertypublic final Object getResponseHeaders()
CfnWebACL.CustomResponsePropertyFor information about the limits on count and size for custom request and response settings, see AWS WAF quotas in the AWS WAF Developer Guide .
getResponseHeaders in interface CfnWebACL.CustomResponseProperty@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2022. All rights reserved.