interface PortProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.GameLift.Alpha.PortProps |
![]() | github.com/aws/aws-cdk-go/awscdkgameliftalpha/v2#PortProps |
![]() | software.amazon.awscdk.services.gamelift.alpha.PortProps |
![]() | aws_cdk.aws_gamelift_alpha.PortProps |
![]() | @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
Name | Type | Description |
---|---|---|
from | number | A starting value for a range of allowed port numbers. |
protocol | Protocol | The protocol for the range. |
to | number | An 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.