Description Usage Arguments Value References Examples
Put an item into a Dynamo DB database
1 2 3 4 |
table |
A character string specifying the table name, or an object of class “aws_dynamodb_table”. |
item |
A list of key-value pairs. |
condition |
Optionally, a “ConditionExpression” that determines whether the item is added. This can prevent overwriting. See User Guide: Condition Expressions. |
return_value |
A character string specifying whether to return previous values of the item. |
... |
Additional arguments passed to |
A list.
API Guide: PutItem API Guide: UpdateItem
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
tab <- create_table(
table = "Music",
attributes = list(Artist = "S"),
primary_key = "Artist"
)
# put item
put_item("Music", list(Artist = "No One You Know", SongTitle = "Call Me Today"))
# cleanup
delete_table(tab)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.