Struct aws_sdk_ecs::types::DeploymentAlarms
source · #[non_exhaustive]pub struct DeploymentAlarms {
pub alarm_names: Vec<String>,
pub enable: bool,
pub rollback: bool,
}
Expand description
One of the methods which provide a way for you to quickly identify when a deployment has failed, and then to optionally roll back the failure to the last working deployment.
When the alarms are generated, Amazon ECS sets the service deployment to failed. Set the rollback parameter to have Amazon ECS to roll back your service to the last completed deployment after a failure.
You can only use the DeploymentAlarms
method to detect failures when the DeploymentController
is set to ECS
(rolling update).
For more information, see Rolling update in the Amazon Elastic Container Service Developer Guide .
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.alarm_names: Vec<String>
One or more CloudWatch alarm names. Use a "," to separate the alarms.
enable: bool
Determines whether to use the CloudWatch alarm option in the service deployment process.
rollback: bool
Determines whether to configure Amazon ECS to roll back the service if a service deployment fails. If rollback is used, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.
Implementations§
source§impl DeploymentAlarms
impl DeploymentAlarms
source§impl DeploymentAlarms
impl DeploymentAlarms
sourcepub fn builder() -> DeploymentAlarmsBuilder
pub fn builder() -> DeploymentAlarmsBuilder
Creates a new builder-style object to manufacture DeploymentAlarms
.
Trait Implementations§
source§impl Clone for DeploymentAlarms
impl Clone for DeploymentAlarms
source§fn clone(&self) -> DeploymentAlarms
fn clone(&self) -> DeploymentAlarms
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DeploymentAlarms
impl Debug for DeploymentAlarms
source§impl PartialEq for DeploymentAlarms
impl PartialEq for DeploymentAlarms
source§fn eq(&self, other: &DeploymentAlarms) -> bool
fn eq(&self, other: &DeploymentAlarms) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DeploymentAlarms
Auto Trait Implementations§
impl Freeze for DeploymentAlarms
impl RefUnwindSafe for DeploymentAlarms
impl Send for DeploymentAlarms
impl Sync for DeploymentAlarms
impl Unpin for DeploymentAlarms
impl UnwindSafe for DeploymentAlarms
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more