Interface CfnNetworkAclEntry.PortRangeProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnNetworkAclEntry.PortRangeProperty.Jsii$Proxy
- Enclosing class:
- CfnNetworkAclEntry
@Stability(Stable)
public static interface CfnNetworkAclEntry.PortRangeProperty
extends software.amazon.jsii.JsiiSerializable
Describes a range of ports.
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.ec2.*;
PortRangeProperty portRangeProperty = PortRangeProperty.builder()
.from(123)
.to(123)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnNetworkAclEntry.PortRangePropertystatic final classAn implementation forCfnNetworkAclEntry.PortRangeProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getFrom
The first port in the range.Required if you specify 6 (TCP) or 17 (UDP) for the protocol parameter.
-
getTo
The last port in the range.Required if you specify 6 (TCP) or 17 (UDP) for the protocol parameter.
-
builder
-