Interface SupportContainerDefinitionInput.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<SupportContainerDefinitionInput.Builder,
,SupportContainerDefinitionInput> SdkBuilder<SupportContainerDefinitionInput.Builder,
,SupportContainerDefinitionInput> SdkPojo
- Enclosing class:
SupportContainerDefinitionInput
-
Method Summary
Modifier and TypeMethodDescriptioncontainerName
(String containerName) A string that uniquely identifies the container definition within a container group.dependsOn
(Collection<ContainerDependency> dependsOn) Establishes dependencies between this container and the status of other containers in the same container group.dependsOn
(Consumer<ContainerDependency.Builder>... dependsOn) Establishes dependencies between this container and the status of other containers in the same container group.dependsOn
(ContainerDependency... dependsOn) Establishes dependencies between this container and the status of other containers in the same container group.environmentOverride
(Collection<ContainerEnvironment> environmentOverride) A set of environment variables to pass to the container on startup.environmentOverride
(Consumer<ContainerEnvironment.Builder>... environmentOverride) A set of environment variables to pass to the container on startup.environmentOverride
(ContainerEnvironment... environmentOverride) A set of environment variables to pass to the container on startup.Flags the container as vital for the container group to function properly.healthCheck
(Consumer<ContainerHealthCheck.Builder> healthCheck) Configuration for a non-terminal health check.healthCheck
(ContainerHealthCheck healthCheck) Configuration for a non-terminal health check.The location of the container image to deploy to a container fleet.memoryHardLimitMebibytes
(Integer memoryHardLimitMebibytes) A specified amount of memory (in MiB) to reserve for this container.mountPoints
(Collection<ContainerMountPoint> mountPoints) 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.mountPoints
(Consumer<ContainerMountPoint.Builder>... mountPoints) 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.mountPoints
(ContainerMountPoint... mountPoints) 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.portConfiguration
(Consumer<ContainerPortConfiguration.Builder> portConfiguration) A set of ports that Amazon GameLift Servers can assign to processes in a container.portConfiguration
(ContainerPortConfiguration portConfiguration) A set of ports that Amazon GameLift Servers can assign to processes in a container.The number of vCPU units to reserve for this container.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
containerName
A string that uniquely identifies the container definition within a container group.
- Parameters:
containerName
- A string that uniquely identifies the container definition within a container group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dependsOn
Establishes dependencies between this container and the status of other containers in the same container group. A container can have dependencies on multiple different containers.
.
You can use dependencies to establish a startup/shutdown sequence across the container group. For example, you might specify that ContainerB has a
START
dependency on ContainerA. This dependency means that ContainerB can't start until after ContainerA has started. This dependency is reversed on shutdown, which means that ContainerB must shut down before ContainerA can shut down.- Parameters:
dependsOn
- Establishes dependencies between this container and the status of other containers in the same container group. A container can have dependencies on multiple different containers..
You can use dependencies to establish a startup/shutdown sequence across the container group. For example, you might specify that ContainerB has a
START
dependency on ContainerA. This dependency means that ContainerB can't start until after ContainerA has started. This dependency is reversed on shutdown, which means that ContainerB must shut down before ContainerA can shut down.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dependsOn
Establishes dependencies between this container and the status of other containers in the same container group. A container can have dependencies on multiple different containers.
.
You can use dependencies to establish a startup/shutdown sequence across the container group. For example, you might specify that ContainerB has a
START
dependency on ContainerA. This dependency means that ContainerB can't start until after ContainerA has started. This dependency is reversed on shutdown, which means that ContainerB must shut down before ContainerA can shut down.- Parameters:
dependsOn
- Establishes dependencies between this container and the status of other containers in the same container group. A container can have dependencies on multiple different containers..
You can use dependencies to establish a startup/shutdown sequence across the container group. For example, you might specify that ContainerB has a
START
dependency on ContainerA. This dependency means that ContainerB can't start until after ContainerA has started. This dependency is reversed on shutdown, which means that ContainerB must shut down before ContainerA can shut down.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dependsOn
SupportContainerDefinitionInput.Builder dependsOn(Consumer<ContainerDependency.Builder>... dependsOn) Establishes dependencies between this container and the status of other containers in the same container group. A container can have dependencies on multiple different containers.
.
You can use dependencies to establish a startup/shutdown sequence across the container group. For example, you might specify that ContainerB has a
This is a convenience method that creates an instance of theSTART
dependency on ContainerA. This dependency means that ContainerB can't start until after ContainerA has started. This dependency is reversed on shutdown, which means that ContainerB must shut down before ContainerA can shut down.ContainerDependency.Builder
avoiding the need to create one manually viaContainerDependency.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todependsOn(List<ContainerDependency>)
.- Parameters:
dependsOn
- a consumer that will call methods onContainerDependency.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
mountPoints
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.
- Parameters:
mountPoints
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mountPoints
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.
- Parameters:
mountPoints
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mountPoints
SupportContainerDefinitionInput.Builder mountPoints(Consumer<ContainerMountPoint.Builder>... mountPoints) 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.
This is a convenience method that creates an instance of theContainerMountPoint.Builder
avoiding the need to create one manually viaContainerMountPoint.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomountPoints(List<ContainerMountPoint>)
.- Parameters:
mountPoints
- a consumer that will call methods onContainerMountPoint.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
environmentOverride
SupportContainerDefinitionInput.Builder environmentOverride(Collection<ContainerEnvironment> environmentOverride) A set of environment variables to pass to the container on startup. See the ContainerDefinition::environment parameter in the Amazon Elastic Container Service API Reference.
- Parameters:
environmentOverride
- A set of environment variables to pass to the container on startup. See the ContainerDefinition::environment parameter in the Amazon Elastic Container Service API Reference.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environmentOverride
SupportContainerDefinitionInput.Builder environmentOverride(ContainerEnvironment... environmentOverride) A set of environment variables to pass to the container on startup. See the ContainerDefinition::environment parameter in the Amazon Elastic Container Service API Reference.
- Parameters:
environmentOverride
- A set of environment variables to pass to the container on startup. See the ContainerDefinition::environment parameter in the Amazon Elastic Container Service API Reference.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environmentOverride
SupportContainerDefinitionInput.Builder environmentOverride(Consumer<ContainerEnvironment.Builder>... environmentOverride) A set of environment variables to pass to the container on startup. See the ContainerDefinition::environment parameter in the Amazon Elastic Container Service API Reference.
This is a convenience method that creates an instance of theContainerEnvironment.Builder
avoiding the need to create one manually viaContainerEnvironment.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toenvironmentOverride(List<ContainerEnvironment>)
.- Parameters:
environmentOverride
- a consumer that will call methods onContainerEnvironment.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
essential
Flags the container as vital for the container group to function properly. If an essential container fails, the entire container group restarts. At least one support container in a per-instance container group must be essential. When flagging a container as essential, also configure a health check so that the container can signal that it's healthy.
- Parameters:
essential
- Flags the container as vital for the container group to function properly. If an essential container fails, the entire container group restarts. At least one support container in a per-instance container group must be essential. When flagging a container as essential, also configure a health check so that the container can signal that it's healthy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
healthCheck
Configuration for a non-terminal health check. A container automatically restarts if it stops functioning. With a health check, you can define additional reasons to flag a container as unhealthy and restart it. If an essential container fails a health check, the entire container group restarts.
- Parameters:
healthCheck
- Configuration for a non-terminal health check. A container automatically restarts if it stops functioning. With a health check, you can define additional reasons to flag a container as unhealthy and restart it. If an essential container fails a health check, the entire container group restarts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
healthCheck
default SupportContainerDefinitionInput.Builder healthCheck(Consumer<ContainerHealthCheck.Builder> healthCheck) Configuration for a non-terminal health check. A container automatically restarts if it stops functioning. With a health check, you can define additional reasons to flag a container as unhealthy and restart it. If an essential container fails a health check, the entire container group restarts.
This is a convenience method that creates an instance of theContainerHealthCheck.Builder
avoiding the need to create one manually viaContainerHealthCheck.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tohealthCheck(ContainerHealthCheck)
.- Parameters:
healthCheck
- a consumer that will call methods onContainerHealthCheck.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
imageUri
The location of the container image to deploy to a container fleet. Provide an image in an Amazon Elastic Container Registry public or private repository. The repository must be in the same Amazon Web Services account and Amazon Web Services Region where you're creating the container group definition. For limits on image size, see Amazon GameLift Servers endpoints and quotas. You can use any of the following image URI formats:
-
Image ID only:
[AWS account].dkr.ecr.[AWS region].amazonaws.com/[repository ID]
-
Image ID and digest:
[AWS account].dkr.ecr.[AWS region].amazonaws.com/[repository ID]@[digest]
-
Image ID and tag:
[AWS account].dkr.ecr.[AWS region].amazonaws.com/[repository ID]:[tag]
- Parameters:
imageUri
- The location of the container image to deploy to a container fleet. Provide an image in an Amazon Elastic Container Registry public or private repository. The repository must be in the same Amazon Web Services account and Amazon Web Services Region where you're creating the container group definition. For limits on image size, see Amazon GameLift Servers endpoints and quotas. You can use any of the following image URI formats:-
Image ID only:
[AWS account].dkr.ecr.[AWS region].amazonaws.com/[repository ID]
-
Image ID and digest:
[AWS account].dkr.ecr.[AWS region].amazonaws.com/[repository ID]@[digest]
-
Image ID and tag:
[AWS account].dkr.ecr.[AWS region].amazonaws.com/[repository ID]:[tag]
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
memoryHardLimitMebibytes
A specified amount of memory (in MiB) to reserve for this container. If you don't specify a container-specific memory limit, the container shares the container group's total memory allocation.
Related data type: ContainerGroupDefinitionTotalMemoryLimitMebibytes
- Parameters:
memoryHardLimitMebibytes
- A specified amount of memory (in MiB) to reserve for this container. If you don't specify a container-specific memory limit, the container shares the container group's total memory allocation.Related data type: ContainerGroupDefinitionTotalMemoryLimitMebibytes
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
portConfiguration
SupportContainerDefinitionInput.Builder portConfiguration(ContainerPortConfiguration portConfiguration) A set of ports that Amazon GameLift Servers can assign to processes in a container. The container port configuration must have enough ports for each container process that accepts inbound traffic connections. A container port configuration can have can have one or more container port ranges. Each range specifies starting and ending values as well as the supported network protocol.
Container ports aren't directly accessed by inbound traffic. Amazon GameLift Servers maps each container port to an externally accessible connection port (see the container fleet property
ConnectionPortRange
).- Parameters:
portConfiguration
- A set of ports that Amazon GameLift Servers can assign to processes in a container. The container port configuration must have enough ports for each container process that accepts inbound traffic connections. A container port configuration can have can have one or more container port ranges. Each range specifies starting and ending values as well as the supported network protocol.Container ports aren't directly accessed by inbound traffic. Amazon GameLift Servers maps each container port to an externally accessible connection port (see the container fleet property
ConnectionPortRange
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
portConfiguration
default SupportContainerDefinitionInput.Builder portConfiguration(Consumer<ContainerPortConfiguration.Builder> portConfiguration) A set of ports that Amazon GameLift Servers can assign to processes in a container. The container port configuration must have enough ports for each container process that accepts inbound traffic connections. A container port configuration can have can have one or more container port ranges. Each range specifies starting and ending values as well as the supported network protocol.
Container ports aren't directly accessed by inbound traffic. Amazon GameLift Servers maps each container port to an externally accessible connection port (see the container fleet property
This is a convenience method that creates an instance of theConnectionPortRange
).ContainerPortConfiguration.Builder
avoiding the need to create one manually viaContainerPortConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toportConfiguration(ContainerPortConfiguration)
.- Parameters:
portConfiguration
- a consumer that will call methods onContainerPortConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
vcpu
The number of vCPU units to reserve for this container. The container can use more resources when needed, if available. If you don't reserve CPU units for this container, it shares the container group's total vCPU limit.
Related data type: ContainerGroupDefinition TotalCpuLimit
- Parameters:
vcpu
- The number of vCPU units to reserve for this container. The container can use more resources when needed, if available. If you don't reserve CPU units for this container, it shares the container group's total vCPU limit.Related data type: ContainerGroupDefinition TotalCpuLimit
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-