Skip to content

Commit

Permalink
Another sqs reference
Browse files Browse the repository at this point in the history
  • Loading branch information
biffgaut committed Feb 17, 2023
1 parent 1826fe3 commit c9b1e7e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,15 @@ export class SqsToLambda extends Construct {
});

// Setup the queue
[this.sqsQueue] = defaults.buildQueue(this, 'queue', {
const buildQueueResponse = defaults.buildQueue(this, 'queue', {
existingQueueObj: props.existingQueueObj,
queueProps: props.queueProps,
deadLetterQueue: this.deadLetterQueue,
enableEncryptionWithCustomerManagedKey: props.enableEncryptionWithCustomerManagedKey,
encryptionKey: props.encryptionKey,
encryptionKeyProps: props.encryptionKeyProps
});
this.sqsQueue = buildQueueResponse.queue;

// Setup the event source mapping
this.lambdaFunction.addEventSource(new SqsEventSource(this.sqsQueue, props.sqsEventSourceProps));
Expand Down

0 comments on commit c9b1e7e

Please sign in to comment.