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.
For more information about API failure reasons, see API failure reasons 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: boolDetermines whether to use the deployment circuit breaker logic for the service.
rollback: boolDetermines 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 for DeploymentCircuitBreaker
impl PartialEq for DeploymentCircuitBreaker
impl StructuralPartialEq for DeploymentCircuitBreaker
Auto Trait Implementations§
impl Freeze for DeploymentCircuitBreaker
impl RefUnwindSafe for DeploymentCircuitBreaker
impl Send for DeploymentCircuitBreaker
impl Sync for DeploymentCircuitBreaker
impl Unpin for DeploymentCircuitBreaker
impl UnwindSafe for DeploymentCircuitBreaker
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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