aws-cdk-lib.aws_ec2.CfnLaunchTemplate.HibernationOptionsProperty

interface HibernationOptionsProperty

LanguageType name
.NETAmazon.CDK.AWS.EC2.CfnLaunchTemplate.HibernationOptionsProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnLaunchTemplate_HibernationOptionsProperty
Javasoftware.amazon.awscdk.services.ec2.CfnLaunchTemplate.HibernationOptionsProperty
Pythonaws_cdk.aws_ec2.CfnLaunchTemplate.HibernationOptionsProperty
TypeScript aws-cdk-lib » aws_ec2 » CfnLaunchTemplate » HibernationOptionsProperty

Specifies whether your instance is configured for hibernation.

This parameter is valid only if the instance meets the hibernation prerequisites . For more information, see Hibernate Your Instance in the Amazon EC2 User Guide .

HibernationOptions is a property of AWS::EC2::LaunchTemplate LaunchTemplateData .

Example

// 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.CfnLaunchTemplate.HibernationOptionsProperty = {
  configured: false,
};

Properties

NameTypeDescription
configured?boolean | IResolvableIf you set this parameter to true , the instance is enabled for hibernation.

configured?

Type: boolean | IResolvable (optional)

If you set this parameter to true , the instance is enabled for hibernation.

Default: false