Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Documentation
data DeploymentCircuitBreaker Source #
The deployment circuit breaker can only be used for services using the
rolling update (ECS
) deployment type that are not behind a Classic
Load Balancer.
The deployment circuit breaker determines whether a service deployment will fail if the service can't reach a steady state. If enabled, a service deployment will transition to a failed state and stop launching new tasks. You can also enable 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.
See: newDeploymentCircuitBreaker
smart constructor.
DeploymentCircuitBreaker' | |
|
Instances
newDeploymentCircuitBreaker Source #
:: Bool | |
-> Bool | |
-> DeploymentCircuitBreaker |
Create a value of DeploymentCircuitBreaker
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:enable:DeploymentCircuitBreaker'
, deploymentCircuitBreaker_enable
- Whether to enable the deployment circuit breaker logic for the service.
$sel:rollback:DeploymentCircuitBreaker'
, deploymentCircuitBreaker_rollback
- Whether to enable Amazon ECS to roll back the service if a service
deployment fails. If rollback is enabled, when a service deployment
fails, the service is rolled back to the last deployment that completed
successfully.
deploymentCircuitBreaker_enable :: Lens' DeploymentCircuitBreaker Bool Source #
Whether to enable the deployment circuit breaker logic for the service.
deploymentCircuitBreaker_rollback :: Lens' DeploymentCircuitBreaker Bool Source #
Whether to enable Amazon ECS to roll back the service if a service deployment fails. If rollback is enabled, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.