@Stability(value=Stable)
public static interface CfnFleet.IpPermissionProperty
extends software.amazon.jsii.JsiiSerializable
New game sessions are assigned an IP address/port number combination, which must fall into the fleet's allowed ranges. Fleets with custom game builds must have permissions explicitly set. For Realtime Servers fleets, GameLift automatically opens two port ranges, one for TCP messaging and one for UDP.
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnFleet.IpPermissionProperty.Builder
A builder for
CfnFleet.IpPermissionProperty |
static class |
CfnFleet.IpPermissionProperty.Jsii$Proxy
An implementation for
CfnFleet.IpPermissionProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnFleet.IpPermissionProperty.Builder |
builder() |
Number |
getFromPort()
A starting value for a range of allowed port numbers.
|
String |
getIpRange()
A range of allowed IP addresses.
|
String |
getProtocol()
The network communication protocol used by the fleet.
|
Number |
getToPort()
An ending value for a range of allowed port numbers.
|
@Stability(value=Stable) @NotNull Number getFromPort()
For fleets using Windows and Linux builds, only ports 1026-60000 are valid.
@Stability(value=Stable) @NotNull String getIpRange()
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] ".
@Stability(value=Stable) @NotNull String getProtocol()
@Stability(value=Stable) @NotNull Number getToPort()
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.
@Stability(value=Stable) static CfnFleet.IpPermissionProperty.Builder builder()
Copyright © 2022. All rights reserved.