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 regional grouping of one or more container instances where 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.
Namespace: Amazon.ECS.Model
Assembly: AWSSDK.ECS.dll
Version: 3.x.y.z
public class Cluster
The Cluster type exposes the following members
Name | Description | |
---|---|---|
Cluster() |
Name | Type | Description | |
---|---|---|---|
ActiveServicesCount | System.Int32 |
Gets and sets the property ActiveServicesCount.
The number of services that are running on the cluster in an |
|
Attachments | System.Collections.Generic.List<Amazon.ECS.Model.Attachment> |
Gets and sets the property Attachments. The resources attached to a cluster. When using a capacity provider with a cluster, the capacity provider and associated resources are returned as cluster attachments. |
|
AttachmentsStatus | System.String |
Gets and sets the property AttachmentsStatus. The status of the capacity providers associated with the cluster. The following are the states that are returned.
|
|
CapacityProviders | System.Collections.Generic.List<System.String> |
Gets and sets the property CapacityProviders. The capacity providers associated with the cluster. |
|
ClusterArn | System.String |
Gets and sets the property ClusterArn. The Amazon Resource Name (ARN) that identifies the cluster. For more information about the ARN format, see Amazon Resource Name (ARN) in the Amazon ECS Developer Guide. |
|
ClusterName | System.String |
Gets and sets the property ClusterName. A user-generated string that you use to identify your cluster. |
|
Configuration | Amazon.ECS.Model.ClusterConfiguration |
Gets and sets the property Configuration. The execute command configuration for the cluster. |
|
DefaultCapacityProviderStrategy | System.Collections.Generic.List<Amazon.ECS.Model.CapacityProviderStrategyItem> |
Gets and sets the property DefaultCapacityProviderStrategy. The default capacity provider strategy for the cluster. When services or tasks are run in the cluster with no launch type or capacity provider strategy specified, the default capacity provider strategy is used. |
|
PendingTasksCount | System.Int32 |
Gets and sets the property PendingTasksCount.
The number of tasks in the cluster that are in the |
|
RegisteredContainerInstancesCount | System.Int32 |
Gets and sets the property RegisteredContainerInstancesCount.
The number of container instances registered into the cluster. This includes container
instances in both |
|
RunningTasksCount | System.Int32 |
Gets and sets the property RunningTasksCount.
The number of tasks in the cluster that are in the |
|
ServiceConnectDefaults | Amazon.ECS.Model.ClusterServiceConnectDefaults |
Gets and sets the property ServiceConnectDefaults.
Use this parameter to set a default Service Connect namespace. After you set a default
Service Connect namespace, any new services with Service Connect turned on that are
created in the cluster are added as client services in the namespace. This setting
only applies to new services that set the Tasks that run in a namespace can use short names to connect to services in the namespace. Tasks can connect to services across all of the clusters in the namespace. Tasks connect through a managed proxy container that collects logs and metrics for increased visibility. Only the tasks that Amazon ECS services create are supported with Service Connect. For more information, see Service Connect in the Amazon Elastic Container Service Developer Guide. |
|
Settings | System.Collections.Generic.List<Amazon.ECS.Model.ClusterSetting> |
Gets and sets the property Settings. The settings for the cluster. This parameter indicates whether CloudWatch Container Insights is on or off for a cluster. |
|
Statistics | System.Collections.Generic.List<Amazon.ECS.Model.KeyValuePair> |
Gets and sets the property Statistics. Additional information about your clusters that are separated by launch type. They include the following:
|
|
Status | System.String |
Gets and sets the property Status. The status of the cluster. The following are the possible states that are returned.
|
|
Tags | System.Collections.Generic.List<Amazon.ECS.Model.Tag> |
Gets and sets the property Tags. The metadata that you apply to the cluster to help you categorize and organize them. Each tag consists of a key and an optional value. You define both. The following basic restrictions apply to tags:
|
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5