public static interface TaskSet.Builder extends SdkPojo, CopyableBuilder<TaskSet.Builder,TaskSet>
Modifier and Type | Method and Description |
---|---|
TaskSet.Builder |
computedDesiredCount(Integer computedDesiredCount)
The computed desired count for the task set.
|
TaskSet.Builder |
createdAt(Instant createdAt)
The Unix timestamp for when the task set was created.
|
TaskSet.Builder |
externalId(String externalId)
The deployment ID of the AWS CodeDeploy deployment.
|
TaskSet.Builder |
id(String id)
The ID of the task set.
|
TaskSet.Builder |
launchType(LaunchType launchType)
The launch type the tasks in the task set are using.
|
TaskSet.Builder |
launchType(String launchType)
The launch type the tasks in the task set are using.
|
TaskSet.Builder |
loadBalancers(Collection<LoadBalancer> loadBalancers)
Details on a load balancer that is used with a task set.
|
TaskSet.Builder |
loadBalancers(Consumer<LoadBalancer.Builder>... loadBalancers)
Details on a load balancer that is used with a task set.
|
TaskSet.Builder |
loadBalancers(LoadBalancer... loadBalancers)
Details on a load balancer that is used with a task set.
|
default TaskSet.Builder |
networkConfiguration(Consumer<NetworkConfiguration.Builder> networkConfiguration)
The network configuration for the task set.
|
TaskSet.Builder |
networkConfiguration(NetworkConfiguration networkConfiguration)
The network configuration for the task set.
|
TaskSet.Builder |
pendingCount(Integer pendingCount)
The number of tasks in the task set that are in the
PENDING status during a deployment. |
TaskSet.Builder |
platformVersion(String platformVersion)
The platform version on which the tasks in the task set are running.
|
TaskSet.Builder |
runningCount(Integer runningCount)
The number of tasks in the task set that are in the
RUNNING status during a deployment. |
default TaskSet.Builder |
scale(Consumer<Scale.Builder> scale)
A floating-point percentage of the desired number of tasks to place and keep running in the service.
|
TaskSet.Builder |
scale(Scale scale)
A floating-point percentage of the desired number of tasks to place and keep running in the service.
|
TaskSet.Builder |
stabilityStatus(StabilityStatus stabilityStatus)
The stability status, which indicates whether the task set has reached a steady state.
|
TaskSet.Builder |
stabilityStatus(String stabilityStatus)
The stability status, which indicates whether the task set has reached a steady state.
|
TaskSet.Builder |
stabilityStatusAt(Instant stabilityStatusAt)
The Unix timestamp for when the task set stability status was retrieved.
|
TaskSet.Builder |
startedBy(String startedBy)
The tag specified when a task set is started.
|
TaskSet.Builder |
status(String status)
The status of the task set.
|
TaskSet.Builder |
taskDefinition(String taskDefinition)
The task definition the task set is using.
|
TaskSet.Builder |
taskSetArn(String taskSetArn)
The Amazon Resource Name (ARN) of the task set.
|
TaskSet.Builder |
updatedAt(Instant updatedAt)
The Unix timestamp for when the task set was last updated.
|
copy
applyMutation, build
TaskSet.Builder id(String id)
The ID of the task set.
id
- The ID of the task set.TaskSet.Builder taskSetArn(String taskSetArn)
The Amazon Resource Name (ARN) of the task set.
taskSetArn
- The Amazon Resource Name (ARN) of the task set.TaskSet.Builder startedBy(String startedBy)
The tag specified when a task set is started. If the task is started by an AWS CodeDeploy deployment, then
the startedBy
parameter is CODE_DEPLOY
.
startedBy
- The tag specified when a task set is started. If the task is started by an AWS CodeDeploy deployment,
then the startedBy
parameter is CODE_DEPLOY
.TaskSet.Builder externalId(String externalId)
The deployment ID of the AWS CodeDeploy deployment.
externalId
- The deployment ID of the AWS CodeDeploy deployment.TaskSet.Builder status(String status)
The status of the task set. The following describes each state:
The task set is serving production traffic.
The task set is not serving production traffic.
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. The following describes each state:
The task set is serving production traffic.
The task set is not serving production traffic.
The tasks in the task set are being stopped and their corresponding targets are being deregistered from their target group.
TaskSet.Builder taskDefinition(String taskDefinition)
The task definition the task set is using.
taskDefinition
- The task definition the task set is using.TaskSet.Builder computedDesiredCount(Integer computedDesiredCount)
The computed desired count for the task set. This is calculated by multiplying the service's
desiredCount
by the task set's scale
percentage.
computedDesiredCount
- The computed desired count for the task set. This is calculated by multiplying the service's
desiredCount
by the task set's scale
percentage.TaskSet.Builder pendingCount(Integer pendingCount)
The number of tasks in the task set that are in the PENDING
status during a 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 a 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.TaskSet.Builder runningCount(Integer runningCount)
The number of tasks in the task set that are in the RUNNING
status during a 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 a deployment. A
task in the RUNNING
state is running and ready for use.TaskSet.Builder createdAt(Instant createdAt)
The Unix timestamp for when the task set was created.
createdAt
- The Unix timestamp for when the task set was created.TaskSet.Builder updatedAt(Instant updatedAt)
The Unix timestamp for when the task set was last updated.
updatedAt
- The Unix timestamp for when the task set was last updated.TaskSet.Builder launchType(String launchType)
The launch type the tasks in the task set are using. For more information, see Amazon ECS Launch Types in the Amazon Elastic Container Service Developer Guide.
launchType
- The launch type the tasks in the task set are using. For more information, see Amazon ECS Launch
Types in the Amazon Elastic Container Service Developer Guide.LaunchType
,
LaunchType
TaskSet.Builder launchType(LaunchType launchType)
The launch type the tasks in the task set are using. For more information, see Amazon ECS Launch Types in the Amazon Elastic Container Service Developer Guide.
launchType
- The launch type the tasks in the task set are using. For more information, see Amazon ECS Launch
Types in the Amazon Elastic Container Service Developer Guide.LaunchType
,
LaunchType
TaskSet.Builder platformVersion(String platformVersion)
The platform version on which the tasks in the task set are running. A platform version is only specified for
tasks using the Fargate launch type. If one is not specified, the LATEST
platform version is
used by default. For more information, see AWS Fargate Platform
Versions in the Amazon Elastic Container Service Developer Guide.
platformVersion
- The platform version on which the tasks in the task set are running. A platform version is only
specified for tasks using the Fargate launch type. If one is not specified, the LATEST
platform version is used by default. For more information, see AWS Fargate
Platform Versions in the Amazon Elastic Container Service Developer Guide.TaskSet.Builder networkConfiguration(NetworkConfiguration networkConfiguration)
The network configuration for the task set.
networkConfiguration
- The network configuration for the task set.default TaskSet.Builder networkConfiguration(Consumer<NetworkConfiguration.Builder> networkConfiguration)
The network configuration for the task set.
This is a convenience that creates an instance of theNetworkConfiguration.Builder
avoiding the need
to create one manually via NetworkConfiguration.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to networkConfiguration(NetworkConfiguration)
.networkConfiguration
- a consumer that will call methods on NetworkConfiguration.Builder
networkConfiguration(NetworkConfiguration)
TaskSet.Builder loadBalancers(Collection<LoadBalancer> loadBalancers)
Details on a load balancer that is used with a task set.
loadBalancers
- Details on a load balancer that is used with a task set.TaskSet.Builder loadBalancers(LoadBalancer... loadBalancers)
Details on a load balancer that is used with a task set.
loadBalancers
- Details on a load balancer that is used with a task set.TaskSet.Builder loadBalancers(Consumer<LoadBalancer.Builder>... loadBalancers)
Details on a load balancer that is used with a task set.
This is a convenience that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #loadBalancers(List)
.loadBalancers
- a consumer that will call methods on List.Builder
#loadBalancers(List)
TaskSet.Builder scale(Scale scale)
A floating-point percentage of the desired number of tasks to place and keep running in the service.
scale
- A floating-point percentage of the desired number of tasks to place and keep running in the service.default TaskSet.Builder scale(Consumer<Scale.Builder> scale)
A floating-point percentage of the desired number of tasks to place and keep running in the service.
This is a convenience that creates an instance of theScale.Builder
avoiding the need to create one
manually via Scale.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to scale(Scale)
.scale
- a consumer that will call methods on Scale.Builder
scale(Scale)
TaskSet.Builder stabilityStatus(String stabilityStatus)
The stability status, which indicates whether the task set has reached a steady state. If the following
conditions are met, the task set will be in STEADY_STATE
:
The task runningCount
is equal to the computedDesiredCount
.
The pendingCount
is 0
.
There are no tasks running on container instances in the DRAINING
status.
All tasks are reporting a healthy status from the load balancers, service discovery, and container health checks.
If any of those conditions are not met, the stability status returns STABILIZING
.
stabilityStatus
- The stability status, which indicates whether the task set has reached a steady state. If the
following conditions are met, the task set will be in STEADY_STATE
:
The task runningCount
is equal to the computedDesiredCount
.
The pendingCount
is 0
.
There are no tasks running on container instances in the DRAINING
status.
All tasks are reporting a healthy status from the load balancers, service discovery, and container health checks.
If any of those conditions are not met, the stability status returns STABILIZING
.
StabilityStatus
,
StabilityStatus
TaskSet.Builder stabilityStatus(StabilityStatus stabilityStatus)
The stability status, which indicates whether the task set has reached a steady state. If the following
conditions are met, the task set will be in STEADY_STATE
:
The task runningCount
is equal to the computedDesiredCount
.
The pendingCount
is 0
.
There are no tasks running on container instances in the DRAINING
status.
All tasks are reporting a healthy status from the load balancers, service discovery, and container health checks.
If any of those conditions are not met, the stability status returns STABILIZING
.
stabilityStatus
- The stability status, which indicates whether the task set has reached a steady state. If the
following conditions are met, the task set will be in STEADY_STATE
:
The task runningCount
is equal to the computedDesiredCount
.
The pendingCount
is 0
.
There are no tasks running on container instances in the DRAINING
status.
All tasks are reporting a healthy status from the load balancers, service discovery, and container health checks.
If any of those conditions are not met, the stability status returns STABILIZING
.
StabilityStatus
,
StabilityStatus
TaskSet.Builder stabilityStatusAt(Instant stabilityStatusAt)
The Unix timestamp for when the task set stability status was retrieved.
stabilityStatusAt
- The Unix timestamp for when the task set stability status was retrieved.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.