Class: Aws::GameLift::Types::ContainerPortMapping

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-gamelift/types.rb

Overview

**This data type is used with the Amazon GameLift containers feature, which is currently in public preview.**

Defines how an internal-facing container port is mapped to an external-facing connection port on a fleet instance of compute type ‘CONTAINER`. Incoming traffic, such as a game client, uses a connection port to connect to a process in the container fleet. Amazon GameLift directs the inbound traffic to the container port that is assigned to the process, such as a game session, running on a container.

**Part of:** ContainerAttributes

Constant Summary collapse

SENSITIVE =
[:container_port, :connection_port]

Instance Attribute Summary collapse

Instance Attribute Details

#connection_portInteger

The port opened on the fleet instance. This is also called the “host port”.

Returns:

  • (Integer)


1508
1509
1510
1511
1512
1513
1514
# File 'lib/aws-sdk-gamelift/types.rb', line 1508

class ContainerPortMapping < Struct.new(
  :container_port,
  :connection_port,
  :protocol)
  SENSITIVE = [:container_port, :connection_port]
  include Aws::Structure
end

#container_portInteger

The port opened on the container.

Returns:

  • (Integer)


1508
1509
1510
1511
1512
1513
1514
# File 'lib/aws-sdk-gamelift/types.rb', line 1508

class ContainerPortMapping < Struct.new(
  :container_port,
  :connection_port,
  :protocol)
  SENSITIVE = [:container_port, :connection_port]
  include Aws::Structure
end

#protocolString

The network protocol that this mapping supports.

Returns:

  • (String)


1508
1509
1510
1511
1512
1513
1514
# File 'lib/aws-sdk-gamelift/types.rb', line 1508

class ContainerPortMapping < Struct.new(
  :container_port,
  :connection_port,
  :protocol)
  SENSITIVE = [:container_port, :connection_port]
  include Aws::Structure
end