@aws-sdk/client-sqs 3.306.0 → 3.310.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 +37 -37
|
@@ -1,274 +1,274 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_UntagQueueCommand = exports.de_TagQueueCommand = exports.de_SetQueueAttributesCommand = exports.de_SendMessageBatchCommand = exports.de_SendMessageCommand = exports.de_RemovePermissionCommand = exports.de_ReceiveMessageCommand = exports.de_PurgeQueueCommand = exports.de_ListQueueTagsCommand = exports.de_ListQueuesCommand = exports.de_ListDeadLetterSourceQueuesCommand = exports.de_GetQueueUrlCommand = exports.de_GetQueueAttributesCommand = exports.de_DeleteQueueCommand = exports.de_DeleteMessageBatchCommand = exports.de_DeleteMessageCommand = exports.de_CreateQueueCommand = exports.de_ChangeMessageVisibilityBatchCommand = exports.de_ChangeMessageVisibilityCommand = exports.de_AddPermissionCommand = exports.se_UntagQueueCommand = exports.se_TagQueueCommand = exports.se_SetQueueAttributesCommand = exports.se_SendMessageBatchCommand = exports.se_SendMessageCommand = exports.se_RemovePermissionCommand = exports.se_ReceiveMessageCommand = exports.se_PurgeQueueCommand = exports.se_ListQueueTagsCommand = exports.se_ListQueuesCommand = exports.se_ListDeadLetterSourceQueuesCommand = exports.se_GetQueueUrlCommand = exports.se_GetQueueAttributesCommand = exports.se_DeleteQueueCommand = exports.se_DeleteMessageBatchCommand = exports.se_DeleteMessageCommand = exports.se_CreateQueueCommand = exports.se_ChangeMessageVisibilityBatchCommand = exports.se_ChangeMessageVisibilityCommand = exports.se_AddPermissionCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const fast_xml_parser_1 = require("fast-xml-parser");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const SQSServiceException_1 = require("../models/SQSServiceException");
|
|
9
|
-
const
|
|
9
|
+
const se_AddPermissionCommand = async (input, context) => {
|
|
10
10
|
const headers = {
|
|
11
11
|
"content-type": "application/x-www-form-urlencoded",
|
|
12
12
|
};
|
|
13
13
|
let body;
|
|
14
14
|
body = buildFormUrlencodedString({
|
|
15
|
-
...
|
|
15
|
+
...se_AddPermissionRequest(input, context),
|
|
16
16
|
Action: "AddPermission",
|
|
17
17
|
Version: "2012-11-05",
|
|
18
18
|
});
|
|
19
19
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
20
20
|
};
|
|
21
|
-
exports.
|
|
22
|
-
const
|
|
21
|
+
exports.se_AddPermissionCommand = se_AddPermissionCommand;
|
|
22
|
+
const se_ChangeMessageVisibilityCommand = async (input, context) => {
|
|
23
23
|
const headers = {
|
|
24
24
|
"content-type": "application/x-www-form-urlencoded",
|
|
25
25
|
};
|
|
26
26
|
let body;
|
|
27
27
|
body = buildFormUrlencodedString({
|
|
28
|
-
...
|
|
28
|
+
...se_ChangeMessageVisibilityRequest(input, context),
|
|
29
29
|
Action: "ChangeMessageVisibility",
|
|
30
30
|
Version: "2012-11-05",
|
|
31
31
|
});
|
|
32
32
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
33
33
|
};
|
|
34
|
-
exports.
|
|
35
|
-
const
|
|
34
|
+
exports.se_ChangeMessageVisibilityCommand = se_ChangeMessageVisibilityCommand;
|
|
35
|
+
const se_ChangeMessageVisibilityBatchCommand = async (input, context) => {
|
|
36
36
|
const headers = {
|
|
37
37
|
"content-type": "application/x-www-form-urlencoded",
|
|
38
38
|
};
|
|
39
39
|
let body;
|
|
40
40
|
body = buildFormUrlencodedString({
|
|
41
|
-
...
|
|
41
|
+
...se_ChangeMessageVisibilityBatchRequest(input, context),
|
|
42
42
|
Action: "ChangeMessageVisibilityBatch",
|
|
43
43
|
Version: "2012-11-05",
|
|
44
44
|
});
|
|
45
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
46
|
};
|
|
47
|
-
exports.
|
|
48
|
-
const
|
|
47
|
+
exports.se_ChangeMessageVisibilityBatchCommand = se_ChangeMessageVisibilityBatchCommand;
|
|
48
|
+
const se_CreateQueueCommand = async (input, context) => {
|
|
49
49
|
const headers = {
|
|
50
50
|
"content-type": "application/x-www-form-urlencoded",
|
|
51
51
|
};
|
|
52
52
|
let body;
|
|
53
53
|
body = buildFormUrlencodedString({
|
|
54
|
-
...
|
|
54
|
+
...se_CreateQueueRequest(input, context),
|
|
55
55
|
Action: "CreateQueue",
|
|
56
56
|
Version: "2012-11-05",
|
|
57
57
|
});
|
|
58
58
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
59
|
};
|
|
60
|
-
exports.
|
|
61
|
-
const
|
|
60
|
+
exports.se_CreateQueueCommand = se_CreateQueueCommand;
|
|
61
|
+
const se_DeleteMessageCommand = async (input, context) => {
|
|
62
62
|
const headers = {
|
|
63
63
|
"content-type": "application/x-www-form-urlencoded",
|
|
64
64
|
};
|
|
65
65
|
let body;
|
|
66
66
|
body = buildFormUrlencodedString({
|
|
67
|
-
...
|
|
67
|
+
...se_DeleteMessageRequest(input, context),
|
|
68
68
|
Action: "DeleteMessage",
|
|
69
69
|
Version: "2012-11-05",
|
|
70
70
|
});
|
|
71
71
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
72
72
|
};
|
|
73
|
-
exports.
|
|
74
|
-
const
|
|
73
|
+
exports.se_DeleteMessageCommand = se_DeleteMessageCommand;
|
|
74
|
+
const se_DeleteMessageBatchCommand = async (input, context) => {
|
|
75
75
|
const headers = {
|
|
76
76
|
"content-type": "application/x-www-form-urlencoded",
|
|
77
77
|
};
|
|
78
78
|
let body;
|
|
79
79
|
body = buildFormUrlencodedString({
|
|
80
|
-
...
|
|
80
|
+
...se_DeleteMessageBatchRequest(input, context),
|
|
81
81
|
Action: "DeleteMessageBatch",
|
|
82
82
|
Version: "2012-11-05",
|
|
83
83
|
});
|
|
84
84
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
85
|
};
|
|
86
|
-
exports.
|
|
87
|
-
const
|
|
86
|
+
exports.se_DeleteMessageBatchCommand = se_DeleteMessageBatchCommand;
|
|
87
|
+
const se_DeleteQueueCommand = async (input, context) => {
|
|
88
88
|
const headers = {
|
|
89
89
|
"content-type": "application/x-www-form-urlencoded",
|
|
90
90
|
};
|
|
91
91
|
let body;
|
|
92
92
|
body = buildFormUrlencodedString({
|
|
93
|
-
...
|
|
93
|
+
...se_DeleteQueueRequest(input, context),
|
|
94
94
|
Action: "DeleteQueue",
|
|
95
95
|
Version: "2012-11-05",
|
|
96
96
|
});
|
|
97
97
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
98
98
|
};
|
|
99
|
-
exports.
|
|
100
|
-
const
|
|
99
|
+
exports.se_DeleteQueueCommand = se_DeleteQueueCommand;
|
|
100
|
+
const se_GetQueueAttributesCommand = async (input, context) => {
|
|
101
101
|
const headers = {
|
|
102
102
|
"content-type": "application/x-www-form-urlencoded",
|
|
103
103
|
};
|
|
104
104
|
let body;
|
|
105
105
|
body = buildFormUrlencodedString({
|
|
106
|
-
...
|
|
106
|
+
...se_GetQueueAttributesRequest(input, context),
|
|
107
107
|
Action: "GetQueueAttributes",
|
|
108
108
|
Version: "2012-11-05",
|
|
109
109
|
});
|
|
110
110
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
111
111
|
};
|
|
112
|
-
exports.
|
|
113
|
-
const
|
|
112
|
+
exports.se_GetQueueAttributesCommand = se_GetQueueAttributesCommand;
|
|
113
|
+
const se_GetQueueUrlCommand = async (input, context) => {
|
|
114
114
|
const headers = {
|
|
115
115
|
"content-type": "application/x-www-form-urlencoded",
|
|
116
116
|
};
|
|
117
117
|
let body;
|
|
118
118
|
body = buildFormUrlencodedString({
|
|
119
|
-
...
|
|
119
|
+
...se_GetQueueUrlRequest(input, context),
|
|
120
120
|
Action: "GetQueueUrl",
|
|
121
121
|
Version: "2012-11-05",
|
|
122
122
|
});
|
|
123
123
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
124
124
|
};
|
|
125
|
-
exports.
|
|
126
|
-
const
|
|
125
|
+
exports.se_GetQueueUrlCommand = se_GetQueueUrlCommand;
|
|
126
|
+
const se_ListDeadLetterSourceQueuesCommand = 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_ListDeadLetterSourceQueuesRequest(input, context),
|
|
133
133
|
Action: "ListDeadLetterSourceQueues",
|
|
134
134
|
Version: "2012-11-05",
|
|
135
135
|
});
|
|
136
136
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
137
|
};
|
|
138
|
-
exports.
|
|
139
|
-
const
|
|
138
|
+
exports.se_ListDeadLetterSourceQueuesCommand = se_ListDeadLetterSourceQueuesCommand;
|
|
139
|
+
const se_ListQueuesCommand = async (input, context) => {
|
|
140
140
|
const headers = {
|
|
141
141
|
"content-type": "application/x-www-form-urlencoded",
|
|
142
142
|
};
|
|
143
143
|
let body;
|
|
144
144
|
body = buildFormUrlencodedString({
|
|
145
|
-
...
|
|
145
|
+
...se_ListQueuesRequest(input, context),
|
|
146
146
|
Action: "ListQueues",
|
|
147
147
|
Version: "2012-11-05",
|
|
148
148
|
});
|
|
149
149
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
150
150
|
};
|
|
151
|
-
exports.
|
|
152
|
-
const
|
|
151
|
+
exports.se_ListQueuesCommand = se_ListQueuesCommand;
|
|
152
|
+
const se_ListQueueTagsCommand = async (input, context) => {
|
|
153
153
|
const headers = {
|
|
154
154
|
"content-type": "application/x-www-form-urlencoded",
|
|
155
155
|
};
|
|
156
156
|
let body;
|
|
157
157
|
body = buildFormUrlencodedString({
|
|
158
|
-
...
|
|
158
|
+
...se_ListQueueTagsRequest(input, context),
|
|
159
159
|
Action: "ListQueueTags",
|
|
160
160
|
Version: "2012-11-05",
|
|
161
161
|
});
|
|
162
162
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
163
163
|
};
|
|
164
|
-
exports.
|
|
165
|
-
const
|
|
164
|
+
exports.se_ListQueueTagsCommand = se_ListQueueTagsCommand;
|
|
165
|
+
const se_PurgeQueueCommand = async (input, context) => {
|
|
166
166
|
const headers = {
|
|
167
167
|
"content-type": "application/x-www-form-urlencoded",
|
|
168
168
|
};
|
|
169
169
|
let body;
|
|
170
170
|
body = buildFormUrlencodedString({
|
|
171
|
-
...
|
|
171
|
+
...se_PurgeQueueRequest(input, context),
|
|
172
172
|
Action: "PurgeQueue",
|
|
173
173
|
Version: "2012-11-05",
|
|
174
174
|
});
|
|
175
175
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
176
|
};
|
|
177
|
-
exports.
|
|
178
|
-
const
|
|
177
|
+
exports.se_PurgeQueueCommand = se_PurgeQueueCommand;
|
|
178
|
+
const se_ReceiveMessageCommand = async (input, context) => {
|
|
179
179
|
const headers = {
|
|
180
180
|
"content-type": "application/x-www-form-urlencoded",
|
|
181
181
|
};
|
|
182
182
|
let body;
|
|
183
183
|
body = buildFormUrlencodedString({
|
|
184
|
-
...
|
|
184
|
+
...se_ReceiveMessageRequest(input, context),
|
|
185
185
|
Action: "ReceiveMessage",
|
|
186
186
|
Version: "2012-11-05",
|
|
187
187
|
});
|
|
188
188
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
189
189
|
};
|
|
190
|
-
exports.
|
|
191
|
-
const
|
|
190
|
+
exports.se_ReceiveMessageCommand = se_ReceiveMessageCommand;
|
|
191
|
+
const se_RemovePermissionCommand = async (input, context) => {
|
|
192
192
|
const headers = {
|
|
193
193
|
"content-type": "application/x-www-form-urlencoded",
|
|
194
194
|
};
|
|
195
195
|
let body;
|
|
196
196
|
body = buildFormUrlencodedString({
|
|
197
|
-
...
|
|
197
|
+
...se_RemovePermissionRequest(input, context),
|
|
198
198
|
Action: "RemovePermission",
|
|
199
199
|
Version: "2012-11-05",
|
|
200
200
|
});
|
|
201
201
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
202
202
|
};
|
|
203
|
-
exports.
|
|
204
|
-
const
|
|
203
|
+
exports.se_RemovePermissionCommand = se_RemovePermissionCommand;
|
|
204
|
+
const se_SendMessageCommand = async (input, context) => {
|
|
205
205
|
const headers = {
|
|
206
206
|
"content-type": "application/x-www-form-urlencoded",
|
|
207
207
|
};
|
|
208
208
|
let body;
|
|
209
209
|
body = buildFormUrlencodedString({
|
|
210
|
-
...
|
|
210
|
+
...se_SendMessageRequest(input, context),
|
|
211
211
|
Action: "SendMessage",
|
|
212
212
|
Version: "2012-11-05",
|
|
213
213
|
});
|
|
214
214
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
215
215
|
};
|
|
216
|
-
exports.
|
|
217
|
-
const
|
|
216
|
+
exports.se_SendMessageCommand = se_SendMessageCommand;
|
|
217
|
+
const se_SendMessageBatchCommand = async (input, context) => {
|
|
218
218
|
const headers = {
|
|
219
219
|
"content-type": "application/x-www-form-urlencoded",
|
|
220
220
|
};
|
|
221
221
|
let body;
|
|
222
222
|
body = buildFormUrlencodedString({
|
|
223
|
-
...
|
|
223
|
+
...se_SendMessageBatchRequest(input, context),
|
|
224
224
|
Action: "SendMessageBatch",
|
|
225
225
|
Version: "2012-11-05",
|
|
226
226
|
});
|
|
227
227
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
228
228
|
};
|
|
229
|
-
exports.
|
|
230
|
-
const
|
|
229
|
+
exports.se_SendMessageBatchCommand = se_SendMessageBatchCommand;
|
|
230
|
+
const se_SetQueueAttributesCommand = async (input, context) => {
|
|
231
231
|
const headers = {
|
|
232
232
|
"content-type": "application/x-www-form-urlencoded",
|
|
233
233
|
};
|
|
234
234
|
let body;
|
|
235
235
|
body = buildFormUrlencodedString({
|
|
236
|
-
...
|
|
236
|
+
...se_SetQueueAttributesRequest(input, context),
|
|
237
237
|
Action: "SetQueueAttributes",
|
|
238
238
|
Version: "2012-11-05",
|
|
239
239
|
});
|
|
240
240
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
241
241
|
};
|
|
242
|
-
exports.
|
|
243
|
-
const
|
|
242
|
+
exports.se_SetQueueAttributesCommand = se_SetQueueAttributesCommand;
|
|
243
|
+
const se_TagQueueCommand = async (input, context) => {
|
|
244
244
|
const headers = {
|
|
245
245
|
"content-type": "application/x-www-form-urlencoded",
|
|
246
246
|
};
|
|
247
247
|
let body;
|
|
248
248
|
body = buildFormUrlencodedString({
|
|
249
|
-
...
|
|
249
|
+
...se_TagQueueRequest(input, context),
|
|
250
250
|
Action: "TagQueue",
|
|
251
251
|
Version: "2012-11-05",
|
|
252
252
|
});
|
|
253
253
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
254
254
|
};
|
|
255
|
-
exports.
|
|
256
|
-
const
|
|
255
|
+
exports.se_TagQueueCommand = se_TagQueueCommand;
|
|
256
|
+
const se_UntagQueueCommand = async (input, context) => {
|
|
257
257
|
const headers = {
|
|
258
258
|
"content-type": "application/x-www-form-urlencoded",
|
|
259
259
|
};
|
|
260
260
|
let body;
|
|
261
261
|
body = buildFormUrlencodedString({
|
|
262
|
-
...
|
|
262
|
+
...se_UntagQueueRequest(input, context),
|
|
263
263
|
Action: "UntagQueue",
|
|
264
264
|
Version: "2012-11-05",
|
|
265
265
|
});
|
|
266
266
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
267
267
|
};
|
|
268
|
-
exports.
|
|
269
|
-
const
|
|
268
|
+
exports.se_UntagQueueCommand = se_UntagQueueCommand;
|
|
269
|
+
const de_AddPermissionCommand = async (output, context) => {
|
|
270
270
|
if (output.statusCode >= 300) {
|
|
271
|
-
return
|
|
271
|
+
return de_AddPermissionCommandError(output, context);
|
|
272
272
|
}
|
|
273
273
|
await collectBody(output.body, context);
|
|
274
274
|
const response = {
|
|
@@ -276,8 +276,8 @@ const deserializeAws_queryAddPermissionCommand = async (output, context) => {
|
|
|
276
276
|
};
|
|
277
277
|
return Promise.resolve(response);
|
|
278
278
|
};
|
|
279
|
-
exports.
|
|
280
|
-
const
|
|
279
|
+
exports.de_AddPermissionCommand = de_AddPermissionCommand;
|
|
280
|
+
const de_AddPermissionCommandError = async (output, context) => {
|
|
281
281
|
const parsedOutput = {
|
|
282
282
|
...output,
|
|
283
283
|
body: await parseErrorBody(output.body, context),
|
|
@@ -286,7 +286,7 @@ const deserializeAws_queryAddPermissionCommandError = async (output, context) =>
|
|
|
286
286
|
switch (errorCode) {
|
|
287
287
|
case "OverLimit":
|
|
288
288
|
case "com.amazonaws.sqs#OverLimit":
|
|
289
|
-
throw await
|
|
289
|
+
throw await de_OverLimitRes(parsedOutput, context);
|
|
290
290
|
default:
|
|
291
291
|
const parsedBody = parsedOutput.body;
|
|
292
292
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -297,9 +297,9 @@ const deserializeAws_queryAddPermissionCommandError = async (output, context) =>
|
|
|
297
297
|
});
|
|
298
298
|
}
|
|
299
299
|
};
|
|
300
|
-
const
|
|
300
|
+
const de_ChangeMessageVisibilityCommand = async (output, context) => {
|
|
301
301
|
if (output.statusCode >= 300) {
|
|
302
|
-
return
|
|
302
|
+
return de_ChangeMessageVisibilityCommandError(output, context);
|
|
303
303
|
}
|
|
304
304
|
await collectBody(output.body, context);
|
|
305
305
|
const response = {
|
|
@@ -307,8 +307,8 @@ const deserializeAws_queryChangeMessageVisibilityCommand = async (output, contex
|
|
|
307
307
|
};
|
|
308
308
|
return Promise.resolve(response);
|
|
309
309
|
};
|
|
310
|
-
exports.
|
|
311
|
-
const
|
|
310
|
+
exports.de_ChangeMessageVisibilityCommand = de_ChangeMessageVisibilityCommand;
|
|
311
|
+
const de_ChangeMessageVisibilityCommandError = async (output, context) => {
|
|
312
312
|
const parsedOutput = {
|
|
313
313
|
...output,
|
|
314
314
|
body: await parseErrorBody(output.body, context),
|
|
@@ -317,10 +317,10 @@ const deserializeAws_queryChangeMessageVisibilityCommandError = async (output, c
|
|
|
317
317
|
switch (errorCode) {
|
|
318
318
|
case "AWS.SimpleQueueService.MessageNotInflight":
|
|
319
319
|
case "com.amazonaws.sqs#MessageNotInflight":
|
|
320
|
-
throw await
|
|
320
|
+
throw await de_MessageNotInflightRes(parsedOutput, context);
|
|
321
321
|
case "ReceiptHandleIsInvalid":
|
|
322
322
|
case "com.amazonaws.sqs#ReceiptHandleIsInvalid":
|
|
323
|
-
throw await
|
|
323
|
+
throw await de_ReceiptHandleIsInvalidRes(parsedOutput, context);
|
|
324
324
|
default:
|
|
325
325
|
const parsedBody = parsedOutput.body;
|
|
326
326
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -331,21 +331,21 @@ const deserializeAws_queryChangeMessageVisibilityCommandError = async (output, c
|
|
|
331
331
|
});
|
|
332
332
|
}
|
|
333
333
|
};
|
|
334
|
-
const
|
|
334
|
+
const de_ChangeMessageVisibilityBatchCommand = async (output, context) => {
|
|
335
335
|
if (output.statusCode >= 300) {
|
|
336
|
-
return
|
|
336
|
+
return de_ChangeMessageVisibilityBatchCommandError(output, context);
|
|
337
337
|
}
|
|
338
338
|
const data = await parseBody(output.body, context);
|
|
339
339
|
let contents = {};
|
|
340
|
-
contents =
|
|
340
|
+
contents = de_ChangeMessageVisibilityBatchResult(data.ChangeMessageVisibilityBatchResult, context);
|
|
341
341
|
const response = {
|
|
342
342
|
$metadata: deserializeMetadata(output),
|
|
343
343
|
...contents,
|
|
344
344
|
};
|
|
345
345
|
return Promise.resolve(response);
|
|
346
346
|
};
|
|
347
|
-
exports.
|
|
348
|
-
const
|
|
347
|
+
exports.de_ChangeMessageVisibilityBatchCommand = de_ChangeMessageVisibilityBatchCommand;
|
|
348
|
+
const de_ChangeMessageVisibilityBatchCommandError = async (output, context) => {
|
|
349
349
|
const parsedOutput = {
|
|
350
350
|
...output,
|
|
351
351
|
body: await parseErrorBody(output.body, context),
|
|
@@ -354,16 +354,16 @@ const deserializeAws_queryChangeMessageVisibilityBatchCommandError = async (outp
|
|
|
354
354
|
switch (errorCode) {
|
|
355
355
|
case "AWS.SimpleQueueService.BatchEntryIdsNotDistinct":
|
|
356
356
|
case "com.amazonaws.sqs#BatchEntryIdsNotDistinct":
|
|
357
|
-
throw await
|
|
357
|
+
throw await de_BatchEntryIdsNotDistinctRes(parsedOutput, context);
|
|
358
358
|
case "AWS.SimpleQueueService.EmptyBatchRequest":
|
|
359
359
|
case "com.amazonaws.sqs#EmptyBatchRequest":
|
|
360
|
-
throw await
|
|
360
|
+
throw await de_EmptyBatchRequestRes(parsedOutput, context);
|
|
361
361
|
case "AWS.SimpleQueueService.InvalidBatchEntryId":
|
|
362
362
|
case "com.amazonaws.sqs#InvalidBatchEntryId":
|
|
363
|
-
throw await
|
|
363
|
+
throw await de_InvalidBatchEntryIdRes(parsedOutput, context);
|
|
364
364
|
case "AWS.SimpleQueueService.TooManyEntriesInBatchRequest":
|
|
365
365
|
case "com.amazonaws.sqs#TooManyEntriesInBatchRequest":
|
|
366
|
-
throw await
|
|
366
|
+
throw await de_TooManyEntriesInBatchRequestRes(parsedOutput, context);
|
|
367
367
|
default:
|
|
368
368
|
const parsedBody = parsedOutput.body;
|
|
369
369
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -374,21 +374,21 @@ const deserializeAws_queryChangeMessageVisibilityBatchCommandError = async (outp
|
|
|
374
374
|
});
|
|
375
375
|
}
|
|
376
376
|
};
|
|
377
|
-
const
|
|
377
|
+
const de_CreateQueueCommand = async (output, context) => {
|
|
378
378
|
if (output.statusCode >= 300) {
|
|
379
|
-
return
|
|
379
|
+
return de_CreateQueueCommandError(output, context);
|
|
380
380
|
}
|
|
381
381
|
const data = await parseBody(output.body, context);
|
|
382
382
|
let contents = {};
|
|
383
|
-
contents =
|
|
383
|
+
contents = de_CreateQueueResult(data.CreateQueueResult, context);
|
|
384
384
|
const response = {
|
|
385
385
|
$metadata: deserializeMetadata(output),
|
|
386
386
|
...contents,
|
|
387
387
|
};
|
|
388
388
|
return Promise.resolve(response);
|
|
389
389
|
};
|
|
390
|
-
exports.
|
|
391
|
-
const
|
|
390
|
+
exports.de_CreateQueueCommand = de_CreateQueueCommand;
|
|
391
|
+
const de_CreateQueueCommandError = async (output, context) => {
|
|
392
392
|
const parsedOutput = {
|
|
393
393
|
...output,
|
|
394
394
|
body: await parseErrorBody(output.body, context),
|
|
@@ -397,10 +397,10 @@ const deserializeAws_queryCreateQueueCommandError = async (output, context) => {
|
|
|
397
397
|
switch (errorCode) {
|
|
398
398
|
case "AWS.SimpleQueueService.QueueDeletedRecently":
|
|
399
399
|
case "com.amazonaws.sqs#QueueDeletedRecently":
|
|
400
|
-
throw await
|
|
400
|
+
throw await de_QueueDeletedRecentlyRes(parsedOutput, context);
|
|
401
401
|
case "QueueAlreadyExists":
|
|
402
402
|
case "com.amazonaws.sqs#QueueNameExists":
|
|
403
|
-
throw await
|
|
403
|
+
throw await de_QueueNameExistsRes(parsedOutput, context);
|
|
404
404
|
default:
|
|
405
405
|
const parsedBody = parsedOutput.body;
|
|
406
406
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -411,9 +411,9 @@ const deserializeAws_queryCreateQueueCommandError = async (output, context) => {
|
|
|
411
411
|
});
|
|
412
412
|
}
|
|
413
413
|
};
|
|
414
|
-
const
|
|
414
|
+
const de_DeleteMessageCommand = async (output, context) => {
|
|
415
415
|
if (output.statusCode >= 300) {
|
|
416
|
-
return
|
|
416
|
+
return de_DeleteMessageCommandError(output, context);
|
|
417
417
|
}
|
|
418
418
|
await collectBody(output.body, context);
|
|
419
419
|
const response = {
|
|
@@ -421,8 +421,8 @@ const deserializeAws_queryDeleteMessageCommand = async (output, context) => {
|
|
|
421
421
|
};
|
|
422
422
|
return Promise.resolve(response);
|
|
423
423
|
};
|
|
424
|
-
exports.
|
|
425
|
-
const
|
|
424
|
+
exports.de_DeleteMessageCommand = de_DeleteMessageCommand;
|
|
425
|
+
const de_DeleteMessageCommandError = async (output, context) => {
|
|
426
426
|
const parsedOutput = {
|
|
427
427
|
...output,
|
|
428
428
|
body: await parseErrorBody(output.body, context),
|
|
@@ -431,10 +431,10 @@ const deserializeAws_queryDeleteMessageCommandError = async (output, context) =>
|
|
|
431
431
|
switch (errorCode) {
|
|
432
432
|
case "InvalidIdFormat":
|
|
433
433
|
case "com.amazonaws.sqs#InvalidIdFormat":
|
|
434
|
-
throw await
|
|
434
|
+
throw await de_InvalidIdFormatRes(parsedOutput, context);
|
|
435
435
|
case "ReceiptHandleIsInvalid":
|
|
436
436
|
case "com.amazonaws.sqs#ReceiptHandleIsInvalid":
|
|
437
|
-
throw await
|
|
437
|
+
throw await de_ReceiptHandleIsInvalidRes(parsedOutput, context);
|
|
438
438
|
default:
|
|
439
439
|
const parsedBody = parsedOutput.body;
|
|
440
440
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -445,21 +445,21 @@ const deserializeAws_queryDeleteMessageCommandError = async (output, context) =>
|
|
|
445
445
|
});
|
|
446
446
|
}
|
|
447
447
|
};
|
|
448
|
-
const
|
|
448
|
+
const de_DeleteMessageBatchCommand = async (output, context) => {
|
|
449
449
|
if (output.statusCode >= 300) {
|
|
450
|
-
return
|
|
450
|
+
return de_DeleteMessageBatchCommandError(output, context);
|
|
451
451
|
}
|
|
452
452
|
const data = await parseBody(output.body, context);
|
|
453
453
|
let contents = {};
|
|
454
|
-
contents =
|
|
454
|
+
contents = de_DeleteMessageBatchResult(data.DeleteMessageBatchResult, context);
|
|
455
455
|
const response = {
|
|
456
456
|
$metadata: deserializeMetadata(output),
|
|
457
457
|
...contents,
|
|
458
458
|
};
|
|
459
459
|
return Promise.resolve(response);
|
|
460
460
|
};
|
|
461
|
-
exports.
|
|
462
|
-
const
|
|
461
|
+
exports.de_DeleteMessageBatchCommand = de_DeleteMessageBatchCommand;
|
|
462
|
+
const de_DeleteMessageBatchCommandError = async (output, context) => {
|
|
463
463
|
const parsedOutput = {
|
|
464
464
|
...output,
|
|
465
465
|
body: await parseErrorBody(output.body, context),
|
|
@@ -468,16 +468,16 @@ const deserializeAws_queryDeleteMessageBatchCommandError = async (output, contex
|
|
|
468
468
|
switch (errorCode) {
|
|
469
469
|
case "AWS.SimpleQueueService.BatchEntryIdsNotDistinct":
|
|
470
470
|
case "com.amazonaws.sqs#BatchEntryIdsNotDistinct":
|
|
471
|
-
throw await
|
|
471
|
+
throw await de_BatchEntryIdsNotDistinctRes(parsedOutput, context);
|
|
472
472
|
case "AWS.SimpleQueueService.EmptyBatchRequest":
|
|
473
473
|
case "com.amazonaws.sqs#EmptyBatchRequest":
|
|
474
|
-
throw await
|
|
474
|
+
throw await de_EmptyBatchRequestRes(parsedOutput, context);
|
|
475
475
|
case "AWS.SimpleQueueService.InvalidBatchEntryId":
|
|
476
476
|
case "com.amazonaws.sqs#InvalidBatchEntryId":
|
|
477
|
-
throw await
|
|
477
|
+
throw await de_InvalidBatchEntryIdRes(parsedOutput, context);
|
|
478
478
|
case "AWS.SimpleQueueService.TooManyEntriesInBatchRequest":
|
|
479
479
|
case "com.amazonaws.sqs#TooManyEntriesInBatchRequest":
|
|
480
|
-
throw await
|
|
480
|
+
throw await de_TooManyEntriesInBatchRequestRes(parsedOutput, context);
|
|
481
481
|
default:
|
|
482
482
|
const parsedBody = parsedOutput.body;
|
|
483
483
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -488,9 +488,9 @@ const deserializeAws_queryDeleteMessageBatchCommandError = async (output, contex
|
|
|
488
488
|
});
|
|
489
489
|
}
|
|
490
490
|
};
|
|
491
|
-
const
|
|
491
|
+
const de_DeleteQueueCommand = async (output, context) => {
|
|
492
492
|
if (output.statusCode >= 300) {
|
|
493
|
-
return
|
|
493
|
+
return de_DeleteQueueCommandError(output, context);
|
|
494
494
|
}
|
|
495
495
|
await collectBody(output.body, context);
|
|
496
496
|
const response = {
|
|
@@ -498,8 +498,8 @@ const deserializeAws_queryDeleteQueueCommand = async (output, context) => {
|
|
|
498
498
|
};
|
|
499
499
|
return Promise.resolve(response);
|
|
500
500
|
};
|
|
501
|
-
exports.
|
|
502
|
-
const
|
|
501
|
+
exports.de_DeleteQueueCommand = de_DeleteQueueCommand;
|
|
502
|
+
const de_DeleteQueueCommandError = async (output, context) => {
|
|
503
503
|
const parsedOutput = {
|
|
504
504
|
...output,
|
|
505
505
|
body: await parseErrorBody(output.body, context),
|
|
@@ -513,21 +513,21 @@ const deserializeAws_queryDeleteQueueCommandError = async (output, context) => {
|
|
|
513
513
|
errorCode,
|
|
514
514
|
});
|
|
515
515
|
};
|
|
516
|
-
const
|
|
516
|
+
const de_GetQueueAttributesCommand = async (output, context) => {
|
|
517
517
|
if (output.statusCode >= 300) {
|
|
518
|
-
return
|
|
518
|
+
return de_GetQueueAttributesCommandError(output, context);
|
|
519
519
|
}
|
|
520
520
|
const data = await parseBody(output.body, context);
|
|
521
521
|
let contents = {};
|
|
522
|
-
contents =
|
|
522
|
+
contents = de_GetQueueAttributesResult(data.GetQueueAttributesResult, context);
|
|
523
523
|
const response = {
|
|
524
524
|
$metadata: deserializeMetadata(output),
|
|
525
525
|
...contents,
|
|
526
526
|
};
|
|
527
527
|
return Promise.resolve(response);
|
|
528
528
|
};
|
|
529
|
-
exports.
|
|
530
|
-
const
|
|
529
|
+
exports.de_GetQueueAttributesCommand = de_GetQueueAttributesCommand;
|
|
530
|
+
const de_GetQueueAttributesCommandError = async (output, context) => {
|
|
531
531
|
const parsedOutput = {
|
|
532
532
|
...output,
|
|
533
533
|
body: await parseErrorBody(output.body, context),
|
|
@@ -536,7 +536,7 @@ const deserializeAws_queryGetQueueAttributesCommandError = async (output, contex
|
|
|
536
536
|
switch (errorCode) {
|
|
537
537
|
case "InvalidAttributeName":
|
|
538
538
|
case "com.amazonaws.sqs#InvalidAttributeName":
|
|
539
|
-
throw await
|
|
539
|
+
throw await de_InvalidAttributeNameRes(parsedOutput, context);
|
|
540
540
|
default:
|
|
541
541
|
const parsedBody = parsedOutput.body;
|
|
542
542
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -547,21 +547,21 @@ const deserializeAws_queryGetQueueAttributesCommandError = async (output, contex
|
|
|
547
547
|
});
|
|
548
548
|
}
|
|
549
549
|
};
|
|
550
|
-
const
|
|
550
|
+
const de_GetQueueUrlCommand = async (output, context) => {
|
|
551
551
|
if (output.statusCode >= 300) {
|
|
552
|
-
return
|
|
552
|
+
return de_GetQueueUrlCommandError(output, context);
|
|
553
553
|
}
|
|
554
554
|
const data = await parseBody(output.body, context);
|
|
555
555
|
let contents = {};
|
|
556
|
-
contents =
|
|
556
|
+
contents = de_GetQueueUrlResult(data.GetQueueUrlResult, context);
|
|
557
557
|
const response = {
|
|
558
558
|
$metadata: deserializeMetadata(output),
|
|
559
559
|
...contents,
|
|
560
560
|
};
|
|
561
561
|
return Promise.resolve(response);
|
|
562
562
|
};
|
|
563
|
-
exports.
|
|
564
|
-
const
|
|
563
|
+
exports.de_GetQueueUrlCommand = de_GetQueueUrlCommand;
|
|
564
|
+
const de_GetQueueUrlCommandError = async (output, context) => {
|
|
565
565
|
const parsedOutput = {
|
|
566
566
|
...output,
|
|
567
567
|
body: await parseErrorBody(output.body, context),
|
|
@@ -570,7 +570,7 @@ const deserializeAws_queryGetQueueUrlCommandError = async (output, context) => {
|
|
|
570
570
|
switch (errorCode) {
|
|
571
571
|
case "AWS.SimpleQueueService.NonExistentQueue":
|
|
572
572
|
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
573
|
-
throw await
|
|
573
|
+
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
574
574
|
default:
|
|
575
575
|
const parsedBody = parsedOutput.body;
|
|
576
576
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -581,21 +581,21 @@ const deserializeAws_queryGetQueueUrlCommandError = async (output, context) => {
|
|
|
581
581
|
});
|
|
582
582
|
}
|
|
583
583
|
};
|
|
584
|
-
const
|
|
584
|
+
const de_ListDeadLetterSourceQueuesCommand = async (output, context) => {
|
|
585
585
|
if (output.statusCode >= 300) {
|
|
586
|
-
return
|
|
586
|
+
return de_ListDeadLetterSourceQueuesCommandError(output, context);
|
|
587
587
|
}
|
|
588
588
|
const data = await parseBody(output.body, context);
|
|
589
589
|
let contents = {};
|
|
590
|
-
contents =
|
|
590
|
+
contents = de_ListDeadLetterSourceQueuesResult(data.ListDeadLetterSourceQueuesResult, context);
|
|
591
591
|
const response = {
|
|
592
592
|
$metadata: deserializeMetadata(output),
|
|
593
593
|
...contents,
|
|
594
594
|
};
|
|
595
595
|
return Promise.resolve(response);
|
|
596
596
|
};
|
|
597
|
-
exports.
|
|
598
|
-
const
|
|
597
|
+
exports.de_ListDeadLetterSourceQueuesCommand = de_ListDeadLetterSourceQueuesCommand;
|
|
598
|
+
const de_ListDeadLetterSourceQueuesCommandError = async (output, context) => {
|
|
599
599
|
const parsedOutput = {
|
|
600
600
|
...output,
|
|
601
601
|
body: await parseErrorBody(output.body, context),
|
|
@@ -604,7 +604,7 @@ const deserializeAws_queryListDeadLetterSourceQueuesCommandError = async (output
|
|
|
604
604
|
switch (errorCode) {
|
|
605
605
|
case "AWS.SimpleQueueService.NonExistentQueue":
|
|
606
606
|
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
607
|
-
throw await
|
|
607
|
+
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
608
608
|
default:
|
|
609
609
|
const parsedBody = parsedOutput.body;
|
|
610
610
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -615,21 +615,21 @@ const deserializeAws_queryListDeadLetterSourceQueuesCommandError = async (output
|
|
|
615
615
|
});
|
|
616
616
|
}
|
|
617
617
|
};
|
|
618
|
-
const
|
|
618
|
+
const de_ListQueuesCommand = async (output, context) => {
|
|
619
619
|
if (output.statusCode >= 300) {
|
|
620
|
-
return
|
|
620
|
+
return de_ListQueuesCommandError(output, context);
|
|
621
621
|
}
|
|
622
622
|
const data = await parseBody(output.body, context);
|
|
623
623
|
let contents = {};
|
|
624
|
-
contents =
|
|
624
|
+
contents = de_ListQueuesResult(data.ListQueuesResult, context);
|
|
625
625
|
const response = {
|
|
626
626
|
$metadata: deserializeMetadata(output),
|
|
627
627
|
...contents,
|
|
628
628
|
};
|
|
629
629
|
return Promise.resolve(response);
|
|
630
630
|
};
|
|
631
|
-
exports.
|
|
632
|
-
const
|
|
631
|
+
exports.de_ListQueuesCommand = de_ListQueuesCommand;
|
|
632
|
+
const de_ListQueuesCommandError = async (output, context) => {
|
|
633
633
|
const parsedOutput = {
|
|
634
634
|
...output,
|
|
635
635
|
body: await parseErrorBody(output.body, context),
|
|
@@ -643,21 +643,21 @@ const deserializeAws_queryListQueuesCommandError = async (output, context) => {
|
|
|
643
643
|
errorCode,
|
|
644
644
|
});
|
|
645
645
|
};
|
|
646
|
-
const
|
|
646
|
+
const de_ListQueueTagsCommand = async (output, context) => {
|
|
647
647
|
if (output.statusCode >= 300) {
|
|
648
|
-
return
|
|
648
|
+
return de_ListQueueTagsCommandError(output, context);
|
|
649
649
|
}
|
|
650
650
|
const data = await parseBody(output.body, context);
|
|
651
651
|
let contents = {};
|
|
652
|
-
contents =
|
|
652
|
+
contents = de_ListQueueTagsResult(data.ListQueueTagsResult, context);
|
|
653
653
|
const response = {
|
|
654
654
|
$metadata: deserializeMetadata(output),
|
|
655
655
|
...contents,
|
|
656
656
|
};
|
|
657
657
|
return Promise.resolve(response);
|
|
658
658
|
};
|
|
659
|
-
exports.
|
|
660
|
-
const
|
|
659
|
+
exports.de_ListQueueTagsCommand = de_ListQueueTagsCommand;
|
|
660
|
+
const de_ListQueueTagsCommandError = async (output, context) => {
|
|
661
661
|
const parsedOutput = {
|
|
662
662
|
...output,
|
|
663
663
|
body: await parseErrorBody(output.body, context),
|
|
@@ -671,9 +671,9 @@ const deserializeAws_queryListQueueTagsCommandError = async (output, context) =>
|
|
|
671
671
|
errorCode,
|
|
672
672
|
});
|
|
673
673
|
};
|
|
674
|
-
const
|
|
674
|
+
const de_PurgeQueueCommand = async (output, context) => {
|
|
675
675
|
if (output.statusCode >= 300) {
|
|
676
|
-
return
|
|
676
|
+
return de_PurgeQueueCommandError(output, context);
|
|
677
677
|
}
|
|
678
678
|
await collectBody(output.body, context);
|
|
679
679
|
const response = {
|
|
@@ -681,8 +681,8 @@ const deserializeAws_queryPurgeQueueCommand = async (output, context) => {
|
|
|
681
681
|
};
|
|
682
682
|
return Promise.resolve(response);
|
|
683
683
|
};
|
|
684
|
-
exports.
|
|
685
|
-
const
|
|
684
|
+
exports.de_PurgeQueueCommand = de_PurgeQueueCommand;
|
|
685
|
+
const de_PurgeQueueCommandError = async (output, context) => {
|
|
686
686
|
const parsedOutput = {
|
|
687
687
|
...output,
|
|
688
688
|
body: await parseErrorBody(output.body, context),
|
|
@@ -691,10 +691,10 @@ const deserializeAws_queryPurgeQueueCommandError = async (output, context) => {
|
|
|
691
691
|
switch (errorCode) {
|
|
692
692
|
case "AWS.SimpleQueueService.NonExistentQueue":
|
|
693
693
|
case "com.amazonaws.sqs#QueueDoesNotExist":
|
|
694
|
-
throw await
|
|
694
|
+
throw await de_QueueDoesNotExistRes(parsedOutput, context);
|
|
695
695
|
case "AWS.SimpleQueueService.PurgeQueueInProgress":
|
|
696
696
|
case "com.amazonaws.sqs#PurgeQueueInProgress":
|
|
697
|
-
throw await
|
|
697
|
+
throw await de_PurgeQueueInProgressRes(parsedOutput, context);
|
|
698
698
|
default:
|
|
699
699
|
const parsedBody = parsedOutput.body;
|
|
700
700
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -705,21 +705,21 @@ const deserializeAws_queryPurgeQueueCommandError = async (output, context) => {
|
|
|
705
705
|
});
|
|
706
706
|
}
|
|
707
707
|
};
|
|
708
|
-
const
|
|
708
|
+
const de_ReceiveMessageCommand = async (output, context) => {
|
|
709
709
|
if (output.statusCode >= 300) {
|
|
710
|
-
return
|
|
710
|
+
return de_ReceiveMessageCommandError(output, context);
|
|
711
711
|
}
|
|
712
712
|
const data = await parseBody(output.body, context);
|
|
713
713
|
let contents = {};
|
|
714
|
-
contents =
|
|
714
|
+
contents = de_ReceiveMessageResult(data.ReceiveMessageResult, context);
|
|
715
715
|
const response = {
|
|
716
716
|
$metadata: deserializeMetadata(output),
|
|
717
717
|
...contents,
|
|
718
718
|
};
|
|
719
719
|
return Promise.resolve(response);
|
|
720
720
|
};
|
|
721
|
-
exports.
|
|
722
|
-
const
|
|
721
|
+
exports.de_ReceiveMessageCommand = de_ReceiveMessageCommand;
|
|
722
|
+
const de_ReceiveMessageCommandError = async (output, context) => {
|
|
723
723
|
const parsedOutput = {
|
|
724
724
|
...output,
|
|
725
725
|
body: await parseErrorBody(output.body, context),
|
|
@@ -728,7 +728,7 @@ const deserializeAws_queryReceiveMessageCommandError = async (output, context) =
|
|
|
728
728
|
switch (errorCode) {
|
|
729
729
|
case "OverLimit":
|
|
730
730
|
case "com.amazonaws.sqs#OverLimit":
|
|
731
|
-
throw await
|
|
731
|
+
throw await de_OverLimitRes(parsedOutput, context);
|
|
732
732
|
default:
|
|
733
733
|
const parsedBody = parsedOutput.body;
|
|
734
734
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -739,9 +739,9 @@ const deserializeAws_queryReceiveMessageCommandError = async (output, context) =
|
|
|
739
739
|
});
|
|
740
740
|
}
|
|
741
741
|
};
|
|
742
|
-
const
|
|
742
|
+
const de_RemovePermissionCommand = async (output, context) => {
|
|
743
743
|
if (output.statusCode >= 300) {
|
|
744
|
-
return
|
|
744
|
+
return de_RemovePermissionCommandError(output, context);
|
|
745
745
|
}
|
|
746
746
|
await collectBody(output.body, context);
|
|
747
747
|
const response = {
|
|
@@ -749,8 +749,8 @@ const deserializeAws_queryRemovePermissionCommand = async (output, context) => {
|
|
|
749
749
|
};
|
|
750
750
|
return Promise.resolve(response);
|
|
751
751
|
};
|
|
752
|
-
exports.
|
|
753
|
-
const
|
|
752
|
+
exports.de_RemovePermissionCommand = de_RemovePermissionCommand;
|
|
753
|
+
const de_RemovePermissionCommandError = async (output, context) => {
|
|
754
754
|
const parsedOutput = {
|
|
755
755
|
...output,
|
|
756
756
|
body: await parseErrorBody(output.body, context),
|
|
@@ -764,21 +764,21 @@ const deserializeAws_queryRemovePermissionCommandError = async (output, context)
|
|
|
764
764
|
errorCode,
|
|
765
765
|
});
|
|
766
766
|
};
|
|
767
|
-
const
|
|
767
|
+
const de_SendMessageCommand = async (output, context) => {
|
|
768
768
|
if (output.statusCode >= 300) {
|
|
769
|
-
return
|
|
769
|
+
return de_SendMessageCommandError(output, context);
|
|
770
770
|
}
|
|
771
771
|
const data = await parseBody(output.body, context);
|
|
772
772
|
let contents = {};
|
|
773
|
-
contents =
|
|
773
|
+
contents = de_SendMessageResult(data.SendMessageResult, context);
|
|
774
774
|
const response = {
|
|
775
775
|
$metadata: deserializeMetadata(output),
|
|
776
776
|
...contents,
|
|
777
777
|
};
|
|
778
778
|
return Promise.resolve(response);
|
|
779
779
|
};
|
|
780
|
-
exports.
|
|
781
|
-
const
|
|
780
|
+
exports.de_SendMessageCommand = de_SendMessageCommand;
|
|
781
|
+
const de_SendMessageCommandError = async (output, context) => {
|
|
782
782
|
const parsedOutput = {
|
|
783
783
|
...output,
|
|
784
784
|
body: await parseErrorBody(output.body, context),
|
|
@@ -787,10 +787,10 @@ const deserializeAws_querySendMessageCommandError = async (output, context) => {
|
|
|
787
787
|
switch (errorCode) {
|
|
788
788
|
case "AWS.SimpleQueueService.UnsupportedOperation":
|
|
789
789
|
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
790
|
-
throw await
|
|
790
|
+
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
791
791
|
case "InvalidMessageContents":
|
|
792
792
|
case "com.amazonaws.sqs#InvalidMessageContents":
|
|
793
|
-
throw await
|
|
793
|
+
throw await de_InvalidMessageContentsRes(parsedOutput, context);
|
|
794
794
|
default:
|
|
795
795
|
const parsedBody = parsedOutput.body;
|
|
796
796
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -801,21 +801,21 @@ const deserializeAws_querySendMessageCommandError = async (output, context) => {
|
|
|
801
801
|
});
|
|
802
802
|
}
|
|
803
803
|
};
|
|
804
|
-
const
|
|
804
|
+
const de_SendMessageBatchCommand = async (output, context) => {
|
|
805
805
|
if (output.statusCode >= 300) {
|
|
806
|
-
return
|
|
806
|
+
return de_SendMessageBatchCommandError(output, context);
|
|
807
807
|
}
|
|
808
808
|
const data = await parseBody(output.body, context);
|
|
809
809
|
let contents = {};
|
|
810
|
-
contents =
|
|
810
|
+
contents = de_SendMessageBatchResult(data.SendMessageBatchResult, context);
|
|
811
811
|
const response = {
|
|
812
812
|
$metadata: deserializeMetadata(output),
|
|
813
813
|
...contents,
|
|
814
814
|
};
|
|
815
815
|
return Promise.resolve(response);
|
|
816
816
|
};
|
|
817
|
-
exports.
|
|
818
|
-
const
|
|
817
|
+
exports.de_SendMessageBatchCommand = de_SendMessageBatchCommand;
|
|
818
|
+
const de_SendMessageBatchCommandError = async (output, context) => {
|
|
819
819
|
const parsedOutput = {
|
|
820
820
|
...output,
|
|
821
821
|
body: await parseErrorBody(output.body, context),
|
|
@@ -824,22 +824,22 @@ const deserializeAws_querySendMessageBatchCommandError = async (output, context)
|
|
|
824
824
|
switch (errorCode) {
|
|
825
825
|
case "AWS.SimpleQueueService.BatchEntryIdsNotDistinct":
|
|
826
826
|
case "com.amazonaws.sqs#BatchEntryIdsNotDistinct":
|
|
827
|
-
throw await
|
|
827
|
+
throw await de_BatchEntryIdsNotDistinctRes(parsedOutput, context);
|
|
828
828
|
case "AWS.SimpleQueueService.BatchRequestTooLong":
|
|
829
829
|
case "com.amazonaws.sqs#BatchRequestTooLong":
|
|
830
|
-
throw await
|
|
830
|
+
throw await de_BatchRequestTooLongRes(parsedOutput, context);
|
|
831
831
|
case "AWS.SimpleQueueService.EmptyBatchRequest":
|
|
832
832
|
case "com.amazonaws.sqs#EmptyBatchRequest":
|
|
833
|
-
throw await
|
|
833
|
+
throw await de_EmptyBatchRequestRes(parsedOutput, context);
|
|
834
834
|
case "AWS.SimpleQueueService.InvalidBatchEntryId":
|
|
835
835
|
case "com.amazonaws.sqs#InvalidBatchEntryId":
|
|
836
|
-
throw await
|
|
836
|
+
throw await de_InvalidBatchEntryIdRes(parsedOutput, context);
|
|
837
837
|
case "AWS.SimpleQueueService.TooManyEntriesInBatchRequest":
|
|
838
838
|
case "com.amazonaws.sqs#TooManyEntriesInBatchRequest":
|
|
839
|
-
throw await
|
|
839
|
+
throw await de_TooManyEntriesInBatchRequestRes(parsedOutput, context);
|
|
840
840
|
case "AWS.SimpleQueueService.UnsupportedOperation":
|
|
841
841
|
case "com.amazonaws.sqs#UnsupportedOperation":
|
|
842
|
-
throw await
|
|
842
|
+
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
843
843
|
default:
|
|
844
844
|
const parsedBody = parsedOutput.body;
|
|
845
845
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -850,9 +850,9 @@ const deserializeAws_querySendMessageBatchCommandError = async (output, context)
|
|
|
850
850
|
});
|
|
851
851
|
}
|
|
852
852
|
};
|
|
853
|
-
const
|
|
853
|
+
const de_SetQueueAttributesCommand = async (output, context) => {
|
|
854
854
|
if (output.statusCode >= 300) {
|
|
855
|
-
return
|
|
855
|
+
return de_SetQueueAttributesCommandError(output, context);
|
|
856
856
|
}
|
|
857
857
|
await collectBody(output.body, context);
|
|
858
858
|
const response = {
|
|
@@ -860,8 +860,8 @@ const deserializeAws_querySetQueueAttributesCommand = async (output, context) =>
|
|
|
860
860
|
};
|
|
861
861
|
return Promise.resolve(response);
|
|
862
862
|
};
|
|
863
|
-
exports.
|
|
864
|
-
const
|
|
863
|
+
exports.de_SetQueueAttributesCommand = de_SetQueueAttributesCommand;
|
|
864
|
+
const de_SetQueueAttributesCommandError = async (output, context) => {
|
|
865
865
|
const parsedOutput = {
|
|
866
866
|
...output,
|
|
867
867
|
body: await parseErrorBody(output.body, context),
|
|
@@ -870,7 +870,7 @@ const deserializeAws_querySetQueueAttributesCommandError = async (output, contex
|
|
|
870
870
|
switch (errorCode) {
|
|
871
871
|
case "InvalidAttributeName":
|
|
872
872
|
case "com.amazonaws.sqs#InvalidAttributeName":
|
|
873
|
-
throw await
|
|
873
|
+
throw await de_InvalidAttributeNameRes(parsedOutput, context);
|
|
874
874
|
default:
|
|
875
875
|
const parsedBody = parsedOutput.body;
|
|
876
876
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -881,9 +881,9 @@ const deserializeAws_querySetQueueAttributesCommandError = async (output, contex
|
|
|
881
881
|
});
|
|
882
882
|
}
|
|
883
883
|
};
|
|
884
|
-
const
|
|
884
|
+
const de_TagQueueCommand = async (output, context) => {
|
|
885
885
|
if (output.statusCode >= 300) {
|
|
886
|
-
return
|
|
886
|
+
return de_TagQueueCommandError(output, context);
|
|
887
887
|
}
|
|
888
888
|
await collectBody(output.body, context);
|
|
889
889
|
const response = {
|
|
@@ -891,8 +891,8 @@ const deserializeAws_queryTagQueueCommand = async (output, context) => {
|
|
|
891
891
|
};
|
|
892
892
|
return Promise.resolve(response);
|
|
893
893
|
};
|
|
894
|
-
exports.
|
|
895
|
-
const
|
|
894
|
+
exports.de_TagQueueCommand = de_TagQueueCommand;
|
|
895
|
+
const de_TagQueueCommandError = async (output, context) => {
|
|
896
896
|
const parsedOutput = {
|
|
897
897
|
...output,
|
|
898
898
|
body: await parseErrorBody(output.body, context),
|
|
@@ -906,9 +906,9 @@ const deserializeAws_queryTagQueueCommandError = async (output, context) => {
|
|
|
906
906
|
errorCode,
|
|
907
907
|
});
|
|
908
908
|
};
|
|
909
|
-
const
|
|
909
|
+
const de_UntagQueueCommand = async (output, context) => {
|
|
910
910
|
if (output.statusCode >= 300) {
|
|
911
|
-
return
|
|
911
|
+
return de_UntagQueueCommandError(output, context);
|
|
912
912
|
}
|
|
913
913
|
await collectBody(output.body, context);
|
|
914
914
|
const response = {
|
|
@@ -916,8 +916,8 @@ const deserializeAws_queryUntagQueueCommand = async (output, context) => {
|
|
|
916
916
|
};
|
|
917
917
|
return Promise.resolve(response);
|
|
918
918
|
};
|
|
919
|
-
exports.
|
|
920
|
-
const
|
|
919
|
+
exports.de_UntagQueueCommand = de_UntagQueueCommand;
|
|
920
|
+
const de_UntagQueueCommandError = async (output, context) => {
|
|
921
921
|
const parsedOutput = {
|
|
922
922
|
...output,
|
|
923
923
|
body: await parseErrorBody(output.body, context),
|
|
@@ -931,151 +931,151 @@ const deserializeAws_queryUntagQueueCommandError = async (output, context) => {
|
|
|
931
931
|
errorCode,
|
|
932
932
|
});
|
|
933
933
|
};
|
|
934
|
-
const
|
|
934
|
+
const de_BatchEntryIdsNotDistinctRes = async (parsedOutput, context) => {
|
|
935
935
|
const body = parsedOutput.body;
|
|
936
|
-
const deserialized =
|
|
936
|
+
const deserialized = de_BatchEntryIdsNotDistinct(body.Error, context);
|
|
937
937
|
const exception = new models_0_1.BatchEntryIdsNotDistinct({
|
|
938
938
|
$metadata: deserializeMetadata(parsedOutput),
|
|
939
939
|
...deserialized,
|
|
940
940
|
});
|
|
941
941
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
942
942
|
};
|
|
943
|
-
const
|
|
943
|
+
const de_BatchRequestTooLongRes = async (parsedOutput, context) => {
|
|
944
944
|
const body = parsedOutput.body;
|
|
945
|
-
const deserialized =
|
|
945
|
+
const deserialized = de_BatchRequestTooLong(body.Error, context);
|
|
946
946
|
const exception = new models_0_1.BatchRequestTooLong({
|
|
947
947
|
$metadata: deserializeMetadata(parsedOutput),
|
|
948
948
|
...deserialized,
|
|
949
949
|
});
|
|
950
950
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
951
951
|
};
|
|
952
|
-
const
|
|
952
|
+
const de_EmptyBatchRequestRes = async (parsedOutput, context) => {
|
|
953
953
|
const body = parsedOutput.body;
|
|
954
|
-
const deserialized =
|
|
954
|
+
const deserialized = de_EmptyBatchRequest(body.Error, context);
|
|
955
955
|
const exception = new models_0_1.EmptyBatchRequest({
|
|
956
956
|
$metadata: deserializeMetadata(parsedOutput),
|
|
957
957
|
...deserialized,
|
|
958
958
|
});
|
|
959
959
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
960
960
|
};
|
|
961
|
-
const
|
|
961
|
+
const de_InvalidAttributeNameRes = async (parsedOutput, context) => {
|
|
962
962
|
const body = parsedOutput.body;
|
|
963
|
-
const deserialized =
|
|
963
|
+
const deserialized = de_InvalidAttributeName(body.Error, context);
|
|
964
964
|
const exception = new models_0_1.InvalidAttributeName({
|
|
965
965
|
$metadata: deserializeMetadata(parsedOutput),
|
|
966
966
|
...deserialized,
|
|
967
967
|
});
|
|
968
968
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
969
969
|
};
|
|
970
|
-
const
|
|
970
|
+
const de_InvalidBatchEntryIdRes = async (parsedOutput, context) => {
|
|
971
971
|
const body = parsedOutput.body;
|
|
972
|
-
const deserialized =
|
|
972
|
+
const deserialized = de_InvalidBatchEntryId(body.Error, context);
|
|
973
973
|
const exception = new models_0_1.InvalidBatchEntryId({
|
|
974
974
|
$metadata: deserializeMetadata(parsedOutput),
|
|
975
975
|
...deserialized,
|
|
976
976
|
});
|
|
977
977
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
978
978
|
};
|
|
979
|
-
const
|
|
979
|
+
const de_InvalidIdFormatRes = async (parsedOutput, context) => {
|
|
980
980
|
const body = parsedOutput.body;
|
|
981
|
-
const deserialized =
|
|
981
|
+
const deserialized = de_InvalidIdFormat(body.Error, context);
|
|
982
982
|
const exception = new models_0_1.InvalidIdFormat({
|
|
983
983
|
$metadata: deserializeMetadata(parsedOutput),
|
|
984
984
|
...deserialized,
|
|
985
985
|
});
|
|
986
986
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
987
987
|
};
|
|
988
|
-
const
|
|
988
|
+
const de_InvalidMessageContentsRes = async (parsedOutput, context) => {
|
|
989
989
|
const body = parsedOutput.body;
|
|
990
|
-
const deserialized =
|
|
990
|
+
const deserialized = de_InvalidMessageContents(body.Error, context);
|
|
991
991
|
const exception = new models_0_1.InvalidMessageContents({
|
|
992
992
|
$metadata: deserializeMetadata(parsedOutput),
|
|
993
993
|
...deserialized,
|
|
994
994
|
});
|
|
995
995
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
996
996
|
};
|
|
997
|
-
const
|
|
997
|
+
const de_MessageNotInflightRes = async (parsedOutput, context) => {
|
|
998
998
|
const body = parsedOutput.body;
|
|
999
|
-
const deserialized =
|
|
999
|
+
const deserialized = de_MessageNotInflight(body.Error, context);
|
|
1000
1000
|
const exception = new models_0_1.MessageNotInflight({
|
|
1001
1001
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1002
1002
|
...deserialized,
|
|
1003
1003
|
});
|
|
1004
1004
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1005
1005
|
};
|
|
1006
|
-
const
|
|
1006
|
+
const de_OverLimitRes = async (parsedOutput, context) => {
|
|
1007
1007
|
const body = parsedOutput.body;
|
|
1008
|
-
const deserialized =
|
|
1008
|
+
const deserialized = de_OverLimit(body.Error, context);
|
|
1009
1009
|
const exception = new models_0_1.OverLimit({
|
|
1010
1010
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1011
1011
|
...deserialized,
|
|
1012
1012
|
});
|
|
1013
1013
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1014
1014
|
};
|
|
1015
|
-
const
|
|
1015
|
+
const de_PurgeQueueInProgressRes = async (parsedOutput, context) => {
|
|
1016
1016
|
const body = parsedOutput.body;
|
|
1017
|
-
const deserialized =
|
|
1017
|
+
const deserialized = de_PurgeQueueInProgress(body.Error, context);
|
|
1018
1018
|
const exception = new models_0_1.PurgeQueueInProgress({
|
|
1019
1019
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1020
1020
|
...deserialized,
|
|
1021
1021
|
});
|
|
1022
1022
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1023
1023
|
};
|
|
1024
|
-
const
|
|
1024
|
+
const de_QueueDeletedRecentlyRes = async (parsedOutput, context) => {
|
|
1025
1025
|
const body = parsedOutput.body;
|
|
1026
|
-
const deserialized =
|
|
1026
|
+
const deserialized = de_QueueDeletedRecently(body.Error, context);
|
|
1027
1027
|
const exception = new models_0_1.QueueDeletedRecently({
|
|
1028
1028
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1029
1029
|
...deserialized,
|
|
1030
1030
|
});
|
|
1031
1031
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1032
1032
|
};
|
|
1033
|
-
const
|
|
1033
|
+
const de_QueueDoesNotExistRes = async (parsedOutput, context) => {
|
|
1034
1034
|
const body = parsedOutput.body;
|
|
1035
|
-
const deserialized =
|
|
1035
|
+
const deserialized = de_QueueDoesNotExist(body.Error, context);
|
|
1036
1036
|
const exception = new models_0_1.QueueDoesNotExist({
|
|
1037
1037
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1038
1038
|
...deserialized,
|
|
1039
1039
|
});
|
|
1040
1040
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1041
1041
|
};
|
|
1042
|
-
const
|
|
1042
|
+
const de_QueueNameExistsRes = async (parsedOutput, context) => {
|
|
1043
1043
|
const body = parsedOutput.body;
|
|
1044
|
-
const deserialized =
|
|
1044
|
+
const deserialized = de_QueueNameExists(body.Error, context);
|
|
1045
1045
|
const exception = new models_0_1.QueueNameExists({
|
|
1046
1046
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1047
1047
|
...deserialized,
|
|
1048
1048
|
});
|
|
1049
1049
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1050
1050
|
};
|
|
1051
|
-
const
|
|
1051
|
+
const de_ReceiptHandleIsInvalidRes = async (parsedOutput, context) => {
|
|
1052
1052
|
const body = parsedOutput.body;
|
|
1053
|
-
const deserialized =
|
|
1053
|
+
const deserialized = de_ReceiptHandleIsInvalid(body.Error, context);
|
|
1054
1054
|
const exception = new models_0_1.ReceiptHandleIsInvalid({
|
|
1055
1055
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1056
1056
|
...deserialized,
|
|
1057
1057
|
});
|
|
1058
1058
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1059
1059
|
};
|
|
1060
|
-
const
|
|
1060
|
+
const de_TooManyEntriesInBatchRequestRes = async (parsedOutput, context) => {
|
|
1061
1061
|
const body = parsedOutput.body;
|
|
1062
|
-
const deserialized =
|
|
1062
|
+
const deserialized = de_TooManyEntriesInBatchRequest(body.Error, context);
|
|
1063
1063
|
const exception = new models_0_1.TooManyEntriesInBatchRequest({
|
|
1064
1064
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1065
1065
|
...deserialized,
|
|
1066
1066
|
});
|
|
1067
1067
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1068
1068
|
};
|
|
1069
|
-
const
|
|
1069
|
+
const de_UnsupportedOperationRes = async (parsedOutput, context) => {
|
|
1070
1070
|
const body = parsedOutput.body;
|
|
1071
|
-
const deserialized =
|
|
1071
|
+
const deserialized = de_UnsupportedOperation(body.Error, context);
|
|
1072
1072
|
const exception = new models_0_1.UnsupportedOperation({
|
|
1073
1073
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1074
1074
|
...deserialized,
|
|
1075
1075
|
});
|
|
1076
1076
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1077
1077
|
};
|
|
1078
|
-
const
|
|
1078
|
+
const se_ActionNameList = (input, context) => {
|
|
1079
1079
|
const entries = {};
|
|
1080
1080
|
let counter = 1;
|
|
1081
1081
|
for (const entry of input) {
|
|
@@ -1087,7 +1087,7 @@ const serializeAws_queryActionNameList = (input, context) => {
|
|
|
1087
1087
|
}
|
|
1088
1088
|
return entries;
|
|
1089
1089
|
};
|
|
1090
|
-
const
|
|
1090
|
+
const se_AddPermissionRequest = (input, context) => {
|
|
1091
1091
|
const entries = {};
|
|
1092
1092
|
if (input.QueueUrl != null) {
|
|
1093
1093
|
entries["QueueUrl"] = input.QueueUrl;
|
|
@@ -1096,7 +1096,7 @@ const serializeAws_queryAddPermissionRequest = (input, context) => {
|
|
|
1096
1096
|
entries["Label"] = input.Label;
|
|
1097
1097
|
}
|
|
1098
1098
|
if (input.AWSAccountIds != null) {
|
|
1099
|
-
const memberEntries =
|
|
1099
|
+
const memberEntries = se_AWSAccountIdList(input.AWSAccountIds, context);
|
|
1100
1100
|
if (input.AWSAccountIds?.length === 0) {
|
|
1101
1101
|
entries.AWSAccountId = [];
|
|
1102
1102
|
}
|
|
@@ -1106,7 +1106,7 @@ const serializeAws_queryAddPermissionRequest = (input, context) => {
|
|
|
1106
1106
|
});
|
|
1107
1107
|
}
|
|
1108
1108
|
if (input.Actions != null) {
|
|
1109
|
-
const memberEntries =
|
|
1109
|
+
const memberEntries = se_ActionNameList(input.Actions, context);
|
|
1110
1110
|
if (input.Actions?.length === 0) {
|
|
1111
1111
|
entries.ActionName = [];
|
|
1112
1112
|
}
|
|
@@ -1117,7 +1117,7 @@ const serializeAws_queryAddPermissionRequest = (input, context) => {
|
|
|
1117
1117
|
}
|
|
1118
1118
|
return entries;
|
|
1119
1119
|
};
|
|
1120
|
-
const
|
|
1120
|
+
const se_AttributeNameList = (input, context) => {
|
|
1121
1121
|
const entries = {};
|
|
1122
1122
|
let counter = 1;
|
|
1123
1123
|
for (const entry of input) {
|
|
@@ -1129,7 +1129,7 @@ const serializeAws_queryAttributeNameList = (input, context) => {
|
|
|
1129
1129
|
}
|
|
1130
1130
|
return entries;
|
|
1131
1131
|
};
|
|
1132
|
-
const
|
|
1132
|
+
const se_AWSAccountIdList = (input, context) => {
|
|
1133
1133
|
const entries = {};
|
|
1134
1134
|
let counter = 1;
|
|
1135
1135
|
for (const entry of input) {
|
|
@@ -1141,7 +1141,7 @@ const serializeAws_queryAWSAccountIdList = (input, context) => {
|
|
|
1141
1141
|
}
|
|
1142
1142
|
return entries;
|
|
1143
1143
|
};
|
|
1144
|
-
const
|
|
1144
|
+
const se_BinaryList = (input, context) => {
|
|
1145
1145
|
const entries = {};
|
|
1146
1146
|
let counter = 1;
|
|
1147
1147
|
for (const entry of input) {
|
|
@@ -1153,13 +1153,13 @@ const serializeAws_queryBinaryList = (input, context) => {
|
|
|
1153
1153
|
}
|
|
1154
1154
|
return entries;
|
|
1155
1155
|
};
|
|
1156
|
-
const
|
|
1156
|
+
const se_ChangeMessageVisibilityBatchRequest = (input, context) => {
|
|
1157
1157
|
const entries = {};
|
|
1158
1158
|
if (input.QueueUrl != null) {
|
|
1159
1159
|
entries["QueueUrl"] = input.QueueUrl;
|
|
1160
1160
|
}
|
|
1161
1161
|
if (input.Entries != null) {
|
|
1162
|
-
const memberEntries =
|
|
1162
|
+
const memberEntries = se_ChangeMessageVisibilityBatchRequestEntryList(input.Entries, context);
|
|
1163
1163
|
if (input.Entries?.length === 0) {
|
|
1164
1164
|
entries.ChangeMessageVisibilityBatchRequestEntry = [];
|
|
1165
1165
|
}
|
|
@@ -1170,7 +1170,7 @@ const serializeAws_queryChangeMessageVisibilityBatchRequest = (input, context) =
|
|
|
1170
1170
|
}
|
|
1171
1171
|
return entries;
|
|
1172
1172
|
};
|
|
1173
|
-
const
|
|
1173
|
+
const se_ChangeMessageVisibilityBatchRequestEntry = (input, context) => {
|
|
1174
1174
|
const entries = {};
|
|
1175
1175
|
if (input.Id != null) {
|
|
1176
1176
|
entries["Id"] = input.Id;
|
|
@@ -1183,14 +1183,14 @@ const serializeAws_queryChangeMessageVisibilityBatchRequestEntry = (input, conte
|
|
|
1183
1183
|
}
|
|
1184
1184
|
return entries;
|
|
1185
1185
|
};
|
|
1186
|
-
const
|
|
1186
|
+
const se_ChangeMessageVisibilityBatchRequestEntryList = (input, context) => {
|
|
1187
1187
|
const entries = {};
|
|
1188
1188
|
let counter = 1;
|
|
1189
1189
|
for (const entry of input) {
|
|
1190
1190
|
if (entry === null) {
|
|
1191
1191
|
continue;
|
|
1192
1192
|
}
|
|
1193
|
-
const memberEntries =
|
|
1193
|
+
const memberEntries = se_ChangeMessageVisibilityBatchRequestEntry(entry, context);
|
|
1194
1194
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1195
1195
|
entries[`member.${counter}.${key}`] = value;
|
|
1196
1196
|
});
|
|
@@ -1198,7 +1198,7 @@ const serializeAws_queryChangeMessageVisibilityBatchRequestEntryList = (input, c
|
|
|
1198
1198
|
}
|
|
1199
1199
|
return entries;
|
|
1200
1200
|
};
|
|
1201
|
-
const
|
|
1201
|
+
const se_ChangeMessageVisibilityRequest = (input, context) => {
|
|
1202
1202
|
const entries = {};
|
|
1203
1203
|
if (input.QueueUrl != null) {
|
|
1204
1204
|
entries["QueueUrl"] = input.QueueUrl;
|
|
@@ -1211,20 +1211,20 @@ const serializeAws_queryChangeMessageVisibilityRequest = (input, context) => {
|
|
|
1211
1211
|
}
|
|
1212
1212
|
return entries;
|
|
1213
1213
|
};
|
|
1214
|
-
const
|
|
1214
|
+
const se_CreateQueueRequest = (input, context) => {
|
|
1215
1215
|
const entries = {};
|
|
1216
1216
|
if (input.QueueName != null) {
|
|
1217
1217
|
entries["QueueName"] = input.QueueName;
|
|
1218
1218
|
}
|
|
1219
1219
|
if (input.tags != null) {
|
|
1220
|
-
const memberEntries =
|
|
1220
|
+
const memberEntries = se_TagMap(input.tags, context);
|
|
1221
1221
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1222
1222
|
const loc = `Tag.${key.substring(key.indexOf(".") + 1)}`;
|
|
1223
1223
|
entries[loc] = value;
|
|
1224
1224
|
});
|
|
1225
1225
|
}
|
|
1226
1226
|
if (input.Attributes != null) {
|
|
1227
|
-
const memberEntries =
|
|
1227
|
+
const memberEntries = se_QueueAttributeMap(input.Attributes, context);
|
|
1228
1228
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1229
1229
|
const loc = `Attribute.${key.substring(key.indexOf(".") + 1)}`;
|
|
1230
1230
|
entries[loc] = value;
|
|
@@ -1232,13 +1232,13 @@ const serializeAws_queryCreateQueueRequest = (input, context) => {
|
|
|
1232
1232
|
}
|
|
1233
1233
|
return entries;
|
|
1234
1234
|
};
|
|
1235
|
-
const
|
|
1235
|
+
const se_DeleteMessageBatchRequest = (input, context) => {
|
|
1236
1236
|
const entries = {};
|
|
1237
1237
|
if (input.QueueUrl != null) {
|
|
1238
1238
|
entries["QueueUrl"] = input.QueueUrl;
|
|
1239
1239
|
}
|
|
1240
1240
|
if (input.Entries != null) {
|
|
1241
|
-
const memberEntries =
|
|
1241
|
+
const memberEntries = se_DeleteMessageBatchRequestEntryList(input.Entries, context);
|
|
1242
1242
|
if (input.Entries?.length === 0) {
|
|
1243
1243
|
entries.DeleteMessageBatchRequestEntry = [];
|
|
1244
1244
|
}
|
|
@@ -1249,7 +1249,7 @@ const serializeAws_queryDeleteMessageBatchRequest = (input, context) => {
|
|
|
1249
1249
|
}
|
|
1250
1250
|
return entries;
|
|
1251
1251
|
};
|
|
1252
|
-
const
|
|
1252
|
+
const se_DeleteMessageBatchRequestEntry = (input, context) => {
|
|
1253
1253
|
const entries = {};
|
|
1254
1254
|
if (input.Id != null) {
|
|
1255
1255
|
entries["Id"] = input.Id;
|
|
@@ -1259,14 +1259,14 @@ const serializeAws_queryDeleteMessageBatchRequestEntry = (input, context) => {
|
|
|
1259
1259
|
}
|
|
1260
1260
|
return entries;
|
|
1261
1261
|
};
|
|
1262
|
-
const
|
|
1262
|
+
const se_DeleteMessageBatchRequestEntryList = (input, context) => {
|
|
1263
1263
|
const entries = {};
|
|
1264
1264
|
let counter = 1;
|
|
1265
1265
|
for (const entry of input) {
|
|
1266
1266
|
if (entry === null) {
|
|
1267
1267
|
continue;
|
|
1268
1268
|
}
|
|
1269
|
-
const memberEntries =
|
|
1269
|
+
const memberEntries = se_DeleteMessageBatchRequestEntry(entry, context);
|
|
1270
1270
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1271
1271
|
entries[`member.${counter}.${key}`] = value;
|
|
1272
1272
|
});
|
|
@@ -1274,7 +1274,7 @@ const serializeAws_queryDeleteMessageBatchRequestEntryList = (input, context) =>
|
|
|
1274
1274
|
}
|
|
1275
1275
|
return entries;
|
|
1276
1276
|
};
|
|
1277
|
-
const
|
|
1277
|
+
const se_DeleteMessageRequest = (input, context) => {
|
|
1278
1278
|
const entries = {};
|
|
1279
1279
|
if (input.QueueUrl != null) {
|
|
1280
1280
|
entries["QueueUrl"] = input.QueueUrl;
|
|
@@ -1284,20 +1284,20 @@ const serializeAws_queryDeleteMessageRequest = (input, context) => {
|
|
|
1284
1284
|
}
|
|
1285
1285
|
return entries;
|
|
1286
1286
|
};
|
|
1287
|
-
const
|
|
1287
|
+
const se_DeleteQueueRequest = (input, context) => {
|
|
1288
1288
|
const entries = {};
|
|
1289
1289
|
if (input.QueueUrl != null) {
|
|
1290
1290
|
entries["QueueUrl"] = input.QueueUrl;
|
|
1291
1291
|
}
|
|
1292
1292
|
return entries;
|
|
1293
1293
|
};
|
|
1294
|
-
const
|
|
1294
|
+
const se_GetQueueAttributesRequest = (input, context) => {
|
|
1295
1295
|
const entries = {};
|
|
1296
1296
|
if (input.QueueUrl != null) {
|
|
1297
1297
|
entries["QueueUrl"] = input.QueueUrl;
|
|
1298
1298
|
}
|
|
1299
1299
|
if (input.AttributeNames != null) {
|
|
1300
|
-
const memberEntries =
|
|
1300
|
+
const memberEntries = se_AttributeNameList(input.AttributeNames, context);
|
|
1301
1301
|
if (input.AttributeNames?.length === 0) {
|
|
1302
1302
|
entries.AttributeName = [];
|
|
1303
1303
|
}
|
|
@@ -1308,7 +1308,7 @@ const serializeAws_queryGetQueueAttributesRequest = (input, context) => {
|
|
|
1308
1308
|
}
|
|
1309
1309
|
return entries;
|
|
1310
1310
|
};
|
|
1311
|
-
const
|
|
1311
|
+
const se_GetQueueUrlRequest = (input, context) => {
|
|
1312
1312
|
const entries = {};
|
|
1313
1313
|
if (input.QueueName != null) {
|
|
1314
1314
|
entries["QueueName"] = input.QueueName;
|
|
@@ -1318,7 +1318,7 @@ const serializeAws_queryGetQueueUrlRequest = (input, context) => {
|
|
|
1318
1318
|
}
|
|
1319
1319
|
return entries;
|
|
1320
1320
|
};
|
|
1321
|
-
const
|
|
1321
|
+
const se_ListDeadLetterSourceQueuesRequest = (input, context) => {
|
|
1322
1322
|
const entries = {};
|
|
1323
1323
|
if (input.QueueUrl != null) {
|
|
1324
1324
|
entries["QueueUrl"] = input.QueueUrl;
|
|
@@ -1331,7 +1331,7 @@ const serializeAws_queryListDeadLetterSourceQueuesRequest = (input, context) =>
|
|
|
1331
1331
|
}
|
|
1332
1332
|
return entries;
|
|
1333
1333
|
};
|
|
1334
|
-
const
|
|
1334
|
+
const se_ListQueuesRequest = (input, context) => {
|
|
1335
1335
|
const entries = {};
|
|
1336
1336
|
if (input.QueueNamePrefix != null) {
|
|
1337
1337
|
entries["QueueNamePrefix"] = input.QueueNamePrefix;
|
|
@@ -1344,14 +1344,14 @@ const serializeAws_queryListQueuesRequest = (input, context) => {
|
|
|
1344
1344
|
}
|
|
1345
1345
|
return entries;
|
|
1346
1346
|
};
|
|
1347
|
-
const
|
|
1347
|
+
const se_ListQueueTagsRequest = (input, context) => {
|
|
1348
1348
|
const entries = {};
|
|
1349
1349
|
if (input.QueueUrl != null) {
|
|
1350
1350
|
entries["QueueUrl"] = input.QueueUrl;
|
|
1351
1351
|
}
|
|
1352
1352
|
return entries;
|
|
1353
1353
|
};
|
|
1354
|
-
const
|
|
1354
|
+
const se_MessageAttributeNameList = (input, context) => {
|
|
1355
1355
|
const entries = {};
|
|
1356
1356
|
let counter = 1;
|
|
1357
1357
|
for (const entry of input) {
|
|
@@ -1363,7 +1363,7 @@ const serializeAws_queryMessageAttributeNameList = (input, context) => {
|
|
|
1363
1363
|
}
|
|
1364
1364
|
return entries;
|
|
1365
1365
|
};
|
|
1366
|
-
const
|
|
1366
|
+
const se_MessageAttributeValue = (input, context) => {
|
|
1367
1367
|
const entries = {};
|
|
1368
1368
|
if (input.StringValue != null) {
|
|
1369
1369
|
entries["StringValue"] = input.StringValue;
|
|
@@ -1372,7 +1372,7 @@ const serializeAws_queryMessageAttributeValue = (input, context) => {
|
|
|
1372
1372
|
entries["BinaryValue"] = context.base64Encoder(input.BinaryValue);
|
|
1373
1373
|
}
|
|
1374
1374
|
if (input.StringListValues != null) {
|
|
1375
|
-
const memberEntries =
|
|
1375
|
+
const memberEntries = se_StringList(input.StringListValues, context);
|
|
1376
1376
|
if (input.StringListValues?.length === 0) {
|
|
1377
1377
|
entries.StringListValue = [];
|
|
1378
1378
|
}
|
|
@@ -1382,7 +1382,7 @@ const serializeAws_queryMessageAttributeValue = (input, context) => {
|
|
|
1382
1382
|
});
|
|
1383
1383
|
}
|
|
1384
1384
|
if (input.BinaryListValues != null) {
|
|
1385
|
-
const memberEntries =
|
|
1385
|
+
const memberEntries = se_BinaryList(input.BinaryListValues, context);
|
|
1386
1386
|
if (input.BinaryListValues?.length === 0) {
|
|
1387
1387
|
entries.BinaryListValue = [];
|
|
1388
1388
|
}
|
|
@@ -1396,14 +1396,14 @@ const serializeAws_queryMessageAttributeValue = (input, context) => {
|
|
|
1396
1396
|
}
|
|
1397
1397
|
return entries;
|
|
1398
1398
|
};
|
|
1399
|
-
const
|
|
1399
|
+
const se_MessageBodyAttributeMap = (input, context) => {
|
|
1400
1400
|
const entries = {};
|
|
1401
1401
|
let counter = 1;
|
|
1402
1402
|
Object.keys(input)
|
|
1403
1403
|
.filter((key) => input[key] != null)
|
|
1404
1404
|
.forEach((key) => {
|
|
1405
1405
|
entries[`entry.${counter}.Name`] = key;
|
|
1406
|
-
const memberEntries =
|
|
1406
|
+
const memberEntries = se_MessageAttributeValue(input[key], context);
|
|
1407
1407
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1408
1408
|
entries[`entry.${counter}.Value.${key}`] = value;
|
|
1409
1409
|
});
|
|
@@ -1411,14 +1411,14 @@ const serializeAws_queryMessageBodyAttributeMap = (input, context) => {
|
|
|
1411
1411
|
});
|
|
1412
1412
|
return entries;
|
|
1413
1413
|
};
|
|
1414
|
-
const
|
|
1414
|
+
const se_MessageBodySystemAttributeMap = (input, context) => {
|
|
1415
1415
|
const entries = {};
|
|
1416
1416
|
let counter = 1;
|
|
1417
1417
|
Object.keys(input)
|
|
1418
1418
|
.filter((key) => input[key] != null)
|
|
1419
1419
|
.forEach((key) => {
|
|
1420
1420
|
entries[`entry.${counter}.Name`] = key;
|
|
1421
|
-
const memberEntries =
|
|
1421
|
+
const memberEntries = se_MessageSystemAttributeValue(input[key], context);
|
|
1422
1422
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1423
1423
|
entries[`entry.${counter}.Value.${key}`] = value;
|
|
1424
1424
|
});
|
|
@@ -1426,7 +1426,7 @@ const serializeAws_queryMessageBodySystemAttributeMap = (input, context) => {
|
|
|
1426
1426
|
});
|
|
1427
1427
|
return entries;
|
|
1428
1428
|
};
|
|
1429
|
-
const
|
|
1429
|
+
const se_MessageSystemAttributeValue = (input, context) => {
|
|
1430
1430
|
const entries = {};
|
|
1431
1431
|
if (input.StringValue != null) {
|
|
1432
1432
|
entries["StringValue"] = input.StringValue;
|
|
@@ -1435,7 +1435,7 @@ const serializeAws_queryMessageSystemAttributeValue = (input, context) => {
|
|
|
1435
1435
|
entries["BinaryValue"] = context.base64Encoder(input.BinaryValue);
|
|
1436
1436
|
}
|
|
1437
1437
|
if (input.StringListValues != null) {
|
|
1438
|
-
const memberEntries =
|
|
1438
|
+
const memberEntries = se_StringList(input.StringListValues, context);
|
|
1439
1439
|
if (input.StringListValues?.length === 0) {
|
|
1440
1440
|
entries.StringListValue = [];
|
|
1441
1441
|
}
|
|
@@ -1445,7 +1445,7 @@ const serializeAws_queryMessageSystemAttributeValue = (input, context) => {
|
|
|
1445
1445
|
});
|
|
1446
1446
|
}
|
|
1447
1447
|
if (input.BinaryListValues != null) {
|
|
1448
|
-
const memberEntries =
|
|
1448
|
+
const memberEntries = se_BinaryList(input.BinaryListValues, context);
|
|
1449
1449
|
if (input.BinaryListValues?.length === 0) {
|
|
1450
1450
|
entries.BinaryListValue = [];
|
|
1451
1451
|
}
|
|
@@ -1459,14 +1459,14 @@ const serializeAws_queryMessageSystemAttributeValue = (input, context) => {
|
|
|
1459
1459
|
}
|
|
1460
1460
|
return entries;
|
|
1461
1461
|
};
|
|
1462
|
-
const
|
|
1462
|
+
const se_PurgeQueueRequest = (input, context) => {
|
|
1463
1463
|
const entries = {};
|
|
1464
1464
|
if (input.QueueUrl != null) {
|
|
1465
1465
|
entries["QueueUrl"] = input.QueueUrl;
|
|
1466
1466
|
}
|
|
1467
1467
|
return entries;
|
|
1468
1468
|
};
|
|
1469
|
-
const
|
|
1469
|
+
const se_QueueAttributeMap = (input, context) => {
|
|
1470
1470
|
const entries = {};
|
|
1471
1471
|
let counter = 1;
|
|
1472
1472
|
Object.keys(input)
|
|
@@ -1478,13 +1478,13 @@ const serializeAws_queryQueueAttributeMap = (input, context) => {
|
|
|
1478
1478
|
});
|
|
1479
1479
|
return entries;
|
|
1480
1480
|
};
|
|
1481
|
-
const
|
|
1481
|
+
const se_ReceiveMessageRequest = (input, context) => {
|
|
1482
1482
|
const entries = {};
|
|
1483
1483
|
if (input.QueueUrl != null) {
|
|
1484
1484
|
entries["QueueUrl"] = input.QueueUrl;
|
|
1485
1485
|
}
|
|
1486
1486
|
if (input.AttributeNames != null) {
|
|
1487
|
-
const memberEntries =
|
|
1487
|
+
const memberEntries = se_AttributeNameList(input.AttributeNames, context);
|
|
1488
1488
|
if (input.AttributeNames?.length === 0) {
|
|
1489
1489
|
entries.AttributeName = [];
|
|
1490
1490
|
}
|
|
@@ -1494,7 +1494,7 @@ const serializeAws_queryReceiveMessageRequest = (input, context) => {
|
|
|
1494
1494
|
});
|
|
1495
1495
|
}
|
|
1496
1496
|
if (input.MessageAttributeNames != null) {
|
|
1497
|
-
const memberEntries =
|
|
1497
|
+
const memberEntries = se_MessageAttributeNameList(input.MessageAttributeNames, context);
|
|
1498
1498
|
if (input.MessageAttributeNames?.length === 0) {
|
|
1499
1499
|
entries.MessageAttributeName = [];
|
|
1500
1500
|
}
|
|
@@ -1517,7 +1517,7 @@ const serializeAws_queryReceiveMessageRequest = (input, context) => {
|
|
|
1517
1517
|
}
|
|
1518
1518
|
return entries;
|
|
1519
1519
|
};
|
|
1520
|
-
const
|
|
1520
|
+
const se_RemovePermissionRequest = (input, context) => {
|
|
1521
1521
|
const entries = {};
|
|
1522
1522
|
if (input.QueueUrl != null) {
|
|
1523
1523
|
entries["QueueUrl"] = input.QueueUrl;
|
|
@@ -1527,13 +1527,13 @@ const serializeAws_queryRemovePermissionRequest = (input, context) => {
|
|
|
1527
1527
|
}
|
|
1528
1528
|
return entries;
|
|
1529
1529
|
};
|
|
1530
|
-
const
|
|
1530
|
+
const se_SendMessageBatchRequest = (input, context) => {
|
|
1531
1531
|
const entries = {};
|
|
1532
1532
|
if (input.QueueUrl != null) {
|
|
1533
1533
|
entries["QueueUrl"] = input.QueueUrl;
|
|
1534
1534
|
}
|
|
1535
1535
|
if (input.Entries != null) {
|
|
1536
|
-
const memberEntries =
|
|
1536
|
+
const memberEntries = se_SendMessageBatchRequestEntryList(input.Entries, context);
|
|
1537
1537
|
if (input.Entries?.length === 0) {
|
|
1538
1538
|
entries.SendMessageBatchRequestEntry = [];
|
|
1539
1539
|
}
|
|
@@ -1544,7 +1544,7 @@ const serializeAws_querySendMessageBatchRequest = (input, context) => {
|
|
|
1544
1544
|
}
|
|
1545
1545
|
return entries;
|
|
1546
1546
|
};
|
|
1547
|
-
const
|
|
1547
|
+
const se_SendMessageBatchRequestEntry = (input, context) => {
|
|
1548
1548
|
const entries = {};
|
|
1549
1549
|
if (input.Id != null) {
|
|
1550
1550
|
entries["Id"] = input.Id;
|
|
@@ -1556,14 +1556,14 @@ const serializeAws_querySendMessageBatchRequestEntry = (input, context) => {
|
|
|
1556
1556
|
entries["DelaySeconds"] = input.DelaySeconds;
|
|
1557
1557
|
}
|
|
1558
1558
|
if (input.MessageAttributes != null) {
|
|
1559
|
-
const memberEntries =
|
|
1559
|
+
const memberEntries = se_MessageBodyAttributeMap(input.MessageAttributes, context);
|
|
1560
1560
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1561
1561
|
const loc = `MessageAttribute.${key.substring(key.indexOf(".") + 1)}`;
|
|
1562
1562
|
entries[loc] = value;
|
|
1563
1563
|
});
|
|
1564
1564
|
}
|
|
1565
1565
|
if (input.MessageSystemAttributes != null) {
|
|
1566
|
-
const memberEntries =
|
|
1566
|
+
const memberEntries = se_MessageBodySystemAttributeMap(input.MessageSystemAttributes, context);
|
|
1567
1567
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1568
1568
|
const loc = `MessageSystemAttribute.${key.substring(key.indexOf(".") + 1)}`;
|
|
1569
1569
|
entries[loc] = value;
|
|
@@ -1577,14 +1577,14 @@ const serializeAws_querySendMessageBatchRequestEntry = (input, context) => {
|
|
|
1577
1577
|
}
|
|
1578
1578
|
return entries;
|
|
1579
1579
|
};
|
|
1580
|
-
const
|
|
1580
|
+
const se_SendMessageBatchRequestEntryList = (input, context) => {
|
|
1581
1581
|
const entries = {};
|
|
1582
1582
|
let counter = 1;
|
|
1583
1583
|
for (const entry of input) {
|
|
1584
1584
|
if (entry === null) {
|
|
1585
1585
|
continue;
|
|
1586
1586
|
}
|
|
1587
|
-
const memberEntries =
|
|
1587
|
+
const memberEntries = se_SendMessageBatchRequestEntry(entry, context);
|
|
1588
1588
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1589
1589
|
entries[`member.${counter}.${key}`] = value;
|
|
1590
1590
|
});
|
|
@@ -1592,7 +1592,7 @@ const serializeAws_querySendMessageBatchRequestEntryList = (input, context) => {
|
|
|
1592
1592
|
}
|
|
1593
1593
|
return entries;
|
|
1594
1594
|
};
|
|
1595
|
-
const
|
|
1595
|
+
const se_SendMessageRequest = (input, context) => {
|
|
1596
1596
|
const entries = {};
|
|
1597
1597
|
if (input.QueueUrl != null) {
|
|
1598
1598
|
entries["QueueUrl"] = input.QueueUrl;
|
|
@@ -1604,14 +1604,14 @@ const serializeAws_querySendMessageRequest = (input, context) => {
|
|
|
1604
1604
|
entries["DelaySeconds"] = input.DelaySeconds;
|
|
1605
1605
|
}
|
|
1606
1606
|
if (input.MessageAttributes != null) {
|
|
1607
|
-
const memberEntries =
|
|
1607
|
+
const memberEntries = se_MessageBodyAttributeMap(input.MessageAttributes, context);
|
|
1608
1608
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1609
1609
|
const loc = `MessageAttribute.${key.substring(key.indexOf(".") + 1)}`;
|
|
1610
1610
|
entries[loc] = value;
|
|
1611
1611
|
});
|
|
1612
1612
|
}
|
|
1613
1613
|
if (input.MessageSystemAttributes != null) {
|
|
1614
|
-
const memberEntries =
|
|
1614
|
+
const memberEntries = se_MessageBodySystemAttributeMap(input.MessageSystemAttributes, context);
|
|
1615
1615
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1616
1616
|
const loc = `MessageSystemAttribute.${key.substring(key.indexOf(".") + 1)}`;
|
|
1617
1617
|
entries[loc] = value;
|
|
@@ -1625,13 +1625,13 @@ const serializeAws_querySendMessageRequest = (input, context) => {
|
|
|
1625
1625
|
}
|
|
1626
1626
|
return entries;
|
|
1627
1627
|
};
|
|
1628
|
-
const
|
|
1628
|
+
const se_SetQueueAttributesRequest = (input, context) => {
|
|
1629
1629
|
const entries = {};
|
|
1630
1630
|
if (input.QueueUrl != null) {
|
|
1631
1631
|
entries["QueueUrl"] = input.QueueUrl;
|
|
1632
1632
|
}
|
|
1633
1633
|
if (input.Attributes != null) {
|
|
1634
|
-
const memberEntries =
|
|
1634
|
+
const memberEntries = se_QueueAttributeMap(input.Attributes, context);
|
|
1635
1635
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1636
1636
|
const loc = `Attribute.${key.substring(key.indexOf(".") + 1)}`;
|
|
1637
1637
|
entries[loc] = value;
|
|
@@ -1639,7 +1639,7 @@ const serializeAws_querySetQueueAttributesRequest = (input, context) => {
|
|
|
1639
1639
|
}
|
|
1640
1640
|
return entries;
|
|
1641
1641
|
};
|
|
1642
|
-
const
|
|
1642
|
+
const se_StringList = (input, context) => {
|
|
1643
1643
|
const entries = {};
|
|
1644
1644
|
let counter = 1;
|
|
1645
1645
|
for (const entry of input) {
|
|
@@ -1651,7 +1651,7 @@ const serializeAws_queryStringList = (input, context) => {
|
|
|
1651
1651
|
}
|
|
1652
1652
|
return entries;
|
|
1653
1653
|
};
|
|
1654
|
-
const
|
|
1654
|
+
const se_TagKeyList = (input, context) => {
|
|
1655
1655
|
const entries = {};
|
|
1656
1656
|
let counter = 1;
|
|
1657
1657
|
for (const entry of input) {
|
|
@@ -1663,7 +1663,7 @@ const serializeAws_queryTagKeyList = (input, context) => {
|
|
|
1663
1663
|
}
|
|
1664
1664
|
return entries;
|
|
1665
1665
|
};
|
|
1666
|
-
const
|
|
1666
|
+
const se_TagMap = (input, context) => {
|
|
1667
1667
|
const entries = {};
|
|
1668
1668
|
let counter = 1;
|
|
1669
1669
|
Object.keys(input)
|
|
@@ -1675,13 +1675,13 @@ const serializeAws_queryTagMap = (input, context) => {
|
|
|
1675
1675
|
});
|
|
1676
1676
|
return entries;
|
|
1677
1677
|
};
|
|
1678
|
-
const
|
|
1678
|
+
const se_TagQueueRequest = (input, context) => {
|
|
1679
1679
|
const entries = {};
|
|
1680
1680
|
if (input.QueueUrl != null) {
|
|
1681
1681
|
entries["QueueUrl"] = input.QueueUrl;
|
|
1682
1682
|
}
|
|
1683
1683
|
if (input.Tags != null) {
|
|
1684
|
-
const memberEntries =
|
|
1684
|
+
const memberEntries = se_TagMap(input.Tags, context);
|
|
1685
1685
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1686
1686
|
const loc = `Tag.${key.substring(key.indexOf(".") + 1)}`;
|
|
1687
1687
|
entries[loc] = value;
|
|
@@ -1689,13 +1689,13 @@ const serializeAws_queryTagQueueRequest = (input, context) => {
|
|
|
1689
1689
|
}
|
|
1690
1690
|
return entries;
|
|
1691
1691
|
};
|
|
1692
|
-
const
|
|
1692
|
+
const se_UntagQueueRequest = (input, context) => {
|
|
1693
1693
|
const entries = {};
|
|
1694
1694
|
if (input.QueueUrl != null) {
|
|
1695
1695
|
entries["QueueUrl"] = input.QueueUrl;
|
|
1696
1696
|
}
|
|
1697
1697
|
if (input.TagKeys != null) {
|
|
1698
|
-
const memberEntries =
|
|
1698
|
+
const memberEntries = se_TagKeyList(input.TagKeys, context);
|
|
1699
1699
|
if (input.TagKeys?.length === 0) {
|
|
1700
1700
|
entries.TagKey = [];
|
|
1701
1701
|
}
|
|
@@ -1706,15 +1706,15 @@ const serializeAws_queryUntagQueueRequest = (input, context) => {
|
|
|
1706
1706
|
}
|
|
1707
1707
|
return entries;
|
|
1708
1708
|
};
|
|
1709
|
-
const
|
|
1709
|
+
const de_BatchEntryIdsNotDistinct = (output, context) => {
|
|
1710
1710
|
const contents = {};
|
|
1711
1711
|
return contents;
|
|
1712
1712
|
};
|
|
1713
|
-
const
|
|
1713
|
+
const de_BatchRequestTooLong = (output, context) => {
|
|
1714
1714
|
const contents = {};
|
|
1715
1715
|
return contents;
|
|
1716
1716
|
};
|
|
1717
|
-
const
|
|
1717
|
+
const de_BatchResultErrorEntry = (output, context) => {
|
|
1718
1718
|
const contents = {};
|
|
1719
1719
|
if (output["Id"] !== undefined) {
|
|
1720
1720
|
contents.Id = (0, smithy_client_1.expectString)(output["Id"]);
|
|
@@ -1730,138 +1730,138 @@ const deserializeAws_queryBatchResultErrorEntry = (output, context) => {
|
|
|
1730
1730
|
}
|
|
1731
1731
|
return contents;
|
|
1732
1732
|
};
|
|
1733
|
-
const
|
|
1733
|
+
const de_BatchResultErrorEntryList = (output, context) => {
|
|
1734
1734
|
return (output || [])
|
|
1735
1735
|
.filter((e) => e != null)
|
|
1736
1736
|
.map((entry) => {
|
|
1737
|
-
return
|
|
1737
|
+
return de_BatchResultErrorEntry(entry, context);
|
|
1738
1738
|
});
|
|
1739
1739
|
};
|
|
1740
|
-
const
|
|
1740
|
+
const de_BinaryList = (output, context) => {
|
|
1741
1741
|
return (output || [])
|
|
1742
1742
|
.filter((e) => e != null)
|
|
1743
1743
|
.map((entry) => {
|
|
1744
1744
|
return context.base64Decoder(entry);
|
|
1745
1745
|
});
|
|
1746
1746
|
};
|
|
1747
|
-
const
|
|
1747
|
+
const de_ChangeMessageVisibilityBatchResult = (output, context) => {
|
|
1748
1748
|
const contents = {};
|
|
1749
1749
|
if (output.ChangeMessageVisibilityBatchResultEntry === "") {
|
|
1750
1750
|
contents.Successful = [];
|
|
1751
1751
|
}
|
|
1752
1752
|
else if (output["ChangeMessageVisibilityBatchResultEntry"] !== undefined) {
|
|
1753
|
-
contents.Successful =
|
|
1753
|
+
contents.Successful = de_ChangeMessageVisibilityBatchResultEntryList((0, smithy_client_1.getArrayIfSingleItem)(output["ChangeMessageVisibilityBatchResultEntry"]), context);
|
|
1754
1754
|
}
|
|
1755
1755
|
if (output.BatchResultErrorEntry === "") {
|
|
1756
1756
|
contents.Failed = [];
|
|
1757
1757
|
}
|
|
1758
1758
|
else if (output["BatchResultErrorEntry"] !== undefined) {
|
|
1759
|
-
contents.Failed =
|
|
1759
|
+
contents.Failed = de_BatchResultErrorEntryList((0, smithy_client_1.getArrayIfSingleItem)(output["BatchResultErrorEntry"]), context);
|
|
1760
1760
|
}
|
|
1761
1761
|
return contents;
|
|
1762
1762
|
};
|
|
1763
|
-
const
|
|
1763
|
+
const de_ChangeMessageVisibilityBatchResultEntry = (output, context) => {
|
|
1764
1764
|
const contents = {};
|
|
1765
1765
|
if (output["Id"] !== undefined) {
|
|
1766
1766
|
contents.Id = (0, smithy_client_1.expectString)(output["Id"]);
|
|
1767
1767
|
}
|
|
1768
1768
|
return contents;
|
|
1769
1769
|
};
|
|
1770
|
-
const
|
|
1770
|
+
const de_ChangeMessageVisibilityBatchResultEntryList = (output, context) => {
|
|
1771
1771
|
return (output || [])
|
|
1772
1772
|
.filter((e) => e != null)
|
|
1773
1773
|
.map((entry) => {
|
|
1774
|
-
return
|
|
1774
|
+
return de_ChangeMessageVisibilityBatchResultEntry(entry, context);
|
|
1775
1775
|
});
|
|
1776
1776
|
};
|
|
1777
|
-
const
|
|
1777
|
+
const de_CreateQueueResult = (output, context) => {
|
|
1778
1778
|
const contents = {};
|
|
1779
1779
|
if (output["QueueUrl"] !== undefined) {
|
|
1780
1780
|
contents.QueueUrl = (0, smithy_client_1.expectString)(output["QueueUrl"]);
|
|
1781
1781
|
}
|
|
1782
1782
|
return contents;
|
|
1783
1783
|
};
|
|
1784
|
-
const
|
|
1784
|
+
const de_DeleteMessageBatchResult = (output, context) => {
|
|
1785
1785
|
const contents = {};
|
|
1786
1786
|
if (output.DeleteMessageBatchResultEntry === "") {
|
|
1787
1787
|
contents.Successful = [];
|
|
1788
1788
|
}
|
|
1789
1789
|
else if (output["DeleteMessageBatchResultEntry"] !== undefined) {
|
|
1790
|
-
contents.Successful =
|
|
1790
|
+
contents.Successful = de_DeleteMessageBatchResultEntryList((0, smithy_client_1.getArrayIfSingleItem)(output["DeleteMessageBatchResultEntry"]), context);
|
|
1791
1791
|
}
|
|
1792
1792
|
if (output.BatchResultErrorEntry === "") {
|
|
1793
1793
|
contents.Failed = [];
|
|
1794
1794
|
}
|
|
1795
1795
|
else if (output["BatchResultErrorEntry"] !== undefined) {
|
|
1796
|
-
contents.Failed =
|
|
1796
|
+
contents.Failed = de_BatchResultErrorEntryList((0, smithy_client_1.getArrayIfSingleItem)(output["BatchResultErrorEntry"]), context);
|
|
1797
1797
|
}
|
|
1798
1798
|
return contents;
|
|
1799
1799
|
};
|
|
1800
|
-
const
|
|
1800
|
+
const de_DeleteMessageBatchResultEntry = (output, context) => {
|
|
1801
1801
|
const contents = {};
|
|
1802
1802
|
if (output["Id"] !== undefined) {
|
|
1803
1803
|
contents.Id = (0, smithy_client_1.expectString)(output["Id"]);
|
|
1804
1804
|
}
|
|
1805
1805
|
return contents;
|
|
1806
1806
|
};
|
|
1807
|
-
const
|
|
1807
|
+
const de_DeleteMessageBatchResultEntryList = (output, context) => {
|
|
1808
1808
|
return (output || [])
|
|
1809
1809
|
.filter((e) => e != null)
|
|
1810
1810
|
.map((entry) => {
|
|
1811
|
-
return
|
|
1811
|
+
return de_DeleteMessageBatchResultEntry(entry, context);
|
|
1812
1812
|
});
|
|
1813
1813
|
};
|
|
1814
|
-
const
|
|
1814
|
+
const de_EmptyBatchRequest = (output, context) => {
|
|
1815
1815
|
const contents = {};
|
|
1816
1816
|
return contents;
|
|
1817
1817
|
};
|
|
1818
|
-
const
|
|
1818
|
+
const de_GetQueueAttributesResult = (output, context) => {
|
|
1819
1819
|
const contents = {};
|
|
1820
1820
|
if (output.Attribute === "") {
|
|
1821
1821
|
contents.Attributes = {};
|
|
1822
1822
|
}
|
|
1823
1823
|
else if (output["Attribute"] !== undefined) {
|
|
1824
|
-
contents.Attributes =
|
|
1824
|
+
contents.Attributes = de_QueueAttributeMap((0, smithy_client_1.getArrayIfSingleItem)(output["Attribute"]), context);
|
|
1825
1825
|
}
|
|
1826
1826
|
return contents;
|
|
1827
1827
|
};
|
|
1828
|
-
const
|
|
1828
|
+
const de_GetQueueUrlResult = (output, context) => {
|
|
1829
1829
|
const contents = {};
|
|
1830
1830
|
if (output["QueueUrl"] !== undefined) {
|
|
1831
1831
|
contents.QueueUrl = (0, smithy_client_1.expectString)(output["QueueUrl"]);
|
|
1832
1832
|
}
|
|
1833
1833
|
return contents;
|
|
1834
1834
|
};
|
|
1835
|
-
const
|
|
1835
|
+
const de_InvalidAttributeName = (output, context) => {
|
|
1836
1836
|
const contents = {};
|
|
1837
1837
|
return contents;
|
|
1838
1838
|
};
|
|
1839
|
-
const
|
|
1839
|
+
const de_InvalidBatchEntryId = (output, context) => {
|
|
1840
1840
|
const contents = {};
|
|
1841
1841
|
return contents;
|
|
1842
1842
|
};
|
|
1843
|
-
const
|
|
1843
|
+
const de_InvalidIdFormat = (output, context) => {
|
|
1844
1844
|
const contents = {};
|
|
1845
1845
|
return contents;
|
|
1846
1846
|
};
|
|
1847
|
-
const
|
|
1847
|
+
const de_InvalidMessageContents = (output, context) => {
|
|
1848
1848
|
const contents = {};
|
|
1849
1849
|
return contents;
|
|
1850
1850
|
};
|
|
1851
|
-
const
|
|
1851
|
+
const de_ListDeadLetterSourceQueuesResult = (output, context) => {
|
|
1852
1852
|
const contents = {};
|
|
1853
1853
|
if (output.QueueUrl === "") {
|
|
1854
1854
|
contents.queueUrls = [];
|
|
1855
1855
|
}
|
|
1856
1856
|
else if (output["QueueUrl"] !== undefined) {
|
|
1857
|
-
contents.queueUrls =
|
|
1857
|
+
contents.queueUrls = de_QueueUrlList((0, smithy_client_1.getArrayIfSingleItem)(output["QueueUrl"]), context);
|
|
1858
1858
|
}
|
|
1859
1859
|
if (output["NextToken"] !== undefined) {
|
|
1860
1860
|
contents.NextToken = (0, smithy_client_1.expectString)(output["NextToken"]);
|
|
1861
1861
|
}
|
|
1862
1862
|
return contents;
|
|
1863
1863
|
};
|
|
1864
|
-
const
|
|
1864
|
+
const de_ListQueuesResult = (output, context) => {
|
|
1865
1865
|
const contents = {};
|
|
1866
1866
|
if (output["NextToken"] !== undefined) {
|
|
1867
1867
|
contents.NextToken = (0, smithy_client_1.expectString)(output["NextToken"]);
|
|
@@ -1870,21 +1870,21 @@ const deserializeAws_queryListQueuesResult = (output, context) => {
|
|
|
1870
1870
|
contents.QueueUrls = [];
|
|
1871
1871
|
}
|
|
1872
1872
|
else if (output["QueueUrl"] !== undefined) {
|
|
1873
|
-
contents.QueueUrls =
|
|
1873
|
+
contents.QueueUrls = de_QueueUrlList((0, smithy_client_1.getArrayIfSingleItem)(output["QueueUrl"]), context);
|
|
1874
1874
|
}
|
|
1875
1875
|
return contents;
|
|
1876
1876
|
};
|
|
1877
|
-
const
|
|
1877
|
+
const de_ListQueueTagsResult = (output, context) => {
|
|
1878
1878
|
const contents = {};
|
|
1879
1879
|
if (output.Tag === "") {
|
|
1880
1880
|
contents.Tags = {};
|
|
1881
1881
|
}
|
|
1882
1882
|
else if (output["Tag"] !== undefined) {
|
|
1883
|
-
contents.Tags =
|
|
1883
|
+
contents.Tags = de_TagMap((0, smithy_client_1.getArrayIfSingleItem)(output["Tag"]), context);
|
|
1884
1884
|
}
|
|
1885
1885
|
return contents;
|
|
1886
1886
|
};
|
|
1887
|
-
const
|
|
1887
|
+
const de_Message = (output, context) => {
|
|
1888
1888
|
const contents = {};
|
|
1889
1889
|
if (output["MessageId"] !== undefined) {
|
|
1890
1890
|
contents.MessageId = (0, smithy_client_1.expectString)(output["MessageId"]);
|
|
@@ -1902,7 +1902,7 @@ const deserializeAws_queryMessage = (output, context) => {
|
|
|
1902
1902
|
contents.Attributes = {};
|
|
1903
1903
|
}
|
|
1904
1904
|
else if (output["Attribute"] !== undefined) {
|
|
1905
|
-
contents.Attributes =
|
|
1905
|
+
contents.Attributes = de_MessageSystemAttributeMap((0, smithy_client_1.getArrayIfSingleItem)(output["Attribute"]), context);
|
|
1906
1906
|
}
|
|
1907
1907
|
if (output["MD5OfMessageAttributes"] !== undefined) {
|
|
1908
1908
|
contents.MD5OfMessageAttributes = (0, smithy_client_1.expectString)(output["MD5OfMessageAttributes"]);
|
|
@@ -1911,11 +1911,11 @@ const deserializeAws_queryMessage = (output, context) => {
|
|
|
1911
1911
|
contents.MessageAttributes = {};
|
|
1912
1912
|
}
|
|
1913
1913
|
else if (output["MessageAttribute"] !== undefined) {
|
|
1914
|
-
contents.MessageAttributes =
|
|
1914
|
+
contents.MessageAttributes = de_MessageBodyAttributeMap((0, smithy_client_1.getArrayIfSingleItem)(output["MessageAttribute"]), context);
|
|
1915
1915
|
}
|
|
1916
1916
|
return contents;
|
|
1917
1917
|
};
|
|
1918
|
-
const
|
|
1918
|
+
const de_MessageAttributeValue = (output, context) => {
|
|
1919
1919
|
const contents = {};
|
|
1920
1920
|
if (output["StringValue"] !== undefined) {
|
|
1921
1921
|
contents.StringValue = (0, smithy_client_1.expectString)(output["StringValue"]);
|
|
@@ -1927,40 +1927,40 @@ const deserializeAws_queryMessageAttributeValue = (output, context) => {
|
|
|
1927
1927
|
contents.StringListValues = [];
|
|
1928
1928
|
}
|
|
1929
1929
|
else if (output["StringListValue"] !== undefined) {
|
|
1930
|
-
contents.StringListValues =
|
|
1930
|
+
contents.StringListValues = de_StringList((0, smithy_client_1.getArrayIfSingleItem)(output["StringListValue"]), context);
|
|
1931
1931
|
}
|
|
1932
1932
|
if (output.BinaryListValue === "") {
|
|
1933
1933
|
contents.BinaryListValues = [];
|
|
1934
1934
|
}
|
|
1935
1935
|
else if (output["BinaryListValue"] !== undefined) {
|
|
1936
|
-
contents.BinaryListValues =
|
|
1936
|
+
contents.BinaryListValues = de_BinaryList((0, smithy_client_1.getArrayIfSingleItem)(output["BinaryListValue"]), context);
|
|
1937
1937
|
}
|
|
1938
1938
|
if (output["DataType"] !== undefined) {
|
|
1939
1939
|
contents.DataType = (0, smithy_client_1.expectString)(output["DataType"]);
|
|
1940
1940
|
}
|
|
1941
1941
|
return contents;
|
|
1942
1942
|
};
|
|
1943
|
-
const
|
|
1943
|
+
const de_MessageBodyAttributeMap = (output, context) => {
|
|
1944
1944
|
return output.reduce((acc, pair) => {
|
|
1945
1945
|
if (pair["Value"] === null) {
|
|
1946
1946
|
return acc;
|
|
1947
1947
|
}
|
|
1948
|
-
acc[pair["Name"]] =
|
|
1948
|
+
acc[pair["Name"]] = de_MessageAttributeValue(pair["Value"], context);
|
|
1949
1949
|
return acc;
|
|
1950
1950
|
}, {});
|
|
1951
1951
|
};
|
|
1952
|
-
const
|
|
1952
|
+
const de_MessageList = (output, context) => {
|
|
1953
1953
|
return (output || [])
|
|
1954
1954
|
.filter((e) => e != null)
|
|
1955
1955
|
.map((entry) => {
|
|
1956
|
-
return
|
|
1956
|
+
return de_Message(entry, context);
|
|
1957
1957
|
});
|
|
1958
1958
|
};
|
|
1959
|
-
const
|
|
1959
|
+
const de_MessageNotInflight = (output, context) => {
|
|
1960
1960
|
const contents = {};
|
|
1961
1961
|
return contents;
|
|
1962
1962
|
};
|
|
1963
|
-
const
|
|
1963
|
+
const de_MessageSystemAttributeMap = (output, context) => {
|
|
1964
1964
|
return output.reduce((acc, pair) => {
|
|
1965
1965
|
if (pair["Value"] === null) {
|
|
1966
1966
|
return acc;
|
|
@@ -1969,15 +1969,15 @@ const deserializeAws_queryMessageSystemAttributeMap = (output, context) => {
|
|
|
1969
1969
|
return acc;
|
|
1970
1970
|
}, {});
|
|
1971
1971
|
};
|
|
1972
|
-
const
|
|
1972
|
+
const de_OverLimit = (output, context) => {
|
|
1973
1973
|
const contents = {};
|
|
1974
1974
|
return contents;
|
|
1975
1975
|
};
|
|
1976
|
-
const
|
|
1976
|
+
const de_PurgeQueueInProgress = (output, context) => {
|
|
1977
1977
|
const contents = {};
|
|
1978
1978
|
return contents;
|
|
1979
1979
|
};
|
|
1980
|
-
const
|
|
1980
|
+
const de_QueueAttributeMap = (output, context) => {
|
|
1981
1981
|
return output.reduce((acc, pair) => {
|
|
1982
1982
|
if (pair["Value"] === null) {
|
|
1983
1983
|
return acc;
|
|
@@ -1986,56 +1986,56 @@ const deserializeAws_queryQueueAttributeMap = (output, context) => {
|
|
|
1986
1986
|
return acc;
|
|
1987
1987
|
}, {});
|
|
1988
1988
|
};
|
|
1989
|
-
const
|
|
1989
|
+
const de_QueueDeletedRecently = (output, context) => {
|
|
1990
1990
|
const contents = {};
|
|
1991
1991
|
return contents;
|
|
1992
1992
|
};
|
|
1993
|
-
const
|
|
1993
|
+
const de_QueueDoesNotExist = (output, context) => {
|
|
1994
1994
|
const contents = {};
|
|
1995
1995
|
return contents;
|
|
1996
1996
|
};
|
|
1997
|
-
const
|
|
1997
|
+
const de_QueueNameExists = (output, context) => {
|
|
1998
1998
|
const contents = {};
|
|
1999
1999
|
return contents;
|
|
2000
2000
|
};
|
|
2001
|
-
const
|
|
2001
|
+
const de_QueueUrlList = (output, context) => {
|
|
2002
2002
|
return (output || [])
|
|
2003
2003
|
.filter((e) => e != null)
|
|
2004
2004
|
.map((entry) => {
|
|
2005
2005
|
return (0, smithy_client_1.expectString)(entry);
|
|
2006
2006
|
});
|
|
2007
2007
|
};
|
|
2008
|
-
const
|
|
2008
|
+
const de_ReceiptHandleIsInvalid = (output, context) => {
|
|
2009
2009
|
const contents = {};
|
|
2010
2010
|
return contents;
|
|
2011
2011
|
};
|
|
2012
|
-
const
|
|
2012
|
+
const de_ReceiveMessageResult = (output, context) => {
|
|
2013
2013
|
const contents = {};
|
|
2014
2014
|
if (output.Message === "") {
|
|
2015
2015
|
contents.Messages = [];
|
|
2016
2016
|
}
|
|
2017
2017
|
else if (output["Message"] !== undefined) {
|
|
2018
|
-
contents.Messages =
|
|
2018
|
+
contents.Messages = de_MessageList((0, smithy_client_1.getArrayIfSingleItem)(output["Message"]), context);
|
|
2019
2019
|
}
|
|
2020
2020
|
return contents;
|
|
2021
2021
|
};
|
|
2022
|
-
const
|
|
2022
|
+
const de_SendMessageBatchResult = (output, context) => {
|
|
2023
2023
|
const contents = {};
|
|
2024
2024
|
if (output.SendMessageBatchResultEntry === "") {
|
|
2025
2025
|
contents.Successful = [];
|
|
2026
2026
|
}
|
|
2027
2027
|
else if (output["SendMessageBatchResultEntry"] !== undefined) {
|
|
2028
|
-
contents.Successful =
|
|
2028
|
+
contents.Successful = de_SendMessageBatchResultEntryList((0, smithy_client_1.getArrayIfSingleItem)(output["SendMessageBatchResultEntry"]), context);
|
|
2029
2029
|
}
|
|
2030
2030
|
if (output.BatchResultErrorEntry === "") {
|
|
2031
2031
|
contents.Failed = [];
|
|
2032
2032
|
}
|
|
2033
2033
|
else if (output["BatchResultErrorEntry"] !== undefined) {
|
|
2034
|
-
contents.Failed =
|
|
2034
|
+
contents.Failed = de_BatchResultErrorEntryList((0, smithy_client_1.getArrayIfSingleItem)(output["BatchResultErrorEntry"]), context);
|
|
2035
2035
|
}
|
|
2036
2036
|
return contents;
|
|
2037
2037
|
};
|
|
2038
|
-
const
|
|
2038
|
+
const de_SendMessageBatchResultEntry = (output, context) => {
|
|
2039
2039
|
const contents = {};
|
|
2040
2040
|
if (output["Id"] !== undefined) {
|
|
2041
2041
|
contents.Id = (0, smithy_client_1.expectString)(output["Id"]);
|
|
@@ -2057,14 +2057,14 @@ const deserializeAws_querySendMessageBatchResultEntry = (output, context) => {
|
|
|
2057
2057
|
}
|
|
2058
2058
|
return contents;
|
|
2059
2059
|
};
|
|
2060
|
-
const
|
|
2060
|
+
const de_SendMessageBatchResultEntryList = (output, context) => {
|
|
2061
2061
|
return (output || [])
|
|
2062
2062
|
.filter((e) => e != null)
|
|
2063
2063
|
.map((entry) => {
|
|
2064
|
-
return
|
|
2064
|
+
return de_SendMessageBatchResultEntry(entry, context);
|
|
2065
2065
|
});
|
|
2066
2066
|
};
|
|
2067
|
-
const
|
|
2067
|
+
const de_SendMessageResult = (output, context) => {
|
|
2068
2068
|
const contents = {};
|
|
2069
2069
|
if (output["MD5OfMessageBody"] !== undefined) {
|
|
2070
2070
|
contents.MD5OfMessageBody = (0, smithy_client_1.expectString)(output["MD5OfMessageBody"]);
|
|
@@ -2083,14 +2083,14 @@ const deserializeAws_querySendMessageResult = (output, context) => {
|
|
|
2083
2083
|
}
|
|
2084
2084
|
return contents;
|
|
2085
2085
|
};
|
|
2086
|
-
const
|
|
2086
|
+
const de_StringList = (output, context) => {
|
|
2087
2087
|
return (output || [])
|
|
2088
2088
|
.filter((e) => e != null)
|
|
2089
2089
|
.map((entry) => {
|
|
2090
2090
|
return (0, smithy_client_1.expectString)(entry);
|
|
2091
2091
|
});
|
|
2092
2092
|
};
|
|
2093
|
-
const
|
|
2093
|
+
const de_TagMap = (output, context) => {
|
|
2094
2094
|
return output.reduce((acc, pair) => {
|
|
2095
2095
|
if (pair["Value"] === null) {
|
|
2096
2096
|
return acc;
|
|
@@ -2099,11 +2099,11 @@ const deserializeAws_queryTagMap = (output, context) => {
|
|
|
2099
2099
|
return acc;
|
|
2100
2100
|
}, {});
|
|
2101
2101
|
};
|
|
2102
|
-
const
|
|
2102
|
+
const de_TooManyEntriesInBatchRequest = (output, context) => {
|
|
2103
2103
|
const contents = {};
|
|
2104
2104
|
return contents;
|
|
2105
2105
|
};
|
|
2106
|
-
const
|
|
2106
|
+
const de_UnsupportedOperation = (output, context) => {
|
|
2107
2107
|
const contents = {};
|
|
2108
2108
|
return contents;
|
|
2109
2109
|
};
|