public static final class CfnEC2Fleet.CapacityRebalanceProperty.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnEC2Fleet.CapacityRebalanceProperty
CfnEC2Fleet.CapacityRebalanceProperty
CfnEC2Fleet.CapacityRebalanceProperty.Builder, CfnEC2Fleet.CapacityRebalanceProperty.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getReplacementStrategy()
The replacement strategy to use.
|
java.lang.Number |
getTerminationDelay()
The amount of time (in seconds) that Amazon EC2 waits before terminating the old Spot Instance after launching a new replacement Spot Instance.
|
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef
- Reference to the JSII managed object.public final java.lang.String getReplacementStrategy()
CfnEC2Fleet.CapacityRebalanceProperty
launch
- EC2 Fleet launches a replacement Spot Instance when a rebalance notification is emitted for an existing Spot Instance in the fleet. EC2 Fleet does not terminate the instances that receive a rebalance notification. You can terminate the old instances, or you can leave them running. You are charged for all instances while they are running.
launch-before-terminate
- EC2 Fleet launches a replacement Spot Instance when a rebalance notification is emitted for an existing Spot Instance in the fleet, and then, after a delay that you specify (in TerminationDelay
), terminates the instances that received a rebalance notification.
getReplacementStrategy
in interface CfnEC2Fleet.CapacityRebalanceProperty
public final java.lang.Number getTerminationDelay()
CfnEC2Fleet.CapacityRebalanceProperty
Required when ReplacementStrategy
is set to launch-before-terminate
.
Not valid when ReplacementStrategy
is set to launch
.
Valid values: Minimum value of 120
seconds. Maximum value of 7200
seconds.
getTerminationDelay
in interface CfnEC2Fleet.CapacityRebalanceProperty
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
public final boolean equals(java.lang.Object o)
public final int hashCode()