Interface ECSTaskSet.Builder

    • Method Detail

      • identifer

        ECSTaskSet.Builder identifer​(String identifer)

        A unique ID of an ECSTaskSet.

        Parameters:
        identifer - A unique ID of an ECSTaskSet.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • desiredCount

        ECSTaskSet.Builder desiredCount​(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.

        Parameters:
        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:
        Returns a reference to this object so that method calls can be chained together.
      • pendingCount

        ECSTaskSet.Builder pendingCount​(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.

        Parameters:
        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:
        Returns a reference to this object so that method calls can be chained together.
      • runningCount

        ECSTaskSet.Builder runningCount​(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.

        Parameters:
        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:
        Returns a reference to this object so that method calls can be chained together.
      • status

        ECSTaskSet.Builder status​(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.

        Parameters:
        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:
        Returns a reference to this object so that method calls can be chained together.
      • trafficWeight

        ECSTaskSet.Builder trafficWeight​(Double trafficWeight)

        The percentage of traffic served by this task set.

        Parameters:
        trafficWeight - The percentage of traffic served by this task set.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • targetGroup

        ECSTaskSet.Builder targetGroup​(TargetGroupInfo targetGroup)

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

        Parameters:
        targetGroup - The target group associated with the task set. The target group is used by CodeDeploy to manage traffic to a task set.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • taskSetLabel

        ECSTaskSet.Builder taskSetLabel​(String taskSetLabel)

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

        Parameters:
        taskSetLabel - A label that identifies whether the ECS task set is an original target (BLUE) or a replacement target (GREEN).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        TargetLabel, TargetLabel
      • taskSetLabel

        ECSTaskSet.Builder taskSetLabel​(TargetLabel taskSetLabel)

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

        Parameters:
        taskSetLabel - A label that identifies whether the ECS task set is an original target (BLUE) or a replacement target (GREEN).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        TargetLabel, TargetLabel