Class: AWSCDK::Pipes::CfnPipe::MultiMeasureAttributeMappingProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
pipes/cfn_pipe.rb

Overview

A mapping of a source event data field to a measure in a Timestream for LiveAnalytics record.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(measure_value:, measure_value_type:, multi_measure_attribute_name:) ⇒ MultiMeasureAttributeMappingProperty

Returns a new instance of MultiMeasureAttributeMappingProperty.

Parameters:

  • measure_value (String)

    Dynamic path to the measurement attribute in the source event.

  • measure_value_type (String)

    Data type of the measurement attribute in the source event.

  • multi_measure_attribute_name (String)

    Target measure name to be used.



1928
1929
1930
1931
1932
1933
1934
1935
# File 'pipes/cfn_pipe.rb', line 1928

def initialize(measure_value:, measure_value_type:, multi_measure_attribute_name:)
  @measure_value = measure_value
  Jsii::Type.check_type(@measure_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "measureValue")
  @measure_value_type = measure_value_type
  Jsii::Type.check_type(@measure_value_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "measureValueType")
  @multi_measure_attribute_name = multi_measure_attribute_name
  Jsii::Type.check_type(@multi_measure_attribute_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "multiMeasureAttributeName")
end

Instance Attribute Details

#measure_valueString (readonly)

Dynamic path to the measurement attribute in the source event.



1941
1942
1943
# File 'pipes/cfn_pipe.rb', line 1941

def measure_value
  @measure_value
end

#measure_value_typeString (readonly)

Data type of the measurement attribute in the source event.



1946
1947
1948
# File 'pipes/cfn_pipe.rb', line 1946

def measure_value_type
  @measure_value_type
end

#multi_measure_attribute_nameString (readonly)

Target measure name to be used.



1951
1952
1953
# File 'pipes/cfn_pipe.rb', line 1951

def multi_measure_attribute_name
  @multi_measure_attribute_name
end

Class Method Details

.jsii_propertiesObject



1953
1954
1955
1956
1957
1958
1959
# File 'pipes/cfn_pipe.rb', line 1953

def self.jsii_properties
  {
    :measure_value => "measureValue",
    :measure_value_type => "measureValueType",
    :multi_measure_attribute_name => "multiMeasureAttributeName",
  }
end

Instance Method Details

#to_jsiiObject



1961
1962
1963
1964
1965
1966
1967
1968
1969
# File 'pipes/cfn_pipe.rb', line 1961

def to_jsii
  result = {}
  result.merge!({
    "measureValue" => @measure_value,
    "measureValueType" => @measure_value_type,
    "multiMeasureAttributeName" => @multi_measure_attribute_name,
  })
  result.compact
end