Class ContainerOverride
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Events.Targets
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ContainerOverride : Object, IContainerOverride
Syntax (vb)
Public Class ContainerOverride
Inherits Object
Implements 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
Constructors
ContainerOverride() |
Properties
Command | Command to run inside the container. |
ContainerName | 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. |
MemoryLimit | Hard memory limit on the container. |
MemoryReservation | Soft memory limit on the container. |
Constructors
ContainerOverride()
public ContainerOverride()
Properties
Command
Command to run inside the container.
public string[] Command { get; set; }
Property Value
System.String[]
Remarks
Default: Default command
ContainerName
Name of the container inside the task definition.
public string ContainerName { get; set; }
Property Value
System.String
Cpu
The number of cpu units reserved for the container.
public Nullable<double> Cpu { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
Default: The default value from the task definition.
Environment
Variables to set in the container's environment.
public ITaskEnvironmentVariable[] Environment { get; set; }
Property Value
MemoryLimit
Hard memory limit on the container.
public Nullable<double> MemoryLimit { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
Default: The default value from the task definition.
MemoryReservation
Soft memory limit on the container.
public Nullable<double> MemoryReservation { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
Default: The default value from the task definition.