Interface ExtendedMessage

Extended message type for producer with additional S3-specific fields

interface ExtendedMessage {
    body: any;
    id: string;
    deduplicationId?: string;
    delaySeconds?: number;
    groupId?: string;
    messageAttributes?: { [key: string]: MessageAttributeValue };
}

Hierarchy

  • Message
    • ExtendedMessage

Properties

body: any

The message body can be any serializable object If the serialized message exceeds sizeThreshold, it will be stored in S3

id: string

An identifier for the message. This must be unique within the batch of messages.

deduplicationId?: string

This parameter applies only to FIFO (first-in-first-out) queues. The token used for deduplication of messages within a 5-minute minimum deduplication interval. If a message with a particular id is sent successfully, subsequent messages with the same id are accepted successfully but aren't delivered.

delaySeconds?: number

The length of time, in seconds, for which to delay a specific message. Valid values: 0 to 900. Maximum: 15 minutes.

groupId?: string

This parameter applies only to FIFO (first-in-first-out) queues. When set messages that belong to the same message group are processed in a FIFO manner

messageAttributes?: { [key: string]: MessageAttributeValue }

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