Class CfnTablePropsMixin.SchemaProperty
A Schema specifies the expected data model of the table.
Implements
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.Timestream.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnTablePropsMixin.SchemaProperty : CfnTablePropsMixin.ISchemaProperty
Syntax (vb)
Public Class CfnTablePropsMixin.SchemaProperty Implements CfnTablePropsMixin.ISchemaProperty
Remarks
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.Mixins.Preview.AWS.Timestream.Mixins;
var schemaProperty = new SchemaProperty {
CompositePartitionKey = new [] { new PartitionKeyProperty {
EnforcementInRecord = "enforcementInRecord",
Name = "name",
Type = "type"
} }
};
Synopsis
Constructors
| SchemaProperty() | A Schema specifies the expected data model of the table. |
Properties
| CompositePartitionKey | A non-empty list of partition keys defining the attributes used to partition the table data. |
Constructors
SchemaProperty()
A Schema specifies the expected data model of the table.
public SchemaProperty()
Remarks
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.Mixins.Preview.AWS.Timestream.Mixins;
var schemaProperty = new SchemaProperty {
CompositePartitionKey = new [] { new PartitionKeyProperty {
EnforcementInRecord = "enforcementInRecord",
Name = "name",
Type = "type"
} }
};
Properties
CompositePartitionKey
A non-empty list of partition keys defining the attributes used to partition the table data.
public object? CompositePartitionKey { get; set; }
Property Value
Remarks
The order of the list determines the partition hierarchy. The name and type of each partition key as well as the partition key order cannot be changed after the table is created. However, the enforcement level of each partition key can be changed.
Type union: either IResolvable or (either IResolvable or CfnTablePropsMixin.IPartitionKeyProperty)[]