@Generated(value="software.amazon.awssdk:codegen") public final class ECSTaskSet extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ECSTaskSet.Builder,ECSTaskSet>
A set of Amazon ECS tasks. A task set runs a specified number of instances of a task definition simultaneously inside an Amazon ECS service. Information about a set of Amazon ECS tasks in an AWS 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 or not.
Modifier and Type | Class and Description |
---|---|
static interface |
ECSTaskSet.Builder |
Modifier and Type | Method and Description |
---|---|
static ECSTaskSet.Builder |
builder() |
Long |
desiredCount()
The number of tasks in a task set.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
identifer()
A unique ID of an
ECSTaskSet . |
Long |
pendingCount()
The number of tasks in the task set that are in the
PENDING status during an Amazon ECS deployment. |
Long |
runningCount()
The number of tasks in the task set that are in the
RUNNING status during an Amazon ECS deployment. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends ECSTaskSet.Builder> |
serializableBuilderClass() |
String |
status()
The status of the task set.
|
TargetGroupInfo |
targetGroup()
The target group associated with the task set.
|
TargetLabel |
taskSetLabel()
A label that identifies whether the ECS task set is an original target (
BLUE ) or a replacement
target (GREEN ). |
String |
taskSetLabelAsString()
A label that identifies whether the ECS task set is an original target (
BLUE ) or a replacement
target (GREEN ). |
ECSTaskSet.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
Double |
trafficWeight()
The percentage of traffic served by this task set.
|
copy
public String identifer()
A unique ID of an ECSTaskSet
.
ECSTaskSet
.public Long desiredCount()
The number of tasks in a task set. During a deployment that uses the Amazon ECS compute type, CodeDeploy asks 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 Long 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.
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 Long 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.
RUNNING
status during an Amazon ECS
deployment. A task in the RUNNING
state is running and ready for use.public String 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.
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 Double trafficWeight()
The percentage of traffic served by this task set.
public TargetGroupInfo targetGroup()
The target group associated with the task set. The target group is used by AWS CodeDeploy to manage traffic to a task set.
public TargetLabel taskSetLabel()
A label that identifies whether the ECS task set is an original target (BLUE
) or a replacement
target (GREEN
).
If the service returns an enum value that is not available in the current SDK version, taskSetLabel
will
return TargetLabel.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
taskSetLabelAsString()
.
BLUE
) or a
replacement target (GREEN
).TargetLabel
public String taskSetLabelAsString()
A label that identifies whether the ECS task set is an original target (BLUE
) or a replacement
target (GREEN
).
If the service returns an enum value that is not available in the current SDK version, taskSetLabel
will
return TargetLabel.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
taskSetLabelAsString()
.
BLUE
) or a
replacement target (GREEN
).TargetLabel
public ECSTaskSet.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<ECSTaskSet.Builder,ECSTaskSet>
public static ECSTaskSet.Builder builder()
public static Class<? extends ECSTaskSet.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.