Skip to content
v2.278.0

DatastorePartitionsProperty Struct ​

Information about the partition dimensions in a data store.

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 datastorePartitionsProperty: iotanalytics.CfnDatastore.DatastorePartitionsProperty = {
  partitions: [{
    partition: {
      attributeName: 'attributeName',
    },
    timestampPartition: {
      attributeName: 'attributeName',

      // the properties below are optional
      timestampFormat: 'timestampFormat',
    },
  }],
};
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_iotanalytics as iotanalytics

datastore_partitions_property = iotanalytics.CfnDatastore.DatastorePartitionsProperty(
    partitions=[iotanalytics.CfnDatastore.DatastorePartitionProperty(
        partition=iotanalytics.CfnDatastore.PartitionProperty(
            attribute_name="attributeName"
        ),
        timestamp_partition=iotanalytics.CfnDatastore.TimestampPartitionProperty(
            attribute_name="attributeName",

            # the properties below are optional
            timestamp_format="timestampFormat"
        )
    )]
)
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.iotanalytics.*;

DatastorePartitionsProperty datastorePartitionsProperty = DatastorePartitionsProperty.builder()
        .partitions(List.of(DatastorePartitionProperty.builder()
                .partition(PartitionProperty.builder()
                        .attributeName("attributeName")
                        .build())
                .timestampPartition(TimestampPartitionProperty.builder()
                        .attributeName("attributeName")

                        // the properties below are optional
                        .timestampFormat("timestampFormat")
                        .build())
                .build()))
        .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.IoTAnalytics;

var datastorePartitionsProperty = new DatastorePartitionsProperty {
    Partitions = new [] { new DatastorePartitionProperty {
        Partition = new PartitionProperty {
            AttributeName = "attributeName"
        },
        TimestampPartition = new TimestampPartitionProperty {
            AttributeName = "attributeName",

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

datastorePartitionsProperty := &DatastorePartitionsProperty{
	Partitions: []interface{}{
		&DatastorePartitionProperty{
			Partition: &PartitionProperty{
				AttributeName: jsii.String("attributeName"),
			},
			TimestampPartition: &TimestampPartitionProperty{
				AttributeName: jsii.String("attributeName"),

				// the properties below are optional
				TimestampFormat: jsii.String("timestampFormat"),
			},
		},
	},
}

Properties ​

partitionsoptionalIResolvable | IResolvable | CfnDatastore.DatastorePartitionProperty[]partitionsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, DatastorePartitionProperty]]]partitionsoptionalIResolvablePartitionsoptionalIResolvablePartitionsoptionalinterface{} #
A list of partition dimensions in a data store.