Struct aws_sdk_codedeploy::model::ecs_task_set::Builder
source · [−]pub struct Builder { /* private fields */ }
Expand description
A builder for EcsTaskSet
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn set_identifer(self, input: Option<String>) -> Self
pub fn set_identifer(self, input: Option<String>) -> Self
A unique ID of an ECSTaskSet
.
sourcepub fn desired_count(self, input: i64) -> Self
pub fn desired_count(self, input: i64) -> Self
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.
sourcepub fn set_desired_count(self, input: Option<i64>) -> Self
pub fn set_desired_count(self, input: Option<i64>) -> Self
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.
sourcepub fn pending_count(self, input: i64) -> Self
pub fn pending_count(self, input: i64) -> Self
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.
sourcepub fn set_pending_count(self, input: Option<i64>) -> Self
pub fn set_pending_count(self, input: Option<i64>) -> Self
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.
sourcepub fn running_count(self, input: i64) -> Self
pub fn running_count(self, input: i64) -> Self
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.
sourcepub fn set_running_count(self, input: Option<i64>) -> Self
pub fn set_running_count(self, input: Option<i64>) -> Self
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.
sourcepub fn status(self, input: impl Into<String>) -> Self
pub fn status(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_status(self, input: Option<String>) -> Self
pub fn set_status(self, input: Option<String>) -> Self
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.
sourcepub fn traffic_weight(self, input: f64) -> Self
pub fn traffic_weight(self, input: f64) -> Self
The percentage of traffic served by this task set.
sourcepub fn set_traffic_weight(self, input: Option<f64>) -> Self
pub fn set_traffic_weight(self, input: Option<f64>) -> Self
The percentage of traffic served by this task set.
sourcepub fn target_group(self, input: TargetGroupInfo) -> Self
pub fn target_group(self, input: TargetGroupInfo) -> Self
The target group associated with the task set. The target group is used by AWS CodeDeploy to manage traffic to a task set.
sourcepub fn set_target_group(self, input: Option<TargetGroupInfo>) -> Self
pub fn set_target_group(self, input: Option<TargetGroupInfo>) -> Self
The target group associated with the task set. The target group is used by AWS CodeDeploy to manage traffic to a task set.
sourcepub fn task_set_label(self, input: TargetLabel) -> Self
pub fn task_set_label(self, input: TargetLabel) -> Self
A label that identifies whether the ECS task set is an original target (BLUE
) or a replacement target (GREEN
).
sourcepub fn set_task_set_label(self, input: Option<TargetLabel>) -> Self
pub fn set_task_set_label(self, input: Option<TargetLabel>) -> Self
A label that identifies whether the ECS task set is an original target (BLUE
) or a replacement target (GREEN
).
sourcepub fn build(self) -> EcsTaskSet
pub fn build(self) -> EcsTaskSet
Consumes the builder and constructs a EcsTaskSet
.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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> 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