Commit 075bd54 1 parent bed4dc6 commit 075bd54 Copy full SHA for 075bd54
File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ export class Consumer extends TypedEventEmitter {
86
86
this . sqs =
87
87
options . sqs ||
88
88
new SQSClient ( {
89
+ useQueueUrlAsEndpoint : options . useQueueUrlAsEndpoint ?? true ,
89
90
region : options . region || process . env . AWS_REGION || 'eu-west-1'
90
91
} ) ;
91
92
autoBind ( this ) ;
Original file line number Diff line number Diff line change @@ -76,6 +76,11 @@ export interface ConsumerOptions {
76
76
* @defaultValue process.env.AWS_REGION || `eu-west-1`
77
77
*/
78
78
region ?: string ;
79
+ /**
80
+ * If false uses the QueueUrl hostname as the endpoint.
81
+ * @defaultValue `true`
82
+ */
83
+ useQueueUrlAsEndpoint ?: boolean ;
79
84
/**
80
85
* Time in ms to wait for `handleMessage` to process a message before timing out.
81
86
*
You can’t perform that action at this time.
0 commit comments