ContainerOverride

class aws_cdk.aws_stepfunctions_tasks.ContainerOverride(*, container_definition, command=None, cpu=None, environment=None, memory_limit=None, memory_reservation=None)

Bases: object

A list of container overrides that specify the name of a container and the overrides it should receive.

Parameters
  • container_definition (ContainerDefinition) – Name of the container inside the task definition.

  • command (Optional[List[str]]) – Command to run inside the container. Default: - Default command from the Docker image or the task definition

  • 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]]) – 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. Default: - The existing environment variables from the Docker image or the task definition

  • memory_limit (Union[int, float, None]) – The hard limit (in MiB) of memory to present to the container. Default: - The default value from the task definition.

  • memory_reservation (Union[int, float, None]) – The soft limit (in MiB) of memory to reserve for the container. Default: - The default value from the task definition.

Attributes

command

Command to run inside the container.

Default
  • Default command from the Docker image or the task definition

Return type

Optional[List[str]]

container_definition

Name of the container inside the task definition.

Return type

ContainerDefinition

cpu

The number of cpu units reserved for the container.

Default
  • The default value from the task definition.

Return type

Union[int, float, None]

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.

Default
  • The existing environment variables from the Docker image or the task definition

Return type

Optional[List[TaskEnvironmentVariable]]

memory_limit

The hard limit (in MiB) of memory to present to the container.

Default
  • The default value from the task definition.

Return type

Union[int, float, None]

memory_reservation

The soft limit (in MiB) of memory to reserve for the container.

Default
  • The default value from the task definition.

Return type

Union[int, float, None]