interface CfnDatastoreProps
| Language | Type name | 
|---|---|
  .NET | Amazon.CDK.AWS.IoTAnalytics.CfnDatastoreProps | 
  Java | software.amazon.awscdk.services.iotanalytics.CfnDatastoreProps | 
  Python | aws_cdk.aws_iotanalytics.CfnDatastoreProps | 
  TypeScript  | @aws-cdk/aws-iotanalytics » CfnDatastoreProps | 
Properties for defining a CfnDatastore.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as iotanalytics from '@aws-cdk/aws-iotanalytics';
declare const jsonConfiguration: any;
declare const serviceManagedS3: any;
const cfnDatastoreProps: iotanalytics.CfnDatastoreProps = {
  datastoreName: 'datastoreName',
  datastorePartitions: {
    partitions: [{
      partition: {
        attributeName: 'attributeName',
      },
      timestampPartition: {
        attributeName: 'attributeName',
        // the properties below are optional
        timestampFormat: 'timestampFormat',
      },
    }],
  },
  datastoreStorage: {
    customerManagedS3: {
      bucket: 'bucket',
      roleArn: 'roleArn',
      // the properties below are optional
      keyPrefix: 'keyPrefix',
    },
    iotSiteWiseMultiLayerStorage: {
      customerManagedS3Storage: {
        bucket: 'bucket',
        // the properties below are optional
        keyPrefix: 'keyPrefix',
      },
    },
    serviceManagedS3: serviceManagedS3,
  },
  fileFormatConfiguration: {
    jsonConfiguration: jsonConfiguration,
    parquetConfiguration: {
      schemaDefinition: {
        columns: [{
          name: 'name',
          type: 'type',
        }],
      },
    },
  },
  retentionPeriod: {
    numberOfDays: 123,
    unlimited: false,
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
Properties
| Name | Type | Description | 
|---|---|---|
| datastore | string | The name of the data store. | 
| datastore | IResolvable | Datastore | Information about the partition dimensions in a data store. | 
| datastore | IResolvable | Datastore | Where data store data is stored. | 
| file | IResolvable | File | Contains the configuration information of file formats. AWS IoT Analytics data stores support JSON and Parquet . | 
| retention | IResolvable | Retention | How long, in days, message data is kept for the data store. | 
| tags? | Cfn[] | Metadata which can be used to manage the data store. | 
datastoreName?
Type:
string
(optional)
The name of the data store.
datastorePartitions?
Type:
IResolvable | Datastore
(optional)
Information about the partition dimensions in a data store.
datastoreStorage?
Type:
IResolvable | Datastore
(optional)
Where data store data is stored.
fileFormatConfiguration?
Type:
IResolvable | File
(optional)
Contains the configuration information of file formats. AWS IoT Analytics data stores support JSON and Parquet .
The default file format is JSON. You can specify only one format.
You can't change the file format after you create the data store.
retentionPeriod?
Type:
IResolvable | Retention
(optional)
How long, in days, message data is kept for the data store.
When customerManagedS3 storage is selected, this parameter is ignored.
tags?
Type:
Cfn[]
(optional)
Metadata which can be used to manage the data store.
For more information, see Tag .

 .NET
 Java
 Python
 TypeScript