Struct aws_sdk_codedeploy::model::EcsTaskSet [−][src]
#[non_exhaustive]pub struct EcsTaskSet {
pub identifer: Option<String>,
pub desired_count: i64,
pub pending_count: i64,
pub running_count: i64,
pub status: Option<String>,
pub traffic_weight: f64,
pub target_group: Option<TargetGroupInfo>,
pub task_set_label: Option<TargetLabel>,
}
Expand description
Information about a set of Amazon ECS tasks in an AWS 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 AWS CodeDeploy application that uses the Amazon ECS compute platform deploys a containerized application in an Amazon ECS service as a task set.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.identifer: Option<String>
A unique ID of an ECSTaskSet
.
desired_count: i64
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.
pending_count: i64
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.
running_count: i64
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: Option<String>
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.
traffic_weight: f64
The percentage of traffic served by this task set.
target_group: Option<TargetGroupInfo>
The target group associated with the task set. The target group is used by AWS CodeDeploy to manage traffic to a task set.
task_set_label: Option<TargetLabel>
A label that identifies whether the ECS task set is an original target
(BLUE
) or a replacement target (GREEN
).
Implementations
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.
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.
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.
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.
The percentage of traffic served by this task set.
The target group associated with the task set. The target group is used by AWS CodeDeploy to manage traffic to a task set.
A label that identifies whether the ECS task set is an original target
(BLUE
) or a replacement target (GREEN
).
Creates a new builder-style object to manufacture EcsTaskSet
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for EcsTaskSet
impl Send for EcsTaskSet
impl Sync for EcsTaskSet
impl Unpin for EcsTaskSet
impl UnwindSafe for EcsTaskSet
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more