@aws-cdk_aws-gamelift-alpha.PortProps

interface PortProps ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.GameLift.Alpha.PortProps
Gogithub.com/aws/aws-cdk-go/awscdkgameliftalpha/v2#PortProps
Javasoftware.amazon.awscdk.services.gamelift.alpha.PortProps
Pythonaws_cdk.aws_gamelift_alpha.PortProps
TypeScript (source)@aws-cdk/aws-gamelift-alpha ยป PortProps

Properties to create a port range.

Example

// 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';
const portProps: gamelift_alpha.PortProps = {
  fromPort: 123,
  protocol: gamelift_alpha.Protocol.TCP,

  // the properties below are optional
  toPort: 123,
};

Properties

NameTypeDescription
fromPort๐Ÿ”นnumberA starting value for a range of allowed port numbers.
protocol๐Ÿ”นProtocolThe protocol for the range.
toPort?๐Ÿ”นnumberAn 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 Windows and Linux builds, only ports 1026-60000 are valid.


protocol๐Ÿ”น

Type: Protocol

The protocol for the range.


toPort?๐Ÿ”น

Type: number (optional, default: the fromPort value)

An ending value for a range of allowed port numbers.

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.