AWS SDK Version 2 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.

.NET Framework 4.5
 
A regional grouping of one or more container instances on which you can run task requests. Each account receives a default cluster the first time you use the Amazon ECS service, but you may also create other clusters. Clusters may contain more than one instance type simultaneously.

Inheritance Hierarchy

System.Object
  Amazon.ECS.Model.Cluster

Namespace: Amazon.ECS.Model
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public class Cluster : Object

The Cluster type exposes the following members

Constructors

NameDescription
Public Method Cluster()

Properties

NameTypeDescription
Public Property ActiveServicesCount System.Int32 Gets and sets the property ActiveServicesCount.

The number of services that are running on the cluster in an ACTIVE state. You can view these services with ListServices.

Public Property ClusterArn System.String Gets and sets the property ClusterArn.

The Amazon Resource Name (ARN) that identifies the cluster. The ARN contains the arn:aws:ecs namespace, followed by the region of the cluster, the AWS account ID of the cluster owner, the cluster namespace, and then the cluster name. For example, arn:aws:ecs:region:012345678910:cluster/test.

Public Property ClusterName System.String Gets and sets the property ClusterName.

A user-generated string that you use to identify your cluster.

Public Property PendingTasksCount System.Int32 Gets and sets the property PendingTasksCount.

The number of tasks in the cluster that are in the PENDING state.

Public Property RegisteredContainerInstancesCount System.Int32 Gets and sets the property RegisteredContainerInstancesCount.

The number of container instances registered into the cluster.

Public Property RunningTasksCount System.Int32 Gets and sets the property RunningTasksCount.

The number of tasks in the cluster that are in the RUNNING state.

Public Property Status System.String Gets and sets the property Status.

The status of the cluster. The valid values are ACTIVE or INACTIVE. ACTIVE indicates that you can register container instances with the cluster and the associated instances can accept tasks.

Version Information

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

.NET for Windows Store apps:
Supported in: Windows 8