UpdateContainerGroupDefinitionInput
¶
Source code in docs_src/capo_gamelift/types/update_container_group_definition_input.py
game_server_container_definition
instance-attribute
¶
game_server_container_definition: NotRequired[GameServerContainerDefinitionInput]
An updated definition for the game server container in this group. Define a game server container only when the container group type is GAME_SERVER. You can pass in your container definitions as a JSON file.
name
instance-attribute
¶
name: NotRequired[ContainerGroupDefinitionNameOrArn]
A descriptive identifier for the container group definition. The name value must be unique in an Amazon Web Services Region.
operating_system
instance-attribute
¶
operating_system: NotRequired[ContainerOperatingSystem]
The platform that all containers in the group use. Containers in a group must run on the same operating system.
Amazon Linux 2 (AL2) will reach end of support on 6/30/2026. See more details in the Amazon Linux 2 FAQs. For game servers that are hosted on AL2 and use server SDK version 4.x for Amazon GameLift Servers, first update the game server build to server SDK 5.x, and then deploy to AL2023 instances. See Migrate to server SDK version 5.
remove_attributes
instance-attribute
¶
remove_attributes: NotRequired[ContainerGroupDefinitionRemoveAttributeList]
If set, this update removes the container group's total vCPU limit, and the group's containers can use up to the instance's available vCPU. You can't remove the total vCPU limit from a per-instance container group. A game server container group needs either a total vCPU limit or a Vcpu value for the game server container. You can't set TotalVcpuLimit in the same request.
source_version_number
instance-attribute
¶
source_version_number: NotRequired[PositiveInteger]
The container group definition version to update. The new version starts with values from the source version, and then updates values included in this request.
support_container_definitions
instance-attribute
¶
support_container_definitions: NotRequired[SupportContainerDefinitionInputList]
One or more definitions for support containers in this group. You can define a support container in any type of container group. You can pass in your container definitions as a JSON file.
total_memory_limit_mebibytes
instance-attribute
¶
total_memory_limit_mebibytes: NotRequired[ContainerTotalMemoryLimit]
The maximum amount of memory (in MiB) to allocate to the container group. All containers in the group share this memory. If you specify memory limits for an individual container, the total value must be greater than any individual container's memory limit.
total_vcpu_limit
instance-attribute
¶
total_vcpu_limit: NotRequired[ContainerTotalVcpuLimit]
The maximum amount of vCPU units to allocate to the container group (1 vCPU is equal to 1024 CPU units). All containers in the group share these resources. If you set vCPU reservations for individual containers, the total value must be equal to or greater than the sum of the Vcpu values for all containers in the group.
For a game server container group, Amazon GameLift Servers requires either a total vCPU limit or a Vcpu value for the game server container. If the container group has a total vCPU limit, Amazon GameLift Servers uses this value to calculate how many game server container groups fit on an instance. If the container group doesn't have a total vCPU limit, its containers can use up to the instance's available vCPU, and Amazon GameLift Servers uses the sum of the containers' Vcpu values to calculate how many game server container groups fit on an instance. To remove the total vCPU limit, omit this parameter and set RemoveAttributes to TOTAL_VCPU_LIMIT.
version_description
instance-attribute
¶
version_description: NotRequired[NonZeroAndMaxString]
A description for this update to the container group definition.