@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FleetSpotCapacityRebalance extends Object implements Serializable, Cloneable
The strategy to use when Amazon EC2 emits a signal that your Spot Instance is at an elevated risk of being interrupted.
Constructor and Description |
---|
FleetSpotCapacityRebalance() |
Modifier and Type | Method and Description |
---|---|
FleetSpotCapacityRebalance |
clone() |
boolean |
equals(Object obj) |
String |
getReplacementStrategy()
To allow EC2 Fleet to launch a replacement Spot Instance when an instance rebalance notification is emitted for
an existing Spot Instance in the fleet, specify
launch . |
int |
hashCode() |
void |
setReplacementStrategy(String replacementStrategy)
To allow EC2 Fleet to launch a replacement Spot Instance when an instance rebalance notification is emitted for
an existing Spot Instance in the fleet, specify
launch . |
String |
toString()
Returns a string representation of this object.
|
FleetSpotCapacityRebalance |
withReplacementStrategy(FleetReplacementStrategy replacementStrategy)
To allow EC2 Fleet to launch a replacement Spot Instance when an instance rebalance notification is emitted for
an existing Spot Instance in the fleet, specify
launch . |
FleetSpotCapacityRebalance |
withReplacementStrategy(String replacementStrategy)
To allow EC2 Fleet to launch a replacement Spot Instance when an instance rebalance notification is emitted for
an existing Spot Instance in the fleet, specify
launch . |
public void setReplacementStrategy(String replacementStrategy)
To allow EC2 Fleet to launch a replacement Spot Instance when an instance rebalance notification is emitted for
an existing Spot Instance in the fleet, specify launch
. Only available for fleets of type
maintain
.
When a replacement instance is launched, the instance marked for rebalance is not automatically terminated. You can terminate it, or you can leave it running. You are charged for both instances while they are running.
replacementStrategy
- To allow EC2 Fleet to launch a replacement Spot Instance when an instance rebalance notification is
emitted for an existing Spot Instance in the fleet, specify launch
. Only available for fleets
of type maintain
. When a replacement instance is launched, the instance marked for rebalance is not automatically terminated. You can terminate it, or you can leave it running. You are charged for both instances while they are running.
FleetReplacementStrategy
public String getReplacementStrategy()
To allow EC2 Fleet to launch a replacement Spot Instance when an instance rebalance notification is emitted for
an existing Spot Instance in the fleet, specify launch
. Only available for fleets of type
maintain
.
When a replacement instance is launched, the instance marked for rebalance is not automatically terminated. You can terminate it, or you can leave it running. You are charged for both instances while they are running.
launch
. Only available for
fleets of type maintain
. When a replacement instance is launched, the instance marked for rebalance is not automatically terminated. You can terminate it, or you can leave it running. You are charged for both instances while they are running.
FleetReplacementStrategy
public FleetSpotCapacityRebalance withReplacementStrategy(String replacementStrategy)
To allow EC2 Fleet to launch a replacement Spot Instance when an instance rebalance notification is emitted for
an existing Spot Instance in the fleet, specify launch
. Only available for fleets of type
maintain
.
When a replacement instance is launched, the instance marked for rebalance is not automatically terminated. You can terminate it, or you can leave it running. You are charged for both instances while they are running.
replacementStrategy
- To allow EC2 Fleet to launch a replacement Spot Instance when an instance rebalance notification is
emitted for an existing Spot Instance in the fleet, specify launch
. Only available for fleets
of type maintain
. When a replacement instance is launched, the instance marked for rebalance is not automatically terminated. You can terminate it, or you can leave it running. You are charged for both instances while they are running.
FleetReplacementStrategy
public FleetSpotCapacityRebalance withReplacementStrategy(FleetReplacementStrategy replacementStrategy)
To allow EC2 Fleet to launch a replacement Spot Instance when an instance rebalance notification is emitted for
an existing Spot Instance in the fleet, specify launch
. Only available for fleets of type
maintain
.
When a replacement instance is launched, the instance marked for rebalance is not automatically terminated. You can terminate it, or you can leave it running. You are charged for both instances while they are running.
replacementStrategy
- To allow EC2 Fleet to launch a replacement Spot Instance when an instance rebalance notification is
emitted for an existing Spot Instance in the fleet, specify launch
. Only available for fleets
of type maintain
. When a replacement instance is launched, the instance marked for rebalance is not automatically terminated. You can terminate it, or you can leave it running. You are charged for both instances while they are running.
FleetReplacementStrategy
public String toString()
toString
in class Object
Object.toString()
public FleetSpotCapacityRebalance clone()
Copyright © 2021. All rights reserved.