Defines TypeScript interfaces for configuring an SQS consumer, including queue options and message handling.
// Source: https://github.com/bbc/sqs-consumer | License: Apache-2.0 | Copyright 2017-present British Broadcasting Corporation
// Provided via justclaw.it.com; keep this notice with the code.
import type {
SQSClient,
Message,
QueueAttributeName,
MessageSystemAttributeName,
} from "@aws-sdk/client-sqs";
/**
* The options for the consumer.
*/
export interface ConsumerOptions {
/**
* The SQS queue URL.
*/
queueUrl: string;
/**
* List of queue attributes to retrieve, see [AWS docs](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sqs/Variable/QueueAttributeName/).
* @defaultvalue `[]`
*/
attributeNames?: QueueAttributeName[];
/**
* List of message attributes to retrieve (i.e. `['name', 'address']`).
* @defaultvalue `[]`
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key