@aws-sdk/client-kinesis 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 +67 -1019
- package/dist-es/protocols/Aws_json1_1.js +96 -1048
- package/package.json +3 -3
|
@@ -196,7 +196,7 @@ export const se_UpdateStreamModeCommand = async (input, context) => {
|
|
|
196
196
|
};
|
|
197
197
|
export const de_AddTagsToStreamCommand = async (output, context) => {
|
|
198
198
|
if (output.statusCode >= 300) {
|
|
199
|
-
return
|
|
199
|
+
return de_CommandError(output, context);
|
|
200
200
|
}
|
|
201
201
|
await collectBody(output.body, context);
|
|
202
202
|
const response = {
|
|
@@ -204,40 +204,9 @@ export const de_AddTagsToStreamCommand = async (output, context) => {
|
|
|
204
204
|
};
|
|
205
205
|
return response;
|
|
206
206
|
};
|
|
207
|
-
const de_AddTagsToStreamCommandError = async (output, context) => {
|
|
208
|
-
const parsedOutput = {
|
|
209
|
-
...output,
|
|
210
|
-
body: await parseErrorBody(output.body, context),
|
|
211
|
-
};
|
|
212
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
213
|
-
switch (errorCode) {
|
|
214
|
-
case "AccessDeniedException":
|
|
215
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
216
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
217
|
-
case "InvalidArgumentException":
|
|
218
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
219
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
220
|
-
case "LimitExceededException":
|
|
221
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
222
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
223
|
-
case "ResourceInUseException":
|
|
224
|
-
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
225
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
226
|
-
case "ResourceNotFoundException":
|
|
227
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
228
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
229
|
-
default:
|
|
230
|
-
const parsedBody = parsedOutput.body;
|
|
231
|
-
return throwDefaultError({
|
|
232
|
-
output,
|
|
233
|
-
parsedBody,
|
|
234
|
-
errorCode,
|
|
235
|
-
});
|
|
236
|
-
}
|
|
237
|
-
};
|
|
238
207
|
export const de_CreateStreamCommand = async (output, context) => {
|
|
239
208
|
if (output.statusCode >= 300) {
|
|
240
|
-
return
|
|
209
|
+
return de_CommandError(output, context);
|
|
241
210
|
}
|
|
242
211
|
await collectBody(output.body, context);
|
|
243
212
|
const response = {
|
|
@@ -245,34 +214,9 @@ export const de_CreateStreamCommand = async (output, context) => {
|
|
|
245
214
|
};
|
|
246
215
|
return response;
|
|
247
216
|
};
|
|
248
|
-
const de_CreateStreamCommandError = async (output, context) => {
|
|
249
|
-
const parsedOutput = {
|
|
250
|
-
...output,
|
|
251
|
-
body: await parseErrorBody(output.body, context),
|
|
252
|
-
};
|
|
253
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
254
|
-
switch (errorCode) {
|
|
255
|
-
case "InvalidArgumentException":
|
|
256
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
257
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
258
|
-
case "LimitExceededException":
|
|
259
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
260
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
261
|
-
case "ResourceInUseException":
|
|
262
|
-
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
263
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
264
|
-
default:
|
|
265
|
-
const parsedBody = parsedOutput.body;
|
|
266
|
-
return throwDefaultError({
|
|
267
|
-
output,
|
|
268
|
-
parsedBody,
|
|
269
|
-
errorCode,
|
|
270
|
-
});
|
|
271
|
-
}
|
|
272
|
-
};
|
|
273
217
|
export const de_DecreaseStreamRetentionPeriodCommand = async (output, context) => {
|
|
274
218
|
if (output.statusCode >= 300) {
|
|
275
|
-
return
|
|
219
|
+
return de_CommandError(output, context);
|
|
276
220
|
}
|
|
277
221
|
await collectBody(output.body, context);
|
|
278
222
|
const response = {
|
|
@@ -280,40 +224,9 @@ export const de_DecreaseStreamRetentionPeriodCommand = async (output, context) =
|
|
|
280
224
|
};
|
|
281
225
|
return response;
|
|
282
226
|
};
|
|
283
|
-
const de_DecreaseStreamRetentionPeriodCommandError = async (output, context) => {
|
|
284
|
-
const parsedOutput = {
|
|
285
|
-
...output,
|
|
286
|
-
body: await parseErrorBody(output.body, context),
|
|
287
|
-
};
|
|
288
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
289
|
-
switch (errorCode) {
|
|
290
|
-
case "AccessDeniedException":
|
|
291
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
292
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
293
|
-
case "InvalidArgumentException":
|
|
294
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
295
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
296
|
-
case "LimitExceededException":
|
|
297
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
298
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
299
|
-
case "ResourceInUseException":
|
|
300
|
-
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
301
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
302
|
-
case "ResourceNotFoundException":
|
|
303
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
304
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
305
|
-
default:
|
|
306
|
-
const parsedBody = parsedOutput.body;
|
|
307
|
-
return throwDefaultError({
|
|
308
|
-
output,
|
|
309
|
-
parsedBody,
|
|
310
|
-
errorCode,
|
|
311
|
-
});
|
|
312
|
-
}
|
|
313
|
-
};
|
|
314
227
|
export const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
315
228
|
if (output.statusCode >= 300) {
|
|
316
|
-
return
|
|
229
|
+
return de_CommandError(output, context);
|
|
317
230
|
}
|
|
318
231
|
await collectBody(output.body, context);
|
|
319
232
|
const response = {
|
|
@@ -321,40 +234,9 @@ export const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
|
321
234
|
};
|
|
322
235
|
return response;
|
|
323
236
|
};
|
|
324
|
-
const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
325
|
-
const parsedOutput = {
|
|
326
|
-
...output,
|
|
327
|
-
body: await parseErrorBody(output.body, context),
|
|
328
|
-
};
|
|
329
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
330
|
-
switch (errorCode) {
|
|
331
|
-
case "AccessDeniedException":
|
|
332
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
333
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
334
|
-
case "InvalidArgumentException":
|
|
335
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
336
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
337
|
-
case "LimitExceededException":
|
|
338
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
339
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
340
|
-
case "ResourceInUseException":
|
|
341
|
-
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
342
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
343
|
-
case "ResourceNotFoundException":
|
|
344
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
345
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
346
|
-
default:
|
|
347
|
-
const parsedBody = parsedOutput.body;
|
|
348
|
-
return throwDefaultError({
|
|
349
|
-
output,
|
|
350
|
-
parsedBody,
|
|
351
|
-
errorCode,
|
|
352
|
-
});
|
|
353
|
-
}
|
|
354
|
-
};
|
|
355
237
|
export const de_DeleteStreamCommand = async (output, context) => {
|
|
356
238
|
if (output.statusCode >= 300) {
|
|
357
|
-
return
|
|
239
|
+
return de_CommandError(output, context);
|
|
358
240
|
}
|
|
359
241
|
await collectBody(output.body, context);
|
|
360
242
|
const response = {
|
|
@@ -362,40 +244,9 @@ export const de_DeleteStreamCommand = async (output, context) => {
|
|
|
362
244
|
};
|
|
363
245
|
return response;
|
|
364
246
|
};
|
|
365
|
-
const de_DeleteStreamCommandError = async (output, context) => {
|
|
366
|
-
const parsedOutput = {
|
|
367
|
-
...output,
|
|
368
|
-
body: await parseErrorBody(output.body, context),
|
|
369
|
-
};
|
|
370
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
371
|
-
switch (errorCode) {
|
|
372
|
-
case "AccessDeniedException":
|
|
373
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
374
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
375
|
-
case "InvalidArgumentException":
|
|
376
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
377
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
378
|
-
case "LimitExceededException":
|
|
379
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
380
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
381
|
-
case "ResourceInUseException":
|
|
382
|
-
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
383
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
384
|
-
case "ResourceNotFoundException":
|
|
385
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
386
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
387
|
-
default:
|
|
388
|
-
const parsedBody = parsedOutput.body;
|
|
389
|
-
return throwDefaultError({
|
|
390
|
-
output,
|
|
391
|
-
parsedBody,
|
|
392
|
-
errorCode,
|
|
393
|
-
});
|
|
394
|
-
}
|
|
395
|
-
};
|
|
396
247
|
export const de_DeregisterStreamConsumerCommand = async (output, context) => {
|
|
397
248
|
if (output.statusCode >= 300) {
|
|
398
|
-
return
|
|
249
|
+
return de_CommandError(output, context);
|
|
399
250
|
}
|
|
400
251
|
await collectBody(output.body, context);
|
|
401
252
|
const response = {
|
|
@@ -403,34 +254,9 @@ export const de_DeregisterStreamConsumerCommand = async (output, context) => {
|
|
|
403
254
|
};
|
|
404
255
|
return response;
|
|
405
256
|
};
|
|
406
|
-
const de_DeregisterStreamConsumerCommandError = async (output, context) => {
|
|
407
|
-
const parsedOutput = {
|
|
408
|
-
...output,
|
|
409
|
-
body: await parseErrorBody(output.body, context),
|
|
410
|
-
};
|
|
411
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
412
|
-
switch (errorCode) {
|
|
413
|
-
case "InvalidArgumentException":
|
|
414
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
415
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
416
|
-
case "LimitExceededException":
|
|
417
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
418
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
419
|
-
case "ResourceNotFoundException":
|
|
420
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
421
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
422
|
-
default:
|
|
423
|
-
const parsedBody = parsedOutput.body;
|
|
424
|
-
return throwDefaultError({
|
|
425
|
-
output,
|
|
426
|
-
parsedBody,
|
|
427
|
-
errorCode,
|
|
428
|
-
});
|
|
429
|
-
}
|
|
430
|
-
};
|
|
431
257
|
export const de_DescribeLimitsCommand = async (output, context) => {
|
|
432
258
|
if (output.statusCode >= 300) {
|
|
433
|
-
return
|
|
259
|
+
return de_CommandError(output, context);
|
|
434
260
|
}
|
|
435
261
|
const data = await parseBody(output.body, context);
|
|
436
262
|
let contents = {};
|
|
@@ -441,28 +267,9 @@ export const de_DescribeLimitsCommand = async (output, context) => {
|
|
|
441
267
|
};
|
|
442
268
|
return response;
|
|
443
269
|
};
|
|
444
|
-
const de_DescribeLimitsCommandError = async (output, context) => {
|
|
445
|
-
const parsedOutput = {
|
|
446
|
-
...output,
|
|
447
|
-
body: await parseErrorBody(output.body, context),
|
|
448
|
-
};
|
|
449
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
450
|
-
switch (errorCode) {
|
|
451
|
-
case "LimitExceededException":
|
|
452
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
453
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
454
|
-
default:
|
|
455
|
-
const parsedBody = parsedOutput.body;
|
|
456
|
-
return throwDefaultError({
|
|
457
|
-
output,
|
|
458
|
-
parsedBody,
|
|
459
|
-
errorCode,
|
|
460
|
-
});
|
|
461
|
-
}
|
|
462
|
-
};
|
|
463
270
|
export const de_DescribeStreamCommand = async (output, context) => {
|
|
464
271
|
if (output.statusCode >= 300) {
|
|
465
|
-
return
|
|
272
|
+
return de_CommandError(output, context);
|
|
466
273
|
}
|
|
467
274
|
const data = await parseBody(output.body, context);
|
|
468
275
|
let contents = {};
|
|
@@ -473,37 +280,9 @@ export const de_DescribeStreamCommand = async (output, context) => {
|
|
|
473
280
|
};
|
|
474
281
|
return response;
|
|
475
282
|
};
|
|
476
|
-
const de_DescribeStreamCommandError = async (output, context) => {
|
|
477
|
-
const parsedOutput = {
|
|
478
|
-
...output,
|
|
479
|
-
body: await parseErrorBody(output.body, context),
|
|
480
|
-
};
|
|
481
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
482
|
-
switch (errorCode) {
|
|
483
|
-
case "AccessDeniedException":
|
|
484
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
485
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
486
|
-
case "InvalidArgumentException":
|
|
487
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
488
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
489
|
-
case "LimitExceededException":
|
|
490
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
491
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
492
|
-
case "ResourceNotFoundException":
|
|
493
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
494
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
495
|
-
default:
|
|
496
|
-
const parsedBody = parsedOutput.body;
|
|
497
|
-
return throwDefaultError({
|
|
498
|
-
output,
|
|
499
|
-
parsedBody,
|
|
500
|
-
errorCode,
|
|
501
|
-
});
|
|
502
|
-
}
|
|
503
|
-
};
|
|
504
283
|
export const de_DescribeStreamConsumerCommand = async (output, context) => {
|
|
505
284
|
if (output.statusCode >= 300) {
|
|
506
|
-
return
|
|
285
|
+
return de_CommandError(output, context);
|
|
507
286
|
}
|
|
508
287
|
const data = await parseBody(output.body, context);
|
|
509
288
|
let contents = {};
|
|
@@ -514,34 +293,9 @@ export const de_DescribeStreamConsumerCommand = async (output, context) => {
|
|
|
514
293
|
};
|
|
515
294
|
return response;
|
|
516
295
|
};
|
|
517
|
-
const de_DescribeStreamConsumerCommandError = async (output, context) => {
|
|
518
|
-
const parsedOutput = {
|
|
519
|
-
...output,
|
|
520
|
-
body: await parseErrorBody(output.body, context),
|
|
521
|
-
};
|
|
522
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
523
|
-
switch (errorCode) {
|
|
524
|
-
case "InvalidArgumentException":
|
|
525
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
526
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
527
|
-
case "LimitExceededException":
|
|
528
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
529
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
530
|
-
case "ResourceNotFoundException":
|
|
531
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
532
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
533
|
-
default:
|
|
534
|
-
const parsedBody = parsedOutput.body;
|
|
535
|
-
return throwDefaultError({
|
|
536
|
-
output,
|
|
537
|
-
parsedBody,
|
|
538
|
-
errorCode,
|
|
539
|
-
});
|
|
540
|
-
}
|
|
541
|
-
};
|
|
542
296
|
export const de_DescribeStreamSummaryCommand = async (output, context) => {
|
|
543
297
|
if (output.statusCode >= 300) {
|
|
544
|
-
return
|
|
298
|
+
return de_CommandError(output, context);
|
|
545
299
|
}
|
|
546
300
|
const data = await parseBody(output.body, context);
|
|
547
301
|
let contents = {};
|
|
@@ -552,81 +306,22 @@ export const de_DescribeStreamSummaryCommand = async (output, context) => {
|
|
|
552
306
|
};
|
|
553
307
|
return response;
|
|
554
308
|
};
|
|
555
|
-
const
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
case "InvalidArgumentException":
|
|
566
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
567
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
568
|
-
case "LimitExceededException":
|
|
569
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
570
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
571
|
-
case "ResourceNotFoundException":
|
|
572
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
573
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
574
|
-
default:
|
|
575
|
-
const parsedBody = parsedOutput.body;
|
|
576
|
-
return throwDefaultError({
|
|
577
|
-
output,
|
|
578
|
-
parsedBody,
|
|
579
|
-
errorCode,
|
|
580
|
-
});
|
|
581
|
-
}
|
|
582
|
-
};
|
|
583
|
-
export const de_DisableEnhancedMonitoringCommand = async (output, context) => {
|
|
584
|
-
if (output.statusCode >= 300) {
|
|
585
|
-
return de_DisableEnhancedMonitoringCommandError(output, context);
|
|
586
|
-
}
|
|
587
|
-
const data = await parseBody(output.body, context);
|
|
588
|
-
let contents = {};
|
|
589
|
-
contents = _json(data);
|
|
590
|
-
const response = {
|
|
591
|
-
$metadata: deserializeMetadata(output),
|
|
592
|
-
...contents,
|
|
309
|
+
export const de_DisableEnhancedMonitoringCommand = async (output, context) => {
|
|
310
|
+
if (output.statusCode >= 300) {
|
|
311
|
+
return de_CommandError(output, context);
|
|
312
|
+
}
|
|
313
|
+
const data = await parseBody(output.body, context);
|
|
314
|
+
let contents = {};
|
|
315
|
+
contents = _json(data);
|
|
316
|
+
const response = {
|
|
317
|
+
$metadata: deserializeMetadata(output),
|
|
318
|
+
...contents,
|
|
593
319
|
};
|
|
594
320
|
return response;
|
|
595
321
|
};
|
|
596
|
-
const de_DisableEnhancedMonitoringCommandError = async (output, context) => {
|
|
597
|
-
const parsedOutput = {
|
|
598
|
-
...output,
|
|
599
|
-
body: await parseErrorBody(output.body, context),
|
|
600
|
-
};
|
|
601
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
602
|
-
switch (errorCode) {
|
|
603
|
-
case "AccessDeniedException":
|
|
604
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
605
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
606
|
-
case "InvalidArgumentException":
|
|
607
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
608
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
609
|
-
case "LimitExceededException":
|
|
610
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
611
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
612
|
-
case "ResourceInUseException":
|
|
613
|
-
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
614
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
615
|
-
case "ResourceNotFoundException":
|
|
616
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
617
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
618
|
-
default:
|
|
619
|
-
const parsedBody = parsedOutput.body;
|
|
620
|
-
return throwDefaultError({
|
|
621
|
-
output,
|
|
622
|
-
parsedBody,
|
|
623
|
-
errorCode,
|
|
624
|
-
});
|
|
625
|
-
}
|
|
626
|
-
};
|
|
627
322
|
export const de_EnableEnhancedMonitoringCommand = async (output, context) => {
|
|
628
323
|
if (output.statusCode >= 300) {
|
|
629
|
-
return
|
|
324
|
+
return de_CommandError(output, context);
|
|
630
325
|
}
|
|
631
326
|
const data = await parseBody(output.body, context);
|
|
632
327
|
let contents = {};
|
|
@@ -637,40 +332,9 @@ export const de_EnableEnhancedMonitoringCommand = async (output, context) => {
|
|
|
637
332
|
};
|
|
638
333
|
return response;
|
|
639
334
|
};
|
|
640
|
-
const de_EnableEnhancedMonitoringCommandError = async (output, context) => {
|
|
641
|
-
const parsedOutput = {
|
|
642
|
-
...output,
|
|
643
|
-
body: await parseErrorBody(output.body, context),
|
|
644
|
-
};
|
|
645
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
646
|
-
switch (errorCode) {
|
|
647
|
-
case "AccessDeniedException":
|
|
648
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
649
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
650
|
-
case "InvalidArgumentException":
|
|
651
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
652
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
653
|
-
case "LimitExceededException":
|
|
654
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
655
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
656
|
-
case "ResourceInUseException":
|
|
657
|
-
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
658
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
659
|
-
case "ResourceNotFoundException":
|
|
660
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
661
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
662
|
-
default:
|
|
663
|
-
const parsedBody = parsedOutput.body;
|
|
664
|
-
return throwDefaultError({
|
|
665
|
-
output,
|
|
666
|
-
parsedBody,
|
|
667
|
-
errorCode,
|
|
668
|
-
});
|
|
669
|
-
}
|
|
670
|
-
};
|
|
671
335
|
export const de_GetRecordsCommand = async (output, context) => {
|
|
672
336
|
if (output.statusCode >= 300) {
|
|
673
|
-
return
|
|
337
|
+
return de_CommandError(output, context);
|
|
674
338
|
}
|
|
675
339
|
const data = await parseBody(output.body, context);
|
|
676
340
|
let contents = {};
|
|
@@ -681,58 +345,9 @@ export const de_GetRecordsCommand = async (output, context) => {
|
|
|
681
345
|
};
|
|
682
346
|
return response;
|
|
683
347
|
};
|
|
684
|
-
const de_GetRecordsCommandError = async (output, context) => {
|
|
685
|
-
const parsedOutput = {
|
|
686
|
-
...output,
|
|
687
|
-
body: await parseErrorBody(output.body, context),
|
|
688
|
-
};
|
|
689
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
690
|
-
switch (errorCode) {
|
|
691
|
-
case "AccessDeniedException":
|
|
692
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
693
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
694
|
-
case "ExpiredIteratorException":
|
|
695
|
-
case "com.amazonaws.kinesis#ExpiredIteratorException":
|
|
696
|
-
throw await de_ExpiredIteratorExceptionRes(parsedOutput, context);
|
|
697
|
-
case "InvalidArgumentException":
|
|
698
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
699
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
700
|
-
case "KMSAccessDeniedException":
|
|
701
|
-
case "com.amazonaws.kinesis#KMSAccessDeniedException":
|
|
702
|
-
throw await de_KMSAccessDeniedExceptionRes(parsedOutput, context);
|
|
703
|
-
case "KMSDisabledException":
|
|
704
|
-
case "com.amazonaws.kinesis#KMSDisabledException":
|
|
705
|
-
throw await de_KMSDisabledExceptionRes(parsedOutput, context);
|
|
706
|
-
case "KMSInvalidStateException":
|
|
707
|
-
case "com.amazonaws.kinesis#KMSInvalidStateException":
|
|
708
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
709
|
-
case "KMSNotFoundException":
|
|
710
|
-
case "com.amazonaws.kinesis#KMSNotFoundException":
|
|
711
|
-
throw await de_KMSNotFoundExceptionRes(parsedOutput, context);
|
|
712
|
-
case "KMSOptInRequired":
|
|
713
|
-
case "com.amazonaws.kinesis#KMSOptInRequired":
|
|
714
|
-
throw await de_KMSOptInRequiredRes(parsedOutput, context);
|
|
715
|
-
case "KMSThrottlingException":
|
|
716
|
-
case "com.amazonaws.kinesis#KMSThrottlingException":
|
|
717
|
-
throw await de_KMSThrottlingExceptionRes(parsedOutput, context);
|
|
718
|
-
case "ProvisionedThroughputExceededException":
|
|
719
|
-
case "com.amazonaws.kinesis#ProvisionedThroughputExceededException":
|
|
720
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
721
|
-
case "ResourceNotFoundException":
|
|
722
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
723
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
724
|
-
default:
|
|
725
|
-
const parsedBody = parsedOutput.body;
|
|
726
|
-
return throwDefaultError({
|
|
727
|
-
output,
|
|
728
|
-
parsedBody,
|
|
729
|
-
errorCode,
|
|
730
|
-
});
|
|
731
|
-
}
|
|
732
|
-
};
|
|
733
348
|
export const de_GetResourcePolicyCommand = async (output, context) => {
|
|
734
349
|
if (output.statusCode >= 300) {
|
|
735
|
-
return
|
|
350
|
+
return de_CommandError(output, context);
|
|
736
351
|
}
|
|
737
352
|
const data = await parseBody(output.body, context);
|
|
738
353
|
let contents = {};
|
|
@@ -743,37 +358,9 @@ export const de_GetResourcePolicyCommand = async (output, context) => {
|
|
|
743
358
|
};
|
|
744
359
|
return response;
|
|
745
360
|
};
|
|
746
|
-
const de_GetResourcePolicyCommandError = async (output, context) => {
|
|
747
|
-
const parsedOutput = {
|
|
748
|
-
...output,
|
|
749
|
-
body: await parseErrorBody(output.body, context),
|
|
750
|
-
};
|
|
751
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
752
|
-
switch (errorCode) {
|
|
753
|
-
case "AccessDeniedException":
|
|
754
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
755
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
756
|
-
case "InvalidArgumentException":
|
|
757
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
758
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
759
|
-
case "LimitExceededException":
|
|
760
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
761
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
762
|
-
case "ResourceNotFoundException":
|
|
763
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
764
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
765
|
-
default:
|
|
766
|
-
const parsedBody = parsedOutput.body;
|
|
767
|
-
return throwDefaultError({
|
|
768
|
-
output,
|
|
769
|
-
parsedBody,
|
|
770
|
-
errorCode,
|
|
771
|
-
});
|
|
772
|
-
}
|
|
773
|
-
};
|
|
774
361
|
export const de_GetShardIteratorCommand = async (output, context) => {
|
|
775
362
|
if (output.statusCode >= 300) {
|
|
776
|
-
return
|
|
363
|
+
return de_CommandError(output, context);
|
|
777
364
|
}
|
|
778
365
|
const data = await parseBody(output.body, context);
|
|
779
366
|
let contents = {};
|
|
@@ -784,37 +371,9 @@ export const de_GetShardIteratorCommand = async (output, context) => {
|
|
|
784
371
|
};
|
|
785
372
|
return response;
|
|
786
373
|
};
|
|
787
|
-
const de_GetShardIteratorCommandError = async (output, context) => {
|
|
788
|
-
const parsedOutput = {
|
|
789
|
-
...output,
|
|
790
|
-
body: await parseErrorBody(output.body, context),
|
|
791
|
-
};
|
|
792
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
793
|
-
switch (errorCode) {
|
|
794
|
-
case "AccessDeniedException":
|
|
795
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
796
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
797
|
-
case "InvalidArgumentException":
|
|
798
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
799
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
800
|
-
case "ProvisionedThroughputExceededException":
|
|
801
|
-
case "com.amazonaws.kinesis#ProvisionedThroughputExceededException":
|
|
802
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
803
|
-
case "ResourceNotFoundException":
|
|
804
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
805
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
806
|
-
default:
|
|
807
|
-
const parsedBody = parsedOutput.body;
|
|
808
|
-
return throwDefaultError({
|
|
809
|
-
output,
|
|
810
|
-
parsedBody,
|
|
811
|
-
errorCode,
|
|
812
|
-
});
|
|
813
|
-
}
|
|
814
|
-
};
|
|
815
374
|
export const de_IncreaseStreamRetentionPeriodCommand = async (output, context) => {
|
|
816
375
|
if (output.statusCode >= 300) {
|
|
817
|
-
return
|
|
376
|
+
return de_CommandError(output, context);
|
|
818
377
|
}
|
|
819
378
|
await collectBody(output.body, context);
|
|
820
379
|
const response = {
|
|
@@ -822,40 +381,9 @@ export const de_IncreaseStreamRetentionPeriodCommand = async (output, context) =
|
|
|
822
381
|
};
|
|
823
382
|
return response;
|
|
824
383
|
};
|
|
825
|
-
const de_IncreaseStreamRetentionPeriodCommandError = async (output, context) => {
|
|
826
|
-
const parsedOutput = {
|
|
827
|
-
...output,
|
|
828
|
-
body: await parseErrorBody(output.body, context),
|
|
829
|
-
};
|
|
830
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
831
|
-
switch (errorCode) {
|
|
832
|
-
case "AccessDeniedException":
|
|
833
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
834
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
835
|
-
case "InvalidArgumentException":
|
|
836
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
837
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
838
|
-
case "LimitExceededException":
|
|
839
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
840
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
841
|
-
case "ResourceInUseException":
|
|
842
|
-
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
843
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
844
|
-
case "ResourceNotFoundException":
|
|
845
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
846
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
847
|
-
default:
|
|
848
|
-
const parsedBody = parsedOutput.body;
|
|
849
|
-
return throwDefaultError({
|
|
850
|
-
output,
|
|
851
|
-
parsedBody,
|
|
852
|
-
errorCode,
|
|
853
|
-
});
|
|
854
|
-
}
|
|
855
|
-
};
|
|
856
384
|
export const de_ListShardsCommand = async (output, context) => {
|
|
857
385
|
if (output.statusCode >= 300) {
|
|
858
|
-
return
|
|
386
|
+
return de_CommandError(output, context);
|
|
859
387
|
}
|
|
860
388
|
const data = await parseBody(output.body, context);
|
|
861
389
|
let contents = {};
|
|
@@ -866,43 +394,9 @@ export const de_ListShardsCommand = async (output, context) => {
|
|
|
866
394
|
};
|
|
867
395
|
return response;
|
|
868
396
|
};
|
|
869
|
-
const de_ListShardsCommandError = async (output, context) => {
|
|
870
|
-
const parsedOutput = {
|
|
871
|
-
...output,
|
|
872
|
-
body: await parseErrorBody(output.body, context),
|
|
873
|
-
};
|
|
874
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
875
|
-
switch (errorCode) {
|
|
876
|
-
case "AccessDeniedException":
|
|
877
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
878
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
879
|
-
case "ExpiredNextTokenException":
|
|
880
|
-
case "com.amazonaws.kinesis#ExpiredNextTokenException":
|
|
881
|
-
throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
|
|
882
|
-
case "InvalidArgumentException":
|
|
883
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
884
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
885
|
-
case "LimitExceededException":
|
|
886
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
887
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
888
|
-
case "ResourceInUseException":
|
|
889
|
-
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
890
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
891
|
-
case "ResourceNotFoundException":
|
|
892
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
893
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
894
|
-
default:
|
|
895
|
-
const parsedBody = parsedOutput.body;
|
|
896
|
-
return throwDefaultError({
|
|
897
|
-
output,
|
|
898
|
-
parsedBody,
|
|
899
|
-
errorCode,
|
|
900
|
-
});
|
|
901
|
-
}
|
|
902
|
-
};
|
|
903
397
|
export const de_ListStreamConsumersCommand = async (output, context) => {
|
|
904
398
|
if (output.statusCode >= 300) {
|
|
905
|
-
return
|
|
399
|
+
return de_CommandError(output, context);
|
|
906
400
|
}
|
|
907
401
|
const data = await parseBody(output.body, context);
|
|
908
402
|
let contents = {};
|
|
@@ -913,40 +407,9 @@ export const de_ListStreamConsumersCommand = async (output, context) => {
|
|
|
913
407
|
};
|
|
914
408
|
return response;
|
|
915
409
|
};
|
|
916
|
-
const de_ListStreamConsumersCommandError = async (output, context) => {
|
|
917
|
-
const parsedOutput = {
|
|
918
|
-
...output,
|
|
919
|
-
body: await parseErrorBody(output.body, context),
|
|
920
|
-
};
|
|
921
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
922
|
-
switch (errorCode) {
|
|
923
|
-
case "ExpiredNextTokenException":
|
|
924
|
-
case "com.amazonaws.kinesis#ExpiredNextTokenException":
|
|
925
|
-
throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
|
|
926
|
-
case "InvalidArgumentException":
|
|
927
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
928
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
929
|
-
case "LimitExceededException":
|
|
930
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
931
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
932
|
-
case "ResourceInUseException":
|
|
933
|
-
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
934
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
935
|
-
case "ResourceNotFoundException":
|
|
936
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
937
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
938
|
-
default:
|
|
939
|
-
const parsedBody = parsedOutput.body;
|
|
940
|
-
return throwDefaultError({
|
|
941
|
-
output,
|
|
942
|
-
parsedBody,
|
|
943
|
-
errorCode,
|
|
944
|
-
});
|
|
945
|
-
}
|
|
946
|
-
};
|
|
947
410
|
export const de_ListStreamsCommand = async (output, context) => {
|
|
948
411
|
if (output.statusCode >= 300) {
|
|
949
|
-
return
|
|
412
|
+
return de_CommandError(output, context);
|
|
950
413
|
}
|
|
951
414
|
const data = await parseBody(output.body, context);
|
|
952
415
|
let contents = {};
|
|
@@ -957,34 +420,9 @@ export const de_ListStreamsCommand = async (output, context) => {
|
|
|
957
420
|
};
|
|
958
421
|
return response;
|
|
959
422
|
};
|
|
960
|
-
const de_ListStreamsCommandError = async (output, context) => {
|
|
961
|
-
const parsedOutput = {
|
|
962
|
-
...output,
|
|
963
|
-
body: await parseErrorBody(output.body, context),
|
|
964
|
-
};
|
|
965
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
966
|
-
switch (errorCode) {
|
|
967
|
-
case "ExpiredNextTokenException":
|
|
968
|
-
case "com.amazonaws.kinesis#ExpiredNextTokenException":
|
|
969
|
-
throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
|
|
970
|
-
case "InvalidArgumentException":
|
|
971
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
972
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
973
|
-
case "LimitExceededException":
|
|
974
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
975
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
976
|
-
default:
|
|
977
|
-
const parsedBody = parsedOutput.body;
|
|
978
|
-
return throwDefaultError({
|
|
979
|
-
output,
|
|
980
|
-
parsedBody,
|
|
981
|
-
errorCode,
|
|
982
|
-
});
|
|
983
|
-
}
|
|
984
|
-
};
|
|
985
423
|
export const de_ListTagsForStreamCommand = async (output, context) => {
|
|
986
424
|
if (output.statusCode >= 300) {
|
|
987
|
-
return
|
|
425
|
+
return de_CommandError(output, context);
|
|
988
426
|
}
|
|
989
427
|
const data = await parseBody(output.body, context);
|
|
990
428
|
let contents = {};
|
|
@@ -995,37 +433,9 @@ export const de_ListTagsForStreamCommand = async (output, context) => {
|
|
|
995
433
|
};
|
|
996
434
|
return response;
|
|
997
435
|
};
|
|
998
|
-
const de_ListTagsForStreamCommandError = async (output, context) => {
|
|
999
|
-
const parsedOutput = {
|
|
1000
|
-
...output,
|
|
1001
|
-
body: await parseErrorBody(output.body, context),
|
|
1002
|
-
};
|
|
1003
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1004
|
-
switch (errorCode) {
|
|
1005
|
-
case "AccessDeniedException":
|
|
1006
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1007
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1008
|
-
case "InvalidArgumentException":
|
|
1009
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1010
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1011
|
-
case "LimitExceededException":
|
|
1012
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1013
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1014
|
-
case "ResourceNotFoundException":
|
|
1015
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1016
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1017
|
-
default:
|
|
1018
|
-
const parsedBody = parsedOutput.body;
|
|
1019
|
-
return throwDefaultError({
|
|
1020
|
-
output,
|
|
1021
|
-
parsedBody,
|
|
1022
|
-
errorCode,
|
|
1023
|
-
});
|
|
1024
|
-
}
|
|
1025
|
-
};
|
|
1026
436
|
export const de_MergeShardsCommand = async (output, context) => {
|
|
1027
437
|
if (output.statusCode >= 300) {
|
|
1028
|
-
return
|
|
438
|
+
return de_CommandError(output, context);
|
|
1029
439
|
}
|
|
1030
440
|
await collectBody(output.body, context);
|
|
1031
441
|
const response = {
|
|
@@ -1033,43 +443,9 @@ export const de_MergeShardsCommand = async (output, context) => {
|
|
|
1033
443
|
};
|
|
1034
444
|
return response;
|
|
1035
445
|
};
|
|
1036
|
-
const de_MergeShardsCommandError = async (output, context) => {
|
|
1037
|
-
const parsedOutput = {
|
|
1038
|
-
...output,
|
|
1039
|
-
body: await parseErrorBody(output.body, context),
|
|
1040
|
-
};
|
|
1041
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1042
|
-
switch (errorCode) {
|
|
1043
|
-
case "AccessDeniedException":
|
|
1044
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1045
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1046
|
-
case "InvalidArgumentException":
|
|
1047
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1048
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1049
|
-
case "LimitExceededException":
|
|
1050
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1051
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1052
|
-
case "ResourceInUseException":
|
|
1053
|
-
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
1054
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1055
|
-
case "ResourceNotFoundException":
|
|
1056
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1057
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1058
|
-
case "ValidationException":
|
|
1059
|
-
case "com.amazonaws.kinesis#ValidationException":
|
|
1060
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1061
|
-
default:
|
|
1062
|
-
const parsedBody = parsedOutput.body;
|
|
1063
|
-
return throwDefaultError({
|
|
1064
|
-
output,
|
|
1065
|
-
parsedBody,
|
|
1066
|
-
errorCode,
|
|
1067
|
-
});
|
|
1068
|
-
}
|
|
1069
|
-
};
|
|
1070
446
|
export const de_PutRecordCommand = async (output, context) => {
|
|
1071
447
|
if (output.statusCode >= 300) {
|
|
1072
|
-
return
|
|
448
|
+
return de_CommandError(output, context);
|
|
1073
449
|
}
|
|
1074
450
|
const data = await parseBody(output.body, context);
|
|
1075
451
|
let contents = {};
|
|
@@ -1080,55 +456,9 @@ export const de_PutRecordCommand = async (output, context) => {
|
|
|
1080
456
|
};
|
|
1081
457
|
return response;
|
|
1082
458
|
};
|
|
1083
|
-
const de_PutRecordCommandError = async (output, context) => {
|
|
1084
|
-
const parsedOutput = {
|
|
1085
|
-
...output,
|
|
1086
|
-
body: await parseErrorBody(output.body, context),
|
|
1087
|
-
};
|
|
1088
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1089
|
-
switch (errorCode) {
|
|
1090
|
-
case "AccessDeniedException":
|
|
1091
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1092
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1093
|
-
case "InvalidArgumentException":
|
|
1094
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1095
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1096
|
-
case "KMSAccessDeniedException":
|
|
1097
|
-
case "com.amazonaws.kinesis#KMSAccessDeniedException":
|
|
1098
|
-
throw await de_KMSAccessDeniedExceptionRes(parsedOutput, context);
|
|
1099
|
-
case "KMSDisabledException":
|
|
1100
|
-
case "com.amazonaws.kinesis#KMSDisabledException":
|
|
1101
|
-
throw await de_KMSDisabledExceptionRes(parsedOutput, context);
|
|
1102
|
-
case "KMSInvalidStateException":
|
|
1103
|
-
case "com.amazonaws.kinesis#KMSInvalidStateException":
|
|
1104
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
1105
|
-
case "KMSNotFoundException":
|
|
1106
|
-
case "com.amazonaws.kinesis#KMSNotFoundException":
|
|
1107
|
-
throw await de_KMSNotFoundExceptionRes(parsedOutput, context);
|
|
1108
|
-
case "KMSOptInRequired":
|
|
1109
|
-
case "com.amazonaws.kinesis#KMSOptInRequired":
|
|
1110
|
-
throw await de_KMSOptInRequiredRes(parsedOutput, context);
|
|
1111
|
-
case "KMSThrottlingException":
|
|
1112
|
-
case "com.amazonaws.kinesis#KMSThrottlingException":
|
|
1113
|
-
throw await de_KMSThrottlingExceptionRes(parsedOutput, context);
|
|
1114
|
-
case "ProvisionedThroughputExceededException":
|
|
1115
|
-
case "com.amazonaws.kinesis#ProvisionedThroughputExceededException":
|
|
1116
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
1117
|
-
case "ResourceNotFoundException":
|
|
1118
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1119
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1120
|
-
default:
|
|
1121
|
-
const parsedBody = parsedOutput.body;
|
|
1122
|
-
return throwDefaultError({
|
|
1123
|
-
output,
|
|
1124
|
-
parsedBody,
|
|
1125
|
-
errorCode,
|
|
1126
|
-
});
|
|
1127
|
-
}
|
|
1128
|
-
};
|
|
1129
459
|
export const de_PutRecordsCommand = async (output, context) => {
|
|
1130
460
|
if (output.statusCode >= 300) {
|
|
1131
|
-
return
|
|
461
|
+
return de_CommandError(output, context);
|
|
1132
462
|
}
|
|
1133
463
|
const data = await parseBody(output.body, context);
|
|
1134
464
|
let contents = {};
|
|
@@ -1136,140 +466,12 @@ export const de_PutRecordsCommand = async (output, context) => {
|
|
|
1136
466
|
const response = {
|
|
1137
467
|
$metadata: deserializeMetadata(output),
|
|
1138
468
|
...contents,
|
|
1139
|
-
};
|
|
1140
|
-
return response;
|
|
1141
|
-
};
|
|
1142
|
-
const de_PutRecordsCommandError = async (output, context) => {
|
|
1143
|
-
const parsedOutput = {
|
|
1144
|
-
...output,
|
|
1145
|
-
body: await parseErrorBody(output.body, context),
|
|
1146
|
-
};
|
|
1147
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1148
|
-
switch (errorCode) {
|
|
1149
|
-
case "AccessDeniedException":
|
|
1150
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1151
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1152
|
-
case "InvalidArgumentException":
|
|
1153
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1154
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1155
|
-
case "KMSAccessDeniedException":
|
|
1156
|
-
case "com.amazonaws.kinesis#KMSAccessDeniedException":
|
|
1157
|
-
throw await de_KMSAccessDeniedExceptionRes(parsedOutput, context);
|
|
1158
|
-
case "KMSDisabledException":
|
|
1159
|
-
case "com.amazonaws.kinesis#KMSDisabledException":
|
|
1160
|
-
throw await de_KMSDisabledExceptionRes(parsedOutput, context);
|
|
1161
|
-
case "KMSInvalidStateException":
|
|
1162
|
-
case "com.amazonaws.kinesis#KMSInvalidStateException":
|
|
1163
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
1164
|
-
case "KMSNotFoundException":
|
|
1165
|
-
case "com.amazonaws.kinesis#KMSNotFoundException":
|
|
1166
|
-
throw await de_KMSNotFoundExceptionRes(parsedOutput, context);
|
|
1167
|
-
case "KMSOptInRequired":
|
|
1168
|
-
case "com.amazonaws.kinesis#KMSOptInRequired":
|
|
1169
|
-
throw await de_KMSOptInRequiredRes(parsedOutput, context);
|
|
1170
|
-
case "KMSThrottlingException":
|
|
1171
|
-
case "com.amazonaws.kinesis#KMSThrottlingException":
|
|
1172
|
-
throw await de_KMSThrottlingExceptionRes(parsedOutput, context);
|
|
1173
|
-
case "ProvisionedThroughputExceededException":
|
|
1174
|
-
case "com.amazonaws.kinesis#ProvisionedThroughputExceededException":
|
|
1175
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
1176
|
-
case "ResourceNotFoundException":
|
|
1177
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1178
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1179
|
-
default:
|
|
1180
|
-
const parsedBody = parsedOutput.body;
|
|
1181
|
-
return throwDefaultError({
|
|
1182
|
-
output,
|
|
1183
|
-
parsedBody,
|
|
1184
|
-
errorCode,
|
|
1185
|
-
});
|
|
1186
|
-
}
|
|
1187
|
-
};
|
|
1188
|
-
export const de_PutResourcePolicyCommand = async (output, context) => {
|
|
1189
|
-
if (output.statusCode >= 300) {
|
|
1190
|
-
return de_PutResourcePolicyCommandError(output, context);
|
|
1191
|
-
}
|
|
1192
|
-
await collectBody(output.body, context);
|
|
1193
|
-
const response = {
|
|
1194
|
-
$metadata: deserializeMetadata(output),
|
|
1195
|
-
};
|
|
1196
|
-
return response;
|
|
1197
|
-
};
|
|
1198
|
-
const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
1199
|
-
const parsedOutput = {
|
|
1200
|
-
...output,
|
|
1201
|
-
body: await parseErrorBody(output.body, context),
|
|
1202
|
-
};
|
|
1203
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1204
|
-
switch (errorCode) {
|
|
1205
|
-
case "AccessDeniedException":
|
|
1206
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1207
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1208
|
-
case "InvalidArgumentException":
|
|
1209
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1210
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1211
|
-
case "LimitExceededException":
|
|
1212
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1213
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1214
|
-
case "ResourceInUseException":
|
|
1215
|
-
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
1216
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1217
|
-
case "ResourceNotFoundException":
|
|
1218
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1219
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1220
|
-
default:
|
|
1221
|
-
const parsedBody = parsedOutput.body;
|
|
1222
|
-
return throwDefaultError({
|
|
1223
|
-
output,
|
|
1224
|
-
parsedBody,
|
|
1225
|
-
errorCode,
|
|
1226
|
-
});
|
|
1227
|
-
}
|
|
1228
|
-
};
|
|
1229
|
-
export const de_RegisterStreamConsumerCommand = async (output, context) => {
|
|
1230
|
-
if (output.statusCode >= 300) {
|
|
1231
|
-
return de_RegisterStreamConsumerCommandError(output, context);
|
|
1232
|
-
}
|
|
1233
|
-
const data = await parseBody(output.body, context);
|
|
1234
|
-
let contents = {};
|
|
1235
|
-
contents = de_RegisterStreamConsumerOutput(data, context);
|
|
1236
|
-
const response = {
|
|
1237
|
-
$metadata: deserializeMetadata(output),
|
|
1238
|
-
...contents,
|
|
1239
|
-
};
|
|
1240
|
-
return response;
|
|
1241
|
-
};
|
|
1242
|
-
const de_RegisterStreamConsumerCommandError = async (output, context) => {
|
|
1243
|
-
const parsedOutput = {
|
|
1244
|
-
...output,
|
|
1245
|
-
body: await parseErrorBody(output.body, context),
|
|
1246
|
-
};
|
|
1247
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1248
|
-
switch (errorCode) {
|
|
1249
|
-
case "InvalidArgumentException":
|
|
1250
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1251
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1252
|
-
case "LimitExceededException":
|
|
1253
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1254
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1255
|
-
case "ResourceInUseException":
|
|
1256
|
-
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
1257
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1258
|
-
case "ResourceNotFoundException":
|
|
1259
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1260
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1261
|
-
default:
|
|
1262
|
-
const parsedBody = parsedOutput.body;
|
|
1263
|
-
return throwDefaultError({
|
|
1264
|
-
output,
|
|
1265
|
-
parsedBody,
|
|
1266
|
-
errorCode,
|
|
1267
|
-
});
|
|
1268
|
-
}
|
|
469
|
+
};
|
|
470
|
+
return response;
|
|
1269
471
|
};
|
|
1270
|
-
export const
|
|
472
|
+
export const de_PutResourcePolicyCommand = async (output, context) => {
|
|
1271
473
|
if (output.statusCode >= 300) {
|
|
1272
|
-
return
|
|
474
|
+
return de_CommandError(output, context);
|
|
1273
475
|
}
|
|
1274
476
|
await collectBody(output.body, context);
|
|
1275
477
|
const response = {
|
|
@@ -1277,40 +479,22 @@ export const de_RemoveTagsFromStreamCommand = async (output, context) => {
|
|
|
1277
479
|
};
|
|
1278
480
|
return response;
|
|
1279
481
|
};
|
|
1280
|
-
const
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
body: await parseErrorBody(output.body, context),
|
|
1284
|
-
};
|
|
1285
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1286
|
-
switch (errorCode) {
|
|
1287
|
-
case "AccessDeniedException":
|
|
1288
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1289
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1290
|
-
case "InvalidArgumentException":
|
|
1291
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1292
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1293
|
-
case "LimitExceededException":
|
|
1294
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1295
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1296
|
-
case "ResourceInUseException":
|
|
1297
|
-
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
1298
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1299
|
-
case "ResourceNotFoundException":
|
|
1300
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1301
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1302
|
-
default:
|
|
1303
|
-
const parsedBody = parsedOutput.body;
|
|
1304
|
-
return throwDefaultError({
|
|
1305
|
-
output,
|
|
1306
|
-
parsedBody,
|
|
1307
|
-
errorCode,
|
|
1308
|
-
});
|
|
482
|
+
export const de_RegisterStreamConsumerCommand = async (output, context) => {
|
|
483
|
+
if (output.statusCode >= 300) {
|
|
484
|
+
return de_CommandError(output, context);
|
|
1309
485
|
}
|
|
486
|
+
const data = await parseBody(output.body, context);
|
|
487
|
+
let contents = {};
|
|
488
|
+
contents = de_RegisterStreamConsumerOutput(data, context);
|
|
489
|
+
const response = {
|
|
490
|
+
$metadata: deserializeMetadata(output),
|
|
491
|
+
...contents,
|
|
492
|
+
};
|
|
493
|
+
return response;
|
|
1310
494
|
};
|
|
1311
|
-
export const
|
|
495
|
+
export const de_RemoveTagsFromStreamCommand = async (output, context) => {
|
|
1312
496
|
if (output.statusCode >= 300) {
|
|
1313
|
-
return
|
|
497
|
+
return de_CommandError(output, context);
|
|
1314
498
|
}
|
|
1315
499
|
await collectBody(output.body, context);
|
|
1316
500
|
const response = {
|
|
@@ -1318,43 +502,19 @@ export const de_SplitShardCommand = async (output, context) => {
|
|
|
1318
502
|
};
|
|
1319
503
|
return response;
|
|
1320
504
|
};
|
|
1321
|
-
const
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
body: await parseErrorBody(output.body, context),
|
|
1325
|
-
};
|
|
1326
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1327
|
-
switch (errorCode) {
|
|
1328
|
-
case "AccessDeniedException":
|
|
1329
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1330
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1331
|
-
case "InvalidArgumentException":
|
|
1332
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1333
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1334
|
-
case "LimitExceededException":
|
|
1335
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1336
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1337
|
-
case "ResourceInUseException":
|
|
1338
|
-
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
1339
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1340
|
-
case "ResourceNotFoundException":
|
|
1341
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1342
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1343
|
-
case "ValidationException":
|
|
1344
|
-
case "com.amazonaws.kinesis#ValidationException":
|
|
1345
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1346
|
-
default:
|
|
1347
|
-
const parsedBody = parsedOutput.body;
|
|
1348
|
-
return throwDefaultError({
|
|
1349
|
-
output,
|
|
1350
|
-
parsedBody,
|
|
1351
|
-
errorCode,
|
|
1352
|
-
});
|
|
505
|
+
export const de_SplitShardCommand = async (output, context) => {
|
|
506
|
+
if (output.statusCode >= 300) {
|
|
507
|
+
return de_CommandError(output, context);
|
|
1353
508
|
}
|
|
509
|
+
await collectBody(output.body, context);
|
|
510
|
+
const response = {
|
|
511
|
+
$metadata: deserializeMetadata(output),
|
|
512
|
+
};
|
|
513
|
+
return response;
|
|
1354
514
|
};
|
|
1355
515
|
export const de_StartStreamEncryptionCommand = async (output, context) => {
|
|
1356
516
|
if (output.statusCode >= 300) {
|
|
1357
|
-
return
|
|
517
|
+
return de_CommandError(output, context);
|
|
1358
518
|
}
|
|
1359
519
|
await collectBody(output.body, context);
|
|
1360
520
|
const response = {
|
|
@@ -1362,58 +522,9 @@ export const de_StartStreamEncryptionCommand = async (output, context) => {
|
|
|
1362
522
|
};
|
|
1363
523
|
return response;
|
|
1364
524
|
};
|
|
1365
|
-
const de_StartStreamEncryptionCommandError = async (output, context) => {
|
|
1366
|
-
const parsedOutput = {
|
|
1367
|
-
...output,
|
|
1368
|
-
body: await parseErrorBody(output.body, context),
|
|
1369
|
-
};
|
|
1370
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1371
|
-
switch (errorCode) {
|
|
1372
|
-
case "AccessDeniedException":
|
|
1373
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1374
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1375
|
-
case "InvalidArgumentException":
|
|
1376
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1377
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1378
|
-
case "KMSAccessDeniedException":
|
|
1379
|
-
case "com.amazonaws.kinesis#KMSAccessDeniedException":
|
|
1380
|
-
throw await de_KMSAccessDeniedExceptionRes(parsedOutput, context);
|
|
1381
|
-
case "KMSDisabledException":
|
|
1382
|
-
case "com.amazonaws.kinesis#KMSDisabledException":
|
|
1383
|
-
throw await de_KMSDisabledExceptionRes(parsedOutput, context);
|
|
1384
|
-
case "KMSInvalidStateException":
|
|
1385
|
-
case "com.amazonaws.kinesis#KMSInvalidStateException":
|
|
1386
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
1387
|
-
case "KMSNotFoundException":
|
|
1388
|
-
case "com.amazonaws.kinesis#KMSNotFoundException":
|
|
1389
|
-
throw await de_KMSNotFoundExceptionRes(parsedOutput, context);
|
|
1390
|
-
case "KMSOptInRequired":
|
|
1391
|
-
case "com.amazonaws.kinesis#KMSOptInRequired":
|
|
1392
|
-
throw await de_KMSOptInRequiredRes(parsedOutput, context);
|
|
1393
|
-
case "KMSThrottlingException":
|
|
1394
|
-
case "com.amazonaws.kinesis#KMSThrottlingException":
|
|
1395
|
-
throw await de_KMSThrottlingExceptionRes(parsedOutput, context);
|
|
1396
|
-
case "LimitExceededException":
|
|
1397
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1398
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1399
|
-
case "ResourceInUseException":
|
|
1400
|
-
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
1401
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1402
|
-
case "ResourceNotFoundException":
|
|
1403
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1404
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1405
|
-
default:
|
|
1406
|
-
const parsedBody = parsedOutput.body;
|
|
1407
|
-
return throwDefaultError({
|
|
1408
|
-
output,
|
|
1409
|
-
parsedBody,
|
|
1410
|
-
errorCode,
|
|
1411
|
-
});
|
|
1412
|
-
}
|
|
1413
|
-
};
|
|
1414
525
|
export const de_StopStreamEncryptionCommand = async (output, context) => {
|
|
1415
526
|
if (output.statusCode >= 300) {
|
|
1416
|
-
return
|
|
527
|
+
return de_CommandError(output, context);
|
|
1417
528
|
}
|
|
1418
529
|
await collectBody(output.body, context);
|
|
1419
530
|
const response = {
|
|
@@ -1421,40 +532,9 @@ export const de_StopStreamEncryptionCommand = async (output, context) => {
|
|
|
1421
532
|
};
|
|
1422
533
|
return response;
|
|
1423
534
|
};
|
|
1424
|
-
const de_StopStreamEncryptionCommandError = async (output, context) => {
|
|
1425
|
-
const parsedOutput = {
|
|
1426
|
-
...output,
|
|
1427
|
-
body: await parseErrorBody(output.body, context),
|
|
1428
|
-
};
|
|
1429
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1430
|
-
switch (errorCode) {
|
|
1431
|
-
case "AccessDeniedException":
|
|
1432
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1433
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1434
|
-
case "InvalidArgumentException":
|
|
1435
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1436
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1437
|
-
case "LimitExceededException":
|
|
1438
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1439
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1440
|
-
case "ResourceInUseException":
|
|
1441
|
-
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
1442
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1443
|
-
case "ResourceNotFoundException":
|
|
1444
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1445
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1446
|
-
default:
|
|
1447
|
-
const parsedBody = parsedOutput.body;
|
|
1448
|
-
return throwDefaultError({
|
|
1449
|
-
output,
|
|
1450
|
-
parsedBody,
|
|
1451
|
-
errorCode,
|
|
1452
|
-
});
|
|
1453
|
-
}
|
|
1454
|
-
};
|
|
1455
535
|
export const de_SubscribeToShardCommand = async (output, context) => {
|
|
1456
536
|
if (output.statusCode >= 300) {
|
|
1457
|
-
return
|
|
537
|
+
return de_CommandError(output, context);
|
|
1458
538
|
}
|
|
1459
539
|
const contents = { EventStream: de_SubscribeToShardEventStream(output.body, context) };
|
|
1460
540
|
const response = {
|
|
@@ -1463,40 +543,9 @@ export const de_SubscribeToShardCommand = async (output, context) => {
|
|
|
1463
543
|
};
|
|
1464
544
|
return response;
|
|
1465
545
|
};
|
|
1466
|
-
const de_SubscribeToShardCommandError = async (output, context) => {
|
|
1467
|
-
const parsedOutput = {
|
|
1468
|
-
...output,
|
|
1469
|
-
body: await parseErrorBody(output.body, context),
|
|
1470
|
-
};
|
|
1471
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1472
|
-
switch (errorCode) {
|
|
1473
|
-
case "AccessDeniedException":
|
|
1474
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1475
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1476
|
-
case "InvalidArgumentException":
|
|
1477
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1478
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1479
|
-
case "LimitExceededException":
|
|
1480
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1481
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1482
|
-
case "ResourceInUseException":
|
|
1483
|
-
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
1484
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1485
|
-
case "ResourceNotFoundException":
|
|
1486
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1487
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1488
|
-
default:
|
|
1489
|
-
const parsedBody = parsedOutput.body;
|
|
1490
|
-
return throwDefaultError({
|
|
1491
|
-
output,
|
|
1492
|
-
parsedBody,
|
|
1493
|
-
errorCode,
|
|
1494
|
-
});
|
|
1495
|
-
}
|
|
1496
|
-
};
|
|
1497
546
|
export const de_UpdateShardCountCommand = async (output, context) => {
|
|
1498
547
|
if (output.statusCode >= 300) {
|
|
1499
|
-
return
|
|
548
|
+
return de_CommandError(output, context);
|
|
1500
549
|
}
|
|
1501
550
|
const data = await parseBody(output.body, context);
|
|
1502
551
|
let contents = {};
|
|
@@ -1507,43 +556,9 @@ export const de_UpdateShardCountCommand = async (output, context) => {
|
|
|
1507
556
|
};
|
|
1508
557
|
return response;
|
|
1509
558
|
};
|
|
1510
|
-
const de_UpdateShardCountCommandError = async (output, context) => {
|
|
1511
|
-
const parsedOutput = {
|
|
1512
|
-
...output,
|
|
1513
|
-
body: await parseErrorBody(output.body, context),
|
|
1514
|
-
};
|
|
1515
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1516
|
-
switch (errorCode) {
|
|
1517
|
-
case "AccessDeniedException":
|
|
1518
|
-
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1519
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1520
|
-
case "InvalidArgumentException":
|
|
1521
|
-
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1522
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1523
|
-
case "LimitExceededException":
|
|
1524
|
-
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1525
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1526
|
-
case "ResourceInUseException":
|
|
1527
|
-
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
1528
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1529
|
-
case "ResourceNotFoundException":
|
|
1530
|
-
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1531
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1532
|
-
case "ValidationException":
|
|
1533
|
-
case "com.amazonaws.kinesis#ValidationException":
|
|
1534
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1535
|
-
default:
|
|
1536
|
-
const parsedBody = parsedOutput.body;
|
|
1537
|
-
return throwDefaultError({
|
|
1538
|
-
output,
|
|
1539
|
-
parsedBody,
|
|
1540
|
-
errorCode,
|
|
1541
|
-
});
|
|
1542
|
-
}
|
|
1543
|
-
};
|
|
1544
559
|
export const de_UpdateStreamModeCommand = async (output, context) => {
|
|
1545
560
|
if (output.statusCode >= 300) {
|
|
1546
|
-
return
|
|
561
|
+
return de_CommandError(output, context);
|
|
1547
562
|
}
|
|
1548
563
|
await collectBody(output.body, context);
|
|
1549
564
|
const response = {
|
|
@@ -1551,13 +566,16 @@ export const de_UpdateStreamModeCommand = async (output, context) => {
|
|
|
1551
566
|
};
|
|
1552
567
|
return response;
|
|
1553
568
|
};
|
|
1554
|
-
const
|
|
569
|
+
const de_CommandError = async (output, context) => {
|
|
1555
570
|
const parsedOutput = {
|
|
1556
571
|
...output,
|
|
1557
572
|
body: await parseErrorBody(output.body, context),
|
|
1558
573
|
};
|
|
1559
574
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1560
575
|
switch (errorCode) {
|
|
576
|
+
case "AccessDeniedException":
|
|
577
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
578
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1561
579
|
case "InvalidArgumentException":
|
|
1562
580
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1563
581
|
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
@@ -1570,6 +588,36 @@ const de_UpdateStreamModeCommandError = async (output, context) => {
|
|
|
1570
588
|
case "ResourceNotFoundException":
|
|
1571
589
|
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1572
590
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
591
|
+
case "ExpiredIteratorException":
|
|
592
|
+
case "com.amazonaws.kinesis#ExpiredIteratorException":
|
|
593
|
+
throw await de_ExpiredIteratorExceptionRes(parsedOutput, context);
|
|
594
|
+
case "KMSAccessDeniedException":
|
|
595
|
+
case "com.amazonaws.kinesis#KMSAccessDeniedException":
|
|
596
|
+
throw await de_KMSAccessDeniedExceptionRes(parsedOutput, context);
|
|
597
|
+
case "KMSDisabledException":
|
|
598
|
+
case "com.amazonaws.kinesis#KMSDisabledException":
|
|
599
|
+
throw await de_KMSDisabledExceptionRes(parsedOutput, context);
|
|
600
|
+
case "KMSInvalidStateException":
|
|
601
|
+
case "com.amazonaws.kinesis#KMSInvalidStateException":
|
|
602
|
+
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
603
|
+
case "KMSNotFoundException":
|
|
604
|
+
case "com.amazonaws.kinesis#KMSNotFoundException":
|
|
605
|
+
throw await de_KMSNotFoundExceptionRes(parsedOutput, context);
|
|
606
|
+
case "KMSOptInRequired":
|
|
607
|
+
case "com.amazonaws.kinesis#KMSOptInRequired":
|
|
608
|
+
throw await de_KMSOptInRequiredRes(parsedOutput, context);
|
|
609
|
+
case "KMSThrottlingException":
|
|
610
|
+
case "com.amazonaws.kinesis#KMSThrottlingException":
|
|
611
|
+
throw await de_KMSThrottlingExceptionRes(parsedOutput, context);
|
|
612
|
+
case "ProvisionedThroughputExceededException":
|
|
613
|
+
case "com.amazonaws.kinesis#ProvisionedThroughputExceededException":
|
|
614
|
+
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
615
|
+
case "ExpiredNextTokenException":
|
|
616
|
+
case "com.amazonaws.kinesis#ExpiredNextTokenException":
|
|
617
|
+
throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
|
|
618
|
+
case "ValidationException":
|
|
619
|
+
case "com.amazonaws.kinesis#ValidationException":
|
|
620
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1573
621
|
default:
|
|
1574
622
|
const parsedBody = parsedOutput.body;
|
|
1575
623
|
return throwDefaultError({
|