I am trying to send an SQSMessage that is consumed from a SQSEvent.Records list explicitly to a DLQ. I understand that I can send it to the queue like any normal queue as long as the queueClient is pointing the DLQ.
The part I am having trouble with is that the SendMessageRequest object (which the queueClient publishes) only has a parameter for the string messageBody. I however have an SQSMessage object and would like to persist all the metadata as well. I feel if I just use the Body property of the SQSMessage object, all the metadata will be lost? (MessageId, EventSource, MessageAttributes) etc