@aws-sdk/client-kinesis 3.141.0 → 3.150.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/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +145 -241
- package/dist-es/protocols/Aws_json1_1.js +233 -242
- package/package.json +11 -6
|
@@ -312,7 +312,6 @@ const deserializeAws_json1_1AddTagsToStreamCommandError = async (output, context
|
|
|
312
312
|
...output,
|
|
313
313
|
body: await parseBody(output.body, context),
|
|
314
314
|
};
|
|
315
|
-
let response;
|
|
316
315
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
317
316
|
switch (errorCode) {
|
|
318
317
|
case "InvalidArgumentException":
|
|
@@ -329,14 +328,12 @@ const deserializeAws_json1_1AddTagsToStreamCommandError = async (output, context
|
|
|
329
328
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
330
329
|
default:
|
|
331
330
|
const parsedBody = parsedOutput.body;
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
$metadata,
|
|
331
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
332
|
+
output,
|
|
333
|
+
parsedBody,
|
|
334
|
+
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
335
|
+
errorCode,
|
|
338
336
|
});
|
|
339
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
340
337
|
}
|
|
341
338
|
};
|
|
342
339
|
const deserializeAws_json1_1CreateStreamCommand = async (output, context) => {
|
|
@@ -355,7 +352,6 @@ const deserializeAws_json1_1CreateStreamCommandError = async (output, context) =
|
|
|
355
352
|
...output,
|
|
356
353
|
body: await parseBody(output.body, context),
|
|
357
354
|
};
|
|
358
|
-
let response;
|
|
359
355
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
360
356
|
switch (errorCode) {
|
|
361
357
|
case "InvalidArgumentException":
|
|
@@ -369,14 +365,12 @@ const deserializeAws_json1_1CreateStreamCommandError = async (output, context) =
|
|
|
369
365
|
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
370
366
|
default:
|
|
371
367
|
const parsedBody = parsedOutput.body;
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
$metadata,
|
|
368
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
369
|
+
output,
|
|
370
|
+
parsedBody,
|
|
371
|
+
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
372
|
+
errorCode,
|
|
378
373
|
});
|
|
379
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
380
374
|
}
|
|
381
375
|
};
|
|
382
376
|
const deserializeAws_json1_1DecreaseStreamRetentionPeriodCommand = async (output, context) => {
|
|
@@ -395,7 +389,6 @@ const deserializeAws_json1_1DecreaseStreamRetentionPeriodCommandError = async (o
|
|
|
395
389
|
...output,
|
|
396
390
|
body: await parseBody(output.body, context),
|
|
397
391
|
};
|
|
398
|
-
let response;
|
|
399
392
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
400
393
|
switch (errorCode) {
|
|
401
394
|
case "InvalidArgumentException":
|
|
@@ -412,14 +405,12 @@ const deserializeAws_json1_1DecreaseStreamRetentionPeriodCommandError = async (o
|
|
|
412
405
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
413
406
|
default:
|
|
414
407
|
const parsedBody = parsedOutput.body;
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
$metadata,
|
|
408
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
409
|
+
output,
|
|
410
|
+
parsedBody,
|
|
411
|
+
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
412
|
+
errorCode,
|
|
421
413
|
});
|
|
422
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
423
414
|
}
|
|
424
415
|
};
|
|
425
416
|
const deserializeAws_json1_1DeleteStreamCommand = async (output, context) => {
|
|
@@ -438,7 +429,6 @@ const deserializeAws_json1_1DeleteStreamCommandError = async (output, context) =
|
|
|
438
429
|
...output,
|
|
439
430
|
body: await parseBody(output.body, context),
|
|
440
431
|
};
|
|
441
|
-
let response;
|
|
442
432
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
443
433
|
switch (errorCode) {
|
|
444
434
|
case "LimitExceededException":
|
|
@@ -452,14 +442,12 @@ const deserializeAws_json1_1DeleteStreamCommandError = async (output, context) =
|
|
|
452
442
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
453
443
|
default:
|
|
454
444
|
const parsedBody = parsedOutput.body;
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
$metadata,
|
|
445
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
446
|
+
output,
|
|
447
|
+
parsedBody,
|
|
448
|
+
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
449
|
+
errorCode,
|
|
461
450
|
});
|
|
462
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
463
451
|
}
|
|
464
452
|
};
|
|
465
453
|
const deserializeAws_json1_1DeregisterStreamConsumerCommand = async (output, context) => {
|
|
@@ -478,7 +466,6 @@ const deserializeAws_json1_1DeregisterStreamConsumerCommandError = async (output
|
|
|
478
466
|
...output,
|
|
479
467
|
body: await parseBody(output.body, context),
|
|
480
468
|
};
|
|
481
|
-
let response;
|
|
482
469
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
483
470
|
switch (errorCode) {
|
|
484
471
|
case "InvalidArgumentException":
|
|
@@ -492,14 +479,12 @@ const deserializeAws_json1_1DeregisterStreamConsumerCommandError = async (output
|
|
|
492
479
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
493
480
|
default:
|
|
494
481
|
const parsedBody = parsedOutput.body;
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
$metadata,
|
|
482
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
483
|
+
output,
|
|
484
|
+
parsedBody,
|
|
485
|
+
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
486
|
+
errorCode,
|
|
501
487
|
});
|
|
502
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
503
488
|
}
|
|
504
489
|
};
|
|
505
490
|
const deserializeAws_json1_1DescribeLimitsCommand = async (output, context) => {
|
|
@@ -521,7 +506,6 @@ const deserializeAws_json1_1DescribeLimitsCommandError = async (output, context)
|
|
|
521
506
|
...output,
|
|
522
507
|
body: await parseBody(output.body, context),
|
|
523
508
|
};
|
|
524
|
-
let response;
|
|
525
509
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
526
510
|
switch (errorCode) {
|
|
527
511
|
case "LimitExceededException":
|
|
@@ -529,14 +513,12 @@ const deserializeAws_json1_1DescribeLimitsCommandError = async (output, context)
|
|
|
529
513
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
530
514
|
default:
|
|
531
515
|
const parsedBody = parsedOutput.body;
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
$metadata,
|
|
516
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
517
|
+
output,
|
|
518
|
+
parsedBody,
|
|
519
|
+
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
520
|
+
errorCode,
|
|
538
521
|
});
|
|
539
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
540
522
|
}
|
|
541
523
|
};
|
|
542
524
|
const deserializeAws_json1_1DescribeStreamCommand = async (output, context) => {
|
|
@@ -558,7 +540,6 @@ const deserializeAws_json1_1DescribeStreamCommandError = async (output, context)
|
|
|
558
540
|
...output,
|
|
559
541
|
body: await parseBody(output.body, context),
|
|
560
542
|
};
|
|
561
|
-
let response;
|
|
562
543
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
563
544
|
switch (errorCode) {
|
|
564
545
|
case "LimitExceededException":
|
|
@@ -569,14 +550,12 @@ const deserializeAws_json1_1DescribeStreamCommandError = async (output, context)
|
|
|
569
550
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
570
551
|
default:
|
|
571
552
|
const parsedBody = parsedOutput.body;
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
$metadata,
|
|
553
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
554
|
+
output,
|
|
555
|
+
parsedBody,
|
|
556
|
+
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
557
|
+
errorCode,
|
|
578
558
|
});
|
|
579
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
580
559
|
}
|
|
581
560
|
};
|
|
582
561
|
const deserializeAws_json1_1DescribeStreamConsumerCommand = async (output, context) => {
|
|
@@ -598,7 +577,6 @@ const deserializeAws_json1_1DescribeStreamConsumerCommandError = async (output,
|
|
|
598
577
|
...output,
|
|
599
578
|
body: await parseBody(output.body, context),
|
|
600
579
|
};
|
|
601
|
-
let response;
|
|
602
580
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
603
581
|
switch (errorCode) {
|
|
604
582
|
case "InvalidArgumentException":
|
|
@@ -612,14 +590,12 @@ const deserializeAws_json1_1DescribeStreamConsumerCommandError = async (output,
|
|
|
612
590
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
613
591
|
default:
|
|
614
592
|
const parsedBody = parsedOutput.body;
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
$metadata,
|
|
593
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
594
|
+
output,
|
|
595
|
+
parsedBody,
|
|
596
|
+
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
597
|
+
errorCode,
|
|
621
598
|
});
|
|
622
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
623
599
|
}
|
|
624
600
|
};
|
|
625
601
|
const deserializeAws_json1_1DescribeStreamSummaryCommand = async (output, context) => {
|
|
@@ -641,7 +617,6 @@ const deserializeAws_json1_1DescribeStreamSummaryCommandError = async (output, c
|
|
|
641
617
|
...output,
|
|
642
618
|
body: await parseBody(output.body, context),
|
|
643
619
|
};
|
|
644
|
-
let response;
|
|
645
620
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
646
621
|
switch (errorCode) {
|
|
647
622
|
case "LimitExceededException":
|
|
@@ -652,14 +627,12 @@ const deserializeAws_json1_1DescribeStreamSummaryCommandError = async (output, c
|
|
|
652
627
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
653
628
|
default:
|
|
654
629
|
const parsedBody = parsedOutput.body;
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
$metadata,
|
|
630
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
631
|
+
output,
|
|
632
|
+
parsedBody,
|
|
633
|
+
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
634
|
+
errorCode,
|
|
661
635
|
});
|
|
662
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
663
636
|
}
|
|
664
637
|
};
|
|
665
638
|
const deserializeAws_json1_1DisableEnhancedMonitoringCommand = async (output, context) => {
|
|
@@ -681,7 +654,6 @@ const deserializeAws_json1_1DisableEnhancedMonitoringCommandError = async (outpu
|
|
|
681
654
|
...output,
|
|
682
655
|
body: await parseBody(output.body, context),
|
|
683
656
|
};
|
|
684
|
-
let response;
|
|
685
657
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
686
658
|
switch (errorCode) {
|
|
687
659
|
case "InvalidArgumentException":
|
|
@@ -698,14 +670,12 @@ const deserializeAws_json1_1DisableEnhancedMonitoringCommandError = async (outpu
|
|
|
698
670
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
699
671
|
default:
|
|
700
672
|
const parsedBody = parsedOutput.body;
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
$metadata,
|
|
673
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
674
|
+
output,
|
|
675
|
+
parsedBody,
|
|
676
|
+
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
677
|
+
errorCode,
|
|
707
678
|
});
|
|
708
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
709
679
|
}
|
|
710
680
|
};
|
|
711
681
|
const deserializeAws_json1_1EnableEnhancedMonitoringCommand = async (output, context) => {
|
|
@@ -727,7 +697,6 @@ const deserializeAws_json1_1EnableEnhancedMonitoringCommandError = async (output
|
|
|
727
697
|
...output,
|
|
728
698
|
body: await parseBody(output.body, context),
|
|
729
699
|
};
|
|
730
|
-
let response;
|
|
731
700
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
732
701
|
switch (errorCode) {
|
|
733
702
|
case "InvalidArgumentException":
|
|
@@ -744,14 +713,12 @@ const deserializeAws_json1_1EnableEnhancedMonitoringCommandError = async (output
|
|
|
744
713
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
745
714
|
default:
|
|
746
715
|
const parsedBody = parsedOutput.body;
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
$metadata,
|
|
716
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
717
|
+
output,
|
|
718
|
+
parsedBody,
|
|
719
|
+
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
720
|
+
errorCode,
|
|
753
721
|
});
|
|
754
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
755
722
|
}
|
|
756
723
|
};
|
|
757
724
|
const deserializeAws_json1_1GetRecordsCommand = async (output, context) => {
|
|
@@ -773,7 +740,6 @@ const deserializeAws_json1_1GetRecordsCommandError = async (output, context) =>
|
|
|
773
740
|
...output,
|
|
774
741
|
body: await parseBody(output.body, context),
|
|
775
742
|
};
|
|
776
|
-
let response;
|
|
777
743
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
778
744
|
switch (errorCode) {
|
|
779
745
|
case "ExpiredIteratorException":
|
|
@@ -808,14 +774,12 @@ const deserializeAws_json1_1GetRecordsCommandError = async (output, context) =>
|
|
|
808
774
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
809
775
|
default:
|
|
810
776
|
const parsedBody = parsedOutput.body;
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
$metadata,
|
|
777
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
778
|
+
output,
|
|
779
|
+
parsedBody,
|
|
780
|
+
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
781
|
+
errorCode,
|
|
817
782
|
});
|
|
818
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
819
783
|
}
|
|
820
784
|
};
|
|
821
785
|
const deserializeAws_json1_1GetShardIteratorCommand = async (output, context) => {
|
|
@@ -837,7 +801,6 @@ const deserializeAws_json1_1GetShardIteratorCommandError = async (output, contex
|
|
|
837
801
|
...output,
|
|
838
802
|
body: await parseBody(output.body, context),
|
|
839
803
|
};
|
|
840
|
-
let response;
|
|
841
804
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
842
805
|
switch (errorCode) {
|
|
843
806
|
case "InvalidArgumentException":
|
|
@@ -851,14 +814,12 @@ const deserializeAws_json1_1GetShardIteratorCommandError = async (output, contex
|
|
|
851
814
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
852
815
|
default:
|
|
853
816
|
const parsedBody = parsedOutput.body;
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
$metadata,
|
|
817
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
818
|
+
output,
|
|
819
|
+
parsedBody,
|
|
820
|
+
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
821
|
+
errorCode,
|
|
860
822
|
});
|
|
861
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
862
823
|
}
|
|
863
824
|
};
|
|
864
825
|
const deserializeAws_json1_1IncreaseStreamRetentionPeriodCommand = async (output, context) => {
|
|
@@ -877,7 +838,6 @@ const deserializeAws_json1_1IncreaseStreamRetentionPeriodCommandError = async (o
|
|
|
877
838
|
...output,
|
|
878
839
|
body: await parseBody(output.body, context),
|
|
879
840
|
};
|
|
880
|
-
let response;
|
|
881
841
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
882
842
|
switch (errorCode) {
|
|
883
843
|
case "InvalidArgumentException":
|
|
@@ -894,14 +854,12 @@ const deserializeAws_json1_1IncreaseStreamRetentionPeriodCommandError = async (o
|
|
|
894
854
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
895
855
|
default:
|
|
896
856
|
const parsedBody = parsedOutput.body;
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
$metadata,
|
|
857
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
858
|
+
output,
|
|
859
|
+
parsedBody,
|
|
860
|
+
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
861
|
+
errorCode,
|
|
903
862
|
});
|
|
904
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
905
863
|
}
|
|
906
864
|
};
|
|
907
865
|
const deserializeAws_json1_1ListShardsCommand = async (output, context) => {
|
|
@@ -923,7 +881,6 @@ const deserializeAws_json1_1ListShardsCommandError = async (output, context) =>
|
|
|
923
881
|
...output,
|
|
924
882
|
body: await parseBody(output.body, context),
|
|
925
883
|
};
|
|
926
|
-
let response;
|
|
927
884
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
928
885
|
switch (errorCode) {
|
|
929
886
|
case "ExpiredNextTokenException":
|
|
@@ -943,14 +900,12 @@ const deserializeAws_json1_1ListShardsCommandError = async (output, context) =>
|
|
|
943
900
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
944
901
|
default:
|
|
945
902
|
const parsedBody = parsedOutput.body;
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
$metadata,
|
|
903
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
904
|
+
output,
|
|
905
|
+
parsedBody,
|
|
906
|
+
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
907
|
+
errorCode,
|
|
952
908
|
});
|
|
953
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
954
909
|
}
|
|
955
910
|
};
|
|
956
911
|
const deserializeAws_json1_1ListStreamConsumersCommand = async (output, context) => {
|
|
@@ -972,7 +927,6 @@ const deserializeAws_json1_1ListStreamConsumersCommandError = async (output, con
|
|
|
972
927
|
...output,
|
|
973
928
|
body: await parseBody(output.body, context),
|
|
974
929
|
};
|
|
975
|
-
let response;
|
|
976
930
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
977
931
|
switch (errorCode) {
|
|
978
932
|
case "ExpiredNextTokenException":
|
|
@@ -992,14 +946,12 @@ const deserializeAws_json1_1ListStreamConsumersCommandError = async (output, con
|
|
|
992
946
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
993
947
|
default:
|
|
994
948
|
const parsedBody = parsedOutput.body;
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
$metadata,
|
|
949
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
950
|
+
output,
|
|
951
|
+
parsedBody,
|
|
952
|
+
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
953
|
+
errorCode,
|
|
1001
954
|
});
|
|
1002
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1003
955
|
}
|
|
1004
956
|
};
|
|
1005
957
|
const deserializeAws_json1_1ListStreamsCommand = async (output, context) => {
|
|
@@ -1021,7 +973,6 @@ const deserializeAws_json1_1ListStreamsCommandError = async (output, context) =>
|
|
|
1021
973
|
...output,
|
|
1022
974
|
body: await parseBody(output.body, context),
|
|
1023
975
|
};
|
|
1024
|
-
let response;
|
|
1025
976
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1026
977
|
switch (errorCode) {
|
|
1027
978
|
case "LimitExceededException":
|
|
@@ -1029,14 +980,12 @@ const deserializeAws_json1_1ListStreamsCommandError = async (output, context) =>
|
|
|
1029
980
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1030
981
|
default:
|
|
1031
982
|
const parsedBody = parsedOutput.body;
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
$metadata,
|
|
983
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
984
|
+
output,
|
|
985
|
+
parsedBody,
|
|
986
|
+
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
987
|
+
errorCode,
|
|
1038
988
|
});
|
|
1039
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1040
989
|
}
|
|
1041
990
|
};
|
|
1042
991
|
const deserializeAws_json1_1ListTagsForStreamCommand = async (output, context) => {
|
|
@@ -1058,7 +1007,6 @@ const deserializeAws_json1_1ListTagsForStreamCommandError = async (output, conte
|
|
|
1058
1007
|
...output,
|
|
1059
1008
|
body: await parseBody(output.body, context),
|
|
1060
1009
|
};
|
|
1061
|
-
let response;
|
|
1062
1010
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1063
1011
|
switch (errorCode) {
|
|
1064
1012
|
case "InvalidArgumentException":
|
|
@@ -1072,14 +1020,12 @@ const deserializeAws_json1_1ListTagsForStreamCommandError = async (output, conte
|
|
|
1072
1020
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1073
1021
|
default:
|
|
1074
1022
|
const parsedBody = parsedOutput.body;
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
$metadata,
|
|
1023
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1024
|
+
output,
|
|
1025
|
+
parsedBody,
|
|
1026
|
+
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
1027
|
+
errorCode,
|
|
1081
1028
|
});
|
|
1082
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1083
1029
|
}
|
|
1084
1030
|
};
|
|
1085
1031
|
const deserializeAws_json1_1MergeShardsCommand = async (output, context) => {
|
|
@@ -1098,7 +1044,6 @@ const deserializeAws_json1_1MergeShardsCommandError = async (output, context) =>
|
|
|
1098
1044
|
...output,
|
|
1099
1045
|
body: await parseBody(output.body, context),
|
|
1100
1046
|
};
|
|
1101
|
-
let response;
|
|
1102
1047
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1103
1048
|
switch (errorCode) {
|
|
1104
1049
|
case "InvalidArgumentException":
|
|
@@ -1118,14 +1063,12 @@ const deserializeAws_json1_1MergeShardsCommandError = async (output, context) =>
|
|
|
1118
1063
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1119
1064
|
default:
|
|
1120
1065
|
const parsedBody = parsedOutput.body;
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
$metadata,
|
|
1066
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1067
|
+
output,
|
|
1068
|
+
parsedBody,
|
|
1069
|
+
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
1070
|
+
errorCode,
|
|
1127
1071
|
});
|
|
1128
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1129
1072
|
}
|
|
1130
1073
|
};
|
|
1131
1074
|
const deserializeAws_json1_1PutRecordCommand = async (output, context) => {
|
|
@@ -1147,7 +1090,6 @@ const deserializeAws_json1_1PutRecordCommandError = async (output, context) => {
|
|
|
1147
1090
|
...output,
|
|
1148
1091
|
body: await parseBody(output.body, context),
|
|
1149
1092
|
};
|
|
1150
|
-
let response;
|
|
1151
1093
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1152
1094
|
switch (errorCode) {
|
|
1153
1095
|
case "InvalidArgumentException":
|
|
@@ -1179,14 +1121,12 @@ const deserializeAws_json1_1PutRecordCommandError = async (output, context) => {
|
|
|
1179
1121
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1180
1122
|
default:
|
|
1181
1123
|
const parsedBody = parsedOutput.body;
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
$metadata,
|
|
1124
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1125
|
+
output,
|
|
1126
|
+
parsedBody,
|
|
1127
|
+
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
1128
|
+
errorCode,
|
|
1188
1129
|
});
|
|
1189
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1190
1130
|
}
|
|
1191
1131
|
};
|
|
1192
1132
|
const deserializeAws_json1_1PutRecordsCommand = async (output, context) => {
|
|
@@ -1208,7 +1148,6 @@ const deserializeAws_json1_1PutRecordsCommandError = async (output, context) =>
|
|
|
1208
1148
|
...output,
|
|
1209
1149
|
body: await parseBody(output.body, context),
|
|
1210
1150
|
};
|
|
1211
|
-
let response;
|
|
1212
1151
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1213
1152
|
switch (errorCode) {
|
|
1214
1153
|
case "InvalidArgumentException":
|
|
@@ -1240,14 +1179,12 @@ const deserializeAws_json1_1PutRecordsCommandError = async (output, context) =>
|
|
|
1240
1179
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1241
1180
|
default:
|
|
1242
1181
|
const parsedBody = parsedOutput.body;
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
$metadata,
|
|
1182
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1183
|
+
output,
|
|
1184
|
+
parsedBody,
|
|
1185
|
+
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
1186
|
+
errorCode,
|
|
1249
1187
|
});
|
|
1250
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1251
1188
|
}
|
|
1252
1189
|
};
|
|
1253
1190
|
const deserializeAws_json1_1RegisterStreamConsumerCommand = async (output, context) => {
|
|
@@ -1269,7 +1206,6 @@ const deserializeAws_json1_1RegisterStreamConsumerCommandError = async (output,
|
|
|
1269
1206
|
...output,
|
|
1270
1207
|
body: await parseBody(output.body, context),
|
|
1271
1208
|
};
|
|
1272
|
-
let response;
|
|
1273
1209
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1274
1210
|
switch (errorCode) {
|
|
1275
1211
|
case "InvalidArgumentException":
|
|
@@ -1286,14 +1222,12 @@ const deserializeAws_json1_1RegisterStreamConsumerCommandError = async (output,
|
|
|
1286
1222
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1287
1223
|
default:
|
|
1288
1224
|
const parsedBody = parsedOutput.body;
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
$metadata,
|
|
1225
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1226
|
+
output,
|
|
1227
|
+
parsedBody,
|
|
1228
|
+
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
1229
|
+
errorCode,
|
|
1295
1230
|
});
|
|
1296
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1297
1231
|
}
|
|
1298
1232
|
};
|
|
1299
1233
|
const deserializeAws_json1_1RemoveTagsFromStreamCommand = async (output, context) => {
|
|
@@ -1312,7 +1246,6 @@ const deserializeAws_json1_1RemoveTagsFromStreamCommandError = async (output, co
|
|
|
1312
1246
|
...output,
|
|
1313
1247
|
body: await parseBody(output.body, context),
|
|
1314
1248
|
};
|
|
1315
|
-
let response;
|
|
1316
1249
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1317
1250
|
switch (errorCode) {
|
|
1318
1251
|
case "InvalidArgumentException":
|
|
@@ -1329,14 +1262,12 @@ const deserializeAws_json1_1RemoveTagsFromStreamCommandError = async (output, co
|
|
|
1329
1262
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1330
1263
|
default:
|
|
1331
1264
|
const parsedBody = parsedOutput.body;
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
$metadata,
|
|
1265
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1266
|
+
output,
|
|
1267
|
+
parsedBody,
|
|
1268
|
+
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
1269
|
+
errorCode,
|
|
1338
1270
|
});
|
|
1339
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1340
1271
|
}
|
|
1341
1272
|
};
|
|
1342
1273
|
const deserializeAws_json1_1SplitShardCommand = async (output, context) => {
|
|
@@ -1355,7 +1286,6 @@ const deserializeAws_json1_1SplitShardCommandError = async (output, context) =>
|
|
|
1355
1286
|
...output,
|
|
1356
1287
|
body: await parseBody(output.body, context),
|
|
1357
1288
|
};
|
|
1358
|
-
let response;
|
|
1359
1289
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1360
1290
|
switch (errorCode) {
|
|
1361
1291
|
case "InvalidArgumentException":
|
|
@@ -1375,14 +1305,12 @@ const deserializeAws_json1_1SplitShardCommandError = async (output, context) =>
|
|
|
1375
1305
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1376
1306
|
default:
|
|
1377
1307
|
const parsedBody = parsedOutput.body;
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
$metadata,
|
|
1308
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1309
|
+
output,
|
|
1310
|
+
parsedBody,
|
|
1311
|
+
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
1312
|
+
errorCode,
|
|
1384
1313
|
});
|
|
1385
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1386
1314
|
}
|
|
1387
1315
|
};
|
|
1388
1316
|
const deserializeAws_json1_1StartStreamEncryptionCommand = async (output, context) => {
|
|
@@ -1401,7 +1329,6 @@ const deserializeAws_json1_1StartStreamEncryptionCommandError = async (output, c
|
|
|
1401
1329
|
...output,
|
|
1402
1330
|
body: await parseBody(output.body, context),
|
|
1403
1331
|
};
|
|
1404
|
-
let response;
|
|
1405
1332
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1406
1333
|
switch (errorCode) {
|
|
1407
1334
|
case "InvalidArgumentException":
|
|
@@ -1436,14 +1363,12 @@ const deserializeAws_json1_1StartStreamEncryptionCommandError = async (output, c
|
|
|
1436
1363
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1437
1364
|
default:
|
|
1438
1365
|
const parsedBody = parsedOutput.body;
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
$metadata,
|
|
1366
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1367
|
+
output,
|
|
1368
|
+
parsedBody,
|
|
1369
|
+
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
1370
|
+
errorCode,
|
|
1445
1371
|
});
|
|
1446
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1447
1372
|
}
|
|
1448
1373
|
};
|
|
1449
1374
|
const deserializeAws_json1_1StopStreamEncryptionCommand = async (output, context) => {
|
|
@@ -1462,7 +1387,6 @@ const deserializeAws_json1_1StopStreamEncryptionCommandError = async (output, co
|
|
|
1462
1387
|
...output,
|
|
1463
1388
|
body: await parseBody(output.body, context),
|
|
1464
1389
|
};
|
|
1465
|
-
let response;
|
|
1466
1390
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1467
1391
|
switch (errorCode) {
|
|
1468
1392
|
case "InvalidArgumentException":
|
|
@@ -1479,14 +1403,12 @@ const deserializeAws_json1_1StopStreamEncryptionCommandError = async (output, co
|
|
|
1479
1403
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1480
1404
|
default:
|
|
1481
1405
|
const parsedBody = parsedOutput.body;
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
$metadata,
|
|
1406
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1407
|
+
output,
|
|
1408
|
+
parsedBody,
|
|
1409
|
+
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
1410
|
+
errorCode,
|
|
1488
1411
|
});
|
|
1489
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1490
1412
|
}
|
|
1491
1413
|
};
|
|
1492
1414
|
const deserializeAws_json1_1SubscribeToShardCommand = async (output, context) => {
|
|
@@ -1506,7 +1428,6 @@ const deserializeAws_json1_1SubscribeToShardCommandError = async (output, contex
|
|
|
1506
1428
|
...output,
|
|
1507
1429
|
body: await parseBody(output.body, context),
|
|
1508
1430
|
};
|
|
1509
|
-
let response;
|
|
1510
1431
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1511
1432
|
switch (errorCode) {
|
|
1512
1433
|
case "InvalidArgumentException":
|
|
@@ -1523,14 +1444,12 @@ const deserializeAws_json1_1SubscribeToShardCommandError = async (output, contex
|
|
|
1523
1444
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1524
1445
|
default:
|
|
1525
1446
|
const parsedBody = parsedOutput.body;
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
$metadata,
|
|
1447
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1448
|
+
output,
|
|
1449
|
+
parsedBody,
|
|
1450
|
+
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
1451
|
+
errorCode,
|
|
1532
1452
|
});
|
|
1533
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1534
1453
|
}
|
|
1535
1454
|
};
|
|
1536
1455
|
const deserializeAws_json1_1UpdateShardCountCommand = async (output, context) => {
|
|
@@ -1552,7 +1471,6 @@ const deserializeAws_json1_1UpdateShardCountCommandError = async (output, contex
|
|
|
1552
1471
|
...output,
|
|
1553
1472
|
body: await parseBody(output.body, context),
|
|
1554
1473
|
};
|
|
1555
|
-
let response;
|
|
1556
1474
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1557
1475
|
switch (errorCode) {
|
|
1558
1476
|
case "InvalidArgumentException":
|
|
@@ -1572,14 +1490,12 @@ const deserializeAws_json1_1UpdateShardCountCommandError = async (output, contex
|
|
|
1572
1490
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1573
1491
|
default:
|
|
1574
1492
|
const parsedBody = parsedOutput.body;
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
$metadata,
|
|
1493
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1494
|
+
output,
|
|
1495
|
+
parsedBody,
|
|
1496
|
+
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
1497
|
+
errorCode,
|
|
1581
1498
|
});
|
|
1582
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1583
1499
|
}
|
|
1584
1500
|
};
|
|
1585
1501
|
const deserializeAws_json1_1UpdateStreamModeCommand = async (output, context) => {
|
|
@@ -1598,7 +1514,6 @@ const deserializeAws_json1_1UpdateStreamModeCommandError = async (output, contex
|
|
|
1598
1514
|
...output,
|
|
1599
1515
|
body: await parseBody(output.body, context),
|
|
1600
1516
|
};
|
|
1601
|
-
let response;
|
|
1602
1517
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1603
1518
|
switch (errorCode) {
|
|
1604
1519
|
case "InvalidArgumentException":
|
|
@@ -1615,14 +1530,12 @@ const deserializeAws_json1_1UpdateStreamModeCommandError = async (output, contex
|
|
|
1615
1530
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1616
1531
|
default:
|
|
1617
1532
|
const parsedBody = parsedOutput.body;
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
$metadata,
|
|
1533
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1534
|
+
output,
|
|
1535
|
+
parsedBody,
|
|
1536
|
+
exceptionCtor: KinesisServiceException_1.KinesisServiceException,
|
|
1537
|
+
errorCode,
|
|
1624
1538
|
});
|
|
1625
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1626
1539
|
}
|
|
1627
1540
|
};
|
|
1628
1541
|
const deserializeAws_json1_1ExpiredIteratorExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -2023,9 +1936,6 @@ const serializeAws_json1_1MetricsNameList = (input, context) => {
|
|
|
2023
1936
|
return input
|
|
2024
1937
|
.filter((e) => e != null)
|
|
2025
1938
|
.map((entry) => {
|
|
2026
|
-
if (entry === null) {
|
|
2027
|
-
return null;
|
|
2028
|
-
}
|
|
2029
1939
|
return entry;
|
|
2030
1940
|
});
|
|
2031
1941
|
};
|
|
@@ -2055,9 +1965,6 @@ const serializeAws_json1_1PutRecordsRequestEntryList = (input, context) => {
|
|
|
2055
1965
|
return input
|
|
2056
1966
|
.filter((e) => e != null)
|
|
2057
1967
|
.map((entry) => {
|
|
2058
|
-
if (entry === null) {
|
|
2059
|
-
return null;
|
|
2060
|
-
}
|
|
2061
1968
|
return serializeAws_json1_1PutRecordsRequestEntry(entry, context);
|
|
2062
1969
|
});
|
|
2063
1970
|
};
|
|
@@ -2126,9 +2033,6 @@ const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
|
2126
2033
|
return input
|
|
2127
2034
|
.filter((e) => e != null)
|
|
2128
2035
|
.map((entry) => {
|
|
2129
|
-
if (entry === null) {
|
|
2130
|
-
return null;
|
|
2131
|
-
}
|
|
2132
2036
|
return entry;
|
|
2133
2037
|
});
|
|
2134
2038
|
};
|