This is the new *CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [AWS CloudFormation User Guide](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html). # AWS::EC2::Instance HibernationOptions Specifies the hibernation options for the instance. `HibernationOptions` is a property of the [AWS::EC2::Instance](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html) resource. ## Syntax To declare this entity in your CloudFormation template, use the following syntax: ### JSON ``` { "[Configured](#cfn-ec2-instance-hibernationoptions-configured)" : {{Boolean}} } ``` ### YAML ``` [Configured](#cfn-ec2-instance-hibernationoptions-configured): {{Boolean}} ``` ## Properties `Configured` Set to `true` to enable your instance for hibernation. For Spot Instances, if you set `Configured` to `true`, either omit the `InstanceInterruptionBehavior` parameter (for [https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SpotMarketOptions.html](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SpotMarketOptions.html)), or set it to `hibernate`. When `Configured` is true: + If you omit `InstanceInterruptionBehavior`, it defaults to `hibernate`. + If you set `InstanceInterruptionBehavior` to a value other than `hibernate`, you'll get an error. Default: `false` *Required*: No *Type*: Boolean *Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

AltStyle によって変換されたページ (->オリジナル) /