Class: AWSCDK::EC2::CfnSpotFleet::SpotFleetMonitoringProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnSpotFleet::SpotFleetMonitoringProperty
- Defined in:
- ec2/cfn_spot_fleet.rb
Overview
Describes whether monitoring is enabled.
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean, ...
readonly
Enables monitoring for the instance.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(enabled: nil) ⇒ SpotFleetMonitoringProperty
constructor
A new instance of SpotFleetMonitoringProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(enabled: nil) ⇒ SpotFleetMonitoringProperty
Returns a new instance of SpotFleetMonitoringProperty.
2589 2590 2591 2592 |
# File 'ec2/cfn_spot_fleet.rb', line 2589 def initialize(enabled: nil) @enabled = enabled Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enabled") unless @enabled.nil? end |
Instance Attribute Details
#enabled ⇒ Boolean, ... (readonly)
Note:
Default: - false
Enables monitoring for the instance.
Default: false
2601 2602 2603 |
# File 'ec2/cfn_spot_fleet.rb', line 2601 def enabled @enabled end |
Class Method Details
.jsii_properties ⇒ Object
2603 2604 2605 2606 2607 |
# File 'ec2/cfn_spot_fleet.rb', line 2603 def self.jsii_properties { :enabled => "enabled", } end |
Instance Method Details
#to_jsii ⇒ Object
2609 2610 2611 2612 2613 2614 2615 |
# File 'ec2/cfn_spot_fleet.rb', line 2609 def to_jsii result = {} result.merge!({ "enabled" => @enabled, }) result.compact end |