PortProps

class aws_cdk.aws_gamelift_alpha.PortProps(*, from_port, protocol, to_port=None)

Bases: object

(experimental) Properties to create a port range.

Parameters:
  • from_port (Union[int, float]) – (experimental) A starting value for a range of allowed port numbers. For fleets using Windows and Linux builds, only ports 1026-60000 are valid.

  • protocol (Protocol) – (experimental) The protocol for the range.

  • to_port (Union[int, float, None]) – (experimental) 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. Default: the fromPort value

Stability:

experimental

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_gamelift_alpha as gamelift_alpha

port_props = gamelift_alpha.PortProps(
    from_port=123,
    protocol=gamelift_alpha.Protocol.TCP,

    # the properties below are optional
    to_port=123
)

Attributes

from_port

(experimental) A starting value for a range of allowed port numbers.

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

Stability:

experimental

protocol

(experimental) The protocol for the range.

Stability:

experimental

to_port

(experimental) 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.

Default:

the fromPort value

Stability:

experimental