libZSservicesZSamazonka-ecsZSamazonka-ecs
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.ECS.Types.DeploymentCircuitBreaker

Description

 
Synopsis

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.

Constructors

DeploymentCircuitBreaker' 

Fields

  • enable :: Bool

    Whether to enable the deployment circuit breaker logic for the service.

  • rollback :: Bool

    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.

Instances

Instances details
Eq DeploymentCircuitBreaker Source # 
Instance details

Defined in Amazonka.ECS.Types.DeploymentCircuitBreaker

Read DeploymentCircuitBreaker Source # 
Instance details

Defined in Amazonka.ECS.Types.DeploymentCircuitBreaker

Show DeploymentCircuitBreaker Source # 
Instance details

Defined in Amazonka.ECS.Types.DeploymentCircuitBreaker

Generic DeploymentCircuitBreaker Source # 
Instance details

Defined in Amazonka.ECS.Types.DeploymentCircuitBreaker

Associated Types

type Rep DeploymentCircuitBreaker :: Type -> Type #

NFData DeploymentCircuitBreaker Source # 
Instance details

Defined in Amazonka.ECS.Types.DeploymentCircuitBreaker

Hashable DeploymentCircuitBreaker Source # 
Instance details

Defined in Amazonka.ECS.Types.DeploymentCircuitBreaker

ToJSON DeploymentCircuitBreaker Source # 
Instance details

Defined in Amazonka.ECS.Types.DeploymentCircuitBreaker

FromJSON DeploymentCircuitBreaker Source # 
Instance details

Defined in Amazonka.ECS.Types.DeploymentCircuitBreaker

type Rep DeploymentCircuitBreaker Source # 
Instance details

Defined in Amazonka.ECS.Types.DeploymentCircuitBreaker

type Rep DeploymentCircuitBreaker = D1 ('MetaData "DeploymentCircuitBreaker" "Amazonka.ECS.Types.DeploymentCircuitBreaker" "libZSservicesZSamazonka-ecsZSamazonka-ecs" 'False) (C1 ('MetaCons "DeploymentCircuitBreaker'" 'PrefixI 'True) (S1 ('MetaSel ('Just "enable") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "rollback") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)))

newDeploymentCircuitBreaker Source #

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.