I'm defining an SQS queue and looking to set the R...
# sst
r
I'm defining an SQS queue and looking to set the Redrive Policy but can't find it as an option on the Queue construct or as a member of the sqsQueue property. However, if I import the CDK CfnQueue type directly, it's there. Am I right in thinking the
Queue.sqsQueue
property should expose the same properties as are available when doing
new CfnQueue() ?
t
CfnQueue is one layer below AWS CDK queue
Let me dig a bit
r
I see, cheers
t
CDK queue has this code in it
Copy code
const redrivePolicy = props.deadLetterQueue
      ? {
        deadLetterTargetArn: props.deadLetterQueue.queue.queueArn,
        maxReceiveCount: props.deadLetterQueue.maxReceiveCount,
      }
      : undefined;
r
ah, I see
t
Is maxReceiveCount what you're trying to change?
r
Yes
t
ah cool then you should be able to change it with sqsQueue.deadLetterQueue.maxReceiveCount
r
Perfect, thanks for digging