aws-cdk-lib.aws_gamelift.CfnFleet.IpPermissionProperty

interface IpPermissionProperty

LanguageType name
.NETAmazon.CDK.AWS.GameLift.CfnFleet.IpPermissionProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsgamelift#CfnFleet_IpPermissionProperty
Javasoftware.amazon.awscdk.services.gamelift.CfnFleet.IpPermissionProperty
Pythonaws_cdk.aws_gamelift.CfnFleet.IpPermissionProperty
TypeScript aws-cdk-lib » aws_gamelift » CfnFleet » IpPermissionProperty

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

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_gamelift as gamelift } from 'aws-cdk-lib';
const ipPermissionProperty: gamelift.CfnFleet.IpPermissionProperty = {
  fromPort: 123,
  ipRange: 'ipRange',
  protocol: 'protocol',
  toPort: 123,
};

Properties

NameTypeDescription
fromPortnumberA starting value for a range of allowed port numbers.
ipRangestringA range of allowed IP addresses.
protocolstringThe network communication protocol used by the fleet.
toPortnumberAn ending value for a range of allowed port numbers.

fromPort

Type: number

A starting value for a range of allowed port numbers.

For fleets using Linux builds, only ports 22 and 1026-60000 are valid.

For fleets using Windows builds, only ports 1026-60000 are valid.


ipRange

Type: string

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] ".


protocol

Type: string

The network communication protocol used by the fleet.


toPort

Type: number

An ending value for a range of allowed port numbers.

Port numbers are end-inclusive. This value must be equal to or greater than FromPort .

For fleets using Linux builds, only ports 22 and 1026-60000 are valid.

For fleets using Windows builds, only ports 1026-60000 are valid.