Interface CfnContainerGroupDefinition.GameServerContainerDefinitionProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnContainerGroupDefinition.GameServerContainerDefinitionProperty.Jsii$Proxy
- Enclosing class:
CfnContainerGroupDefinition
A game server container identifies a container image with your game server build. A game server container is automatically considered essential; if an essential container fails, the entire container group restarts.
You can update a container definition and deploy the updates to an existing fleet. When creating or updating a game server container group definition, use the property .
Part of: ContainerGroupDefinition
Returned by: DescribeContainerGroupDefinition , ListContainerGroupDefinitions , UpdateContainerGroupDefinition
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.gamelift.*; GameServerContainerDefinitionProperty gameServerContainerDefinitionProperty = GameServerContainerDefinitionProperty.builder() .containerName("containerName") .imageUri("imageUri") .serverSdkVersion("serverSdkVersion") // the properties below are optional .dependsOn(List.of(ContainerDependencyProperty.builder() .condition("condition") .containerName("containerName") .build())) .environmentOverride(List.of(ContainerEnvironmentProperty.builder() .name("name") .value("value") .build())) .mountPoints(List.of(ContainerMountPointProperty.builder() .instancePath("instancePath") // the properties below are optional .accessLevel("accessLevel") .containerPath("containerPath") .build())) .portConfiguration(PortConfigurationProperty.builder() .containerPortRanges(List.of(ContainerPortRangeProperty.builder() .fromPort(123) .protocol("protocol") .toPort(123) .build())) .build()) .resolvedImageDigest("resolvedImageDigest") .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
static final class
An implementation forCfnContainerGroupDefinition.GameServerContainerDefinitionProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The container definition identifier.default Object
Indicates that the container relies on the status of other containers in the same container group during startup and shutdown sequences.default Object
A set of environment variables that's passed to the container on startup.The URI to the image that Amazon GameLift uses when deploying this container to a container fleet.default Object
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.default Object
The set of ports that are available to bind to processes in the container.default String
A unique and immutable identifier for the container image.The Amazon GameLift server SDK version that the game server is integrated with.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getContainerName
The container definition identifier.Container names are unique within a container group definition.
- See Also:
-
getImageUri
The URI to the image that Amazon GameLift uses when deploying this container to a container fleet.For a more specific identifier, see
ResolvedImageDigest
.- See Also:
-
getServerSdkVersion
The Amazon GameLift server SDK version that the game server is integrated with.Only game servers using 5.2.0 or higher are compatible with container fleets.
- See Also:
-
getDependsOn
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.
- See Also:
-
getEnvironmentOverride
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 .
- See Also:
-
getMountPoints
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.- See Also:
-
getPortConfiguration
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 maps these container ports to externally accessible connection ports, which are assigned as needed from the container fleet's
ConnectionPortRange
.- See Also:
-
getResolvedImageDigest
A unique and immutable identifier for the container image.The digest is a SHA 256 hash of the container image manifest.
- See Also:
-
builder
@Stability(Stable) static CfnContainerGroupDefinition.GameServerContainerDefinitionProperty.Builder builder()
-