Class: AWSCDK::EC2::CfnLaunchTemplate::MaintenanceOptionsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ec2/cfn_launch_template.rb

Overview

The maintenance options of your instance.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(auto_recovery: nil) ⇒ MaintenanceOptionsProperty

Returns a new instance of MaintenanceOptionsProperty.

Parameters:

  • auto_recovery (String, nil) (defaults to: nil)

    Disables the automatic recovery behavior of your instance or sets it to default.



2669
2670
2671
2672
# File 'ec2/cfn_launch_template.rb', line 2669

def initialize(auto_recovery: nil)
  @auto_recovery = auto_recovery
  Jsii::Type.check_type(@auto_recovery, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "autoRecovery") unless @auto_recovery.nil?
end

Instance Attribute Details

#auto_recoveryString? (readonly)

Disables the automatic recovery behavior of your instance or sets it to default.



2678
2679
2680
# File 'ec2/cfn_launch_template.rb', line 2678

def auto_recovery
  @auto_recovery
end

Class Method Details

.jsii_propertiesObject



2680
2681
2682
2683
2684
# File 'ec2/cfn_launch_template.rb', line 2680

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

Instance Method Details

#to_jsiiObject



2686
2687
2688
2689
2690
2691
2692
# File 'ec2/cfn_launch_template.rb', line 2686

def to_jsii
  result = {}
  result.merge!({
    "autoRecovery" => @auto_recovery,
  })
  result.compact
end