@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.324Z") @Stability(value=Stable) public interface ContainerOverride extends software.amazon.jsii.JsiiSerializable
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.events.targets.*;
ContainerOverride containerOverride = ContainerOverride.builder()
.containerName("containerName")
// 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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
ContainerOverride.Builder
A builder for
ContainerOverride |
static class |
ContainerOverride.Jsii$Proxy
An implementation for
ContainerOverride |
| Modifier and Type | Method and Description |
|---|---|
static ContainerOverride.Builder |
builder() |
default List<String> |
getCommand()
Command to run inside the container.
|
String |
getContainerName()
Name of the container inside the task definition.
|
default Number |
getCpu()
The number of cpu units reserved for the container.
|
default List<TaskEnvironmentVariable> |
getEnvironment()
Variables to set in the container's environment.
|
default Number |
getMemoryLimit()
Hard memory limit on the container.
|
default Number |
getMemoryReservation()
Soft memory limit on the container.
|
@Stability(value=Stable) @NotNull String getContainerName()
@Stability(value=Stable) @Nullable default List<String> getCommand()
Default: Default command
@Stability(value=Stable) @Nullable default Number getCpu()
Default: The default value from the task definition.
@Stability(value=Stable) @Nullable default List<TaskEnvironmentVariable> getEnvironment()
@Stability(value=Stable) @Nullable default Number getMemoryLimit()
Default: The default value from the task definition.
@Stability(value=Stable) @Nullable default Number getMemoryReservation()
Default: The default value from the task definition.
@Stability(value=Stable) static ContainerOverride.Builder builder()
ContainerOverride.Builder of ContainerOverrideCopyright © 2022. All rights reserved.