Show / Hide Table of Contents

Class ContainerOverride

Inheritance
object
ContainerOverride
Implements
IContainerOverride
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.Events.Targets
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ContainerOverride : IContainerOverride
Syntax (vb)
Public Class ContainerOverride 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()
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
            };

Properties

Command

Command to run inside the container.

public string[]? Command { get; set; }
Property Value

string[]

Remarks

Default: Default command

ContainerName

Name of the container inside the task definition.

public string ContainerName { get; set; }
Property Value

string

Remarks

ExampleMetadata: fixture=_generated

Cpu

The number of cpu units reserved for the container.

public double? Cpu { get; set; }
Property Value

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

ITaskEnvironmentVariable[]

Remarks

ExampleMetadata: fixture=_generated

MemoryLimit

Hard memory limit on the container.

public double? MemoryLimit { get; set; }
Property Value

double?

Remarks

Default: The default value from the task definition.

MemoryReservation

Soft memory limit on the container.

public double? MemoryReservation { get; set; }
Property Value

double?

Remarks

Default: The default value from the task definition.

Implements

IContainerOverride
Back to top Generated by DocFX