4 DynamoDB (Database)
(require aws/dynamo) | package: aws |
DynamoDB is Amazon’s newer “NoSQL” service.
The intended use of this package is:
Set the dynamo-api-version parameter to a value such as "20120810".
Consult the DynamoDB documentation for the JSON format each operation uses.
Create an equivalent jsexpr?.
Call dynamo-request with the jsexpr? and the operation name (such as "CreateTable").
parameter
(dynamo-endpoint v) → void? v : endpoint?
= (endpoint "dynamodb.us-east-1.amazonaws.com" #f)
parameter
(dynamo-region) → string?
(dynamo-region v) → void? v : string?
= "us-east-1"
parameter
(dynamo-api-version v) → void? v : string?
= "20111205"
procedure
(dynamo-request operation data) → jsexpr?
operation : string? data : jsexpr?
Consult the DynamoDB documentation for each operation. Supply the name of the operation as operation. Supply the jsexpr? equivalent of the documented JSON format as data.
Some example operations:
4.1 DynamoDB old API version 20111205
value
attribute-type/c : (or/c "S" "N" "B")
procedure
(create-table name read-units write-units hash-key-name hash-key-type [ range-key-name range-key-type]) → jsexpr? name : string? read-units : exact-positive-integer? write-units : exact-positive-integer? hash-key-name : string? hash-key-type : attribute-type/c range-key-name : string? = #f range-key-type : attribute-type/c = #f
procedure
(delete-table name) → jsexpr?
name : string?
procedure
(list-tables #:limit limit #:from from) → jsexpr?
limit : #f from : #f
procedure
(describe-table name) → jsexpr?
name : string?
procedure
js : jsexpr?
procedure
js : jsexpr?
procedure
(delete-item js) → jsexpr?
js : jsexpr?
procedure
(update-item js) → jsexpr?
js : jsexpr?
procedure
(batch-get-item js) → jsexpr?
js : jsexpr?
procedure
(batch-write-item js) → jsexpr?
js : jsexpr?
procedure
js : jsexpr?
procedure
js : jsexpr?
procedure
(update-table js) → jsexpr?
js : jsexpr?
NOTE: This function is deprecated; use dynamo-request, instead.