Message

public struct Message : AWSShape

Undocumented

  • Declaration

    Swift

    public static var _members: [AWSShapeMember]
  • 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.

    Declaration

    Swift

    public let attributes: [MessageSystemAttributeName : String]?
  • The message’s contents (not URL-encoded).

    Declaration

    Swift

    public let body: String?
  • An MD5 digest of the non-URL-encoded message body string.

    Declaration

    Swift

    public let mD5OfBody: 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.

    Declaration

    Swift

    public let 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.

    Declaration

    Swift

    public let messageAttributes: [String : MessageAttributeValue]?
  • A unique identifier for the message. A MessageIdis considered unique across all AWS accounts for an extended period of time.

    Declaration

    Swift

    public let 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.

    Declaration

    Swift

    public let receiptHandle: String?
  • Undocumented

    Declaration

    Swift

    public init(attributes: [MessageSystemAttributeName : String]? = nil, body: String? = nil, mD5OfBody: String? = nil, mD5OfMessageAttributes: String? = nil, messageAttributes: [String : MessageAttributeValue]? = nil, messageId: String? = nil, receiptHandle: String? = nil)