Struct aws_sdk_ecs::types::DeploymentCircuitBreaker
source · #[non_exhaustive]pub struct DeploymentCircuitBreaker {
pub enable: bool,
pub rollback: bool,
}
Expand description
The deployment circuit breaker can only be used for services using the rolling update (ECS
) deployment type.
The deployment circuit breaker determines whether a service deployment will fail if the service can't reach a steady state. If it is turned on, a service deployment will transition to a failed state and stop launching new tasks. You can also configure Amazon ECS to roll back your service to the last completed deployment after a failure. 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.enable: bool
Determines whether to use the deployment circuit breaker logic for the service.
rollback: bool
Determines whether to configure Amazon ECS to roll back the service if a service deployment fails. If rollback is on, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.
Implementations§
source§impl DeploymentCircuitBreaker
impl DeploymentCircuitBreaker
source§impl DeploymentCircuitBreaker
impl DeploymentCircuitBreaker
sourcepub fn builder() -> DeploymentCircuitBreakerBuilder
pub fn builder() -> DeploymentCircuitBreakerBuilder
Creates a new builder-style object to manufacture DeploymentCircuitBreaker
.
Trait Implementations§
source§impl Clone for DeploymentCircuitBreaker
impl Clone for DeploymentCircuitBreaker
source§fn clone(&self) -> DeploymentCircuitBreaker
fn clone(&self) -> DeploymentCircuitBreaker
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DeploymentCircuitBreaker
impl Debug for DeploymentCircuitBreaker
source§impl PartialEq<DeploymentCircuitBreaker> for DeploymentCircuitBreaker
impl PartialEq<DeploymentCircuitBreaker> for DeploymentCircuitBreaker
source§fn eq(&self, other: &DeploymentCircuitBreaker) -> bool
fn eq(&self, other: &DeploymentCircuitBreaker) -> bool
self
and other
values to be equal, and is used
by ==
.