AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

The overrides that should be sent to a container.

Inheritance Hierarchy

System.Object
  Amazon.ECS.Model.ContainerOverride

Namespace: Amazon.ECS.Model
Assembly: AWSSDK.ECS.dll
Version: 3.x.y.z

Syntax

C#
public class ContainerOverride

The ContainerOverride type exposes the following members

Constructors

NameDescription
Public Method ContainerOverride()

Properties

NameTypeDescription
Public Property Command System.Collections.Generic.List<System.String>

Gets and sets the property Command.

The command to send to the container that overrides the default command from the Docker image or the task definition. You must also specify a container name.

Public Property Cpu System.Int32

Gets and sets the property Cpu.

The number of cpu units reserved for the container, instead of the default value from the task definition. You must also specify a container name.

Public Property Environment System.Collections.Generic.List<Amazon.ECS.Model.KeyValuePair>

Gets and sets the property Environment.

The environment variables to send to the container. 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. You must also specify a container name.

Public Property Memory System.Int32

Gets and sets the property Memory.

The hard limit (in MiB) of memory to present to the container, instead of the default value from the task definition. If your container attempts to exceed the memory specified here, the container is killed. You must also specify a container name.

Public Property MemoryReservation System.Int32

Gets and sets the property MemoryReservation.

The soft limit (in MiB) of memory to reserve for the container, instead of the default value from the task definition. You must also specify a container name.

Public Property Name System.String

Gets and sets the property Name.

The name of the container that receives the override. This parameter is required if any override is specified.

Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms