@studyportals/sp-r2d2
Version:
A framework that contains various components used when developing projects that will be deployed via AWS λ.
18 lines (17 loc) • 523 B
TypeScript
/**
* Provides the necessary functionality used to interact with SQS.
*/
export interface ISQSAdapter {
/**
* Sends a message to the queue, containing the given data.
*
* @param data The message's data.
*/
sendDataMessage(data: any): Promise<void>;
/**
* Sends a message to the queue, containing the given data and a messageGroupId.
*
* @param data The message's data.
*/
sendGroupedDataMessage(data: any, messageGroupId: string): Promise<void>;
}