@Stability(value=Stable)
public static interface CfnWebACL.RuleActionProperty
extends software.amazon.jsii.JsiiSerializable
// 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.*;
RuleActionProperty ruleActionProperty = RuleActionProperty.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())
.count(CountActionProperty.builder()
.customRequestHandling(CustomRequestHandlingProperty.builder()
.insertHeaders(List.of(CustomHTTPHeaderProperty.builder()
.name("name")
.value("value")
.build()))
.build())
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnWebACL.RuleActionProperty.Builder
A builder for
CfnWebACL.RuleActionProperty |
static class |
CfnWebACL.RuleActionProperty.Jsii$Proxy
An implementation for
CfnWebACL.RuleActionProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnWebACL.RuleActionProperty.Builder |
builder() |
default Object |
getAllow()
`CfnWebACL.RuleActionProperty.Allow`.
|
default Object |
getBlock()
`CfnWebACL.RuleActionProperty.Block`.
|
default Object |
getCount()
`CfnWebACL.RuleActionProperty.Count`.
|
@Stability(value=Stable) @Nullable default Object getAllow()
@Stability(value=Stable) @Nullable default Object getBlock()
@Stability(value=Stable) @Nullable default Object getCount()
@Stability(value=Stable) static CfnWebACL.RuleActionProperty.Builder builder()
Copyright © 2021. All rights reserved.