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 ==
.