interface PartitionKeyProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Timestream.Mixins.CfnTablePropsMixin.PartitionKeyProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awstimestream/mixins#CfnTablePropsMixin_PartitionKeyProperty |
Java | software.amazon.awscdk.mixins.preview.services.timestream.mixins.CfnTablePropsMixin.PartitionKeyProperty |
Python | aws_cdk.mixins_preview.aws_timestream.mixins.CfnTablePropsMixin.PartitionKeyProperty |
TypeScript | @aws-cdk/mixins-preview » aws_timestream » mixins » CfnTablePropsMixin » PartitionKeyProperty |
An attribute used in partitioning data in a table.
A dimension key partitions data using the values of the dimension specified by the dimension-name as partition key, while a measure key partitions data using measure names (values of the 'measure_name' column).
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as timestream_mixins } from '@aws-cdk/mixins-preview/aws-timestream';
const partitionKeyProperty: timestream_mixins.CfnTablePropsMixin.PartitionKeyProperty = {
enforcementInRecord: 'enforcementInRecord',
name: 'name',
type: 'type',
};
Properties
| Name | Type | Description |
|---|---|---|
| enforcement | string | The level of enforcement for the specification of a dimension key in ingested records. |
| name? | string | The name of the attribute used for a dimension key. |
| type? | string | The type of the partition key. |
enforcementInRecord?
Type:
string
(optional)
The level of enforcement for the specification of a dimension key in ingested records.
Options are REQUIRED (dimension key must be specified) and OPTIONAL (dimension key does not have to be specified).
name?
Type:
string
(optional)
The name of the attribute used for a dimension key.
type?
Type:
string
(optional)
The type of the partition key.
Options are DIMENSION (dimension key) and MEASURE (measure key).

.NET
Go
Java
Python
TypeScript