Class ECSTaskSet

    • 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 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.

        Returns:
        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.
      • runningCount

        public final 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.

        Returns:
        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.
      • 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, taskSetLabel will return TargetLabel.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from taskSetLabelAsString().

        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, taskSetLabel will return TargetLabel.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from taskSetLabelAsString().

        Returns:
        A label that identifies whether the ECS task set is an original target (BLUE) or a replacement target (GREEN).
        See Also:
        TargetLabel
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)