@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BlueInstanceTerminationOption extends Object implements Serializable, Cloneable, StructuredPojo
Information about whether instances in the original environment are terminated when a blue/green deployment is
successful. BlueInstanceTerminationOption
does not apply to Lambda deployments.
Constructor and Description |
---|
BlueInstanceTerminationOption() |
Modifier and Type | Method and Description |
---|---|
BlueInstanceTerminationOption |
clone() |
boolean |
equals(Object obj) |
String |
getAction()
The action to take on instances in the original environment after a successful blue/green deployment.
|
Integer |
getTerminationWaitTimeInMinutes()
For an Amazon EC2 deployment, the number of minutes to wait after a successful blue/green deployment before
terminating instances from the original environment.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAction(InstanceAction action)
The action to take on instances in the original environment after a successful blue/green deployment.
|
void |
setAction(String action)
The action to take on instances in the original environment after a successful blue/green deployment.
|
void |
setTerminationWaitTimeInMinutes(Integer 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.
|
String |
toString()
Returns a string representation of this object.
|
BlueInstanceTerminationOption |
withAction(InstanceAction action)
The action to take on instances in the original environment after a successful blue/green deployment.
|
BlueInstanceTerminationOption |
withAction(String action)
The action to take on instances in the original environment after a successful blue/green deployment.
|
BlueInstanceTerminationOption |
withTerminationWaitTimeInMinutes(Integer 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.
|
public void setAction(String 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.
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.
InstanceAction
public String getAction()
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.
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.
InstanceAction
public BlueInstanceTerminationOption withAction(String 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.
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.
InstanceAction
public void setAction(InstanceAction 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.
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.
InstanceAction
public BlueInstanceTerminationOption withAction(InstanceAction 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.
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.
InstanceAction
public void setTerminationWaitTimeInMinutes(Integer 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).
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).
public Integer getTerminationWaitTimeInMinutes()
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).
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).
public BlueInstanceTerminationOption withTerminationWaitTimeInMinutes(Integer 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).
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).
public String toString()
toString
in class Object
Object.toString()
public BlueInstanceTerminationOption clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.