Interface ContainerOverride
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ContainerOverride.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-27T16:50:57.976Z")
@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
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>
Variables to set in the container's environment.default Number
Hard memory limit on the container.default Number
Soft 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.Builder
ofContainerOverride
-