Skip to content

Commit 7a6ad31

Browse files
Merge pull request #7 from quizizz/chore/remove-listQueues-dependency
Chore/remove list queues dependency
2 parents b61fd6b + 3e0e0e3 commit 7a6ad31

File tree

4 files changed

+51
-156
lines changed

4 files changed

+51
-156
lines changed

lib/index.d.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,15 @@ export default class SQS {
1313
log(message: string, data?: Record<string, any>): void;
1414
success(message: string, data?: Record<string, any>): void;
1515
error(err: Error, data?: Record<string, any>): void;
16-
private processQueueUrls;
17-
private listQueuesRecursively;
18-
init(queueNamePrefix?: string): Promise<SQS>;
16+
/**
17+
* Initializes the SQS client with the provided region and account ID.
18+
*
19+
* @param {string} [region] - The AWS region to set for the SQS client.
20+
* @param {string} [accountId] - The AWS account ID to set for the SQS client.
21+
* @returns {Promise<SQS>} A promise that resolves to the initialized SQS client.
22+
* @throws Will throw an error if the initialization fails.
23+
*/
24+
init(region?: string, accountId?: string): Promise<SQS>;
1925
/**
2026
* Create a new queue
2127
* @param {String} name

0 commit comments

Comments
 (0)