Class: AWSCDK::IoT::CfnFleetMetric::AggregationTypeProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t/cfn_fleet_metric.rb

Overview

The type of aggregation queries.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, values:) ⇒ AggregationTypeProperty

Returns a new instance of AggregationTypeProperty.

Parameters:

  • name (String)

    The name of the aggregation type.

  • values (Array<String>)

    A list of the values of aggregation types.



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

#nameString (readonly)

The name of the aggregation type.



664
665
666
# File 'io_t/cfn_fleet_metric.rb', line 664

def name
  @name
end

#valuesArray<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_propertiesObject



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_jsiiObject



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