@Stability(value=Stable)
public static interface CfnRuleGroup.PortRangeProperty
extends software.amazon.jsii.JsiiSerializable
This is used for source and destination port ranges in the stateless RuleGroup.MatchAttributes .
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.*;
PortRangeProperty portRangeProperty = PortRangeProperty.builder()
.fromPort(123)
.toPort(123)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnRuleGroup.PortRangeProperty.Builder
A builder for
CfnRuleGroup.PortRangeProperty |
static class |
CfnRuleGroup.PortRangeProperty.Jsii$Proxy
An implementation for
CfnRuleGroup.PortRangeProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnRuleGroup.PortRangeProperty.Builder |
builder() |
Number |
getFromPort()
The lower limit of the port range.
|
Number |
getToPort()
The upper limit of the port range.
|
@Stability(value=Stable) @NotNull Number getFromPort()
This must be less than or equal to the ToPort specification.
@Stability(value=Stable) @NotNull Number getToPort()
This must be greater than or equal to the FromPort specification.
@Stability(value=Stable) static CfnRuleGroup.PortRangeProperty.Builder builder()
Copyright © 2022. All rights reserved.