interface ContainerOverride
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Events.Targets.ContainerOverride |
Java | software.amazon.awscdk.services.events.targets.ContainerOverride |
Python | aws_cdk.aws_events_targets.ContainerOverride |
TypeScript (source) | @aws-cdk/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 * as events_targets from '@aws-cdk/aws-events-targets';
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
| Name | Type | Description |
|---|---|---|
| container | string | Name of the container inside the task definition. |
| command? | string[] | Command to run inside the container. |
| cpu? | number | The number of cpu units reserved for the container. |
| environment? | Task[] | Variables to set in the container's environment. |
| memory | number | Hard memory limit on the container. |
| memory | number | Soft 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:
Task[]
(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.

.NET
Java
Python
TypeScript (