Struct aws_sdk_ecs::model::deployment_circuit_breaker::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for DeploymentCircuitBreaker.
Implementations§
source§impl Builder
impl Builder
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.