Class: AWSCDK::Interfaces::AWSIot::FleetMetricReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSIot::FleetMetricReference
- Defined in:
- interfaces/aws_iot/fleet_metric_reference.rb
Overview
A reference to a FleetMetric resource.
Instance Attribute Summary collapse
-
#metric_name ⇒ String
readonly
The MetricName of the FleetMetric resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(metric_name:) ⇒ FleetMetricReference
constructor
A new instance of FleetMetricReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(metric_name:) ⇒ FleetMetricReference
Returns a new instance of FleetMetricReference.
8 9 10 11 |
# File 'interfaces/aws_iot/fleet_metric_reference.rb', line 8 def initialize(metric_name:) @metric_name = metric_name Jsii::Type.check_type(@metric_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "metricName") end |
Instance Attribute Details
#metric_name ⇒ String (readonly)
The MetricName of the FleetMetric resource.
16 17 18 |
# File 'interfaces/aws_iot/fleet_metric_reference.rb', line 16 def metric_name @metric_name end |
Class Method Details
.jsii_properties ⇒ Object
18 19 20 21 22 |
# File 'interfaces/aws_iot/fleet_metric_reference.rb', line 18 def self.jsii_properties { :metric_name => "metricName", } end |
Instance Method Details
#to_jsii ⇒ Object
24 25 26 27 28 29 30 |
# File 'interfaces/aws_iot/fleet_metric_reference.rb', line 24 def to_jsii result = {} result.merge!({ "metricName" => @metric_name, }) result.compact end |