Interface CfnInstance.IHibernationOptionsProperty
Specifies the hibernation options for the instance.
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IHibernationOptionsProperty
Syntax (vb)
Public Interface IHibernationOptionsProperty
Remarks
HibernationOptions
is a property of the AWS::EC2::Instance resource.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var hibernationOptionsProperty = new HibernationOptionsProperty {
Configured = false
};
Synopsis
Properties
Configured | Set to |
Properties
Configured
Set to true
to enable your instance for hibernation.
virtual object Configured { get; }
Property Value
System.Object
Remarks
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:
Default: false
Default: - false