Class: AWSCDK::EC2::CfnLaunchTemplate::HibernationOptionsProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(configured: nil) ⇒ HibernationOptionsProperty

Returns a new instance of HibernationOptionsProperty.

Parameters:

  • configured (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    If you set this parameter to true , the instance is enabled for hibernation.



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

#configuredBoolean, ... (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_propertiesObject



1463
1464
1465
1466
1467
# File 'ec2/cfn_launch_template.rb', line 1463

def self.jsii_properties
  {
    :configured => "configured",
  }
end

Instance Method Details

#to_jsiiObject



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