public static final class CfnRuleGroup.CustomResponseProperty.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnRuleGroup.CustomResponseProperty
CfnRuleGroup.CustomResponseProperty
CfnRuleGroup.CustomResponseProperty.Builder, CfnRuleGroup.CustomResponseProperty.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
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(java.lang.Object o) |
java.lang.String |
getCustomResponseBodyKey()
References the response body that you want AWS WAF to return to the web request client.
|
java.lang.Number |
getResponseCode()
The HTTP status code to return to the client.
|
java.lang.Object |
getResponseHeaders()
The HTTP headers to use in the response.
|
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef
- Reference to the JSII managed object.public final java.lang.Number getResponseCode()
CfnRuleGroup.CustomResponseProperty
For a list of status codes that you can use in your custom responses, see Supported status codes for custom response in the AWS WAF Developer Guide .
getResponseCode
in interface CfnRuleGroup.CustomResponseProperty
public final java.lang.String getCustomResponseBodyKey()
CfnRuleGroup.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 CfnRuleGroup.CustomResponseProperty
public final java.lang.Object getResponseHeaders()
CfnRuleGroup.CustomResponseProperty
For 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 CfnRuleGroup.CustomResponseProperty
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
public final boolean equals(java.lang.Object o)
public final int hashCode()