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.

A Docker container that's part of a task.

Inheritance Hierarchy

System.Object
  Amazon.ECS.Model.Container

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

Syntax

C#
public class Container

The Container type exposes the following members

Constructors

NameDescription
Public Method Container()

Properties

NameTypeDescription
Public Property ContainerArn System.String

Gets and sets the property ContainerArn.

The Amazon Resource Name (ARN) of the container.

Public Property Cpu System.String

Gets and sets the property Cpu.

The number of CPU units set for the container. The value is 0 if no value was specified in the container definition when the task definition was registered.

Public Property ExitCode System.Int32

Gets and sets the property ExitCode.

The exit code returned from the container.

Public Property GpuIds System.Collections.Generic.List<System.String>

Gets and sets the property GpuIds.

The IDs of each GPU assigned to the container.

Public Property HealthStatus Amazon.ECS.HealthStatus

Gets and sets the property HealthStatus.

The health status of the container. If health checks aren't configured for this container in its task definition, then it reports the health status as UNKNOWN.

Public Property Image System.String

Gets and sets the property Image.

The image used for the container.

Public Property ImageDigest System.String

Gets and sets the property ImageDigest.

The container image manifest digest.

Public Property LastStatus System.String

Gets and sets the property LastStatus.

The last known status of the container.

Public Property ManagedAgents System.Collections.Generic.List<Amazon.ECS.Model.ManagedAgent>

Gets and sets the property ManagedAgents.

The details of any Amazon ECS managed agents associated with the container.

Public Property Memory System.String

Gets and sets the property Memory.

The hard limit (in MiB) of memory set for the container.

Public Property MemoryReservation System.String

Gets and sets the property MemoryReservation.

The soft limit (in MiB) of memory set for the container.

Public Property Name System.String

Gets and sets the property Name.

The name of the container.

Public Property NetworkBindings System.Collections.Generic.List<Amazon.ECS.Model.NetworkBinding>

Gets and sets the property NetworkBindings.

The network bindings associated with the container.

Public Property NetworkInterfaces System.Collections.Generic.List<Amazon.ECS.Model.NetworkInterface>

Gets and sets the property NetworkInterfaces.

The network interfaces associated with the container.

Public Property Reason System.String

Gets and sets the property Reason.

A short (255 max characters) human-readable string to provide additional details about a running or stopped container.

Public Property RuntimeId System.String

Gets and sets the property RuntimeId.

The ID of the Docker container.

Public Property TaskArn System.String

Gets and sets the property TaskArn.

The ARN of the task.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

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