@Stability(value=Stable)
public static interface CfnFleet.IpPermissionProperty
extends software.amazon.jsii.JsiiSerializable
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();
| 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 Linux builds, only port 22, 443, 1026-60000 are valid. For fleets using Windows builds, only port 443, 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 Linux builds, only port 22, 443, 1026-60000 are valid. For fleets using Windows builds, only port 443, 1026-60000 are valid.
@Stability(value=Stable) static CfnFleet.IpPermissionProperty.Builder builder()
Copyright © 2022. All rights reserved.