Interface CfnContainerGroupDefinition.SupportContainerDefinitionProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnContainerGroupDefinition.SupportContainerDefinitionProperty.Jsii$Proxy
- Enclosing class:
CfnContainerGroupDefinition
@Stability(Stable)
public static interface CfnContainerGroupDefinition.SupportContainerDefinitionProperty
extends software.amazon.jsii.JsiiSerializable
Supports the function of the main 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.*;
SupportContainerDefinitionProperty supportContainerDefinitionProperty = SupportContainerDefinitionProperty.builder()
.containerName("containerName")
.imageUri("imageUri")
// 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()))
.essential(false)
.healthCheck(ContainerHealthCheckProperty.builder()
.command(List.of("command"))
// the properties below are optional
.interval(123)
.retries(123)
.startPeriod(123)
.timeout(123)
.build())
.memoryHardLimitMebibytes(123)
.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")
.vcpu(123)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classAn implementation forCfnContainerGroupDefinition.SupportContainerDefinitionProperty -
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.default ObjectSpecifies if the container is essential.default ObjectSpecifies how the process manager checks the health of containers.Specifies the image URI of this container.default NumberThe total memory limit of container groups following this definition in MiB.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.default NumbergetVcpu()The number of virtual CPUs to give to the support group.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getContainerName
A descriptive label for the container definition.- See Also:
-
getImageUri
Specifies the image URI of this container.- 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:
-
getEssential
Specifies if the container is essential.If an essential container fails a health check, then all containers in the container group will be restarted. You must specify exactly 1 essential container in a container group.
- See Also:
-
getHealthCheck
Specifies how the process manager checks the health of containers.- See Also:
-
getMemoryHardLimitMebibytes
The total memory limit of container groups following this definition in MiB.- 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:
-
getVcpu
The number of virtual CPUs to give to the support group.- See Also:
-
builder
@Stability(Stable) static CfnContainerGroupDefinition.SupportContainerDefinitionProperty.Builder builder()
-