Class CfnRuleGroup.CustomResponseProperty.Jsii$Proxy
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.wafv2.CfnRuleGroup.CustomResponseProperty.Jsii$Proxy
- All Implemented Interfaces:
CfnRuleGroup.CustomResponseProperty,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- CfnRuleGroup.CustomResponseProperty
@Stability(Stable)
@Internal
public static final class CfnRuleGroup.CustomResponseProperty.Jsii$Proxy
extends software.amazon.jsii.JsiiObject
implements CfnRuleGroup.CustomResponseProperty
An implementation for
CfnRuleGroup.CustomResponseProperty-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.wafv2.CfnRuleGroup.CustomResponseProperty
CfnRuleGroup.CustomResponseProperty.Builder, CfnRuleGroup.CustomResponseProperty.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor that initializes the object based on literal property values passed by theCfnRuleGroup.CustomResponseProperty.Builder.protectedJsii$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.JsonNodefinal booleanfinal StringReferences the response body that you want AWS WAF to return to the web request client.final NumberThe HTTP status code to return to the client.final ObjectThe HTTP headers to use in the response.final inthashCode()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 theCfnRuleGroup.CustomResponseProperty.Builder.
-
-
Method Details
-
getResponseCode
Description copied from interface:CfnRuleGroup.CustomResponsePropertyThe 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:
getResponseCodein interfaceCfnRuleGroup.CustomResponseProperty
-
getCustomResponseBodyKey
Description copied from interface:CfnRuleGroup.CustomResponsePropertyReferences 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
CustomResponseBodiessetting for theWebACLorRuleGroupwhere you want to use it. Then, in the rule action or web ACL default actionBlockActionsetting, you reference the response body using this key.- Specified by:
getCustomResponseBodyKeyin interfaceCfnRuleGroup.CustomResponseProperty
-
getResponseHeaders
Description copied from interface:CfnRuleGroup.CustomResponsePropertyThe HTTP headers to use in the response. 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:
getResponseHeadersin interfaceCfnRuleGroup.CustomResponseProperty
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-