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.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.wafv2.CfnWebACL.CustomResponseProperty
CfnWebACL.CustomResponseProperty.Builder, CfnWebACL.CustomResponseProperty.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor that initializes the object based on literal property values passed by theCfnWebACL.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 theCfnWebACL.CustomResponseProperty.Builder.
-
-
Method Details
-
getResponseCode
Description copied from interface:CfnWebACL.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 interfaceCfnWebACL.CustomResponseProperty- See Also:
-
getCustomResponseBodyKey
Description copied from interface:CfnWebACL.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 interfaceCfnWebACL.CustomResponseProperty- See Also:
-
getResponseHeaders
Description copied from interface:CfnWebACL.CustomResponsePropertyThe 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 .
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnWebACL.CustomHTTPHeaderProperty>- Specified by:
getResponseHeadersin interfaceCfnWebACL.CustomResponseProperty- See Also:
-
$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()
-