@Stability(value=Stable)
public static interface CfnRuleGroup.RuleGroupProperty
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.networkfirewall.*;
IPSetProperty pSetProperty;
RuleGroupProperty ruleGroupProperty = RuleGroupProperty.builder()
.rulesSource(RulesSourceProperty.builder()
.rulesSourceList(RulesSourceListProperty.builder()
.generatedRulesType("generatedRulesType")
.targets(List.of("targets"))
.targetTypes(List.of("targetTypes"))
.build())
.rulesString("rulesString")
.statefulRules(List.of(StatefulRuleProperty.builder()
.action("action")
.header(HeaderProperty.builder()
.destination("destination")
.destinationPort("destinationPort")
.direction("direction")
.protocol("protocol")
.source("source")
.sourcePort("sourcePort")
.build())
.ruleOptions(List.of(RuleOptionProperty.builder()
.keyword("keyword")
// the properties below are optional
.settings(List.of("settings"))
.build()))
.build()))
.statelessRulesAndCustomActions(StatelessRulesAndCustomActionsProperty.builder()
.statelessRules(List.of(StatelessRuleProperty.builder()
.priority(123)
.ruleDefinition(RuleDefinitionProperty.builder()
.actions(List.of("actions"))
.matchAttributes(MatchAttributesProperty.builder()
.destinationPorts(List.of(PortRangeProperty.builder()
.fromPort(123)
.toPort(123)
.build()))
.destinations(List.of(AddressProperty.builder()
.addressDefinition("addressDefinition")
.build()))
.protocols(List.of(123))
.sourcePorts(List.of(PortRangeProperty.builder()
.fromPort(123)
.toPort(123)
.build()))
.sources(List.of(AddressProperty.builder()
.addressDefinition("addressDefinition")
.build()))
.tcpFlags(List.of(TCPFlagFieldProperty.builder()
.flags(List.of("flags"))
// the properties below are optional
.masks(List.of("masks"))
.build()))
.build())
.build())
.build()))
// the properties below are optional
.customActions(List.of(CustomActionProperty.builder()
.actionDefinition(ActionDefinitionProperty.builder()
.publishMetricAction(PublishMetricActionProperty.builder()
.dimensions(List.of(DimensionProperty.builder()
.value("value")
.build()))
.build())
.build())
.actionName("actionName")
.build()))
.build())
.build())
// the properties below are optional
.ruleVariables(RuleVariablesProperty.builder()
.ipSets(Map.of(
"ipSetsKey", pSetProperty))
.portSets(Map.of(
"portSetsKey", PortSetProperty.builder()
.definition(List.of("definition"))
.build()))
.build())
.statefulRuleOptions(StatefulRuleOptionsProperty.builder()
.ruleOrder("ruleOrder")
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnRuleGroup.RuleGroupProperty.Builder
A builder for
CfnRuleGroup.RuleGroupProperty |
static class |
CfnRuleGroup.RuleGroupProperty.Jsii$Proxy
An implementation for
CfnRuleGroup.RuleGroupProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnRuleGroup.RuleGroupProperty.Builder |
builder() |
Object |
getRulesSource()
`CfnRuleGroup.RuleGroupProperty.RulesSource`.
|
default Object |
getRuleVariables()
`CfnRuleGroup.RuleGroupProperty.RuleVariables`.
|
default Object |
getStatefulRuleOptions()
`CfnRuleGroup.RuleGroupProperty.StatefulRuleOptions`.
|
@Stability(value=Stable) @NotNull Object getRulesSource()
@Stability(value=Stable) @Nullable default Object getRuleVariables()
@Stability(value=Stable) @Nullable default Object getStatefulRuleOptions()
@Stability(value=Stable) static CfnRuleGroup.RuleGroupProperty.Builder builder()
Copyright © 2021. All rights reserved.