Show / Hide Table of Contents

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.

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.

Properties

Command

Command to run inside the container.

string[]? Command { get; }
Property Value

string[]

Remarks

Default: Default command

ContainerName

Name of the container inside the task definition.

string ContainerName { get; }
Property Value

string

Remarks

ExampleMetadata: fixture=_generated

Cpu

The number of cpu units reserved for the container.

double? Cpu { get; }
Property Value

double?

Remarks

Default: The default value from the task definition.

Environment

Variables to set in the container's environment.

ITaskEnvironmentVariable[]? Environment { get; }
Property Value

ITaskEnvironmentVariable[]

Remarks

ExampleMetadata: fixture=_generated

MemoryLimit

Hard memory limit on the container.

double? MemoryLimit { get; }
Property Value

double?

Remarks

Default: The default value from the task definition.

MemoryReservation

Soft memory limit on the container.

double? MemoryReservation { get; }
Property Value

double?

Remarks

Default: The default value from the task definition.

Back to top Generated by DocFX