# DatastorePartitionProperty

A single dimension to partition a data store.

The dimension must be an `AttributePartition` or a `TimestampPartition` .

- 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_iotanalytics as iotanalytics } from 'aws-cdk-lib';
const datastorePartitionProperty: iotanalytics.CfnDatastore.DatastorePartitionProperty = {
  partition: {
    attributeName: 'attributeName',
  },
  timestampPartition: {
    attributeName: 'attributeName',

    // the properties below are optional
    timestampFormat: 'timestampFormat',
  },
};
```

## Properties

- `partition`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDatastore.PartitionProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDatastore.PartitionProperty.html) — A partition dimension defined by an attribute.

- `timestampPartition`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDatastore.TimestampPartitionProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDatastore.TimestampPartitionProperty.html) — A partition dimension defined by a timestamp attribute.
