Interface CfnScheduledQuery.TimestreamConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnScheduledQuery.TimestreamConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnScheduledQuery
@Stability(Stable)
public static interface CfnScheduledQuery.TimestreamConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
Configuration to write data into Timestream database and table.
This configuration allows the user to map the query result select columns into the destination table columns.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.timestream.*; TimestreamConfigurationProperty timestreamConfigurationProperty = TimestreamConfigurationProperty.builder() .databaseName("databaseName") .dimensionMappings(List.of(DimensionMappingProperty.builder() .dimensionValueType("dimensionValueType") .name("name") .build())) .tableName("tableName") .timeColumn("timeColumn") // the properties below are optional .measureNameColumn("measureNameColumn") .mixedMeasureMappings(List.of(MixedMeasureMappingProperty.builder() .measureValueType("measureValueType") // the properties below are optional .measureName("measureName") .multiMeasureAttributeMappings(List.of(MultiMeasureAttributeMappingProperty.builder() .measureValueType("measureValueType") .sourceColumn("sourceColumn") // the properties below are optional .targetMultiMeasureAttributeName("targetMultiMeasureAttributeName") .build())) .sourceColumn("sourceColumn") .targetMeasureName("targetMeasureName") .build())) .multiMeasureMappings(MultiMeasureMappingsProperty.builder() .multiMeasureAttributeMappings(List.of(MultiMeasureAttributeMappingProperty.builder() .measureValueType("measureValueType") .sourceColumn("sourceColumn") // the properties below are optional .targetMultiMeasureAttributeName("targetMultiMeasureAttributeName") .build())) // the properties below are optional .targetMultiMeasureName("targetMultiMeasureName") .build()) .build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCfnScheduledQuery.TimestreamConfigurationProperty
static final class
An implementation forCfnScheduledQuery.TimestreamConfigurationProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Name of Timestream database to which the query result will be written.This is to allow mapping column(s) from the query result to the dimension in the destination table.default String
Name of the measure column.default Object
Specifies how to map measures to multi-measure records.default Object
Multi-measure mappings.Name of Timestream table that the query result will be written to.Column from query result that should be used as the time column in destination table.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDatabaseName
Name of Timestream database to which the query result will be written.- See Also:
-
getDimensionMappings
This is to allow mapping column(s) from the query result to the dimension in the destination table.- See Also:
-
getTableName
Name of Timestream table that the query result will be written to.The table should be within the same database that is provided in Timestream configuration.
- See Also:
-
getTimeColumn
Column from query result that should be used as the time column in destination table.Column type for this should be TIMESTAMP.
- See Also:
-
getMeasureNameColumn
Name of the measure column.Also see
MultiMeasureMappings
andMixedMeasureMappings
for how measure name properties on those relate toMeasureNameColumn
.- See Also:
-
getMixedMeasureMappings
Specifies how to map measures to multi-measure records.- See Also:
-
getMultiMeasureMappings
Multi-measure mappings.- See Also:
-
builder
-