Skip to content
v2.278.0

PipeTargetTimestreamParametersProperty Struct ​

The parameters for using a Timestream for LiveAnalytics table as a target.

Example ​

ts
// 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',
};
python
# 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"
)
java
// 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();
csharp
// 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"
};
go
// 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 #
Map source data to dimensions in the target Timestream for LiveAnalytics table.
epochTimeUnitoptionalstringepoch_time_unitoptionalstrepochTimeUnitoptionalStringEpochTimeUnitoptionalstringEpochTimeUnitoptional*string #
The granularity of the time units used. Default is `MILLISECONDS` .

Required if TimeFieldType is specified as EPOCH .

multiMeasureMappingsoptionalIResolvable | IResolvable | CfnPipe.MultiMeasureMappingProperty[]multi_measure_mappingsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, MultiMeasureMappingProperty]]]multiMeasureMappingsoptionalIResolvableMultiMeasureMappingsoptionalIResolvableMultiMeasureMappingsoptionalinterface{} #
Maps multiple measures from the source event to the same record in the specified Timestream for LiveAnalytics table.
singleMeasureMappingsoptionalIResolvable | IResolvable | CfnPipe.SingleMeasureMappingProperty[]single_measure_mappingsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, SingleMeasureMappingProperty]]]singleMeasureMappingsoptionalIResolvableSingleMeasureMappingsoptionalIResolvableSingleMeasureMappingsoptionalinterface{} #
Mappings of single source data fields to individual records in the specified Timestream for LiveAnalytics table.
timeFieldTypeoptionalstringtime_field_typeoptionalstrtimeFieldTypeoptionalStringTimeFieldTypeoptionalstringTimeFieldTypeoptional*string #
The type of time value used.

The default is EPOCH .

timestampFormatoptionalstringtimestamp_formatoptionalstrtimestampFormatoptionalStringTimestampFormatoptionalstringTimestampFormatoptional*string #
How to format the timestamps. For example, `yyyy-MM-dd'T'HH:mm:ss'Z'` .

Required if TimeFieldType is specified as TIMESTAMP_FORMAT .

timeValuestringtime_valuestrtimeValueStringTimeValuestringTimeValue*string required #
Dynamic path to the source data field that represents the time value for your data.
versionValuestringversion_valuestrversionValueStringVersionValuestringVersionValue*string required #
64 bit version value or source data field that represents the version value for your data.
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 .

Version must be 1 or greater, or you will receive a ValidationException error.