Cluster class

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.

Constructors

Cluster({int? activeServicesCount, List<Attachment>? attachments, String? attachmentsStatus, List<String>? capacityProviders, String? clusterArn, String? clusterName, List<CapacityProviderStrategyItem>? defaultCapacityProviderStrategy, int? pendingTasksCount, int? registeredContainerInstancesCount, int? runningTasksCount, List<ClusterSetting>? settings, List<KeyValuePair>? statistics, String? status, List<Tag>? tags})
Cluster.fromJson(Map<String, dynamic> json)
factory

Properties

activeServicesCount int?
The number of services that are running on the cluster in an ACTIVE state. You can view these services with ListServices.
final
attachments List<Attachment>?
The resources attached to a cluster. When using a capacity provider with a cluster, the Auto Scaling plan that is created will be returned as a cluster attachment.
final
attachmentsStatus String?
The status of the capacity providers associated with the cluster. The following are the states that will be returned:
final
capacityProviders List<String>?
The capacity providers associated with the cluster.
final
clusterArn String?
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.
final
clusterName String?
A user-generated string that you use to identify your cluster.
final
defaultCapacityProviderStrategy List<CapacityProviderStrategyItem>?
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.
final
hashCode int
The hash code for this object.
no setterinherited
pendingTasksCount int?
The number of tasks in the cluster that are in the PENDING state.
final
registeredContainerInstancesCount int?
The number of container instances registered into the cluster. This includes container instances in both ACTIVE and DRAINING status.
final
runningTasksCount int?
The number of tasks in the cluster that are in the RUNNING state.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
settings List<ClusterSetting>?
The settings for the cluster. This parameter indicates whether CloudWatch Container Insights is enabled or disabled for a cluster.
final
statistics List<KeyValuePair>?
Additional information about your clusters that are separated by launch type, including:
final
status String?
The status of the cluster. The following are the possible states that will be returned.
final
tags List<Tag>?
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, both of which you define.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited