public static interface CfnWebACL.DefaultActionProperty
The default action must be a terminating action.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.wafv2.*; DefaultActionProperty defaultActionProperty = DefaultActionProperty.builder() .allow(AllowActionProperty.builder() .customRequestHandling(CustomRequestHandlingProperty.builder() .insertHeaders(List.of(CustomHTTPHeaderProperty.builder() .name("name") .value("value") .build())) .build()) .build()) .block(BlockActionProperty.builder() .customResponse(CustomResponseProperty.builder() .responseCode(123) // the properties below are optional .customResponseBodyKey("customResponseBodyKey") .responseHeaders(List.of(CustomHTTPHeaderProperty.builder() .name("name") .value("value") .build())) .build()) .build()) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnWebACL.DefaultActionProperty.Builder
A builder for
CfnWebACL.DefaultActionProperty |
static class |
CfnWebACL.DefaultActionProperty.Jsii$Proxy
An implementation for
CfnWebACL.DefaultActionProperty |
Modifier and Type | Method and Description |
---|---|
static CfnWebACL.DefaultActionProperty.Builder |
builder() |
default java.lang.Object |
getAllow()
Specifies that AWS WAF should allow requests by default.
|
default java.lang.Object |
getBlock()
Specifies that AWS WAF should block requests by default.
|
default java.lang.Object getAllow()
default java.lang.Object getBlock()
static CfnWebACL.DefaultActionProperty.Builder builder()