This library contains case classes for the Dynamo tables dr2-files and dr2-ingest-lock table along with implicit DynamoFormat
instances.
These will carry out the following validation:
This stores information about the folders, assets and files of an ingest.
These fields must always be present
- id (UUID)
- batchId (String)
- type (Type) - Type is a custom Trait defined in this library.
- name (String)
These fields must be a number field in Dynamo and must parse into a numeric value in Scala.
- fileSize (Long)
- sortOrder (Int)
All fields which are prefixed with id_
will be read into a list of Identifier
case classes.
All identifier case classes will be written to id_
fields.
Their identifierName will be prefixed with id_ and used as the field name
The formatter will report all errors with a particular Dynamo row.
This holds a lock with an information object ID, a batch id and the message to be processed.
These fields must always be present
- ioId (UUID)
- batchId (String)
- message (String)