@aws-sdk/client-timestream-write 3.504.0 → 3.507.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/index.js +30 -624
- package/dist-es/protocols/Aws_json1_0.js +52 -646
- package/package.json +3 -3
|
@@ -119,7 +119,7 @@ export const se_WriteRecordsCommand = async (input, context) => {
|
|
|
119
119
|
};
|
|
120
120
|
export const de_CreateBatchLoadTaskCommand = async (output, context) => {
|
|
121
121
|
if (output.statusCode >= 300) {
|
|
122
|
-
return
|
|
122
|
+
return de_CommandError(output, context);
|
|
123
123
|
}
|
|
124
124
|
const data = await parseBody(output.body, context);
|
|
125
125
|
let contents = {};
|
|
@@ -130,49 +130,9 @@ export const de_CreateBatchLoadTaskCommand = async (output, context) => {
|
|
|
130
130
|
};
|
|
131
131
|
return response;
|
|
132
132
|
};
|
|
133
|
-
const de_CreateBatchLoadTaskCommandError = async (output, context) => {
|
|
134
|
-
const parsedOutput = {
|
|
135
|
-
...output,
|
|
136
|
-
body: await parseErrorBody(output.body, context),
|
|
137
|
-
};
|
|
138
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
139
|
-
switch (errorCode) {
|
|
140
|
-
case "AccessDeniedException":
|
|
141
|
-
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
142
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
143
|
-
case "ConflictException":
|
|
144
|
-
case "com.amazonaws.timestreamwrite#ConflictException":
|
|
145
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
146
|
-
case "InternalServerException":
|
|
147
|
-
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
148
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
149
|
-
case "InvalidEndpointException":
|
|
150
|
-
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
151
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
152
|
-
case "ResourceNotFoundException":
|
|
153
|
-
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
154
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
155
|
-
case "ServiceQuotaExceededException":
|
|
156
|
-
case "com.amazonaws.timestreamwrite#ServiceQuotaExceededException":
|
|
157
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
158
|
-
case "ThrottlingException":
|
|
159
|
-
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
160
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
161
|
-
case "ValidationException":
|
|
162
|
-
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
163
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
164
|
-
default:
|
|
165
|
-
const parsedBody = parsedOutput.body;
|
|
166
|
-
return throwDefaultError({
|
|
167
|
-
output,
|
|
168
|
-
parsedBody,
|
|
169
|
-
errorCode,
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
};
|
|
173
133
|
export const de_CreateDatabaseCommand = async (output, context) => {
|
|
174
134
|
if (output.statusCode >= 300) {
|
|
175
|
-
return
|
|
135
|
+
return de_CommandError(output, context);
|
|
176
136
|
}
|
|
177
137
|
const data = await parseBody(output.body, context);
|
|
178
138
|
let contents = {};
|
|
@@ -183,46 +143,9 @@ export const de_CreateDatabaseCommand = async (output, context) => {
|
|
|
183
143
|
};
|
|
184
144
|
return response;
|
|
185
145
|
};
|
|
186
|
-
const de_CreateDatabaseCommandError = async (output, context) => {
|
|
187
|
-
const parsedOutput = {
|
|
188
|
-
...output,
|
|
189
|
-
body: await parseErrorBody(output.body, context),
|
|
190
|
-
};
|
|
191
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
192
|
-
switch (errorCode) {
|
|
193
|
-
case "AccessDeniedException":
|
|
194
|
-
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
195
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
196
|
-
case "ConflictException":
|
|
197
|
-
case "com.amazonaws.timestreamwrite#ConflictException":
|
|
198
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
199
|
-
case "InternalServerException":
|
|
200
|
-
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
201
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
202
|
-
case "InvalidEndpointException":
|
|
203
|
-
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
204
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
205
|
-
case "ServiceQuotaExceededException":
|
|
206
|
-
case "com.amazonaws.timestreamwrite#ServiceQuotaExceededException":
|
|
207
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
208
|
-
case "ThrottlingException":
|
|
209
|
-
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
210
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
211
|
-
case "ValidationException":
|
|
212
|
-
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
213
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
214
|
-
default:
|
|
215
|
-
const parsedBody = parsedOutput.body;
|
|
216
|
-
return throwDefaultError({
|
|
217
|
-
output,
|
|
218
|
-
parsedBody,
|
|
219
|
-
errorCode,
|
|
220
|
-
});
|
|
221
|
-
}
|
|
222
|
-
};
|
|
223
146
|
export const de_CreateTableCommand = async (output, context) => {
|
|
224
147
|
if (output.statusCode >= 300) {
|
|
225
|
-
return
|
|
148
|
+
return de_CommandError(output, context);
|
|
226
149
|
}
|
|
227
150
|
const data = await parseBody(output.body, context);
|
|
228
151
|
let contents = {};
|
|
@@ -233,49 +156,9 @@ export const de_CreateTableCommand = async (output, context) => {
|
|
|
233
156
|
};
|
|
234
157
|
return response;
|
|
235
158
|
};
|
|
236
|
-
const de_CreateTableCommandError = async (output, context) => {
|
|
237
|
-
const parsedOutput = {
|
|
238
|
-
...output,
|
|
239
|
-
body: await parseErrorBody(output.body, context),
|
|
240
|
-
};
|
|
241
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
242
|
-
switch (errorCode) {
|
|
243
|
-
case "AccessDeniedException":
|
|
244
|
-
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
245
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
246
|
-
case "ConflictException":
|
|
247
|
-
case "com.amazonaws.timestreamwrite#ConflictException":
|
|
248
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
249
|
-
case "InternalServerException":
|
|
250
|
-
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
251
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
252
|
-
case "InvalidEndpointException":
|
|
253
|
-
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
254
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
255
|
-
case "ResourceNotFoundException":
|
|
256
|
-
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
257
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
258
|
-
case "ServiceQuotaExceededException":
|
|
259
|
-
case "com.amazonaws.timestreamwrite#ServiceQuotaExceededException":
|
|
260
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
261
|
-
case "ThrottlingException":
|
|
262
|
-
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
263
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
264
|
-
case "ValidationException":
|
|
265
|
-
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
266
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
267
|
-
default:
|
|
268
|
-
const parsedBody = parsedOutput.body;
|
|
269
|
-
return throwDefaultError({
|
|
270
|
-
output,
|
|
271
|
-
parsedBody,
|
|
272
|
-
errorCode,
|
|
273
|
-
});
|
|
274
|
-
}
|
|
275
|
-
};
|
|
276
159
|
export const de_DeleteDatabaseCommand = async (output, context) => {
|
|
277
160
|
if (output.statusCode >= 300) {
|
|
278
|
-
return
|
|
161
|
+
return de_CommandError(output, context);
|
|
279
162
|
}
|
|
280
163
|
await collectBody(output.body, context);
|
|
281
164
|
const response = {
|
|
@@ -283,43 +166,9 @@ export const de_DeleteDatabaseCommand = async (output, context) => {
|
|
|
283
166
|
};
|
|
284
167
|
return response;
|
|
285
168
|
};
|
|
286
|
-
const de_DeleteDatabaseCommandError = async (output, context) => {
|
|
287
|
-
const parsedOutput = {
|
|
288
|
-
...output,
|
|
289
|
-
body: await parseErrorBody(output.body, context),
|
|
290
|
-
};
|
|
291
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
292
|
-
switch (errorCode) {
|
|
293
|
-
case "AccessDeniedException":
|
|
294
|
-
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
295
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
296
|
-
case "InternalServerException":
|
|
297
|
-
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
298
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
299
|
-
case "InvalidEndpointException":
|
|
300
|
-
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
301
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
302
|
-
case "ResourceNotFoundException":
|
|
303
|
-
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
304
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
305
|
-
case "ThrottlingException":
|
|
306
|
-
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
307
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
308
|
-
case "ValidationException":
|
|
309
|
-
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
310
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
311
|
-
default:
|
|
312
|
-
const parsedBody = parsedOutput.body;
|
|
313
|
-
return throwDefaultError({
|
|
314
|
-
output,
|
|
315
|
-
parsedBody,
|
|
316
|
-
errorCode,
|
|
317
|
-
});
|
|
318
|
-
}
|
|
319
|
-
};
|
|
320
169
|
export const de_DeleteTableCommand = async (output, context) => {
|
|
321
170
|
if (output.statusCode >= 300) {
|
|
322
|
-
return
|
|
171
|
+
return de_CommandError(output, context);
|
|
323
172
|
}
|
|
324
173
|
await collectBody(output.body, context);
|
|
325
174
|
const response = {
|
|
@@ -327,43 +176,9 @@ export const de_DeleteTableCommand = async (output, context) => {
|
|
|
327
176
|
};
|
|
328
177
|
return response;
|
|
329
178
|
};
|
|
330
|
-
const de_DeleteTableCommandError = async (output, context) => {
|
|
331
|
-
const parsedOutput = {
|
|
332
|
-
...output,
|
|
333
|
-
body: await parseErrorBody(output.body, context),
|
|
334
|
-
};
|
|
335
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
336
|
-
switch (errorCode) {
|
|
337
|
-
case "AccessDeniedException":
|
|
338
|
-
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
339
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
340
|
-
case "InternalServerException":
|
|
341
|
-
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
342
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
343
|
-
case "InvalidEndpointException":
|
|
344
|
-
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
345
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
346
|
-
case "ResourceNotFoundException":
|
|
347
|
-
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
348
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
349
|
-
case "ThrottlingException":
|
|
350
|
-
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
351
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
352
|
-
case "ValidationException":
|
|
353
|
-
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
354
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
355
|
-
default:
|
|
356
|
-
const parsedBody = parsedOutput.body;
|
|
357
|
-
return throwDefaultError({
|
|
358
|
-
output,
|
|
359
|
-
parsedBody,
|
|
360
|
-
errorCode,
|
|
361
|
-
});
|
|
362
|
-
}
|
|
363
|
-
};
|
|
364
179
|
export const de_DescribeBatchLoadTaskCommand = async (output, context) => {
|
|
365
180
|
if (output.statusCode >= 300) {
|
|
366
|
-
return
|
|
181
|
+
return de_CommandError(output, context);
|
|
367
182
|
}
|
|
368
183
|
const data = await parseBody(output.body, context);
|
|
369
184
|
let contents = {};
|
|
@@ -374,40 +189,9 @@ export const de_DescribeBatchLoadTaskCommand = async (output, context) => {
|
|
|
374
189
|
};
|
|
375
190
|
return response;
|
|
376
191
|
};
|
|
377
|
-
const de_DescribeBatchLoadTaskCommandError = async (output, context) => {
|
|
378
|
-
const parsedOutput = {
|
|
379
|
-
...output,
|
|
380
|
-
body: await parseErrorBody(output.body, context),
|
|
381
|
-
};
|
|
382
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
383
|
-
switch (errorCode) {
|
|
384
|
-
case "AccessDeniedException":
|
|
385
|
-
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
386
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
387
|
-
case "InternalServerException":
|
|
388
|
-
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
389
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
390
|
-
case "InvalidEndpointException":
|
|
391
|
-
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
392
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
393
|
-
case "ResourceNotFoundException":
|
|
394
|
-
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
395
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
396
|
-
case "ThrottlingException":
|
|
397
|
-
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
398
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
399
|
-
default:
|
|
400
|
-
const parsedBody = parsedOutput.body;
|
|
401
|
-
return throwDefaultError({
|
|
402
|
-
output,
|
|
403
|
-
parsedBody,
|
|
404
|
-
errorCode,
|
|
405
|
-
});
|
|
406
|
-
}
|
|
407
|
-
};
|
|
408
192
|
export const de_DescribeDatabaseCommand = async (output, context) => {
|
|
409
193
|
if (output.statusCode >= 300) {
|
|
410
|
-
return
|
|
194
|
+
return de_CommandError(output, context);
|
|
411
195
|
}
|
|
412
196
|
const data = await parseBody(output.body, context);
|
|
413
197
|
let contents = {};
|
|
@@ -418,43 +202,9 @@ export const de_DescribeDatabaseCommand = async (output, context) => {
|
|
|
418
202
|
};
|
|
419
203
|
return response;
|
|
420
204
|
};
|
|
421
|
-
const de_DescribeDatabaseCommandError = async (output, context) => {
|
|
422
|
-
const parsedOutput = {
|
|
423
|
-
...output,
|
|
424
|
-
body: await parseErrorBody(output.body, context),
|
|
425
|
-
};
|
|
426
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
427
|
-
switch (errorCode) {
|
|
428
|
-
case "AccessDeniedException":
|
|
429
|
-
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
430
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
431
|
-
case "InternalServerException":
|
|
432
|
-
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
433
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
434
|
-
case "InvalidEndpointException":
|
|
435
|
-
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
436
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
437
|
-
case "ResourceNotFoundException":
|
|
438
|
-
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
439
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
440
|
-
case "ThrottlingException":
|
|
441
|
-
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
442
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
443
|
-
case "ValidationException":
|
|
444
|
-
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
445
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
446
|
-
default:
|
|
447
|
-
const parsedBody = parsedOutput.body;
|
|
448
|
-
return throwDefaultError({
|
|
449
|
-
output,
|
|
450
|
-
parsedBody,
|
|
451
|
-
errorCode,
|
|
452
|
-
});
|
|
453
|
-
}
|
|
454
|
-
};
|
|
455
205
|
export const de_DescribeEndpointsCommand = async (output, context) => {
|
|
456
206
|
if (output.statusCode >= 300) {
|
|
457
|
-
return
|
|
207
|
+
return de_CommandError(output, context);
|
|
458
208
|
}
|
|
459
209
|
const data = await parseBody(output.body, context);
|
|
460
210
|
let contents = {};
|
|
@@ -465,34 +215,9 @@ export const de_DescribeEndpointsCommand = async (output, context) => {
|
|
|
465
215
|
};
|
|
466
216
|
return response;
|
|
467
217
|
};
|
|
468
|
-
const de_DescribeEndpointsCommandError = async (output, context) => {
|
|
469
|
-
const parsedOutput = {
|
|
470
|
-
...output,
|
|
471
|
-
body: await parseErrorBody(output.body, context),
|
|
472
|
-
};
|
|
473
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
474
|
-
switch (errorCode) {
|
|
475
|
-
case "InternalServerException":
|
|
476
|
-
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
477
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
478
|
-
case "ThrottlingException":
|
|
479
|
-
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
480
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
481
|
-
case "ValidationException":
|
|
482
|
-
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
483
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
484
|
-
default:
|
|
485
|
-
const parsedBody = parsedOutput.body;
|
|
486
|
-
return throwDefaultError({
|
|
487
|
-
output,
|
|
488
|
-
parsedBody,
|
|
489
|
-
errorCode,
|
|
490
|
-
});
|
|
491
|
-
}
|
|
492
|
-
};
|
|
493
218
|
export const de_DescribeTableCommand = async (output, context) => {
|
|
494
219
|
if (output.statusCode >= 300) {
|
|
495
|
-
return
|
|
220
|
+
return de_CommandError(output, context);
|
|
496
221
|
}
|
|
497
222
|
const data = await parseBody(output.body, context);
|
|
498
223
|
let contents = {};
|
|
@@ -503,178 +228,48 @@ export const de_DescribeTableCommand = async (output, context) => {
|
|
|
503
228
|
};
|
|
504
229
|
return response;
|
|
505
230
|
};
|
|
506
|
-
const
|
|
507
|
-
const parsedOutput = {
|
|
508
|
-
...output,
|
|
509
|
-
body: await parseErrorBody(output.body, context),
|
|
510
|
-
};
|
|
511
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
512
|
-
switch (errorCode) {
|
|
513
|
-
case "AccessDeniedException":
|
|
514
|
-
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
515
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
516
|
-
case "InternalServerException":
|
|
517
|
-
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
518
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
519
|
-
case "InvalidEndpointException":
|
|
520
|
-
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
521
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
522
|
-
case "ResourceNotFoundException":
|
|
523
|
-
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
524
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
525
|
-
case "ThrottlingException":
|
|
526
|
-
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
527
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
528
|
-
case "ValidationException":
|
|
529
|
-
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
530
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
531
|
-
default:
|
|
532
|
-
const parsedBody = parsedOutput.body;
|
|
533
|
-
return throwDefaultError({
|
|
534
|
-
output,
|
|
535
|
-
parsedBody,
|
|
536
|
-
errorCode,
|
|
537
|
-
});
|
|
538
|
-
}
|
|
539
|
-
};
|
|
540
|
-
export const de_ListBatchLoadTasksCommand = async (output, context) => {
|
|
541
|
-
if (output.statusCode >= 300) {
|
|
542
|
-
return de_ListBatchLoadTasksCommandError(output, context);
|
|
543
|
-
}
|
|
544
|
-
const data = await parseBody(output.body, context);
|
|
545
|
-
let contents = {};
|
|
546
|
-
contents = de_ListBatchLoadTasksResponse(data, context);
|
|
547
|
-
const response = {
|
|
548
|
-
$metadata: deserializeMetadata(output),
|
|
549
|
-
...contents,
|
|
550
|
-
};
|
|
551
|
-
return response;
|
|
552
|
-
};
|
|
553
|
-
const de_ListBatchLoadTasksCommandError = async (output, context) => {
|
|
554
|
-
const parsedOutput = {
|
|
555
|
-
...output,
|
|
556
|
-
body: await parseErrorBody(output.body, context),
|
|
557
|
-
};
|
|
558
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
559
|
-
switch (errorCode) {
|
|
560
|
-
case "AccessDeniedException":
|
|
561
|
-
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
562
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
563
|
-
case "InternalServerException":
|
|
564
|
-
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
565
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
566
|
-
case "InvalidEndpointException":
|
|
567
|
-
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
568
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
569
|
-
case "ThrottlingException":
|
|
570
|
-
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
571
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
572
|
-
case "ValidationException":
|
|
573
|
-
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
574
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
575
|
-
default:
|
|
576
|
-
const parsedBody = parsedOutput.body;
|
|
577
|
-
return throwDefaultError({
|
|
578
|
-
output,
|
|
579
|
-
parsedBody,
|
|
580
|
-
errorCode,
|
|
581
|
-
});
|
|
582
|
-
}
|
|
583
|
-
};
|
|
584
|
-
export const de_ListDatabasesCommand = async (output, context) => {
|
|
585
|
-
if (output.statusCode >= 300) {
|
|
586
|
-
return de_ListDatabasesCommandError(output, context);
|
|
587
|
-
}
|
|
588
|
-
const data = await parseBody(output.body, context);
|
|
589
|
-
let contents = {};
|
|
590
|
-
contents = de_ListDatabasesResponse(data, context);
|
|
591
|
-
const response = {
|
|
592
|
-
$metadata: deserializeMetadata(output),
|
|
593
|
-
...contents,
|
|
594
|
-
};
|
|
595
|
-
return response;
|
|
596
|
-
};
|
|
597
|
-
const de_ListDatabasesCommandError = async (output, context) => {
|
|
598
|
-
const parsedOutput = {
|
|
599
|
-
...output,
|
|
600
|
-
body: await parseErrorBody(output.body, context),
|
|
601
|
-
};
|
|
602
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
603
|
-
switch (errorCode) {
|
|
604
|
-
case "AccessDeniedException":
|
|
605
|
-
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
606
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
607
|
-
case "InternalServerException":
|
|
608
|
-
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
609
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
610
|
-
case "InvalidEndpointException":
|
|
611
|
-
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
612
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
613
|
-
case "ThrottlingException":
|
|
614
|
-
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
615
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
616
|
-
case "ValidationException":
|
|
617
|
-
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
618
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
619
|
-
default:
|
|
620
|
-
const parsedBody = parsedOutput.body;
|
|
621
|
-
return throwDefaultError({
|
|
622
|
-
output,
|
|
623
|
-
parsedBody,
|
|
624
|
-
errorCode,
|
|
625
|
-
});
|
|
626
|
-
}
|
|
627
|
-
};
|
|
628
|
-
export const de_ListTablesCommand = async (output, context) => {
|
|
231
|
+
export const de_ListBatchLoadTasksCommand = async (output, context) => {
|
|
629
232
|
if (output.statusCode >= 300) {
|
|
630
|
-
return
|
|
233
|
+
return de_CommandError(output, context);
|
|
631
234
|
}
|
|
632
235
|
const data = await parseBody(output.body, context);
|
|
633
236
|
let contents = {};
|
|
634
|
-
contents =
|
|
237
|
+
contents = de_ListBatchLoadTasksResponse(data, context);
|
|
635
238
|
const response = {
|
|
636
239
|
$metadata: deserializeMetadata(output),
|
|
637
240
|
...contents,
|
|
638
241
|
};
|
|
639
242
|
return response;
|
|
640
243
|
};
|
|
641
|
-
const
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
244
|
+
export const de_ListDatabasesCommand = async (output, context) => {
|
|
245
|
+
if (output.statusCode >= 300) {
|
|
246
|
+
return de_CommandError(output, context);
|
|
247
|
+
}
|
|
248
|
+
const data = await parseBody(output.body, context);
|
|
249
|
+
let contents = {};
|
|
250
|
+
contents = de_ListDatabasesResponse(data, context);
|
|
251
|
+
const response = {
|
|
252
|
+
$metadata: deserializeMetadata(output),
|
|
253
|
+
...contents,
|
|
645
254
|
};
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
case "InternalServerException":
|
|
652
|
-
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
653
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
654
|
-
case "InvalidEndpointException":
|
|
655
|
-
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
656
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
657
|
-
case "ResourceNotFoundException":
|
|
658
|
-
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
659
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
660
|
-
case "ThrottlingException":
|
|
661
|
-
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
662
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
663
|
-
case "ValidationException":
|
|
664
|
-
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
665
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
666
|
-
default:
|
|
667
|
-
const parsedBody = parsedOutput.body;
|
|
668
|
-
return throwDefaultError({
|
|
669
|
-
output,
|
|
670
|
-
parsedBody,
|
|
671
|
-
errorCode,
|
|
672
|
-
});
|
|
255
|
+
return response;
|
|
256
|
+
};
|
|
257
|
+
export const de_ListTablesCommand = async (output, context) => {
|
|
258
|
+
if (output.statusCode >= 300) {
|
|
259
|
+
return de_CommandError(output, context);
|
|
673
260
|
}
|
|
261
|
+
const data = await parseBody(output.body, context);
|
|
262
|
+
let contents = {};
|
|
263
|
+
contents = de_ListTablesResponse(data, context);
|
|
264
|
+
const response = {
|
|
265
|
+
$metadata: deserializeMetadata(output),
|
|
266
|
+
...contents,
|
|
267
|
+
};
|
|
268
|
+
return response;
|
|
674
269
|
};
|
|
675
270
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
676
271
|
if (output.statusCode >= 300) {
|
|
677
|
-
return
|
|
272
|
+
return de_CommandError(output, context);
|
|
678
273
|
}
|
|
679
274
|
const data = await parseBody(output.body, context);
|
|
680
275
|
let contents = {};
|
|
@@ -685,37 +280,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
685
280
|
};
|
|
686
281
|
return response;
|
|
687
282
|
};
|
|
688
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
689
|
-
const parsedOutput = {
|
|
690
|
-
...output,
|
|
691
|
-
body: await parseErrorBody(output.body, context),
|
|
692
|
-
};
|
|
693
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
694
|
-
switch (errorCode) {
|
|
695
|
-
case "InvalidEndpointException":
|
|
696
|
-
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
697
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
698
|
-
case "ResourceNotFoundException":
|
|
699
|
-
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
700
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
701
|
-
case "ThrottlingException":
|
|
702
|
-
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
703
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
704
|
-
case "ValidationException":
|
|
705
|
-
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
706
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
707
|
-
default:
|
|
708
|
-
const parsedBody = parsedOutput.body;
|
|
709
|
-
return throwDefaultError({
|
|
710
|
-
output,
|
|
711
|
-
parsedBody,
|
|
712
|
-
errorCode,
|
|
713
|
-
});
|
|
714
|
-
}
|
|
715
|
-
};
|
|
716
283
|
export const de_ResumeBatchLoadTaskCommand = async (output, context) => {
|
|
717
284
|
if (output.statusCode >= 300) {
|
|
718
|
-
return
|
|
285
|
+
return de_CommandError(output, context);
|
|
719
286
|
}
|
|
720
287
|
const data = await parseBody(output.body, context);
|
|
721
288
|
let contents = {};
|
|
@@ -726,43 +293,9 @@ export const de_ResumeBatchLoadTaskCommand = async (output, context) => {
|
|
|
726
293
|
};
|
|
727
294
|
return response;
|
|
728
295
|
};
|
|
729
|
-
const de_ResumeBatchLoadTaskCommandError = async (output, context) => {
|
|
730
|
-
const parsedOutput = {
|
|
731
|
-
...output,
|
|
732
|
-
body: await parseErrorBody(output.body, context),
|
|
733
|
-
};
|
|
734
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
735
|
-
switch (errorCode) {
|
|
736
|
-
case "AccessDeniedException":
|
|
737
|
-
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
738
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
739
|
-
case "InternalServerException":
|
|
740
|
-
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
741
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
742
|
-
case "InvalidEndpointException":
|
|
743
|
-
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
744
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
745
|
-
case "ResourceNotFoundException":
|
|
746
|
-
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
747
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
748
|
-
case "ThrottlingException":
|
|
749
|
-
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
750
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
751
|
-
case "ValidationException":
|
|
752
|
-
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
753
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
754
|
-
default:
|
|
755
|
-
const parsedBody = parsedOutput.body;
|
|
756
|
-
return throwDefaultError({
|
|
757
|
-
output,
|
|
758
|
-
parsedBody,
|
|
759
|
-
errorCode,
|
|
760
|
-
});
|
|
761
|
-
}
|
|
762
|
-
};
|
|
763
296
|
export const de_TagResourceCommand = async (output, context) => {
|
|
764
297
|
if (output.statusCode >= 300) {
|
|
765
|
-
return
|
|
298
|
+
return de_CommandError(output, context);
|
|
766
299
|
}
|
|
767
300
|
const data = await parseBody(output.body, context);
|
|
768
301
|
let contents = {};
|
|
@@ -773,40 +306,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
773
306
|
};
|
|
774
307
|
return response;
|
|
775
308
|
};
|
|
776
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
777
|
-
const parsedOutput = {
|
|
778
|
-
...output,
|
|
779
|
-
body: await parseErrorBody(output.body, context),
|
|
780
|
-
};
|
|
781
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
782
|
-
switch (errorCode) {
|
|
783
|
-
case "InvalidEndpointException":
|
|
784
|
-
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
785
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
786
|
-
case "ResourceNotFoundException":
|
|
787
|
-
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
788
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
789
|
-
case "ServiceQuotaExceededException":
|
|
790
|
-
case "com.amazonaws.timestreamwrite#ServiceQuotaExceededException":
|
|
791
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
792
|
-
case "ThrottlingException":
|
|
793
|
-
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
794
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
795
|
-
case "ValidationException":
|
|
796
|
-
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
797
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
798
|
-
default:
|
|
799
|
-
const parsedBody = parsedOutput.body;
|
|
800
|
-
return throwDefaultError({
|
|
801
|
-
output,
|
|
802
|
-
parsedBody,
|
|
803
|
-
errorCode,
|
|
804
|
-
});
|
|
805
|
-
}
|
|
806
|
-
};
|
|
807
309
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
808
310
|
if (output.statusCode >= 300) {
|
|
809
|
-
return
|
|
311
|
+
return de_CommandError(output, context);
|
|
810
312
|
}
|
|
811
313
|
const data = await parseBody(output.body, context);
|
|
812
314
|
let contents = {};
|
|
@@ -817,40 +319,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
817
319
|
};
|
|
818
320
|
return response;
|
|
819
321
|
};
|
|
820
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
821
|
-
const parsedOutput = {
|
|
822
|
-
...output,
|
|
823
|
-
body: await parseErrorBody(output.body, context),
|
|
824
|
-
};
|
|
825
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
826
|
-
switch (errorCode) {
|
|
827
|
-
case "InvalidEndpointException":
|
|
828
|
-
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
829
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
830
|
-
case "ResourceNotFoundException":
|
|
831
|
-
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
832
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
833
|
-
case "ServiceQuotaExceededException":
|
|
834
|
-
case "com.amazonaws.timestreamwrite#ServiceQuotaExceededException":
|
|
835
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
836
|
-
case "ThrottlingException":
|
|
837
|
-
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
838
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
839
|
-
case "ValidationException":
|
|
840
|
-
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
841
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
842
|
-
default:
|
|
843
|
-
const parsedBody = parsedOutput.body;
|
|
844
|
-
return throwDefaultError({
|
|
845
|
-
output,
|
|
846
|
-
parsedBody,
|
|
847
|
-
errorCode,
|
|
848
|
-
});
|
|
849
|
-
}
|
|
850
|
-
};
|
|
851
322
|
export const de_UpdateDatabaseCommand = async (output, context) => {
|
|
852
323
|
if (output.statusCode >= 300) {
|
|
853
|
-
return
|
|
324
|
+
return de_CommandError(output, context);
|
|
854
325
|
}
|
|
855
326
|
const data = await parseBody(output.body, context);
|
|
856
327
|
let contents = {};
|
|
@@ -861,46 +332,9 @@ export const de_UpdateDatabaseCommand = async (output, context) => {
|
|
|
861
332
|
};
|
|
862
333
|
return response;
|
|
863
334
|
};
|
|
864
|
-
const de_UpdateDatabaseCommandError = async (output, context) => {
|
|
865
|
-
const parsedOutput = {
|
|
866
|
-
...output,
|
|
867
|
-
body: await parseErrorBody(output.body, context),
|
|
868
|
-
};
|
|
869
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
870
|
-
switch (errorCode) {
|
|
871
|
-
case "AccessDeniedException":
|
|
872
|
-
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
873
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
874
|
-
case "InternalServerException":
|
|
875
|
-
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
876
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
877
|
-
case "InvalidEndpointException":
|
|
878
|
-
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
879
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
880
|
-
case "ResourceNotFoundException":
|
|
881
|
-
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
882
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
883
|
-
case "ServiceQuotaExceededException":
|
|
884
|
-
case "com.amazonaws.timestreamwrite#ServiceQuotaExceededException":
|
|
885
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
886
|
-
case "ThrottlingException":
|
|
887
|
-
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
888
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
889
|
-
case "ValidationException":
|
|
890
|
-
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
891
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
892
|
-
default:
|
|
893
|
-
const parsedBody = parsedOutput.body;
|
|
894
|
-
return throwDefaultError({
|
|
895
|
-
output,
|
|
896
|
-
parsedBody,
|
|
897
|
-
errorCode,
|
|
898
|
-
});
|
|
899
|
-
}
|
|
900
|
-
};
|
|
901
335
|
export const de_UpdateTableCommand = async (output, context) => {
|
|
902
336
|
if (output.statusCode >= 300) {
|
|
903
|
-
return
|
|
337
|
+
return de_CommandError(output, context);
|
|
904
338
|
}
|
|
905
339
|
const data = await parseBody(output.body, context);
|
|
906
340
|
let contents = {};
|
|
@@ -911,43 +345,9 @@ export const de_UpdateTableCommand = async (output, context) => {
|
|
|
911
345
|
};
|
|
912
346
|
return response;
|
|
913
347
|
};
|
|
914
|
-
const de_UpdateTableCommandError = async (output, context) => {
|
|
915
|
-
const parsedOutput = {
|
|
916
|
-
...output,
|
|
917
|
-
body: await parseErrorBody(output.body, context),
|
|
918
|
-
};
|
|
919
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
920
|
-
switch (errorCode) {
|
|
921
|
-
case "AccessDeniedException":
|
|
922
|
-
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
923
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
924
|
-
case "InternalServerException":
|
|
925
|
-
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
926
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
927
|
-
case "InvalidEndpointException":
|
|
928
|
-
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
929
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
930
|
-
case "ResourceNotFoundException":
|
|
931
|
-
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
932
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
933
|
-
case "ThrottlingException":
|
|
934
|
-
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
935
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
936
|
-
case "ValidationException":
|
|
937
|
-
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
938
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
939
|
-
default:
|
|
940
|
-
const parsedBody = parsedOutput.body;
|
|
941
|
-
return throwDefaultError({
|
|
942
|
-
output,
|
|
943
|
-
parsedBody,
|
|
944
|
-
errorCode,
|
|
945
|
-
});
|
|
946
|
-
}
|
|
947
|
-
};
|
|
948
348
|
export const de_WriteRecordsCommand = async (output, context) => {
|
|
949
349
|
if (output.statusCode >= 300) {
|
|
950
|
-
return
|
|
350
|
+
return de_CommandError(output, context);
|
|
951
351
|
}
|
|
952
352
|
const data = await parseBody(output.body, context);
|
|
953
353
|
let contents = {};
|
|
@@ -958,7 +358,7 @@ export const de_WriteRecordsCommand = async (output, context) => {
|
|
|
958
358
|
};
|
|
959
359
|
return response;
|
|
960
360
|
};
|
|
961
|
-
const
|
|
361
|
+
const de_CommandError = async (output, context) => {
|
|
962
362
|
const parsedOutput = {
|
|
963
363
|
...output,
|
|
964
364
|
body: await parseErrorBody(output.body, context),
|
|
@@ -968,24 +368,30 @@ const de_WriteRecordsCommandError = async (output, context) => {
|
|
|
968
368
|
case "AccessDeniedException":
|
|
969
369
|
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
970
370
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
371
|
+
case "ConflictException":
|
|
372
|
+
case "com.amazonaws.timestreamwrite#ConflictException":
|
|
373
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
971
374
|
case "InternalServerException":
|
|
972
375
|
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
973
376
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
974
377
|
case "InvalidEndpointException":
|
|
975
378
|
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
976
379
|
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
977
|
-
case "RejectedRecordsException":
|
|
978
|
-
case "com.amazonaws.timestreamwrite#RejectedRecordsException":
|
|
979
|
-
throw await de_RejectedRecordsExceptionRes(parsedOutput, context);
|
|
980
380
|
case "ResourceNotFoundException":
|
|
981
381
|
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
982
382
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
383
|
+
case "ServiceQuotaExceededException":
|
|
384
|
+
case "com.amazonaws.timestreamwrite#ServiceQuotaExceededException":
|
|
385
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
983
386
|
case "ThrottlingException":
|
|
984
387
|
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
985
388
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
986
389
|
case "ValidationException":
|
|
987
390
|
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
988
391
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
392
|
+
case "RejectedRecordsException":
|
|
393
|
+
case "com.amazonaws.timestreamwrite#RejectedRecordsException":
|
|
394
|
+
throw await de_RejectedRecordsExceptionRes(parsedOutput, context);
|
|
989
395
|
default:
|
|
990
396
|
const parsedBody = parsedOutput.body;
|
|
991
397
|
return throwDefaultError({
|