Interface IContainerOverride
Namespace: Amazon.CDK.AWS.Events.Targets
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.Events.Targets;
var containerOverride = new ContainerOverride {
ContainerName = "containerName",
// 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. |
Container |
Name of the container inside the task definition. |
Cpu | The number of cpu units reserved for the container. |
Environment | Variables to set in the container's environment. |
Memory |
Hard memory limit on the container. |
Memory |
Soft memory limit on the container. |
Properties
Command
Command to run inside the container.
virtual string[] Command { get; }
Property Value
System.
Remarks
Default: Default command
ContainerName
Name of the container inside the task definition.
string ContainerName { get; }
Property Value
System.
Cpu
The number of cpu units reserved for the container.
virtual Nullable<double> Cpu { get; }
Property Value
System.
Remarks
Default: The default value from the task definition.
Environment
Variables to set in the container's environment.
virtual ITaskEnvironmentVariable[] Environment { get; }
Property Value
MemoryLimit
Hard memory limit on the container.
virtual Nullable<double> MemoryLimit { get; }
Property Value
System.
Remarks
Default: The default value from the task definition.
MemoryReservation
Soft memory limit on the container.
virtual Nullable<double> MemoryReservation { get; }
Property Value
System.
Remarks
Default: The default value from the task definition.