Interface SchemaOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
GlobalSecondaryIndexProps,TableOptions,TableProps
- All Known Implementing Classes:
GlobalSecondaryIndexProps.Jsii$Proxy,SchemaOptions.Jsii$Proxy,TableOptions.Jsii$Proxy,TableProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-10T13:40:02.492Z")
@Stability(Stable)
public interface SchemaOptions
extends software.amazon.jsii.JsiiSerializable
Represents the table schema attributes.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.dynamodb.*;
SchemaOptions schemaOptions = SchemaOptions.builder()
.partitionKey(Attribute.builder()
.name("name")
.type(AttributeType.BINARY)
.build())
// the properties below are optional
.sortKey(Attribute.builder()
.name("name")
.type(AttributeType.BINARY)
.build())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forSchemaOptionsstatic final classAn implementation forSchemaOptions -
Method Summary
Modifier and TypeMethodDescriptionstatic SchemaOptions.Builderbuilder()Partition key attribute definition.default AttributeSort key attribute definition.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getPartitionKey
Partition key attribute definition. -
getSortKey
Sort key attribute definition.Default: no sort key
-
builder
- Returns:
- a
SchemaOptions.BuilderofSchemaOptions
-