import { _MessageAttributeValue, _UnmarshalledMessageAttributeValue } from "./_MessageAttributeValue"; /** *

An Amazon SQS message.

*/ export interface _Message { /** *

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

*/ MessageId?: string; /** *

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.

*/ ReceiptHandle?: string; /** *

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

*/ MD5OfBody?: string; /** *

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

*/ Body?: string; /** *

A map of the attributes requested in ReceiveMessage to their respective values. Supported attributes:

ApproximateFirstReceiveTimestamp and SentTimestamp are each returned as an integer representing the epoch time in milliseconds.

*/ Attributes?: { [key in "SenderId" | "SentTimestamp" | "ApproximateReceiveCount" | "ApproximateFirstReceiveTimestamp" | "SequenceNumber" | "MessageDeduplicationId" | "MessageGroupId" | string]: string; } | Iterable<["SenderId" | "SentTimestamp" | "ApproximateReceiveCount" | "ApproximateFirstReceiveTimestamp" | "SequenceNumber" | "MessageDeduplicationId" | "MessageGroupId" | string, string]>; /** *

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.

*/ MD5OfMessageAttributes?: string; /** *

Each message attribute consists of a Name, Type, and Value. For more information, see Amazon SQS Message Attributes in the Amazon Simple Queue Service Developer Guide.

*/ MessageAttributes?: { [key: string]: _MessageAttributeValue; } | Iterable<[string, _MessageAttributeValue]>; } export interface _UnmarshalledMessage extends _Message { /** *

A map of the attributes requested in ReceiveMessage to their respective values. Supported attributes:

ApproximateFirstReceiveTimestamp and SentTimestamp are each returned as an integer representing the epoch time in milliseconds.

*/ Attributes?: { [key in "SenderId" | "SentTimestamp" | "ApproximateReceiveCount" | "ApproximateFirstReceiveTimestamp" | "SequenceNumber" | "MessageDeduplicationId" | "MessageGroupId" | string]: string; }; /** *

Each message attribute consists of a Name, Type, and Value. For more information, see Amazon SQS Message Attributes in the Amazon Simple Queue Service Developer Guide.

*/ MessageAttributes?: { [key: string]: _UnmarshalledMessageAttributeValue; }; }