DeploymentCircuitBreaker

class aws_cdk.aws_ecs.DeploymentCircuitBreaker(*, rollback=None)

Bases: object

The deployment circuit breaker to use for the service.

Parameters

rollback (Optional[bool]) – Whether to enable rollback on deployment failure. Default: false

ExampleMetadata

infused

Example:

# cluster: ecs.Cluster
# task_definition: ecs.TaskDefinition

service = ecs.FargateService(self, "Service",
    cluster=cluster,
    task_definition=task_definition,
    circuit_breaker=ecs.DeploymentCircuitBreaker(rollback=True)
)

Attributes

rollback

Whether to enable rollback on deployment failure.

Default

false

Return type

Optional[bool]