@Stability(value=Stable) public static final class CfnWebACL.CustomResponseProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnWebACL.CustomResponseProperty>
CfnWebACL.CustomResponseProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnWebACL.CustomResponseProperty |
build()
Builds the configured instance.
|
CfnWebACL.CustomResponseProperty.Builder |
customResponseBodyKey(String customResponseBodyKey)
Sets the value of
CfnWebACL.CustomResponseProperty.getCustomResponseBodyKey() |
CfnWebACL.CustomResponseProperty.Builder |
responseCode(Number responseCode)
Sets the value of
CfnWebACL.CustomResponseProperty.getResponseCode() |
CfnWebACL.CustomResponseProperty.Builder |
responseHeaders(IResolvable responseHeaders)
Sets the value of
CfnWebACL.CustomResponseProperty.getResponseHeaders() |
CfnWebACL.CustomResponseProperty.Builder |
responseHeaders(List<? extends Object> responseHeaders)
Sets the value of
CfnWebACL.CustomResponseProperty.getResponseHeaders() |
@Stability(value=Stable) public CfnWebACL.CustomResponseProperty.Builder responseCode(Number responseCode)
CfnWebACL.CustomResponseProperty.getResponseCode()responseCode - The HTTP status code to return to the client. This parameter is required.
For 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 .this@Stability(value=Stable) public CfnWebACL.CustomResponseProperty.Builder customResponseBodyKey(String customResponseBodyKey)
CfnWebACL.CustomResponseProperty.getCustomResponseBodyKey()customResponseBodyKey - 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 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.this@Stability(value=Stable) public CfnWebACL.CustomResponseProperty.Builder responseHeaders(IResolvable responseHeaders)
CfnWebACL.CustomResponseProperty.getResponseHeaders()responseHeaders - The 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 .this@Stability(value=Stable) public CfnWebACL.CustomResponseProperty.Builder responseHeaders(List<? extends Object> responseHeaders)
CfnWebACL.CustomResponseProperty.getResponseHeaders()responseHeaders - The 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 .this@Stability(value=Stable) public CfnWebACL.CustomResponseProperty build()
build in interface software.amazon.jsii.Builder<CfnWebACL.CustomResponseProperty>CfnWebACL.CustomResponsePropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.