Interface CfnContainerGroupDefinition.GameServerContainerDefinitionProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnContainerGroupDefinition.GameServerContainerDefinitionProperty.Jsii$Proxy
- Enclosing class:
CfnContainerGroupDefinition
@Stability(Stable)
public static interface CfnContainerGroupDefinition.GameServerContainerDefinitionProperty
extends software.amazon.jsii.JsiiSerializable
Specifies the information required to run game servers with this container group.
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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classAn implementation forCfnContainerGroupDefinition.GameServerContainerDefinitionProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()A descriptive label for the container definition.default ObjectA list of container dependencies that determines when this container starts up and shuts down.default ObjectThe environment variables to pass to a container.Specifies the image URI of this container.default ObjectA list of mount point configurations to be used in a container.default ObjectDefines the ports on a container.default StringThe digest of the container image.The version of the server SDK used in this container group.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getContainerName
A descriptive label for the container definition.Container definition names must be unique with a container group definition.
- See Also:
-
getImageUri
Specifies the image URI of this container.- See Also:
-
getServerSdkVersion
The version of the server SDK used in this container group.- See Also:
-
getDependsOn
A list of container dependencies that determines when this container starts up and shuts down.For container groups with multiple containers, dependencies let you define a startup/shutdown sequence across the containers.
- See Also:
-
getEnvironmentOverride
The environment variables to pass to a container.- See Also:
-
getMountPoints
A list of mount point configurations to be used in a container.- See Also:
-
getPortConfiguration
Defines the ports on a container.- See Also:
-
getResolvedImageDigest
The digest of the container image.- See Also:
-
builder
@Stability(Stable) static CfnContainerGroupDefinition.GameServerContainerDefinitionProperty.Builder builder()
-