public final class StaticAttributeTags extends Object
StaticAttributeTag. These tags can be used to mark your attributes as primary or
secondary keys in your StaticTableSchema definitions.| Modifier and Type | Method and Description |
|---|---|
static StaticAttributeTag |
primaryPartitionKey()
Marks an attribute as being the primary partition key of the table it participates in.
|
static StaticAttributeTag |
primarySortKey()
Marks an attribute as being the primary sort key of the table it participates in.
|
static StaticAttributeTag |
secondaryPartitionKey(Collection<String> indexNames)
Marks an attribute as being a partition key for multiple secondary indices.
|
static StaticAttributeTag |
secondaryPartitionKey(String indexName)
Marks an attribute as being a partition key for a secondary index.
|
static StaticAttributeTag |
secondarySortKey(Collection<String> indexNames)
Marks an attribute as being a sort key for multiple secondary indices.
|
static StaticAttributeTag |
secondarySortKey(String indexName)
Marks an attribute as being a sort key for a secondary index.
|
static StaticAttributeTag |
updateBehavior(UpdateBehavior updateBehavior)
Specifies the behavior when this attribute is updated as part of an 'update' operation such as UpdateItem.
|
public static StaticAttributeTag primaryPartitionKey()
public static StaticAttributeTag primarySortKey()
public static StaticAttributeTag secondaryPartitionKey(String indexName)
indexName - The name of the index this key participates in.public static StaticAttributeTag secondaryPartitionKey(Collection<String> indexNames)
indexNames - The names of the indices this key participates in.public static StaticAttributeTag secondarySortKey(String indexName)
indexName - The name of the index this key participates in.public static StaticAttributeTag secondarySortKey(Collection<String> indexNames)
indexNames - The names of the indices this key participates in.public static StaticAttributeTag updateBehavior(UpdateBehavior updateBehavior)
UpdateBehavior for details on the different behaviors supported and the default
behavior.updateBehavior - The UpdateBehavior to be applied to this attributeCopyright © 2021. All rights reserved.