Documentation ¶
Overview ¶
Package awsl provides helpful functions to work with AWS Lambda.
https://github.com/thepkg/awsl
* **FromDynamoDBMap** - converts data from AWS Lambda Event for DynamoDB to regular map (from `map[string]events.DynamoDBAttributeValue` to `map[string]interface{}`):
func main() { lambda.Start(Handler) } func Handler(event events.DynamoDBEvent) { for _, record := range event.Records { rec := FromDynamoDBMap(record.Change.NewImage) // rec contains map[string]interface{} so it's easier to work with data! } }
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromDynamoDBMap ¶
func FromDynamoDBMap(record map[string]events.DynamoDBAttributeValue) map[string]interface{}
FromDynamoDBMap generates regular map out of events.DynamoDBAttributeValue map.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.