aws-cdk-lib.aws_events_targets.ContainerOverride

interface ContainerOverride

LanguageType name
.NETAmazon.CDK.AWS.Events.Targets.ContainerOverride
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awseventstargets#ContainerOverride
Javasoftware.amazon.awscdk.services.events.targets.ContainerOverride
Pythonaws_cdk.aws_events_targets.ContainerOverride
TypeScript (source)aws-cdk-lib » aws_events_targets » ContainerOverride

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_events_targets as events_targets } from 'aws-cdk-lib';
const containerOverride: events_targets.ContainerOverride = {
  containerName: 'containerName',

  // the properties below are optional
  command: ['command'],
  cpu: 123,
  environment: [{
    name: 'name',
    value: 'value',
  }],
  memoryLimit: 123,
  memoryReservation: 123,
};

Properties

NameTypeDescription
containerNamestringName 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[]Variables to set in the container's environment.
memoryLimit?numberHard memory limit on the container.
memoryReservation?numberSoft memory limit on the container.

containerName

Type: string

Name of the container inside the task definition.


command?

Type: string[] (optional, default: Default command)

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)

Variables to set in the container's environment.


memoryLimit?

Type: number (optional, default: The default value from the task definition.)

Hard memory limit on the container.


memoryReservation?

Type: number (optional, default: The default value from the task definition.)

Soft memory limit on the container.