interface EcsContainerOverrideProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Pipes.CfnPipe.EcsContainerOverrideProperty |
Java | software.amazon.awscdk.services.pipes.CfnPipe.EcsContainerOverrideProperty |
Python | aws_cdk.aws_pipes.CfnPipe.EcsContainerOverrideProperty |
TypeScript | @aws-cdk/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 * as pipes from '@aws-cdk/aws-pipes';
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
Name | Type | Description |
---|---|---|
command? | string[] | The command to send to the container that overrides the default command from the Docker image or the task definition. |
cpu? | number | The number of cpu units reserved for the container, instead of the default value from the task definition. |
environment? | IResolvable | IResolvable | Ecs [] | The environment variables to send to the container. |
environment | IResolvable | IResolvable | Ecs [] | A list of files containing the environment variables to pass to a container, instead of the value from the container definition. |
memory? | number | The hard limit (in MiB) of memory to present to the container, instead of the default value from the task definition. |
memory | number | The soft limit (in MiB) of memory to reserve for the container, instead of the default value from the task definition. |
name? | string | The name of the container that receives the override. |
resource | IResolvable | IResolvable | Ecs [] | 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
|
Ecs
[]
(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
|
Ecs
[]
(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
|
Ecs
[]
(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.