# MixedMeasureMappingProperty

MixedMeasureMappings are mappings that can be used to ingest data into a mixture of narrow and multi measures in the derived table.

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## 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 mixedMeasureMappingProperty: timestream.CfnScheduledQuery.MixedMeasureMappingProperty = {
  measureValueType: 'measureValueType',

  // the properties below are optional
  measureName: 'measureName',
  multiMeasureAttributeMappings: [{
    measureValueType: 'measureValueType',
    sourceColumn: 'sourceColumn',

    // the properties below are optional
    targetMultiMeasureAttributeName: 'targetMultiMeasureAttributeName',
  }],
  sourceColumn: 'sourceColumn',
  targetMeasureName: 'targetMeasureName',
};
```

## Properties

- `measureName`: string — Refers to the value of measure_name in a result row.

  This field is required if MeasureNameColumn is provided.

- `measureValueType`: string (required) — Type of the value that is to be read from sourceColumn.

  If the mapping is for MULTI, use MeasureValueType.MULTI.

- `multiMeasureAttributeMappings`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnScheduledQuery.MultiMeasureAttributeMappingProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_timestream.CfnScheduledQuery.MultiMeasureAttributeMappingProperty.html)[] — Required when measureValueType is MULTI.

  Attribute mappings for MULTI value measures.

- `sourceColumn`: string — This field refers to the source column from which measure-value is to be read for result materialization.

- `targetMeasureName`: string — Target measure name to be used.

  If not provided, the target measure name by default would be measure-name if provided, or sourceColumn otherwise.
