Class ECSTaskSet
- java.lang.Object
-
- software.amazon.awssdk.services.codedeploy.model.ECSTaskSet
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ECSTaskSet.Builder,ECSTaskSet>
@Generated("software.amazon.awssdk:codegen") public final class ECSTaskSet extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ECSTaskSet.Builder,ECSTaskSet>
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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceECSTaskSet.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ECSTaskSet.Builderbuilder()LongdesiredCount()The number of tasks in a task set.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringidentifer()A unique ID of anECSTaskSet.LongpendingCount()The number of tasks in the task set that are in thePENDINGstatus during an Amazon ECS deployment.LongrunningCount()The number of tasks in the task set that are in theRUNNINGstatus during an Amazon ECS deployment.List<SdkField<?>>sdkFields()static Class<? extends ECSTaskSet.Builder>serializableBuilderClass()Stringstatus()The status of the task set.TargetGroupInfotargetGroup()The target group associated with the task set.TargetLabeltaskSetLabel()A label that identifies whether the ECS task set is an original target (BLUE) or a replacement target (GREEN).StringtaskSetLabelAsString()A label that identifies whether the ECS task set is an original target (BLUE) or a replacement target (GREEN).ECSTaskSet.BuildertoBuilder()StringtoString()Returns a string representation of this object.DoubletrafficWeight()The percentage of traffic served by this task set.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
identifer
public final String identifer()
A unique ID of an
ECSTaskSet.- Returns:
- A unique ID of an
ECSTaskSet.
-
desiredCount
public final Long 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.
- Returns:
- 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.
-
pendingCount
public final Long pendingCount()
The number of tasks in the task set that are in the
PENDINGstatus during an Amazon ECS deployment. A task in thePENDINGstate is preparing to enter theRUNNINGstate. A task set enters thePENDINGstatus when it launches for the first time, or when it is restarted after being in theSTOPPEDstate.- Returns:
- The number of tasks in the task set that are in the
PENDINGstatus during an Amazon ECS deployment. A task in thePENDINGstate is preparing to enter theRUNNINGstate. A task set enters thePENDINGstatus when it launches for the first time, or when it is restarted after being in theSTOPPEDstate.
-
runningCount
public final Long runningCount()
The number of tasks in the task set that are in the
RUNNINGstatus during an Amazon ECS deployment. A task in theRUNNINGstate is running and ready for use.- Returns:
- The number of tasks in the task set that are in the
RUNNINGstatus during an Amazon ECS deployment. A task in theRUNNINGstate is running and ready for use.
-
status
public final 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.
- Returns:
- 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.
-
-
-
trafficWeight
public final Double trafficWeight()
The percentage of traffic served by this task set.
- Returns:
- The percentage of traffic served by this task set.
-
targetGroup
public final TargetGroupInfo targetGroup()
The target group associated with the task set. The target group is used by CodeDeploy to manage traffic to a task set.
- Returns:
- The target group associated with the task set. The target group is used by CodeDeploy to manage traffic to a task set.
-
taskSetLabel
public final 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,
taskSetLabelwill returnTargetLabel.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtaskSetLabelAsString().- Returns:
- A label that identifies whether the ECS task set is an original target (
BLUE) or a replacement target (GREEN). - See Also:
TargetLabel
-
taskSetLabelAsString
public final 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,
taskSetLabelwill returnTargetLabel.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtaskSetLabelAsString().- Returns:
- A label that identifies whether the ECS task set is an original target (
BLUE) or a replacement target (GREEN). - See Also:
TargetLabel
-
toBuilder
public ECSTaskSet.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ECSTaskSet.Builder,ECSTaskSet>
-
builder
public static ECSTaskSet.Builder builder()
-
serializableBuilderClass
public static Class<? extends ECSTaskSet.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-