aws-cdk-lib.aws_stepfunctions_tasks.ContainerOverride

interface ContainerOverride

LanguageType name
.NETAmazon.CDK.AWS.StepFunctions.Tasks.ContainerOverride
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctionstasks#ContainerOverride
Javasoftware.amazon.awscdk.services.stepfunctions.tasks.ContainerOverride
Pythonaws_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

NameTypeDescription
containerDefinitionContainerDefinitionName of the container inside the task definition.
command?string[]Command to run inside the container.
cpu?numberThe number of cpu units reserved for the container.
environment?TaskEnvironmentVariable[]The environment variables to send to the container.
memoryLimit?numberThe hard limit (in MiB) of memory to present to the container.
memoryReservation?numberThe soft limit (in MiB) of memory to reserve for the container.

containerDefinition

Type: ContainerDefinition

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: TaskEnvironmentVariable[] (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.