Class: AWSCDK::EC2::CfnLaunchTemplate::MonitoringProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnLaunchTemplate::MonitoringProperty
- Defined in:
- ec2/cfn_launch_template.rb
Overview
Specifies whether detailed monitoring is enabled for an instance.
For more information about detailed monitoring, see Enable or turn off detailed monitoring for your instances in the Amazon EC2 User Guide .
Monitoring is a property of AWS::EC2::LaunchTemplate LaunchTemplateData .
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean, ...
readonly
Specify
trueto enable detailed monitoring.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(enabled: nil) ⇒ MonitoringProperty
constructor
A new instance of MonitoringProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(enabled: nil) ⇒ MonitoringProperty
Returns a new instance of MonitoringProperty.
2898 2899 2900 2901 |
# File 'ec2/cfn_launch_template.rb', line 2898 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)
Specify true to enable detailed monitoring.
Otherwise, basic monitoring is enabled.
2909 2910 2911 |
# File 'ec2/cfn_launch_template.rb', line 2909 def enabled @enabled end |
Class Method Details
.jsii_properties ⇒ Object
2911 2912 2913 2914 2915 |
# File 'ec2/cfn_launch_template.rb', line 2911 def self.jsii_properties { :enabled => "enabled", } end |
Instance Method Details
#to_jsii ⇒ Object
2917 2918 2919 2920 2921 2922 2923 |
# File 'ec2/cfn_launch_template.rb', line 2917 def to_jsii result = {} result.merge!({ "enabled" => @enabled, }) result.compact end |