Skip to content

/AWS1/CL_ECSCONTAINEROVERRIDE

The overrides that are sent to a container. An empty container override can be passed in. An example of an empty container override is {"containerOverrides": [ ] }. If a non-empty container override is specified, the name parameter must be included.

You can use Secrets Manager or Amazon Web Services Systems Manager Parameter Store to store the sensitive data. For more information, see Retrieve secrets through environment variables in the Amazon ECS Developer Guide.

CONSTRUCTOR

IMPORTING

Optional arguments:

iv_name TYPE /AWS1/ECSSTRING /AWS1/ECSSTRING

The name of the container that receives the override. This parameter is required if any override is specified.

it_command TYPE /AWS1/CL_ECSSTRINGLIST_W=>TT_STRINGLIST TT_STRINGLIST

The command to send to the container that overrides the default command from the Docker image or the task definition. You must also specify a container name.

it_environment TYPE /AWS1/CL_ECSKEYVALUEPAIR=>TT_ENVIRONMENTVARIABLES TT_ENVIRONMENTVARIABLES

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. You must also specify a container name.

it_environmentfiles TYPE /AWS1/CL_ECSENVIRONMENTFILE=>TT_ENVIRONMENTFILES TT_ENVIRONMENTFILES

A list of files containing the environment variables to pass to a container, instead of the value from the container definition.

iv_cpu TYPE /AWS1/ECSBOXEDINTEGER /AWS1/ECSBOXEDINTEGER

The number of cpu units reserved for the container, instead of the default value from the task definition. You must also specify a container name.

iv_memory TYPE /AWS1/ECSBOXEDINTEGER /AWS1/ECSBOXEDINTEGER

The hard limit (in MiB) of memory to present to the container, instead of the default value from the task definition. If your container attempts to exceed the memory specified here, the container is killed. You must also specify a container name.

iv_memoryreservation TYPE /AWS1/ECSBOXEDINTEGER /AWS1/ECSBOXEDINTEGER

The soft limit (in MiB) of memory to reserve for the container, instead of the default value from the task definition. You must also specify a container name.

it_resourcerequirements TYPE /AWS1/CL_ECSRESRCREQUIREMENT=>TT_RESOURCEREQUIREMENTS TT_RESOURCEREQUIREMENTS

The type and amount of a resource to assign to a container, instead of the default value from the task definition. The only supported resource is a GPU.


Queryable Attributes

name

The name of the container that receives the override. This parameter is required if any override is specified.

Accessible with the following methods

Method Description
GET_NAME() Getter for NAME, with configurable default
ASK_NAME() Getter for NAME w/ exceptions if field has no value
HAS_NAME() Determine if NAME has a value

command

The command to send to the container that overrides the default command from the Docker image or the task definition. You must also specify a container name.

Accessible with the following methods

Method Description
GET_COMMAND() Getter for COMMAND, with configurable default
ASK_COMMAND() Getter for COMMAND w/ exceptions if field has no value
HAS_COMMAND() Determine if COMMAND has a value

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. You must also specify a container name.

Accessible with the following methods

Method Description
GET_ENVIRONMENT() Getter for ENVIRONMENT, with configurable default
ASK_ENVIRONMENT() Getter for ENVIRONMENT w/ exceptions if field has no value
HAS_ENVIRONMENT() Determine if ENVIRONMENT has a value

environmentFiles

A list of files containing the environment variables to pass to a container, instead of the value from the container definition.

Accessible with the following methods

Method Description
GET_ENVIRONMENTFILES() Getter for ENVIRONMENTFILES, with configurable default
ASK_ENVIRONMENTFILES() Getter for ENVIRONMENTFILES w/ exceptions if field has no va
HAS_ENVIRONMENTFILES() Determine if ENVIRONMENTFILES has a value

cpu

The number of cpu units reserved for the container, instead of the default value from the task definition. You must also specify a container name.

Accessible with the following methods

Method Description
GET_CPU() Getter for CPU, with configurable default
ASK_CPU() Getter for CPU w/ exceptions if field has no value
HAS_CPU() Determine if CPU has a value

memory

The hard limit (in MiB) of memory to present to the container, instead of the default value from the task definition. If your container attempts to exceed the memory specified here, the container is killed. You must also specify a container name.

Accessible with the following methods

Method Description
GET_MEMORY() Getter for MEMORY, with configurable default
ASK_MEMORY() Getter for MEMORY w/ exceptions if field has no value
HAS_MEMORY() Determine if MEMORY has a value

memoryReservation

The soft limit (in MiB) of memory to reserve for the container, instead of the default value from the task definition. You must also specify a container name.

Accessible with the following methods

Method Description
GET_MEMORYRESERVATION() Getter for MEMORYRESERVATION, with configurable default
ASK_MEMORYRESERVATION() Getter for MEMORYRESERVATION w/ exceptions if field has no v
HAS_MEMORYRESERVATION() Determine if MEMORYRESERVATION has a value

resourceRequirements

The type and amount of a resource to assign to a container, instead of the default value from the task definition. The only supported resource is a GPU.

Accessible with the following methods

Method Description
GET_RESOURCEREQUIREMENTS() Getter for RESOURCEREQUIREMENTS, with configurable default
ASK_RESOURCEREQUIREMENTS() Getter for RESOURCEREQUIREMENTS w/ exceptions if field has n
HAS_RESOURCEREQUIREMENTS() Determine if RESOURCEREQUIREMENTS has a value

Public Local Types In This Class

Internal table types, representing arrays and maps of this class, are defined as local types:

TT_CONTAINEROVERRIDES

TYPES TT_CONTAINEROVERRIDES TYPE STANDARD TABLE OF REF TO /AWS1/CL_ECSCONTAINEROVERRIDE WITH DEFAULT KEY
.