Class CfnContainerGroupDefinitionPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContainerGroupDefinitionPropsMixin>
- Enclosing class:
CfnContainerGroupDefinitionPropsMixin
CfnContainerGroupDefinitionPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()containerGroupType(String containerGroupType) The type of container group.create()create(CfnPropertyMixinOptions options) gameServerContainerDefinition(CfnContainerGroupDefinitionPropsMixin.GameServerContainerDefinitionProperty gameServerContainerDefinition) The definition for the game server container in this group.gameServerContainerDefinition(IResolvable gameServerContainerDefinition) The definition for the game server container in this group.A descriptive identifier for the container group definition.operatingSystem(String operatingSystem) The platform that all containers in the container group definition run on.sourceVersionNumber(Number sourceVersionNumber) A specific ContainerGroupDefinition version to be updated.supportContainerDefinitions(List<? extends Object> supportContainerDefinitions) The set of definitions for support containers in this group.supportContainerDefinitions(IResolvable supportContainerDefinitions) The set of definitions for support containers in this group.An array of key-value pairs to apply to this resource.totalMemoryLimitMebibytes(Number totalMemoryLimitMebibytes) The amount of memory (in MiB) on a fleet instance to allocate for the container group.totalVcpuLimit(Number totalVcpuLimit) The amount of vCPU units on a fleet instance to allocate for the container group (1 vCPU is equal to 1024 CPU units).versionDescription(String versionDescription) An optional description that was provided for a container group definition update.
-
Method Details
-
create
@Stability(Stable) public static CfnContainerGroupDefinitionPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnContainerGroupDefinitionPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnContainerGroupDefinitionPropsMixin.Builder.
-
containerGroupType
@Stability(Stable) public CfnContainerGroupDefinitionPropsMixin.Builder containerGroupType(String containerGroupType) The type of container group.Container group type determines how Amazon GameLift Servers deploys the container group on each fleet instance.
- Parameters:
containerGroupType- The type of container group. This parameter is required.- Returns:
this- See Also:
-
gameServerContainerDefinition
@Stability(Stable) public CfnContainerGroupDefinitionPropsMixin.Builder gameServerContainerDefinition(IResolvable gameServerContainerDefinition) The definition for the game server container in this group.This property is used only when the container group type is
GAME_SERVER. This container definition specifies a container image with the game server build.- Parameters:
gameServerContainerDefinition- The definition for the game server container in this group. This parameter is required.- Returns:
this- See Also:
-
gameServerContainerDefinition
@Stability(Stable) public CfnContainerGroupDefinitionPropsMixin.Builder gameServerContainerDefinition(CfnContainerGroupDefinitionPropsMixin.GameServerContainerDefinitionProperty gameServerContainerDefinition) The definition for the game server container in this group.This property is used only when the container group type is
GAME_SERVER. This container definition specifies a container image with the game server build.- Parameters:
gameServerContainerDefinition- The definition for the game server container in this group. This parameter is required.- Returns:
this- See Also:
-
name
A descriptive identifier for the container group definition.The name value is unique in an AWS Region.
- Parameters:
name- A descriptive identifier for the container group definition. This parameter is required.- Returns:
this- See Also:
-
operatingSystem
@Stability(Stable) public CfnContainerGroupDefinitionPropsMixin.Builder operatingSystem(String operatingSystem) The platform that all containers in the container group definition run on.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.
- Parameters:
operatingSystem- The platform that all containers in the container group definition run on. This parameter is required.- Returns:
this- See Also:
-
sourceVersionNumber
@Stability(Stable) public CfnContainerGroupDefinitionPropsMixin.Builder sourceVersionNumber(Number sourceVersionNumber) A specific ContainerGroupDefinition version to be updated.- Parameters:
sourceVersionNumber- A specific ContainerGroupDefinition version to be updated. This parameter is required.- Returns:
this- See Also:
-
supportContainerDefinitions
@Stability(Stable) public CfnContainerGroupDefinitionPropsMixin.Builder supportContainerDefinitions(IResolvable supportContainerDefinitions) The set of definitions for support containers in this group.A container group definition might have zero support container definitions. Support container can be used in any type of container group.
- Parameters:
supportContainerDefinitions- The set of definitions for support containers in this group. This parameter is required.- Returns:
this- See Also:
-
supportContainerDefinitions
@Stability(Stable) public CfnContainerGroupDefinitionPropsMixin.Builder supportContainerDefinitions(List<? extends Object> supportContainerDefinitions) The set of definitions for support containers in this group.A container group definition might have zero support container definitions. Support container can be used in any type of container group.
- Parameters:
supportContainerDefinitions- The set of definitions for support containers in this group. This parameter is required.- Returns:
this- See Also:
-
tags
@Stability(Stable) public CfnContainerGroupDefinitionPropsMixin.Builder tags(List<? extends CfnTag> tags) An array of key-value pairs to apply to this resource.- Parameters:
tags- An array of key-value pairs to apply to this resource. This parameter is required.- Returns:
this- See Also:
-
totalMemoryLimitMebibytes
@Stability(Stable) public CfnContainerGroupDefinitionPropsMixin.Builder totalMemoryLimitMebibytes(Number totalMemoryLimitMebibytes) The amount of memory (in MiB) on a fleet instance to allocate for the container group.All containers in the group share these resources.
You can set a limit for each container definition in the group. If individual containers have limits, this total value must be greater than any individual container's memory limit.
- Parameters:
totalMemoryLimitMebibytes- The amount of memory (in MiB) on a fleet instance to allocate for the container group. This parameter is required.- Returns:
this- See Also:
-
totalVcpuLimit
@Stability(Stable) public CfnContainerGroupDefinitionPropsMixin.Builder totalVcpuLimit(Number totalVcpuLimit) The amount of vCPU units on a fleet instance to allocate for the container group (1 vCPU is equal to 1024 CPU units).All containers in the group share these resources. You can set a limit for each container definition in the group. If individual containers have limits, this total value must be equal to or greater than the sum of the limits for each container in the group.
- Parameters:
totalVcpuLimit- The amount of vCPU units on a fleet instance to allocate for the container group (1 vCPU is equal to 1024 CPU units). This parameter is required.- Returns:
this- See Also:
-
versionDescription
@Stability(Stable) public CfnContainerGroupDefinitionPropsMixin.Builder versionDescription(String versionDescription) An optional description that was provided for a container group definition update.Each version can have a unique description.
- Parameters:
versionDescription- An optional description that was provided for a container group definition update. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnContainerGroupDefinitionPropsMixin>- Returns:
- a newly built instance of
CfnContainerGroupDefinitionPropsMixin.
-