Message
import type { Message } from "https://aws-api.deno.dev/v0.3/services/sqs.ts?docs=full";
An Amazon SQS message.
interface Message {
Attributes: [key in MessageSystemAttributeName]: string | null | undefined;
Body?: string | null;
MD5OfBody?: string | null;
MD5OfMessageAttributes?: string | null;
MessageAttributes: {};
[key: string]: MessageAttributeValue | null | undefined;
MessageId?: string | null;
ReceiptHandle?: string | null;
}§Properties
§
Attributes: [key in MessageSystemAttributeName]: string | null | undefined
[src]A map of the attributes requested in "ReceiveMessage"
to their respective values.
Supported attributes:
-
ApproximateReceiveCount
-
ApproximateFirstReceiveTimestamp
-
MessageDeduplicationId
-
MessageGroupId
-
SenderId
-
SentTimestamp
-
SequenceNumber
ApproximateFirstReceiveTimestamp
and SentTimestamp
are each returned as an integer representing the epoch time in milliseconds.
§
MessageAttributes: {}
[src][key: string]: MessageAttributeValue | null | undefined;
Each message attribute consists of a Name
, Type
, and Value
.
For more information, see Amazon SQS message attributes in the Amazon SQS Developer Guide.