Class: AWSCDK::EC2::CfnLaunchTemplate::MaintenanceOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnLaunchTemplate::MaintenanceOptionsProperty
- Defined in:
- ec2/cfn_launch_template.rb
Overview
The maintenance options of your instance.
Instance Attribute Summary collapse
-
#auto_recovery ⇒ String?
readonly
Disables the automatic recovery behavior of your instance or sets it to default.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(auto_recovery: nil) ⇒ MaintenanceOptionsProperty
constructor
A new instance of MaintenanceOptionsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(auto_recovery: nil) ⇒ MaintenanceOptionsProperty
Returns a new instance of MaintenanceOptionsProperty.
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_recovery ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |