Skip to content

ContainerPortMapping

Source code in docs_src/capo_gamelift/types/container_port_mapping.py
class ContainerPortMapping(TypedDict, closed=True):
    container_port: NotRequired["capo_gamelift.types.port_number.PortNumber"]
    """<p>The port number on the container. This port is defined in the container group definition. Container port numbers must be unique within a container group definition.</p>"""
    connection_port: NotRequired["capo_gamelift.types.port_number.PortNumber"]
    """<p>The port number on the fleet instance that maps to the container port. Connection ports are assigned by Amazon GameLift Servers when the container group is deployed to an instance.</p>"""
    protocol: NotRequired["capo_gamelift.types.ip_protocol.IpProtocol"]
    """<p>The network protocol for the port mapping. Valid values are <code>TCP</code> or <code>UDP</code>.</p>"""

connection_port instance-attribute

connection_port: NotRequired[PortNumber]

The port number on the fleet instance that maps to the container port. Connection ports are assigned by Amazon GameLift Servers when the container group is deployed to an instance.

container_port instance-attribute

container_port: NotRequired[PortNumber]

The port number on the container. This port is defined in the container group definition. Container port numbers must be unique within a container group definition.

protocol instance-attribute

protocol: NotRequired[IpProtocol]

The network protocol for the port mapping. Valid values are TCP or UDP.