Class SchemaOptions
Represents the table schema attributes.
Inheritance
System.Object
SchemaOptions
Implements
Namespace: Amazon.CDK.AWS.DynamoDB
Assembly: Amazon.CDK.AWS.DynamoDB.dll
Syntax (csharp)
public class SchemaOptions : Object, ISchemaOptions
Syntax (vb)
Public Class SchemaOptions
Inherits Object
Implements ISchemaOptions
Remarks
ExampleMetadata: infused
Examples
Table table;
var schema = table.Schema();
var partitionKey = schema.PartitionKey;
var sortKey = schema.SortKey;
Synopsis
Constructors
SchemaOptions() |
Properties
PartitionKey | Partition key attribute definition. |
SortKey | Sort key attribute definition. |
Constructors
SchemaOptions()
public SchemaOptions()
Properties
PartitionKey
Partition key attribute definition.
public IAttribute PartitionKey { get; set; }
Property Value
SortKey
Sort key attribute definition.
public IAttribute SortKey { get; set; }
Property Value
Remarks
Default: no sort key