Class DeploymentCircuitBreaker
The deployment circuit breaker to use for the service.
Inheritance
System.Object
DeploymentCircuitBreaker
Implements
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class DeploymentCircuitBreaker : Object, IDeploymentCircuitBreaker
Syntax (vb)
Public Class DeploymentCircuitBreaker
Inherits Object
Implements IDeploymentCircuitBreaker
Remarks
ExampleMetadata: infused
Examples
Cluster cluster;
TaskDefinition taskDefinition;
var service = new FargateService(this, "Service", new FargateServiceProps {
Cluster = cluster,
TaskDefinition = taskDefinition,
CircuitBreaker = new DeploymentCircuitBreaker {
Enable = true,
Rollback = true
}
});
Synopsis
Constructors
DeploymentCircuitBreaker() |
Properties
Enable | Whether to enable the deployment circuit breaker logic. |
Rollback | Whether to enable rollback on deployment failure. |
Constructors
DeploymentCircuitBreaker()
public DeploymentCircuitBreaker()
Properties
Enable
Whether to enable the deployment circuit breaker logic.
public Nullable<bool> Enable { get; set; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: true
Rollback
Whether to enable rollback on deployment failure.
public Nullable<bool> Rollback { get; set; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: false