Interface CfnContainerFleet.IpPermissionProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnContainerFleet.IpPermissionProperty.Jsii$Proxy
- Enclosing class:
CfnContainerFleet
@Stability(Stable)
public static interface CfnContainerFleet.IpPermissionProperty
extends software.amazon.jsii.JsiiSerializable
A range of IP addresses and port settings that allow inbound traffic to connect to server processes on an Amazon GameLift hosting resource.
New game sessions that are started on the fleet are assigned an IP address/port number combination, which must fall into the fleet's allowed ranges. For fleets created with a custom game server, the ranges reflect the server's game session assignments. For Realtime Servers fleets, Amazon GameLift automatically opens two port ranges, one for TCP messaging and one for UDP, for use by the Realtime servers.
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.*;
IpPermissionProperty ipPermissionProperty = IpPermissionProperty.builder()
.fromPort(123)
.ipRange("ipRange")
.protocol("protocol")
.toPort(123)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnContainerFleet.IpPermissionPropertystatic final classAn implementation forCfnContainerFleet.IpPermissionProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()A starting value for a range of allowed port numbers.A range of allowed IP addresses.The network communication protocol used by the fleet.An ending value for a range of allowed port numbers.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getFromPort
A starting value for a range of allowed port numbers.- See Also:
-
getIpRange
A range of allowed IP addresses.This value must be expressed in CIDR notation. Example: "000.000.000.000/[subnet mask]" or optionally the shortened version "0.0.0.0/[subnet mask]".
- See Also:
-
getProtocol
The network communication protocol used by the fleet.- See Also:
-
getToPort
An ending value for a range of allowed port numbers.Port numbers are end-inclusive. This value must be higher than FromPort.
- See Also:
-
builder
-