ContainerOverride Struct
Example
ts
// 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
commandstring[]commandtyping.List[str]commandList<String>Commandstring[]Command*[]*string= Default command#Command to run inside the container.
containerNamestringcontainer_namestrcontainerNameStringContainerNamestringContainerName*stringrequired#Name of the container inside the task definition.
The number of cpu units reserved for the container.
default
Default: The default value from the task definition.
environmentTaskEnvironmentVariable[]environmenttyping.List[TaskEnvironmentVariable]environmentList<TaskEnvironmentVariable>EnvironmentTaskEnvironmentVariable[]Environment*[]TaskEnvironmentVariable#Variables to set in the container's environment.
memoryLimitnumbermemory_limitint | floatmemoryLimitNumberMemoryLimitdoubleMemoryLimit*float64= The default value from the task …#Hard memory limit on the container.
default
Default: The default value from the task definition.
memoryReservationnumbermemory_reservationint | floatmemoryReservationNumberMemoryReservationdoubleMemoryReservation*float64= The default value from the task …#Soft memory limit on the container.
default
Default: The default value from the task definition.