@tradedal/aws-client-sqs 0.0.0-stage → 0.0.5
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/index.ts +2787 -0
- package/package.json +23 -3
- package/README.md +0 -3
package/index.ts
ADDED
|
@@ -0,0 +1,2787 @@
|
|
|
1
|
+
// Generated from Smithy's official OpenAPI transformation. Do not edit.
|
|
2
|
+
// biome-ignore-all lint/complexity/useRegexLiterals: Preserve Effect's generated regular expressions.
|
|
3
|
+
|
|
4
|
+
import { AwsClient } from "@tradedal/aws-client-core";
|
|
5
|
+
import { awsJsonRpcEmptyOutput } from "@tradedal/aws-client-core/http-operation";
|
|
6
|
+
import type {
|
|
7
|
+
AwsJsonRpcOperation,
|
|
8
|
+
AwsServiceDefinition,
|
|
9
|
+
} from "@tradedal/aws-client-core/model";
|
|
10
|
+
import { Effect, Schema } from "effect";
|
|
11
|
+
import { HttpApi, HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
12
|
+
|
|
13
|
+
export const ChangeMessageVisibilityBatchRequestEntry = Schema.StructWithRest(
|
|
14
|
+
Schema.Struct({
|
|
15
|
+
Id: Schema.String,
|
|
16
|
+
ReceiptHandle: Schema.String,
|
|
17
|
+
VisibilityTimeout: Schema.optionalKey(
|
|
18
|
+
Schema.Number.annotate({ format: "int32" }).check(
|
|
19
|
+
Schema.isInt().annotate({ expected: "an integer" }),
|
|
20
|
+
),
|
|
21
|
+
),
|
|
22
|
+
}),
|
|
23
|
+
[
|
|
24
|
+
Schema.Record(
|
|
25
|
+
Schema.String,
|
|
26
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
27
|
+
),
|
|
28
|
+
],
|
|
29
|
+
).annotate({ identifier: "ChangeMessageVisibilityBatchRequestEntry" });
|
|
30
|
+
|
|
31
|
+
export type ChangeMessageVisibilityBatchRequestEntry =
|
|
32
|
+
typeof ChangeMessageVisibilityBatchRequestEntry.Type;
|
|
33
|
+
|
|
34
|
+
export const ChangeMessageVisibilityBatchResultEntry = Schema.StructWithRest(
|
|
35
|
+
Schema.Struct({ Id: Schema.String }),
|
|
36
|
+
[
|
|
37
|
+
Schema.Record(
|
|
38
|
+
Schema.String,
|
|
39
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
40
|
+
),
|
|
41
|
+
],
|
|
42
|
+
).annotate({ identifier: "ChangeMessageVisibilityBatchResultEntry" });
|
|
43
|
+
|
|
44
|
+
export type ChangeMessageVisibilityBatchResultEntry =
|
|
45
|
+
typeof ChangeMessageVisibilityBatchResultEntry.Type;
|
|
46
|
+
|
|
47
|
+
export const BatchResultErrorEntry = Schema.StructWithRest(
|
|
48
|
+
Schema.Struct({
|
|
49
|
+
Id: Schema.String,
|
|
50
|
+
SenderFault: Schema.Boolean.annotate({ default: false }),
|
|
51
|
+
Code: Schema.String,
|
|
52
|
+
Message: Schema.optionalKey(Schema.String),
|
|
53
|
+
}),
|
|
54
|
+
[
|
|
55
|
+
Schema.Record(
|
|
56
|
+
Schema.String,
|
|
57
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
58
|
+
),
|
|
59
|
+
],
|
|
60
|
+
).annotate({ identifier: "BatchResultErrorEntry" });
|
|
61
|
+
|
|
62
|
+
export type BatchResultErrorEntry = typeof BatchResultErrorEntry.Type;
|
|
63
|
+
|
|
64
|
+
export const QueueAttributeMap = Schema.Record(
|
|
65
|
+
Schema.String,
|
|
66
|
+
Schema.String,
|
|
67
|
+
).check(
|
|
68
|
+
Schema.isPropertyNames(
|
|
69
|
+
Schema.Literals([
|
|
70
|
+
"All",
|
|
71
|
+
"Policy",
|
|
72
|
+
"VisibilityTimeout",
|
|
73
|
+
"MaximumMessageSize",
|
|
74
|
+
"MessageRetentionPeriod",
|
|
75
|
+
"ApproximateNumberOfMessages",
|
|
76
|
+
"ApproximateNumberOfMessagesNotVisible",
|
|
77
|
+
"CreatedTimestamp",
|
|
78
|
+
"LastModifiedTimestamp",
|
|
79
|
+
"QueueArn",
|
|
80
|
+
"ApproximateNumberOfMessagesDelayed",
|
|
81
|
+
"DelaySeconds",
|
|
82
|
+
"ReceiveMessageWaitTimeSeconds",
|
|
83
|
+
"RedrivePolicy",
|
|
84
|
+
"FifoQueue",
|
|
85
|
+
"ContentBasedDeduplication",
|
|
86
|
+
"KmsMasterKeyId",
|
|
87
|
+
"KmsDataKeyReusePeriodSeconds",
|
|
88
|
+
"DeduplicationScope",
|
|
89
|
+
"FifoThroughputLimit",
|
|
90
|
+
"RedriveAllowPolicy",
|
|
91
|
+
"SqsManagedSseEnabled",
|
|
92
|
+
]),
|
|
93
|
+
).annotate({
|
|
94
|
+
expected: "an object with property names matching the schema",
|
|
95
|
+
identifier: "QueueAttributeMap",
|
|
96
|
+
}),
|
|
97
|
+
);
|
|
98
|
+
|
|
99
|
+
export type QueueAttributeMap = typeof QueueAttributeMap.Type;
|
|
100
|
+
|
|
101
|
+
export const TagMap = Schema.Record(Schema.String, Schema.String).check(
|
|
102
|
+
Schema.isPropertyNames(Schema.String).annotate({
|
|
103
|
+
expected: "an object with property names matching the schema",
|
|
104
|
+
identifier: "TagMap",
|
|
105
|
+
}),
|
|
106
|
+
);
|
|
107
|
+
|
|
108
|
+
export type TagMap = typeof TagMap.Type;
|
|
109
|
+
|
|
110
|
+
export const DeleteMessageBatchRequestEntry = Schema.StructWithRest(
|
|
111
|
+
Schema.Struct({ Id: Schema.String, ReceiptHandle: Schema.String }),
|
|
112
|
+
[
|
|
113
|
+
Schema.Record(
|
|
114
|
+
Schema.String,
|
|
115
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
116
|
+
),
|
|
117
|
+
],
|
|
118
|
+
).annotate({ identifier: "DeleteMessageBatchRequestEntry" });
|
|
119
|
+
|
|
120
|
+
export type DeleteMessageBatchRequestEntry =
|
|
121
|
+
typeof DeleteMessageBatchRequestEntry.Type;
|
|
122
|
+
|
|
123
|
+
export const DeleteMessageBatchResultEntry = Schema.StructWithRest(
|
|
124
|
+
Schema.Struct({ Id: Schema.String }),
|
|
125
|
+
[
|
|
126
|
+
Schema.Record(
|
|
127
|
+
Schema.String,
|
|
128
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
129
|
+
),
|
|
130
|
+
],
|
|
131
|
+
).annotate({ identifier: "DeleteMessageBatchResultEntry" });
|
|
132
|
+
|
|
133
|
+
export type DeleteMessageBatchResultEntry =
|
|
134
|
+
typeof DeleteMessageBatchResultEntry.Type;
|
|
135
|
+
|
|
136
|
+
export const QueueAttributeName = Schema.Literals([
|
|
137
|
+
"All",
|
|
138
|
+
"Policy",
|
|
139
|
+
"VisibilityTimeout",
|
|
140
|
+
"MaximumMessageSize",
|
|
141
|
+
"MessageRetentionPeriod",
|
|
142
|
+
"ApproximateNumberOfMessages",
|
|
143
|
+
"ApproximateNumberOfMessagesNotVisible",
|
|
144
|
+
"CreatedTimestamp",
|
|
145
|
+
"LastModifiedTimestamp",
|
|
146
|
+
"QueueArn",
|
|
147
|
+
"ApproximateNumberOfMessagesDelayed",
|
|
148
|
+
"DelaySeconds",
|
|
149
|
+
"ReceiveMessageWaitTimeSeconds",
|
|
150
|
+
"RedrivePolicy",
|
|
151
|
+
"FifoQueue",
|
|
152
|
+
"ContentBasedDeduplication",
|
|
153
|
+
"KmsMasterKeyId",
|
|
154
|
+
"KmsDataKeyReusePeriodSeconds",
|
|
155
|
+
"DeduplicationScope",
|
|
156
|
+
"FifoThroughputLimit",
|
|
157
|
+
"RedriveAllowPolicy",
|
|
158
|
+
"SqsManagedSseEnabled",
|
|
159
|
+
]).annotate({ identifier: "QueueAttributeName" });
|
|
160
|
+
|
|
161
|
+
export type QueueAttributeName = typeof QueueAttributeName.Type;
|
|
162
|
+
|
|
163
|
+
export const ListMessageMoveTasksResultEntry = Schema.StructWithRest(
|
|
164
|
+
Schema.Struct({
|
|
165
|
+
TaskHandle: Schema.optionalKey(Schema.String),
|
|
166
|
+
Status: Schema.optionalKey(Schema.String),
|
|
167
|
+
SourceArn: Schema.optionalKey(Schema.String),
|
|
168
|
+
DestinationArn: Schema.optionalKey(Schema.String),
|
|
169
|
+
MaxNumberOfMessagesPerSecond: Schema.optionalKey(
|
|
170
|
+
Schema.Number.annotate({ format: "int32" }).check(
|
|
171
|
+
Schema.isInt().annotate({ expected: "an integer" }),
|
|
172
|
+
),
|
|
173
|
+
),
|
|
174
|
+
ApproximateNumberOfMessagesMoved: Schema.optionalKey(
|
|
175
|
+
Schema.Number.annotate({ default: 0, format: "int64" }).check(
|
|
176
|
+
Schema.isInt().annotate({ expected: "an integer" }),
|
|
177
|
+
),
|
|
178
|
+
),
|
|
179
|
+
ApproximateNumberOfMessagesToMove: Schema.optionalKey(
|
|
180
|
+
Schema.Number.annotate({ format: "int64" }).check(
|
|
181
|
+
Schema.isInt().annotate({ expected: "an integer" }),
|
|
182
|
+
),
|
|
183
|
+
),
|
|
184
|
+
FailureReason: Schema.optionalKey(Schema.String),
|
|
185
|
+
StartedTimestamp: Schema.optionalKey(
|
|
186
|
+
Schema.Number.annotate({ default: 0, format: "int64" }).check(
|
|
187
|
+
Schema.isInt().annotate({ expected: "an integer" }),
|
|
188
|
+
),
|
|
189
|
+
),
|
|
190
|
+
}),
|
|
191
|
+
[
|
|
192
|
+
Schema.Record(
|
|
193
|
+
Schema.String,
|
|
194
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
195
|
+
),
|
|
196
|
+
],
|
|
197
|
+
).annotate({ identifier: "ListMessageMoveTasksResultEntry" });
|
|
198
|
+
|
|
199
|
+
export type ListMessageMoveTasksResultEntry =
|
|
200
|
+
typeof ListMessageMoveTasksResultEntry.Type;
|
|
201
|
+
|
|
202
|
+
export const MessageSystemAttributeName = Schema.Literals([
|
|
203
|
+
"All",
|
|
204
|
+
"SenderId",
|
|
205
|
+
"SentTimestamp",
|
|
206
|
+
"ApproximateReceiveCount",
|
|
207
|
+
"ApproximateFirstReceiveTimestamp",
|
|
208
|
+
"SequenceNumber",
|
|
209
|
+
"MessageDeduplicationId",
|
|
210
|
+
"MessageGroupId",
|
|
211
|
+
"AWSTraceHeader",
|
|
212
|
+
"DeadLetterQueueSourceArn",
|
|
213
|
+
]).annotate({ identifier: "MessageSystemAttributeName" });
|
|
214
|
+
|
|
215
|
+
export type MessageSystemAttributeName = typeof MessageSystemAttributeName.Type;
|
|
216
|
+
|
|
217
|
+
export const MessageSystemAttributeMap = Schema.Record(
|
|
218
|
+
Schema.String,
|
|
219
|
+
Schema.String,
|
|
220
|
+
).check(
|
|
221
|
+
Schema.isPropertyNames(
|
|
222
|
+
Schema.Literals([
|
|
223
|
+
"All",
|
|
224
|
+
"SenderId",
|
|
225
|
+
"SentTimestamp",
|
|
226
|
+
"ApproximateReceiveCount",
|
|
227
|
+
"ApproximateFirstReceiveTimestamp",
|
|
228
|
+
"SequenceNumber",
|
|
229
|
+
"MessageDeduplicationId",
|
|
230
|
+
"MessageGroupId",
|
|
231
|
+
"AWSTraceHeader",
|
|
232
|
+
"DeadLetterQueueSourceArn",
|
|
233
|
+
]),
|
|
234
|
+
).annotate({
|
|
235
|
+
expected: "an object with property names matching the schema",
|
|
236
|
+
identifier: "MessageSystemAttributeMap",
|
|
237
|
+
}),
|
|
238
|
+
);
|
|
239
|
+
|
|
240
|
+
export type MessageSystemAttributeMap = typeof MessageSystemAttributeMap.Type;
|
|
241
|
+
|
|
242
|
+
export const MessageAttributeValue = Schema.StructWithRest(
|
|
243
|
+
Schema.Struct({
|
|
244
|
+
StringValue: Schema.optionalKey(Schema.String),
|
|
245
|
+
BinaryValue: Schema.optionalKey(
|
|
246
|
+
Schema.String.annotate({ contentEncoding: "byte" }),
|
|
247
|
+
),
|
|
248
|
+
StringListValues: Schema.optionalKey(Schema.Array(Schema.String)),
|
|
249
|
+
BinaryListValues: Schema.optionalKey(
|
|
250
|
+
Schema.Array(Schema.String.annotate({ contentEncoding: "byte" })),
|
|
251
|
+
),
|
|
252
|
+
DataType: Schema.String,
|
|
253
|
+
}),
|
|
254
|
+
[
|
|
255
|
+
Schema.Record(
|
|
256
|
+
Schema.String,
|
|
257
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
258
|
+
),
|
|
259
|
+
],
|
|
260
|
+
).annotate({ identifier: "MessageAttributeValue" });
|
|
261
|
+
|
|
262
|
+
export type MessageAttributeValue = typeof MessageAttributeValue.Type;
|
|
263
|
+
|
|
264
|
+
export const MessageSystemAttributeValue = Schema.StructWithRest(
|
|
265
|
+
Schema.Struct({
|
|
266
|
+
StringValue: Schema.optionalKey(Schema.String),
|
|
267
|
+
BinaryValue: Schema.optionalKey(
|
|
268
|
+
Schema.String.annotate({ contentEncoding: "byte" }),
|
|
269
|
+
),
|
|
270
|
+
StringListValues: Schema.optionalKey(Schema.Array(Schema.String)),
|
|
271
|
+
BinaryListValues: Schema.optionalKey(
|
|
272
|
+
Schema.Array(Schema.String.annotate({ contentEncoding: "byte" })),
|
|
273
|
+
),
|
|
274
|
+
DataType: Schema.String,
|
|
275
|
+
}),
|
|
276
|
+
[
|
|
277
|
+
Schema.Record(
|
|
278
|
+
Schema.String,
|
|
279
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
280
|
+
),
|
|
281
|
+
],
|
|
282
|
+
).annotate({ identifier: "MessageSystemAttributeValue" });
|
|
283
|
+
|
|
284
|
+
export type MessageSystemAttributeValue =
|
|
285
|
+
typeof MessageSystemAttributeValue.Type;
|
|
286
|
+
|
|
287
|
+
export const SendMessageBatchResultEntry = Schema.StructWithRest(
|
|
288
|
+
Schema.Struct({
|
|
289
|
+
Id: Schema.String,
|
|
290
|
+
MessageId: Schema.String,
|
|
291
|
+
MD5OfMessageBody: Schema.String,
|
|
292
|
+
MD5OfMessageAttributes: Schema.optionalKey(Schema.String),
|
|
293
|
+
MD5OfMessageSystemAttributes: Schema.optionalKey(Schema.String),
|
|
294
|
+
SequenceNumber: Schema.optionalKey(Schema.String),
|
|
295
|
+
}),
|
|
296
|
+
[
|
|
297
|
+
Schema.Record(
|
|
298
|
+
Schema.String,
|
|
299
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
300
|
+
),
|
|
301
|
+
],
|
|
302
|
+
).annotate({ identifier: "SendMessageBatchResultEntry" });
|
|
303
|
+
|
|
304
|
+
export type SendMessageBatchResultEntry =
|
|
305
|
+
typeof SendMessageBatchResultEntry.Type;
|
|
306
|
+
|
|
307
|
+
export const MessageBodyAttributeMap = Schema.Record(
|
|
308
|
+
Schema.String,
|
|
309
|
+
MessageAttributeValue,
|
|
310
|
+
).check(
|
|
311
|
+
Schema.isPropertyNames(Schema.String).annotate({
|
|
312
|
+
expected: "an object with property names matching the schema",
|
|
313
|
+
identifier: "MessageBodyAttributeMap",
|
|
314
|
+
}),
|
|
315
|
+
);
|
|
316
|
+
|
|
317
|
+
export type MessageBodyAttributeMap = typeof MessageBodyAttributeMap.Type;
|
|
318
|
+
|
|
319
|
+
export const MessageBodySystemAttributeMap = Schema.Record(
|
|
320
|
+
Schema.String,
|
|
321
|
+
MessageSystemAttributeValue,
|
|
322
|
+
).check(
|
|
323
|
+
Schema.isPropertyNames(Schema.Literal("AWSTraceHeader")).annotate({
|
|
324
|
+
expected: "an object with property names matching the schema",
|
|
325
|
+
identifier: "MessageBodySystemAttributeMap",
|
|
326
|
+
}),
|
|
327
|
+
);
|
|
328
|
+
|
|
329
|
+
export type MessageBodySystemAttributeMap =
|
|
330
|
+
typeof MessageBodySystemAttributeMap.Type;
|
|
331
|
+
|
|
332
|
+
export const Message = Schema.StructWithRest(
|
|
333
|
+
Schema.Struct({
|
|
334
|
+
MessageId: Schema.optionalKey(Schema.String),
|
|
335
|
+
ReceiptHandle: Schema.optionalKey(Schema.String),
|
|
336
|
+
MD5OfBody: Schema.optionalKey(Schema.String),
|
|
337
|
+
Body: Schema.optionalKey(Schema.String),
|
|
338
|
+
Attributes: Schema.optionalKey(MessageSystemAttributeMap),
|
|
339
|
+
MD5OfMessageAttributes: Schema.optionalKey(Schema.String),
|
|
340
|
+
MessageAttributes: Schema.optionalKey(MessageBodyAttributeMap),
|
|
341
|
+
}),
|
|
342
|
+
[
|
|
343
|
+
Schema.Record(
|
|
344
|
+
Schema.String,
|
|
345
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
346
|
+
),
|
|
347
|
+
],
|
|
348
|
+
).annotate({ identifier: "Message" });
|
|
349
|
+
|
|
350
|
+
export type Message = typeof Message.Type;
|
|
351
|
+
|
|
352
|
+
export const SendMessageBatchRequestEntry = Schema.StructWithRest(
|
|
353
|
+
Schema.Struct({
|
|
354
|
+
Id: Schema.String,
|
|
355
|
+
MessageBody: Schema.String,
|
|
356
|
+
DelaySeconds: Schema.optionalKey(
|
|
357
|
+
Schema.Number.annotate({ format: "int32" }).check(
|
|
358
|
+
Schema.isInt().annotate({ expected: "an integer" }),
|
|
359
|
+
),
|
|
360
|
+
),
|
|
361
|
+
MessageAttributes: Schema.optionalKey(MessageBodyAttributeMap),
|
|
362
|
+
MessageSystemAttributes: Schema.optionalKey(MessageBodySystemAttributeMap),
|
|
363
|
+
MessageDeduplicationId: Schema.optionalKey(Schema.String),
|
|
364
|
+
MessageGroupId: Schema.optionalKey(Schema.String),
|
|
365
|
+
}),
|
|
366
|
+
[
|
|
367
|
+
Schema.Record(
|
|
368
|
+
Schema.String,
|
|
369
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
370
|
+
),
|
|
371
|
+
],
|
|
372
|
+
).annotate({ identifier: "SendMessageBatchRequestEntry" });
|
|
373
|
+
|
|
374
|
+
export type SendMessageBatchRequestEntry =
|
|
375
|
+
typeof SendMessageBatchRequestEntry.Type;
|
|
376
|
+
|
|
377
|
+
export const AddPermissionRequest = Schema.StructWithRest(
|
|
378
|
+
Schema.Struct({
|
|
379
|
+
QueueUrl: Schema.String,
|
|
380
|
+
Label: Schema.String,
|
|
381
|
+
AWSAccountIds: Schema.Array(Schema.String),
|
|
382
|
+
Actions: Schema.Array(Schema.String),
|
|
383
|
+
}),
|
|
384
|
+
[
|
|
385
|
+
Schema.Record(
|
|
386
|
+
Schema.String,
|
|
387
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
388
|
+
),
|
|
389
|
+
],
|
|
390
|
+
);
|
|
391
|
+
|
|
392
|
+
export type AddPermissionRequest = typeof AddPermissionRequest.Type;
|
|
393
|
+
|
|
394
|
+
export const QueueDoesNotExist = Schema.StructWithRest(
|
|
395
|
+
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
396
|
+
[
|
|
397
|
+
Schema.Record(
|
|
398
|
+
Schema.String,
|
|
399
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
400
|
+
),
|
|
401
|
+
],
|
|
402
|
+
);
|
|
403
|
+
|
|
404
|
+
export type QueueDoesNotExist = typeof QueueDoesNotExist.Type;
|
|
405
|
+
|
|
406
|
+
export const UnsupportedOperation = Schema.StructWithRest(
|
|
407
|
+
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
408
|
+
[
|
|
409
|
+
Schema.Record(
|
|
410
|
+
Schema.String,
|
|
411
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
412
|
+
),
|
|
413
|
+
],
|
|
414
|
+
);
|
|
415
|
+
|
|
416
|
+
export type UnsupportedOperation = typeof UnsupportedOperation.Type;
|
|
417
|
+
|
|
418
|
+
export const InvalidSecurity = Schema.StructWithRest(
|
|
419
|
+
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
420
|
+
[
|
|
421
|
+
Schema.Record(
|
|
422
|
+
Schema.String,
|
|
423
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
424
|
+
),
|
|
425
|
+
],
|
|
426
|
+
);
|
|
427
|
+
|
|
428
|
+
export type InvalidSecurity = typeof InvalidSecurity.Type;
|
|
429
|
+
|
|
430
|
+
export const OverLimit = Schema.StructWithRest(
|
|
431
|
+
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
432
|
+
[
|
|
433
|
+
Schema.Record(
|
|
434
|
+
Schema.String,
|
|
435
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
436
|
+
),
|
|
437
|
+
],
|
|
438
|
+
);
|
|
439
|
+
|
|
440
|
+
export type OverLimit = typeof OverLimit.Type;
|
|
441
|
+
|
|
442
|
+
export const RequestThrottled = Schema.StructWithRest(
|
|
443
|
+
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
444
|
+
[
|
|
445
|
+
Schema.Record(
|
|
446
|
+
Schema.String,
|
|
447
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
448
|
+
),
|
|
449
|
+
],
|
|
450
|
+
);
|
|
451
|
+
|
|
452
|
+
export type RequestThrottled = typeof RequestThrottled.Type;
|
|
453
|
+
|
|
454
|
+
export const InvalidAddress = Schema.StructWithRest(
|
|
455
|
+
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
456
|
+
[
|
|
457
|
+
Schema.Record(
|
|
458
|
+
Schema.String,
|
|
459
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
460
|
+
),
|
|
461
|
+
],
|
|
462
|
+
);
|
|
463
|
+
|
|
464
|
+
export type InvalidAddress = typeof InvalidAddress.Type;
|
|
465
|
+
|
|
466
|
+
export const CancelMessageMoveTaskRequest = Schema.StructWithRest(
|
|
467
|
+
Schema.Struct({ TaskHandle: Schema.String }),
|
|
468
|
+
[
|
|
469
|
+
Schema.Record(
|
|
470
|
+
Schema.String,
|
|
471
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
472
|
+
),
|
|
473
|
+
],
|
|
474
|
+
);
|
|
475
|
+
|
|
476
|
+
export type CancelMessageMoveTaskRequest =
|
|
477
|
+
typeof CancelMessageMoveTaskRequest.Type;
|
|
478
|
+
|
|
479
|
+
export const CancelMessageMoveTaskResult = Schema.StructWithRest(
|
|
480
|
+
Schema.Struct({
|
|
481
|
+
ApproximateNumberOfMessagesMoved: Schema.optionalKey(
|
|
482
|
+
Schema.Number.annotate({ default: 0, format: "int64" }).check(
|
|
483
|
+
Schema.isInt().annotate({ expected: "an integer" }),
|
|
484
|
+
),
|
|
485
|
+
),
|
|
486
|
+
}),
|
|
487
|
+
[
|
|
488
|
+
Schema.Record(
|
|
489
|
+
Schema.String,
|
|
490
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
491
|
+
),
|
|
492
|
+
],
|
|
493
|
+
);
|
|
494
|
+
|
|
495
|
+
export type CancelMessageMoveTaskResult =
|
|
496
|
+
typeof CancelMessageMoveTaskResult.Type;
|
|
497
|
+
|
|
498
|
+
export const ResourceNotFoundException = Schema.StructWithRest(
|
|
499
|
+
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
500
|
+
[
|
|
501
|
+
Schema.Record(
|
|
502
|
+
Schema.String,
|
|
503
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
504
|
+
),
|
|
505
|
+
],
|
|
506
|
+
);
|
|
507
|
+
|
|
508
|
+
export type ResourceNotFoundException = typeof ResourceNotFoundException.Type;
|
|
509
|
+
|
|
510
|
+
export const ChangeMessageVisibilityRequest = Schema.StructWithRest(
|
|
511
|
+
Schema.Struct({
|
|
512
|
+
QueueUrl: Schema.String,
|
|
513
|
+
ReceiptHandle: Schema.String,
|
|
514
|
+
VisibilityTimeout: Schema.Number.annotate({ format: "int32" }).check(
|
|
515
|
+
Schema.isInt().annotate({ expected: "an integer" }),
|
|
516
|
+
),
|
|
517
|
+
}),
|
|
518
|
+
[
|
|
519
|
+
Schema.Record(
|
|
520
|
+
Schema.String,
|
|
521
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
522
|
+
),
|
|
523
|
+
],
|
|
524
|
+
);
|
|
525
|
+
|
|
526
|
+
export type ChangeMessageVisibilityRequest =
|
|
527
|
+
typeof ChangeMessageVisibilityRequest.Type;
|
|
528
|
+
|
|
529
|
+
export const MessageNotInflight = Schema.Record(
|
|
530
|
+
Schema.String,
|
|
531
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
532
|
+
);
|
|
533
|
+
|
|
534
|
+
export type MessageNotInflight = typeof MessageNotInflight.Type;
|
|
535
|
+
|
|
536
|
+
export const ReceiptHandleIsInvalid = Schema.StructWithRest(
|
|
537
|
+
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
538
|
+
[
|
|
539
|
+
Schema.Record(
|
|
540
|
+
Schema.String,
|
|
541
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
542
|
+
),
|
|
543
|
+
],
|
|
544
|
+
);
|
|
545
|
+
|
|
546
|
+
export type ReceiptHandleIsInvalid = typeof ReceiptHandleIsInvalid.Type;
|
|
547
|
+
|
|
548
|
+
export const ChangeMessageVisibilityBatchRequest = Schema.StructWithRest(
|
|
549
|
+
Schema.Struct({
|
|
550
|
+
QueueUrl: Schema.String,
|
|
551
|
+
Entries: Schema.Array(ChangeMessageVisibilityBatchRequestEntry),
|
|
552
|
+
}),
|
|
553
|
+
[
|
|
554
|
+
Schema.Record(
|
|
555
|
+
Schema.String,
|
|
556
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
557
|
+
),
|
|
558
|
+
],
|
|
559
|
+
);
|
|
560
|
+
|
|
561
|
+
export type ChangeMessageVisibilityBatchRequest =
|
|
562
|
+
typeof ChangeMessageVisibilityBatchRequest.Type;
|
|
563
|
+
|
|
564
|
+
export const ChangeMessageVisibilityBatchResult = Schema.StructWithRest(
|
|
565
|
+
Schema.Struct({
|
|
566
|
+
Successful: Schema.Array(ChangeMessageVisibilityBatchResultEntry),
|
|
567
|
+
Failed: Schema.Array(BatchResultErrorEntry),
|
|
568
|
+
}),
|
|
569
|
+
[
|
|
570
|
+
Schema.Record(
|
|
571
|
+
Schema.String,
|
|
572
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
573
|
+
),
|
|
574
|
+
],
|
|
575
|
+
);
|
|
576
|
+
|
|
577
|
+
export type ChangeMessageVisibilityBatchResult =
|
|
578
|
+
typeof ChangeMessageVisibilityBatchResult.Type;
|
|
579
|
+
|
|
580
|
+
export const BatchEntryIdsNotDistinct = Schema.StructWithRest(
|
|
581
|
+
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
582
|
+
[
|
|
583
|
+
Schema.Record(
|
|
584
|
+
Schema.String,
|
|
585
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
586
|
+
),
|
|
587
|
+
],
|
|
588
|
+
);
|
|
589
|
+
|
|
590
|
+
export type BatchEntryIdsNotDistinct = typeof BatchEntryIdsNotDistinct.Type;
|
|
591
|
+
|
|
592
|
+
export const EmptyBatchRequest = Schema.StructWithRest(
|
|
593
|
+
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
594
|
+
[
|
|
595
|
+
Schema.Record(
|
|
596
|
+
Schema.String,
|
|
597
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
598
|
+
),
|
|
599
|
+
],
|
|
600
|
+
);
|
|
601
|
+
|
|
602
|
+
export type EmptyBatchRequest = typeof EmptyBatchRequest.Type;
|
|
603
|
+
|
|
604
|
+
export const InvalidBatchEntryId = Schema.StructWithRest(
|
|
605
|
+
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
606
|
+
[
|
|
607
|
+
Schema.Record(
|
|
608
|
+
Schema.String,
|
|
609
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
610
|
+
),
|
|
611
|
+
],
|
|
612
|
+
);
|
|
613
|
+
|
|
614
|
+
export type InvalidBatchEntryId = typeof InvalidBatchEntryId.Type;
|
|
615
|
+
|
|
616
|
+
export const TooManyEntriesInBatchRequest = Schema.StructWithRest(
|
|
617
|
+
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
618
|
+
[
|
|
619
|
+
Schema.Record(
|
|
620
|
+
Schema.String,
|
|
621
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
622
|
+
),
|
|
623
|
+
],
|
|
624
|
+
);
|
|
625
|
+
|
|
626
|
+
export type TooManyEntriesInBatchRequest =
|
|
627
|
+
typeof TooManyEntriesInBatchRequest.Type;
|
|
628
|
+
|
|
629
|
+
export const CreateQueueRequest = Schema.StructWithRest(
|
|
630
|
+
Schema.Struct({
|
|
631
|
+
QueueName: Schema.String,
|
|
632
|
+
Attributes: Schema.optionalKey(QueueAttributeMap),
|
|
633
|
+
tags: Schema.optionalKey(TagMap),
|
|
634
|
+
}),
|
|
635
|
+
[
|
|
636
|
+
Schema.Record(
|
|
637
|
+
Schema.String,
|
|
638
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
639
|
+
),
|
|
640
|
+
],
|
|
641
|
+
);
|
|
642
|
+
|
|
643
|
+
export type CreateQueueRequest = typeof CreateQueueRequest.Type;
|
|
644
|
+
|
|
645
|
+
export const CreateQueueResult = Schema.StructWithRest(
|
|
646
|
+
Schema.Struct({ QueueUrl: Schema.optionalKey(Schema.String) }),
|
|
647
|
+
[
|
|
648
|
+
Schema.Record(
|
|
649
|
+
Schema.String,
|
|
650
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
651
|
+
),
|
|
652
|
+
],
|
|
653
|
+
);
|
|
654
|
+
|
|
655
|
+
export type CreateQueueResult = typeof CreateQueueResult.Type;
|
|
656
|
+
|
|
657
|
+
export const InvalidAttributeName = Schema.StructWithRest(
|
|
658
|
+
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
659
|
+
[
|
|
660
|
+
Schema.Record(
|
|
661
|
+
Schema.String,
|
|
662
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
663
|
+
),
|
|
664
|
+
],
|
|
665
|
+
);
|
|
666
|
+
|
|
667
|
+
export type InvalidAttributeName = typeof InvalidAttributeName.Type;
|
|
668
|
+
|
|
669
|
+
export const InvalidAttributeValue = Schema.StructWithRest(
|
|
670
|
+
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
671
|
+
[
|
|
672
|
+
Schema.Record(
|
|
673
|
+
Schema.String,
|
|
674
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
675
|
+
),
|
|
676
|
+
],
|
|
677
|
+
);
|
|
678
|
+
|
|
679
|
+
export type InvalidAttributeValue = typeof InvalidAttributeValue.Type;
|
|
680
|
+
|
|
681
|
+
export const QueueDeletedRecently = Schema.StructWithRest(
|
|
682
|
+
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
683
|
+
[
|
|
684
|
+
Schema.Record(
|
|
685
|
+
Schema.String,
|
|
686
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
687
|
+
),
|
|
688
|
+
],
|
|
689
|
+
);
|
|
690
|
+
|
|
691
|
+
export type QueueDeletedRecently = typeof QueueDeletedRecently.Type;
|
|
692
|
+
|
|
693
|
+
export const QueueNameExists = Schema.StructWithRest(
|
|
694
|
+
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
695
|
+
[
|
|
696
|
+
Schema.Record(
|
|
697
|
+
Schema.String,
|
|
698
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
699
|
+
),
|
|
700
|
+
],
|
|
701
|
+
);
|
|
702
|
+
|
|
703
|
+
export type QueueNameExists = typeof QueueNameExists.Type;
|
|
704
|
+
|
|
705
|
+
export const DeleteMessageRequest = Schema.StructWithRest(
|
|
706
|
+
Schema.Struct({ QueueUrl: Schema.String, ReceiptHandle: Schema.String }),
|
|
707
|
+
[
|
|
708
|
+
Schema.Record(
|
|
709
|
+
Schema.String,
|
|
710
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
711
|
+
),
|
|
712
|
+
],
|
|
713
|
+
);
|
|
714
|
+
|
|
715
|
+
export type DeleteMessageRequest = typeof DeleteMessageRequest.Type;
|
|
716
|
+
|
|
717
|
+
export const InvalidIdFormat = Schema.Record(
|
|
718
|
+
Schema.String,
|
|
719
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
720
|
+
);
|
|
721
|
+
|
|
722
|
+
export type InvalidIdFormat = typeof InvalidIdFormat.Type;
|
|
723
|
+
|
|
724
|
+
export const DeleteMessageBatchRequest = Schema.StructWithRest(
|
|
725
|
+
Schema.Struct({
|
|
726
|
+
QueueUrl: Schema.String,
|
|
727
|
+
Entries: Schema.Array(DeleteMessageBatchRequestEntry),
|
|
728
|
+
}),
|
|
729
|
+
[
|
|
730
|
+
Schema.Record(
|
|
731
|
+
Schema.String,
|
|
732
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
733
|
+
),
|
|
734
|
+
],
|
|
735
|
+
);
|
|
736
|
+
|
|
737
|
+
export type DeleteMessageBatchRequest = typeof DeleteMessageBatchRequest.Type;
|
|
738
|
+
|
|
739
|
+
export const DeleteMessageBatchResult = Schema.StructWithRest(
|
|
740
|
+
Schema.Struct({
|
|
741
|
+
Successful: Schema.Array(DeleteMessageBatchResultEntry),
|
|
742
|
+
Failed: Schema.Array(BatchResultErrorEntry),
|
|
743
|
+
}),
|
|
744
|
+
[
|
|
745
|
+
Schema.Record(
|
|
746
|
+
Schema.String,
|
|
747
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
748
|
+
),
|
|
749
|
+
],
|
|
750
|
+
);
|
|
751
|
+
|
|
752
|
+
export type DeleteMessageBatchResult = typeof DeleteMessageBatchResult.Type;
|
|
753
|
+
|
|
754
|
+
export const DeleteQueueRequest = Schema.StructWithRest(
|
|
755
|
+
Schema.Struct({ QueueUrl: Schema.String }),
|
|
756
|
+
[
|
|
757
|
+
Schema.Record(
|
|
758
|
+
Schema.String,
|
|
759
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
760
|
+
),
|
|
761
|
+
],
|
|
762
|
+
);
|
|
763
|
+
|
|
764
|
+
export type DeleteQueueRequest = typeof DeleteQueueRequest.Type;
|
|
765
|
+
|
|
766
|
+
export const GetQueueAttributesRequest = Schema.StructWithRest(
|
|
767
|
+
Schema.Struct({
|
|
768
|
+
QueueUrl: Schema.String,
|
|
769
|
+
AttributeNames: Schema.optionalKey(Schema.Array(QueueAttributeName)),
|
|
770
|
+
}),
|
|
771
|
+
[
|
|
772
|
+
Schema.Record(
|
|
773
|
+
Schema.String,
|
|
774
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
775
|
+
),
|
|
776
|
+
],
|
|
777
|
+
);
|
|
778
|
+
|
|
779
|
+
export type GetQueueAttributesRequest = typeof GetQueueAttributesRequest.Type;
|
|
780
|
+
|
|
781
|
+
export const GetQueueAttributesResult = Schema.StructWithRest(
|
|
782
|
+
Schema.Struct({ Attributes: Schema.optionalKey(QueueAttributeMap) }),
|
|
783
|
+
[
|
|
784
|
+
Schema.Record(
|
|
785
|
+
Schema.String,
|
|
786
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
787
|
+
),
|
|
788
|
+
],
|
|
789
|
+
);
|
|
790
|
+
|
|
791
|
+
export type GetQueueAttributesResult = typeof GetQueueAttributesResult.Type;
|
|
792
|
+
|
|
793
|
+
export const GetQueueUrlRequest = Schema.StructWithRest(
|
|
794
|
+
Schema.Struct({
|
|
795
|
+
QueueName: Schema.String,
|
|
796
|
+
QueueOwnerAWSAccountId: Schema.optionalKey(Schema.String),
|
|
797
|
+
}),
|
|
798
|
+
[
|
|
799
|
+
Schema.Record(
|
|
800
|
+
Schema.String,
|
|
801
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
802
|
+
),
|
|
803
|
+
],
|
|
804
|
+
);
|
|
805
|
+
|
|
806
|
+
export type GetQueueUrlRequest = typeof GetQueueUrlRequest.Type;
|
|
807
|
+
|
|
808
|
+
export const GetQueueUrlResult = Schema.StructWithRest(
|
|
809
|
+
Schema.Struct({ QueueUrl: Schema.optionalKey(Schema.String) }),
|
|
810
|
+
[
|
|
811
|
+
Schema.Record(
|
|
812
|
+
Schema.String,
|
|
813
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
814
|
+
),
|
|
815
|
+
],
|
|
816
|
+
);
|
|
817
|
+
|
|
818
|
+
export type GetQueueUrlResult = typeof GetQueueUrlResult.Type;
|
|
819
|
+
|
|
820
|
+
export const ListDeadLetterSourceQueuesRequest = Schema.StructWithRest(
|
|
821
|
+
Schema.Struct({
|
|
822
|
+
QueueUrl: Schema.String,
|
|
823
|
+
NextToken: Schema.optionalKey(Schema.String),
|
|
824
|
+
MaxResults: Schema.optionalKey(
|
|
825
|
+
Schema.Number.annotate({ format: "int32" }).check(
|
|
826
|
+
Schema.isInt().annotate({ expected: "an integer" }),
|
|
827
|
+
),
|
|
828
|
+
),
|
|
829
|
+
}),
|
|
830
|
+
[
|
|
831
|
+
Schema.Record(
|
|
832
|
+
Schema.String,
|
|
833
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
834
|
+
),
|
|
835
|
+
],
|
|
836
|
+
);
|
|
837
|
+
|
|
838
|
+
export type ListDeadLetterSourceQueuesRequest =
|
|
839
|
+
typeof ListDeadLetterSourceQueuesRequest.Type;
|
|
840
|
+
|
|
841
|
+
export const ListDeadLetterSourceQueuesResult = Schema.StructWithRest(
|
|
842
|
+
Schema.Struct({
|
|
843
|
+
queueUrls: Schema.Array(Schema.String),
|
|
844
|
+
NextToken: Schema.optionalKey(Schema.String),
|
|
845
|
+
}),
|
|
846
|
+
[
|
|
847
|
+
Schema.Record(
|
|
848
|
+
Schema.String,
|
|
849
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
850
|
+
),
|
|
851
|
+
],
|
|
852
|
+
);
|
|
853
|
+
|
|
854
|
+
export type ListDeadLetterSourceQueuesResult =
|
|
855
|
+
typeof ListDeadLetterSourceQueuesResult.Type;
|
|
856
|
+
|
|
857
|
+
export const ListMessageMoveTasksRequest = Schema.StructWithRest(
|
|
858
|
+
Schema.Struct({
|
|
859
|
+
SourceArn: Schema.String,
|
|
860
|
+
MaxResults: Schema.optionalKey(
|
|
861
|
+
Schema.Number.annotate({ format: "int32" }).check(
|
|
862
|
+
Schema.isInt().annotate({ expected: "an integer" }),
|
|
863
|
+
),
|
|
864
|
+
),
|
|
865
|
+
}),
|
|
866
|
+
[
|
|
867
|
+
Schema.Record(
|
|
868
|
+
Schema.String,
|
|
869
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
870
|
+
),
|
|
871
|
+
],
|
|
872
|
+
);
|
|
873
|
+
|
|
874
|
+
export type ListMessageMoveTasksRequest =
|
|
875
|
+
typeof ListMessageMoveTasksRequest.Type;
|
|
876
|
+
|
|
877
|
+
export const ListMessageMoveTasksResult = Schema.StructWithRest(
|
|
878
|
+
Schema.Struct({
|
|
879
|
+
Results: Schema.optionalKey(Schema.Array(ListMessageMoveTasksResultEntry)),
|
|
880
|
+
}),
|
|
881
|
+
[
|
|
882
|
+
Schema.Record(
|
|
883
|
+
Schema.String,
|
|
884
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
885
|
+
),
|
|
886
|
+
],
|
|
887
|
+
);
|
|
888
|
+
|
|
889
|
+
export type ListMessageMoveTasksResult = typeof ListMessageMoveTasksResult.Type;
|
|
890
|
+
|
|
891
|
+
export const ListQueueTagsRequest = Schema.StructWithRest(
|
|
892
|
+
Schema.Struct({ QueueUrl: Schema.String }),
|
|
893
|
+
[
|
|
894
|
+
Schema.Record(
|
|
895
|
+
Schema.String,
|
|
896
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
897
|
+
),
|
|
898
|
+
],
|
|
899
|
+
);
|
|
900
|
+
|
|
901
|
+
export type ListQueueTagsRequest = typeof ListQueueTagsRequest.Type;
|
|
902
|
+
|
|
903
|
+
export const ListQueueTagsResult = Schema.StructWithRest(
|
|
904
|
+
Schema.Struct({ Tags: Schema.optionalKey(TagMap) }),
|
|
905
|
+
[
|
|
906
|
+
Schema.Record(
|
|
907
|
+
Schema.String,
|
|
908
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
909
|
+
),
|
|
910
|
+
],
|
|
911
|
+
);
|
|
912
|
+
|
|
913
|
+
export type ListQueueTagsResult = typeof ListQueueTagsResult.Type;
|
|
914
|
+
|
|
915
|
+
export const ListQueuesRequest = Schema.StructWithRest(
|
|
916
|
+
Schema.Struct({
|
|
917
|
+
QueueNamePrefix: Schema.optionalKey(Schema.String),
|
|
918
|
+
NextToken: Schema.optionalKey(Schema.String),
|
|
919
|
+
MaxResults: Schema.optionalKey(
|
|
920
|
+
Schema.Number.annotate({ format: "int32" }).check(
|
|
921
|
+
Schema.isInt().annotate({ expected: "an integer" }),
|
|
922
|
+
),
|
|
923
|
+
),
|
|
924
|
+
}),
|
|
925
|
+
[
|
|
926
|
+
Schema.Record(
|
|
927
|
+
Schema.String,
|
|
928
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
929
|
+
),
|
|
930
|
+
],
|
|
931
|
+
);
|
|
932
|
+
|
|
933
|
+
export type ListQueuesRequest = typeof ListQueuesRequest.Type;
|
|
934
|
+
|
|
935
|
+
export const ListQueuesResult = Schema.StructWithRest(
|
|
936
|
+
Schema.Struct({
|
|
937
|
+
QueueUrls: Schema.optionalKey(Schema.Array(Schema.String)),
|
|
938
|
+
NextToken: Schema.optionalKey(Schema.String),
|
|
939
|
+
}),
|
|
940
|
+
[
|
|
941
|
+
Schema.Record(
|
|
942
|
+
Schema.String,
|
|
943
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
944
|
+
),
|
|
945
|
+
],
|
|
946
|
+
);
|
|
947
|
+
|
|
948
|
+
export type ListQueuesResult = typeof ListQueuesResult.Type;
|
|
949
|
+
|
|
950
|
+
export const PurgeQueueRequest = Schema.StructWithRest(
|
|
951
|
+
Schema.Struct({ QueueUrl: Schema.String }),
|
|
952
|
+
[
|
|
953
|
+
Schema.Record(
|
|
954
|
+
Schema.String,
|
|
955
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
956
|
+
),
|
|
957
|
+
],
|
|
958
|
+
);
|
|
959
|
+
|
|
960
|
+
export type PurgeQueueRequest = typeof PurgeQueueRequest.Type;
|
|
961
|
+
|
|
962
|
+
export const PurgeQueueInProgress = Schema.StructWithRest(
|
|
963
|
+
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
964
|
+
[
|
|
965
|
+
Schema.Record(
|
|
966
|
+
Schema.String,
|
|
967
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
968
|
+
),
|
|
969
|
+
],
|
|
970
|
+
);
|
|
971
|
+
|
|
972
|
+
export type PurgeQueueInProgress = typeof PurgeQueueInProgress.Type;
|
|
973
|
+
|
|
974
|
+
export const ReceiveMessageRequest = Schema.StructWithRest(
|
|
975
|
+
Schema.Struct({
|
|
976
|
+
QueueUrl: Schema.String,
|
|
977
|
+
AttributeNames: Schema.optionalKey(Schema.Array(QueueAttributeName)),
|
|
978
|
+
MessageSystemAttributeNames: Schema.optionalKey(
|
|
979
|
+
Schema.Array(MessageSystemAttributeName),
|
|
980
|
+
),
|
|
981
|
+
MessageAttributeNames: Schema.optionalKey(Schema.Array(Schema.String)),
|
|
982
|
+
MaxNumberOfMessages: Schema.optionalKey(
|
|
983
|
+
Schema.Number.annotate({ format: "int32" }).check(
|
|
984
|
+
Schema.isInt().annotate({ expected: "an integer" }),
|
|
985
|
+
),
|
|
986
|
+
),
|
|
987
|
+
VisibilityTimeout: Schema.optionalKey(
|
|
988
|
+
Schema.Number.annotate({ format: "int32" }).check(
|
|
989
|
+
Schema.isInt().annotate({ expected: "an integer" }),
|
|
990
|
+
),
|
|
991
|
+
),
|
|
992
|
+
WaitTimeSeconds: Schema.optionalKey(
|
|
993
|
+
Schema.Number.annotate({ format: "int32" }).check(
|
|
994
|
+
Schema.isInt().annotate({ expected: "an integer" }),
|
|
995
|
+
),
|
|
996
|
+
),
|
|
997
|
+
ReceiveRequestAttemptId: Schema.optionalKey(Schema.String),
|
|
998
|
+
}),
|
|
999
|
+
[
|
|
1000
|
+
Schema.Record(
|
|
1001
|
+
Schema.String,
|
|
1002
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1003
|
+
),
|
|
1004
|
+
],
|
|
1005
|
+
);
|
|
1006
|
+
|
|
1007
|
+
export type ReceiveMessageRequest = typeof ReceiveMessageRequest.Type;
|
|
1008
|
+
|
|
1009
|
+
export const ReceiveMessageResult = Schema.StructWithRest(
|
|
1010
|
+
Schema.Struct({ Messages: Schema.optionalKey(Schema.Array(Message)) }),
|
|
1011
|
+
[
|
|
1012
|
+
Schema.Record(
|
|
1013
|
+
Schema.String,
|
|
1014
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1015
|
+
),
|
|
1016
|
+
],
|
|
1017
|
+
);
|
|
1018
|
+
|
|
1019
|
+
export type ReceiveMessageResult = typeof ReceiveMessageResult.Type;
|
|
1020
|
+
|
|
1021
|
+
export const KmsAccessDenied = Schema.StructWithRest(
|
|
1022
|
+
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
1023
|
+
[
|
|
1024
|
+
Schema.Record(
|
|
1025
|
+
Schema.String,
|
|
1026
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1027
|
+
),
|
|
1028
|
+
],
|
|
1029
|
+
);
|
|
1030
|
+
|
|
1031
|
+
export type KmsAccessDenied = typeof KmsAccessDenied.Type;
|
|
1032
|
+
|
|
1033
|
+
export const KmsDisabled = Schema.StructWithRest(
|
|
1034
|
+
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
1035
|
+
[
|
|
1036
|
+
Schema.Record(
|
|
1037
|
+
Schema.String,
|
|
1038
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1039
|
+
),
|
|
1040
|
+
],
|
|
1041
|
+
);
|
|
1042
|
+
|
|
1043
|
+
export type KmsDisabled = typeof KmsDisabled.Type;
|
|
1044
|
+
|
|
1045
|
+
export const KmsInvalidKeyUsage = Schema.StructWithRest(
|
|
1046
|
+
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
1047
|
+
[
|
|
1048
|
+
Schema.Record(
|
|
1049
|
+
Schema.String,
|
|
1050
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1051
|
+
),
|
|
1052
|
+
],
|
|
1053
|
+
);
|
|
1054
|
+
|
|
1055
|
+
export type KmsInvalidKeyUsage = typeof KmsInvalidKeyUsage.Type;
|
|
1056
|
+
|
|
1057
|
+
export const KmsInvalidState = Schema.StructWithRest(
|
|
1058
|
+
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
1059
|
+
[
|
|
1060
|
+
Schema.Record(
|
|
1061
|
+
Schema.String,
|
|
1062
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1063
|
+
),
|
|
1064
|
+
],
|
|
1065
|
+
);
|
|
1066
|
+
|
|
1067
|
+
export type KmsInvalidState = typeof KmsInvalidState.Type;
|
|
1068
|
+
|
|
1069
|
+
export const KmsNotFound = Schema.StructWithRest(
|
|
1070
|
+
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
1071
|
+
[
|
|
1072
|
+
Schema.Record(
|
|
1073
|
+
Schema.String,
|
|
1074
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1075
|
+
),
|
|
1076
|
+
],
|
|
1077
|
+
);
|
|
1078
|
+
|
|
1079
|
+
export type KmsNotFound = typeof KmsNotFound.Type;
|
|
1080
|
+
|
|
1081
|
+
export const KmsThrottled = Schema.StructWithRest(
|
|
1082
|
+
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
1083
|
+
[
|
|
1084
|
+
Schema.Record(
|
|
1085
|
+
Schema.String,
|
|
1086
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1087
|
+
),
|
|
1088
|
+
],
|
|
1089
|
+
);
|
|
1090
|
+
|
|
1091
|
+
export type KmsThrottled = typeof KmsThrottled.Type;
|
|
1092
|
+
|
|
1093
|
+
export const KmsOptInRequired = Schema.StructWithRest(
|
|
1094
|
+
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
1095
|
+
[
|
|
1096
|
+
Schema.Record(
|
|
1097
|
+
Schema.String,
|
|
1098
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1099
|
+
),
|
|
1100
|
+
],
|
|
1101
|
+
);
|
|
1102
|
+
|
|
1103
|
+
export type KmsOptInRequired = typeof KmsOptInRequired.Type;
|
|
1104
|
+
|
|
1105
|
+
export const RemovePermissionRequest = Schema.StructWithRest(
|
|
1106
|
+
Schema.Struct({ QueueUrl: Schema.String, Label: Schema.String }),
|
|
1107
|
+
[
|
|
1108
|
+
Schema.Record(
|
|
1109
|
+
Schema.String,
|
|
1110
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1111
|
+
),
|
|
1112
|
+
],
|
|
1113
|
+
);
|
|
1114
|
+
|
|
1115
|
+
export type RemovePermissionRequest = typeof RemovePermissionRequest.Type;
|
|
1116
|
+
|
|
1117
|
+
export const SendMessageRequest = Schema.StructWithRest(
|
|
1118
|
+
Schema.Struct({
|
|
1119
|
+
QueueUrl: Schema.String,
|
|
1120
|
+
MessageBody: Schema.String,
|
|
1121
|
+
DelaySeconds: Schema.optionalKey(
|
|
1122
|
+
Schema.Number.annotate({ format: "int32" }).check(
|
|
1123
|
+
Schema.isInt().annotate({ expected: "an integer" }),
|
|
1124
|
+
),
|
|
1125
|
+
),
|
|
1126
|
+
MessageAttributes: Schema.optionalKey(MessageBodyAttributeMap),
|
|
1127
|
+
MessageSystemAttributes: Schema.optionalKey(MessageBodySystemAttributeMap),
|
|
1128
|
+
MessageDeduplicationId: Schema.optionalKey(Schema.String),
|
|
1129
|
+
MessageGroupId: Schema.optionalKey(Schema.String),
|
|
1130
|
+
}),
|
|
1131
|
+
[
|
|
1132
|
+
Schema.Record(
|
|
1133
|
+
Schema.String,
|
|
1134
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1135
|
+
),
|
|
1136
|
+
],
|
|
1137
|
+
);
|
|
1138
|
+
|
|
1139
|
+
export type SendMessageRequest = typeof SendMessageRequest.Type;
|
|
1140
|
+
|
|
1141
|
+
export const SendMessageResult = Schema.StructWithRest(
|
|
1142
|
+
Schema.Struct({
|
|
1143
|
+
MD5OfMessageBody: Schema.optionalKey(Schema.String),
|
|
1144
|
+
MD5OfMessageAttributes: Schema.optionalKey(Schema.String),
|
|
1145
|
+
MD5OfMessageSystemAttributes: Schema.optionalKey(Schema.String),
|
|
1146
|
+
MessageId: Schema.optionalKey(Schema.String),
|
|
1147
|
+
SequenceNumber: Schema.optionalKey(Schema.String),
|
|
1148
|
+
}),
|
|
1149
|
+
[
|
|
1150
|
+
Schema.Record(
|
|
1151
|
+
Schema.String,
|
|
1152
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1153
|
+
),
|
|
1154
|
+
],
|
|
1155
|
+
);
|
|
1156
|
+
|
|
1157
|
+
export type SendMessageResult = typeof SendMessageResult.Type;
|
|
1158
|
+
|
|
1159
|
+
export const InvalidMessageContents = Schema.StructWithRest(
|
|
1160
|
+
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
1161
|
+
[
|
|
1162
|
+
Schema.Record(
|
|
1163
|
+
Schema.String,
|
|
1164
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1165
|
+
),
|
|
1166
|
+
],
|
|
1167
|
+
);
|
|
1168
|
+
|
|
1169
|
+
export type InvalidMessageContents = typeof InvalidMessageContents.Type;
|
|
1170
|
+
|
|
1171
|
+
export const SendMessageBatchRequest = Schema.StructWithRest(
|
|
1172
|
+
Schema.Struct({
|
|
1173
|
+
QueueUrl: Schema.String,
|
|
1174
|
+
Entries: Schema.Array(SendMessageBatchRequestEntry),
|
|
1175
|
+
}),
|
|
1176
|
+
[
|
|
1177
|
+
Schema.Record(
|
|
1178
|
+
Schema.String,
|
|
1179
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1180
|
+
),
|
|
1181
|
+
],
|
|
1182
|
+
);
|
|
1183
|
+
|
|
1184
|
+
export type SendMessageBatchRequest = typeof SendMessageBatchRequest.Type;
|
|
1185
|
+
|
|
1186
|
+
export const SendMessageBatchResult = Schema.StructWithRest(
|
|
1187
|
+
Schema.Struct({
|
|
1188
|
+
Successful: Schema.Array(SendMessageBatchResultEntry),
|
|
1189
|
+
Failed: Schema.Array(BatchResultErrorEntry),
|
|
1190
|
+
}),
|
|
1191
|
+
[
|
|
1192
|
+
Schema.Record(
|
|
1193
|
+
Schema.String,
|
|
1194
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1195
|
+
),
|
|
1196
|
+
],
|
|
1197
|
+
);
|
|
1198
|
+
|
|
1199
|
+
export type SendMessageBatchResult = typeof SendMessageBatchResult.Type;
|
|
1200
|
+
|
|
1201
|
+
export const BatchRequestTooLong = Schema.StructWithRest(
|
|
1202
|
+
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
1203
|
+
[
|
|
1204
|
+
Schema.Record(
|
|
1205
|
+
Schema.String,
|
|
1206
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1207
|
+
),
|
|
1208
|
+
],
|
|
1209
|
+
);
|
|
1210
|
+
|
|
1211
|
+
export type BatchRequestTooLong = typeof BatchRequestTooLong.Type;
|
|
1212
|
+
|
|
1213
|
+
export const SetQueueAttributesRequest = Schema.StructWithRest(
|
|
1214
|
+
Schema.Struct({ QueueUrl: Schema.String, Attributes: QueueAttributeMap }),
|
|
1215
|
+
[
|
|
1216
|
+
Schema.Record(
|
|
1217
|
+
Schema.String,
|
|
1218
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1219
|
+
),
|
|
1220
|
+
],
|
|
1221
|
+
);
|
|
1222
|
+
|
|
1223
|
+
export type SetQueueAttributesRequest = typeof SetQueueAttributesRequest.Type;
|
|
1224
|
+
|
|
1225
|
+
export const StartMessageMoveTaskRequest = Schema.StructWithRest(
|
|
1226
|
+
Schema.Struct({
|
|
1227
|
+
SourceArn: Schema.String,
|
|
1228
|
+
DestinationArn: Schema.optionalKey(Schema.String),
|
|
1229
|
+
MaxNumberOfMessagesPerSecond: Schema.optionalKey(
|
|
1230
|
+
Schema.Number.annotate({ format: "int32" }).check(
|
|
1231
|
+
Schema.isInt().annotate({ expected: "an integer" }),
|
|
1232
|
+
),
|
|
1233
|
+
),
|
|
1234
|
+
}),
|
|
1235
|
+
[
|
|
1236
|
+
Schema.Record(
|
|
1237
|
+
Schema.String,
|
|
1238
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1239
|
+
),
|
|
1240
|
+
],
|
|
1241
|
+
);
|
|
1242
|
+
|
|
1243
|
+
export type StartMessageMoveTaskRequest =
|
|
1244
|
+
typeof StartMessageMoveTaskRequest.Type;
|
|
1245
|
+
|
|
1246
|
+
export const StartMessageMoveTaskResult = Schema.StructWithRest(
|
|
1247
|
+
Schema.Struct({ TaskHandle: Schema.optionalKey(Schema.String) }),
|
|
1248
|
+
[
|
|
1249
|
+
Schema.Record(
|
|
1250
|
+
Schema.String,
|
|
1251
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1252
|
+
),
|
|
1253
|
+
],
|
|
1254
|
+
);
|
|
1255
|
+
|
|
1256
|
+
export type StartMessageMoveTaskResult = typeof StartMessageMoveTaskResult.Type;
|
|
1257
|
+
|
|
1258
|
+
export const TagQueueRequest = Schema.StructWithRest(
|
|
1259
|
+
Schema.Struct({ QueueUrl: Schema.String, Tags: TagMap }),
|
|
1260
|
+
[
|
|
1261
|
+
Schema.Record(
|
|
1262
|
+
Schema.String,
|
|
1263
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1264
|
+
),
|
|
1265
|
+
],
|
|
1266
|
+
);
|
|
1267
|
+
|
|
1268
|
+
export type TagQueueRequest = typeof TagQueueRequest.Type;
|
|
1269
|
+
|
|
1270
|
+
export const UntagQueueRequest = Schema.StructWithRest(
|
|
1271
|
+
Schema.Struct({
|
|
1272
|
+
QueueUrl: Schema.String,
|
|
1273
|
+
TagKeys: Schema.Array(Schema.String),
|
|
1274
|
+
}),
|
|
1275
|
+
[
|
|
1276
|
+
Schema.Record(
|
|
1277
|
+
Schema.String,
|
|
1278
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1279
|
+
),
|
|
1280
|
+
],
|
|
1281
|
+
);
|
|
1282
|
+
|
|
1283
|
+
export type UntagQueueRequest = typeof UntagQueueRequest.Type;
|
|
1284
|
+
|
|
1285
|
+
export const sqsErrors = {
|
|
1286
|
+
QueueDoesNotExist: {
|
|
1287
|
+
name: "QueueDoesNotExist",
|
|
1288
|
+
fault: "client",
|
|
1289
|
+
httpStatus: 400,
|
|
1290
|
+
retryable: null,
|
|
1291
|
+
code: "AWS.SimpleQueueService.NonExistentQueue",
|
|
1292
|
+
schema: QueueDoesNotExist,
|
|
1293
|
+
},
|
|
1294
|
+
UnsupportedOperation: {
|
|
1295
|
+
name: "UnsupportedOperation",
|
|
1296
|
+
fault: "client",
|
|
1297
|
+
httpStatus: 400,
|
|
1298
|
+
retryable: null,
|
|
1299
|
+
code: "AWS.SimpleQueueService.UnsupportedOperation",
|
|
1300
|
+
schema: UnsupportedOperation,
|
|
1301
|
+
},
|
|
1302
|
+
InvalidSecurity: {
|
|
1303
|
+
name: "InvalidSecurity",
|
|
1304
|
+
fault: "client",
|
|
1305
|
+
httpStatus: 403,
|
|
1306
|
+
retryable: null,
|
|
1307
|
+
code: "InvalidSecurity",
|
|
1308
|
+
schema: InvalidSecurity,
|
|
1309
|
+
},
|
|
1310
|
+
OverLimit: {
|
|
1311
|
+
name: "OverLimit",
|
|
1312
|
+
fault: "client",
|
|
1313
|
+
httpStatus: 403,
|
|
1314
|
+
retryable: null,
|
|
1315
|
+
code: "OverLimit",
|
|
1316
|
+
schema: OverLimit,
|
|
1317
|
+
},
|
|
1318
|
+
RequestThrottled: {
|
|
1319
|
+
name: "RequestThrottled",
|
|
1320
|
+
fault: "client",
|
|
1321
|
+
httpStatus: 403,
|
|
1322
|
+
retryable: null,
|
|
1323
|
+
code: "RequestThrottled",
|
|
1324
|
+
schema: RequestThrottled,
|
|
1325
|
+
},
|
|
1326
|
+
InvalidAddress: {
|
|
1327
|
+
name: "InvalidAddress",
|
|
1328
|
+
fault: "client",
|
|
1329
|
+
httpStatus: 404,
|
|
1330
|
+
retryable: null,
|
|
1331
|
+
code: "InvalidAddress",
|
|
1332
|
+
schema: InvalidAddress,
|
|
1333
|
+
},
|
|
1334
|
+
ResourceNotFoundException: {
|
|
1335
|
+
name: "ResourceNotFoundException",
|
|
1336
|
+
fault: "client",
|
|
1337
|
+
httpStatus: 404,
|
|
1338
|
+
retryable: null,
|
|
1339
|
+
code: "ResourceNotFoundException",
|
|
1340
|
+
schema: ResourceNotFoundException,
|
|
1341
|
+
},
|
|
1342
|
+
MessageNotInflight: {
|
|
1343
|
+
name: "MessageNotInflight",
|
|
1344
|
+
fault: "client",
|
|
1345
|
+
httpStatus: 400,
|
|
1346
|
+
retryable: null,
|
|
1347
|
+
code: "AWS.SimpleQueueService.MessageNotInflight",
|
|
1348
|
+
schema: MessageNotInflight,
|
|
1349
|
+
},
|
|
1350
|
+
ReceiptHandleIsInvalid: {
|
|
1351
|
+
name: "ReceiptHandleIsInvalid",
|
|
1352
|
+
fault: "client",
|
|
1353
|
+
httpStatus: 404,
|
|
1354
|
+
retryable: null,
|
|
1355
|
+
code: "ReceiptHandleIsInvalid",
|
|
1356
|
+
schema: ReceiptHandleIsInvalid,
|
|
1357
|
+
},
|
|
1358
|
+
BatchEntryIdsNotDistinct: {
|
|
1359
|
+
name: "BatchEntryIdsNotDistinct",
|
|
1360
|
+
fault: "client",
|
|
1361
|
+
httpStatus: 400,
|
|
1362
|
+
retryable: null,
|
|
1363
|
+
code: "AWS.SimpleQueueService.BatchEntryIdsNotDistinct",
|
|
1364
|
+
schema: BatchEntryIdsNotDistinct,
|
|
1365
|
+
},
|
|
1366
|
+
EmptyBatchRequest: {
|
|
1367
|
+
name: "EmptyBatchRequest",
|
|
1368
|
+
fault: "client",
|
|
1369
|
+
httpStatus: 400,
|
|
1370
|
+
retryable: null,
|
|
1371
|
+
code: "AWS.SimpleQueueService.EmptyBatchRequest",
|
|
1372
|
+
schema: EmptyBatchRequest,
|
|
1373
|
+
},
|
|
1374
|
+
InvalidBatchEntryId: {
|
|
1375
|
+
name: "InvalidBatchEntryId",
|
|
1376
|
+
fault: "client",
|
|
1377
|
+
httpStatus: 400,
|
|
1378
|
+
retryable: null,
|
|
1379
|
+
code: "AWS.SimpleQueueService.InvalidBatchEntryId",
|
|
1380
|
+
schema: InvalidBatchEntryId,
|
|
1381
|
+
},
|
|
1382
|
+
TooManyEntriesInBatchRequest: {
|
|
1383
|
+
name: "TooManyEntriesInBatchRequest",
|
|
1384
|
+
fault: "client",
|
|
1385
|
+
httpStatus: 400,
|
|
1386
|
+
retryable: null,
|
|
1387
|
+
code: "AWS.SimpleQueueService.TooManyEntriesInBatchRequest",
|
|
1388
|
+
schema: TooManyEntriesInBatchRequest,
|
|
1389
|
+
},
|
|
1390
|
+
InvalidAttributeName: {
|
|
1391
|
+
name: "InvalidAttributeName",
|
|
1392
|
+
fault: "client",
|
|
1393
|
+
httpStatus: 400,
|
|
1394
|
+
retryable: null,
|
|
1395
|
+
schema: InvalidAttributeName,
|
|
1396
|
+
},
|
|
1397
|
+
InvalidAttributeValue: {
|
|
1398
|
+
name: "InvalidAttributeValue",
|
|
1399
|
+
fault: "client",
|
|
1400
|
+
httpStatus: 400,
|
|
1401
|
+
retryable: null,
|
|
1402
|
+
schema: InvalidAttributeValue,
|
|
1403
|
+
},
|
|
1404
|
+
QueueDeletedRecently: {
|
|
1405
|
+
name: "QueueDeletedRecently",
|
|
1406
|
+
fault: "client",
|
|
1407
|
+
httpStatus: 400,
|
|
1408
|
+
retryable: null,
|
|
1409
|
+
code: "AWS.SimpleQueueService.QueueDeletedRecently",
|
|
1410
|
+
schema: QueueDeletedRecently,
|
|
1411
|
+
},
|
|
1412
|
+
QueueNameExists: {
|
|
1413
|
+
name: "QueueNameExists",
|
|
1414
|
+
fault: "client",
|
|
1415
|
+
httpStatus: 400,
|
|
1416
|
+
retryable: null,
|
|
1417
|
+
code: "QueueAlreadyExists",
|
|
1418
|
+
schema: QueueNameExists,
|
|
1419
|
+
},
|
|
1420
|
+
InvalidIdFormat: {
|
|
1421
|
+
name: "InvalidIdFormat",
|
|
1422
|
+
fault: "client",
|
|
1423
|
+
httpStatus: 400,
|
|
1424
|
+
retryable: null,
|
|
1425
|
+
schema: InvalidIdFormat,
|
|
1426
|
+
},
|
|
1427
|
+
PurgeQueueInProgress: {
|
|
1428
|
+
name: "PurgeQueueInProgress",
|
|
1429
|
+
fault: "client",
|
|
1430
|
+
httpStatus: 403,
|
|
1431
|
+
retryable: null,
|
|
1432
|
+
code: "AWS.SimpleQueueService.PurgeQueueInProgress",
|
|
1433
|
+
schema: PurgeQueueInProgress,
|
|
1434
|
+
},
|
|
1435
|
+
KmsAccessDenied: {
|
|
1436
|
+
name: "KmsAccessDenied",
|
|
1437
|
+
fault: "client",
|
|
1438
|
+
httpStatus: 400,
|
|
1439
|
+
retryable: null,
|
|
1440
|
+
code: "KMS.AccessDeniedException",
|
|
1441
|
+
schema: KmsAccessDenied,
|
|
1442
|
+
},
|
|
1443
|
+
KmsDisabled: {
|
|
1444
|
+
name: "KmsDisabled",
|
|
1445
|
+
fault: "client",
|
|
1446
|
+
httpStatus: 400,
|
|
1447
|
+
retryable: null,
|
|
1448
|
+
code: "KMS.DisabledException",
|
|
1449
|
+
schema: KmsDisabled,
|
|
1450
|
+
},
|
|
1451
|
+
KmsInvalidKeyUsage: {
|
|
1452
|
+
name: "KmsInvalidKeyUsage",
|
|
1453
|
+
fault: "client",
|
|
1454
|
+
httpStatus: 400,
|
|
1455
|
+
retryable: null,
|
|
1456
|
+
code: "KMS.InvalidKeyUsageException",
|
|
1457
|
+
schema: KmsInvalidKeyUsage,
|
|
1458
|
+
},
|
|
1459
|
+
KmsInvalidState: {
|
|
1460
|
+
name: "KmsInvalidState",
|
|
1461
|
+
fault: "client",
|
|
1462
|
+
httpStatus: 400,
|
|
1463
|
+
retryable: null,
|
|
1464
|
+
code: "KMS.InvalidStateException",
|
|
1465
|
+
schema: KmsInvalidState,
|
|
1466
|
+
},
|
|
1467
|
+
KmsNotFound: {
|
|
1468
|
+
name: "KmsNotFound",
|
|
1469
|
+
fault: "client",
|
|
1470
|
+
httpStatus: 400,
|
|
1471
|
+
retryable: null,
|
|
1472
|
+
code: "KMS.NotFoundException",
|
|
1473
|
+
schema: KmsNotFound,
|
|
1474
|
+
},
|
|
1475
|
+
KmsThrottled: {
|
|
1476
|
+
name: "KmsThrottled",
|
|
1477
|
+
fault: "client",
|
|
1478
|
+
httpStatus: 400,
|
|
1479
|
+
retryable: null,
|
|
1480
|
+
code: "KMS.ThrottlingException",
|
|
1481
|
+
schema: KmsThrottled,
|
|
1482
|
+
},
|
|
1483
|
+
KmsOptInRequired: {
|
|
1484
|
+
name: "KmsOptInRequired",
|
|
1485
|
+
fault: "client",
|
|
1486
|
+
httpStatus: 403,
|
|
1487
|
+
retryable: null,
|
|
1488
|
+
code: "KMS.OptInRequired",
|
|
1489
|
+
schema: KmsOptInRequired,
|
|
1490
|
+
},
|
|
1491
|
+
InvalidMessageContents: {
|
|
1492
|
+
name: "InvalidMessageContents",
|
|
1493
|
+
fault: "client",
|
|
1494
|
+
httpStatus: 400,
|
|
1495
|
+
retryable: null,
|
|
1496
|
+
schema: InvalidMessageContents,
|
|
1497
|
+
},
|
|
1498
|
+
BatchRequestTooLong: {
|
|
1499
|
+
name: "BatchRequestTooLong",
|
|
1500
|
+
fault: "client",
|
|
1501
|
+
httpStatus: 400,
|
|
1502
|
+
retryable: null,
|
|
1503
|
+
code: "AWS.SimpleQueueService.BatchRequestTooLong",
|
|
1504
|
+
schema: BatchRequestTooLong,
|
|
1505
|
+
},
|
|
1506
|
+
};
|
|
1507
|
+
|
|
1508
|
+
export const addPermissionErrors = [
|
|
1509
|
+
sqsErrors.QueueDoesNotExist,
|
|
1510
|
+
sqsErrors.UnsupportedOperation,
|
|
1511
|
+
sqsErrors.InvalidSecurity,
|
|
1512
|
+
sqsErrors.OverLimit,
|
|
1513
|
+
sqsErrors.RequestThrottled,
|
|
1514
|
+
sqsErrors.InvalidAddress,
|
|
1515
|
+
];
|
|
1516
|
+
|
|
1517
|
+
export const cancelMessageMoveTaskErrors = [
|
|
1518
|
+
sqsErrors.UnsupportedOperation,
|
|
1519
|
+
sqsErrors.InvalidSecurity,
|
|
1520
|
+
sqsErrors.RequestThrottled,
|
|
1521
|
+
sqsErrors.InvalidAddress,
|
|
1522
|
+
sqsErrors.ResourceNotFoundException,
|
|
1523
|
+
];
|
|
1524
|
+
|
|
1525
|
+
export const changeMessageVisibilityErrors = [
|
|
1526
|
+
sqsErrors.MessageNotInflight,
|
|
1527
|
+
sqsErrors.QueueDoesNotExist,
|
|
1528
|
+
sqsErrors.UnsupportedOperation,
|
|
1529
|
+
sqsErrors.InvalidSecurity,
|
|
1530
|
+
sqsErrors.RequestThrottled,
|
|
1531
|
+
sqsErrors.InvalidAddress,
|
|
1532
|
+
sqsErrors.ReceiptHandleIsInvalid,
|
|
1533
|
+
];
|
|
1534
|
+
|
|
1535
|
+
export const changeMessageVisibilityBatchErrors = [
|
|
1536
|
+
sqsErrors.BatchEntryIdsNotDistinct,
|
|
1537
|
+
sqsErrors.EmptyBatchRequest,
|
|
1538
|
+
sqsErrors.InvalidBatchEntryId,
|
|
1539
|
+
sqsErrors.QueueDoesNotExist,
|
|
1540
|
+
sqsErrors.TooManyEntriesInBatchRequest,
|
|
1541
|
+
sqsErrors.UnsupportedOperation,
|
|
1542
|
+
sqsErrors.InvalidSecurity,
|
|
1543
|
+
sqsErrors.RequestThrottled,
|
|
1544
|
+
sqsErrors.InvalidAddress,
|
|
1545
|
+
];
|
|
1546
|
+
|
|
1547
|
+
export const createQueueErrors = [
|
|
1548
|
+
sqsErrors.InvalidAttributeName,
|
|
1549
|
+
sqsErrors.InvalidAttributeValue,
|
|
1550
|
+
sqsErrors.QueueDeletedRecently,
|
|
1551
|
+
sqsErrors.QueueNameExists,
|
|
1552
|
+
sqsErrors.UnsupportedOperation,
|
|
1553
|
+
sqsErrors.InvalidSecurity,
|
|
1554
|
+
sqsErrors.RequestThrottled,
|
|
1555
|
+
sqsErrors.InvalidAddress,
|
|
1556
|
+
];
|
|
1557
|
+
|
|
1558
|
+
export const deleteMessageErrors = [
|
|
1559
|
+
sqsErrors.InvalidIdFormat,
|
|
1560
|
+
sqsErrors.QueueDoesNotExist,
|
|
1561
|
+
sqsErrors.UnsupportedOperation,
|
|
1562
|
+
sqsErrors.InvalidSecurity,
|
|
1563
|
+
sqsErrors.RequestThrottled,
|
|
1564
|
+
sqsErrors.InvalidAddress,
|
|
1565
|
+
sqsErrors.ReceiptHandleIsInvalid,
|
|
1566
|
+
];
|
|
1567
|
+
|
|
1568
|
+
export const deleteQueueErrors = [
|
|
1569
|
+
sqsErrors.QueueDoesNotExist,
|
|
1570
|
+
sqsErrors.UnsupportedOperation,
|
|
1571
|
+
sqsErrors.InvalidSecurity,
|
|
1572
|
+
sqsErrors.RequestThrottled,
|
|
1573
|
+
sqsErrors.InvalidAddress,
|
|
1574
|
+
];
|
|
1575
|
+
|
|
1576
|
+
export const getQueueAttributesErrors = [
|
|
1577
|
+
sqsErrors.InvalidAttributeName,
|
|
1578
|
+
sqsErrors.QueueDoesNotExist,
|
|
1579
|
+
sqsErrors.UnsupportedOperation,
|
|
1580
|
+
sqsErrors.InvalidSecurity,
|
|
1581
|
+
sqsErrors.RequestThrottled,
|
|
1582
|
+
sqsErrors.InvalidAddress,
|
|
1583
|
+
];
|
|
1584
|
+
|
|
1585
|
+
export const listQueuesErrors = [
|
|
1586
|
+
sqsErrors.UnsupportedOperation,
|
|
1587
|
+
sqsErrors.InvalidSecurity,
|
|
1588
|
+
sqsErrors.RequestThrottled,
|
|
1589
|
+
sqsErrors.InvalidAddress,
|
|
1590
|
+
];
|
|
1591
|
+
|
|
1592
|
+
export const purgeQueueErrors = [
|
|
1593
|
+
sqsErrors.QueueDoesNotExist,
|
|
1594
|
+
sqsErrors.UnsupportedOperation,
|
|
1595
|
+
sqsErrors.InvalidSecurity,
|
|
1596
|
+
sqsErrors.PurgeQueueInProgress,
|
|
1597
|
+
sqsErrors.RequestThrottled,
|
|
1598
|
+
sqsErrors.InvalidAddress,
|
|
1599
|
+
];
|
|
1600
|
+
|
|
1601
|
+
export const receiveMessageErrors = [
|
|
1602
|
+
sqsErrors.KmsAccessDenied,
|
|
1603
|
+
sqsErrors.KmsDisabled,
|
|
1604
|
+
sqsErrors.KmsInvalidKeyUsage,
|
|
1605
|
+
sqsErrors.KmsInvalidState,
|
|
1606
|
+
sqsErrors.KmsNotFound,
|
|
1607
|
+
sqsErrors.KmsThrottled,
|
|
1608
|
+
sqsErrors.QueueDoesNotExist,
|
|
1609
|
+
sqsErrors.UnsupportedOperation,
|
|
1610
|
+
sqsErrors.InvalidSecurity,
|
|
1611
|
+
sqsErrors.KmsOptInRequired,
|
|
1612
|
+
sqsErrors.OverLimit,
|
|
1613
|
+
sqsErrors.RequestThrottled,
|
|
1614
|
+
sqsErrors.InvalidAddress,
|
|
1615
|
+
];
|
|
1616
|
+
|
|
1617
|
+
export const sendMessageErrors = [
|
|
1618
|
+
sqsErrors.InvalidMessageContents,
|
|
1619
|
+
sqsErrors.KmsAccessDenied,
|
|
1620
|
+
sqsErrors.KmsDisabled,
|
|
1621
|
+
sqsErrors.KmsInvalidKeyUsage,
|
|
1622
|
+
sqsErrors.KmsInvalidState,
|
|
1623
|
+
sqsErrors.KmsNotFound,
|
|
1624
|
+
sqsErrors.KmsThrottled,
|
|
1625
|
+
sqsErrors.QueueDoesNotExist,
|
|
1626
|
+
sqsErrors.UnsupportedOperation,
|
|
1627
|
+
sqsErrors.InvalidSecurity,
|
|
1628
|
+
sqsErrors.KmsOptInRequired,
|
|
1629
|
+
sqsErrors.RequestThrottled,
|
|
1630
|
+
sqsErrors.InvalidAddress,
|
|
1631
|
+
];
|
|
1632
|
+
|
|
1633
|
+
export const sendMessageBatchErrors = [
|
|
1634
|
+
sqsErrors.BatchEntryIdsNotDistinct,
|
|
1635
|
+
sqsErrors.BatchRequestTooLong,
|
|
1636
|
+
sqsErrors.EmptyBatchRequest,
|
|
1637
|
+
sqsErrors.InvalidBatchEntryId,
|
|
1638
|
+
sqsErrors.KmsAccessDenied,
|
|
1639
|
+
sqsErrors.KmsDisabled,
|
|
1640
|
+
sqsErrors.KmsInvalidKeyUsage,
|
|
1641
|
+
sqsErrors.KmsInvalidState,
|
|
1642
|
+
sqsErrors.KmsNotFound,
|
|
1643
|
+
sqsErrors.KmsThrottled,
|
|
1644
|
+
sqsErrors.QueueDoesNotExist,
|
|
1645
|
+
sqsErrors.TooManyEntriesInBatchRequest,
|
|
1646
|
+
sqsErrors.UnsupportedOperation,
|
|
1647
|
+
sqsErrors.InvalidSecurity,
|
|
1648
|
+
sqsErrors.KmsOptInRequired,
|
|
1649
|
+
sqsErrors.RequestThrottled,
|
|
1650
|
+
sqsErrors.InvalidAddress,
|
|
1651
|
+
];
|
|
1652
|
+
|
|
1653
|
+
export const setQueueAttributesErrors = [
|
|
1654
|
+
sqsErrors.InvalidAttributeName,
|
|
1655
|
+
sqsErrors.InvalidAttributeValue,
|
|
1656
|
+
sqsErrors.QueueDoesNotExist,
|
|
1657
|
+
sqsErrors.UnsupportedOperation,
|
|
1658
|
+
sqsErrors.InvalidSecurity,
|
|
1659
|
+
sqsErrors.OverLimit,
|
|
1660
|
+
sqsErrors.RequestThrottled,
|
|
1661
|
+
sqsErrors.InvalidAddress,
|
|
1662
|
+
];
|
|
1663
|
+
|
|
1664
|
+
export const AddPermissionOutput = awsJsonRpcEmptyOutput(
|
|
1665
|
+
"application/x-amz-json-1.0",
|
|
1666
|
+
);
|
|
1667
|
+
|
|
1668
|
+
export const addPermissionOperation: AwsJsonRpcOperation & {
|
|
1669
|
+
readonly input: typeof AddPermissionRequest;
|
|
1670
|
+
readonly output: typeof AddPermissionOutput;
|
|
1671
|
+
} = {
|
|
1672
|
+
name: "AddPermission",
|
|
1673
|
+
method: "POST",
|
|
1674
|
+
path: "/",
|
|
1675
|
+
headers: {
|
|
1676
|
+
"x-amz-target": "AmazonSQS.AddPermission",
|
|
1677
|
+
"content-type": "application/x-amz-json-1.0",
|
|
1678
|
+
},
|
|
1679
|
+
idempotencyTokens: [],
|
|
1680
|
+
pagination: {},
|
|
1681
|
+
input: AddPermissionRequest,
|
|
1682
|
+
output: AddPermissionOutput,
|
|
1683
|
+
errors: addPermissionErrors,
|
|
1684
|
+
};
|
|
1685
|
+
|
|
1686
|
+
export const addPermissionEndpoint = HttpApiEndpoint.make("POST")(
|
|
1687
|
+
"AddPermission",
|
|
1688
|
+
"/",
|
|
1689
|
+
{
|
|
1690
|
+
payload: AddPermissionRequest,
|
|
1691
|
+
success: AddPermissionOutput,
|
|
1692
|
+
},
|
|
1693
|
+
);
|
|
1694
|
+
|
|
1695
|
+
export const cancelMessageMoveTaskOperation: AwsJsonRpcOperation & {
|
|
1696
|
+
readonly input: typeof CancelMessageMoveTaskRequest;
|
|
1697
|
+
readonly output: typeof CancelMessageMoveTaskResult;
|
|
1698
|
+
} = {
|
|
1699
|
+
name: "CancelMessageMoveTask",
|
|
1700
|
+
method: "POST",
|
|
1701
|
+
path: "/",
|
|
1702
|
+
headers: {
|
|
1703
|
+
"x-amz-target": "AmazonSQS.CancelMessageMoveTask",
|
|
1704
|
+
"content-type": "application/x-amz-json-1.0",
|
|
1705
|
+
},
|
|
1706
|
+
idempotencyTokens: [],
|
|
1707
|
+
pagination: {},
|
|
1708
|
+
input: CancelMessageMoveTaskRequest,
|
|
1709
|
+
output: CancelMessageMoveTaskResult,
|
|
1710
|
+
errors: cancelMessageMoveTaskErrors,
|
|
1711
|
+
};
|
|
1712
|
+
|
|
1713
|
+
export const cancelMessageMoveTaskEndpoint = HttpApiEndpoint.make("POST")(
|
|
1714
|
+
"CancelMessageMoveTask",
|
|
1715
|
+
"/",
|
|
1716
|
+
{
|
|
1717
|
+
payload: CancelMessageMoveTaskRequest,
|
|
1718
|
+
success: CancelMessageMoveTaskResult,
|
|
1719
|
+
},
|
|
1720
|
+
);
|
|
1721
|
+
|
|
1722
|
+
export const ChangeMessageVisibilityOutput = awsJsonRpcEmptyOutput(
|
|
1723
|
+
"application/x-amz-json-1.0",
|
|
1724
|
+
);
|
|
1725
|
+
|
|
1726
|
+
export const changeMessageVisibilityOperation: AwsJsonRpcOperation & {
|
|
1727
|
+
readonly input: typeof ChangeMessageVisibilityRequest;
|
|
1728
|
+
readonly output: typeof ChangeMessageVisibilityOutput;
|
|
1729
|
+
} = {
|
|
1730
|
+
name: "ChangeMessageVisibility",
|
|
1731
|
+
method: "POST",
|
|
1732
|
+
path: "/",
|
|
1733
|
+
headers: {
|
|
1734
|
+
"x-amz-target": "AmazonSQS.ChangeMessageVisibility",
|
|
1735
|
+
"content-type": "application/x-amz-json-1.0",
|
|
1736
|
+
},
|
|
1737
|
+
idempotencyTokens: [],
|
|
1738
|
+
pagination: {},
|
|
1739
|
+
input: ChangeMessageVisibilityRequest,
|
|
1740
|
+
output: ChangeMessageVisibilityOutput,
|
|
1741
|
+
errors: changeMessageVisibilityErrors,
|
|
1742
|
+
};
|
|
1743
|
+
|
|
1744
|
+
export const changeMessageVisibilityEndpoint = HttpApiEndpoint.make("POST")(
|
|
1745
|
+
"ChangeMessageVisibility",
|
|
1746
|
+
"/",
|
|
1747
|
+
{
|
|
1748
|
+
payload: ChangeMessageVisibilityRequest,
|
|
1749
|
+
success: ChangeMessageVisibilityOutput,
|
|
1750
|
+
},
|
|
1751
|
+
);
|
|
1752
|
+
|
|
1753
|
+
export const changeMessageVisibilityBatchOperation: AwsJsonRpcOperation & {
|
|
1754
|
+
readonly input: typeof ChangeMessageVisibilityBatchRequest;
|
|
1755
|
+
readonly output: typeof ChangeMessageVisibilityBatchResult;
|
|
1756
|
+
} = {
|
|
1757
|
+
name: "ChangeMessageVisibilityBatch",
|
|
1758
|
+
method: "POST",
|
|
1759
|
+
path: "/",
|
|
1760
|
+
headers: {
|
|
1761
|
+
"x-amz-target": "AmazonSQS.ChangeMessageVisibilityBatch",
|
|
1762
|
+
"content-type": "application/x-amz-json-1.0",
|
|
1763
|
+
},
|
|
1764
|
+
idempotencyTokens: [],
|
|
1765
|
+
pagination: {},
|
|
1766
|
+
input: ChangeMessageVisibilityBatchRequest,
|
|
1767
|
+
output: ChangeMessageVisibilityBatchResult,
|
|
1768
|
+
errors: changeMessageVisibilityBatchErrors,
|
|
1769
|
+
};
|
|
1770
|
+
|
|
1771
|
+
export const changeMessageVisibilityBatchEndpoint = HttpApiEndpoint.make(
|
|
1772
|
+
"POST",
|
|
1773
|
+
)("ChangeMessageVisibilityBatch", "/", {
|
|
1774
|
+
payload: ChangeMessageVisibilityBatchRequest,
|
|
1775
|
+
success: ChangeMessageVisibilityBatchResult,
|
|
1776
|
+
});
|
|
1777
|
+
|
|
1778
|
+
export const createQueueOperation: AwsJsonRpcOperation & {
|
|
1779
|
+
readonly input: typeof CreateQueueRequest;
|
|
1780
|
+
readonly output: typeof CreateQueueResult;
|
|
1781
|
+
} = {
|
|
1782
|
+
name: "CreateQueue",
|
|
1783
|
+
method: "POST",
|
|
1784
|
+
path: "/",
|
|
1785
|
+
headers: {
|
|
1786
|
+
"x-amz-target": "AmazonSQS.CreateQueue",
|
|
1787
|
+
"content-type": "application/x-amz-json-1.0",
|
|
1788
|
+
},
|
|
1789
|
+
idempotencyTokens: [],
|
|
1790
|
+
pagination: {},
|
|
1791
|
+
input: CreateQueueRequest,
|
|
1792
|
+
output: CreateQueueResult,
|
|
1793
|
+
errors: createQueueErrors,
|
|
1794
|
+
};
|
|
1795
|
+
|
|
1796
|
+
export const createQueueEndpoint = HttpApiEndpoint.make("POST")(
|
|
1797
|
+
"CreateQueue",
|
|
1798
|
+
"/",
|
|
1799
|
+
{
|
|
1800
|
+
payload: CreateQueueRequest,
|
|
1801
|
+
success: CreateQueueResult,
|
|
1802
|
+
},
|
|
1803
|
+
);
|
|
1804
|
+
|
|
1805
|
+
export const DeleteMessageOutput = awsJsonRpcEmptyOutput(
|
|
1806
|
+
"application/x-amz-json-1.0",
|
|
1807
|
+
);
|
|
1808
|
+
|
|
1809
|
+
export const deleteMessageOperation: AwsJsonRpcOperation & {
|
|
1810
|
+
readonly input: typeof DeleteMessageRequest;
|
|
1811
|
+
readonly output: typeof DeleteMessageOutput;
|
|
1812
|
+
} = {
|
|
1813
|
+
name: "DeleteMessage",
|
|
1814
|
+
method: "POST",
|
|
1815
|
+
path: "/",
|
|
1816
|
+
headers: {
|
|
1817
|
+
"x-amz-target": "AmazonSQS.DeleteMessage",
|
|
1818
|
+
"content-type": "application/x-amz-json-1.0",
|
|
1819
|
+
},
|
|
1820
|
+
idempotencyTokens: [],
|
|
1821
|
+
pagination: {},
|
|
1822
|
+
input: DeleteMessageRequest,
|
|
1823
|
+
output: DeleteMessageOutput,
|
|
1824
|
+
errors: deleteMessageErrors,
|
|
1825
|
+
};
|
|
1826
|
+
|
|
1827
|
+
export const deleteMessageEndpoint = HttpApiEndpoint.make("POST")(
|
|
1828
|
+
"DeleteMessage",
|
|
1829
|
+
"/",
|
|
1830
|
+
{
|
|
1831
|
+
payload: DeleteMessageRequest,
|
|
1832
|
+
success: DeleteMessageOutput,
|
|
1833
|
+
},
|
|
1834
|
+
);
|
|
1835
|
+
|
|
1836
|
+
export const deleteMessageBatchOperation: AwsJsonRpcOperation & {
|
|
1837
|
+
readonly input: typeof DeleteMessageBatchRequest;
|
|
1838
|
+
readonly output: typeof DeleteMessageBatchResult;
|
|
1839
|
+
} = {
|
|
1840
|
+
name: "DeleteMessageBatch",
|
|
1841
|
+
method: "POST",
|
|
1842
|
+
path: "/",
|
|
1843
|
+
headers: {
|
|
1844
|
+
"x-amz-target": "AmazonSQS.DeleteMessageBatch",
|
|
1845
|
+
"content-type": "application/x-amz-json-1.0",
|
|
1846
|
+
},
|
|
1847
|
+
idempotencyTokens: [],
|
|
1848
|
+
pagination: {},
|
|
1849
|
+
input: DeleteMessageBatchRequest,
|
|
1850
|
+
output: DeleteMessageBatchResult,
|
|
1851
|
+
errors: changeMessageVisibilityBatchErrors,
|
|
1852
|
+
};
|
|
1853
|
+
|
|
1854
|
+
export const deleteMessageBatchEndpoint = HttpApiEndpoint.make("POST")(
|
|
1855
|
+
"DeleteMessageBatch",
|
|
1856
|
+
"/",
|
|
1857
|
+
{
|
|
1858
|
+
payload: DeleteMessageBatchRequest,
|
|
1859
|
+
success: DeleteMessageBatchResult,
|
|
1860
|
+
},
|
|
1861
|
+
);
|
|
1862
|
+
|
|
1863
|
+
export const DeleteQueueOutput = awsJsonRpcEmptyOutput(
|
|
1864
|
+
"application/x-amz-json-1.0",
|
|
1865
|
+
);
|
|
1866
|
+
|
|
1867
|
+
export const deleteQueueOperation: AwsJsonRpcOperation & {
|
|
1868
|
+
readonly input: typeof DeleteQueueRequest;
|
|
1869
|
+
readonly output: typeof DeleteQueueOutput;
|
|
1870
|
+
} = {
|
|
1871
|
+
name: "DeleteQueue",
|
|
1872
|
+
method: "POST",
|
|
1873
|
+
path: "/",
|
|
1874
|
+
headers: {
|
|
1875
|
+
"x-amz-target": "AmazonSQS.DeleteQueue",
|
|
1876
|
+
"content-type": "application/x-amz-json-1.0",
|
|
1877
|
+
},
|
|
1878
|
+
idempotencyTokens: [],
|
|
1879
|
+
pagination: {},
|
|
1880
|
+
input: DeleteQueueRequest,
|
|
1881
|
+
output: DeleteQueueOutput,
|
|
1882
|
+
errors: deleteQueueErrors,
|
|
1883
|
+
};
|
|
1884
|
+
|
|
1885
|
+
export const deleteQueueEndpoint = HttpApiEndpoint.make("POST")(
|
|
1886
|
+
"DeleteQueue",
|
|
1887
|
+
"/",
|
|
1888
|
+
{
|
|
1889
|
+
payload: DeleteQueueRequest,
|
|
1890
|
+
success: DeleteQueueOutput,
|
|
1891
|
+
},
|
|
1892
|
+
);
|
|
1893
|
+
|
|
1894
|
+
export const getQueueAttributesOperation: AwsJsonRpcOperation & {
|
|
1895
|
+
readonly input: typeof GetQueueAttributesRequest;
|
|
1896
|
+
readonly output: typeof GetQueueAttributesResult;
|
|
1897
|
+
} = {
|
|
1898
|
+
name: "GetQueueAttributes",
|
|
1899
|
+
method: "POST",
|
|
1900
|
+
path: "/",
|
|
1901
|
+
headers: {
|
|
1902
|
+
"x-amz-target": "AmazonSQS.GetQueueAttributes",
|
|
1903
|
+
"content-type": "application/x-amz-json-1.0",
|
|
1904
|
+
},
|
|
1905
|
+
idempotencyTokens: [],
|
|
1906
|
+
pagination: {},
|
|
1907
|
+
input: GetQueueAttributesRequest,
|
|
1908
|
+
output: GetQueueAttributesResult,
|
|
1909
|
+
errors: getQueueAttributesErrors,
|
|
1910
|
+
};
|
|
1911
|
+
|
|
1912
|
+
export const getQueueAttributesEndpoint = HttpApiEndpoint.make("POST")(
|
|
1913
|
+
"GetQueueAttributes",
|
|
1914
|
+
"/",
|
|
1915
|
+
{
|
|
1916
|
+
payload: GetQueueAttributesRequest,
|
|
1917
|
+
success: GetQueueAttributesResult,
|
|
1918
|
+
},
|
|
1919
|
+
);
|
|
1920
|
+
|
|
1921
|
+
export const getQueueUrlOperation: AwsJsonRpcOperation & {
|
|
1922
|
+
readonly input: typeof GetQueueUrlRequest;
|
|
1923
|
+
readonly output: typeof GetQueueUrlResult;
|
|
1924
|
+
} = {
|
|
1925
|
+
name: "GetQueueUrl",
|
|
1926
|
+
method: "POST",
|
|
1927
|
+
path: "/",
|
|
1928
|
+
headers: {
|
|
1929
|
+
"x-amz-target": "AmazonSQS.GetQueueUrl",
|
|
1930
|
+
"content-type": "application/x-amz-json-1.0",
|
|
1931
|
+
},
|
|
1932
|
+
idempotencyTokens: [],
|
|
1933
|
+
pagination: {},
|
|
1934
|
+
input: GetQueueUrlRequest,
|
|
1935
|
+
output: GetQueueUrlResult,
|
|
1936
|
+
errors: deleteQueueErrors,
|
|
1937
|
+
};
|
|
1938
|
+
|
|
1939
|
+
export const getQueueUrlEndpoint = HttpApiEndpoint.make("POST")(
|
|
1940
|
+
"GetQueueUrl",
|
|
1941
|
+
"/",
|
|
1942
|
+
{
|
|
1943
|
+
payload: GetQueueUrlRequest,
|
|
1944
|
+
success: GetQueueUrlResult,
|
|
1945
|
+
},
|
|
1946
|
+
);
|
|
1947
|
+
|
|
1948
|
+
export const listDeadLetterSourceQueuesOperation: AwsJsonRpcOperation & {
|
|
1949
|
+
readonly input: typeof ListDeadLetterSourceQueuesRequest;
|
|
1950
|
+
readonly output: typeof ListDeadLetterSourceQueuesResult;
|
|
1951
|
+
} = {
|
|
1952
|
+
name: "ListDeadLetterSourceQueues",
|
|
1953
|
+
method: "POST",
|
|
1954
|
+
path: "/",
|
|
1955
|
+
headers: {
|
|
1956
|
+
"x-amz-target": "AmazonSQS.ListDeadLetterSourceQueues",
|
|
1957
|
+
"content-type": "application/x-amz-json-1.0",
|
|
1958
|
+
},
|
|
1959
|
+
idempotencyTokens: [],
|
|
1960
|
+
pagination: {
|
|
1961
|
+
inputToken: "NextToken",
|
|
1962
|
+
outputToken: "NextToken",
|
|
1963
|
+
items: "queueUrls",
|
|
1964
|
+
pageSize: "MaxResults",
|
|
1965
|
+
},
|
|
1966
|
+
input: ListDeadLetterSourceQueuesRequest,
|
|
1967
|
+
output: ListDeadLetterSourceQueuesResult,
|
|
1968
|
+
errors: deleteQueueErrors,
|
|
1969
|
+
};
|
|
1970
|
+
|
|
1971
|
+
export const listDeadLetterSourceQueuesEndpoint = HttpApiEndpoint.make("POST")(
|
|
1972
|
+
"ListDeadLetterSourceQueues",
|
|
1973
|
+
"/",
|
|
1974
|
+
{
|
|
1975
|
+
payload: ListDeadLetterSourceQueuesRequest,
|
|
1976
|
+
success: ListDeadLetterSourceQueuesResult,
|
|
1977
|
+
},
|
|
1978
|
+
);
|
|
1979
|
+
|
|
1980
|
+
export const listMessageMoveTasksOperation: AwsJsonRpcOperation & {
|
|
1981
|
+
readonly input: typeof ListMessageMoveTasksRequest;
|
|
1982
|
+
readonly output: typeof ListMessageMoveTasksResult;
|
|
1983
|
+
} = {
|
|
1984
|
+
name: "ListMessageMoveTasks",
|
|
1985
|
+
method: "POST",
|
|
1986
|
+
path: "/",
|
|
1987
|
+
headers: {
|
|
1988
|
+
"x-amz-target": "AmazonSQS.ListMessageMoveTasks",
|
|
1989
|
+
"content-type": "application/x-amz-json-1.0",
|
|
1990
|
+
},
|
|
1991
|
+
idempotencyTokens: [],
|
|
1992
|
+
pagination: {},
|
|
1993
|
+
input: ListMessageMoveTasksRequest,
|
|
1994
|
+
output: ListMessageMoveTasksResult,
|
|
1995
|
+
errors: cancelMessageMoveTaskErrors,
|
|
1996
|
+
};
|
|
1997
|
+
|
|
1998
|
+
export const listMessageMoveTasksEndpoint = HttpApiEndpoint.make("POST")(
|
|
1999
|
+
"ListMessageMoveTasks",
|
|
2000
|
+
"/",
|
|
2001
|
+
{
|
|
2002
|
+
payload: ListMessageMoveTasksRequest,
|
|
2003
|
+
success: ListMessageMoveTasksResult,
|
|
2004
|
+
},
|
|
2005
|
+
);
|
|
2006
|
+
|
|
2007
|
+
export const listQueueTagsOperation: AwsJsonRpcOperation & {
|
|
2008
|
+
readonly input: typeof ListQueueTagsRequest;
|
|
2009
|
+
readonly output: typeof ListQueueTagsResult;
|
|
2010
|
+
} = {
|
|
2011
|
+
name: "ListQueueTags",
|
|
2012
|
+
method: "POST",
|
|
2013
|
+
path: "/",
|
|
2014
|
+
headers: {
|
|
2015
|
+
"x-amz-target": "AmazonSQS.ListQueueTags",
|
|
2016
|
+
"content-type": "application/x-amz-json-1.0",
|
|
2017
|
+
},
|
|
2018
|
+
idempotencyTokens: [],
|
|
2019
|
+
pagination: {},
|
|
2020
|
+
input: ListQueueTagsRequest,
|
|
2021
|
+
output: ListQueueTagsResult,
|
|
2022
|
+
errors: deleteQueueErrors,
|
|
2023
|
+
};
|
|
2024
|
+
|
|
2025
|
+
export const listQueueTagsEndpoint = HttpApiEndpoint.make("POST")(
|
|
2026
|
+
"ListQueueTags",
|
|
2027
|
+
"/",
|
|
2028
|
+
{
|
|
2029
|
+
payload: ListQueueTagsRequest,
|
|
2030
|
+
success: ListQueueTagsResult,
|
|
2031
|
+
},
|
|
2032
|
+
);
|
|
2033
|
+
|
|
2034
|
+
export const listQueuesOperation: AwsJsonRpcOperation & {
|
|
2035
|
+
readonly input: typeof ListQueuesRequest;
|
|
2036
|
+
readonly output: typeof ListQueuesResult;
|
|
2037
|
+
} = {
|
|
2038
|
+
name: "ListQueues",
|
|
2039
|
+
method: "POST",
|
|
2040
|
+
path: "/",
|
|
2041
|
+
headers: {
|
|
2042
|
+
"x-amz-target": "AmazonSQS.ListQueues",
|
|
2043
|
+
"content-type": "application/x-amz-json-1.0",
|
|
2044
|
+
},
|
|
2045
|
+
idempotencyTokens: [],
|
|
2046
|
+
pagination: {
|
|
2047
|
+
inputToken: "NextToken",
|
|
2048
|
+
outputToken: "NextToken",
|
|
2049
|
+
items: "QueueUrls",
|
|
2050
|
+
pageSize: "MaxResults",
|
|
2051
|
+
},
|
|
2052
|
+
input: ListQueuesRequest,
|
|
2053
|
+
output: ListQueuesResult,
|
|
2054
|
+
errors: listQueuesErrors,
|
|
2055
|
+
};
|
|
2056
|
+
|
|
2057
|
+
export const listQueuesEndpoint = HttpApiEndpoint.make("POST")(
|
|
2058
|
+
"ListQueues",
|
|
2059
|
+
"/",
|
|
2060
|
+
{
|
|
2061
|
+
payload: ListQueuesRequest,
|
|
2062
|
+
success: ListQueuesResult,
|
|
2063
|
+
},
|
|
2064
|
+
);
|
|
2065
|
+
|
|
2066
|
+
export const PurgeQueueOutput = awsJsonRpcEmptyOutput(
|
|
2067
|
+
"application/x-amz-json-1.0",
|
|
2068
|
+
);
|
|
2069
|
+
|
|
2070
|
+
export const purgeQueueOperation: AwsJsonRpcOperation & {
|
|
2071
|
+
readonly input: typeof PurgeQueueRequest;
|
|
2072
|
+
readonly output: typeof PurgeQueueOutput;
|
|
2073
|
+
} = {
|
|
2074
|
+
name: "PurgeQueue",
|
|
2075
|
+
method: "POST",
|
|
2076
|
+
path: "/",
|
|
2077
|
+
headers: {
|
|
2078
|
+
"x-amz-target": "AmazonSQS.PurgeQueue",
|
|
2079
|
+
"content-type": "application/x-amz-json-1.0",
|
|
2080
|
+
},
|
|
2081
|
+
idempotencyTokens: [],
|
|
2082
|
+
pagination: {},
|
|
2083
|
+
input: PurgeQueueRequest,
|
|
2084
|
+
output: PurgeQueueOutput,
|
|
2085
|
+
errors: purgeQueueErrors,
|
|
2086
|
+
};
|
|
2087
|
+
|
|
2088
|
+
export const purgeQueueEndpoint = HttpApiEndpoint.make("POST")(
|
|
2089
|
+
"PurgeQueue",
|
|
2090
|
+
"/",
|
|
2091
|
+
{
|
|
2092
|
+
payload: PurgeQueueRequest,
|
|
2093
|
+
success: PurgeQueueOutput,
|
|
2094
|
+
},
|
|
2095
|
+
);
|
|
2096
|
+
|
|
2097
|
+
export const receiveMessageOperation: AwsJsonRpcOperation & {
|
|
2098
|
+
readonly input: typeof ReceiveMessageRequest;
|
|
2099
|
+
readonly output: typeof ReceiveMessageResult;
|
|
2100
|
+
} = {
|
|
2101
|
+
name: "ReceiveMessage",
|
|
2102
|
+
method: "POST",
|
|
2103
|
+
path: "/",
|
|
2104
|
+
headers: {
|
|
2105
|
+
"x-amz-target": "AmazonSQS.ReceiveMessage",
|
|
2106
|
+
"content-type": "application/x-amz-json-1.0",
|
|
2107
|
+
},
|
|
2108
|
+
idempotencyTokens: [],
|
|
2109
|
+
pagination: {},
|
|
2110
|
+
input: ReceiveMessageRequest,
|
|
2111
|
+
output: ReceiveMessageResult,
|
|
2112
|
+
errors: receiveMessageErrors,
|
|
2113
|
+
};
|
|
2114
|
+
|
|
2115
|
+
export const receiveMessageEndpoint = HttpApiEndpoint.make("POST")(
|
|
2116
|
+
"ReceiveMessage",
|
|
2117
|
+
"/",
|
|
2118
|
+
{
|
|
2119
|
+
payload: ReceiveMessageRequest,
|
|
2120
|
+
success: ReceiveMessageResult,
|
|
2121
|
+
},
|
|
2122
|
+
);
|
|
2123
|
+
|
|
2124
|
+
export const RemovePermissionOutput = awsJsonRpcEmptyOutput(
|
|
2125
|
+
"application/x-amz-json-1.0",
|
|
2126
|
+
);
|
|
2127
|
+
|
|
2128
|
+
export const removePermissionOperation: AwsJsonRpcOperation & {
|
|
2129
|
+
readonly input: typeof RemovePermissionRequest;
|
|
2130
|
+
readonly output: typeof RemovePermissionOutput;
|
|
2131
|
+
} = {
|
|
2132
|
+
name: "RemovePermission",
|
|
2133
|
+
method: "POST",
|
|
2134
|
+
path: "/",
|
|
2135
|
+
headers: {
|
|
2136
|
+
"x-amz-target": "AmazonSQS.RemovePermission",
|
|
2137
|
+
"content-type": "application/x-amz-json-1.0",
|
|
2138
|
+
},
|
|
2139
|
+
idempotencyTokens: [],
|
|
2140
|
+
pagination: {},
|
|
2141
|
+
input: RemovePermissionRequest,
|
|
2142
|
+
output: RemovePermissionOutput,
|
|
2143
|
+
errors: deleteQueueErrors,
|
|
2144
|
+
};
|
|
2145
|
+
|
|
2146
|
+
export const removePermissionEndpoint = HttpApiEndpoint.make("POST")(
|
|
2147
|
+
"RemovePermission",
|
|
2148
|
+
"/",
|
|
2149
|
+
{
|
|
2150
|
+
payload: RemovePermissionRequest,
|
|
2151
|
+
success: RemovePermissionOutput,
|
|
2152
|
+
},
|
|
2153
|
+
);
|
|
2154
|
+
|
|
2155
|
+
export const sendMessageOperation: AwsJsonRpcOperation & {
|
|
2156
|
+
readonly input: typeof SendMessageRequest;
|
|
2157
|
+
readonly output: typeof SendMessageResult;
|
|
2158
|
+
} = {
|
|
2159
|
+
name: "SendMessage",
|
|
2160
|
+
method: "POST",
|
|
2161
|
+
path: "/",
|
|
2162
|
+
headers: {
|
|
2163
|
+
"x-amz-target": "AmazonSQS.SendMessage",
|
|
2164
|
+
"content-type": "application/x-amz-json-1.0",
|
|
2165
|
+
},
|
|
2166
|
+
idempotencyTokens: [],
|
|
2167
|
+
pagination: {},
|
|
2168
|
+
input: SendMessageRequest,
|
|
2169
|
+
output: SendMessageResult,
|
|
2170
|
+
errors: sendMessageErrors,
|
|
2171
|
+
};
|
|
2172
|
+
|
|
2173
|
+
export const sendMessageEndpoint = HttpApiEndpoint.make("POST")(
|
|
2174
|
+
"SendMessage",
|
|
2175
|
+
"/",
|
|
2176
|
+
{
|
|
2177
|
+
payload: SendMessageRequest,
|
|
2178
|
+
success: SendMessageResult,
|
|
2179
|
+
},
|
|
2180
|
+
);
|
|
2181
|
+
|
|
2182
|
+
export const sendMessageBatchOperation: AwsJsonRpcOperation & {
|
|
2183
|
+
readonly input: typeof SendMessageBatchRequest;
|
|
2184
|
+
readonly output: typeof SendMessageBatchResult;
|
|
2185
|
+
} = {
|
|
2186
|
+
name: "SendMessageBatch",
|
|
2187
|
+
method: "POST",
|
|
2188
|
+
path: "/",
|
|
2189
|
+
headers: {
|
|
2190
|
+
"x-amz-target": "AmazonSQS.SendMessageBatch",
|
|
2191
|
+
"content-type": "application/x-amz-json-1.0",
|
|
2192
|
+
},
|
|
2193
|
+
idempotencyTokens: [],
|
|
2194
|
+
pagination: {},
|
|
2195
|
+
input: SendMessageBatchRequest,
|
|
2196
|
+
output: SendMessageBatchResult,
|
|
2197
|
+
errors: sendMessageBatchErrors,
|
|
2198
|
+
};
|
|
2199
|
+
|
|
2200
|
+
export const sendMessageBatchEndpoint = HttpApiEndpoint.make("POST")(
|
|
2201
|
+
"SendMessageBatch",
|
|
2202
|
+
"/",
|
|
2203
|
+
{
|
|
2204
|
+
payload: SendMessageBatchRequest,
|
|
2205
|
+
success: SendMessageBatchResult,
|
|
2206
|
+
},
|
|
2207
|
+
);
|
|
2208
|
+
|
|
2209
|
+
export const SetQueueAttributesOutput = awsJsonRpcEmptyOutput(
|
|
2210
|
+
"application/x-amz-json-1.0",
|
|
2211
|
+
);
|
|
2212
|
+
|
|
2213
|
+
export const setQueueAttributesOperation: AwsJsonRpcOperation & {
|
|
2214
|
+
readonly input: typeof SetQueueAttributesRequest;
|
|
2215
|
+
readonly output: typeof SetQueueAttributesOutput;
|
|
2216
|
+
} = {
|
|
2217
|
+
name: "SetQueueAttributes",
|
|
2218
|
+
method: "POST",
|
|
2219
|
+
path: "/",
|
|
2220
|
+
headers: {
|
|
2221
|
+
"x-amz-target": "AmazonSQS.SetQueueAttributes",
|
|
2222
|
+
"content-type": "application/x-amz-json-1.0",
|
|
2223
|
+
},
|
|
2224
|
+
idempotencyTokens: [],
|
|
2225
|
+
pagination: {},
|
|
2226
|
+
input: SetQueueAttributesRequest,
|
|
2227
|
+
output: SetQueueAttributesOutput,
|
|
2228
|
+
errors: setQueueAttributesErrors,
|
|
2229
|
+
};
|
|
2230
|
+
|
|
2231
|
+
export const setQueueAttributesEndpoint = HttpApiEndpoint.make("POST")(
|
|
2232
|
+
"SetQueueAttributes",
|
|
2233
|
+
"/",
|
|
2234
|
+
{
|
|
2235
|
+
payload: SetQueueAttributesRequest,
|
|
2236
|
+
success: SetQueueAttributesOutput,
|
|
2237
|
+
},
|
|
2238
|
+
);
|
|
2239
|
+
|
|
2240
|
+
export const startMessageMoveTaskOperation: AwsJsonRpcOperation & {
|
|
2241
|
+
readonly input: typeof StartMessageMoveTaskRequest;
|
|
2242
|
+
readonly output: typeof StartMessageMoveTaskResult;
|
|
2243
|
+
} = {
|
|
2244
|
+
name: "StartMessageMoveTask",
|
|
2245
|
+
method: "POST",
|
|
2246
|
+
path: "/",
|
|
2247
|
+
headers: {
|
|
2248
|
+
"x-amz-target": "AmazonSQS.StartMessageMoveTask",
|
|
2249
|
+
"content-type": "application/x-amz-json-1.0",
|
|
2250
|
+
},
|
|
2251
|
+
idempotencyTokens: [],
|
|
2252
|
+
pagination: {},
|
|
2253
|
+
input: StartMessageMoveTaskRequest,
|
|
2254
|
+
output: StartMessageMoveTaskResult,
|
|
2255
|
+
errors: cancelMessageMoveTaskErrors,
|
|
2256
|
+
};
|
|
2257
|
+
|
|
2258
|
+
export const startMessageMoveTaskEndpoint = HttpApiEndpoint.make("POST")(
|
|
2259
|
+
"StartMessageMoveTask",
|
|
2260
|
+
"/",
|
|
2261
|
+
{
|
|
2262
|
+
payload: StartMessageMoveTaskRequest,
|
|
2263
|
+
success: StartMessageMoveTaskResult,
|
|
2264
|
+
},
|
|
2265
|
+
);
|
|
2266
|
+
|
|
2267
|
+
export const TagQueueOutput = awsJsonRpcEmptyOutput(
|
|
2268
|
+
"application/x-amz-json-1.0",
|
|
2269
|
+
);
|
|
2270
|
+
|
|
2271
|
+
export const tagQueueOperation: AwsJsonRpcOperation & {
|
|
2272
|
+
readonly input: typeof TagQueueRequest;
|
|
2273
|
+
readonly output: typeof TagQueueOutput;
|
|
2274
|
+
} = {
|
|
2275
|
+
name: "TagQueue",
|
|
2276
|
+
method: "POST",
|
|
2277
|
+
path: "/",
|
|
2278
|
+
headers: {
|
|
2279
|
+
"x-amz-target": "AmazonSQS.TagQueue",
|
|
2280
|
+
"content-type": "application/x-amz-json-1.0",
|
|
2281
|
+
},
|
|
2282
|
+
idempotencyTokens: [],
|
|
2283
|
+
pagination: {},
|
|
2284
|
+
input: TagQueueRequest,
|
|
2285
|
+
output: TagQueueOutput,
|
|
2286
|
+
errors: deleteQueueErrors,
|
|
2287
|
+
};
|
|
2288
|
+
|
|
2289
|
+
export const tagQueueEndpoint = HttpApiEndpoint.make("POST")("TagQueue", "/", {
|
|
2290
|
+
payload: TagQueueRequest,
|
|
2291
|
+
success: TagQueueOutput,
|
|
2292
|
+
});
|
|
2293
|
+
|
|
2294
|
+
export const UntagQueueOutput = awsJsonRpcEmptyOutput(
|
|
2295
|
+
"application/x-amz-json-1.0",
|
|
2296
|
+
);
|
|
2297
|
+
|
|
2298
|
+
export const untagQueueOperation: AwsJsonRpcOperation & {
|
|
2299
|
+
readonly input: typeof UntagQueueRequest;
|
|
2300
|
+
readonly output: typeof UntagQueueOutput;
|
|
2301
|
+
} = {
|
|
2302
|
+
name: "UntagQueue",
|
|
2303
|
+
method: "POST",
|
|
2304
|
+
path: "/",
|
|
2305
|
+
headers: {
|
|
2306
|
+
"x-amz-target": "AmazonSQS.UntagQueue",
|
|
2307
|
+
"content-type": "application/x-amz-json-1.0",
|
|
2308
|
+
},
|
|
2309
|
+
idempotencyTokens: [],
|
|
2310
|
+
pagination: {},
|
|
2311
|
+
input: UntagQueueRequest,
|
|
2312
|
+
output: UntagQueueOutput,
|
|
2313
|
+
errors: deleteQueueErrors,
|
|
2314
|
+
};
|
|
2315
|
+
|
|
2316
|
+
export const untagQueueEndpoint = HttpApiEndpoint.make("POST")(
|
|
2317
|
+
"UntagQueue",
|
|
2318
|
+
"/",
|
|
2319
|
+
{
|
|
2320
|
+
payload: UntagQueueRequest,
|
|
2321
|
+
success: UntagQueueOutput,
|
|
2322
|
+
},
|
|
2323
|
+
);
|
|
2324
|
+
|
|
2325
|
+
export const sqsOperations = {
|
|
2326
|
+
AddPermission: addPermissionOperation,
|
|
2327
|
+
CancelMessageMoveTask: cancelMessageMoveTaskOperation,
|
|
2328
|
+
ChangeMessageVisibility: changeMessageVisibilityOperation,
|
|
2329
|
+
ChangeMessageVisibilityBatch: changeMessageVisibilityBatchOperation,
|
|
2330
|
+
CreateQueue: createQueueOperation,
|
|
2331
|
+
DeleteMessage: deleteMessageOperation,
|
|
2332
|
+
DeleteMessageBatch: deleteMessageBatchOperation,
|
|
2333
|
+
DeleteQueue: deleteQueueOperation,
|
|
2334
|
+
GetQueueAttributes: getQueueAttributesOperation,
|
|
2335
|
+
GetQueueUrl: getQueueUrlOperation,
|
|
2336
|
+
ListDeadLetterSourceQueues: listDeadLetterSourceQueuesOperation,
|
|
2337
|
+
ListMessageMoveTasks: listMessageMoveTasksOperation,
|
|
2338
|
+
ListQueueTags: listQueueTagsOperation,
|
|
2339
|
+
ListQueues: listQueuesOperation,
|
|
2340
|
+
PurgeQueue: purgeQueueOperation,
|
|
2341
|
+
ReceiveMessage: receiveMessageOperation,
|
|
2342
|
+
RemovePermission: removePermissionOperation,
|
|
2343
|
+
SendMessage: sendMessageOperation,
|
|
2344
|
+
SendMessageBatch: sendMessageBatchOperation,
|
|
2345
|
+
SetQueueAttributes: setQueueAttributesOperation,
|
|
2346
|
+
StartMessageMoveTask: startMessageMoveTaskOperation,
|
|
2347
|
+
TagQueue: tagQueueOperation,
|
|
2348
|
+
UntagQueue: untagQueueOperation,
|
|
2349
|
+
};
|
|
2350
|
+
|
|
2351
|
+
export const sqsApi = HttpApi.make("SQS").add(
|
|
2352
|
+
HttpApiGroup.make("sqs").add(
|
|
2353
|
+
addPermissionEndpoint,
|
|
2354
|
+
cancelMessageMoveTaskEndpoint,
|
|
2355
|
+
changeMessageVisibilityEndpoint,
|
|
2356
|
+
changeMessageVisibilityBatchEndpoint,
|
|
2357
|
+
createQueueEndpoint,
|
|
2358
|
+
deleteMessageEndpoint,
|
|
2359
|
+
deleteMessageBatchEndpoint,
|
|
2360
|
+
deleteQueueEndpoint,
|
|
2361
|
+
getQueueAttributesEndpoint,
|
|
2362
|
+
getQueueUrlEndpoint,
|
|
2363
|
+
listDeadLetterSourceQueuesEndpoint,
|
|
2364
|
+
listMessageMoveTasksEndpoint,
|
|
2365
|
+
listQueueTagsEndpoint,
|
|
2366
|
+
listQueuesEndpoint,
|
|
2367
|
+
purgeQueueEndpoint,
|
|
2368
|
+
receiveMessageEndpoint,
|
|
2369
|
+
removePermissionEndpoint,
|
|
2370
|
+
sendMessageEndpoint,
|
|
2371
|
+
sendMessageBatchEndpoint,
|
|
2372
|
+
setQueueAttributesEndpoint,
|
|
2373
|
+
startMessageMoveTaskEndpoint,
|
|
2374
|
+
tagQueueEndpoint,
|
|
2375
|
+
untagQueueEndpoint,
|
|
2376
|
+
),
|
|
2377
|
+
);
|
|
2378
|
+
|
|
2379
|
+
export const sqsService: AwsServiceDefinition = {
|
|
2380
|
+
service: "com.amazonaws.sqs#AmazonSQS",
|
|
2381
|
+
version: "2012-11-05",
|
|
2382
|
+
protocol: "awsJson1_0",
|
|
2383
|
+
signingName: "sqs",
|
|
2384
|
+
endpointRules: {
|
|
2385
|
+
version: "1.0",
|
|
2386
|
+
parameters: {
|
|
2387
|
+
Region: {
|
|
2388
|
+
type: "string",
|
|
2389
|
+
required: false,
|
|
2390
|
+
},
|
|
2391
|
+
UseDualStack: {
|
|
2392
|
+
type: "boolean",
|
|
2393
|
+
required: true,
|
|
2394
|
+
default: false,
|
|
2395
|
+
},
|
|
2396
|
+
UseFIPS: {
|
|
2397
|
+
type: "boolean",
|
|
2398
|
+
required: true,
|
|
2399
|
+
default: false,
|
|
2400
|
+
},
|
|
2401
|
+
Endpoint: {
|
|
2402
|
+
type: "string",
|
|
2403
|
+
required: false,
|
|
2404
|
+
},
|
|
2405
|
+
},
|
|
2406
|
+
rules: [
|
|
2407
|
+
{
|
|
2408
|
+
conditions: [
|
|
2409
|
+
{
|
|
2410
|
+
fn: "isSet",
|
|
2411
|
+
argv: [
|
|
2412
|
+
{
|
|
2413
|
+
ref: "Endpoint",
|
|
2414
|
+
},
|
|
2415
|
+
],
|
|
2416
|
+
},
|
|
2417
|
+
],
|
|
2418
|
+
rules: [
|
|
2419
|
+
{
|
|
2420
|
+
conditions: [
|
|
2421
|
+
{
|
|
2422
|
+
fn: "booleanEquals",
|
|
2423
|
+
argv: [
|
|
2424
|
+
{
|
|
2425
|
+
ref: "UseFIPS",
|
|
2426
|
+
},
|
|
2427
|
+
true,
|
|
2428
|
+
],
|
|
2429
|
+
},
|
|
2430
|
+
],
|
|
2431
|
+
error:
|
|
2432
|
+
"Invalid Configuration: FIPS and custom endpoint are not supported",
|
|
2433
|
+
type: "error",
|
|
2434
|
+
},
|
|
2435
|
+
{
|
|
2436
|
+
conditions: [
|
|
2437
|
+
{
|
|
2438
|
+
fn: "booleanEquals",
|
|
2439
|
+
argv: [
|
|
2440
|
+
{
|
|
2441
|
+
ref: "UseDualStack",
|
|
2442
|
+
},
|
|
2443
|
+
true,
|
|
2444
|
+
],
|
|
2445
|
+
},
|
|
2446
|
+
],
|
|
2447
|
+
error:
|
|
2448
|
+
"Invalid Configuration: Dualstack and custom endpoint are not supported",
|
|
2449
|
+
type: "error",
|
|
2450
|
+
},
|
|
2451
|
+
{
|
|
2452
|
+
conditions: [],
|
|
2453
|
+
endpoint: {
|
|
2454
|
+
url: {
|
|
2455
|
+
ref: "Endpoint",
|
|
2456
|
+
},
|
|
2457
|
+
properties: {},
|
|
2458
|
+
headers: {},
|
|
2459
|
+
},
|
|
2460
|
+
type: "endpoint",
|
|
2461
|
+
},
|
|
2462
|
+
],
|
|
2463
|
+
type: "tree",
|
|
2464
|
+
},
|
|
2465
|
+
{
|
|
2466
|
+
conditions: [
|
|
2467
|
+
{
|
|
2468
|
+
fn: "isSet",
|
|
2469
|
+
argv: [
|
|
2470
|
+
{
|
|
2471
|
+
ref: "Region",
|
|
2472
|
+
},
|
|
2473
|
+
],
|
|
2474
|
+
},
|
|
2475
|
+
],
|
|
2476
|
+
rules: [
|
|
2477
|
+
{
|
|
2478
|
+
conditions: [
|
|
2479
|
+
{
|
|
2480
|
+
fn: "aws.partition",
|
|
2481
|
+
argv: [
|
|
2482
|
+
{
|
|
2483
|
+
ref: "Region",
|
|
2484
|
+
},
|
|
2485
|
+
],
|
|
2486
|
+
assign: "PartitionResult",
|
|
2487
|
+
},
|
|
2488
|
+
],
|
|
2489
|
+
rules: [
|
|
2490
|
+
{
|
|
2491
|
+
conditions: [
|
|
2492
|
+
{
|
|
2493
|
+
fn: "booleanEquals",
|
|
2494
|
+
argv: [
|
|
2495
|
+
{
|
|
2496
|
+
ref: "UseFIPS",
|
|
2497
|
+
},
|
|
2498
|
+
true,
|
|
2499
|
+
],
|
|
2500
|
+
},
|
|
2501
|
+
{
|
|
2502
|
+
fn: "booleanEquals",
|
|
2503
|
+
argv: [
|
|
2504
|
+
{
|
|
2505
|
+
ref: "UseDualStack",
|
|
2506
|
+
},
|
|
2507
|
+
true,
|
|
2508
|
+
],
|
|
2509
|
+
},
|
|
2510
|
+
],
|
|
2511
|
+
rules: [
|
|
2512
|
+
{
|
|
2513
|
+
conditions: [
|
|
2514
|
+
{
|
|
2515
|
+
fn: "booleanEquals",
|
|
2516
|
+
argv: [
|
|
2517
|
+
true,
|
|
2518
|
+
{
|
|
2519
|
+
fn: "getAttr",
|
|
2520
|
+
argv: [
|
|
2521
|
+
{
|
|
2522
|
+
ref: "PartitionResult",
|
|
2523
|
+
},
|
|
2524
|
+
"supportsFIPS",
|
|
2525
|
+
],
|
|
2526
|
+
},
|
|
2527
|
+
],
|
|
2528
|
+
},
|
|
2529
|
+
{
|
|
2530
|
+
fn: "booleanEquals",
|
|
2531
|
+
argv: [
|
|
2532
|
+
true,
|
|
2533
|
+
{
|
|
2534
|
+
fn: "getAttr",
|
|
2535
|
+
argv: [
|
|
2536
|
+
{
|
|
2537
|
+
ref: "PartitionResult",
|
|
2538
|
+
},
|
|
2539
|
+
"supportsDualStack",
|
|
2540
|
+
],
|
|
2541
|
+
},
|
|
2542
|
+
],
|
|
2543
|
+
},
|
|
2544
|
+
],
|
|
2545
|
+
rules: [
|
|
2546
|
+
{
|
|
2547
|
+
conditions: [],
|
|
2548
|
+
endpoint: {
|
|
2549
|
+
url: "https://sqs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
2550
|
+
properties: {},
|
|
2551
|
+
headers: {},
|
|
2552
|
+
},
|
|
2553
|
+
type: "endpoint",
|
|
2554
|
+
},
|
|
2555
|
+
],
|
|
2556
|
+
type: "tree",
|
|
2557
|
+
},
|
|
2558
|
+
{
|
|
2559
|
+
conditions: [],
|
|
2560
|
+
error:
|
|
2561
|
+
"FIPS and DualStack are enabled, but this partition does not support one or both",
|
|
2562
|
+
type: "error",
|
|
2563
|
+
},
|
|
2564
|
+
],
|
|
2565
|
+
type: "tree",
|
|
2566
|
+
},
|
|
2567
|
+
{
|
|
2568
|
+
conditions: [
|
|
2569
|
+
{
|
|
2570
|
+
fn: "booleanEquals",
|
|
2571
|
+
argv: [
|
|
2572
|
+
{
|
|
2573
|
+
ref: "UseFIPS",
|
|
2574
|
+
},
|
|
2575
|
+
true,
|
|
2576
|
+
],
|
|
2577
|
+
},
|
|
2578
|
+
],
|
|
2579
|
+
rules: [
|
|
2580
|
+
{
|
|
2581
|
+
conditions: [
|
|
2582
|
+
{
|
|
2583
|
+
fn: "booleanEquals",
|
|
2584
|
+
argv: [
|
|
2585
|
+
{
|
|
2586
|
+
fn: "getAttr",
|
|
2587
|
+
argv: [
|
|
2588
|
+
{
|
|
2589
|
+
ref: "PartitionResult",
|
|
2590
|
+
},
|
|
2591
|
+
"supportsFIPS",
|
|
2592
|
+
],
|
|
2593
|
+
},
|
|
2594
|
+
true,
|
|
2595
|
+
],
|
|
2596
|
+
},
|
|
2597
|
+
],
|
|
2598
|
+
rules: [
|
|
2599
|
+
{
|
|
2600
|
+
conditions: [
|
|
2601
|
+
{
|
|
2602
|
+
fn: "stringEquals",
|
|
2603
|
+
argv: [
|
|
2604
|
+
{
|
|
2605
|
+
fn: "getAttr",
|
|
2606
|
+
argv: [
|
|
2607
|
+
{
|
|
2608
|
+
ref: "PartitionResult",
|
|
2609
|
+
},
|
|
2610
|
+
"name",
|
|
2611
|
+
],
|
|
2612
|
+
},
|
|
2613
|
+
"aws-us-gov",
|
|
2614
|
+
],
|
|
2615
|
+
},
|
|
2616
|
+
],
|
|
2617
|
+
endpoint: {
|
|
2618
|
+
url: "https://sqs.{Region}.amazonaws.com",
|
|
2619
|
+
properties: {},
|
|
2620
|
+
headers: {},
|
|
2621
|
+
},
|
|
2622
|
+
type: "endpoint",
|
|
2623
|
+
},
|
|
2624
|
+
{
|
|
2625
|
+
conditions: [],
|
|
2626
|
+
endpoint: {
|
|
2627
|
+
url: "https://sqs-fips.{Region}.{PartitionResult#dnsSuffix}",
|
|
2628
|
+
properties: {},
|
|
2629
|
+
headers: {},
|
|
2630
|
+
},
|
|
2631
|
+
type: "endpoint",
|
|
2632
|
+
},
|
|
2633
|
+
],
|
|
2634
|
+
type: "tree",
|
|
2635
|
+
},
|
|
2636
|
+
{
|
|
2637
|
+
conditions: [],
|
|
2638
|
+
error:
|
|
2639
|
+
"FIPS is enabled but this partition does not support FIPS",
|
|
2640
|
+
type: "error",
|
|
2641
|
+
},
|
|
2642
|
+
],
|
|
2643
|
+
type: "tree",
|
|
2644
|
+
},
|
|
2645
|
+
{
|
|
2646
|
+
conditions: [
|
|
2647
|
+
{
|
|
2648
|
+
fn: "booleanEquals",
|
|
2649
|
+
argv: [
|
|
2650
|
+
{
|
|
2651
|
+
ref: "UseDualStack",
|
|
2652
|
+
},
|
|
2653
|
+
true,
|
|
2654
|
+
],
|
|
2655
|
+
},
|
|
2656
|
+
],
|
|
2657
|
+
rules: [
|
|
2658
|
+
{
|
|
2659
|
+
conditions: [
|
|
2660
|
+
{
|
|
2661
|
+
fn: "booleanEquals",
|
|
2662
|
+
argv: [
|
|
2663
|
+
true,
|
|
2664
|
+
{
|
|
2665
|
+
fn: "getAttr",
|
|
2666
|
+
argv: [
|
|
2667
|
+
{
|
|
2668
|
+
ref: "PartitionResult",
|
|
2669
|
+
},
|
|
2670
|
+
"supportsDualStack",
|
|
2671
|
+
],
|
|
2672
|
+
},
|
|
2673
|
+
],
|
|
2674
|
+
},
|
|
2675
|
+
],
|
|
2676
|
+
rules: [
|
|
2677
|
+
{
|
|
2678
|
+
conditions: [],
|
|
2679
|
+
endpoint: {
|
|
2680
|
+
url: "https://sqs.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
2681
|
+
properties: {},
|
|
2682
|
+
headers: {},
|
|
2683
|
+
},
|
|
2684
|
+
type: "endpoint",
|
|
2685
|
+
},
|
|
2686
|
+
],
|
|
2687
|
+
type: "tree",
|
|
2688
|
+
},
|
|
2689
|
+
{
|
|
2690
|
+
conditions: [],
|
|
2691
|
+
error:
|
|
2692
|
+
"DualStack is enabled but this partition does not support DualStack",
|
|
2693
|
+
type: "error",
|
|
2694
|
+
},
|
|
2695
|
+
],
|
|
2696
|
+
type: "tree",
|
|
2697
|
+
},
|
|
2698
|
+
{
|
|
2699
|
+
conditions: [],
|
|
2700
|
+
endpoint: {
|
|
2701
|
+
url: "https://sqs.{Region}.{PartitionResult#dnsSuffix}",
|
|
2702
|
+
properties: {},
|
|
2703
|
+
headers: {},
|
|
2704
|
+
},
|
|
2705
|
+
type: "endpoint",
|
|
2706
|
+
},
|
|
2707
|
+
],
|
|
2708
|
+
type: "tree",
|
|
2709
|
+
},
|
|
2710
|
+
],
|
|
2711
|
+
type: "tree",
|
|
2712
|
+
},
|
|
2713
|
+
{
|
|
2714
|
+
conditions: [],
|
|
2715
|
+
error: "Invalid Configuration: Missing Region",
|
|
2716
|
+
type: "error",
|
|
2717
|
+
},
|
|
2718
|
+
],
|
|
2719
|
+
},
|
|
2720
|
+
};
|
|
2721
|
+
|
|
2722
|
+
/** The makeSQSClient Effect gives callers access to SQS with the region and credentials configured in their AWS runtime. */
|
|
2723
|
+
export const makeSQSClient = Effect.gen(function* () {
|
|
2724
|
+
const aws = yield* AwsClient;
|
|
2725
|
+
|
|
2726
|
+
const bindOperation = aws.bindOperation(sqsService);
|
|
2727
|
+
const bindOperationPages = aws.bindOperationPages(sqsService);
|
|
2728
|
+
|
|
2729
|
+
return {
|
|
2730
|
+
/** Adds a permission to a queue for a specific principal. This allows sharing access to the queue. Success means AWS accepted the request. */
|
|
2731
|
+
addPermission: bindOperation(addPermissionOperation),
|
|
2732
|
+
/** Cancels a specified message movement task. A message movement can only be cancelled when the current status is RUNNING. Cancelling a message movement task does not revert the messages that have already been moved. It can only stop the messages that have not been moved yet. */
|
|
2733
|
+
cancelMessageMoveTask: bindOperation(cancelMessageMoveTaskOperation),
|
|
2734
|
+
/** Changes the visibility timeout of a specified message in a queue to a new value. The default visibility timeout for a message is 30 seconds. The minimum is 0 seconds. The maximum is 12 hours. For more information, see Visibility Timeout in the Amazon SQS Developer Guide. Success means AWS accepted the request. */
|
|
2735
|
+
changeMessageVisibility: bindOperation(changeMessageVisibilityOperation),
|
|
2736
|
+
/** Changes the visibility timeout of multiple messages. This is a batch version of ChangeMessageVisibility. The result of the action on each message is reported individually in the response. You can send up to 10 ChangeMessageVisibility requests with each ChangeMessageVisibilityBatch action. */
|
|
2737
|
+
changeMessageVisibilityBatch: bindOperation(
|
|
2738
|
+
changeMessageVisibilityBatchOperation,
|
|
2739
|
+
),
|
|
2740
|
+
/** Creates a new standard or FIFO queue. You can pass one or more attributes in the request. Keep the following in mind: */
|
|
2741
|
+
createQueue: bindOperation(createQueueOperation),
|
|
2742
|
+
/** Deletes the specified message from the specified queue. To select the message to delete, use the ReceiptHandle of the message (not the MessageId which you receive when you send the message). Amazon SQS can delete a message from a queue even if a visibility timeout setting causes the message to be locked by another consumer. Amazon SQS automatically deletes messages left in a queue longer than the retention period configured for the queue. Success means AWS accepted the request. */
|
|
2743
|
+
deleteMessage: bindOperation(deleteMessageOperation),
|
|
2744
|
+
/** Deletes up to ten messages from the specified queue. This is a batch version of DeleteMessage. The result of the action on each message is reported individually in the response. */
|
|
2745
|
+
deleteMessageBatch: bindOperation(deleteMessageBatchOperation),
|
|
2746
|
+
/** Deletes the queue specified by the QueueUrl, regardless of the queue's contents. Success means AWS accepted the request. */
|
|
2747
|
+
deleteQueue: bindOperation(deleteQueueOperation),
|
|
2748
|
+
/** Gets attributes for the specified queue. */
|
|
2749
|
+
getQueueAttributes: bindOperation(getQueueAttributesOperation),
|
|
2750
|
+
/** The GetQueueUrl API returns the URL of an existing Amazon SQS queue. This is useful when you know the queue's name but need to retrieve its URL for further operations. */
|
|
2751
|
+
getQueueUrl: bindOperation(getQueueUrlOperation),
|
|
2752
|
+
/** Returns a list of your queues that have the RedrivePolicy queue attribute configured with a dead-letter queue. This call returns one page. Use listDeadLetterSourceQueuesPages to read subsequent pages. */
|
|
2753
|
+
listDeadLetterSourceQueues: bindOperation(
|
|
2754
|
+
listDeadLetterSourceQueuesOperation,
|
|
2755
|
+
),
|
|
2756
|
+
/** Gets the most recent message movement tasks (up to 10) under a specific source queue. */
|
|
2757
|
+
listMessageMoveTasks: bindOperation(listMessageMoveTasksOperation),
|
|
2758
|
+
/** List all cost allocation tags added to the specified Amazon SQS queue. For an overview, see Tagging Your Amazon SQS Queues in the Amazon SQS Developer Guide. */
|
|
2759
|
+
listQueueTags: bindOperation(listQueueTagsOperation),
|
|
2760
|
+
/** Returns a list of your queues in the current region. The response includes a maximum of 1,000 results. If you specify a value for the optional QueueNamePrefix parameter, only queues with a name that begins with the specified value are returned. This call returns one page. Use listQueuesPages to read subsequent pages. */
|
|
2761
|
+
listQueues: bindOperation(listQueuesOperation),
|
|
2762
|
+
/** Deletes available messages in a queue (including in-flight messages) specified by the QueueURL parameter. Success means AWS accepted the request. */
|
|
2763
|
+
purgeQueue: bindOperation(purgeQueueOperation),
|
|
2764
|
+
/** Retrieves one or more messages (up to 10), from the specified queue. Using the WaitTimeSeconds parameter enables long-poll support. For more information, see Amazon SQS Long Polling in the Amazon SQS Developer Guide. */
|
|
2765
|
+
receiveMessage: bindOperation(receiveMessageOperation),
|
|
2766
|
+
/** Revokes any permissions in the queue policy that matches the specified Label parameter. Success means AWS accepted the request. */
|
|
2767
|
+
removePermission: bindOperation(removePermissionOperation),
|
|
2768
|
+
/** Delivers a message to the specified queue. */
|
|
2769
|
+
sendMessage: bindOperation(sendMessageOperation),
|
|
2770
|
+
/** You can use SendMessageBatch to send up to 10 messages to the specified queue by assigning either identical or different values to each message (or by not assigning values at all). This is a batch version of SendMessage. For a FIFO queue, multiple messages within a single batch are enqueued in the order they are sent. */
|
|
2771
|
+
sendMessageBatch: bindOperation(sendMessageBatchOperation),
|
|
2772
|
+
/** Sets the value of one or more queue attributes, like a policy. When you change a queue's attributes, the change can take up to 60 seconds for most of the attributes to propagate throughout the Amazon SQS system. Changes made to the MessageRetentionPeriod attribute can take up to 15 minutes and will impact existing messages in the queue potentially causing them to be expired and deleted if the MessageRetentionPeriod is reduced below the age of existing messages. Success means AWS accepted the request. */
|
|
2773
|
+
setQueueAttributes: bindOperation(setQueueAttributesOperation),
|
|
2774
|
+
/** Starts an asynchronous task to move messages from a specified source queue to a specified destination queue. */
|
|
2775
|
+
startMessageMoveTask: bindOperation(startMessageMoveTaskOperation),
|
|
2776
|
+
/** Add cost allocation tags to the specified Amazon SQS queue. For an overview, see Tagging Your Amazon SQS Queues in the Amazon SQS Developer Guide. Success means AWS accepted the request. */
|
|
2777
|
+
tagQueue: bindOperation(tagQueueOperation),
|
|
2778
|
+
/** Remove cost allocation tags from the specified Amazon SQS queue. For an overview, see Tagging Your Amazon SQS Queues in the Amazon SQS Developer Guide. Success means AWS accepted the request. */
|
|
2779
|
+
untagQueue: bindOperation(untagQueueOperation),
|
|
2780
|
+
/** The listDeadLetterSourceQueuesPages function streams one AWS response per page. Stop consuming the stream to skip the remaining pages. */
|
|
2781
|
+
listDeadLetterSourceQueuesPages: bindOperationPages(
|
|
2782
|
+
listDeadLetterSourceQueuesOperation,
|
|
2783
|
+
),
|
|
2784
|
+
/** The listQueuesPages function streams one AWS response per page. Stop consuming the stream to skip the remaining pages. */
|
|
2785
|
+
listQueuesPages: bindOperationPages(listQueuesOperation),
|
|
2786
|
+
};
|
|
2787
|
+
});
|