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

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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-codedeploy/lib/aws-sdk-codedeploy/types.rb

Overview

Note:

When making an API call, you may pass BlueInstanceTerminationOption data as a 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.

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.

Returns:

  • (String)


523
524
525
526
527
# File 'gems/aws-sdk-codedeploy/lib/aws-sdk-codedeploy/types.rb', line 523

class BlueInstanceTerminationOption < Struct.new(
  :action,
  :termination_wait_time_in_minutes)
  include Aws::Structure
end

#termination_wait_time_in_minutesInteger

The number of minutes to wait after a successful blue/green deployment before terminating instances from the original environment.

Returns:

  • (Integer)


523
524
525
526
527
# File 'gems/aws-sdk-codedeploy/lib/aws-sdk-codedeploy/types.rb', line 523

class BlueInstanceTerminationOption < Struct.new(
  :action,
  :termination_wait_time_in_minutes)
  include Aws::Structure
end