Class CfnScheduledQueryPropsMixin.TimestreamConfigurationProperty
Configuration to write data into Timestream database and table.
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.Timestream.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnScheduledQueryPropsMixin.TimestreamConfigurationProperty : CfnScheduledQueryPropsMixin.ITimestreamConfigurationProperty
Syntax (vb)
Public Class CfnScheduledQueryPropsMixin.TimestreamConfigurationProperty Implements CfnScheduledQueryPropsMixin.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.Mixins.Preview.AWS.Timestream.Mixins;
var timestreamConfigurationProperty = new TimestreamConfigurationProperty {
DatabaseName = "databaseName",
DimensionMappings = new [] { new DimensionMappingProperty {
DimensionValueType = "dimensionValueType",
Name = "name"
} },
MeasureNameColumn = "measureNameColumn",
MixedMeasureMappings = new [] { new MixedMeasureMappingProperty {
MeasureName = "measureName",
MeasureValueType = "measureValueType",
MultiMeasureAttributeMappings = new [] { new MultiMeasureAttributeMappingProperty {
MeasureValueType = "measureValueType",
SourceColumn = "sourceColumn",
TargetMultiMeasureAttributeName = "targetMultiMeasureAttributeName"
} },
SourceColumn = "sourceColumn",
TargetMeasureName = "targetMeasureName"
} },
MultiMeasureMappings = new MultiMeasureMappingsProperty {
MultiMeasureAttributeMappings = new [] { new MultiMeasureAttributeMappingProperty {
MeasureValueType = "measureValueType",
SourceColumn = "sourceColumn",
TargetMultiMeasureAttributeName = "targetMultiMeasureAttributeName"
} },
TargetMultiMeasureName = "targetMultiMeasureName"
},
TableName = "tableName",
TimeColumn = "timeColumn"
};
Synopsis
Constructors
| TimestreamConfigurationProperty() | Configuration to write data into Timestream database and table. |
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. |
Constructors
TimestreamConfigurationProperty()
Configuration to write data into Timestream database and table.
public TimestreamConfigurationProperty()
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.Mixins.Preview.AWS.Timestream.Mixins;
var timestreamConfigurationProperty = new TimestreamConfigurationProperty {
DatabaseName = "databaseName",
DimensionMappings = new [] { new DimensionMappingProperty {
DimensionValueType = "dimensionValueType",
Name = "name"
} },
MeasureNameColumn = "measureNameColumn",
MixedMeasureMappings = new [] { new MixedMeasureMappingProperty {
MeasureName = "measureName",
MeasureValueType = "measureValueType",
MultiMeasureAttributeMappings = new [] { new MultiMeasureAttributeMappingProperty {
MeasureValueType = "measureValueType",
SourceColumn = "sourceColumn",
TargetMultiMeasureAttributeName = "targetMultiMeasureAttributeName"
} },
SourceColumn = "sourceColumn",
TargetMeasureName = "targetMeasureName"
} },
MultiMeasureMappings = new MultiMeasureMappingsProperty {
MultiMeasureAttributeMappings = new [] { new MultiMeasureAttributeMappingProperty {
MeasureValueType = "measureValueType",
SourceColumn = "sourceColumn",
TargetMultiMeasureAttributeName = "targetMultiMeasureAttributeName"
} },
TargetMultiMeasureName = "targetMultiMeasureName"
},
TableName = "tableName",
TimeColumn = "timeColumn"
};
Properties
DatabaseName
Name of Timestream database to which the query result will be written.
public string? DatabaseName { get; set; }
Property Value
Remarks
DimensionMappings
This is to allow mapping column(s) from the query result to the dimension in the destination table.
public object? DimensionMappings { get; set; }
Property Value
Remarks
Type union: either IResolvable or (either IResolvable or CfnScheduledQueryPropsMixin.IDimensionMappingProperty)[]
MeasureNameColumn
Name of the measure column.
public string? MeasureNameColumn { get; set; }
Property Value
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.
public object? MixedMeasureMappings { get; set; }
Property Value
Remarks
Type union: either IResolvable or (either IResolvable or CfnScheduledQueryPropsMixin.IMixedMeasureMappingProperty)[]
MultiMeasureMappings
Multi-measure mappings.
public object? MultiMeasureMappings { get; set; }
Property Value
Remarks
Type union: either IResolvable or CfnScheduledQueryPropsMixin.IMultiMeasureMappingsProperty
TableName
Name of Timestream table that the query result will be written to.
public string? TableName { get; set; }
Property Value
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.
public string? TimeColumn { get; set; }