@Stability(value=Experimental) public static final class ContainerOverride.Builder extends Object implements software.amazon.jsii.Builder<ContainerOverride>
ContainerOverride| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ContainerOverride |
build()
Builds the configured instance.
|
ContainerOverride.Builder |
command(List<String> command)
Sets the value of
ContainerOverride.getCommand() |
ContainerOverride.Builder |
containerDefinition(ContainerDefinition containerDefinition)
Sets the value of
ContainerOverride.getContainerDefinition() |
ContainerOverride.Builder |
cpu(Number cpu)
Sets the value of
ContainerOverride.getCpu() |
ContainerOverride.Builder |
environment(List<? extends TaskEnvironmentVariable> environment)
Sets the value of
ContainerOverride.getEnvironment() |
ContainerOverride.Builder |
memoryLimit(Number memoryLimit)
Sets the value of
ContainerOverride.getMemoryLimit() |
ContainerOverride.Builder |
memoryReservation(Number memoryReservation)
Sets the value of
ContainerOverride.getMemoryReservation() |
@Stability(value=Experimental) public ContainerOverride.Builder containerDefinition(ContainerDefinition containerDefinition)
ContainerOverride.getContainerDefinition()containerDefinition - Name of the container inside the task definition. This parameter is required.this@Stability(value=Experimental) public ContainerOverride.Builder command(List<String> command)
ContainerOverride.getCommand()command - Command to run inside the container.this@Stability(value=Experimental) public ContainerOverride.Builder cpu(Number cpu)
ContainerOverride.getCpu()cpu - The number of cpu units reserved for the container.this@Stability(value=Experimental) public ContainerOverride.Builder environment(List<? extends TaskEnvironmentVariable> environment)
ContainerOverride.getEnvironment()environment - 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.this@Stability(value=Experimental) public ContainerOverride.Builder memoryLimit(Number memoryLimit)
ContainerOverride.getMemoryLimit()memoryLimit - The hard limit (in MiB) of memory to present to the container.this@Stability(value=Experimental) public ContainerOverride.Builder memoryReservation(Number memoryReservation)
ContainerOverride.getMemoryReservation()memoryReservation - The soft limit (in MiB) of memory to reserve for the container.this@Stability(value=Experimental) public ContainerOverride build()
build in interface software.amazon.jsii.Builder<ContainerOverride>ContainerOverrideNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.