#[non_exhaustive]pub struct DeploymentCircuitBreakerBuilder { /* private fields */ }Expand description
A builder for DeploymentCircuitBreaker.
Implementations§
source§impl DeploymentCircuitBreakerBuilder
impl DeploymentCircuitBreakerBuilder
sourcepub fn enable(self, input: bool) -> Self
pub fn enable(self, input: bool) -> Self
Determines whether to use the deployment circuit breaker logic for the service.
sourcepub fn set_enable(self, input: Option<bool>) -> Self
pub fn set_enable(self, input: Option<bool>) -> Self
Determines whether to use the deployment circuit breaker logic for the service.
sourcepub fn rollback(self, input: bool) -> Self
pub fn rollback(self, input: bool) -> Self
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.
sourcepub fn set_rollback(self, input: Option<bool>) -> Self
pub fn set_rollback(self, input: Option<bool>) -> Self
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.
sourcepub fn build(self) -> DeploymentCircuitBreaker
pub fn build(self) -> DeploymentCircuitBreaker
Consumes the builder and constructs a DeploymentCircuitBreaker.
Trait Implementations§
source§impl Clone for DeploymentCircuitBreakerBuilder
impl Clone for DeploymentCircuitBreakerBuilder
source§fn clone(&self) -> DeploymentCircuitBreakerBuilder
fn clone(&self) -> DeploymentCircuitBreakerBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for DeploymentCircuitBreakerBuilder
impl Default for DeploymentCircuitBreakerBuilder
source§fn default() -> DeploymentCircuitBreakerBuilder
fn default() -> DeploymentCircuitBreakerBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<DeploymentCircuitBreakerBuilder> for DeploymentCircuitBreakerBuilder
impl PartialEq<DeploymentCircuitBreakerBuilder> for DeploymentCircuitBreakerBuilder
source§fn eq(&self, other: &DeploymentCircuitBreakerBuilder) -> bool
fn eq(&self, other: &DeploymentCircuitBreakerBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.