Skip to content

Commit

Permalink
Merge pull request #7 from quizizz/chore/remove-listQueues-dependency
Browse files Browse the repository at this point in the history
Chore/remove list queues dependency
  • Loading branch information
akshit-sawhney authored Sep 24, 2024
2 parents b61fd6b + 3e0e0e3 commit 7a6ad31
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 156 deletions.
12 changes: 9 additions & 3 deletions lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,15 @@ export default class SQS {
log(message: string, data?: Record<string, any>): void;
success(message: string, data?: Record<string, any>): void;
error(err: Error, data?: Record<string, any>): void;
private processQueueUrls;
private listQueuesRecursively;
init(queueNamePrefix?: string): Promise<SQS>;
/**
* Initializes the SQS client with the provided region and account ID.
*
* @param {string} [region] - The AWS region to set for the SQS client.
* @param {string} [accountId] - The AWS account ID to set for the SQS client.
* @returns {Promise<SQS>} A promise that resolves to the initialized SQS client.
* @throws Will throw an error if the initialization fails.
*/
init(region?: string, accountId?: string): Promise<SQS>;
/**
* Create a new queue
* @param {String} name
Expand Down
Loading

0 comments on commit 7a6ad31

Please sign in to comment.