Interface PortProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
PortProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:50.031Z")
@Stability(Experimental)
public interface PortProps
extends software.amazon.jsii.JsiiSerializable
(experimental) Properties to create a port range.
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.gamelift.alpha.*;
PortProps portProps = PortProps.builder()
.fromPort(123)
.protocol(Protocol.TCP)
// the properties below are optional
.toPort(123)
.build();
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic PortProps.Builderbuilder()(experimental) A starting value for a range of allowed port numbers.(experimental) The protocol for the range.default Number(experimental) An ending value for a range of allowed port numbers.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getFromPort
(experimental) A starting value for a range of allowed port numbers.For fleets using Windows and Linux builds, only ports 1026-60000 are valid.
-
getProtocol
(experimental) The protocol for the range. -
getToPort
(experimental) An ending value for a range of allowed port numbers.Port numbers are end-inclusive. This value must be higher than
fromPort.For fleets using Windows and Linux builds, only ports 1026-60000 are valid.
Default: the `fromPort` value
-
builder
- Returns:
- a
PortProps.BuilderofPortProps
-