@Stability(value=Stable)
public static interface CfnRuleGroup.MatchAttributesProperty
extends software.amazon.jsii.JsiiSerializable
Each match attributes set can include one or more items such as IP address, CIDR range, port number, protocol, and TCP flags.
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.networkfirewall.*;
MatchAttributesProperty matchAttributesProperty = 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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnRuleGroup.MatchAttributesProperty.Builder
A builder for
CfnRuleGroup.MatchAttributesProperty |
static class |
CfnRuleGroup.MatchAttributesProperty.Jsii$Proxy
An implementation for
CfnRuleGroup.MatchAttributesProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnRuleGroup.MatchAttributesProperty.Builder |
builder() |
default Object |
getDestinationPorts()
The destination ports to inspect for.
|
default Object |
getDestinations()
The destination IP addresses and address ranges to inspect for, in CIDR notation.
|
default Object |
getProtocols()
The protocols to inspect for, specified using each protocol's assigned internet protocol number (IANA).
|
default Object |
getSourcePorts()
The source ports to inspect for.
|
default Object |
getSources()
The source IP addresses and address ranges to inspect for, in CIDR notation.
|
default Object |
getTcpFlags()
The TCP flags and masks to inspect for.
|
@Stability(value=Stable) @Nullable default Object getDestinationPorts()
If not specified, this matches with any destination port. This setting is only used for protocols 6 (TCP) and 17 (UDP).
You can specify individual ports, for example 1994 and you can specify port ranges, for example 1990:1994 .
@Stability(value=Stable) @Nullable default Object getDestinations()
If not specified, this matches with any destination address.
@Stability(value=Stable) @Nullable default Object getProtocols()
If not specified, this matches with any protocol.
@Stability(value=Stable) @Nullable default Object getSourcePorts()
If not specified, this matches with any source port. This setting is only used for protocols 6 (TCP) and 17 (UDP).
You can specify individual ports, for example 1994 and you can specify port ranges, for example 1990:1994 .
@Stability(value=Stable) @Nullable default Object getSources()
If not specified, this matches with any source address.
@Stability(value=Stable) @Nullable default Object getTcpFlags()
If not specified, this matches with any settings. This setting is only used for protocol 6 (TCP).
@Stability(value=Stable) static CfnRuleGroup.MatchAttributesProperty.Builder builder()
Copyright © 2022. All rights reserved.