interface DeploymentCircuitBreaker
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ECS.DeploymentCircuitBreaker |
Java | software.amazon.awscdk.services.ecs.DeploymentCircuitBreaker |
Python | aws_cdk.aws_ecs.DeploymentCircuitBreaker |
TypeScript (source) | @aws-cdk/aws-ecs » DeploymentCircuitBreaker |
The deployment circuit breaker to use for the service.
Example
declare const cluster: ecs.Cluster;
declare const taskDefinition: ecs.TaskDefinition;
const service = new ecs.FargateService(this, 'Service', {
cluster,
taskDefinition,
circuitBreaker: { rollback: true },
});
Properties
Name | Type | Description |
---|---|---|
rollback? | boolean | Whether to enable rollback on deployment failure. |
rollback?
Type:
boolean
(optional, default: false)
Whether to enable rollback on deployment failure.