public static interface ECSTaskSet.Builder extends SdkPojo, CopyableBuilder<ECSTaskSet.Builder,ECSTaskSet>
Modifier and Type | Method and Description |
---|---|
ECSTaskSet.Builder |
desiredCount(Long desiredCount)
The number of tasks in a task set.
|
ECSTaskSet.Builder |
identifer(String identifer)
A unique ID of an
ECSTaskSet . |
ECSTaskSet.Builder |
pendingCount(Long pendingCount)
The number of tasks in the task set that are in the
PENDING status during an Amazon ECS
deployment. |
ECSTaskSet.Builder |
runningCount(Long runningCount)
The number of tasks in the task set that are in the
RUNNING status during an Amazon ECS
deployment. |
ECSTaskSet.Builder |
status(String status)
The status of the task set.
|
default ECSTaskSet.Builder |
targetGroup(Consumer<TargetGroupInfo.Builder> targetGroup)
The target group associated with the task set.
|
ECSTaskSet.Builder |
targetGroup(TargetGroupInfo targetGroup)
The target group associated with the task set.
|
ECSTaskSet.Builder |
taskSetLabel(String taskSetLabel)
A label that identifies whether the ECS task set is an original target (
BLUE ) or a replacement
target (GREEN ). |
ECSTaskSet.Builder |
taskSetLabel(TargetLabel taskSetLabel)
A label that identifies whether the ECS task set is an original target (
BLUE ) or a replacement
target (GREEN ). |
ECSTaskSet.Builder |
trafficWeight(Double trafficWeight)
The percentage of traffic served by this task set.
|
copy
applyMutation, build
ECSTaskSet.Builder identifer(String identifer)
A unique ID of an ECSTaskSet
.
identifer
- A unique ID of an ECSTaskSet
.ECSTaskSet.Builder desiredCount(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.
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.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.
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.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.
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.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.
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.
ECSTaskSet.Builder trafficWeight(Double trafficWeight)
The percentage of traffic served by this task set.
trafficWeight
- The percentage of traffic served by this task set.ECSTaskSet.Builder targetGroup(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.
targetGroup
- The target group associated with the task set. The target group is used by AWS CodeDeploy to manage
traffic to a task set.default ECSTaskSet.Builder targetGroup(Consumer<TargetGroupInfo.Builder> targetGroup)
The target group associated with the task set. The target group is used by AWS CodeDeploy to manage traffic to a task set.
This is a convenience that creates an instance of theTargetGroupInfo.Builder
avoiding the need to
create one manually via TargetGroupInfo.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to targetGroup(TargetGroupInfo)
.targetGroup
- a consumer that will call methods on TargetGroupInfo.Builder
targetGroup(TargetGroupInfo)
ECSTaskSet.Builder taskSetLabel(String taskSetLabel)
A label that identifies whether the ECS task set is an original target (BLUE
) or a replacement
target (GREEN
).
taskSetLabel
- A label that identifies whether the ECS task set is an original target (BLUE
) or a
replacement target (GREEN
).TargetLabel
,
TargetLabel
ECSTaskSet.Builder taskSetLabel(TargetLabel taskSetLabel)
A label that identifies whether the ECS task set is an original target (BLUE
) or a replacement
target (GREEN
).
taskSetLabel
- A label that identifies whether the ECS task set is an original target (BLUE
) or a
replacement target (GREEN
).TargetLabel
,
TargetLabel
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.