libZSservicesZSamazonka-codedeployZSamazonka-codedeploy
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.CodeDeploy.Types.BlueInstanceTerminationOption

Description

 
Synopsis

Documentation

data BlueInstanceTerminationOption Source #

Information about whether instances in the original environment are terminated when a blue/green deployment is successful. BlueInstanceTerminationOption does not apply to Lambda deployments.

See: newBlueInstanceTerminationOption smart constructor.

Constructors

BlueInstanceTerminationOption' 

Fields

  • action :: Maybe InstanceAction

    The action to take on instances in the original environment after a successful blue/green deployment.

    • TERMINATE: Instances are terminated after a specified wait time.
    • KEEP_ALIVE: Instances are left running after they are deregistered from the load balancer and removed from the deployment group.
  • terminationWaitTimeInMinutes :: Maybe Int

    For an Amazon EC2 deployment, the number of minutes to wait after a successful blue/green deployment before terminating instances from the original environment.

    For an Amazon ECS deployment, the number of minutes before deleting the original (blue) task set. During an Amazon ECS deployment, CodeDeploy shifts traffic from the original (blue) task set to a replacement (green) task set.

    The maximum setting is 2880 minutes (2 days).

Instances

Instances details
Eq BlueInstanceTerminationOption Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.BlueInstanceTerminationOption

Read BlueInstanceTerminationOption Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.BlueInstanceTerminationOption

Show BlueInstanceTerminationOption Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.BlueInstanceTerminationOption

Generic BlueInstanceTerminationOption Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.BlueInstanceTerminationOption

Associated Types

type Rep BlueInstanceTerminationOption :: Type -> Type #

NFData BlueInstanceTerminationOption Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.BlueInstanceTerminationOption

Hashable BlueInstanceTerminationOption Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.BlueInstanceTerminationOption

ToJSON BlueInstanceTerminationOption Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.BlueInstanceTerminationOption

FromJSON BlueInstanceTerminationOption Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.BlueInstanceTerminationOption

type Rep BlueInstanceTerminationOption Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.BlueInstanceTerminationOption

type Rep BlueInstanceTerminationOption = D1 ('MetaData "BlueInstanceTerminationOption" "Amazonka.CodeDeploy.Types.BlueInstanceTerminationOption" "libZSservicesZSamazonka-codedeployZSamazonka-codedeploy" 'False) (C1 ('MetaCons "BlueInstanceTerminationOption'" 'PrefixI 'True) (S1 ('MetaSel ('Just "action") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe InstanceAction)) :*: S1 ('MetaSel ('Just "terminationWaitTimeInMinutes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))))

newBlueInstanceTerminationOption :: BlueInstanceTerminationOption Source #

Create a value of BlueInstanceTerminationOption 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:action:BlueInstanceTerminationOption', blueInstanceTerminationOption_action - The action to take on instances in the original environment after a successful blue/green deployment.

  • TERMINATE: Instances are terminated after a specified wait time.
  • KEEP_ALIVE: Instances are left running after they are deregistered from the load balancer and removed from the deployment group.

$sel:terminationWaitTimeInMinutes:BlueInstanceTerminationOption', blueInstanceTerminationOption_terminationWaitTimeInMinutes - For an Amazon EC2 deployment, the number of minutes to wait after a successful blue/green deployment before terminating instances from the original environment.

For an Amazon ECS deployment, the number of minutes before deleting the original (blue) task set. During an Amazon ECS deployment, CodeDeploy shifts traffic from the original (blue) task set to a replacement (green) task set.

The maximum setting is 2880 minutes (2 days).

blueInstanceTerminationOption_action :: Lens' BlueInstanceTerminationOption (Maybe InstanceAction) Source #

The action to take on instances in the original environment after a successful blue/green deployment.

  • TERMINATE: Instances are terminated after a specified wait time.
  • KEEP_ALIVE: Instances are left running after they are deregistered from the load balancer and removed from the deployment group.

blueInstanceTerminationOption_terminationWaitTimeInMinutes :: Lens' BlueInstanceTerminationOption (Maybe Int) Source #

For an Amazon EC2 deployment, the number of minutes to wait after a successful blue/green deployment before terminating instances from the original environment.

For an Amazon ECS deployment, the number of minutes before deleting the original (blue) task set. During an Amazon ECS deployment, CodeDeploy shifts traffic from the original (blue) task set to a replacement (green) task set.

The maximum setting is 2880 minutes (2 days).