AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
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.
Namespace: Amazon.ECS.Model
Assembly: AWSSDK.ECS.dll
Version: 3.x.y.z
public class DeploymentCircuitBreaker
The DeploymentCircuitBreaker type exposes the following members
Name | Description | |
---|---|---|
![]() |
DeploymentCircuitBreaker() |
Name | Type | Description | |
---|---|---|---|
![]() |
Enable | System.Boolean |
Gets and sets the property Enable. Determines whether to use the deployment circuit breaker logic for the service. |
![]() |
Rollback | System.Boolean |
Gets and sets the property Rollback. 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. |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5