name
as the partition key, because you won't be able to change the name of an object.DynamoDB
.$service-$stage-$table,
for example build-my-prod-events
status
as a Global Secondary Index. For example:serverless.yml
will drop the table.ExpressionAttributeNames
and ExpressionAttributeValues
counter
name
source
url
uuid
value
GetItem
cannot be preformed on a Global Secondary Index
. You can't use IndexName
.If an item that has the same primary key as the new item already exists in the specified table, the new item completely replaces the existing item. You can perform a conditional put operation (add a new item if one with the specified primary key doesn't exist), or replace an existing item if it has certain attribute values. You can return the item's attribute values in the same operation, using theReturnValues
parameter.
ConditionExpression
, and if there is a conflicting.Scan
operation returns one or more items and item attributes by accessing every item in a table or a secondary index. To have DynamoDB return fewer items, you can provide a FilterExpression
operation.
GetItem
. Use Query
or Scan
.
https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/bp-indexes-general.html​