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.

Information about a set of Amazon ECS tasks in an CodeDeploy deployment. An Amazon ECS task set includes details such as the desired number of tasks, how many tasks are running, and whether the task set serves production traffic. An CodeDeploy application that uses the Amazon ECS compute platform deploys a containerized application in an Amazon ECS service as a task set.

Inheritance Hierarchy

System.Object
  Amazon.CodeDeploy.Model.ECSTaskSet

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

Syntax

C#
public class ECSTaskSet

The ECSTaskSet type exposes the following members

Constructors

NameDescription
Public Method ECSTaskSet()

Properties

NameTypeDescription
Public Property DesiredCount System.Int64

Gets and sets the property DesiredCount.

The number of tasks in a task set. During a deployment that uses the Amazon ECS compute type, CodeDeploy instructs Amazon ECS to create a new task set and uses this value to determine how many tasks to create. After the updated task set is created, CodeDeploy shifts traffic to the new task set.

Public Property Identifer System.String

Gets and sets the property Identifer.

A unique ID of an ECSTaskSet.

Public Property PendingCount System.Int64

Gets and sets the property PendingCount.

The number of tasks in the task set that are in the PENDING status during an Amazon ECS deployment. A task in the PENDING state is preparing to enter the RUNNING state. A task set enters the PENDING status when it launches for the first time, or when it is restarted after being in the STOPPED state.

Public Property RunningCount System.Int64

Gets and sets the property RunningCount.

The number of tasks in the task set that are in the RUNNING status during an Amazon ECS deployment. A task in the RUNNING state is running and ready for use.

Public Property Status System.String

Gets and sets the property Status.

The status of the task set. There are three valid task set statuses:

  • PRIMARY: Indicates the task set is serving production traffic.

  • ACTIVE: Indicates the task set is not serving production traffic.

  • DRAINING: Indicates the tasks in the task set are being stopped and their corresponding targets are being deregistered from their target group.

Public Property TargetGroup Amazon.CodeDeploy.Model.TargetGroupInfo

Gets and sets the property TargetGroup.

The target group associated with the task set. The target group is used by CodeDeploy to manage traffic to a task set.

Public Property TaskSetLabel Amazon.CodeDeploy.TargetLabel

Gets and sets the property TaskSetLabel.

A label that identifies whether the ECS task set is an original target (BLUE) or a replacement target (GREEN).

Public Property TrafficWeight System.Double

Gets and sets the property TrafficWeight.

The percentage of traffic served by this task set.

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