Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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.

§
Body?: string | null
[src]

The message's contents (not URL-encoded).

§
MD5OfBody?: string | null
[src]

An MD5 digest of the non-URL-encoded message body string.

§
MD5OfMessageAttributes?: string | null
[src]

An MD5 digest of the non-URL-encoded message attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest. For information about MD5, see RFC1321.

§
MessageAttributes: {
[key: string]: MessageAttributeValue | null | undefined;
}
[src]

Each message attribute consists of a Name, Type, and Value. For more information, see Amazon SQS message attributes in the Amazon SQS Developer Guide.

§
MessageId?: string | null
[src]

A unique identifier for the message. A MessageIdis considered unique across all Amazon Web Services accounts for an extended period of time.

§
ReceiptHandle?: string | null
[src]

An identifier associated with the act of receiving the message. A new receipt handle is returned every time you receive a message. When deleting a message, you provide the last received receipt handle to delete the message.