Interface CfnScheduledQuery.ITimestreamConfigurationProperty
Configuration to write data into Timestream database and table.
Namespace: Amazon.CDK.AWS.Timestream
Assembly: Amazon.CDK.AWS.Timestream.dll
Syntax (csharp)
public interface ITimestreamConfigurationProperty
Syntax (vb)
Public Interface ITimestreamConfigurationProperty
Remarks
This configuration allows the user to map the query result select columns into the destination table columns.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Timestream;
var timestreamConfigurationProperty = new TimestreamConfigurationProperty {
DatabaseName = "databaseName",
DimensionMappings = new [] { new DimensionMappingProperty {
DimensionValueType = "dimensionValueType",
Name = "name"
} },
TableName = "tableName",
TimeColumn = "timeColumn",
// the properties below are optional
MeasureNameColumn = "measureNameColumn",
MixedMeasureMappings = new [] { new MixedMeasureMappingProperty {
MeasureValueType = "measureValueType",
// the properties below are optional
MeasureName = "measureName",
MultiMeasureAttributeMappings = new [] { new MultiMeasureAttributeMappingProperty {
MeasureValueType = "measureValueType",
SourceColumn = "sourceColumn",
// the properties below are optional
TargetMultiMeasureAttributeName = "targetMultiMeasureAttributeName"
} },
SourceColumn = "sourceColumn",
TargetMeasureName = "targetMeasureName"
} },
MultiMeasureMappings = new MultiMeasureMappingsProperty {
MultiMeasureAttributeMappings = new [] { new MultiMeasureAttributeMappingProperty {
MeasureValueType = "measureValueType",
SourceColumn = "sourceColumn",
// the properties below are optional
TargetMultiMeasureAttributeName = "targetMultiMeasureAttributeName"
} },
// the properties below are optional
TargetMultiMeasureName = "targetMultiMeasureName"
}
};
Synopsis
Properties
DatabaseName | Name of Timestream database to which the query result will be written. |
DimensionMappings | This is to allow mapping column(s) from the query result to the dimension in the destination table. |
MeasureNameColumn | Name of the measure column. |
MixedMeasureMappings | Specifies how to map measures to multi-measure records. |
MultiMeasureMappings | Multi-measure mappings. |
TableName | Name of Timestream table that the query result will be written to. |
TimeColumn | Column from query result that should be used as the time column in destination table. |
Properties
DatabaseName
Name of Timestream database to which the query result will be written.
string DatabaseName { get; }
Property Value
System.String
Remarks
DimensionMappings
This is to allow mapping column(s) from the query result to the dimension in the destination table.
object DimensionMappings { get; }
Property Value
System.Object
Remarks
MeasureNameColumn
Name of the measure column.
virtual string MeasureNameColumn { get; }
Property Value
System.String
Remarks
Also see MultiMeasureMappings
and MixedMeasureMappings
for how measure name properties on those relate to MeasureNameColumn
.
MixedMeasureMappings
Specifies how to map measures to multi-measure records.
virtual object MixedMeasureMappings { get; }
Property Value
System.Object
Remarks
MultiMeasureMappings
Multi-measure mappings.
virtual object MultiMeasureMappings { get; }
Property Value
System.Object
Remarks
TableName
Name of Timestream table that the query result will be written to.
string TableName { get; }
Property Value
System.String
Remarks
The table should be within the same database that is provided in Timestream configuration.
TimeColumn
Column from query result that should be used as the time column in destination table.
string TimeColumn { get; }
Property Value
System.String