GameServerContainerDefinition
¶
Source code in docs_src/capo_gamelift/types/game_server_container_definition.py
container_name
instance-attribute
¶
container_name: NotRequired[NonZeroAnd128MaxAsciiString]
The container definition identifier. Container names are unique within a container group definition.
depends_on
instance-attribute
¶
depends_on: NotRequired[ContainerDependencyList]
Indicates that the container relies on the status of other containers in the same container group during startup and shutdown sequences. A container might have dependencies on multiple containers.
environment_override
instance-attribute
¶
environment_override: NotRequired[ContainerEnvironmentList]
A set of environment variables that's passed to the container on startup. See the ContainerDefinition::environment parameter in the Amazon Elastic Container Service API Reference.
image_uri
instance-attribute
¶
image_uri: NotRequired[ImageUriString]
The URI to the image that Amazon GameLift Servers uses when deploying this container to a container fleet. For a more specific identifier, see ResolvedImageDigest.
linux_capabilities
instance-attribute
¶
linux_capabilities: NotRequired[LinuxCapabilities]
Linux-specific modifications that are applied to the default Docker container configuration, such as Linux capabilities. For more information see LinuxCapabilities.
mount_points
instance-attribute
¶
mount_points: NotRequired[ContainerMountPointList]
A mount point that binds a path inside the container to a file or directory on the host system and lets it access the file or directory.
port_configuration
instance-attribute
¶
port_configuration: NotRequired[ContainerPortConfiguration]
The set of ports that are available to bind to processes in the container. For example, a game server process requires a container port to allow game clients to connect to it. Container ports aren't directly accessed by inbound traffic. Amazon GameLift Servers maps these container ports to externally accessible connection ports, which are assigned as needed from the container fleet's ConnectionPortRange.
resolved_image_digest
instance-attribute
¶
resolved_image_digest: NotRequired[Sha256]
A unique and immutable identifier for the container image. The digest is a SHA 256 hash of the container image manifest.
server_sdk_version
instance-attribute
¶
server_sdk_version: NotRequired[ServerSdkVersion]
The Amazon GameLift Servers server SDK version that the game server is integrated with. Only game servers using 5.2.0 or higher are compatible with container fleets.
vcpu
instance-attribute
¶
vcpu: NotRequired[ContainerVcpu]
The number of vCPU units reserved for the game server container. The container can use more vCPU when it's available, up to the container group's total vCPU limit if one is set. If the container group has a total vCPU limit and the request doesn't set this value, Amazon GameLift Servers calculates the game server container's vCPU as the total vCPU limit minus the sum of the vCPU units reserved for the group's support containers.
A game server container group needs either a total vCPU limit or this value. If the container group doesn't have a total vCPU limit, the group's containers can use up to the instance's available vCPU, and Amazon GameLift Servers uses the sum of the group's container Vcpu values to calculate how many game server container groups fit on an instance.
Related data type: ContainerGroupDefinition TotalVcpuLimit