HibernationOptionsRequest¶
Structure Class¶
HibernationOptionsRequest
dataclass
¶
Bases: _SerdeShape
Indicates 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 Amazon EC2 instance in the Amazon EC2 User Guide.
Attributes¶
configured
class-attribute
instance-attribute
¶
configured: bool | None = ...
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