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
commandoptionalstring[]commandoptionaltyping.List[str]commandoptionalList<String>Commandoptionalstring[]Commandoptional*[]*string#Command to run inside the container.
Default: Default command
containerNamestringcontainer_namestrcontainerNameStringContainerNamestringContainerName*stringrequired#Name of the container inside the task definition.
The number of cpu units reserved for the container.
Default: The default value from the task definition.
environmentoptionalTaskEnvironmentVariable[]environmentoptionaltyping.List[TaskEnvironmentVariable]environmentoptionalList<TaskEnvironmentVariable>EnvironmentoptionalTaskEnvironmentVariable[]Environmentoptional*[]TaskEnvironmentVariable#Variables to set in the container's environment.
memoryLimitoptionalnumbermemory_limitoptionalint | floatmemoryLimitoptionalNumberMemoryLimitoptionaldoubleMemoryLimitoptional*float64#Hard memory limit on the container.
Default: The default value from the task definition.
memoryReservationoptionalnumbermemory_reservationoptionalint | floatmemoryReservationoptionalNumberMemoryReservationoptionaldoubleMemoryReservationoptional*float64#Soft memory limit on the container.
Default: The default value from the task definition.