You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::CodeDeploy::Types::BlueInstanceTerminationOption

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing BlueInstanceTerminationOption as input to an Aws::Client method, you can use a vanilla Hash:

{
  action: "TERMINATE", # accepts TERMINATE, KEEP_ALIVE
  termination_wait_time_in_minutes: 1,
}

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

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#actionString

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.

    Possible values:

    • TERMINATE
    • KEEP_ALIVE

Returns:

  • (String)

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

#termination_wait_time_in_minutesInteger

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).

Returns:

  • (Integer)

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