@Generated(value="software.amazon.awssdk:codegen") public final class DeploymentCircuitBreaker extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DeploymentCircuitBreaker.Builder,DeploymentCircuitBreaker>
The deployment circuit breaker can only be used for services using the rolling update (ECS) deployment
type that aren't behind a Classic Load Balancer.
The deployment circuit breaker determines whether a service deployment will fail if the service can't reach a steady state. If enabled, a service deployment will transition to a failed state and stop launching new tasks. You can also enable 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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
DeploymentCircuitBreaker.Builder |
| Modifier and Type | Method and Description |
|---|---|
static DeploymentCircuitBreaker.Builder |
builder() |
Boolean |
enable()
Determines whether to enable the deployment circuit breaker logic for the service.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Boolean |
rollback()
Determines whether to enable Amazon ECS to roll back the service if a service deployment fails.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends DeploymentCircuitBreaker.Builder> |
serializableBuilderClass() |
DeploymentCircuitBreaker.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Boolean enable()
Determines whether to enable the deployment circuit breaker logic for the service.
public final Boolean rollback()
Determines whether to enable Amazon ECS to roll back the service if a service deployment fails. If rollback is enabled, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.
public DeploymentCircuitBreaker.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<DeploymentCircuitBreaker.Builder,DeploymentCircuitBreaker>public static DeploymentCircuitBreaker.Builder builder()
public static Class<? extends DeploymentCircuitBreaker.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.