Class CfnWebACL.CustomResponseProperty.Jsii$Proxy
- All Implemented Interfaces:
CfnWebACL.CustomResponseProperty
,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
CfnWebACL.CustomResponseProperty
CfnWebACL.CustomResponseProperty
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.wafv2.CfnWebACL.CustomResponseProperty
CfnWebACL.CustomResponseProperty.Builder, CfnWebACL.CustomResponseProperty.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor that initializes the object based on literal property values passed by theCfnWebACL.CustomResponseProperty.Builder
.protected
Jsii$Proxy
(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNode
final boolean
final String
References the response body that you want AWS WAF to return to the web request client.final Number
The HTTP status code to return to the client.final Object
The HTTP headers to use in the response.final int
hashCode()
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef
- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theCfnWebACL.CustomResponseProperty.Builder
.
-
-
Method Details
-
getResponseCode
Description copied from interface:CfnWebACL.CustomResponseProperty
The HTTP status code to return to the client.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 .
- Specified by:
getResponseCode
in interfaceCfnWebACL.CustomResponseProperty
- See Also:
-
getCustomResponseBodyKey
Description copied from interface:CfnWebACL.CustomResponseProperty
References the response body that you want AWS WAF to return to the web request client.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 theWebACL
orRuleGroup
where you want to use it. Then, in the rule action or web ACL default actionBlockAction
setting, you reference the response body using this key.- Specified by:
getCustomResponseBodyKey
in interfaceCfnWebACL.CustomResponseProperty
- See Also:
-
getResponseHeaders
Description copied from interface:CfnWebACL.CustomResponseProperty
The HTTP headers to use in the response.You can specify any header name except for
content-type
. Duplicate header names are not allowed.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 .
- Specified by:
getResponseHeaders
in interfaceCfnWebACL.CustomResponseProperty
- See Also:
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-