aws-cdk-lib.aws_pipes.CfnPipe.EcsContainerOverrideProperty

interface EcsContainerOverrideProperty

LanguageType name
.NETAmazon.CDK.AWS.Pipes.CfnPipe.EcsContainerOverrideProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awspipes#CfnPipe_EcsContainerOverrideProperty
Javasoftware.amazon.awscdk.services.pipes.CfnPipe.EcsContainerOverrideProperty
Pythonaws_cdk.aws_pipes.CfnPipe.EcsContainerOverrideProperty
TypeScript aws-cdk-lib » aws_pipes » CfnPipe » EcsContainerOverrideProperty

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.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_pipes as pipes } from 'aws-cdk-lib';
const ecsContainerOverrideProperty: pipes.CfnPipe.EcsContainerOverrideProperty = {
  command: ['command'],
  cpu: 123,
  environment: [{
    name: 'name',
    value: 'value',
  }],
  environmentFiles: [{
    type: 'type',
    value: 'value',
  }],
  memory: 123,
  memoryReservation: 123,
  name: 'name',
  resourceRequirements: [{
    type: 'type',
    value: 'value',
  }],
};

Properties

NameTypeDescription
command?string[]The command to send to the container that overrides the default command from the Docker image or the task definition.
cpu?numberThe number of cpu units reserved for the container, instead of the default value from the task definition.
environment?IResolvable | IResolvable | EcsEnvironmentVariableProperty[]The environment variables to send to the container.
environmentFiles?IResolvable | IResolvable | EcsEnvironmentFileProperty[]A list of files containing the environment variables to pass to a container, instead of the value from the container definition.
memory?numberThe hard limit (in MiB) of memory to present to the container, instead of the default value from the task definition.
memoryReservation?numberThe soft limit (in MiB) of memory to reserve for the container, instead of the default value from the task definition.
name?stringThe name of the container that receives the override.
resourceRequirements?IResolvable | IResolvable | EcsResourceRequirementProperty[]The type and amount of a resource to assign to a container, instead of the default value from the task definition.

command?

Type: string[] (optional)

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.


cpu?

Type: number (optional)

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.


environment?

Type: IResolvable | IResolvable | EcsEnvironmentVariableProperty[] (optional)

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.


environmentFiles?

Type: IResolvable | IResolvable | EcsEnvironmentFileProperty[] (optional)

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


memory?

Type: number (optional)

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.


memoryReservation?

Type: number (optional)

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.


name?

Type: string (optional)

The name of the container that receives the override.

This parameter is required if any override is specified.


resourceRequirements?

Type: IResolvable | IResolvable | EcsResourceRequirementProperty[] (optional)

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.