Class CfnEC2Fleet.CapacityRebalanceProperty.Jsii$Proxy
- All Implemented Interfaces:
CfnEC2Fleet.CapacityRebalanceProperty
,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
CfnEC2Fleet.CapacityRebalanceProperty
CfnEC2Fleet.CapacityRebalanceProperty
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.CfnEC2Fleet.CapacityRebalanceProperty
CfnEC2Fleet.CapacityRebalanceProperty.Builder, CfnEC2Fleet.CapacityRebalanceProperty.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor that initializes the object based on literal property values passed by theCfnEC2Fleet.CapacityRebalanceProperty.Builder
.protected
Jsii$Proxy
(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNode
final boolean
final String
The replacement strategy to use.final Number
The amount of time (in seconds) that Amazon EC2 waits before terminating the old Spot Instance after launching a new replacement Spot Instance.final int
hashCode()
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef
- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theCfnEC2Fleet.CapacityRebalanceProperty.Builder
.
-
-
Method Details
-
getReplacementStrategy
Description copied from interface:CfnEC2Fleet.CapacityRebalanceProperty
The replacement strategy to use. Only available for fleets of typemaintain
.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 (inTerminationDelay
), terminates the instances that received a rebalance notification.- Specified by:
getReplacementStrategy
in interfaceCfnEC2Fleet.CapacityRebalanceProperty
-
getTerminationDelay
Description copied from interface:CfnEC2Fleet.CapacityRebalanceProperty
The amount of time (in seconds) that Amazon EC2 waits before terminating the old Spot Instance after launching a new replacement Spot Instance.Required when
ReplacementStrategy
is set tolaunch-before-terminate
.Not valid when
ReplacementStrategy
is set tolaunch
.Valid values: Minimum value of
120
seconds. Maximum value of7200
seconds.- Specified by:
getTerminationDelay
in interfaceCfnEC2Fleet.CapacityRebalanceProperty
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-