interface HibernationOptionsProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.EC2.Mixins.CfnInstancePropsMixin.HibernationOptionsProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsec2/mixins#CfnInstancePropsMixin_HibernationOptionsProperty |
Java | software.amazon.awscdk.mixins.preview.services.ec2.mixins.CfnInstancePropsMixin.HibernationOptionsProperty |
Python | aws_cdk.mixins_preview.aws_ec2.mixins.CfnInstancePropsMixin.HibernationOptionsProperty |
TypeScript | @aws-cdk/mixins-preview » aws_ec2 » mixins » CfnInstancePropsMixin » HibernationOptionsProperty |
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 { mixins as ec2_mixins } from '@aws-cdk/mixins-preview/aws-ec2';
const hibernationOptionsProperty: ec2_mixins.CfnInstancePropsMixin.HibernationOptionsProperty = {
configured: false,
};
Properties
| Name | Type | Description |
|---|---|---|
| configured? | boolean | IResolvable | Set to true to enable your instance for hibernation. |
configured?
Type:
boolean | IResolvable
(optional, default: false)
Set to true to enable your instance for hibernation.
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

.NET
Go
Java
Python
TypeScript