Class: AWSCDK::IoT::CfnFleetMetric::AggregationTypeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoT::CfnFleetMetric::AggregationTypeProperty
- Defined in:
- io_t/cfn_fleet_metric.rb
Overview
The type of aggregation queries.
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
The name of the aggregation type.
-
#values ⇒ Array<String>
readonly
A list of the values of aggregation types.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, values:) ⇒ AggregationTypeProperty
constructor
A new instance of AggregationTypeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, values:) ⇒ AggregationTypeProperty
Returns a new instance of AggregationTypeProperty.
653 654 655 656 657 658 |
# File 'io_t/cfn_fleet_metric.rb', line 653 def initialize(name:, values:) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @values = values Jsii::Type.check_type(@values, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "values") end |
Instance Attribute Details
#name ⇒ String (readonly)
The name of the aggregation type.
664 665 666 |
# File 'io_t/cfn_fleet_metric.rb', line 664 def name @name end |
#values ⇒ Array<String> (readonly)
A list of the values of aggregation types.
669 670 671 |
# File 'io_t/cfn_fleet_metric.rb', line 669 def values @values end |
Class Method Details
.jsii_properties ⇒ Object
671 672 673 674 675 676 |
# File 'io_t/cfn_fleet_metric.rb', line 671 def self.jsii_properties { :name => "name", :values => "values", } end |
Instance Method Details
#to_jsii ⇒ Object
678 679 680 681 682 683 684 685 |
# File 'io_t/cfn_fleet_metric.rb', line 678 def to_jsii result = {} result.merge!({ "name" => @name, "values" => @values, }) result.compact end |