Interface ContainerOverride
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ContainerOverride.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:47.909Z")
@Stability(Stable)
public interface ContainerOverride
extends software.amazon.jsii.JsiiSerializable
A list of container overrides that specify the name of a container and the overrides it should receive.
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.ecs.*; import software.amazon.awscdk.services.stepfunctions.tasks.*; ContainerDefinition containerDefinition; ContainerOverride containerOverride = ContainerOverride.builder() .containerDefinition(containerDefinition) // the properties below are optional .command(List.of("command")) .cpu(123) .environment(List.of(TaskEnvironmentVariable.builder() .name("name") .value("value") .build())) .memoryLimit(123) .memoryReservation(123) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forContainerOverride
static final class
An implementation forContainerOverride
-
Method Summary
Modifier and TypeMethodDescriptionstatic ContainerOverride.Builder
builder()
Command to run inside the container.Name of the container inside the task definition.default Number
getCpu()
The number of cpu units reserved for the container.default List<TaskEnvironmentVariable>
The environment variables to send to the container.default Number
The hard limit (in MiB) of memory to present to the container.default Number
The soft limit (in MiB) of memory to reserve for the container.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getContainerDefinition
Name of the container inside the task definition. -
getCommand
Command to run inside the container.Default: - Default command from the Docker image or the task definition
-
getCpu
The number of cpu units reserved for the container.Default: - The default value from the task definition.
-
getEnvironment
The environment variables to send to the container.You can add new environment variables, which are added to the container at launch, or you can override the existing environment variables from the Docker image or the task definition.
Default: - The existing environment variables from the Docker image or the task definition
-
getMemoryLimit
The hard limit (in MiB) of memory to present to the container.Default: - The default value from the task definition.
-
getMemoryReservation
The soft limit (in MiB) of memory to reserve for the container.Default: - The default value from the task definition.
-
builder
- Returns:
- a
ContainerOverride.Builder
ofContainerOverride
-