@aws-sdk/client-sqs 3.315.0 → 3.319.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/SQS.js +24 -280
- package/dist-es/SQS.js +24 -280
- package/dist-types/SQS.d.ts +95 -466
- package/dist-types/ts3.4/SQS.d.ts +2 -1
- package/package.json +8 -8
package/dist-cjs/SQS.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SQS = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const AddPermissionCommand_1 = require("./commands/AddPermissionCommand");
|
|
5
6
|
const ChangeMessageVisibilityBatchCommand_1 = require("./commands/ChangeMessageVisibilityBatchCommand");
|
|
6
7
|
const ChangeMessageVisibilityCommand_1 = require("./commands/ChangeMessageVisibilityCommand");
|
|
@@ -22,286 +23,29 @@ const SetQueueAttributesCommand_1 = require("./commands/SetQueueAttributesComman
|
|
|
22
23
|
const TagQueueCommand_1 = require("./commands/TagQueueCommand");
|
|
23
24
|
const UntagQueueCommand_1 = require("./commands/UntagQueueCommand");
|
|
24
25
|
const SQSClient_1 = require("./SQSClient");
|
|
26
|
+
const commands = {
|
|
27
|
+
AddPermissionCommand: AddPermissionCommand_1.AddPermissionCommand,
|
|
28
|
+
ChangeMessageVisibilityCommand: ChangeMessageVisibilityCommand_1.ChangeMessageVisibilityCommand,
|
|
29
|
+
ChangeMessageVisibilityBatchCommand: ChangeMessageVisibilityBatchCommand_1.ChangeMessageVisibilityBatchCommand,
|
|
30
|
+
CreateQueueCommand: CreateQueueCommand_1.CreateQueueCommand,
|
|
31
|
+
DeleteMessageCommand: DeleteMessageCommand_1.DeleteMessageCommand,
|
|
32
|
+
DeleteMessageBatchCommand: DeleteMessageBatchCommand_1.DeleteMessageBatchCommand,
|
|
33
|
+
DeleteQueueCommand: DeleteQueueCommand_1.DeleteQueueCommand,
|
|
34
|
+
GetQueueAttributesCommand: GetQueueAttributesCommand_1.GetQueueAttributesCommand,
|
|
35
|
+
GetQueueUrlCommand: GetQueueUrlCommand_1.GetQueueUrlCommand,
|
|
36
|
+
ListDeadLetterSourceQueuesCommand: ListDeadLetterSourceQueuesCommand_1.ListDeadLetterSourceQueuesCommand,
|
|
37
|
+
ListQueuesCommand: ListQueuesCommand_1.ListQueuesCommand,
|
|
38
|
+
ListQueueTagsCommand: ListQueueTagsCommand_1.ListQueueTagsCommand,
|
|
39
|
+
PurgeQueueCommand: PurgeQueueCommand_1.PurgeQueueCommand,
|
|
40
|
+
ReceiveMessageCommand: ReceiveMessageCommand_1.ReceiveMessageCommand,
|
|
41
|
+
RemovePermissionCommand: RemovePermissionCommand_1.RemovePermissionCommand,
|
|
42
|
+
SendMessageCommand: SendMessageCommand_1.SendMessageCommand,
|
|
43
|
+
SendMessageBatchCommand: SendMessageBatchCommand_1.SendMessageBatchCommand,
|
|
44
|
+
SetQueueAttributesCommand: SetQueueAttributesCommand_1.SetQueueAttributesCommand,
|
|
45
|
+
TagQueueCommand: TagQueueCommand_1.TagQueueCommand,
|
|
46
|
+
UntagQueueCommand: UntagQueueCommand_1.UntagQueueCommand,
|
|
47
|
+
};
|
|
25
48
|
class SQS extends SQSClient_1.SQSClient {
|
|
26
|
-
addPermission(args, optionsOrCb, cb) {
|
|
27
|
-
const command = new AddPermissionCommand_1.AddPermissionCommand(args);
|
|
28
|
-
if (typeof optionsOrCb === "function") {
|
|
29
|
-
this.send(command, optionsOrCb);
|
|
30
|
-
}
|
|
31
|
-
else if (typeof cb === "function") {
|
|
32
|
-
if (typeof optionsOrCb !== "object")
|
|
33
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
34
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
return this.send(command, optionsOrCb);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
changeMessageVisibility(args, optionsOrCb, cb) {
|
|
41
|
-
const command = new ChangeMessageVisibilityCommand_1.ChangeMessageVisibilityCommand(args);
|
|
42
|
-
if (typeof optionsOrCb === "function") {
|
|
43
|
-
this.send(command, optionsOrCb);
|
|
44
|
-
}
|
|
45
|
-
else if (typeof cb === "function") {
|
|
46
|
-
if (typeof optionsOrCb !== "object")
|
|
47
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
48
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
return this.send(command, optionsOrCb);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
changeMessageVisibilityBatch(args, optionsOrCb, cb) {
|
|
55
|
-
const command = new ChangeMessageVisibilityBatchCommand_1.ChangeMessageVisibilityBatchCommand(args);
|
|
56
|
-
if (typeof optionsOrCb === "function") {
|
|
57
|
-
this.send(command, optionsOrCb);
|
|
58
|
-
}
|
|
59
|
-
else if (typeof cb === "function") {
|
|
60
|
-
if (typeof optionsOrCb !== "object")
|
|
61
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
62
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
63
|
-
}
|
|
64
|
-
else {
|
|
65
|
-
return this.send(command, optionsOrCb);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
createQueue(args, optionsOrCb, cb) {
|
|
69
|
-
const command = new CreateQueueCommand_1.CreateQueueCommand(args);
|
|
70
|
-
if (typeof optionsOrCb === "function") {
|
|
71
|
-
this.send(command, optionsOrCb);
|
|
72
|
-
}
|
|
73
|
-
else if (typeof cb === "function") {
|
|
74
|
-
if (typeof optionsOrCb !== "object")
|
|
75
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
76
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
77
|
-
}
|
|
78
|
-
else {
|
|
79
|
-
return this.send(command, optionsOrCb);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
deleteMessage(args, optionsOrCb, cb) {
|
|
83
|
-
const command = new DeleteMessageCommand_1.DeleteMessageCommand(args);
|
|
84
|
-
if (typeof optionsOrCb === "function") {
|
|
85
|
-
this.send(command, optionsOrCb);
|
|
86
|
-
}
|
|
87
|
-
else if (typeof cb === "function") {
|
|
88
|
-
if (typeof optionsOrCb !== "object")
|
|
89
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
90
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
91
|
-
}
|
|
92
|
-
else {
|
|
93
|
-
return this.send(command, optionsOrCb);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
deleteMessageBatch(args, optionsOrCb, cb) {
|
|
97
|
-
const command = new DeleteMessageBatchCommand_1.DeleteMessageBatchCommand(args);
|
|
98
|
-
if (typeof optionsOrCb === "function") {
|
|
99
|
-
this.send(command, optionsOrCb);
|
|
100
|
-
}
|
|
101
|
-
else if (typeof cb === "function") {
|
|
102
|
-
if (typeof optionsOrCb !== "object")
|
|
103
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
104
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
105
|
-
}
|
|
106
|
-
else {
|
|
107
|
-
return this.send(command, optionsOrCb);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
deleteQueue(args, optionsOrCb, cb) {
|
|
111
|
-
const command = new DeleteQueueCommand_1.DeleteQueueCommand(args);
|
|
112
|
-
if (typeof optionsOrCb === "function") {
|
|
113
|
-
this.send(command, optionsOrCb);
|
|
114
|
-
}
|
|
115
|
-
else if (typeof cb === "function") {
|
|
116
|
-
if (typeof optionsOrCb !== "object")
|
|
117
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
118
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
119
|
-
}
|
|
120
|
-
else {
|
|
121
|
-
return this.send(command, optionsOrCb);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
getQueueAttributes(args, optionsOrCb, cb) {
|
|
125
|
-
const command = new GetQueueAttributesCommand_1.GetQueueAttributesCommand(args);
|
|
126
|
-
if (typeof optionsOrCb === "function") {
|
|
127
|
-
this.send(command, optionsOrCb);
|
|
128
|
-
}
|
|
129
|
-
else if (typeof cb === "function") {
|
|
130
|
-
if (typeof optionsOrCb !== "object")
|
|
131
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
132
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
133
|
-
}
|
|
134
|
-
else {
|
|
135
|
-
return this.send(command, optionsOrCb);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
getQueueUrl(args, optionsOrCb, cb) {
|
|
139
|
-
const command = new GetQueueUrlCommand_1.GetQueueUrlCommand(args);
|
|
140
|
-
if (typeof optionsOrCb === "function") {
|
|
141
|
-
this.send(command, optionsOrCb);
|
|
142
|
-
}
|
|
143
|
-
else if (typeof cb === "function") {
|
|
144
|
-
if (typeof optionsOrCb !== "object")
|
|
145
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
146
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
147
|
-
}
|
|
148
|
-
else {
|
|
149
|
-
return this.send(command, optionsOrCb);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
listDeadLetterSourceQueues(args, optionsOrCb, cb) {
|
|
153
|
-
const command = new ListDeadLetterSourceQueuesCommand_1.ListDeadLetterSourceQueuesCommand(args);
|
|
154
|
-
if (typeof optionsOrCb === "function") {
|
|
155
|
-
this.send(command, optionsOrCb);
|
|
156
|
-
}
|
|
157
|
-
else if (typeof cb === "function") {
|
|
158
|
-
if (typeof optionsOrCb !== "object")
|
|
159
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
160
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
161
|
-
}
|
|
162
|
-
else {
|
|
163
|
-
return this.send(command, optionsOrCb);
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
listQueues(args, optionsOrCb, cb) {
|
|
167
|
-
const command = new ListQueuesCommand_1.ListQueuesCommand(args);
|
|
168
|
-
if (typeof optionsOrCb === "function") {
|
|
169
|
-
this.send(command, optionsOrCb);
|
|
170
|
-
}
|
|
171
|
-
else if (typeof cb === "function") {
|
|
172
|
-
if (typeof optionsOrCb !== "object")
|
|
173
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
174
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
175
|
-
}
|
|
176
|
-
else {
|
|
177
|
-
return this.send(command, optionsOrCb);
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
listQueueTags(args, optionsOrCb, cb) {
|
|
181
|
-
const command = new ListQueueTagsCommand_1.ListQueueTagsCommand(args);
|
|
182
|
-
if (typeof optionsOrCb === "function") {
|
|
183
|
-
this.send(command, optionsOrCb);
|
|
184
|
-
}
|
|
185
|
-
else if (typeof cb === "function") {
|
|
186
|
-
if (typeof optionsOrCb !== "object")
|
|
187
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
188
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
189
|
-
}
|
|
190
|
-
else {
|
|
191
|
-
return this.send(command, optionsOrCb);
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
purgeQueue(args, optionsOrCb, cb) {
|
|
195
|
-
const command = new PurgeQueueCommand_1.PurgeQueueCommand(args);
|
|
196
|
-
if (typeof optionsOrCb === "function") {
|
|
197
|
-
this.send(command, optionsOrCb);
|
|
198
|
-
}
|
|
199
|
-
else if (typeof cb === "function") {
|
|
200
|
-
if (typeof optionsOrCb !== "object")
|
|
201
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
202
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
203
|
-
}
|
|
204
|
-
else {
|
|
205
|
-
return this.send(command, optionsOrCb);
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
receiveMessage(args, optionsOrCb, cb) {
|
|
209
|
-
const command = new ReceiveMessageCommand_1.ReceiveMessageCommand(args);
|
|
210
|
-
if (typeof optionsOrCb === "function") {
|
|
211
|
-
this.send(command, optionsOrCb);
|
|
212
|
-
}
|
|
213
|
-
else if (typeof cb === "function") {
|
|
214
|
-
if (typeof optionsOrCb !== "object")
|
|
215
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
216
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
217
|
-
}
|
|
218
|
-
else {
|
|
219
|
-
return this.send(command, optionsOrCb);
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
removePermission(args, optionsOrCb, cb) {
|
|
223
|
-
const command = new RemovePermissionCommand_1.RemovePermissionCommand(args);
|
|
224
|
-
if (typeof optionsOrCb === "function") {
|
|
225
|
-
this.send(command, optionsOrCb);
|
|
226
|
-
}
|
|
227
|
-
else if (typeof cb === "function") {
|
|
228
|
-
if (typeof optionsOrCb !== "object")
|
|
229
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
230
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
231
|
-
}
|
|
232
|
-
else {
|
|
233
|
-
return this.send(command, optionsOrCb);
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
sendMessage(args, optionsOrCb, cb) {
|
|
237
|
-
const command = new SendMessageCommand_1.SendMessageCommand(args);
|
|
238
|
-
if (typeof optionsOrCb === "function") {
|
|
239
|
-
this.send(command, optionsOrCb);
|
|
240
|
-
}
|
|
241
|
-
else if (typeof cb === "function") {
|
|
242
|
-
if (typeof optionsOrCb !== "object")
|
|
243
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
244
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
245
|
-
}
|
|
246
|
-
else {
|
|
247
|
-
return this.send(command, optionsOrCb);
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
sendMessageBatch(args, optionsOrCb, cb) {
|
|
251
|
-
const command = new SendMessageBatchCommand_1.SendMessageBatchCommand(args);
|
|
252
|
-
if (typeof optionsOrCb === "function") {
|
|
253
|
-
this.send(command, optionsOrCb);
|
|
254
|
-
}
|
|
255
|
-
else if (typeof cb === "function") {
|
|
256
|
-
if (typeof optionsOrCb !== "object")
|
|
257
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
258
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
259
|
-
}
|
|
260
|
-
else {
|
|
261
|
-
return this.send(command, optionsOrCb);
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
setQueueAttributes(args, optionsOrCb, cb) {
|
|
265
|
-
const command = new SetQueueAttributesCommand_1.SetQueueAttributesCommand(args);
|
|
266
|
-
if (typeof optionsOrCb === "function") {
|
|
267
|
-
this.send(command, optionsOrCb);
|
|
268
|
-
}
|
|
269
|
-
else if (typeof cb === "function") {
|
|
270
|
-
if (typeof optionsOrCb !== "object")
|
|
271
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
272
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
273
|
-
}
|
|
274
|
-
else {
|
|
275
|
-
return this.send(command, optionsOrCb);
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
tagQueue(args, optionsOrCb, cb) {
|
|
279
|
-
const command = new TagQueueCommand_1.TagQueueCommand(args);
|
|
280
|
-
if (typeof optionsOrCb === "function") {
|
|
281
|
-
this.send(command, optionsOrCb);
|
|
282
|
-
}
|
|
283
|
-
else if (typeof cb === "function") {
|
|
284
|
-
if (typeof optionsOrCb !== "object")
|
|
285
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
286
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
287
|
-
}
|
|
288
|
-
else {
|
|
289
|
-
return this.send(command, optionsOrCb);
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
untagQueue(args, optionsOrCb, cb) {
|
|
293
|
-
const command = new UntagQueueCommand_1.UntagQueueCommand(args);
|
|
294
|
-
if (typeof optionsOrCb === "function") {
|
|
295
|
-
this.send(command, optionsOrCb);
|
|
296
|
-
}
|
|
297
|
-
else if (typeof cb === "function") {
|
|
298
|
-
if (typeof optionsOrCb !== "object")
|
|
299
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
300
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
301
|
-
}
|
|
302
|
-
else {
|
|
303
|
-
return this.send(command, optionsOrCb);
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
49
|
}
|
|
307
50
|
exports.SQS = SQS;
|
|
51
|
+
(0, smithy_client_1.createAggregatedClient)(commands, SQS);
|
package/dist-es/SQS.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { AddPermissionCommand, } from "./commands/AddPermissionCommand";
|
|
2
3
|
import { ChangeMessageVisibilityBatchCommand, } from "./commands/ChangeMessageVisibilityBatchCommand";
|
|
3
4
|
import { ChangeMessageVisibilityCommand, } from "./commands/ChangeMessageVisibilityCommand";
|
|
@@ -19,285 +20,28 @@ import { SetQueueAttributesCommand, } from "./commands/SetQueueAttributesCommand
|
|
|
19
20
|
import { TagQueueCommand } from "./commands/TagQueueCommand";
|
|
20
21
|
import { UntagQueueCommand } from "./commands/UntagQueueCommand";
|
|
21
22
|
import { SQSClient } from "./SQSClient";
|
|
23
|
+
const commands = {
|
|
24
|
+
AddPermissionCommand,
|
|
25
|
+
ChangeMessageVisibilityCommand,
|
|
26
|
+
ChangeMessageVisibilityBatchCommand,
|
|
27
|
+
CreateQueueCommand,
|
|
28
|
+
DeleteMessageCommand,
|
|
29
|
+
DeleteMessageBatchCommand,
|
|
30
|
+
DeleteQueueCommand,
|
|
31
|
+
GetQueueAttributesCommand,
|
|
32
|
+
GetQueueUrlCommand,
|
|
33
|
+
ListDeadLetterSourceQueuesCommand,
|
|
34
|
+
ListQueuesCommand,
|
|
35
|
+
ListQueueTagsCommand,
|
|
36
|
+
PurgeQueueCommand,
|
|
37
|
+
ReceiveMessageCommand,
|
|
38
|
+
RemovePermissionCommand,
|
|
39
|
+
SendMessageCommand,
|
|
40
|
+
SendMessageBatchCommand,
|
|
41
|
+
SetQueueAttributesCommand,
|
|
42
|
+
TagQueueCommand,
|
|
43
|
+
UntagQueueCommand,
|
|
44
|
+
};
|
|
22
45
|
export class SQS extends SQSClient {
|
|
23
|
-
addPermission(args, optionsOrCb, cb) {
|
|
24
|
-
const command = new AddPermissionCommand(args);
|
|
25
|
-
if (typeof optionsOrCb === "function") {
|
|
26
|
-
this.send(command, optionsOrCb);
|
|
27
|
-
}
|
|
28
|
-
else if (typeof cb === "function") {
|
|
29
|
-
if (typeof optionsOrCb !== "object")
|
|
30
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
31
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
return this.send(command, optionsOrCb);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
changeMessageVisibility(args, optionsOrCb, cb) {
|
|
38
|
-
const command = new ChangeMessageVisibilityCommand(args);
|
|
39
|
-
if (typeof optionsOrCb === "function") {
|
|
40
|
-
this.send(command, optionsOrCb);
|
|
41
|
-
}
|
|
42
|
-
else if (typeof cb === "function") {
|
|
43
|
-
if (typeof optionsOrCb !== "object")
|
|
44
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
45
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
return this.send(command, optionsOrCb);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
changeMessageVisibilityBatch(args, optionsOrCb, cb) {
|
|
52
|
-
const command = new ChangeMessageVisibilityBatchCommand(args);
|
|
53
|
-
if (typeof optionsOrCb === "function") {
|
|
54
|
-
this.send(command, optionsOrCb);
|
|
55
|
-
}
|
|
56
|
-
else if (typeof cb === "function") {
|
|
57
|
-
if (typeof optionsOrCb !== "object")
|
|
58
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
59
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
60
|
-
}
|
|
61
|
-
else {
|
|
62
|
-
return this.send(command, optionsOrCb);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
createQueue(args, optionsOrCb, cb) {
|
|
66
|
-
const command = new CreateQueueCommand(args);
|
|
67
|
-
if (typeof optionsOrCb === "function") {
|
|
68
|
-
this.send(command, optionsOrCb);
|
|
69
|
-
}
|
|
70
|
-
else if (typeof cb === "function") {
|
|
71
|
-
if (typeof optionsOrCb !== "object")
|
|
72
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
73
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
74
|
-
}
|
|
75
|
-
else {
|
|
76
|
-
return this.send(command, optionsOrCb);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
deleteMessage(args, optionsOrCb, cb) {
|
|
80
|
-
const command = new DeleteMessageCommand(args);
|
|
81
|
-
if (typeof optionsOrCb === "function") {
|
|
82
|
-
this.send(command, optionsOrCb);
|
|
83
|
-
}
|
|
84
|
-
else if (typeof cb === "function") {
|
|
85
|
-
if (typeof optionsOrCb !== "object")
|
|
86
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
87
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
88
|
-
}
|
|
89
|
-
else {
|
|
90
|
-
return this.send(command, optionsOrCb);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
deleteMessageBatch(args, optionsOrCb, cb) {
|
|
94
|
-
const command = new DeleteMessageBatchCommand(args);
|
|
95
|
-
if (typeof optionsOrCb === "function") {
|
|
96
|
-
this.send(command, optionsOrCb);
|
|
97
|
-
}
|
|
98
|
-
else if (typeof cb === "function") {
|
|
99
|
-
if (typeof optionsOrCb !== "object")
|
|
100
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
101
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
102
|
-
}
|
|
103
|
-
else {
|
|
104
|
-
return this.send(command, optionsOrCb);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
deleteQueue(args, optionsOrCb, cb) {
|
|
108
|
-
const command = new DeleteQueueCommand(args);
|
|
109
|
-
if (typeof optionsOrCb === "function") {
|
|
110
|
-
this.send(command, optionsOrCb);
|
|
111
|
-
}
|
|
112
|
-
else if (typeof cb === "function") {
|
|
113
|
-
if (typeof optionsOrCb !== "object")
|
|
114
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
115
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
116
|
-
}
|
|
117
|
-
else {
|
|
118
|
-
return this.send(command, optionsOrCb);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
getQueueAttributes(args, optionsOrCb, cb) {
|
|
122
|
-
const command = new GetQueueAttributesCommand(args);
|
|
123
|
-
if (typeof optionsOrCb === "function") {
|
|
124
|
-
this.send(command, optionsOrCb);
|
|
125
|
-
}
|
|
126
|
-
else if (typeof cb === "function") {
|
|
127
|
-
if (typeof optionsOrCb !== "object")
|
|
128
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
129
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
130
|
-
}
|
|
131
|
-
else {
|
|
132
|
-
return this.send(command, optionsOrCb);
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
getQueueUrl(args, optionsOrCb, cb) {
|
|
136
|
-
const command = new GetQueueUrlCommand(args);
|
|
137
|
-
if (typeof optionsOrCb === "function") {
|
|
138
|
-
this.send(command, optionsOrCb);
|
|
139
|
-
}
|
|
140
|
-
else if (typeof cb === "function") {
|
|
141
|
-
if (typeof optionsOrCb !== "object")
|
|
142
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
143
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
144
|
-
}
|
|
145
|
-
else {
|
|
146
|
-
return this.send(command, optionsOrCb);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
listDeadLetterSourceQueues(args, optionsOrCb, cb) {
|
|
150
|
-
const command = new ListDeadLetterSourceQueuesCommand(args);
|
|
151
|
-
if (typeof optionsOrCb === "function") {
|
|
152
|
-
this.send(command, optionsOrCb);
|
|
153
|
-
}
|
|
154
|
-
else if (typeof cb === "function") {
|
|
155
|
-
if (typeof optionsOrCb !== "object")
|
|
156
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
157
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
158
|
-
}
|
|
159
|
-
else {
|
|
160
|
-
return this.send(command, optionsOrCb);
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
listQueues(args, optionsOrCb, cb) {
|
|
164
|
-
const command = new ListQueuesCommand(args);
|
|
165
|
-
if (typeof optionsOrCb === "function") {
|
|
166
|
-
this.send(command, optionsOrCb);
|
|
167
|
-
}
|
|
168
|
-
else if (typeof cb === "function") {
|
|
169
|
-
if (typeof optionsOrCb !== "object")
|
|
170
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
171
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
172
|
-
}
|
|
173
|
-
else {
|
|
174
|
-
return this.send(command, optionsOrCb);
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
listQueueTags(args, optionsOrCb, cb) {
|
|
178
|
-
const command = new ListQueueTagsCommand(args);
|
|
179
|
-
if (typeof optionsOrCb === "function") {
|
|
180
|
-
this.send(command, optionsOrCb);
|
|
181
|
-
}
|
|
182
|
-
else if (typeof cb === "function") {
|
|
183
|
-
if (typeof optionsOrCb !== "object")
|
|
184
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
185
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
186
|
-
}
|
|
187
|
-
else {
|
|
188
|
-
return this.send(command, optionsOrCb);
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
purgeQueue(args, optionsOrCb, cb) {
|
|
192
|
-
const command = new PurgeQueueCommand(args);
|
|
193
|
-
if (typeof optionsOrCb === "function") {
|
|
194
|
-
this.send(command, optionsOrCb);
|
|
195
|
-
}
|
|
196
|
-
else if (typeof cb === "function") {
|
|
197
|
-
if (typeof optionsOrCb !== "object")
|
|
198
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
199
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
200
|
-
}
|
|
201
|
-
else {
|
|
202
|
-
return this.send(command, optionsOrCb);
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
receiveMessage(args, optionsOrCb, cb) {
|
|
206
|
-
const command = new ReceiveMessageCommand(args);
|
|
207
|
-
if (typeof optionsOrCb === "function") {
|
|
208
|
-
this.send(command, optionsOrCb);
|
|
209
|
-
}
|
|
210
|
-
else if (typeof cb === "function") {
|
|
211
|
-
if (typeof optionsOrCb !== "object")
|
|
212
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
213
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
214
|
-
}
|
|
215
|
-
else {
|
|
216
|
-
return this.send(command, optionsOrCb);
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
removePermission(args, optionsOrCb, cb) {
|
|
220
|
-
const command = new RemovePermissionCommand(args);
|
|
221
|
-
if (typeof optionsOrCb === "function") {
|
|
222
|
-
this.send(command, optionsOrCb);
|
|
223
|
-
}
|
|
224
|
-
else if (typeof cb === "function") {
|
|
225
|
-
if (typeof optionsOrCb !== "object")
|
|
226
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
227
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
228
|
-
}
|
|
229
|
-
else {
|
|
230
|
-
return this.send(command, optionsOrCb);
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
sendMessage(args, optionsOrCb, cb) {
|
|
234
|
-
const command = new SendMessageCommand(args);
|
|
235
|
-
if (typeof optionsOrCb === "function") {
|
|
236
|
-
this.send(command, optionsOrCb);
|
|
237
|
-
}
|
|
238
|
-
else if (typeof cb === "function") {
|
|
239
|
-
if (typeof optionsOrCb !== "object")
|
|
240
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
241
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
242
|
-
}
|
|
243
|
-
else {
|
|
244
|
-
return this.send(command, optionsOrCb);
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
sendMessageBatch(args, optionsOrCb, cb) {
|
|
248
|
-
const command = new SendMessageBatchCommand(args);
|
|
249
|
-
if (typeof optionsOrCb === "function") {
|
|
250
|
-
this.send(command, optionsOrCb);
|
|
251
|
-
}
|
|
252
|
-
else if (typeof cb === "function") {
|
|
253
|
-
if (typeof optionsOrCb !== "object")
|
|
254
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
255
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
256
|
-
}
|
|
257
|
-
else {
|
|
258
|
-
return this.send(command, optionsOrCb);
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
setQueueAttributes(args, optionsOrCb, cb) {
|
|
262
|
-
const command = new SetQueueAttributesCommand(args);
|
|
263
|
-
if (typeof optionsOrCb === "function") {
|
|
264
|
-
this.send(command, optionsOrCb);
|
|
265
|
-
}
|
|
266
|
-
else if (typeof cb === "function") {
|
|
267
|
-
if (typeof optionsOrCb !== "object")
|
|
268
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
269
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
270
|
-
}
|
|
271
|
-
else {
|
|
272
|
-
return this.send(command, optionsOrCb);
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
tagQueue(args, optionsOrCb, cb) {
|
|
276
|
-
const command = new TagQueueCommand(args);
|
|
277
|
-
if (typeof optionsOrCb === "function") {
|
|
278
|
-
this.send(command, optionsOrCb);
|
|
279
|
-
}
|
|
280
|
-
else if (typeof cb === "function") {
|
|
281
|
-
if (typeof optionsOrCb !== "object")
|
|
282
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
283
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
284
|
-
}
|
|
285
|
-
else {
|
|
286
|
-
return this.send(command, optionsOrCb);
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
untagQueue(args, optionsOrCb, cb) {
|
|
290
|
-
const command = new UntagQueueCommand(args);
|
|
291
|
-
if (typeof optionsOrCb === "function") {
|
|
292
|
-
this.send(command, optionsOrCb);
|
|
293
|
-
}
|
|
294
|
-
else if (typeof cb === "function") {
|
|
295
|
-
if (typeof optionsOrCb !== "object")
|
|
296
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
297
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
298
|
-
}
|
|
299
|
-
else {
|
|
300
|
-
return this.send(command, optionsOrCb);
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
46
|
}
|
|
47
|
+
createAggregatedClient(commands, SQS);
|