Pure Elm client for the AWS DynamoDB NoSQL database service.
Get an item from a table.
See https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_GetItem.html
Get an item, returning the Http request Metadata.
Put an item into a table. There is no return value.
See https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_PutItem.html
Put an item into a table, returning the Http request Metadata.
Delete an item from a table. There is no return value.
See https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_DeleteItem.html
Delete an item from a table, returning the Http request Metadata.
The return value for scan and scanWithMetadata
Pass lastEvaluatedKey to a subsequent call to scan to get more.
This doesn't include ScannedCount, because that's the same as
Count unless you do filtering, which isn't yet supported.
Scan a table for items.
If Maybe Key isn't Nothing, it's the ExclusiveStartKey.
If Maybe Int isn't Nothing, it's the Limit.
See https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Scan.html
Scan a table for items, returning the Http request Metadata.
If Maybe Key isn't Nothing, it's the ExclusiveStartKey.
If Maybe Int isn't Nothing, it's the Limit.
Specify one item for transactGetItems.
All attributes are returned if returnedAttributeNames is Nothing.
One of the return values from transactGetItems.
Do a bunch of TransactGetItem requests inside a transaction.
Will error if the list has more than 100 elements.
See https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_TransactGetItems.html
Do a bunch of TransactGetItem requests inside a transaction, returning the Http request Metadata.
Will error if the list has more than 100 elements.
One action for the list passed to transactWriteItems.
TransactWriteDelete deletes the attribute with the given key.
TransactWritePut writes (or overwrites) the given item, merging
the key name/value pairs into item, if key is not Nothing.
Do a bunch of TransactWrite requests inside a transaction. There is no return value.
Will error if the list has more than 100 elements.
See https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_TransactWriteItems.html
Do a bunch of TransactWrite requests inside a transaction, returning the Http request Metdata.
Will error if the list has more than 100 elements.
Return the value of an item's string attribute.
If the attribute does not exist or doesn't have a string value, return "".
Return the value of an item's float attribute.
If the attribute does not exist or doesn't have a float value, return NaN.
Round an item's float value to an integer.
If the attribute does not exist or doesn't have a float value, returns
NaN as an integer, which can only be detected via isNan (toFloat n).
Remove the key fields from an Item.
The Item that comes back from getItem or getItemWithMetadata contains the key fields. Sometimes you'd rather not see them there.
Add key fields to an Item.
Read JSON from a URL and turn it into a list of Accounts.
If Nothing is passed for the first arg (the URL), will use the default of "accounts.json".
You're not going to want to store the secret keys in this JSON in plain text anywhere but your development machine. In applications, they will ususally be stored in LocalStorage.
Example JSON:
[{"name": "Dynamo DB",
"region": "us-east-1",
"access-key": "<20-character access key>",
"secret-key": "<40-character secret key>",
"tableName": "<your table name>"
}
]Decode a JSON string encoding a list of Accounts
A Decoder for the Account type.
Encode an account as a JSON value.
Low-level request creator.
Similar toAWS.Http.request, but assumes the HTTP result is JSON and
uses AWS.Http.awsAppErrDecoder as the ErrorDecoder.
Request creator with retained Metadata
Same as makeRequest, but the decoder takes metadata
A request that can be turned into a Task by
DynamoDB.send.ais the type of the successfulTaskresult fromDynamoDB.send.