Commit 392e921 1 parent c031e1e commit 392e921 Copy full SHA for 392e921
File tree 1 file changed +15
-0
lines changed
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 1
1
import { SQSClient , Message , QueueAttributeName } from '@aws-sdk/client-sqs' ;
2
2
3
+ /**
4
+ * The options for the consumer.
5
+ */
3
6
export interface ConsumerOptions {
4
7
/**
5
8
* The SQS queue URL.
@@ -139,12 +142,18 @@ export interface ConsumerOptions {
139
142
postReceiveMessageCallback ?( ) : Promise < void > ;
140
143
}
141
144
145
+ /**
146
+ * A subset of the ConsumerOptions that can be updated at runtime.
147
+ */
142
148
export type UpdatableOptions =
143
149
| 'visibilityTimeout'
144
150
| 'batchSize'
145
151
| 'waitTimeSeconds'
146
152
| 'pollingWaitTimeMs' ;
147
153
154
+ /**
155
+ * The options for the stop method.
156
+ */
148
157
export interface StopOptions {
149
158
/**
150
159
* Default to `false`, if you want the stop action to also abort requests to SQS
@@ -154,6 +163,9 @@ export interface StopOptions {
154
163
abort ?: boolean ;
155
164
}
156
165
166
+ /**
167
+ * These are the events that the consumer emits.
168
+ */
157
169
export interface Events {
158
170
/**
159
171
* Fired after one batch of items (up to `batchSize`) has been successfully processed.
@@ -212,6 +224,9 @@ export interface Events {
212
224
waiting_for_polling_to_complete_timeout_exceeded : [ ] ;
213
225
}
214
226
227
+ /**
228
+ * The error object that is emitted with error events from AWS.
229
+ */
215
230
export type AWSError = {
216
231
/**
217
232
* Name, eg. ConditionalCheckFailedException
You can’t perform that action at this time.
0 commit comments