TaskContainerOverrides - AWS Batch

TaskContainerOverrides

The overrides that should be sent to a container.

For information about using AWS Batch overrides when you connect event sources to targets, see BatchContainerOverrides.

Contents

command

The command to send to the container that overrides the default command from the Docker image or the job definition.

Note

This parameter can't contain an empty string.

Type: Array of strings

Required: No

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 job definition.

Note

Environment variables cannot start with AWS_BATCH. This naming convention is reserved for variables that AWS Batch sets.

Type: Array of KeyValuePair objects

Required: No

name

A pointer to the container that you want to override. The container's name provides a unique identifier for the container being used.

Type: String

Required: No

resourceRequirements

The type and amount of resources to assign to a container. This overrides the settings in the job definition. The supported resources include GPU, MEMORY, and VCPU.

Type: Array of ResourceRequirement objects

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: