Skip to content
v2.278.0

MultiMeasureMappingsProperty Struct ​

Only one of MixedMeasureMappings or MultiMeasureMappings is to be provided.

MultiMeasureMappings can be used to ingest data as multi measures in the derived table.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_timestream as timestream } from 'aws-cdk-lib';
const multiMeasureMappingsProperty: timestream.CfnScheduledQuery.MultiMeasureMappingsProperty = {
  multiMeasureAttributeMappings: [{
    measureValueType: 'measureValueType',
    sourceColumn: 'sourceColumn',

    // the properties below are optional
    targetMultiMeasureAttributeName: 'targetMultiMeasureAttributeName',
  }],

  // the properties below are optional
  targetMultiMeasureName: 'targetMultiMeasureName',
};
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_timestream as timestream

multi_measure_mappings_property = timestream.CfnScheduledQuery.MultiMeasureMappingsProperty(
    multi_measure_attribute_mappings=[timestream.CfnScheduledQuery.MultiMeasureAttributeMappingProperty(
        measure_value_type="measureValueType",
        source_column="sourceColumn",

        # the properties below are optional
        target_multi_measure_attribute_name="targetMultiMeasureAttributeName"
    )],

    # the properties below are optional
    target_multi_measure_name="targetMultiMeasureName"
)
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.timestream.*;

MultiMeasureMappingsProperty multiMeasureMappingsProperty = 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();
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.Timestream;

var multiMeasureMappingsProperty = new MultiMeasureMappingsProperty {
    MultiMeasureAttributeMappings = new [] { new MultiMeasureAttributeMappingProperty {
        MeasureValueType = "measureValueType",
        SourceColumn = "sourceColumn",

        // the properties below are optional
        TargetMultiMeasureAttributeName = "targetMultiMeasureAttributeName"
    } },

    // the properties below are optional
    TargetMultiMeasureName = "targetMultiMeasureName"
};
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"

multiMeasureMappingsProperty := &MultiMeasureMappingsProperty{
	MultiMeasureAttributeMappings: []interface{}{
		&MultiMeasureAttributeMappingProperty{
			MeasureValueType: jsii.String("measureValueType"),
			SourceColumn: jsii.String("sourceColumn"),

			// the properties below are optional
			TargetMultiMeasureAttributeName: jsii.String("targetMultiMeasureAttributeName"),
		},
	},

	// the properties below are optional
	TargetMultiMeasureName: jsii.String("targetMultiMeasureName"),
}

Properties ​

multiMeasureAttributeMappingsIResolvable | IResolvable | CfnScheduledQuery.MultiMeasureAttributeMappingProperty[]multi_measure_attribute_mappingstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, MultiMeasureAttributeMappingProperty]]]multiMeasureAttributeMappingsIResolvableMultiMeasureAttributeMappingsIResolvableMultiMeasureAttributeMappingsinterface{} required #
Required.

Attribute mappings to be used for mapping query results to ingest data for multi-measure attributes.

targetMultiMeasureNameoptionalstringtarget_multi_measure_nameoptionalstrtargetMultiMeasureNameoptionalStringTargetMultiMeasureNameoptionalstringTargetMultiMeasureNameoptional*string #
The name of the target multi-measure name in the derived table.

This input is required when measureNameColumn is not provided. If MeasureNameColumn is provided, then value from that column will be used as multi-measure name.