Skip to content

ServiceDeploymentCircuitBreaker

Source code in docs_src/capo_ecs/types/service_deployment_circuit_breaker.py
class ServiceDeploymentCircuitBreaker(TypedDict, closed=True):
    status: NotRequired[
        "capo_ecs.types.service_deployment_rollback_monitors_status.ServiceDeploymentRollbackMonitorsStatus"
    ]
    """<p>The circuit breaker status. Amazon ECS is not using the circuit breaker for service deployment failures when the status is <code>DISABLED</code>.</p>"""
    failure_count: "capo_ecs.types.integer.Integer"
    """<p>The number of times the circuit breaker detected a service deploymeny failure.</p>"""
    threshold: "capo_ecs.types.integer.Integer"
    """<p>The threshhold which determines that the service deployment failed.</p> <p>The deployment circuit breaker calculates the threshold value, and then uses the value to determine when to move the deployment to a FAILED state. The deployment circuit breaker has a minimum threshold of 3 and a maximum threshold of 200. and uses the values in the following formula to determine the deployment failure.</p> <p> <code>0.5 * desired task count</code> </p>"""

failure_count instance-attribute

failure_count: Integer

The number of times the circuit breaker detected a service deploymeny failure.

status instance-attribute

The circuit breaker status. Amazon ECS is not using the circuit breaker for service deployment failures when the status is DISABLED.

threshold instance-attribute

threshold: Integer

The threshhold which determines that the service deployment failed.

The deployment circuit breaker calculates the threshold value, and then uses the value to determine when to move the deployment to a FAILED state. The deployment circuit breaker has a minimum threshold of 3 and a maximum threshold of 200. and uses the values in the following formula to determine the deployment failure.

0.5 * desired task count