@Generated(value="software.amazon.awssdk:codegen") public final class BlueInstanceTerminationOption extends Object implements SdkPojo, Serializable, ToCopyableBuilder<BlueInstanceTerminationOption.Builder,BlueInstanceTerminationOption>
Information about whether instances in the original environment are terminated when a blue/green deployment is
successful. BlueInstanceTerminationOption does not apply to Lambda deployments.
| Modifier and Type | Class and Description |
|---|---|
static interface |
BlueInstanceTerminationOption.Builder |
| Modifier and Type | Method and Description |
|---|---|
InstanceAction |
action()
The action to take on instances in the original environment after a successful blue/green deployment.
|
String |
actionAsString()
The action to take on instances in the original environment after a successful blue/green deployment.
|
static BlueInstanceTerminationOption.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends BlueInstanceTerminationOption.Builder> |
serializableBuilderClass() |
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.
|
BlueInstanceTerminationOption.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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.
If the service returns an enum value that is not available in the current SDK version, action will
return InstanceAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
actionAsString().
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.
InstanceActionpublic final String actionAsString()
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.
If the service returns an enum value that is not available in the current SDK version, action will
return InstanceAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
actionAsString().
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.
InstanceActionpublic final 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).
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.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<BlueInstanceTerminationOption.Builder,BlueInstanceTerminationOption>public static BlueInstanceTerminationOption.Builder builder()
public static Class<? extends BlueInstanceTerminationOption.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.