PipeTargetTimestreamParametersProperty Struct
The parameters for using a Timestream for LiveAnalytics table as a target.
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_pipes as pipes } from 'aws-cdk-lib';
const pipeTargetTimestreamParametersProperty: pipes.CfnPipe.PipeTargetTimestreamParametersProperty = {
dimensionMappings: [{
dimensionName: 'dimensionName',
dimensionValue: 'dimensionValue',
dimensionValueType: 'dimensionValueType',
}],
timeValue: 'timeValue',
versionValue: 'versionValue',
// the properties below are optional
epochTimeUnit: 'epochTimeUnit',
multiMeasureMappings: [{
multiMeasureAttributeMappings: [{
measureValue: 'measureValue',
measureValueType: 'measureValueType',
multiMeasureAttributeName: 'multiMeasureAttributeName',
}],
multiMeasureName: 'multiMeasureName',
}],
singleMeasureMappings: [{
measureName: 'measureName',
measureValue: 'measureValue',
measureValueType: 'measureValueType',
}],
timeFieldType: 'timeFieldType',
timestampFormat: 'timestampFormat',
};
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_pipes as pipes
pipe_target_timestream_parameters_property = pipes.CfnPipe.PipeTargetTimestreamParametersProperty(
dimension_mappings=[pipes.CfnPipe.DimensionMappingProperty(
dimension_name="dimensionName",
dimension_value="dimensionValue",
dimension_value_type="dimensionValueType"
)],
time_value="timeValue",
version_value="versionValue",
# the properties below are optional
epoch_time_unit="epochTimeUnit",
multi_measure_mappings=[pipes.CfnPipe.MultiMeasureMappingProperty(
multi_measure_attribute_mappings=[pipes.CfnPipe.MultiMeasureAttributeMappingProperty(
measure_value="measureValue",
measure_value_type="measureValueType",
multi_measure_attribute_name="multiMeasureAttributeName"
)],
multi_measure_name="multiMeasureName"
)],
single_measure_mappings=[pipes.CfnPipe.SingleMeasureMappingProperty(
measure_name="measureName",
measure_value="measureValue",
measure_value_type="measureValueType"
)],
time_field_type="timeFieldType",
timestamp_format="timestampFormat"
)
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.pipes.*;
PipeTargetTimestreamParametersProperty pipeTargetTimestreamParametersProperty = PipeTargetTimestreamParametersProperty.builder()
.dimensionMappings(List.of(DimensionMappingProperty.builder()
.dimensionName("dimensionName")
.dimensionValue("dimensionValue")
.dimensionValueType("dimensionValueType")
.build()))
.timeValue("timeValue")
.versionValue("versionValue")
// the properties below are optional
.epochTimeUnit("epochTimeUnit")
.multiMeasureMappings(List.of(MultiMeasureMappingProperty.builder()
.multiMeasureAttributeMappings(List.of(MultiMeasureAttributeMappingProperty.builder()
.measureValue("measureValue")
.measureValueType("measureValueType")
.multiMeasureAttributeName("multiMeasureAttributeName")
.build()))
.multiMeasureName("multiMeasureName")
.build()))
.singleMeasureMappings(List.of(SingleMeasureMappingProperty.builder()
.measureName("measureName")
.measureValue("measureValue")
.measureValueType("measureValueType")
.build()))
.timeFieldType("timeFieldType")
.timestampFormat("timestampFormat")
.build();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Pipes;
var pipeTargetTimestreamParametersProperty = new PipeTargetTimestreamParametersProperty {
DimensionMappings = new [] { new DimensionMappingProperty {
DimensionName = "dimensionName",
DimensionValue = "dimensionValue",
DimensionValueType = "dimensionValueType"
} },
TimeValue = "timeValue",
VersionValue = "versionValue",
// the properties below are optional
EpochTimeUnit = "epochTimeUnit",
MultiMeasureMappings = new [] { new MultiMeasureMappingProperty {
MultiMeasureAttributeMappings = new [] { new MultiMeasureAttributeMappingProperty {
MeasureValue = "measureValue",
MeasureValueType = "measureValueType",
MultiMeasureAttributeName = "multiMeasureAttributeName"
} },
MultiMeasureName = "multiMeasureName"
} },
SingleMeasureMappings = new [] { new SingleMeasureMappingProperty {
MeasureName = "measureName",
MeasureValue = "measureValue",
MeasureValueType = "measureValueType"
} },
TimeFieldType = "timeFieldType",
TimestampFormat = "timestampFormat"
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
pipeTargetTimestreamParametersProperty := &PipeTargetTimestreamParametersProperty{
DimensionMappings: []interface{}{
&DimensionMappingProperty{
DimensionName: jsii.String("dimensionName"),
DimensionValue: jsii.String("dimensionValue"),
DimensionValueType: jsii.String("dimensionValueType"),
},
},
TimeValue: jsii.String("timeValue"),
VersionValue: jsii.String("versionValue"),
// the properties below are optional
EpochTimeUnit: jsii.String("epochTimeUnit"),
MultiMeasureMappings: []interface{}{
&MultiMeasureMappingProperty{
MultiMeasureAttributeMappings: []interface{}{
&MultiMeasureAttributeMappingProperty{
MeasureValue: jsii.String("measureValue"),
MeasureValueType: jsii.String("measureValueType"),
MultiMeasureAttributeName: jsii.String("multiMeasureAttributeName"),
},
},
MultiMeasureName: jsii.String("multiMeasureName"),
},
},
SingleMeasureMappings: []interface{}{
&SingleMeasureMappingProperty{
MeasureName: jsii.String("measureName"),
MeasureValue: jsii.String("measureValue"),
MeasureValueType: jsii.String("measureValueType"),
},
},
TimeFieldType: jsii.String("timeFieldType"),
TimestampFormat: jsii.String("timestampFormat"),
}
Properties
dimensionMappingsIResolvable | IResolvable | CfnPipe.DimensionMappingProperty[]dimension_mappingstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, DimensionMappingProperty]]]dimensionMappingsIResolvableDimensionMappingsIResolvableDimensionMappingsinterface{} required #For more information, see Amazon Timestream for LiveAnalytics concepts
epochTimeUnitoptionalstringepoch_time_unitoptionalstrepochTimeUnitoptionalStringEpochTimeUnitoptionalstringEpochTimeUnitoptional*string #Required if TimeFieldType is specified as EPOCH .
multiMeasureMappingsoptionalIResolvable | IResolvable | CfnPipe.multi_measure_mappingsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, MultiMeasureMappingProperty]]]multiMeasureMappingsoptionalIResolvableMultiMeasureMappingsoptionalIResolvableMultiMeasureMappingsoptionalinterface{} #singleMeasureMappingsoptionalIResolvable | IResolvable | CfnPipe.single_measure_mappingsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, SingleMeasureMappingProperty]]]singleMeasureMappingsoptionalIResolvableSingleMeasureMappingsoptionalIResolvableSingleMeasureMappingsoptionalinterface{} #timeFieldTypeoptionalstringtime_field_typeoptionalstrtimeFieldTypeoptionalStringTimeFieldTypeoptionalstringTimeFieldTypeoptional*string #The default is EPOCH .
timestampFormatoptionalstringtimestamp_formatoptionalstrtimestampFormatoptionalStringTimestampFormatoptionalstringTimestampFormatoptional*string #Required if TimeFieldType is specified as TIMESTAMP_FORMAT .
versionValuestringversion_valuestrversionValueStringVersionValuestringVersionValue*string required #notes
Write requests with a higher version number will update the existing measure values of the record and version. In cases where the measure value is the same, the version will still be updated.
Default value is 1.
Timestream for LiveAnalytics does not support updating partial measure values in a record.
Write requests for duplicate data with a higher version number will update the existing measure value and version. In cases where the measure value is the same, Version will still be updated. Default value is 1 .
Versionmust be1or greater, or you will receive aValidationExceptionerror.