Interface CfnContainerGroupDefinition.ContainerDefinitionProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnContainerGroupDefinition.ContainerDefinitionProperty.Jsii$Proxy
Enclosing class:
CfnContainerGroupDefinition

@Stability(Stable) public static interface CfnContainerGroupDefinition.ContainerDefinitionProperty extends software.amazon.jsii.JsiiSerializable
This data type is used with the Amazon GameLift containers feature, which is currently in public preview..

Describes a container in a container fleet, the resources available to the container, and the commands that are run when the container starts. Container properties can't be updated. To change a property, create a new container group definition. See also ContainerDefinitionInput .

Part of: ContainerGroupDefinition

Returned by: DescribeContainerGroupDefinition , ListContainerGroupDefinitions

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.*;
 ContainerDefinitionProperty containerDefinitionProperty = ContainerDefinitionProperty.builder()
         .containerName("containerName")
         .imageUri("imageUri")
         // the properties below are optional
         .command(List.of("command"))
         .cpu(123)
         .dependsOn(List.of(ContainerDependencyProperty.builder()
                 .condition("condition")
                 .containerName("containerName")
                 .build()))
         .entryPoint(List.of("entryPoint"))
         .environment(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())
         .memoryLimits(MemoryLimitsProperty.builder()
                 .hardLimit(123)
                 .softLimit(123)
                 .build())
         .portConfiguration(PortConfigurationProperty.builder()
                 .containerPortRanges(List.of(ContainerPortRangeProperty.builder()
                         .fromPort(123)
                         .protocol("protocol")
                         .toPort(123)
                         .build()))
                 .build())
         .resolvedImageDigest("resolvedImageDigest")
         .workingDirectory("workingDirectory")
         .build();
 

See Also: