Skip to content
v2.274.0

Experimental

@aws-cdk/aws-gamelift-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

IngressRule Struct ​

A range of IP addresses and port settings that allow inbound traffic to connect to server processes on an instance in a fleet.

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 ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as gamelift_alpha from '@aws-cdk/aws-gamelift-alpha';

declare const peer: gamelift_alpha.IPeer;
declare const port: gamelift_alpha.Port;
const ingressRule: gamelift_alpha.IngressRule = {
  port: port,
  source: peer,
};

Properties ​

portPortportPortportPortPortPortPortPortrequired#
The port range used for ingress traffic.
sourceIPeersourceIPeersourceIPeerSourceIPeerSourceIPeerrequired#
A range of allowed IP addresses .