DynamoDB Event Configurations¶
The Dynamodb event will automatically handle many common things done when eventing off a DynamoDB stream. Developers then have the ability to further extend that functionality with custom middleware. Below is a full list of all the configurations available and examples of their use.
Example
Don't like reading documentation? Then look at our examples which can be deploy in 1 command into your AWS account!
Configuration Options¶
option | type | required | default | description |
---|---|---|---|---|
before |
func | no | null | a custom function to be ran before your records are pulled |
dataClass |
class | no | null | a custom class that will be passed instead of the records object |
globalLogger |
bool | no | false | will assign the ALC logger to the global variable globalLogger |
operations |
array | no | ['create', 'update', 'delete'] | will only run if record was created from the listed operation |
operationError |
bool | no | false | will raise exception if operation of record is not from listed operations |
requiredBody |
str or obj | no | null | will validate body of record against this schema |
schemaPath |
str | no | null | file path pointing to the location of the openapi.yml file |
validationError |
bool | no | false | will raise exception if validation of record fails |
Example: DynamoDB Configuration Options¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
|