Class CfnTable.PartitionKeyProperty
An attribute used in partitioning data in a table.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Timestream
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class PartitionKeyProperty : Object, CfnTable.IPartitionKeyProperty
Syntax (vb)
Public Class PartitionKeyProperty
Inherits Object
Implements CfnTable.IPartitionKeyProperty
Remarks
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).
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Timestream;
var partitionKeyProperty = new PartitionKeyProperty {
Type = "type",
// the properties below are optional
EnforcementInRecord = "enforcementInRecord",
Name = "name"
};
Synopsis
Constructors
PartitionKeyProperty() |
Properties
EnforcementInRecord | The level of enforcement for the specification of a dimension key in ingested records. |
Name | The name of the attribute used for a dimension key. |
Type | The type of the partition key. |
Constructors
PartitionKeyProperty()
public PartitionKeyProperty()
Properties
EnforcementInRecord
The level of enforcement for the specification of a dimension key in ingested records.
public string EnforcementInRecord { get; set; }
Property Value
System.String
Remarks
Options are REQUIRED (dimension key must be specified) and OPTIONAL (dimension key does not have to be specified).
Name
The name of the attribute used for a dimension key.
public string Name { get; set; }
Property Value
System.String
Remarks
Type
The type of the partition key.
public string Type { get; set; }
Property Value
System.String
Remarks
Options are DIMENSION (dimension key) and MEASURE (measure key).