@Stability(value=Stable)
public static interface CfnScheduledQuery.TimestreamConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnScheduledQuery.TimestreamConfigurationProperty.Builder
A builder for
CfnScheduledQuery.TimestreamConfigurationProperty |
static class |
CfnScheduledQuery.TimestreamConfigurationProperty.Jsii$Proxy
An implementation for
CfnScheduledQuery.TimestreamConfigurationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnScheduledQuery.TimestreamConfigurationProperty.Builder |
builder() |
String |
getDatabaseName()
Name of Timestream database to which the query result will be written.
|
Object |
getDimensionMappings()
This is to allow mapping column(s) from the query result to the dimension in the destination table.
|
default String |
getMeasureNameColumn()
Name of the measure column.
|
default Object |
getMixedMeasureMappings()
Specifies how to map measures to multi-measure records.
|
default Object |
getMultiMeasureMappings()
Multi-measure mappings.
|
String |
getTableName()
Name of Timestream table that the query result will be written to.
|
String |
getTimeColumn()
Column from query result that should be used as the time column in destination table.
|
@Stability(value=Stable) @NotNull String getDatabaseName()
@Stability(value=Stable) @NotNull Object getDimensionMappings()
@Stability(value=Stable) @NotNull String getTableName()
The table should be within the same database that is provided in Timestream configuration.
@Stability(value=Stable) @NotNull String getTimeColumn()
Column type for this should be TIMESTAMP.
@Stability(value=Stable) @Nullable default String getMeasureNameColumn()
@Stability(value=Stable) @Nullable default Object getMixedMeasureMappings()
@Stability(value=Stable) @Nullable default Object getMultiMeasureMappings()
@Stability(value=Stable) static CfnScheduledQuery.TimestreamConfigurationProperty.Builder builder()
Copyright © 2022. All rights reserved.