AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
LocalIndex (Default)
Add-DDBIndexSchema-IndexName <String>-Schema <TableSchema>-RangeKeyName <String>-RangeKeyDataType <ScalarAttributeType>-ProjectionType <ProjectionType>-NonKeyAttribute <String[]>GlobalIndex
Add-DDBIndexSchema-IndexName <String>-Schema <TableSchema>-RangeKeyName <String>-RangeKeyDataType <ScalarAttributeType>-ProjectionType <ProjectionType>-NonKeyAttribute <String[]>-Global <SwitchParameter>-HashKeyName <String>-HashKeyDataType <ScalarAttributeType>-ReadCapacity <Int64>-WriteCapacity <Int64>
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | True |
Position? | 1 |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | True (LocalIndex) |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | True (LocalIndex) |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | True |
Position? | Named |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
$schema | Add-DDBIndexSchema -IndexName "LastPostIndex" -RangeKeyName "LastPostDateTime" -RangeKeyDataType "S" -ProjectionType "keys_only"
$schema = New-DDBTableSchema
AttributeSchema KeySchema LocalSecondaryIndexSchema
--------------- --------- -------------------------
{LastPostDateTime} {} {LastPostIndex}Creates an empty TableSchema object and adds a new local secondary index definition to it before writing the TableSchema object to the pipeline.
New-DDBTableSchema | Add-DDBIndexSchema -IndexName "LastPostIndex" -RangeKeyName "LastPostDateTime" -RangeKeyDataType "S" -ProjectionType "keys_only"
AttributeSchema KeySchema LocalSecondaryIndexSchema
--------------- --------- -------------------------
{LastPostDateTime} {} {LastPostIndex}Adds a new local secondary index definition to the supplied TableSchema object before writing the TableSchema object back to the pipeline. The TableSchema object can also be supplied using the -Schema parameter.
AWS Tools for PowerShell: 2.x.y.z