Class: AWSCDK::EC2::CfnLaunchTemplate::HibernationOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnLaunchTemplate::HibernationOptionsProperty
- Defined in:
- ec2/cfn_launch_template.rb
Overview
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 .
Instance Attribute Summary collapse
-
#configured ⇒ Boolean, ...
readonly
If you set this parameter to
true, the instance is enabled for hibernation.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(configured: nil) ⇒ HibernationOptionsProperty
constructor
A new instance of HibernationOptionsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(configured: nil) ⇒ HibernationOptionsProperty
Returns a new instance of HibernationOptionsProperty.
1450 1451 1452 1453 |
# File 'ec2/cfn_launch_template.rb', line 1450 def initialize(configured: nil) @configured = configured Jsii::Type.check_type(@configured, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "configured") unless @configured.nil? end |
Instance Attribute Details
#configured ⇒ Boolean, ... (readonly)
If you set this parameter to true , the instance is enabled for hibernation.
Default: false
1461 1462 1463 |
# File 'ec2/cfn_launch_template.rb', line 1461 def configured @configured end |
Class Method Details
.jsii_properties ⇒ Object
1463 1464 1465 1466 1467 |
# File 'ec2/cfn_launch_template.rb', line 1463 def self.jsii_properties { :configured => "configured", } end |
Instance Method Details
#to_jsii ⇒ Object
1469 1470 1471 1472 1473 1474 1475 |
# File 'ec2/cfn_launch_template.rb', line 1469 def to_jsii result = {} result.merge!({ "configured" => @configured, }) result.compact end |