interface ContainerOverride
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.StepFunctions.Tasks.ContainerOverride |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctionstasks#ContainerOverride |
Java | software.amazon.awscdk.services.stepfunctions.tasks.ContainerOverride |
Python | aws_cdk.aws_stepfunctions_tasks.ContainerOverride |
TypeScript (source) | aws-cdk-lib » aws_stepfunctions_tasks » ContainerOverride |
A list of container overrides that specify the name of a container and the overrides it should receive.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
import { aws_stepfunctions_tasks as stepfunctions_tasks } from 'aws-cdk-lib';
declare const containerDefinition: ecs.ContainerDefinition;
const containerOverride: stepfunctions_tasks.ContainerOverride = {
containerDefinition: containerDefinition,
// the properties below are optional
command: ['command'],
cpu: 123,
environment: [{
name: 'name',
value: 'value',
}],
memoryLimit: 123,
memoryReservation: 123,
};
Properties
Name | Type | Description |
---|---|---|
container | Container | Name of the container inside the task definition. |
command? | string[] | Command to run inside the container. |
cpu? | number | The number of cpu units reserved for the container. |
environment? | Task [] | The environment variables to send to the container. |
memory | number | The hard limit (in MiB) of memory to present to the container. |
memory | number | The soft limit (in MiB) of memory to reserve for the container. |
containerDefinition
Type:
Container
Name of the container inside the task definition.
command?
Type:
string[]
(optional, default: Default command from the Docker image or the task definition)
Command to run inside the container.
cpu?
Type:
number
(optional, default: The default value from the task definition.)
The number of cpu units reserved for the container.
environment?
Type:
Task
[]
(optional, default: The existing environment variables from the Docker image or the task definition)
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.
memoryLimit?
Type:
number
(optional, default: The default value from the task definition.)
The hard limit (in MiB) of memory to present to the container.
memoryReservation?
Type:
number
(optional, default: The default value from the task definition.)
The soft limit (in MiB) of memory to reserve for the container.