github.com/Foodji/aws-lambda-go@v1.20.2/events/sqs.go (about) 1 // Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 3 package events 4 5 type SQSEvent struct { 6 Records []SQSMessage `json:"Records"` 7 } 8 9 type SQSMessage struct { 10 MessageId string `json:"messageId"` 11 ReceiptHandle string `json:"receiptHandle"` 12 Body string `json:"body"` 13 Md5OfBody string `json:"md5OfBody"` 14 Md5OfMessageAttributes string `json:"md5OfMessageAttributes"` 15 Attributes map[string]string `json:"attributes"` 16 MessageAttributes map[string]SQSMessageAttribute `json:"messageAttributes"` 17 EventSourceARN string `json:"eventSourceARN"` 18 EventSource string `json:"eventSource"` 19 AWSRegion string `json:"awsRegion"` 20 } 21 22 type SQSMessageAttribute struct { 23 StringValue *string `json:"stringValue,omitempty"` 24 BinaryValue []byte `json:"binaryValue,omitempty"` 25 StringListValues []string `json:"stringListValues"` 26 BinaryListValues [][]byte `json:"binaryListValues"` 27 DataType string `json:"dataType"` 28 }