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.724Z")
@Stability(Stable)
public interface ContainerOverride
extends software.amazon.jsii.JsiiSerializable
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.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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forContainerOverridestatic final classAn implementation forContainerOverride -
Method Summary
Modifier and TypeMethodDescriptionstatic ContainerOverride.Builderbuilder()Command to run inside the container.Name of the container inside the task definition.default NumbergetCpu()The number of cpu units reserved for the container.default List<TaskEnvironmentVariable>Variables to set in the container's environment.default NumberHard memory limit on the container.default NumberSoft memory limit on the container.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getContainerName
Name of the container inside the task definition. -
getCommand
Command to run inside the container.Default: Default command
-
getCpu
The number of cpu units reserved for the container.Default: The default value from the task definition.
-
getEnvironment
Variables to set in the container's environment. -
getMemoryLimit
Hard memory limit on the container.Default: The default value from the task definition.
-
getMemoryReservation
Soft memory limit on the container.Default: The default value from the task definition.
-
builder
- Returns:
- a
ContainerOverride.BuilderofContainerOverride
-