Class: AWSCDK::Pipes::CfnPipe::DimensionMappingProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Pipes::CfnPipe::DimensionMappingProperty
- Defined in:
- pipes/cfn_pipe.rb
Overview
Maps source data to a dimension in the target Timestream for LiveAnalytics table.
For more information, see Amazon Timestream for LiveAnalytics concepts
Instance Attribute Summary collapse
-
#dimension_name ⇒ String
readonly
The metadata attributes of the time series.
-
#dimension_value ⇒ String
readonly
Dynamic path to the dimension value in the source event.
-
#dimension_value_type ⇒ String
readonly
The data type of the dimension for the time-series data.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(dimension_name:, dimension_value:, dimension_value_type:) ⇒ DimensionMappingProperty
constructor
A new instance of DimensionMappingProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(dimension_name:, dimension_value:, dimension_value_type:) ⇒ DimensionMappingProperty
Returns a new instance of DimensionMappingProperty.
1230 1231 1232 1233 1234 1235 1236 1237 |
# File 'pipes/cfn_pipe.rb', line 1230 def initialize(dimension_name:, dimension_value:, dimension_value_type:) @dimension_name = dimension_name Jsii::Type.check_type(@dimension_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dimensionName") @dimension_value = dimension_value Jsii::Type.check_type(@dimension_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dimensionValue") @dimension_value_type = dimension_value_type Jsii::Type.check_type(@dimension_value_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dimensionValueType") end |
Instance Attribute Details
#dimension_name ⇒ String (readonly)
The metadata attributes of the time series.
For example, the name and Availability Zone of an Amazon EC2 instance or the name of the manufacturer of a wind turbine are dimensions.
1245 1246 1247 |
# File 'pipes/cfn_pipe.rb', line 1245 def dimension_name @dimension_name end |
#dimension_value ⇒ String (readonly)
Dynamic path to the dimension value in the source event.
1250 1251 1252 |
# File 'pipes/cfn_pipe.rb', line 1250 def dimension_value @dimension_value end |
#dimension_value_type ⇒ String (readonly)
The data type of the dimension for the time-series data.
1255 1256 1257 |
# File 'pipes/cfn_pipe.rb', line 1255 def dimension_value_type @dimension_value_type end |
Class Method Details
.jsii_properties ⇒ Object
1257 1258 1259 1260 1261 1262 1263 |
# File 'pipes/cfn_pipe.rb', line 1257 def self.jsii_properties { :dimension_name => "dimensionName", :dimension_value => "dimensionValue", :dimension_value_type => "dimensionValueType", } end |
Instance Method Details
#to_jsii ⇒ Object
1265 1266 1267 1268 1269 1270 1271 1272 1273 |
# File 'pipes/cfn_pipe.rb', line 1265 def to_jsii result = {} result.merge!({ "dimensionName" => @dimension_name, "dimensionValue" => @dimension_value, "dimensionValueType" => @dimension_value_type, }) result.compact end |