Struct rusoto_codedeploy::ECSTaskSet
source · [−]pub struct ECSTaskSet {
pub desired_count: Option<i64>,
pub identifer: Option<String>,
pub pending_count: Option<i64>,
pub running_count: Option<i64>,
pub status: Option<String>,
pub target_group: Option<TargetGroupInfo>,
pub task_set_label: Option<String>,
pub traffic_weight: Option<f64>,
}
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
desired_count: Option<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.
identifer: Option<String>
A unique ID of an ECSTaskSet
.
pending_count: Option<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: Option<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.
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<String>
A label that identifies whether the ECS task set is an original target (BLUE
) or a replacement target (GREEN
).
traffic_weight: Option<f64>
The percentage of traffic served by this task set.
Trait Implementations
sourceimpl Clone for ECSTaskSet
impl Clone for ECSTaskSet
sourcefn clone(&self) -> ECSTaskSet
fn clone(&self) -> ECSTaskSet
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ECSTaskSet
impl Debug for ECSTaskSet
sourceimpl Default for ECSTaskSet
impl Default for ECSTaskSet
sourcefn default() -> ECSTaskSet
fn default() -> ECSTaskSet
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ECSTaskSet
impl<'de> Deserialize<'de> for ECSTaskSet
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<ECSTaskSet> for ECSTaskSet
impl PartialEq<ECSTaskSet> for ECSTaskSet
sourcefn eq(&self, other: &ECSTaskSet) -> bool
fn eq(&self, other: &ECSTaskSet) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ECSTaskSet) -> bool
fn ne(&self, other: &ECSTaskSet) -> bool
This method tests for !=
.
impl StructuralPartialEq for ECSTaskSet
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more