Skip to content
v2.278.0

DatastorePartitionProperty Struct ​

A single dimension to partition a data store.

The dimension must be an AttributePartition or a TimestampPartition .

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',
  },
};
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_partition_property = 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.*;

DatastorePartitionProperty datastorePartitionProperty = DatastorePartitionProperty.builder()
        .partition(PartitionProperty.builder()
                .attributeName("attributeName")
                .build())
        .timestampPartition(TimestampPartitionProperty.builder()
                .attributeName("attributeName")

                // the properties below are optional
                .timestampFormat("timestampFormat")
                .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 datastorePartitionProperty = 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"

datastorePartitionProperty := &DatastorePartitionProperty{
	Partition: &PartitionProperty{
		AttributeName: jsii.String("attributeName"),
	},
	TimestampPartition: &TimestampPartitionProperty{
		AttributeName: jsii.String("attributeName"),

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

Properties ​

partitionoptionalIResolvable | CfnDatastore.PartitionPropertypartitionoptionaltyping.Union[IResolvable, PartitionProperty]partitionoptionalIResolvablePartitionoptionalIResolvablePartitionoptionalinterface{} #
A partition dimension defined by an attribute.
timestampPartitionoptionalIResolvable | CfnDatastore.TimestampPartitionPropertytimestamp_partitionoptionaltyping.Union[IResolvable, TimestampPartitionProperty]timestampPartitionoptionalIResolvableTimestampPartitionoptionalIResolvableTimestampPartitionoptionalinterface{} #
A partition dimension defined by a timestamp attribute.