Class CfnRuleGroupPropsMixin
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.networkfirewall.CfnRuleGroupPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-11T13:20:01.813Z")
@Stability(Stable)
public class CfnRuleGroupPropsMixin
extends Mixin
implements software.constructs.IMixin
Use the to define a reusable collection of stateless or stateful network traffic filtering rules. You use rule groups in an firewall policy to specify the filtering behavior of an firewall.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.networkfirewall.*;
import software.amazon.awscdk.*;
IMergeStrategy mergeStrategy;
CfnRuleGroupPropsMixin cfnRuleGroupPropsMixin = CfnRuleGroupPropsMixin.Builder.create(CfnRuleGroupMixinProps.builder()
.capacity(123)
.description("description")
.ruleGroup(RuleGroupProperty.builder()
.referenceSets(ReferenceSetsProperty.builder()
.ipSetReferences(Map.of(
"ipSetReferencesKey", Map.of(
"referenceArn", "referenceArn")))
.build())
.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")
.settings(List.of("settings"))
.build()))
.build()))
.statelessRulesAndCustomActions(StatelessRulesAndCustomActionsProperty.builder()
.customActions(List.of(CustomActionProperty.builder()
.actionDefinition(ActionDefinitionProperty.builder()
.publishMetricAction(PublishMetricActionProperty.builder()
.dimensions(List.of(DimensionProperty.builder()
.value("value")
.build()))
.build())
.build())
.actionName("actionName")
.build()))
.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"))
.masks(List.of("masks"))
.build()))
.build())
.build())
.build()))
.build())
.build())
.ruleVariables(RuleVariablesProperty.builder()
.ipSets(Map.of(
"ipSetsKey", Map.of(
"definition", List.of("definition"))))
.portSets(Map.of(
"portSetsKey", PortSetProperty.builder()
.definition(List.of("definition"))
.build()))
.build())
.statefulRuleOptions(StatefulRuleOptionsProperty.builder()
.ruleOrder("ruleOrder")
.build())
.build())
.ruleGroupName("ruleGroupName")
.summaryConfiguration(SummaryConfigurationProperty.builder()
.ruleOptions(List.of("ruleOptions"))
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.type("type")
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA custom action to use in stateless rule actions settings.static interfaceA single IP address specification.static final classA fluent builder forCfnRuleGroupPropsMixin.static interfaceAn optional, non-standard action to use for stateless packet handling.static interfaceThe value to use in an Amazon CloudWatch custom metric dimension.static interfaceThe 5-tuple criteria for AWS Network Firewall to use to inspect packet headers in stateful traffic flow inspection.static interfaceA list of IP addresses and address ranges, in CIDR notation.static interfaceConfigures one or more IP set references for a Suricata-compatible rule group.static interfaceCriteria for Network Firewall to use to inspect an individual packet in stateless rule inspection.static interfaceA single port range specification.static interfaceA set of port ranges for use in the rules in a rule group.static interfaceStateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for the matching packet.static interfaceConfigures the reference sets for a stateful rule group.static interfaceThe inspection criteria and action for a single stateless rule.static interfaceThe object that defines the rules in a rule group.static interfaceAdditional settings for a stateful rule.static interfaceStateful inspection criteria for a domain list rule group.static interfaceThe stateless or stateful rules definitions for use in a single rule group.static interfaceSettings that are available for use in the rules in the rule group where this is defined.static interfaceAdditional options governing how Network Firewall handles the rule group.static interfaceA single Suricata rules specification, for use in a stateful rule group.static interfaceA single stateless rule.static interfaceStateless inspection criteria.static interfaceA complex type that specifies which Suricata rule metadata fields to use when displaying threat information.static interfaceTCP flags and masks to inspect packets for.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::NetworkFirewall::RuleGroup.CfnRuleGroupPropsMixin(CfnRuleGroupMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::NetworkFirewall::RuleGroup.protectedCfnRuleGroupPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnRuleGroupPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnRuleGroupMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnRuleGroupPropsMixin
protected CfnRuleGroupPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnRuleGroupPropsMixin
protected CfnRuleGroupPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnRuleGroupPropsMixin
@Stability(Stable) public CfnRuleGroupPropsMixin(@NotNull CfnRuleGroupMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::NetworkFirewall::RuleGroup.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnRuleGroupPropsMixin
Create a mixin to apply properties toAWS::NetworkFirewall::RuleGroup.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-