Struct aws_sdk_ec2::types::HibernationOptionsRequest
source · #[non_exhaustive]pub struct HibernationOptionsRequest {
pub configured: Option<bool>,
}
Expand description
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 instance in the Amazon EC2 User Guide.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.configured: Option<bool>
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
InstanceInterruptionBehavior
to a value other thanhibernate
, you'll get an error.
Default: false
Implementations§
source§impl HibernationOptionsRequest
impl HibernationOptionsRequest
sourcepub fn configured(&self) -> Option<bool>
pub fn configured(&self) -> Option<bool>
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
InstanceInterruptionBehavior
to a value other thanhibernate
, you'll get an error.
Default: false
source§impl HibernationOptionsRequest
impl HibernationOptionsRequest
sourcepub fn builder() -> HibernationOptionsRequestBuilder
pub fn builder() -> HibernationOptionsRequestBuilder
Creates a new builder-style object to manufacture HibernationOptionsRequest
.
Trait Implementations§
source§impl Clone for HibernationOptionsRequest
impl Clone for HibernationOptionsRequest
source§fn clone(&self) -> HibernationOptionsRequest
fn clone(&self) -> HibernationOptionsRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HibernationOptionsRequest
impl Debug for HibernationOptionsRequest
source§impl PartialEq for HibernationOptionsRequest
impl PartialEq for HibernationOptionsRequest
source§fn eq(&self, other: &HibernationOptionsRequest) -> bool
fn eq(&self, other: &HibernationOptionsRequest) -> bool
self
and other
values to be equal, and is used
by ==
.