Interface IContainerOverride
A list of container overrides that specify the name of a container and the overrides it should receive.
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IContainerOverride
Syntax (vb)
Public Interface IContainerOverride
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECS;
using Amazon.CDK.AWS.StepFunctions.Tasks;
ContainerDefinition containerDefinition;
var containerOverride = new ContainerOverride {
ContainerDefinition = containerDefinition,
// the properties below are optional
Command = new [] { "command" },
Cpu = 123,
Environment = new [] { new TaskEnvironmentVariable {
Name = "name",
Value = "value"
} },
MemoryLimit = 123,
MemoryReservation = 123
};
Synopsis
Properties
Command | Command to run inside the container. |
ContainerDefinition | Name of the container inside the task definition. |
Cpu | The number of cpu units reserved for the container. |
Environment | The environment variables to send to the container. |
MemoryLimit | The hard limit (in MiB) of memory to present to the container. |
MemoryReservation | The soft limit (in MiB) of memory to reserve for the container. |
Properties
Command
Command to run inside the container.
virtual string[] Command { get; }
Property Value
System.String[]
Remarks
Default: - Default command from the Docker image or the task definition
ContainerDefinition
Name of the container inside the task definition.
ContainerDefinition ContainerDefinition { get; }
Property Value
Cpu
The number of cpu units reserved for the container.
virtual Nullable<double> Cpu { get; }
Property Value
System.Nullable<System.Double>
Remarks
Default: - The default value from the task definition.
Environment
The environment variables to send to the container.
virtual ITaskEnvironmentVariable[] Environment { get; }
Property Value
Remarks
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.
Default: - The existing environment variables from the Docker image or the task definition
MemoryLimit
The hard limit (in MiB) of memory to present to the container.
virtual Nullable<double> MemoryLimit { get; }
Property Value
System.Nullable<System.Double>
Remarks
Default: - The default value from the task definition.
MemoryReservation
The soft limit (in MiB) of memory to reserve for the container.
virtual Nullable<double> MemoryReservation { get; }
Property Value
System.Nullable<System.Double>
Remarks
Default: - The default value from the task definition.