billstclair/elm-dynamodb/2.4.0

NOTE: the latest version is 2.5.0

DynamoDB.Types

Types for DynamoDB module

Types

type alias TableName =
String

The name of a DynamoDB table.

type Key
= SimpleKey ( String, AttributeValue )
| CompositeKey
( String, AttributeValue )
( String, AttributeValue )

A key for a database item.

type alias Item =
Dict String AttributeValue

An item in a database.

= BinaryValue String
| BoolValue Bool
| BinarySetValue (List String)
| ListValue (List AttributeValue)
| MapValue (Dict String AttributeValue)
| NumberValue Float
| NumberSetValue (List Float)
| NullValue
| StringValue String
| StringSetValue (List String)
type Error
= HttpError Error
| AWSError AWSAppError
| DecodeError String

Errors returned from S3 operations

HttpError is from the standard Elm Http module.

AWSError is from the AWS.Http module.

DecodeError denotes a Decoder error in parsing DynamoDB account info.

type alias Account =
{ name : String
, region : Maybe String
, accessKey : String
, secretKey : String
, tableName : TableName
}

Information about a DynamoDB account

Utilities

emptyAccount : Account

An empty DynamoDB.Account.

This belongs in the DynamoDB module. Move when adding this to that.