Class BlueInstanceTerminationOption
- java.lang.Object
-
- software.amazon.awssdk.services.codedeploy.model.BlueInstanceTerminationOption
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<BlueInstanceTerminationOption.Builder,BlueInstanceTerminationOption>
@Generated("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.
BlueInstanceTerminationOptiondoes not apply to Lambda deployments.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceBlueInstanceTerminationOption.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InstanceActionaction()The action to take on instances in the original environment after a successful blue/green deployment.StringactionAsString()The action to take on instances in the original environment after a successful blue/green deployment.static BlueInstanceTerminationOption.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends BlueInstanceTerminationOption.Builder>serializableBuilderClass()IntegerterminationWaitTimeInMinutes()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.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
action
public 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,
actionwill returnInstanceAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromactionAsString().- Returns:
- 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.
-
- See Also:
InstanceAction
-
-
actionAsString
public 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,
actionwill returnInstanceAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromactionAsString().- Returns:
- 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.
-
- See Also:
InstanceAction
-
-
terminationWaitTimeInMinutes
public 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).
- Returns:
- 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).
-
toBuilder
public BlueInstanceTerminationOption.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<BlueInstanceTerminationOption.Builder,BlueInstanceTerminationOption>
-
builder
public static BlueInstanceTerminationOption.Builder builder()
-
serializableBuilderClass
public static Class<? extends BlueInstanceTerminationOption.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-