@aws-sdk/client-sqs 3.306.0 → 3.309.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/commands/AddPermissionCommand.js +2 -2
- package/dist-cjs/commands/ChangeMessageVisibilityBatchCommand.js +2 -2
- package/dist-cjs/commands/ChangeMessageVisibilityCommand.js +2 -2
- package/dist-cjs/commands/CreateQueueCommand.js +2 -2
- package/dist-cjs/commands/DeleteMessageBatchCommand.js +2 -2
- package/dist-cjs/commands/DeleteMessageCommand.js +2 -2
- package/dist-cjs/commands/DeleteQueueCommand.js +2 -2
- package/dist-cjs/commands/GetQueueAttributesCommand.js +2 -2
- package/dist-cjs/commands/GetQueueUrlCommand.js +2 -2
- package/dist-cjs/commands/ListDeadLetterSourceQueuesCommand.js +2 -2
- package/dist-cjs/commands/ListQueueTagsCommand.js +2 -2
- package/dist-cjs/commands/ListQueuesCommand.js +2 -2
- package/dist-cjs/commands/PurgeQueueCommand.js +2 -2
- package/dist-cjs/commands/ReceiveMessageCommand.js +2 -2
- package/dist-cjs/commands/RemovePermissionCommand.js +2 -2
- package/dist-cjs/commands/SendMessageBatchCommand.js +2 -2
- package/dist-cjs/commands/SendMessageCommand.js +2 -2
- package/dist-cjs/commands/SetQueueAttributesCommand.js +2 -2
- package/dist-cjs/commands/TagQueueCommand.js +2 -2
- package/dist-cjs/commands/UntagQueueCommand.js +2 -2
- package/dist-cjs/protocols/Aws_query.js +345 -345
- package/dist-es/commands/AddPermissionCommand.js +3 -3
- package/dist-es/commands/ChangeMessageVisibilityBatchCommand.js +3 -3
- package/dist-es/commands/ChangeMessageVisibilityCommand.js +3 -3
- package/dist-es/commands/CreateQueueCommand.js +3 -3
- package/dist-es/commands/DeleteMessageBatchCommand.js +3 -3
- package/dist-es/commands/DeleteMessageCommand.js +3 -3
- package/dist-es/commands/DeleteQueueCommand.js +3 -3
- package/dist-es/commands/GetQueueAttributesCommand.js +3 -3
- package/dist-es/commands/GetQueueUrlCommand.js +3 -3
- package/dist-es/commands/ListDeadLetterSourceQueuesCommand.js +3 -3
- package/dist-es/commands/ListQueueTagsCommand.js +3 -3
- package/dist-es/commands/ListQueuesCommand.js +3 -3
- package/dist-es/commands/PurgeQueueCommand.js +3 -3
- package/dist-es/commands/ReceiveMessageCommand.js +3 -3
- package/dist-es/commands/RemovePermissionCommand.js +3 -3
- package/dist-es/commands/SendMessageBatchCommand.js +3 -3
- package/dist-es/commands/SendMessageCommand.js +3 -3
- package/dist-es/commands/SetQueueAttributesCommand.js +3 -3
- package/dist-es/commands/TagQueueCommand.js +3 -3
- package/dist-es/commands/UntagQueueCommand.js +3 -3
- package/dist-es/protocols/Aws_query.js +304 -304
- package/dist-types/protocols/Aws_query.d.ts +160 -40
- package/dist-types/ts3.4/protocols/Aws_query.d.ts +40 -40
- package/package.json +6 -6
|
@@ -3,249 +3,249 @@ import { decorateServiceException as __decorateServiceException, expectString as
|
|
|
3
3
|
import { XMLParser } from "fast-xml-parser";
|
|
4
4
|
import { BatchEntryIdsNotDistinct, BatchRequestTooLong, EmptyBatchRequest, InvalidAttributeName, InvalidBatchEntryId, InvalidIdFormat, InvalidMessageContents, MessageNotInflight, OverLimit, PurgeQueueInProgress, QueueDeletedRecently, QueueDoesNotExist, QueueNameExists, ReceiptHandleIsInvalid, TooManyEntriesInBatchRequest, UnsupportedOperation, } from "../models/models_0";
|
|
5
5
|
import { SQSServiceException as __BaseException } from "../models/SQSServiceException";
|
|
6
|
-
export const
|
|
6
|
+
export const se_AddPermissionCommand = async (input, context) => {
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/x-www-form-urlencoded",
|
|
9
9
|
};
|
|
10
10
|
let body;
|
|
11
11
|
body = buildFormUrlencodedString({
|
|
12
|
-
...
|
|
12
|
+
...se_AddPermissionRequest(input, context),
|
|
13
13
|
Action: "AddPermission",
|
|
14
14
|
Version: "2012-11-05",
|
|
15
15
|
});
|
|
16
16
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
17
|
};
|
|
18
|
-
export const
|
|
18
|
+
export const se_ChangeMessageVisibilityCommand = async (input, context) => {
|
|
19
19
|
const headers = {
|
|
20
20
|
"content-type": "application/x-www-form-urlencoded",
|
|
21
21
|
};
|
|
22
22
|
let body;
|
|
23
23
|
body = buildFormUrlencodedString({
|
|
24
|
-
...
|
|
24
|
+
...se_ChangeMessageVisibilityRequest(input, context),
|
|
25
25
|
Action: "ChangeMessageVisibility",
|
|
26
26
|
Version: "2012-11-05",
|
|
27
27
|
});
|
|
28
28
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
29
|
};
|
|
30
|
-
export const
|
|
30
|
+
export const se_ChangeMessageVisibilityBatchCommand = async (input, context) => {
|
|
31
31
|
const headers = {
|
|
32
32
|
"content-type": "application/x-www-form-urlencoded",
|
|
33
33
|
};
|
|
34
34
|
let body;
|
|
35
35
|
body = buildFormUrlencodedString({
|
|
36
|
-
...
|
|
36
|
+
...se_ChangeMessageVisibilityBatchRequest(input, context),
|
|
37
37
|
Action: "ChangeMessageVisibilityBatch",
|
|
38
38
|
Version: "2012-11-05",
|
|
39
39
|
});
|
|
40
40
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
41
|
};
|
|
42
|
-
export const
|
|
42
|
+
export const se_CreateQueueCommand = async (input, context) => {
|
|
43
43
|
const headers = {
|
|
44
44
|
"content-type": "application/x-www-form-urlencoded",
|
|
45
45
|
};
|
|
46
46
|
let body;
|
|
47
47
|
body = buildFormUrlencodedString({
|
|
48
|
-
...
|
|
48
|
+
...se_CreateQueueRequest(input, context),
|
|
49
49
|
Action: "CreateQueue",
|
|
50
50
|
Version: "2012-11-05",
|
|
51
51
|
});
|
|
52
52
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
53
53
|
};
|
|
54
|
-
export const
|
|
54
|
+
export const se_DeleteMessageCommand = async (input, context) => {
|
|
55
55
|
const headers = {
|
|
56
56
|
"content-type": "application/x-www-form-urlencoded",
|
|
57
57
|
};
|
|
58
58
|
let body;
|
|
59
59
|
body = buildFormUrlencodedString({
|
|
60
|
-
...
|
|
60
|
+
...se_DeleteMessageRequest(input, context),
|
|
61
61
|
Action: "DeleteMessage",
|
|
62
62
|
Version: "2012-11-05",
|
|
63
63
|
});
|
|
64
64
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
65
|
};
|
|
66
|
-
export const
|
|
66
|
+
export const se_DeleteMessageBatchCommand = async (input, context) => {
|
|
67
67
|
const headers = {
|
|
68
68
|
"content-type": "application/x-www-form-urlencoded",
|
|
69
69
|
};
|
|
70
70
|
let body;
|
|
71
71
|
body = buildFormUrlencodedString({
|
|
72
|
-
...
|
|
72
|
+
...se_DeleteMessageBatchRequest(input, context),
|
|
73
73
|
Action: "DeleteMessageBatch",
|
|
74
74
|
Version: "2012-11-05",
|
|
75
75
|
});
|
|
76
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
77
|
};
|
|
78
|
-
export const
|
|
78
|
+
export const se_DeleteQueueCommand = async (input, context) => {
|
|
79
79
|
const headers = {
|
|
80
80
|
"content-type": "application/x-www-form-urlencoded",
|
|
81
81
|
};
|
|
82
82
|
let body;
|
|
83
83
|
body = buildFormUrlencodedString({
|
|
84
|
-
...
|
|
84
|
+
...se_DeleteQueueRequest(input, context),
|
|
85
85
|
Action: "DeleteQueue",
|
|
86
86
|
Version: "2012-11-05",
|
|
87
87
|
});
|
|
88
88
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
89
89
|
};
|
|
90
|
-
export const
|
|
90
|
+
export const se_GetQueueAttributesCommand = async (input, context) => {
|
|
91
91
|
const headers = {
|
|
92
92
|
"content-type": "application/x-www-form-urlencoded",
|
|
93
93
|
};
|
|
94
94
|
let body;
|
|
95
95
|
body = buildFormUrlencodedString({
|
|
96
|
-
...
|
|
96
|
+
...se_GetQueueAttributesRequest(input, context),
|
|
97
97
|
Action: "GetQueueAttributes",
|
|
98
98
|
Version: "2012-11-05",
|
|
99
99
|
});
|
|
100
100
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
101
101
|
};
|
|
102
|
-
export const
|
|
102
|
+
export const se_GetQueueUrlCommand = async (input, context) => {
|
|
103
103
|
const headers = {
|
|
104
104
|
"content-type": "application/x-www-form-urlencoded",
|
|
105
105
|
};
|
|
106
106
|
let body;
|
|
107
107
|
body = buildFormUrlencodedString({
|
|
108
|
-
...
|
|
108
|
+
...se_GetQueueUrlRequest(input, context),
|
|
109
109
|
Action: "GetQueueUrl",
|
|
110
110
|
Version: "2012-11-05",
|
|
111
111
|
});
|
|
112
112
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
113
|
};
|
|
114
|
-
export const
|
|
114
|
+
export const se_ListDeadLetterSourceQueuesCommand = async (input, context) => {
|
|
115
115
|
const headers = {
|
|
116
116
|
"content-type": "application/x-www-form-urlencoded",
|
|
117
117
|
};
|
|
118
118
|
let body;
|
|
119
119
|
body = buildFormUrlencodedString({
|
|
120
|
-
...
|
|
120
|
+
...se_ListDeadLetterSourceQueuesRequest(input, context),
|
|
121
121
|
Action: "ListDeadLetterSourceQueues",
|
|
122
122
|
Version: "2012-11-05",
|
|
123
123
|
});
|
|
124
124
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
125
|
};
|
|
126
|
-
export const
|
|
126
|
+
export const se_ListQueuesCommand = async (input, context) => {
|
|
127
127
|
const headers = {
|
|
128
128
|
"content-type": "application/x-www-form-urlencoded",
|
|
129
129
|
};
|
|
130
130
|
let body;
|
|
131
131
|
body = buildFormUrlencodedString({
|
|
132
|
-
...
|
|
132
|
+
...se_ListQueuesRequest(input, context),
|
|
133
133
|
Action: "ListQueues",
|
|
134
134
|
Version: "2012-11-05",
|
|
135
135
|
});
|
|
136
136
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
137
|
};
|
|
138
|
-
export const
|
|
138
|
+
export const se_ListQueueTagsCommand = async (input, context) => {
|
|
139
139
|
const headers = {
|
|
140
140
|
"content-type": "application/x-www-form-urlencoded",
|
|
141
141
|
};
|
|
142
142
|
let body;
|
|
143
143
|
body = buildFormUrlencodedString({
|
|
144
|
-
...
|
|
144
|
+
...se_ListQueueTagsRequest(input, context),
|
|
145
145
|
Action: "ListQueueTags",
|
|
146
146
|
Version: "2012-11-05",
|
|
147
147
|
});
|
|
148
148
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
149
|
};
|
|
150
|
-
export const
|
|
150
|
+
export const se_PurgeQueueCommand = async (input, context) => {
|
|
151
151
|
const headers = {
|
|
152
152
|
"content-type": "application/x-www-form-urlencoded",
|
|
153
153
|
};
|
|
154
154
|
let body;
|
|
155
155
|
body = buildFormUrlencodedString({
|
|
156
|
-
...
|
|
156
|
+
...se_PurgeQueueRequest(input, context),
|
|
157
157
|
Action: "PurgeQueue",
|
|
158
158
|
Version: "2012-11-05",
|
|
159
159
|
});
|
|
160
160
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
161
161
|
};
|
|
162
|
-
export const
|
|
162
|
+
export const se_ReceiveMessageCommand = async (input, context) => {
|
|
163
163
|
const headers = {
|
|
164
164
|
"content-type": "application/x-www-form-urlencoded",
|
|
165
165
|
};
|
|
166
166
|
let body;
|
|
167
167
|
body = buildFormUrlencodedString({
|
|
168
|
-
...
|
|
168
|
+
...se_ReceiveMessageRequest(input, context),
|
|
169
169
|
Action: "ReceiveMessage",
|
|
170
170
|
Version: "2012-11-05",
|
|
171
171
|
});
|
|
172
172
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
173
173
|
};
|
|
174
|
-
export const
|
|
174
|
+
export const se_RemovePermissionCommand = async (input, context) => {
|
|
175
175
|
const headers = {
|
|
176
176
|
"content-type": "application/x-www-form-urlencoded",
|
|
177
177
|
};
|
|
178
178
|
let body;
|
|
179
179
|
body = buildFormUrlencodedString({
|
|
180
|
-
...
|
|
180
|
+
...se_RemovePermissionRequest(input, context),
|
|
181
181
|
Action: "RemovePermission",
|
|
182
182
|
Version: "2012-11-05",
|
|
183
183
|
});
|
|
184
184
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
185
185
|
};
|
|
186
|
-
export const
|
|
186
|
+
export const se_SendMessageCommand = async (input, context) => {
|
|
187
187
|
const headers = {
|
|
188
188
|
"content-type": "application/x-www-form-urlencoded",
|
|
189
189
|
};
|
|
190
190
|
let body;
|
|
191
191
|
body = buildFormUrlencodedString({
|
|
192
|
-
...
|
|
192
|
+
...se_SendMessageRequest(input, context),
|
|
193
193
|
Action: "SendMessage",
|
|
194
194
|
Version: "2012-11-05",
|
|
195
195
|
});
|
|
196
196
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
197
|
};
|
|
198
|
-
export const
|
|
198
|
+
export const se_SendMessageBatchCommand = async (input, context) => {
|
|
199
199
|
const headers = {
|
|
200
200
|
"content-type": "application/x-www-form-urlencoded",
|
|
201
201
|
};
|
|
202
202
|
let body;
|
|
203
203
|
body = buildFormUrlencodedString({
|
|
204
|
-
...
|
|
204
|
+
...se_SendMessageBatchRequest(input, context),
|
|
205
205
|
Action: "SendMessageBatch",
|
|
206
206
|
Version: "2012-11-05",
|
|
207
207
|
});
|
|
208
208
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
209
209
|
};
|
|
210
|
-
export const
|
|
210
|
+
export const se_SetQueueAttributesCommand = async (input, context) => {
|
|
211
211
|
const headers = {
|
|
212
212
|
"content-type": "application/x-www-form-urlencoded",
|
|
213
213
|
};
|
|
214
214
|
let body;
|
|
215
215
|
body = buildFormUrlencodedString({
|
|
216
|
-
...
|
|
216
|
+
...se_SetQueueAttributesRequest(input, context),
|
|
217
217
|
Action: "SetQueueAttributes",
|
|
218
218
|
Version: "2012-11-05",
|
|
219
219
|
});
|
|
220
220
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
221
221
|
};
|
|
222
|
-
export const
|
|
222
|
+
export const se_TagQueueCommand = async (input, context) => {
|
|
223
223
|
const headers = {
|
|
224
224
|
"content-type": "application/x-www-form-urlencoded",
|
|
225
225
|
};
|
|
226
226
|
let body;
|
|
227
227
|
body = buildFormUrlencodedString({
|
|
228
|
-
...
|
|
228
|
+
...se_TagQueueRequest(input, context),
|
|
229
229
|
Action: "TagQueue",
|
|
230
230
|
Version: "2012-11-05",
|
|
231
231
|
});
|
|
232
232
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
233
233
|
};
|
|
234
|
-
export const
|
|
234
|
+
export const se_UntagQueueCommand = async (input, context) => {
|
|
235
235
|
const headers = {
|
|
236
236
|
"content-type": "application/x-www-form-urlencoded",
|
|
237
237
|
};
|
|
238
238
|
let body;
|
|
239
239
|
body = buildFormUrlencodedString({
|
|
240
|
-
...
|
|
240
|
+
...se_UntagQueueRequest(input, context),
|
|
241
241
|
Action: "UntagQueue",
|
|
242
242
|
Version: "2012-11-05",
|
|
243
243
|
});
|
|
244
244
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
245
245
|
};
|
|
246
|
-
export const
|
|
246
|
+
export const de_AddPermissionCommand = async (output, context) => {
|
|
247
247
|
if (output.statusCode >= 300) {
|
|
248
|
-
return
|
|
248
|
+
return de_AddPermissionCommandError(output, context);
|
|
249
249
|
}
|
|
250
250
|
await collectBody(output.body, context);
|
|
251
251
|
const response = {
|
|
@@ -253,7 +253,7 @@ export const deserializeAws_queryAddPermissionCommand = async (output, context)
|
|
|
253
253
|
};
|
|
254
254
|
return Promise.resolve(response);
|
|
255
255
|
};
|
|
256
|
-
const
|
|
256
|
+
const de_AddPermissionCommandError = async (output, context) => {
|
|
257
257
|
const parsedOutput = {
|
|
258
258
|
...output,
|
|
259
259
|
body: await parseErrorBody(output.body, context),
|
|
@@ -262,7 +262,7 @@ const deserializeAws_queryAddPermissionCommandError = async (output, context) =>
|
|
|
262
262
|
switch (errorCode) {
|
|
263
263
|
case "OverLimit":
|
|
264
264
|
case "com.amazonaws.sqs#OverLimit":
|
|
265
|
-
throw await
|
|
265
|
+
throw await de_OverLimitRes(parsedOutput, context);
|
|
266
266
|
default:
|
|
267
267
|
const parsedBody = parsedOutput.body;
|
|
268
268
|
throwDefaultError({
|
|
@@ -273,9 +273,9 @@ const deserializeAws_queryAddPermissionCommandError = async (output, context) =>
|
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
275
|
};
|
|
276
|
-
export const
|
|
276
|
+
export const de_ChangeMessageVisibilityCommand = async (output, context) => {
|
|
277
277
|
if (output.statusCode >= 300) {
|
|
278
|
-
return
|
|
278
|
+
return de_ChangeMessageVisibilityCommandError(output, context);
|
|
279
279
|
}
|
|
280
280
|
await collectBody(output.body, context);
|
|
281
281
|
const response = {
|
|
@@ -283,7 +283,7 @@ export const deserializeAws_queryChangeMessageVisibilityCommand = async (output,
|
|
|
283
283
|
};
|
|
284
284
|
return Promise.resolve(response);
|
|
285
285
|
};
|
|
286
|
-
const
|
|
286
|
+
const de_ChangeMessageVisibilityCommandError = async (output, context) => {
|
|
287
287
|
const parsedOutput = {
|
|
288
288
|
...output,
|
|
289
289
|
body: await parseErrorBody(output.body, context),
|
|
@@ -292,10 +292,10 @@ const deserializeAws_queryChangeMessageVisibilityCommandError = async (output, c
|
|
|
292
292
|
switch (errorCode) {
|
|
293
293
|
case "AWS.SimpleQueueService.MessageNotInflight":
|
|
294
294
|
case "com.amazonaws.sqs#MessageNotInflight":
|
|
295
|
-
throw await
|
|
295
|
+
throw await de_MessageNotInflightRes(parsedOutput, context);
|
|
296
296
|
case "ReceiptHandleIsInvalid":
|
|
297
297
|
case "com.amazonaws.sqs#ReceiptHandleIsInvalid":
|
|
298
|
-
throw await
|
|
298
|
+
throw await de_ReceiptHandleIsInvalidRes(parsedOutput, context);
|
|
299
299
|
default:
|
|
300
300
|
const parsedBody = parsedOutput.body;
|
|
301
301
|
throwDefaultError({
|
|
@@ -306,20 +306,20 @@ const deserializeAws_queryChangeMessageVisibilityCommandError = async (output, c
|
|
|
306
306
|
});
|
|
307
307
|
}
|
|
308
308
|
};
|
|
309
|
-
export const
|
|
309
|
+
export const de_ChangeMessageVisibilityBatchCommand = async (output, context) => {
|
|
310
310
|
if (output.statusCode >= 300) {
|
|
311
|
-
return
|
|
311
|
+
return de_ChangeMessageVisibilityBatchCommandError(output, context);
|
|
312
312
|
}
|
|
313
313
|
const data = await parseBody(output.body, context);
|
|
314
314
|
let contents = {};
|
|
315
|
-
contents =
|
|
315
|
+
contents = de_ChangeMessageVisibilityBatchResult(data.ChangeMessageVisibilityBatchResult, context);
|
|
316
316
|
const response = {
|
|
317
317
|
$metadata: deserializeMetadata(output),
|
|
318
318
|
...contents,
|
|
319
319
|
};
|
|
320
320
|
return Promise.resolve(response);
|
|
321
321
|
};
|
|
322
|
-
const
|
|
322
|
+
const de_ChangeMessageVisibilityBatchCommandError = async (output, context) => {
|
|
323
323
|
const parsedOutput = {
|
|
324
324
|
...output,
|
|
325
325
|
body: await parseErrorBody(output.body, context),
|
|
@@ -328,16 +328,16 @@ const deserializeAws_queryChangeMessageVisibilityBatchCommandError = async (outp
|
|
|
328
328
|
switch (errorCode) {
|
|
329
329
|
case "AWS.SimpleQueueService.BatchEntryIdsNotDistinct":
|
|
330
330
|
case "com.amazonaws.sqs#BatchEntryIdsNotDistinct":
|
|
331
|
-
throw await
|
|
331
|
+
throw await de_BatchEntryIdsNotDistinctRes(parsedOutput, context);
|
|
332
332
|
case "AWS.SimpleQueueService.EmptyBatchRequest":
|
|
333
333
|
case "com.amazonaws.sqs#EmptyBatchRequest":
|
|
334
|
-
throw await
|
|
334
|
+
throw await de_EmptyBatchRequestRes(parsedOutput, context);
|
|
335
335
|
case "AWS.SimpleQueueService.InvalidBatchEntryId":
|
|
336
336
|
case "com.amazonaws.sqs#InvalidBatchEntryId":
|
|
337
|
-
throw await
|
|
337
|
+
throw await de_InvalidBatchEntryIdRes(parsedOutput, context);
|
|
338
338
|
case "AWS.SimpleQueueService.TooManyEntriesInBatchRequest":
|
|
339
339
|
case "com.amazonaws.sqs#TooManyEntriesInBatchRequest":
|
|
340
|
-
throw await
|
|
340
|
+
throw await de_TooManyEntriesInBatchRequestRes(parsedOutput, context);
|
|
341
341
|
default:
|
|
342
342
|
const parsedBody = parsedOutput.body;
|
|
343
343
|
throwDefaultError({
|
|
@@ -348,20 +348,20 @@ const deserializeAws_queryChangeMessageVisibilityBatchCommandError = async (outp
|
|
|
348
348
|
});
|
|
349
349
|
}
|
|
350
350
|
};
|
|
351
|
-
export const
|
|
351
|
+
export const de_CreateQueueCommand = async (output, context) => {
|
|
352
352
|
if (output.statusCode >= 300) {
|
|
353
|
-
return
|
|
353
|
+
return de_CreateQueueCommandError(output, context);
|
|
354
354
|
}
|
|
355
355
|
const data = await parseBody(output.body, context);
|
|
356
356
|
let contents = {};
|
|
357
|
-
contents =
|
|
357
|
+
contents = de_CreateQueueResult(data.CreateQueueResult, context);
|
|
358
358
|
const response = {
|
|
359
359
|
$metadata: deserializeMetadata(output),
|
|
360
360
|
...contents,
|
|
361
361
|
};
|
|
362
362
|
return Promise.resolve(response);
|
|
363
363
|
};
|
|
364
|
-
const
|
|
364
|
+
const de_CreateQueueCommandError = async (output, context) => {
|
|
365
365
|
const parsedOutput = {
|
|
366
366
|
...output,
|
|
367
367
|
body: await parseErrorBody(output.body, context),
|
|
@@ -370,10 +370,10 @@ const deserializeAws_queryCreateQueueCommandError = async (output, context) => {
|
|
|
370
370
|
switch (errorCode) {
|
|
371
371
|
case "AWS.SimpleQueueService.QueueDeletedRecently":
|
|
372
372
|
case "com.amazonaws.sqs#QueueDeletedRecently":
|
|
373
|
-
throw await
|
|
373
|
+
throw await de_QueueDeletedRecentlyRes(parsedOutput, context);
|
|
374
374
|
case "QueueAlreadyExists":
|
|
375
375
|
case "com.amazonaws.sqs#QueueNameExists":
|
|
376
|
-
throw await
|
|
376
|
+
throw await de_QueueNameExistsRes(parsedOutput, context);
|
|
377
377
|
default:
|
|
378
378
|
const parsedBody = parsedOutput.body;
|
|
379
379
|
throwDefaultError({
|
|
@@ -384,9 +384,9 @@ const deserializeAws_queryCreateQueueCommandError = async (output, context) => {
|
|
|
384
384
|
});
|
|
385
385
|
}
|
|
386
386
|
};
|
|
387
|
-
export const
|
|
387
|
+
export const de_DeleteMessageCommand = async (output, context) => {
|
|
388
388
|
if (output.statusCode >= 300) {
|
|
389
|
-
return
|
|
389
|
+
return de_DeleteMessageCommandError(output, context);
|
|
390
390
|
}
|
|
391
391
|
await collectBody(output.body, context);
|
|
392
392
|
const response = {
|
|
@@ -394,7 +394,7 @@ export const deserializeAws_queryDeleteMessageCommand = async (output, context)
|
|
|
394
394
|
};
|
|
395
395
|
return Promise.resolve(response);
|
|
396
396
|
};
|
|
397
|
-
const
|
|
397
|
+
const de_DeleteMessageCommandError = async (output, context) => {
|
|
398
398
|
const parsedOutput = {
|
|
399
399
|
...output,
|
|
400
400
|
body: await parseErrorBody(output.body, context),
|
|
@@ -403,10 +403,10 @@ const deserializeAws_queryDeleteMessageCommandError = async (output, context) =>
|
|
|
403
403
|
switch (errorCode) {
|
|
404
404
|
case "InvalidIdFormat":
|
|
405
405
|
case "com.amazonaws.sqs#InvalidIdFormat":
|
|
406
|
-
throw await
|
|
406
|
+
throw await de_InvalidIdFormatRes(parsedOutput, context);
|
|
407
407
|
case "ReceiptHandleIsInvalid":
|
|
408
408
|
case "com.amazonaws.sqs#ReceiptHandleIsInvalid":
|
|
409
|
-
throw await
|
|
409
|
+
throw await de_ReceiptHandleIsInvalidRes(parsedOutput, context);
|
|
410
410
|
default:
|
|
411
411
|
const parsedBody = parsedOutput.body;
|
|
412
412
|
throwDefaultError({
|
|
@@ -417,20 +417,20 @@ const deserializeAws_queryDeleteMessageCommandError = async (output, context) =>
|
|
|
417
417
|
});
|
|
418
418
|
}
|
|
419
419
|
};
|
|
420
|
-
export const
|
|
420
|
+
export const de_DeleteMessageBatchCommand = async (output, context) => {
|
|
421
421
|
if (output.statusCode >= 300) {
|
|
422
|
-
return
|
|
422
|
+
return de_DeleteMessageBatchCommandError(output, context);
|
|
423
423
|
}
|
|
424
424
|
const data = await parseBody(output.body, context);
|
|
425
425
|
let contents = {};
|
|
426
|
-
contents =
|
|
426
|
+
contents = de_DeleteMessageBatchResult(data.DeleteMessageBatchResult, context);
|
|
427
427
|
const response = {
|
|
428
428
|
$metadata: deserializeMetadata(output),
|
|
429
429
|
...contents,
|
|
430
430
|
};
|
|
431
431
|
return Promise.resolve(response);
|
|
432
432
|
};
|
|
433
|
-
const
|
|
433
|
+
const de_DeleteMessageBatchCommandError = async (output, context) => {
|
|
434
434
|
const parsedOutput = {
|
|
435
435
|
...output,
|
|
436
436
|
body: await parseErrorBody(output.body, context),
|
|
@@ -439,16 +439,16 @@ const deserializeAws_queryDeleteMessageBatchCommandError = async (output, contex
|
|
|
439
439
|
switch (errorCode) {
|
|
440
440
|
case "AWS.SimpleQueueService.BatchEntryIdsNotDistinct":
|
|
441
441
|
case "com.amazonaws.sqs#BatchEntryIdsNotDistinct":
|
|
442
|
-
throw await
|
|
442
|
+
throw await de_BatchEntryIdsNotDistinctRes(parsedOutput, context);
|
|
443
443
|
case "AWS.SimpleQueueService.EmptyBatchRequest":
|
|
444
444
|
case "com.amazonaws.sqs#EmptyBatchRequest":
|
|
445
|
-
throw await
|
|
445
|
+
throw await de_EmptyBatchRequestRes(parsedOutput, context);
|
|
446
446
|
case "AWS.SimpleQueueService.InvalidBatchEntryId":
|
|
447
447
|
case "com.amazonaws.sqs#InvalidBatchEntryId":
|
|
448
|
-
throw await
|
|
448
|
+
throw await de_InvalidBatchEntryIdRes(parsedOutput, context);
|
|
449
449
|
case "AWS.SimpleQueueService.TooManyEntriesInBatchRequest":
|
|
450
450
|
case "com.amazonaws.sqs#TooManyEntriesInBatchRequest":
|
|
451
|
-
throw await
|
|
451
|
+
throw await de_TooManyEntriesInBatchRequestRes(parsedOutput, context);
|
|
452
452
|
default:
|
|
453
453
|
const parsedBody = parsedOutput.body;
|
|
454
454
|
throwDefaultError({
|
|
@@ -459,9 +459,9 @@ const deserializeAws_queryDeleteMessageBatchCommandError = async (output, contex
|
|
|
459
459
|
});
|
|
460
460
|
}
|
|
461
461
|
};
|
|
462
|
-
export const
|
|
462
|
+
export const de_DeleteQueueCommand = async (output, context) => {
|
|
463
463
|
if (output.statusCode >= 300) {
|
|
464
|
-
return
|
|
464
|
+
return de_DeleteQueueCommandError(output, context);
|
|
465
465
|
}
|
|
466
466
|
await collectBody(output.body, context);
|
|
467
467
|
const response = {
|
|
@@ -469,7 +469,7 @@ export const deserializeAws_queryDeleteQueueCommand = async (output, context) =>
|
|
|
469
469
|
};
|
|
470
470
|
return Promise.resolve(response);
|
|
471
471
|
};
|
|
472
|
-
const
|
|
472
|
+
const de_DeleteQueueCommandError = async (output, context) => {
|
|
473
473
|
const parsedOutput = {
|
|
474
474
|
...output,
|
|
475
475
|
body: await parseErrorBody(output.body, context),
|
|
@@ -483,20 +483,20 @@ const deserializeAws_queryDeleteQueueCommandError = async (output, context) => {
|
|
|
483
483
|
errorCode,
|
|
484
484
|
});
|
|
485
485
|
};
|
|
486
|
-
export const
|
|
486
|
+
export const de_GetQueueAttributesCommand = async (output, context) => {
|
|
487
487
|
if (output.statusCode >= 300) {
|
|
488
|
-
return
|
|
488
|
+
return de_GetQueueAttributesCommandError(output, context);
|
|
489
489
|
}
|
|
490
490
|
const data = await parseBody(output.body, context);
|
|
491
491
|
let contents = {};
|
|
492
|
-
contents =
|
|
492
|
+
contents = de_GetQueueAttributesResult(data.GetQueueAttributesResult, context);
|
|
493
493
|
const response = {
|
|
494
494
|
$metadata: deserializeMetadata(output),
|
|
495
495
|
...contents,
|
|
496
496
|
};
|
|
497
497
|
return Promise.resolve(response);
|
|
498
498
|
};
|
|
499
|
-
const
|
|
499
|
+
const de_GetQueueAttributesCommandError = async (output, context) => {
|
|
500
500
|
const parsedOutput = {
|
|
501
501
|
...output,
|
|
502
502
|
body: await parseErrorBody(output.body, context),
|
|
@@ -505,7 +505,7 @@ const deserializeAws_queryGetQueueAttributesCommandError = async (output, contex
|
|
|
505
505
|
switch (errorCode) {
|
|
506
506
|
case "InvalidAttributeName":
|
|
507
507
|
case "com.amazonaws.sqs#InvalidAttributeName":
|
|
508
|
-
throw await
|
|
508
|
+
throw await de_InvalidAttributeNameRes(parsedOutput, context);
|
|
509
509
|
default:
|
|
510
510
|
const parsedBody = parsedOutput.body;
|
|
511
511
|
throwDefaultError({
|
|
@@ -516,20 +516,20 @@ const deserializeAws_queryGetQueueAttributesCommandError = async (output, contex
|
|
|
516
516
|
});
|
|
517
517
|
}
|
|
518
518
|
};
|
|
519
|
-
export const
|
|
519
|
+
export const de_GetQueueUrlCommand = async (output, context) => {
|
|
520
520
|
if (output.statusCode >= 300) {
|
|
521
|
-
return
|
|
521
|
+
return de_GetQueueUrlCommandError(output, context);
|
|
522
522
|
}
|
|
523
523
|
const data = await parseBody(output.body, context);
|
|
524
524
|
let contents = {};
|
|
525
|
-
contents =
|
|
525
|
+
contents = de_GetQueueUrlResult(data.GetQueueUrlResult, context);
|
|
526
526
|
const response = {
|
|
527
527
|
$metadata: deserializeMetadata(output),
|
|
528
528
|
...contents,
|
|
529
529
|
};
|
|
530
530
|
return Promise.resolve(response);
|
|
531
531
|
};
|
|
532
|
-
const
|
|
532
|
+
const de_GetQueueUrlCommandError = async (output, context) => {
|
|
533
533
|
const parsedOutput = {
|
|
534
534
|
...output,
|
|
535
535
|
body: await parseErrorBody(output.body, context),
|
|
@@ -538,7 +538,7 @@ const deserializeAws_queryGetQueueUrlCommandError = async (output, context) => {
|
|
|
538
538
|
switch (errorCode) {
|
|
539
539
|
case "AWS.SimpleQueueService.NonExistentQueue":
|
|
540
540
|
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
541
|
-
throw await
|
|
541
|
+
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
542
542
|
default:
|
|
543
543
|
const parsedBody = parsedOutput.body;
|
|
544
544
|
throwDefaultError({
|
|
@@ -549,20 +549,20 @@ const deserializeAws_queryGetQueueUrlCommandError = async (output, context) => {
|
|
|
549
549
|
});
|
|
550
550
|
}
|
|
551
551
|
};
|
|
552
|
-
export const
|
|
552
|
+
export const de_ListDeadLetterSourceQueuesCommand = async (output, context) => {
|
|
553
553
|
if (output.statusCode >= 300) {
|
|
554
|
-
return
|
|
554
|
+
return de_ListDeadLetterSourceQueuesCommandError(output, context);
|
|
555
555
|
}
|
|
556
556
|
const data = await parseBody(output.body, context);
|
|
557
557
|
let contents = {};
|
|
558
|
-
contents =
|
|
558
|
+
contents = de_ListDeadLetterSourceQueuesResult(data.ListDeadLetterSourceQueuesResult, context);
|
|
559
559
|
const response = {
|
|
560
560
|
$metadata: deserializeMetadata(output),
|
|
561
561
|
...contents,
|
|
562
562
|
};
|
|
563
563
|
return Promise.resolve(response);
|
|
564
564
|
};
|
|
565
|
-
const
|
|
565
|
+
const de_ListDeadLetterSourceQueuesCommandError = async (output, context) => {
|
|
566
566
|
const parsedOutput = {
|
|
567
567
|
...output,
|
|
568
568
|
body: await parseErrorBody(output.body, context),
|
|
@@ -571,7 +571,7 @@ const deserializeAws_queryListDeadLetterSourceQueuesCommandError = async (output
|
|
|
571
571
|
switch (errorCode) {
|
|
572
572
|
case "AWS.SimpleQueueService.NonExistentQueue":
|
|
573
573
|
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
574
|
-
throw await
|
|
574
|
+
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
575
575
|
default:
|
|
576
576
|
const parsedBody = parsedOutput.body;
|
|
577
577
|
throwDefaultError({
|
|
@@ -582,20 +582,20 @@ const deserializeAws_queryListDeadLetterSourceQueuesCommandError = async (output
|
|
|
582
582
|
});
|
|
583
583
|
}
|
|
584
584
|
};
|
|
585
|
-
export const
|
|
585
|
+
export const de_ListQueuesCommand = async (output, context) => {
|
|
586
586
|
if (output.statusCode >= 300) {
|
|
587
|
-
return
|
|
587
|
+
return de_ListQueuesCommandError(output, context);
|
|
588
588
|
}
|
|
589
589
|
const data = await parseBody(output.body, context);
|
|
590
590
|
let contents = {};
|
|
591
|
-
contents =
|
|
591
|
+
contents = de_ListQueuesResult(data.ListQueuesResult, context);
|
|
592
592
|
const response = {
|
|
593
593
|
$metadata: deserializeMetadata(output),
|
|
594
594
|
...contents,
|
|
595
595
|
};
|
|
596
596
|
return Promise.resolve(response);
|
|
597
597
|
};
|
|
598
|
-
const
|
|
598
|
+
const de_ListQueuesCommandError = async (output, context) => {
|
|
599
599
|
const parsedOutput = {
|
|
600
600
|
...output,
|
|
601
601
|
body: await parseErrorBody(output.body, context),
|
|
@@ -609,20 +609,20 @@ const deserializeAws_queryListQueuesCommandError = async (output, context) => {
|
|
|
609
609
|
errorCode,
|
|
610
610
|
});
|
|
611
611
|
};
|
|
612
|
-
export const
|
|
612
|
+
export const de_ListQueueTagsCommand = async (output, context) => {
|
|
613
613
|
if (output.statusCode >= 300) {
|
|
614
|
-
return
|
|
614
|
+
return de_ListQueueTagsCommandError(output, context);
|
|
615
615
|
}
|
|
616
616
|
const data = await parseBody(output.body, context);
|
|
617
617
|
let contents = {};
|
|
618
|
-
contents =
|
|
618
|
+
contents = de_ListQueueTagsResult(data.ListQueueTagsResult, context);
|
|
619
619
|
const response = {
|
|
620
620
|
$metadata: deserializeMetadata(output),
|
|
621
621
|
...contents,
|
|
622
622
|
};
|
|
623
623
|
return Promise.resolve(response);
|
|
624
624
|
};
|
|
625
|
-
const
|
|
625
|
+
const de_ListQueueTagsCommandError = async (output, context) => {
|
|
626
626
|
const parsedOutput = {
|
|
627
627
|
...output,
|
|
628
628
|
body: await parseErrorBody(output.body, context),
|
|
@@ -636,9 +636,9 @@ const deserializeAws_queryListQueueTagsCommandError = async (output, context) =>
|
|
|
636
636
|
errorCode,
|
|
637
637
|
});
|
|
638
638
|
};
|
|
639
|
-
export const
|
|
639
|
+
export const de_PurgeQueueCommand = async (output, context) => {
|
|
640
640
|
if (output.statusCode >= 300) {
|
|
641
|
-
return
|
|
641
|
+
return de_PurgeQueueCommandError(output, context);
|
|
642
642
|
}
|
|
643
643
|
await collectBody(output.body, context);
|
|
644
644
|
const response = {
|
|
@@ -646,7 +646,7 @@ export const deserializeAws_queryPurgeQueueCommand = async (output, context) =>
|
|
|
646
646
|
};
|
|
647
647
|
return Promise.resolve(response);
|
|
648
648
|
};
|
|
649
|
-
const
|
|
649
|
+
const de_PurgeQueueCommandError = async (output, context) => {
|
|
650
650
|
const parsedOutput = {
|
|
651
651
|
...output,
|
|
652
652
|
body: await parseErrorBody(output.body, context),
|
|
@@ -655,10 +655,10 @@ const deserializeAws_queryPurgeQueueCommandError = async (output, context) => {
|
|
|
655
655
|
switch (errorCode) {
|
|
656
656
|
case "AWS.SimpleQueueService.NonExistentQueue":
|
|
657
657
|
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
658
|
-
throw await
|
|
658
|
+
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
659
659
|
case "AWS.SimpleQueueService.PurgeQueueInProgress":
|
|
660
660
|
case "com.amazonaws.sqs#PurgeQueueInProgress":
|
|
661
|
-
throw await
|
|
661
|
+
throw await de_PurgeQueueInProgressRes(parsedOutput, context);
|
|
662
662
|
default:
|
|
663
663
|
const parsedBody = parsedOutput.body;
|
|
664
664
|
throwDefaultError({
|
|
@@ -669,20 +669,20 @@ const deserializeAws_queryPurgeQueueCommandError = async (output, context) => {
|
|
|
669
669
|
});
|
|
670
670
|
}
|
|
671
671
|
};
|
|
672
|
-
export const
|
|
672
|
+
export const de_ReceiveMessageCommand = async (output, context) => {
|
|
673
673
|
if (output.statusCode >= 300) {
|
|
674
|
-
return
|
|
674
|
+
return de_ReceiveMessageCommandError(output, context);
|
|
675
675
|
}
|
|
676
676
|
const data = await parseBody(output.body, context);
|
|
677
677
|
let contents = {};
|
|
678
|
-
contents =
|
|
678
|
+
contents = de_ReceiveMessageResult(data.ReceiveMessageResult, context);
|
|
679
679
|
const response = {
|
|
680
680
|
$metadata: deserializeMetadata(output),
|
|
681
681
|
...contents,
|
|
682
682
|
};
|
|
683
683
|
return Promise.resolve(response);
|
|
684
684
|
};
|
|
685
|
-
const
|
|
685
|
+
const de_ReceiveMessageCommandError = async (output, context) => {
|
|
686
686
|
const parsedOutput = {
|
|
687
687
|
...output,
|
|
688
688
|
body: await parseErrorBody(output.body, context),
|
|
@@ -691,7 +691,7 @@ const deserializeAws_queryReceiveMessageCommandError = async (output, context) =
|
|
|
691
691
|
switch (errorCode) {
|
|
692
692
|
case "OverLimit":
|
|
693
693
|
case "com.amazonaws.sqs#OverLimit":
|
|
694
|
-
throw await
|
|
694
|
+
throw await de_OverLimitRes(parsedOutput, context);
|
|
695
695
|
default:
|
|
696
696
|
const parsedBody = parsedOutput.body;
|
|
697
697
|
throwDefaultError({
|
|
@@ -702,9 +702,9 @@ const deserializeAws_queryReceiveMessageCommandError = async (output, context) =
|
|
|
702
702
|
});
|
|
703
703
|
}
|
|
704
704
|
};
|
|
705
|
-
export const
|
|
705
|
+
export const de_RemovePermissionCommand = async (output, context) => {
|
|
706
706
|
if (output.statusCode >= 300) {
|
|
707
|
-
return
|
|
707
|
+
return de_RemovePermissionCommandError(output, context);
|
|
708
708
|
}
|
|
709
709
|
await collectBody(output.body, context);
|
|
710
710
|
const response = {
|
|
@@ -712,7 +712,7 @@ export const deserializeAws_queryRemovePermissionCommand = async (output, contex
|
|
|
712
712
|
};
|
|
713
713
|
return Promise.resolve(response);
|
|
714
714
|
};
|
|
715
|
-
const
|
|
715
|
+
const de_RemovePermissionCommandError = async (output, context) => {
|
|
716
716
|
const parsedOutput = {
|
|
717
717
|
...output,
|
|
718
718
|
body: await parseErrorBody(output.body, context),
|
|
@@ -726,20 +726,20 @@ const deserializeAws_queryRemovePermissionCommandError = async (output, context)
|
|
|
726
726
|
errorCode,
|
|
727
727
|
});
|
|
728
728
|
};
|
|
729
|
-
export const
|
|
729
|
+
export const de_SendMessageCommand = async (output, context) => {
|
|
730
730
|
if (output.statusCode >= 300) {
|
|
731
|
-
return
|
|
731
|
+
return de_SendMessageCommandError(output, context);
|
|
732
732
|
}
|
|
733
733
|
const data = await parseBody(output.body, context);
|
|
734
734
|
let contents = {};
|
|
735
|
-
contents =
|
|
735
|
+
contents = de_SendMessageResult(data.SendMessageResult, context);
|
|
736
736
|
const response = {
|
|
737
737
|
$metadata: deserializeMetadata(output),
|
|
738
738
|
...contents,
|
|
739
739
|
};
|
|
740
740
|
return Promise.resolve(response);
|
|
741
741
|
};
|
|
742
|
-
const
|
|
742
|
+
const de_SendMessageCommandError = async (output, context) => {
|
|
743
743
|
const parsedOutput = {
|
|
744
744
|
...output,
|
|
745
745
|
body: await parseErrorBody(output.body, context),
|
|
@@ -748,10 +748,10 @@ const deserializeAws_querySendMessageCommandError = async (output, context) => {
|
|
|
748
748
|
switch (errorCode) {
|
|
749
749
|
case "AWS.SimpleQueueService.UnsupportedOperation":
|
|
750
750
|
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
751
|
-
throw await
|
|
751
|
+
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
752
752
|
case "InvalidMessageContents":
|
|
753
753
|
case "com.amazonaws.sqs#InvalidMessageContents":
|
|
754
|
-
throw await
|
|
754
|
+
throw await de_InvalidMessageContentsRes(parsedOutput, context);
|
|
755
755
|
default:
|
|
756
756
|
const parsedBody = parsedOutput.body;
|
|
757
757
|
throwDefaultError({
|
|
@@ -762,20 +762,20 @@ const deserializeAws_querySendMessageCommandError = async (output, context) => {
|
|
|
762
762
|
});
|
|
763
763
|
}
|
|
764
764
|
};
|
|
765
|
-
export const
|
|
765
|
+
export const de_SendMessageBatchCommand = async (output, context) => {
|
|
766
766
|
if (output.statusCode >= 300) {
|
|
767
|
-
return
|
|
767
|
+
return de_SendMessageBatchCommandError(output, context);
|
|
768
768
|
}
|
|
769
769
|
const data = await parseBody(output.body, context);
|
|
770
770
|
let contents = {};
|
|
771
|
-
contents =
|
|
771
|
+
contents = de_SendMessageBatchResult(data.SendMessageBatchResult, context);
|
|
772
772
|
const response = {
|
|
773
773
|
$metadata: deserializeMetadata(output),
|
|
774
774
|
...contents,
|
|
775
775
|
};
|
|
776
776
|
return Promise.resolve(response);
|
|
777
777
|
};
|
|
778
|
-
const
|
|
778
|
+
const de_SendMessageBatchCommandError = async (output, context) => {
|
|
779
779
|
const parsedOutput = {
|
|
780
780
|
...output,
|
|
781
781
|
body: await parseErrorBody(output.body, context),
|
|
@@ -784,22 +784,22 @@ const deserializeAws_querySendMessageBatchCommandError = async (output, context)
|
|
|
784
784
|
switch (errorCode) {
|
|
785
785
|
case "AWS.SimpleQueueService.BatchEntryIdsNotDistinct":
|
|
786
786
|
case "com.amazonaws.sqs#BatchEntryIdsNotDistinct":
|
|
787
|
-
throw await
|
|
787
|
+
throw await de_BatchEntryIdsNotDistinctRes(parsedOutput, context);
|
|
788
788
|
case "AWS.SimpleQueueService.BatchRequestTooLong":
|
|
789
789
|
case "com.amazonaws.sqs#BatchRequestTooLong":
|
|
790
|
-
throw await
|
|
790
|
+
throw await de_BatchRequestTooLongRes(parsedOutput, context);
|
|
791
791
|
case "AWS.SimpleQueueService.EmptyBatchRequest":
|
|
792
792
|
case "com.amazonaws.sqs#EmptyBatchRequest":
|
|
793
|
-
throw await
|
|
793
|
+
throw await de_EmptyBatchRequestRes(parsedOutput, context);
|
|
794
794
|
case "AWS.SimpleQueueService.InvalidBatchEntryId":
|
|
795
795
|
case "com.amazonaws.sqs#InvalidBatchEntryId":
|
|
796
|
-
throw await
|
|
796
|
+
throw await de_InvalidBatchEntryIdRes(parsedOutput, context);
|
|
797
797
|
case "AWS.SimpleQueueService.TooManyEntriesInBatchRequest":
|
|
798
798
|
case "com.amazonaws.sqs#TooManyEntriesInBatchRequest":
|
|
799
|
-
throw await
|
|
799
|
+
throw await de_TooManyEntriesInBatchRequestRes(parsedOutput, context);
|
|
800
800
|
case "AWS.SimpleQueueService.UnsupportedOperation":
|
|
801
801
|
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
802
|
-
throw await
|
|
802
|
+
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
803
803
|
default:
|
|
804
804
|
const parsedBody = parsedOutput.body;
|
|
805
805
|
throwDefaultError({
|
|
@@ -810,9 +810,9 @@ const deserializeAws_querySendMessageBatchCommandError = async (output, context)
|
|
|
810
810
|
});
|
|
811
811
|
}
|
|
812
812
|
};
|
|
813
|
-
export const
|
|
813
|
+
export const de_SetQueueAttributesCommand = async (output, context) => {
|
|
814
814
|
if (output.statusCode >= 300) {
|
|
815
|
-
return
|
|
815
|
+
return de_SetQueueAttributesCommandError(output, context);
|
|
816
816
|
}
|
|
817
817
|
await collectBody(output.body, context);
|
|
818
818
|
const response = {
|
|
@@ -820,7 +820,7 @@ export const deserializeAws_querySetQueueAttributesCommand = async (output, cont
|
|
|
820
820
|
};
|
|
821
821
|
return Promise.resolve(response);
|
|
822
822
|
};
|
|
823
|
-
const
|
|
823
|
+
const de_SetQueueAttributesCommandError = async (output, context) => {
|
|
824
824
|
const parsedOutput = {
|
|
825
825
|
...output,
|
|
826
826
|
body: await parseErrorBody(output.body, context),
|
|
@@ -829,7 +829,7 @@ const deserializeAws_querySetQueueAttributesCommandError = async (output, contex
|
|
|
829
829
|
switch (errorCode) {
|
|
830
830
|
case "InvalidAttributeName":
|
|
831
831
|
case "com.amazonaws.sqs#InvalidAttributeName":
|
|
832
|
-
throw await
|
|
832
|
+
throw await de_InvalidAttributeNameRes(parsedOutput, context);
|
|
833
833
|
default:
|
|
834
834
|
const parsedBody = parsedOutput.body;
|
|
835
835
|
throwDefaultError({
|
|
@@ -840,9 +840,9 @@ const deserializeAws_querySetQueueAttributesCommandError = async (output, contex
|
|
|
840
840
|
});
|
|
841
841
|
}
|
|
842
842
|
};
|
|
843
|
-
export const
|
|
843
|
+
export const de_TagQueueCommand = async (output, context) => {
|
|
844
844
|
if (output.statusCode >= 300) {
|
|
845
|
-
return
|
|
845
|
+
return de_TagQueueCommandError(output, context);
|
|
846
846
|
}
|
|
847
847
|
await collectBody(output.body, context);
|
|
848
848
|
const response = {
|
|
@@ -850,7 +850,7 @@ export const deserializeAws_queryTagQueueCommand = async (output, context) => {
|
|
|
850
850
|
};
|
|
851
851
|
return Promise.resolve(response);
|
|
852
852
|
};
|
|
853
|
-
const
|
|
853
|
+
const de_TagQueueCommandError = async (output, context) => {
|
|
854
854
|
const parsedOutput = {
|
|
855
855
|
...output,
|
|
856
856
|
body: await parseErrorBody(output.body, context),
|
|
@@ -864,9 +864,9 @@ const deserializeAws_queryTagQueueCommandError = async (output, context) => {
|
|
|
864
864
|
errorCode,
|
|
865
865
|
});
|
|
866
866
|
};
|
|
867
|
-
export const
|
|
867
|
+
export const de_UntagQueueCommand = async (output, context) => {
|
|
868
868
|
if (output.statusCode >= 300) {
|
|
869
|
-
return
|
|
869
|
+
return de_UntagQueueCommandError(output, context);
|
|
870
870
|
}
|
|
871
871
|
await collectBody(output.body, context);
|
|
872
872
|
const response = {
|
|
@@ -874,7 +874,7 @@ export const deserializeAws_queryUntagQueueCommand = async (output, context) =>
|
|
|
874
874
|
};
|
|
875
875
|
return Promise.resolve(response);
|
|
876
876
|
};
|
|
877
|
-
const
|
|
877
|
+
const de_UntagQueueCommandError = async (output, context) => {
|
|
878
878
|
const parsedOutput = {
|
|
879
879
|
...output,
|
|
880
880
|
body: await parseErrorBody(output.body, context),
|
|
@@ -888,151 +888,151 @@ const deserializeAws_queryUntagQueueCommandError = async (output, context) => {
|
|
|
888
888
|
errorCode,
|
|
889
889
|
});
|
|
890
890
|
};
|
|
891
|
-
const
|
|
891
|
+
const de_BatchEntryIdsNotDistinctRes = async (parsedOutput, context) => {
|
|
892
892
|
const body = parsedOutput.body;
|
|
893
|
-
const deserialized =
|
|
893
|
+
const deserialized = de_BatchEntryIdsNotDistinct(body.Error, context);
|
|
894
894
|
const exception = new BatchEntryIdsNotDistinct({
|
|
895
895
|
$metadata: deserializeMetadata(parsedOutput),
|
|
896
896
|
...deserialized,
|
|
897
897
|
});
|
|
898
898
|
return __decorateServiceException(exception, body);
|
|
899
899
|
};
|
|
900
|
-
const
|
|
900
|
+
const de_BatchRequestTooLongRes = async (parsedOutput, context) => {
|
|
901
901
|
const body = parsedOutput.body;
|
|
902
|
-
const deserialized =
|
|
902
|
+
const deserialized = de_BatchRequestTooLong(body.Error, context);
|
|
903
903
|
const exception = new BatchRequestTooLong({
|
|
904
904
|
$metadata: deserializeMetadata(parsedOutput),
|
|
905
905
|
...deserialized,
|
|
906
906
|
});
|
|
907
907
|
return __decorateServiceException(exception, body);
|
|
908
908
|
};
|
|
909
|
-
const
|
|
909
|
+
const de_EmptyBatchRequestRes = async (parsedOutput, context) => {
|
|
910
910
|
const body = parsedOutput.body;
|
|
911
|
-
const deserialized =
|
|
911
|
+
const deserialized = de_EmptyBatchRequest(body.Error, context);
|
|
912
912
|
const exception = new EmptyBatchRequest({
|
|
913
913
|
$metadata: deserializeMetadata(parsedOutput),
|
|
914
914
|
...deserialized,
|
|
915
915
|
});
|
|
916
916
|
return __decorateServiceException(exception, body);
|
|
917
917
|
};
|
|
918
|
-
const
|
|
918
|
+
const de_InvalidAttributeNameRes = async (parsedOutput, context) => {
|
|
919
919
|
const body = parsedOutput.body;
|
|
920
|
-
const deserialized =
|
|
920
|
+
const deserialized = de_InvalidAttributeName(body.Error, context);
|
|
921
921
|
const exception = new InvalidAttributeName({
|
|
922
922
|
$metadata: deserializeMetadata(parsedOutput),
|
|
923
923
|
...deserialized,
|
|
924
924
|
});
|
|
925
925
|
return __decorateServiceException(exception, body);
|
|
926
926
|
};
|
|
927
|
-
const
|
|
927
|
+
const de_InvalidBatchEntryIdRes = async (parsedOutput, context) => {
|
|
928
928
|
const body = parsedOutput.body;
|
|
929
|
-
const deserialized =
|
|
929
|
+
const deserialized = de_InvalidBatchEntryId(body.Error, context);
|
|
930
930
|
const exception = new InvalidBatchEntryId({
|
|
931
931
|
$metadata: deserializeMetadata(parsedOutput),
|
|
932
932
|
...deserialized,
|
|
933
933
|
});
|
|
934
934
|
return __decorateServiceException(exception, body);
|
|
935
935
|
};
|
|
936
|
-
const
|
|
936
|
+
const de_InvalidIdFormatRes = async (parsedOutput, context) => {
|
|
937
937
|
const body = parsedOutput.body;
|
|
938
|
-
const deserialized =
|
|
938
|
+
const deserialized = de_InvalidIdFormat(body.Error, context);
|
|
939
939
|
const exception = new InvalidIdFormat({
|
|
940
940
|
$metadata: deserializeMetadata(parsedOutput),
|
|
941
941
|
...deserialized,
|
|
942
942
|
});
|
|
943
943
|
return __decorateServiceException(exception, body);
|
|
944
944
|
};
|
|
945
|
-
const
|
|
945
|
+
const de_InvalidMessageContentsRes = async (parsedOutput, context) => {
|
|
946
946
|
const body = parsedOutput.body;
|
|
947
|
-
const deserialized =
|
|
947
|
+
const deserialized = de_InvalidMessageContents(body.Error, context);
|
|
948
948
|
const exception = new InvalidMessageContents({
|
|
949
949
|
$metadata: deserializeMetadata(parsedOutput),
|
|
950
950
|
...deserialized,
|
|
951
951
|
});
|
|
952
952
|
return __decorateServiceException(exception, body);
|
|
953
953
|
};
|
|
954
|
-
const
|
|
954
|
+
const de_MessageNotInflightRes = async (parsedOutput, context) => {
|
|
955
955
|
const body = parsedOutput.body;
|
|
956
|
-
const deserialized =
|
|
956
|
+
const deserialized = de_MessageNotInflight(body.Error, context);
|
|
957
957
|
const exception = new MessageNotInflight({
|
|
958
958
|
$metadata: deserializeMetadata(parsedOutput),
|
|
959
959
|
...deserialized,
|
|
960
960
|
});
|
|
961
961
|
return __decorateServiceException(exception, body);
|
|
962
962
|
};
|
|
963
|
-
const
|
|
963
|
+
const de_OverLimitRes = async (parsedOutput, context) => {
|
|
964
964
|
const body = parsedOutput.body;
|
|
965
|
-
const deserialized =
|
|
965
|
+
const deserialized = de_OverLimit(body.Error, context);
|
|
966
966
|
const exception = new OverLimit({
|
|
967
967
|
$metadata: deserializeMetadata(parsedOutput),
|
|
968
968
|
...deserialized,
|
|
969
969
|
});
|
|
970
970
|
return __decorateServiceException(exception, body);
|
|
971
971
|
};
|
|
972
|
-
const
|
|
972
|
+
const de_PurgeQueueInProgressRes = async (parsedOutput, context) => {
|
|
973
973
|
const body = parsedOutput.body;
|
|
974
|
-
const deserialized =
|
|
974
|
+
const deserialized = de_PurgeQueueInProgress(body.Error, context);
|
|
975
975
|
const exception = new PurgeQueueInProgress({
|
|
976
976
|
$metadata: deserializeMetadata(parsedOutput),
|
|
977
977
|
...deserialized,
|
|
978
978
|
});
|
|
979
979
|
return __decorateServiceException(exception, body);
|
|
980
980
|
};
|
|
981
|
-
const
|
|
981
|
+
const de_QueueDeletedRecentlyRes = async (parsedOutput, context) => {
|
|
982
982
|
const body = parsedOutput.body;
|
|
983
|
-
const deserialized =
|
|
983
|
+
const deserialized = de_QueueDeletedRecently(body.Error, context);
|
|
984
984
|
const exception = new QueueDeletedRecently({
|
|
985
985
|
$metadata: deserializeMetadata(parsedOutput),
|
|
986
986
|
...deserialized,
|
|
987
987
|
});
|
|
988
988
|
return __decorateServiceException(exception, body);
|
|
989
989
|
};
|
|
990
|
-
const
|
|
990
|
+
const de_QueueDoesNotExistRes = async (parsedOutput, context) => {
|
|
991
991
|
const body = parsedOutput.body;
|
|
992
|
-
const deserialized =
|
|
992
|
+
const deserialized = de_QueueDoesNotExist(body.Error, context);
|
|
993
993
|
const exception = new QueueDoesNotExist({
|
|
994
994
|
$metadata: deserializeMetadata(parsedOutput),
|
|
995
995
|
...deserialized,
|
|
996
996
|
});
|
|
997
997
|
return __decorateServiceException(exception, body);
|
|
998
998
|
};
|
|
999
|
-
const
|
|
999
|
+
const de_QueueNameExistsRes = async (parsedOutput, context) => {
|
|
1000
1000
|
const body = parsedOutput.body;
|
|
1001
|
-
const deserialized =
|
|
1001
|
+
const deserialized = de_QueueNameExists(body.Error, context);
|
|
1002
1002
|
const exception = new QueueNameExists({
|
|
1003
1003
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1004
1004
|
...deserialized,
|
|
1005
1005
|
});
|
|
1006
1006
|
return __decorateServiceException(exception, body);
|
|
1007
1007
|
};
|
|
1008
|
-
const
|
|
1008
|
+
const de_ReceiptHandleIsInvalidRes = async (parsedOutput, context) => {
|
|
1009
1009
|
const body = parsedOutput.body;
|
|
1010
|
-
const deserialized =
|
|
1010
|
+
const deserialized = de_ReceiptHandleIsInvalid(body.Error, context);
|
|
1011
1011
|
const exception = new ReceiptHandleIsInvalid({
|
|
1012
1012
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1013
1013
|
...deserialized,
|
|
1014
1014
|
});
|
|
1015
1015
|
return __decorateServiceException(exception, body);
|
|
1016
1016
|
};
|
|
1017
|
-
const
|
|
1017
|
+
const de_TooManyEntriesInBatchRequestRes = async (parsedOutput, context) => {
|
|
1018
1018
|
const body = parsedOutput.body;
|
|
1019
|
-
const deserialized =
|
|
1019
|
+
const deserialized = de_TooManyEntriesInBatchRequest(body.Error, context);
|
|
1020
1020
|
const exception = new TooManyEntriesInBatchRequest({
|
|
1021
1021
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1022
1022
|
...deserialized,
|
|
1023
1023
|
});
|
|
1024
1024
|
return __decorateServiceException(exception, body);
|
|
1025
1025
|
};
|
|
1026
|
-
const
|
|
1026
|
+
const de_UnsupportedOperationRes = async (parsedOutput, context) => {
|
|
1027
1027
|
const body = parsedOutput.body;
|
|
1028
|
-
const deserialized =
|
|
1028
|
+
const deserialized = de_UnsupportedOperation(body.Error, context);
|
|
1029
1029
|
const exception = new UnsupportedOperation({
|
|
1030
1030
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1031
1031
|
...deserialized,
|
|
1032
1032
|
});
|
|
1033
1033
|
return __decorateServiceException(exception, body);
|
|
1034
1034
|
};
|
|
1035
|
-
const
|
|
1035
|
+
const se_ActionNameList = (input, context) => {
|
|
1036
1036
|
const entries = {};
|
|
1037
1037
|
let counter = 1;
|
|
1038
1038
|
for (const entry of input) {
|
|
@@ -1044,7 +1044,7 @@ const serializeAws_queryActionNameList = (input, context) => {
|
|
|
1044
1044
|
}
|
|
1045
1045
|
return entries;
|
|
1046
1046
|
};
|
|
1047
|
-
const
|
|
1047
|
+
const se_AddPermissionRequest = (input, context) => {
|
|
1048
1048
|
const entries = {};
|
|
1049
1049
|
if (input.QueueUrl != null) {
|
|
1050
1050
|
entries["QueueUrl"] = input.QueueUrl;
|
|
@@ -1053,7 +1053,7 @@ const serializeAws_queryAddPermissionRequest = (input, context) => {
|
|
|
1053
1053
|
entries["Label"] = input.Label;
|
|
1054
1054
|
}
|
|
1055
1055
|
if (input.AWSAccountIds != null) {
|
|
1056
|
-
const memberEntries =
|
|
1056
|
+
const memberEntries = se_AWSAccountIdList(input.AWSAccountIds, context);
|
|
1057
1057
|
if (input.AWSAccountIds?.length === 0) {
|
|
1058
1058
|
entries.AWSAccountId = [];
|
|
1059
1059
|
}
|
|
@@ -1063,7 +1063,7 @@ const serializeAws_queryAddPermissionRequest = (input, context) => {
|
|
|
1063
1063
|
});
|
|
1064
1064
|
}
|
|
1065
1065
|
if (input.Actions != null) {
|
|
1066
|
-
const memberEntries =
|
|
1066
|
+
const memberEntries = se_ActionNameList(input.Actions, context);
|
|
1067
1067
|
if (input.Actions?.length === 0) {
|
|
1068
1068
|
entries.ActionName = [];
|
|
1069
1069
|
}
|
|
@@ -1074,7 +1074,7 @@ const serializeAws_queryAddPermissionRequest = (input, context) => {
|
|
|
1074
1074
|
}
|
|
1075
1075
|
return entries;
|
|
1076
1076
|
};
|
|
1077
|
-
const
|
|
1077
|
+
const se_AttributeNameList = (input, context) => {
|
|
1078
1078
|
const entries = {};
|
|
1079
1079
|
let counter = 1;
|
|
1080
1080
|
for (const entry of input) {
|
|
@@ -1086,7 +1086,7 @@ const serializeAws_queryAttributeNameList = (input, context) => {
|
|
|
1086
1086
|
}
|
|
1087
1087
|
return entries;
|
|
1088
1088
|
};
|
|
1089
|
-
const
|
|
1089
|
+
const se_AWSAccountIdList = (input, context) => {
|
|
1090
1090
|
const entries = {};
|
|
1091
1091
|
let counter = 1;
|
|
1092
1092
|
for (const entry of input) {
|
|
@@ -1098,7 +1098,7 @@ const serializeAws_queryAWSAccountIdList = (input, context) => {
|
|
|
1098
1098
|
}
|
|
1099
1099
|
return entries;
|
|
1100
1100
|
};
|
|
1101
|
-
const
|
|
1101
|
+
const se_BinaryList = (input, context) => {
|
|
1102
1102
|
const entries = {};
|
|
1103
1103
|
let counter = 1;
|
|
1104
1104
|
for (const entry of input) {
|
|
@@ -1110,13 +1110,13 @@ const serializeAws_queryBinaryList = (input, context) => {
|
|
|
1110
1110
|
}
|
|
1111
1111
|
return entries;
|
|
1112
1112
|
};
|
|
1113
|
-
const
|
|
1113
|
+
const se_ChangeMessageVisibilityBatchRequest = (input, context) => {
|
|
1114
1114
|
const entries = {};
|
|
1115
1115
|
if (input.QueueUrl != null) {
|
|
1116
1116
|
entries["QueueUrl"] = input.QueueUrl;
|
|
1117
1117
|
}
|
|
1118
1118
|
if (input.Entries != null) {
|
|
1119
|
-
const memberEntries =
|
|
1119
|
+
const memberEntries = se_ChangeMessageVisibilityBatchRequestEntryList(input.Entries, context);
|
|
1120
1120
|
if (input.Entries?.length === 0) {
|
|
1121
1121
|
entries.ChangeMessageVisibilityBatchRequestEntry = [];
|
|
1122
1122
|
}
|
|
@@ -1127,7 +1127,7 @@ const serializeAws_queryChangeMessageVisibilityBatchRequest = (input, context) =
|
|
|
1127
1127
|
}
|
|
1128
1128
|
return entries;
|
|
1129
1129
|
};
|
|
1130
|
-
const
|
|
1130
|
+
const se_ChangeMessageVisibilityBatchRequestEntry = (input, context) => {
|
|
1131
1131
|
const entries = {};
|
|
1132
1132
|
if (input.Id != null) {
|
|
1133
1133
|
entries["Id"] = input.Id;
|
|
@@ -1140,14 +1140,14 @@ const serializeAws_queryChangeMessageVisibilityBatchRequestEntry = (input, conte
|
|
|
1140
1140
|
}
|
|
1141
1141
|
return entries;
|
|
1142
1142
|
};
|
|
1143
|
-
const
|
|
1143
|
+
const se_ChangeMessageVisibilityBatchRequestEntryList = (input, context) => {
|
|
1144
1144
|
const entries = {};
|
|
1145
1145
|
let counter = 1;
|
|
1146
1146
|
for (const entry of input) {
|
|
1147
1147
|
if (entry === null) {
|
|
1148
1148
|
continue;
|
|
1149
1149
|
}
|
|
1150
|
-
const memberEntries =
|
|
1150
|
+
const memberEntries = se_ChangeMessageVisibilityBatchRequestEntry(entry, context);
|
|
1151
1151
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1152
1152
|
entries[`member.${counter}.${key}`] = value;
|
|
1153
1153
|
});
|
|
@@ -1155,7 +1155,7 @@ const serializeAws_queryChangeMessageVisibilityBatchRequestEntryList = (input, c
|
|
|
1155
1155
|
}
|
|
1156
1156
|
return entries;
|
|
1157
1157
|
};
|
|
1158
|
-
const
|
|
1158
|
+
const se_ChangeMessageVisibilityRequest = (input, context) => {
|
|
1159
1159
|
const entries = {};
|
|
1160
1160
|
if (input.QueueUrl != null) {
|
|
1161
1161
|
entries["QueueUrl"] = input.QueueUrl;
|
|
@@ -1168,20 +1168,20 @@ const serializeAws_queryChangeMessageVisibilityRequest = (input, context) => {
|
|
|
1168
1168
|
}
|
|
1169
1169
|
return entries;
|
|
1170
1170
|
};
|
|
1171
|
-
const
|
|
1171
|
+
const se_CreateQueueRequest = (input, context) => {
|
|
1172
1172
|
const entries = {};
|
|
1173
1173
|
if (input.QueueName != null) {
|
|
1174
1174
|
entries["QueueName"] = input.QueueName;
|
|
1175
1175
|
}
|
|
1176
1176
|
if (input.tags != null) {
|
|
1177
|
-
const memberEntries =
|
|
1177
|
+
const memberEntries = se_TagMap(input.tags, context);
|
|
1178
1178
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1179
1179
|
const loc = `Tag.${key.substring(key.indexOf(".") + 1)}`;
|
|
1180
1180
|
entries[loc] = value;
|
|
1181
1181
|
});
|
|
1182
1182
|
}
|
|
1183
1183
|
if (input.Attributes != null) {
|
|
1184
|
-
const memberEntries =
|
|
1184
|
+
const memberEntries = se_QueueAttributeMap(input.Attributes, context);
|
|
1185
1185
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1186
1186
|
const loc = `Attribute.${key.substring(key.indexOf(".") + 1)}`;
|
|
1187
1187
|
entries[loc] = value;
|
|
@@ -1189,13 +1189,13 @@ const serializeAws_queryCreateQueueRequest = (input, context) => {
|
|
|
1189
1189
|
}
|
|
1190
1190
|
return entries;
|
|
1191
1191
|
};
|
|
1192
|
-
const
|
|
1192
|
+
const se_DeleteMessageBatchRequest = (input, context) => {
|
|
1193
1193
|
const entries = {};
|
|
1194
1194
|
if (input.QueueUrl != null) {
|
|
1195
1195
|
entries["QueueUrl"] = input.QueueUrl;
|
|
1196
1196
|
}
|
|
1197
1197
|
if (input.Entries != null) {
|
|
1198
|
-
const memberEntries =
|
|
1198
|
+
const memberEntries = se_DeleteMessageBatchRequestEntryList(input.Entries, context);
|
|
1199
1199
|
if (input.Entries?.length === 0) {
|
|
1200
1200
|
entries.DeleteMessageBatchRequestEntry = [];
|
|
1201
1201
|
}
|
|
@@ -1206,7 +1206,7 @@ const serializeAws_queryDeleteMessageBatchRequest = (input, context) => {
|
|
|
1206
1206
|
}
|
|
1207
1207
|
return entries;
|
|
1208
1208
|
};
|
|
1209
|
-
const
|
|
1209
|
+
const se_DeleteMessageBatchRequestEntry = (input, context) => {
|
|
1210
1210
|
const entries = {};
|
|
1211
1211
|
if (input.Id != null) {
|
|
1212
1212
|
entries["Id"] = input.Id;
|
|
@@ -1216,14 +1216,14 @@ const serializeAws_queryDeleteMessageBatchRequestEntry = (input, context) => {
|
|
|
1216
1216
|
}
|
|
1217
1217
|
return entries;
|
|
1218
1218
|
};
|
|
1219
|
-
const
|
|
1219
|
+
const se_DeleteMessageBatchRequestEntryList = (input, context) => {
|
|
1220
1220
|
const entries = {};
|
|
1221
1221
|
let counter = 1;
|
|
1222
1222
|
for (const entry of input) {
|
|
1223
1223
|
if (entry === null) {
|
|
1224
1224
|
continue;
|
|
1225
1225
|
}
|
|
1226
|
-
const memberEntries =
|
|
1226
|
+
const memberEntries = se_DeleteMessageBatchRequestEntry(entry, context);
|
|
1227
1227
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1228
1228
|
entries[`member.${counter}.${key}`] = value;
|
|
1229
1229
|
});
|
|
@@ -1231,7 +1231,7 @@ const serializeAws_queryDeleteMessageBatchRequestEntryList = (input, context) =>
|
|
|
1231
1231
|
}
|
|
1232
1232
|
return entries;
|
|
1233
1233
|
};
|
|
1234
|
-
const
|
|
1234
|
+
const se_DeleteMessageRequest = (input, context) => {
|
|
1235
1235
|
const entries = {};
|
|
1236
1236
|
if (input.QueueUrl != null) {
|
|
1237
1237
|
entries["QueueUrl"] = input.QueueUrl;
|
|
@@ -1241,20 +1241,20 @@ const serializeAws_queryDeleteMessageRequest = (input, context) => {
|
|
|
1241
1241
|
}
|
|
1242
1242
|
return entries;
|
|
1243
1243
|
};
|
|
1244
|
-
const
|
|
1244
|
+
const se_DeleteQueueRequest = (input, context) => {
|
|
1245
1245
|
const entries = {};
|
|
1246
1246
|
if (input.QueueUrl != null) {
|
|
1247
1247
|
entries["QueueUrl"] = input.QueueUrl;
|
|
1248
1248
|
}
|
|
1249
1249
|
return entries;
|
|
1250
1250
|
};
|
|
1251
|
-
const
|
|
1251
|
+
const se_GetQueueAttributesRequest = (input, context) => {
|
|
1252
1252
|
const entries = {};
|
|
1253
1253
|
if (input.QueueUrl != null) {
|
|
1254
1254
|
entries["QueueUrl"] = input.QueueUrl;
|
|
1255
1255
|
}
|
|
1256
1256
|
if (input.AttributeNames != null) {
|
|
1257
|
-
const memberEntries =
|
|
1257
|
+
const memberEntries = se_AttributeNameList(input.AttributeNames, context);
|
|
1258
1258
|
if (input.AttributeNames?.length === 0) {
|
|
1259
1259
|
entries.AttributeName = [];
|
|
1260
1260
|
}
|
|
@@ -1265,7 +1265,7 @@ const serializeAws_queryGetQueueAttributesRequest = (input, context) => {
|
|
|
1265
1265
|
}
|
|
1266
1266
|
return entries;
|
|
1267
1267
|
};
|
|
1268
|
-
const
|
|
1268
|
+
const se_GetQueueUrlRequest = (input, context) => {
|
|
1269
1269
|
const entries = {};
|
|
1270
1270
|
if (input.QueueName != null) {
|
|
1271
1271
|
entries["QueueName"] = input.QueueName;
|
|
@@ -1275,7 +1275,7 @@ const serializeAws_queryGetQueueUrlRequest = (input, context) => {
|
|
|
1275
1275
|
}
|
|
1276
1276
|
return entries;
|
|
1277
1277
|
};
|
|
1278
|
-
const
|
|
1278
|
+
const se_ListDeadLetterSourceQueuesRequest = (input, context) => {
|
|
1279
1279
|
const entries = {};
|
|
1280
1280
|
if (input.QueueUrl != null) {
|
|
1281
1281
|
entries["QueueUrl"] = input.QueueUrl;
|
|
@@ -1288,7 +1288,7 @@ const serializeAws_queryListDeadLetterSourceQueuesRequest = (input, context) =>
|
|
|
1288
1288
|
}
|
|
1289
1289
|
return entries;
|
|
1290
1290
|
};
|
|
1291
|
-
const
|
|
1291
|
+
const se_ListQueuesRequest = (input, context) => {
|
|
1292
1292
|
const entries = {};
|
|
1293
1293
|
if (input.QueueNamePrefix != null) {
|
|
1294
1294
|
entries["QueueNamePrefix"] = input.QueueNamePrefix;
|
|
@@ -1301,14 +1301,14 @@ const serializeAws_queryListQueuesRequest = (input, context) => {
|
|
|
1301
1301
|
}
|
|
1302
1302
|
return entries;
|
|
1303
1303
|
};
|
|
1304
|
-
const
|
|
1304
|
+
const se_ListQueueTagsRequest = (input, context) => {
|
|
1305
1305
|
const entries = {};
|
|
1306
1306
|
if (input.QueueUrl != null) {
|
|
1307
1307
|
entries["QueueUrl"] = input.QueueUrl;
|
|
1308
1308
|
}
|
|
1309
1309
|
return entries;
|
|
1310
1310
|
};
|
|
1311
|
-
const
|
|
1311
|
+
const se_MessageAttributeNameList = (input, context) => {
|
|
1312
1312
|
const entries = {};
|
|
1313
1313
|
let counter = 1;
|
|
1314
1314
|
for (const entry of input) {
|
|
@@ -1320,7 +1320,7 @@ const serializeAws_queryMessageAttributeNameList = (input, context) => {
|
|
|
1320
1320
|
}
|
|
1321
1321
|
return entries;
|
|
1322
1322
|
};
|
|
1323
|
-
const
|
|
1323
|
+
const se_MessageAttributeValue = (input, context) => {
|
|
1324
1324
|
const entries = {};
|
|
1325
1325
|
if (input.StringValue != null) {
|
|
1326
1326
|
entries["StringValue"] = input.StringValue;
|
|
@@ -1329,7 +1329,7 @@ const serializeAws_queryMessageAttributeValue = (input, context) => {
|
|
|
1329
1329
|
entries["BinaryValue"] = context.base64Encoder(input.BinaryValue);
|
|
1330
1330
|
}
|
|
1331
1331
|
if (input.StringListValues != null) {
|
|
1332
|
-
const memberEntries =
|
|
1332
|
+
const memberEntries = se_StringList(input.StringListValues, context);
|
|
1333
1333
|
if (input.StringListValues?.length === 0) {
|
|
1334
1334
|
entries.StringListValue = [];
|
|
1335
1335
|
}
|
|
@@ -1339,7 +1339,7 @@ const serializeAws_queryMessageAttributeValue = (input, context) => {
|
|
|
1339
1339
|
});
|
|
1340
1340
|
}
|
|
1341
1341
|
if (input.BinaryListValues != null) {
|
|
1342
|
-
const memberEntries =
|
|
1342
|
+
const memberEntries = se_BinaryList(input.BinaryListValues, context);
|
|
1343
1343
|
if (input.BinaryListValues?.length === 0) {
|
|
1344
1344
|
entries.BinaryListValue = [];
|
|
1345
1345
|
}
|
|
@@ -1353,14 +1353,14 @@ const serializeAws_queryMessageAttributeValue = (input, context) => {
|
|
|
1353
1353
|
}
|
|
1354
1354
|
return entries;
|
|
1355
1355
|
};
|
|
1356
|
-
const
|
|
1356
|
+
const se_MessageBodyAttributeMap = (input, context) => {
|
|
1357
1357
|
const entries = {};
|
|
1358
1358
|
let counter = 1;
|
|
1359
1359
|
Object.keys(input)
|
|
1360
1360
|
.filter((key) => input[key] != null)
|
|
1361
1361
|
.forEach((key) => {
|
|
1362
1362
|
entries[`entry.${counter}.Name`] = key;
|
|
1363
|
-
const memberEntries =
|
|
1363
|
+
const memberEntries = se_MessageAttributeValue(input[key], context);
|
|
1364
1364
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1365
1365
|
entries[`entry.${counter}.Value.${key}`] = value;
|
|
1366
1366
|
});
|
|
@@ -1368,14 +1368,14 @@ const serializeAws_queryMessageBodyAttributeMap = (input, context) => {
|
|
|
1368
1368
|
});
|
|
1369
1369
|
return entries;
|
|
1370
1370
|
};
|
|
1371
|
-
const
|
|
1371
|
+
const se_MessageBodySystemAttributeMap = (input, context) => {
|
|
1372
1372
|
const entries = {};
|
|
1373
1373
|
let counter = 1;
|
|
1374
1374
|
Object.keys(input)
|
|
1375
1375
|
.filter((key) => input[key] != null)
|
|
1376
1376
|
.forEach((key) => {
|
|
1377
1377
|
entries[`entry.${counter}.Name`] = key;
|
|
1378
|
-
const memberEntries =
|
|
1378
|
+
const memberEntries = se_MessageSystemAttributeValue(input[key], context);
|
|
1379
1379
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1380
1380
|
entries[`entry.${counter}.Value.${key}`] = value;
|
|
1381
1381
|
});
|
|
@@ -1383,7 +1383,7 @@ const serializeAws_queryMessageBodySystemAttributeMap = (input, context) => {
|
|
|
1383
1383
|
});
|
|
1384
1384
|
return entries;
|
|
1385
1385
|
};
|
|
1386
|
-
const
|
|
1386
|
+
const se_MessageSystemAttributeValue = (input, context) => {
|
|
1387
1387
|
const entries = {};
|
|
1388
1388
|
if (input.StringValue != null) {
|
|
1389
1389
|
entries["StringValue"] = input.StringValue;
|
|
@@ -1392,7 +1392,7 @@ const serializeAws_queryMessageSystemAttributeValue = (input, context) => {
|
|
|
1392
1392
|
entries["BinaryValue"] = context.base64Encoder(input.BinaryValue);
|
|
1393
1393
|
}
|
|
1394
1394
|
if (input.StringListValues != null) {
|
|
1395
|
-
const memberEntries =
|
|
1395
|
+
const memberEntries = se_StringList(input.StringListValues, context);
|
|
1396
1396
|
if (input.StringListValues?.length === 0) {
|
|
1397
1397
|
entries.StringListValue = [];
|
|
1398
1398
|
}
|
|
@@ -1402,7 +1402,7 @@ const serializeAws_queryMessageSystemAttributeValue = (input, context) => {
|
|
|
1402
1402
|
});
|
|
1403
1403
|
}
|
|
1404
1404
|
if (input.BinaryListValues != null) {
|
|
1405
|
-
const memberEntries =
|
|
1405
|
+
const memberEntries = se_BinaryList(input.BinaryListValues, context);
|
|
1406
1406
|
if (input.BinaryListValues?.length === 0) {
|
|
1407
1407
|
entries.BinaryListValue = [];
|
|
1408
1408
|
}
|
|
@@ -1416,14 +1416,14 @@ const serializeAws_queryMessageSystemAttributeValue = (input, context) => {
|
|
|
1416
1416
|
}
|
|
1417
1417
|
return entries;
|
|
1418
1418
|
};
|
|
1419
|
-
const
|
|
1419
|
+
const se_PurgeQueueRequest = (input, context) => {
|
|
1420
1420
|
const entries = {};
|
|
1421
1421
|
if (input.QueueUrl != null) {
|
|
1422
1422
|
entries["QueueUrl"] = input.QueueUrl;
|
|
1423
1423
|
}
|
|
1424
1424
|
return entries;
|
|
1425
1425
|
};
|
|
1426
|
-
const
|
|
1426
|
+
const se_QueueAttributeMap = (input, context) => {
|
|
1427
1427
|
const entries = {};
|
|
1428
1428
|
let counter = 1;
|
|
1429
1429
|
Object.keys(input)
|
|
@@ -1435,13 +1435,13 @@ const serializeAws_queryQueueAttributeMap = (input, context) => {
|
|
|
1435
1435
|
});
|
|
1436
1436
|
return entries;
|
|
1437
1437
|
};
|
|
1438
|
-
const
|
|
1438
|
+
const se_ReceiveMessageRequest = (input, context) => {
|
|
1439
1439
|
const entries = {};
|
|
1440
1440
|
if (input.QueueUrl != null) {
|
|
1441
1441
|
entries["QueueUrl"] = input.QueueUrl;
|
|
1442
1442
|
}
|
|
1443
1443
|
if (input.AttributeNames != null) {
|
|
1444
|
-
const memberEntries =
|
|
1444
|
+
const memberEntries = se_AttributeNameList(input.AttributeNames, context);
|
|
1445
1445
|
if (input.AttributeNames?.length === 0) {
|
|
1446
1446
|
entries.AttributeName = [];
|
|
1447
1447
|
}
|
|
@@ -1451,7 +1451,7 @@ const serializeAws_queryReceiveMessageRequest = (input, context) => {
|
|
|
1451
1451
|
});
|
|
1452
1452
|
}
|
|
1453
1453
|
if (input.MessageAttributeNames != null) {
|
|
1454
|
-
const memberEntries =
|
|
1454
|
+
const memberEntries = se_MessageAttributeNameList(input.MessageAttributeNames, context);
|
|
1455
1455
|
if (input.MessageAttributeNames?.length === 0) {
|
|
1456
1456
|
entries.MessageAttributeName = [];
|
|
1457
1457
|
}
|
|
@@ -1474,7 +1474,7 @@ const serializeAws_queryReceiveMessageRequest = (input, context) => {
|
|
|
1474
1474
|
}
|
|
1475
1475
|
return entries;
|
|
1476
1476
|
};
|
|
1477
|
-
const
|
|
1477
|
+
const se_RemovePermissionRequest = (input, context) => {
|
|
1478
1478
|
const entries = {};
|
|
1479
1479
|
if (input.QueueUrl != null) {
|
|
1480
1480
|
entries["QueueUrl"] = input.QueueUrl;
|
|
@@ -1484,13 +1484,13 @@ const serializeAws_queryRemovePermissionRequest = (input, context) => {
|
|
|
1484
1484
|
}
|
|
1485
1485
|
return entries;
|
|
1486
1486
|
};
|
|
1487
|
-
const
|
|
1487
|
+
const se_SendMessageBatchRequest = (input, context) => {
|
|
1488
1488
|
const entries = {};
|
|
1489
1489
|
if (input.QueueUrl != null) {
|
|
1490
1490
|
entries["QueueUrl"] = input.QueueUrl;
|
|
1491
1491
|
}
|
|
1492
1492
|
if (input.Entries != null) {
|
|
1493
|
-
const memberEntries =
|
|
1493
|
+
const memberEntries = se_SendMessageBatchRequestEntryList(input.Entries, context);
|
|
1494
1494
|
if (input.Entries?.length === 0) {
|
|
1495
1495
|
entries.SendMessageBatchRequestEntry = [];
|
|
1496
1496
|
}
|
|
@@ -1501,7 +1501,7 @@ const serializeAws_querySendMessageBatchRequest = (input, context) => {
|
|
|
1501
1501
|
}
|
|
1502
1502
|
return entries;
|
|
1503
1503
|
};
|
|
1504
|
-
const
|
|
1504
|
+
const se_SendMessageBatchRequestEntry = (input, context) => {
|
|
1505
1505
|
const entries = {};
|
|
1506
1506
|
if (input.Id != null) {
|
|
1507
1507
|
entries["Id"] = input.Id;
|
|
@@ -1513,14 +1513,14 @@ const serializeAws_querySendMessageBatchRequestEntry = (input, context) => {
|
|
|
1513
1513
|
entries["DelaySeconds"] = input.DelaySeconds;
|
|
1514
1514
|
}
|
|
1515
1515
|
if (input.MessageAttributes != null) {
|
|
1516
|
-
const memberEntries =
|
|
1516
|
+
const memberEntries = se_MessageBodyAttributeMap(input.MessageAttributes, context);
|
|
1517
1517
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1518
1518
|
const loc = `MessageAttribute.${key.substring(key.indexOf(".") + 1)}`;
|
|
1519
1519
|
entries[loc] = value;
|
|
1520
1520
|
});
|
|
1521
1521
|
}
|
|
1522
1522
|
if (input.MessageSystemAttributes != null) {
|
|
1523
|
-
const memberEntries =
|
|
1523
|
+
const memberEntries = se_MessageBodySystemAttributeMap(input.MessageSystemAttributes, context);
|
|
1524
1524
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1525
1525
|
const loc = `MessageSystemAttribute.${key.substring(key.indexOf(".") + 1)}`;
|
|
1526
1526
|
entries[loc] = value;
|
|
@@ -1534,14 +1534,14 @@ const serializeAws_querySendMessageBatchRequestEntry = (input, context) => {
|
|
|
1534
1534
|
}
|
|
1535
1535
|
return entries;
|
|
1536
1536
|
};
|
|
1537
|
-
const
|
|
1537
|
+
const se_SendMessageBatchRequestEntryList = (input, context) => {
|
|
1538
1538
|
const entries = {};
|
|
1539
1539
|
let counter = 1;
|
|
1540
1540
|
for (const entry of input) {
|
|
1541
1541
|
if (entry === null) {
|
|
1542
1542
|
continue;
|
|
1543
1543
|
}
|
|
1544
|
-
const memberEntries =
|
|
1544
|
+
const memberEntries = se_SendMessageBatchRequestEntry(entry, context);
|
|
1545
1545
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1546
1546
|
entries[`member.${counter}.${key}`] = value;
|
|
1547
1547
|
});
|
|
@@ -1549,7 +1549,7 @@ const serializeAws_querySendMessageBatchRequestEntryList = (input, context) => {
|
|
|
1549
1549
|
}
|
|
1550
1550
|
return entries;
|
|
1551
1551
|
};
|
|
1552
|
-
const
|
|
1552
|
+
const se_SendMessageRequest = (input, context) => {
|
|
1553
1553
|
const entries = {};
|
|
1554
1554
|
if (input.QueueUrl != null) {
|
|
1555
1555
|
entries["QueueUrl"] = input.QueueUrl;
|
|
@@ -1561,14 +1561,14 @@ const serializeAws_querySendMessageRequest = (input, context) => {
|
|
|
1561
1561
|
entries["DelaySeconds"] = input.DelaySeconds;
|
|
1562
1562
|
}
|
|
1563
1563
|
if (input.MessageAttributes != null) {
|
|
1564
|
-
const memberEntries =
|
|
1564
|
+
const memberEntries = se_MessageBodyAttributeMap(input.MessageAttributes, context);
|
|
1565
1565
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1566
1566
|
const loc = `MessageAttribute.${key.substring(key.indexOf(".") + 1)}`;
|
|
1567
1567
|
entries[loc] = value;
|
|
1568
1568
|
});
|
|
1569
1569
|
}
|
|
1570
1570
|
if (input.MessageSystemAttributes != null) {
|
|
1571
|
-
const memberEntries =
|
|
1571
|
+
const memberEntries = se_MessageBodySystemAttributeMap(input.MessageSystemAttributes, context);
|
|
1572
1572
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1573
1573
|
const loc = `MessageSystemAttribute.${key.substring(key.indexOf(".") + 1)}`;
|
|
1574
1574
|
entries[loc] = value;
|
|
@@ -1582,13 +1582,13 @@ const serializeAws_querySendMessageRequest = (input, context) => {
|
|
|
1582
1582
|
}
|
|
1583
1583
|
return entries;
|
|
1584
1584
|
};
|
|
1585
|
-
const
|
|
1585
|
+
const se_SetQueueAttributesRequest = (input, context) => {
|
|
1586
1586
|
const entries = {};
|
|
1587
1587
|
if (input.QueueUrl != null) {
|
|
1588
1588
|
entries["QueueUrl"] = input.QueueUrl;
|
|
1589
1589
|
}
|
|
1590
1590
|
if (input.Attributes != null) {
|
|
1591
|
-
const memberEntries =
|
|
1591
|
+
const memberEntries = se_QueueAttributeMap(input.Attributes, context);
|
|
1592
1592
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1593
1593
|
const loc = `Attribute.${key.substring(key.indexOf(".") + 1)}`;
|
|
1594
1594
|
entries[loc] = value;
|
|
@@ -1596,7 +1596,7 @@ const serializeAws_querySetQueueAttributesRequest = (input, context) => {
|
|
|
1596
1596
|
}
|
|
1597
1597
|
return entries;
|
|
1598
1598
|
};
|
|
1599
|
-
const
|
|
1599
|
+
const se_StringList = (input, context) => {
|
|
1600
1600
|
const entries = {};
|
|
1601
1601
|
let counter = 1;
|
|
1602
1602
|
for (const entry of input) {
|
|
@@ -1608,7 +1608,7 @@ const serializeAws_queryStringList = (input, context) => {
|
|
|
1608
1608
|
}
|
|
1609
1609
|
return entries;
|
|
1610
1610
|
};
|
|
1611
|
-
const
|
|
1611
|
+
const se_TagKeyList = (input, context) => {
|
|
1612
1612
|
const entries = {};
|
|
1613
1613
|
let counter = 1;
|
|
1614
1614
|
for (const entry of input) {
|
|
@@ -1620,7 +1620,7 @@ const serializeAws_queryTagKeyList = (input, context) => {
|
|
|
1620
1620
|
}
|
|
1621
1621
|
return entries;
|
|
1622
1622
|
};
|
|
1623
|
-
const
|
|
1623
|
+
const se_TagMap = (input, context) => {
|
|
1624
1624
|
const entries = {};
|
|
1625
1625
|
let counter = 1;
|
|
1626
1626
|
Object.keys(input)
|
|
@@ -1632,13 +1632,13 @@ const serializeAws_queryTagMap = (input, context) => {
|
|
|
1632
1632
|
});
|
|
1633
1633
|
return entries;
|
|
1634
1634
|
};
|
|
1635
|
-
const
|
|
1635
|
+
const se_TagQueueRequest = (input, context) => {
|
|
1636
1636
|
const entries = {};
|
|
1637
1637
|
if (input.QueueUrl != null) {
|
|
1638
1638
|
entries["QueueUrl"] = input.QueueUrl;
|
|
1639
1639
|
}
|
|
1640
1640
|
if (input.Tags != null) {
|
|
1641
|
-
const memberEntries =
|
|
1641
|
+
const memberEntries = se_TagMap(input.Tags, context);
|
|
1642
1642
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1643
1643
|
const loc = `Tag.${key.substring(key.indexOf(".") + 1)}`;
|
|
1644
1644
|
entries[loc] = value;
|
|
@@ -1646,13 +1646,13 @@ const serializeAws_queryTagQueueRequest = (input, context) => {
|
|
|
1646
1646
|
}
|
|
1647
1647
|
return entries;
|
|
1648
1648
|
};
|
|
1649
|
-
const
|
|
1649
|
+
const se_UntagQueueRequest = (input, context) => {
|
|
1650
1650
|
const entries = {};
|
|
1651
1651
|
if (input.QueueUrl != null) {
|
|
1652
1652
|
entries["QueueUrl"] = input.QueueUrl;
|
|
1653
1653
|
}
|
|
1654
1654
|
if (input.TagKeys != null) {
|
|
1655
|
-
const memberEntries =
|
|
1655
|
+
const memberEntries = se_TagKeyList(input.TagKeys, context);
|
|
1656
1656
|
if (input.TagKeys?.length === 0) {
|
|
1657
1657
|
entries.TagKey = [];
|
|
1658
1658
|
}
|
|
@@ -1663,15 +1663,15 @@ const serializeAws_queryUntagQueueRequest = (input, context) => {
|
|
|
1663
1663
|
}
|
|
1664
1664
|
return entries;
|
|
1665
1665
|
};
|
|
1666
|
-
const
|
|
1666
|
+
const de_BatchEntryIdsNotDistinct = (output, context) => {
|
|
1667
1667
|
const contents = {};
|
|
1668
1668
|
return contents;
|
|
1669
1669
|
};
|
|
1670
|
-
const
|
|
1670
|
+
const de_BatchRequestTooLong = (output, context) => {
|
|
1671
1671
|
const contents = {};
|
|
1672
1672
|
return contents;
|
|
1673
1673
|
};
|
|
1674
|
-
const
|
|
1674
|
+
const de_BatchResultErrorEntry = (output, context) => {
|
|
1675
1675
|
const contents = {};
|
|
1676
1676
|
if (output["Id"] !== undefined) {
|
|
1677
1677
|
contents.Id = __expectString(output["Id"]);
|
|
@@ -1687,138 +1687,138 @@ const deserializeAws_queryBatchResultErrorEntry = (output, context) => {
|
|
|
1687
1687
|
}
|
|
1688
1688
|
return contents;
|
|
1689
1689
|
};
|
|
1690
|
-
const
|
|
1690
|
+
const de_BatchResultErrorEntryList = (output, context) => {
|
|
1691
1691
|
return (output || [])
|
|
1692
1692
|
.filter((e) => e != null)
|
|
1693
1693
|
.map((entry) => {
|
|
1694
|
-
return
|
|
1694
|
+
return de_BatchResultErrorEntry(entry, context);
|
|
1695
1695
|
});
|
|
1696
1696
|
};
|
|
1697
|
-
const
|
|
1697
|
+
const de_BinaryList = (output, context) => {
|
|
1698
1698
|
return (output || [])
|
|
1699
1699
|
.filter((e) => e != null)
|
|
1700
1700
|
.map((entry) => {
|
|
1701
1701
|
return context.base64Decoder(entry);
|
|
1702
1702
|
});
|
|
1703
1703
|
};
|
|
1704
|
-
const
|
|
1704
|
+
const de_ChangeMessageVisibilityBatchResult = (output, context) => {
|
|
1705
1705
|
const contents = {};
|
|
1706
1706
|
if (output.ChangeMessageVisibilityBatchResultEntry === "") {
|
|
1707
1707
|
contents.Successful = [];
|
|
1708
1708
|
}
|
|
1709
1709
|
else if (output["ChangeMessageVisibilityBatchResultEntry"] !== undefined) {
|
|
1710
|
-
contents.Successful =
|
|
1710
|
+
contents.Successful = de_ChangeMessageVisibilityBatchResultEntryList(__getArrayIfSingleItem(output["ChangeMessageVisibilityBatchResultEntry"]), context);
|
|
1711
1711
|
}
|
|
1712
1712
|
if (output.BatchResultErrorEntry === "") {
|
|
1713
1713
|
contents.Failed = [];
|
|
1714
1714
|
}
|
|
1715
1715
|
else if (output["BatchResultErrorEntry"] !== undefined) {
|
|
1716
|
-
contents.Failed =
|
|
1716
|
+
contents.Failed = de_BatchResultErrorEntryList(__getArrayIfSingleItem(output["BatchResultErrorEntry"]), context);
|
|
1717
1717
|
}
|
|
1718
1718
|
return contents;
|
|
1719
1719
|
};
|
|
1720
|
-
const
|
|
1720
|
+
const de_ChangeMessageVisibilityBatchResultEntry = (output, context) => {
|
|
1721
1721
|
const contents = {};
|
|
1722
1722
|
if (output["Id"] !== undefined) {
|
|
1723
1723
|
contents.Id = __expectString(output["Id"]);
|
|
1724
1724
|
}
|
|
1725
1725
|
return contents;
|
|
1726
1726
|
};
|
|
1727
|
-
const
|
|
1727
|
+
const de_ChangeMessageVisibilityBatchResultEntryList = (output, context) => {
|
|
1728
1728
|
return (output || [])
|
|
1729
1729
|
.filter((e) => e != null)
|
|
1730
1730
|
.map((entry) => {
|
|
1731
|
-
return
|
|
1731
|
+
return de_ChangeMessageVisibilityBatchResultEntry(entry, context);
|
|
1732
1732
|
});
|
|
1733
1733
|
};
|
|
1734
|
-
const
|
|
1734
|
+
const de_CreateQueueResult = (output, context) => {
|
|
1735
1735
|
const contents = {};
|
|
1736
1736
|
if (output["QueueUrl"] !== undefined) {
|
|
1737
1737
|
contents.QueueUrl = __expectString(output["QueueUrl"]);
|
|
1738
1738
|
}
|
|
1739
1739
|
return contents;
|
|
1740
1740
|
};
|
|
1741
|
-
const
|
|
1741
|
+
const de_DeleteMessageBatchResult = (output, context) => {
|
|
1742
1742
|
const contents = {};
|
|
1743
1743
|
if (output.DeleteMessageBatchResultEntry === "") {
|
|
1744
1744
|
contents.Successful = [];
|
|
1745
1745
|
}
|
|
1746
1746
|
else if (output["DeleteMessageBatchResultEntry"] !== undefined) {
|
|
1747
|
-
contents.Successful =
|
|
1747
|
+
contents.Successful = de_DeleteMessageBatchResultEntryList(__getArrayIfSingleItem(output["DeleteMessageBatchResultEntry"]), context);
|
|
1748
1748
|
}
|
|
1749
1749
|
if (output.BatchResultErrorEntry === "") {
|
|
1750
1750
|
contents.Failed = [];
|
|
1751
1751
|
}
|
|
1752
1752
|
else if (output["BatchResultErrorEntry"] !== undefined) {
|
|
1753
|
-
contents.Failed =
|
|
1753
|
+
contents.Failed = de_BatchResultErrorEntryList(__getArrayIfSingleItem(output["BatchResultErrorEntry"]), context);
|
|
1754
1754
|
}
|
|
1755
1755
|
return contents;
|
|
1756
1756
|
};
|
|
1757
|
-
const
|
|
1757
|
+
const de_DeleteMessageBatchResultEntry = (output, context) => {
|
|
1758
1758
|
const contents = {};
|
|
1759
1759
|
if (output["Id"] !== undefined) {
|
|
1760
1760
|
contents.Id = __expectString(output["Id"]);
|
|
1761
1761
|
}
|
|
1762
1762
|
return contents;
|
|
1763
1763
|
};
|
|
1764
|
-
const
|
|
1764
|
+
const de_DeleteMessageBatchResultEntryList = (output, context) => {
|
|
1765
1765
|
return (output || [])
|
|
1766
1766
|
.filter((e) => e != null)
|
|
1767
1767
|
.map((entry) => {
|
|
1768
|
-
return
|
|
1768
|
+
return de_DeleteMessageBatchResultEntry(entry, context);
|
|
1769
1769
|
});
|
|
1770
1770
|
};
|
|
1771
|
-
const
|
|
1771
|
+
const de_EmptyBatchRequest = (output, context) => {
|
|
1772
1772
|
const contents = {};
|
|
1773
1773
|
return contents;
|
|
1774
1774
|
};
|
|
1775
|
-
const
|
|
1775
|
+
const de_GetQueueAttributesResult = (output, context) => {
|
|
1776
1776
|
const contents = {};
|
|
1777
1777
|
if (output.Attribute === "") {
|
|
1778
1778
|
contents.Attributes = {};
|
|
1779
1779
|
}
|
|
1780
1780
|
else if (output["Attribute"] !== undefined) {
|
|
1781
|
-
contents.Attributes =
|
|
1781
|
+
contents.Attributes = de_QueueAttributeMap(__getArrayIfSingleItem(output["Attribute"]), context);
|
|
1782
1782
|
}
|
|
1783
1783
|
return contents;
|
|
1784
1784
|
};
|
|
1785
|
-
const
|
|
1785
|
+
const de_GetQueueUrlResult = (output, context) => {
|
|
1786
1786
|
const contents = {};
|
|
1787
1787
|
if (output["QueueUrl"] !== undefined) {
|
|
1788
1788
|
contents.QueueUrl = __expectString(output["QueueUrl"]);
|
|
1789
1789
|
}
|
|
1790
1790
|
return contents;
|
|
1791
1791
|
};
|
|
1792
|
-
const
|
|
1792
|
+
const de_InvalidAttributeName = (output, context) => {
|
|
1793
1793
|
const contents = {};
|
|
1794
1794
|
return contents;
|
|
1795
1795
|
};
|
|
1796
|
-
const
|
|
1796
|
+
const de_InvalidBatchEntryId = (output, context) => {
|
|
1797
1797
|
const contents = {};
|
|
1798
1798
|
return contents;
|
|
1799
1799
|
};
|
|
1800
|
-
const
|
|
1800
|
+
const de_InvalidIdFormat = (output, context) => {
|
|
1801
1801
|
const contents = {};
|
|
1802
1802
|
return contents;
|
|
1803
1803
|
};
|
|
1804
|
-
const
|
|
1804
|
+
const de_InvalidMessageContents = (output, context) => {
|
|
1805
1805
|
const contents = {};
|
|
1806
1806
|
return contents;
|
|
1807
1807
|
};
|
|
1808
|
-
const
|
|
1808
|
+
const de_ListDeadLetterSourceQueuesResult = (output, context) => {
|
|
1809
1809
|
const contents = {};
|
|
1810
1810
|
if (output.QueueUrl === "") {
|
|
1811
1811
|
contents.queueUrls = [];
|
|
1812
1812
|
}
|
|
1813
1813
|
else if (output["QueueUrl"] !== undefined) {
|
|
1814
|
-
contents.queueUrls =
|
|
1814
|
+
contents.queueUrls = de_QueueUrlList(__getArrayIfSingleItem(output["QueueUrl"]), context);
|
|
1815
1815
|
}
|
|
1816
1816
|
if (output["NextToken"] !== undefined) {
|
|
1817
1817
|
contents.NextToken = __expectString(output["NextToken"]);
|
|
1818
1818
|
}
|
|
1819
1819
|
return contents;
|
|
1820
1820
|
};
|
|
1821
|
-
const
|
|
1821
|
+
const de_ListQueuesResult = (output, context) => {
|
|
1822
1822
|
const contents = {};
|
|
1823
1823
|
if (output["NextToken"] !== undefined) {
|
|
1824
1824
|
contents.NextToken = __expectString(output["NextToken"]);
|
|
@@ -1827,21 +1827,21 @@ const deserializeAws_queryListQueuesResult = (output, context) => {
|
|
|
1827
1827
|
contents.QueueUrls = [];
|
|
1828
1828
|
}
|
|
1829
1829
|
else if (output["QueueUrl"] !== undefined) {
|
|
1830
|
-
contents.QueueUrls =
|
|
1830
|
+
contents.QueueUrls = de_QueueUrlList(__getArrayIfSingleItem(output["QueueUrl"]), context);
|
|
1831
1831
|
}
|
|
1832
1832
|
return contents;
|
|
1833
1833
|
};
|
|
1834
|
-
const
|
|
1834
|
+
const de_ListQueueTagsResult = (output, context) => {
|
|
1835
1835
|
const contents = {};
|
|
1836
1836
|
if (output.Tag === "") {
|
|
1837
1837
|
contents.Tags = {};
|
|
1838
1838
|
}
|
|
1839
1839
|
else if (output["Tag"] !== undefined) {
|
|
1840
|
-
contents.Tags =
|
|
1840
|
+
contents.Tags = de_TagMap(__getArrayIfSingleItem(output["Tag"]), context);
|
|
1841
1841
|
}
|
|
1842
1842
|
return contents;
|
|
1843
1843
|
};
|
|
1844
|
-
const
|
|
1844
|
+
const de_Message = (output, context) => {
|
|
1845
1845
|
const contents = {};
|
|
1846
1846
|
if (output["MessageId"] !== undefined) {
|
|
1847
1847
|
contents.MessageId = __expectString(output["MessageId"]);
|
|
@@ -1859,7 +1859,7 @@ const deserializeAws_queryMessage = (output, context) => {
|
|
|
1859
1859
|
contents.Attributes = {};
|
|
1860
1860
|
}
|
|
1861
1861
|
else if (output["Attribute"] !== undefined) {
|
|
1862
|
-
contents.Attributes =
|
|
1862
|
+
contents.Attributes = de_MessageSystemAttributeMap(__getArrayIfSingleItem(output["Attribute"]), context);
|
|
1863
1863
|
}
|
|
1864
1864
|
if (output["MD5OfMessageAttributes"] !== undefined) {
|
|
1865
1865
|
contents.MD5OfMessageAttributes = __expectString(output["MD5OfMessageAttributes"]);
|
|
@@ -1868,11 +1868,11 @@ const deserializeAws_queryMessage = (output, context) => {
|
|
|
1868
1868
|
contents.MessageAttributes = {};
|
|
1869
1869
|
}
|
|
1870
1870
|
else if (output["MessageAttribute"] !== undefined) {
|
|
1871
|
-
contents.MessageAttributes =
|
|
1871
|
+
contents.MessageAttributes = de_MessageBodyAttributeMap(__getArrayIfSingleItem(output["MessageAttribute"]), context);
|
|
1872
1872
|
}
|
|
1873
1873
|
return contents;
|
|
1874
1874
|
};
|
|
1875
|
-
const
|
|
1875
|
+
const de_MessageAttributeValue = (output, context) => {
|
|
1876
1876
|
const contents = {};
|
|
1877
1877
|
if (output["StringValue"] !== undefined) {
|
|
1878
1878
|
contents.StringValue = __expectString(output["StringValue"]);
|
|
@@ -1884,40 +1884,40 @@ const deserializeAws_queryMessageAttributeValue = (output, context) => {
|
|
|
1884
1884
|
contents.StringListValues = [];
|
|
1885
1885
|
}
|
|
1886
1886
|
else if (output["StringListValue"] !== undefined) {
|
|
1887
|
-
contents.StringListValues =
|
|
1887
|
+
contents.StringListValues = de_StringList(__getArrayIfSingleItem(output["StringListValue"]), context);
|
|
1888
1888
|
}
|
|
1889
1889
|
if (output.BinaryListValue === "") {
|
|
1890
1890
|
contents.BinaryListValues = [];
|
|
1891
1891
|
}
|
|
1892
1892
|
else if (output["BinaryListValue"] !== undefined) {
|
|
1893
|
-
contents.BinaryListValues =
|
|
1893
|
+
contents.BinaryListValues = de_BinaryList(__getArrayIfSingleItem(output["BinaryListValue"]), context);
|
|
1894
1894
|
}
|
|
1895
1895
|
if (output["DataType"] !== undefined) {
|
|
1896
1896
|
contents.DataType = __expectString(output["DataType"]);
|
|
1897
1897
|
}
|
|
1898
1898
|
return contents;
|
|
1899
1899
|
};
|
|
1900
|
-
const
|
|
1900
|
+
const de_MessageBodyAttributeMap = (output, context) => {
|
|
1901
1901
|
return output.reduce((acc, pair) => {
|
|
1902
1902
|
if (pair["Value"] === null) {
|
|
1903
1903
|
return acc;
|
|
1904
1904
|
}
|
|
1905
|
-
acc[pair["Name"]] =
|
|
1905
|
+
acc[pair["Name"]] = de_MessageAttributeValue(pair["Value"], context);
|
|
1906
1906
|
return acc;
|
|
1907
1907
|
}, {});
|
|
1908
1908
|
};
|
|
1909
|
-
const
|
|
1909
|
+
const de_MessageList = (output, context) => {
|
|
1910
1910
|
return (output || [])
|
|
1911
1911
|
.filter((e) => e != null)
|
|
1912
1912
|
.map((entry) => {
|
|
1913
|
-
return
|
|
1913
|
+
return de_Message(entry, context);
|
|
1914
1914
|
});
|
|
1915
1915
|
};
|
|
1916
|
-
const
|
|
1916
|
+
const de_MessageNotInflight = (output, context) => {
|
|
1917
1917
|
const contents = {};
|
|
1918
1918
|
return contents;
|
|
1919
1919
|
};
|
|
1920
|
-
const
|
|
1920
|
+
const de_MessageSystemAttributeMap = (output, context) => {
|
|
1921
1921
|
return output.reduce((acc, pair) => {
|
|
1922
1922
|
if (pair["Value"] === null) {
|
|
1923
1923
|
return acc;
|
|
@@ -1926,15 +1926,15 @@ const deserializeAws_queryMessageSystemAttributeMap = (output, context) => {
|
|
|
1926
1926
|
return acc;
|
|
1927
1927
|
}, {});
|
|
1928
1928
|
};
|
|
1929
|
-
const
|
|
1929
|
+
const de_OverLimit = (output, context) => {
|
|
1930
1930
|
const contents = {};
|
|
1931
1931
|
return contents;
|
|
1932
1932
|
};
|
|
1933
|
-
const
|
|
1933
|
+
const de_PurgeQueueInProgress = (output, context) => {
|
|
1934
1934
|
const contents = {};
|
|
1935
1935
|
return contents;
|
|
1936
1936
|
};
|
|
1937
|
-
const
|
|
1937
|
+
const de_QueueAttributeMap = (output, context) => {
|
|
1938
1938
|
return output.reduce((acc, pair) => {
|
|
1939
1939
|
if (pair["Value"] === null) {
|
|
1940
1940
|
return acc;
|
|
@@ -1943,56 +1943,56 @@ const deserializeAws_queryQueueAttributeMap = (output, context) => {
|
|
|
1943
1943
|
return acc;
|
|
1944
1944
|
}, {});
|
|
1945
1945
|
};
|
|
1946
|
-
const
|
|
1946
|
+
const de_QueueDeletedRecently = (output, context) => {
|
|
1947
1947
|
const contents = {};
|
|
1948
1948
|
return contents;
|
|
1949
1949
|
};
|
|
1950
|
-
const
|
|
1950
|
+
const de_QueueDoesNotExist = (output, context) => {
|
|
1951
1951
|
const contents = {};
|
|
1952
1952
|
return contents;
|
|
1953
1953
|
};
|
|
1954
|
-
const
|
|
1954
|
+
const de_QueueNameExists = (output, context) => {
|
|
1955
1955
|
const contents = {};
|
|
1956
1956
|
return contents;
|
|
1957
1957
|
};
|
|
1958
|
-
const
|
|
1958
|
+
const de_QueueUrlList = (output, context) => {
|
|
1959
1959
|
return (output || [])
|
|
1960
1960
|
.filter((e) => e != null)
|
|
1961
1961
|
.map((entry) => {
|
|
1962
1962
|
return __expectString(entry);
|
|
1963
1963
|
});
|
|
1964
1964
|
};
|
|
1965
|
-
const
|
|
1965
|
+
const de_ReceiptHandleIsInvalid = (output, context) => {
|
|
1966
1966
|
const contents = {};
|
|
1967
1967
|
return contents;
|
|
1968
1968
|
};
|
|
1969
|
-
const
|
|
1969
|
+
const de_ReceiveMessageResult = (output, context) => {
|
|
1970
1970
|
const contents = {};
|
|
1971
1971
|
if (output.Message === "") {
|
|
1972
1972
|
contents.Messages = [];
|
|
1973
1973
|
}
|
|
1974
1974
|
else if (output["Message"] !== undefined) {
|
|
1975
|
-
contents.Messages =
|
|
1975
|
+
contents.Messages = de_MessageList(__getArrayIfSingleItem(output["Message"]), context);
|
|
1976
1976
|
}
|
|
1977
1977
|
return contents;
|
|
1978
1978
|
};
|
|
1979
|
-
const
|
|
1979
|
+
const de_SendMessageBatchResult = (output, context) => {
|
|
1980
1980
|
const contents = {};
|
|
1981
1981
|
if (output.SendMessageBatchResultEntry === "") {
|
|
1982
1982
|
contents.Successful = [];
|
|
1983
1983
|
}
|
|
1984
1984
|
else if (output["SendMessageBatchResultEntry"] !== undefined) {
|
|
1985
|
-
contents.Successful =
|
|
1985
|
+
contents.Successful = de_SendMessageBatchResultEntryList(__getArrayIfSingleItem(output["SendMessageBatchResultEntry"]), context);
|
|
1986
1986
|
}
|
|
1987
1987
|
if (output.BatchResultErrorEntry === "") {
|
|
1988
1988
|
contents.Failed = [];
|
|
1989
1989
|
}
|
|
1990
1990
|
else if (output["BatchResultErrorEntry"] !== undefined) {
|
|
1991
|
-
contents.Failed =
|
|
1991
|
+
contents.Failed = de_BatchResultErrorEntryList(__getArrayIfSingleItem(output["BatchResultErrorEntry"]), context);
|
|
1992
1992
|
}
|
|
1993
1993
|
return contents;
|
|
1994
1994
|
};
|
|
1995
|
-
const
|
|
1995
|
+
const de_SendMessageBatchResultEntry = (output, context) => {
|
|
1996
1996
|
const contents = {};
|
|
1997
1997
|
if (output["Id"] !== undefined) {
|
|
1998
1998
|
contents.Id = __expectString(output["Id"]);
|
|
@@ -2014,14 +2014,14 @@ const deserializeAws_querySendMessageBatchResultEntry = (output, context) => {
|
|
|
2014
2014
|
}
|
|
2015
2015
|
return contents;
|
|
2016
2016
|
};
|
|
2017
|
-
const
|
|
2017
|
+
const de_SendMessageBatchResultEntryList = (output, context) => {
|
|
2018
2018
|
return (output || [])
|
|
2019
2019
|
.filter((e) => e != null)
|
|
2020
2020
|
.map((entry) => {
|
|
2021
|
-
return
|
|
2021
|
+
return de_SendMessageBatchResultEntry(entry, context);
|
|
2022
2022
|
});
|
|
2023
2023
|
};
|
|
2024
|
-
const
|
|
2024
|
+
const de_SendMessageResult = (output, context) => {
|
|
2025
2025
|
const contents = {};
|
|
2026
2026
|
if (output["MD5OfMessageBody"] !== undefined) {
|
|
2027
2027
|
contents.MD5OfMessageBody = __expectString(output["MD5OfMessageBody"]);
|
|
@@ -2040,14 +2040,14 @@ const deserializeAws_querySendMessageResult = (output, context) => {
|
|
|
2040
2040
|
}
|
|
2041
2041
|
return contents;
|
|
2042
2042
|
};
|
|
2043
|
-
const
|
|
2043
|
+
const de_StringList = (output, context) => {
|
|
2044
2044
|
return (output || [])
|
|
2045
2045
|
.filter((e) => e != null)
|
|
2046
2046
|
.map((entry) => {
|
|
2047
2047
|
return __expectString(entry);
|
|
2048
2048
|
});
|
|
2049
2049
|
};
|
|
2050
|
-
const
|
|
2050
|
+
const de_TagMap = (output, context) => {
|
|
2051
2051
|
return output.reduce((acc, pair) => {
|
|
2052
2052
|
if (pair["Value"] === null) {
|
|
2053
2053
|
return acc;
|
|
@@ -2056,11 +2056,11 @@ const deserializeAws_queryTagMap = (output, context) => {
|
|
|
2056
2056
|
return acc;
|
|
2057
2057
|
}, {});
|
|
2058
2058
|
};
|
|
2059
|
-
const
|
|
2059
|
+
const de_TooManyEntriesInBatchRequest = (output, context) => {
|
|
2060
2060
|
const contents = {};
|
|
2061
2061
|
return contents;
|
|
2062
2062
|
};
|
|
2063
|
-
const
|
|
2063
|
+
const de_UnsupportedOperation = (output, context) => {
|
|
2064
2064
|
const contents = {};
|
|
2065
2065
|
return contents;
|
|
2066
2066
|
};
|