HibernationOptionsProperty Struct
Specifies the hibernation options for the instance.
HibernationOptions is a property of the AWS::EC2::Instance resource.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const hibernationOptionsProperty: ec2.CfnInstance.HibernationOptionsProperty = {
configured: false,
};
Properties
configuredboolean | IResolvableconfiguredtyping.Union[bool, IResolvable]configuredBooleanConfiguredboolConfiguredinterface{}= false#Set to `true` to enable your instance for hibernation.
notes
For Spot Instances, if you set Configured to true , either omit the InstanceInterruptionBehavior parameter (for SpotMarketOptions ), or set it to hibernate . When Configured is true:
- If you omit
InstanceInterruptionBehavior, it defaults tohibernate. - If you set
InstanceInterruptionBehaviorto a value other thanhibernate, you'll get an error.
Default: false