ContainerOverride

class aws_cdk.aws_events_targets.ContainerOverride(*, container_name, command=None, cpu=None, environment=None, memory_limit=None, memory_reservation=None)

Bases: object

__init__(*, container_name, command=None, cpu=None, environment=None, memory_limit=None, memory_reservation=None)
Parameters
  • container_name (str) – Name of the container inside the task definition.

  • command (Optional[List[str]]) – Command to run inside the container. Default: Default command

  • cpu (Union[int, float, None]) – The number of cpu units reserved for the container. Default: The default value from the task definition.

  • environment (Optional[List[TaskEnvironmentVariable]]) – Variables to set in the container’s environment.

  • memory_limit (Union[int, float, None]) – Hard memory limit on the container. Default: The default value from the task definition.

  • memory_reservation (Union[int, float, None]) – Soft memory limit on the container. Default: The default value from the task definition.

Attributes

command

Command to run inside the container.

default :default: Default command

Return type

Optional[List[str]]

container_name

Name of the container inside the task definition.

Return type

str

cpu

The number of cpu units reserved for the container.

default :default: The default value from the task definition.

Return type

Union[int, float, None]

environment

Variables to set in the container’s environment.

Return type

Optional[List[TaskEnvironmentVariable]]

memory_limit

Hard memory limit on the container.

default :default: The default value from the task definition.

Return type

Union[int, float, None]

memory_reservation

Soft memory limit on the container.

default :default: The default value from the task definition.

Return type

Union[int, float, None]