Interface CfnService.IDeploymentCircuitBreakerProperty
The deployment circuit breaker can only be used for services using the rolling update (
ECS
) deployment type.
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public interface IDeploymentCircuitBreakerProperty
Syntax (vb)
Public Interface IDeploymentCircuitBreakerProperty
Remarks
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 .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECS;
var deploymentCircuitBreakerProperty = new DeploymentCircuitBreakerProperty {
Enable = false,
Rollback = false
};
Synopsis
Properties
Enable | Determines whether to use the deployment circuit breaker logic for the service. |
Rollback | Determines whether to configure Amazon ECS to roll back the service if a service deployment fails. |
Properties
Enable
Determines whether to use the deployment circuit breaker logic for the service.
object Enable { get; }
Property Value
System.Object
Remarks
Rollback
Determines whether to configure Amazon ECS to roll back the service if a service deployment fails.
object Rollback { get; }
Property Value
System.Object
Remarks
If rollback is on, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.