Interface CfnInstance.HibernationOptionsProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnInstance.HibernationOptionsProperty.Jsii$Proxy
- Enclosing class:
CfnInstance
@Stability(Stable)
public static interface CfnInstance.HibernationOptionsProperty
extends software.amazon.jsii.JsiiSerializable
Specifies the hibernation options for the instance.
HibernationOptions is a property of the AWS::EC2::Instance resource.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
HibernationOptionsProperty hibernationOptionsProperty = HibernationOptionsProperty.builder()
.configured(false)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnInstance.HibernationOptionsPropertystatic final classAn implementation forCfnInstance.HibernationOptionsProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getConfigured
Set totrueto enable your instance for hibernation.For Spot Instances, if you set
Configuredtotrue, either omit theInstanceInterruptionBehaviorparameter (forSpotMarketOptions), or set it tohibernate. WhenConfiguredis true:- If you omit
InstanceInterruptionBehavior, it defaults tohibernate. - If you set
InstanceInterruptionBehaviorto a value other thanhibernate, you'll get an error.
Default:
falseReturns union: either
BooleanorIResolvableDefault: - false
- See Also:
- If you omit
-
builder
-