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-10-31T19:12:58.540Z") @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();
 
  • Method Details

    • getContainerName

      @Stability(Stable) @NotNull String getContainerName()
      Name of the container inside the task definition.
    • getCommand

      @Stability(Stable) @Nullable default List<String> getCommand()
      Command to run inside the container.

      Default: Default command

    • getCpu

      @Stability(Stable) @Nullable default Number getCpu()
      The number of cpu units reserved for the container.

      Default: The default value from the task definition.

    • getEnvironment

      @Stability(Stable) @Nullable default List<TaskEnvironmentVariable> getEnvironment()
      Variables to set in the container's environment.
    • getMemoryLimit

      @Stability(Stable) @Nullable default Number getMemoryLimit()
      Hard memory limit on the container.

      Default: The default value from the task definition.

    • getMemoryReservation

      @Stability(Stable) @Nullable default Number getMemoryReservation()
      Soft memory limit on the container.

      Default: The default value from the task definition.

    • builder

      @Stability(Stable) static ContainerOverride.Builder builder()
      Returns:
      a ContainerOverride.Builder of ContainerOverride