@aws-sdk/client-kinesis 3.120.0 → 3.128.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 +265 -296
- package/dist-es/protocols/Aws_json1_1.js +213 -244
- package/package.json +30 -30
|
@@ -313,8 +313,7 @@ const deserializeAws_json1_1AddTagsToStreamCommandError = async (output, context
|
|
|
313
313
|
body: await parseBody(output.body, context),
|
|
314
314
|
};
|
|
315
315
|
let response;
|
|
316
|
-
|
|
317
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
316
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
318
317
|
switch (errorCode) {
|
|
319
318
|
case "InvalidArgumentException":
|
|
320
319
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
@@ -330,10 +329,12 @@ const deserializeAws_json1_1AddTagsToStreamCommandError = async (output, context
|
|
|
330
329
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
331
330
|
default:
|
|
332
331
|
const parsedBody = parsedOutput.body;
|
|
332
|
+
const $metadata = deserializeMetadata(output);
|
|
333
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
333
334
|
response = new KinesisServiceException_1.KinesisServiceException({
|
|
334
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
335
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
335
336
|
$fault: "client",
|
|
336
|
-
$metadata
|
|
337
|
+
$metadata,
|
|
337
338
|
});
|
|
338
339
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
339
340
|
}
|
|
@@ -355,8 +356,7 @@ const deserializeAws_json1_1CreateStreamCommandError = async (output, context) =
|
|
|
355
356
|
body: await parseBody(output.body, context),
|
|
356
357
|
};
|
|
357
358
|
let response;
|
|
358
|
-
|
|
359
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
359
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
360
360
|
switch (errorCode) {
|
|
361
361
|
case "InvalidArgumentException":
|
|
362
362
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
@@ -369,10 +369,12 @@ const deserializeAws_json1_1CreateStreamCommandError = async (output, context) =
|
|
|
369
369
|
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
370
370
|
default:
|
|
371
371
|
const parsedBody = parsedOutput.body;
|
|
372
|
+
const $metadata = deserializeMetadata(output);
|
|
373
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
372
374
|
response = new KinesisServiceException_1.KinesisServiceException({
|
|
373
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
375
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
374
376
|
$fault: "client",
|
|
375
|
-
$metadata
|
|
377
|
+
$metadata,
|
|
376
378
|
});
|
|
377
379
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
378
380
|
}
|
|
@@ -394,8 +396,7 @@ const deserializeAws_json1_1DecreaseStreamRetentionPeriodCommandError = async (o
|
|
|
394
396
|
body: await parseBody(output.body, context),
|
|
395
397
|
};
|
|
396
398
|
let response;
|
|
397
|
-
|
|
398
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
399
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
399
400
|
switch (errorCode) {
|
|
400
401
|
case "InvalidArgumentException":
|
|
401
402
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
@@ -411,10 +412,12 @@ const deserializeAws_json1_1DecreaseStreamRetentionPeriodCommandError = async (o
|
|
|
411
412
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
412
413
|
default:
|
|
413
414
|
const parsedBody = parsedOutput.body;
|
|
415
|
+
const $metadata = deserializeMetadata(output);
|
|
416
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
414
417
|
response = new KinesisServiceException_1.KinesisServiceException({
|
|
415
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
418
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
416
419
|
$fault: "client",
|
|
417
|
-
$metadata
|
|
420
|
+
$metadata,
|
|
418
421
|
});
|
|
419
422
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
420
423
|
}
|
|
@@ -436,8 +439,7 @@ const deserializeAws_json1_1DeleteStreamCommandError = async (output, context) =
|
|
|
436
439
|
body: await parseBody(output.body, context),
|
|
437
440
|
};
|
|
438
441
|
let response;
|
|
439
|
-
|
|
440
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
442
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
441
443
|
switch (errorCode) {
|
|
442
444
|
case "LimitExceededException":
|
|
443
445
|
case "com.amazonaws.kinesis#LimitExceededException":
|
|
@@ -450,10 +452,12 @@ const deserializeAws_json1_1DeleteStreamCommandError = async (output, context) =
|
|
|
450
452
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
451
453
|
default:
|
|
452
454
|
const parsedBody = parsedOutput.body;
|
|
455
|
+
const $metadata = deserializeMetadata(output);
|
|
456
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
453
457
|
response = new KinesisServiceException_1.KinesisServiceException({
|
|
454
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
458
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
455
459
|
$fault: "client",
|
|
456
|
-
$metadata
|
|
460
|
+
$metadata,
|
|
457
461
|
});
|
|
458
462
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
459
463
|
}
|
|
@@ -475,8 +479,7 @@ const deserializeAws_json1_1DeregisterStreamConsumerCommandError = async (output
|
|
|
475
479
|
body: await parseBody(output.body, context),
|
|
476
480
|
};
|
|
477
481
|
let response;
|
|
478
|
-
|
|
479
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
482
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
480
483
|
switch (errorCode) {
|
|
481
484
|
case "InvalidArgumentException":
|
|
482
485
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
@@ -489,10 +492,12 @@ const deserializeAws_json1_1DeregisterStreamConsumerCommandError = async (output
|
|
|
489
492
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
490
493
|
default:
|
|
491
494
|
const parsedBody = parsedOutput.body;
|
|
495
|
+
const $metadata = deserializeMetadata(output);
|
|
496
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
492
497
|
response = new KinesisServiceException_1.KinesisServiceException({
|
|
493
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
498
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
494
499
|
$fault: "client",
|
|
495
|
-
$metadata
|
|
500
|
+
$metadata,
|
|
496
501
|
});
|
|
497
502
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
498
503
|
}
|
|
@@ -517,18 +522,19 @@ const deserializeAws_json1_1DescribeLimitsCommandError = async (output, context)
|
|
|
517
522
|
body: await parseBody(output.body, context),
|
|
518
523
|
};
|
|
519
524
|
let response;
|
|
520
|
-
|
|
521
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
525
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
522
526
|
switch (errorCode) {
|
|
523
527
|
case "LimitExceededException":
|
|
524
528
|
case "com.amazonaws.kinesis#LimitExceededException":
|
|
525
529
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
526
530
|
default:
|
|
527
531
|
const parsedBody = parsedOutput.body;
|
|
532
|
+
const $metadata = deserializeMetadata(output);
|
|
533
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
528
534
|
response = new KinesisServiceException_1.KinesisServiceException({
|
|
529
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
535
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
530
536
|
$fault: "client",
|
|
531
|
-
$metadata
|
|
537
|
+
$metadata,
|
|
532
538
|
});
|
|
533
539
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
534
540
|
}
|
|
@@ -553,8 +559,7 @@ const deserializeAws_json1_1DescribeStreamCommandError = async (output, context)
|
|
|
553
559
|
body: await parseBody(output.body, context),
|
|
554
560
|
};
|
|
555
561
|
let response;
|
|
556
|
-
|
|
557
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
562
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
558
563
|
switch (errorCode) {
|
|
559
564
|
case "LimitExceededException":
|
|
560
565
|
case "com.amazonaws.kinesis#LimitExceededException":
|
|
@@ -564,10 +569,12 @@ const deserializeAws_json1_1DescribeStreamCommandError = async (output, context)
|
|
|
564
569
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
565
570
|
default:
|
|
566
571
|
const parsedBody = parsedOutput.body;
|
|
572
|
+
const $metadata = deserializeMetadata(output);
|
|
573
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
567
574
|
response = new KinesisServiceException_1.KinesisServiceException({
|
|
568
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
575
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
569
576
|
$fault: "client",
|
|
570
|
-
$metadata
|
|
577
|
+
$metadata,
|
|
571
578
|
});
|
|
572
579
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
573
580
|
}
|
|
@@ -592,8 +599,7 @@ const deserializeAws_json1_1DescribeStreamConsumerCommandError = async (output,
|
|
|
592
599
|
body: await parseBody(output.body, context),
|
|
593
600
|
};
|
|
594
601
|
let response;
|
|
595
|
-
|
|
596
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
602
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
597
603
|
switch (errorCode) {
|
|
598
604
|
case "InvalidArgumentException":
|
|
599
605
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
@@ -606,10 +612,12 @@ const deserializeAws_json1_1DescribeStreamConsumerCommandError = async (output,
|
|
|
606
612
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
607
613
|
default:
|
|
608
614
|
const parsedBody = parsedOutput.body;
|
|
615
|
+
const $metadata = deserializeMetadata(output);
|
|
616
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
609
617
|
response = new KinesisServiceException_1.KinesisServiceException({
|
|
610
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
618
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
611
619
|
$fault: "client",
|
|
612
|
-
$metadata
|
|
620
|
+
$metadata,
|
|
613
621
|
});
|
|
614
622
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
615
623
|
}
|
|
@@ -634,8 +642,7 @@ const deserializeAws_json1_1DescribeStreamSummaryCommandError = async (output, c
|
|
|
634
642
|
body: await parseBody(output.body, context),
|
|
635
643
|
};
|
|
636
644
|
let response;
|
|
637
|
-
|
|
638
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
645
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
639
646
|
switch (errorCode) {
|
|
640
647
|
case "LimitExceededException":
|
|
641
648
|
case "com.amazonaws.kinesis#LimitExceededException":
|
|
@@ -645,10 +652,12 @@ const deserializeAws_json1_1DescribeStreamSummaryCommandError = async (output, c
|
|
|
645
652
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
646
653
|
default:
|
|
647
654
|
const parsedBody = parsedOutput.body;
|
|
655
|
+
const $metadata = deserializeMetadata(output);
|
|
656
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
648
657
|
response = new KinesisServiceException_1.KinesisServiceException({
|
|
649
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
658
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
650
659
|
$fault: "client",
|
|
651
|
-
$metadata
|
|
660
|
+
$metadata,
|
|
652
661
|
});
|
|
653
662
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
654
663
|
}
|
|
@@ -673,8 +682,7 @@ const deserializeAws_json1_1DisableEnhancedMonitoringCommandError = async (outpu
|
|
|
673
682
|
body: await parseBody(output.body, context),
|
|
674
683
|
};
|
|
675
684
|
let response;
|
|
676
|
-
|
|
677
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
685
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
678
686
|
switch (errorCode) {
|
|
679
687
|
case "InvalidArgumentException":
|
|
680
688
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
@@ -690,10 +698,12 @@ const deserializeAws_json1_1DisableEnhancedMonitoringCommandError = async (outpu
|
|
|
690
698
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
691
699
|
default:
|
|
692
700
|
const parsedBody = parsedOutput.body;
|
|
701
|
+
const $metadata = deserializeMetadata(output);
|
|
702
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
693
703
|
response = new KinesisServiceException_1.KinesisServiceException({
|
|
694
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
704
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
695
705
|
$fault: "client",
|
|
696
|
-
$metadata
|
|
706
|
+
$metadata,
|
|
697
707
|
});
|
|
698
708
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
699
709
|
}
|
|
@@ -718,8 +728,7 @@ const deserializeAws_json1_1EnableEnhancedMonitoringCommandError = async (output
|
|
|
718
728
|
body: await parseBody(output.body, context),
|
|
719
729
|
};
|
|
720
730
|
let response;
|
|
721
|
-
|
|
722
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
731
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
723
732
|
switch (errorCode) {
|
|
724
733
|
case "InvalidArgumentException":
|
|
725
734
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
@@ -735,10 +744,12 @@ const deserializeAws_json1_1EnableEnhancedMonitoringCommandError = async (output
|
|
|
735
744
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
736
745
|
default:
|
|
737
746
|
const parsedBody = parsedOutput.body;
|
|
747
|
+
const $metadata = deserializeMetadata(output);
|
|
748
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
738
749
|
response = new KinesisServiceException_1.KinesisServiceException({
|
|
739
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
750
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
740
751
|
$fault: "client",
|
|
741
|
-
$metadata
|
|
752
|
+
$metadata,
|
|
742
753
|
});
|
|
743
754
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
744
755
|
}
|
|
@@ -763,8 +774,7 @@ const deserializeAws_json1_1GetRecordsCommandError = async (output, context) =>
|
|
|
763
774
|
body: await parseBody(output.body, context),
|
|
764
775
|
};
|
|
765
776
|
let response;
|
|
766
|
-
|
|
767
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
777
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
768
778
|
switch (errorCode) {
|
|
769
779
|
case "ExpiredIteratorException":
|
|
770
780
|
case "com.amazonaws.kinesis#ExpiredIteratorException":
|
|
@@ -798,10 +808,12 @@ const deserializeAws_json1_1GetRecordsCommandError = async (output, context) =>
|
|
|
798
808
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
799
809
|
default:
|
|
800
810
|
const parsedBody = parsedOutput.body;
|
|
811
|
+
const $metadata = deserializeMetadata(output);
|
|
812
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
801
813
|
response = new KinesisServiceException_1.KinesisServiceException({
|
|
802
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
814
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
803
815
|
$fault: "client",
|
|
804
|
-
$metadata
|
|
816
|
+
$metadata,
|
|
805
817
|
});
|
|
806
818
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
807
819
|
}
|
|
@@ -826,8 +838,7 @@ const deserializeAws_json1_1GetShardIteratorCommandError = async (output, contex
|
|
|
826
838
|
body: await parseBody(output.body, context),
|
|
827
839
|
};
|
|
828
840
|
let response;
|
|
829
|
-
|
|
830
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
841
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
831
842
|
switch (errorCode) {
|
|
832
843
|
case "InvalidArgumentException":
|
|
833
844
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
@@ -840,10 +851,12 @@ const deserializeAws_json1_1GetShardIteratorCommandError = async (output, contex
|
|
|
840
851
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
841
852
|
default:
|
|
842
853
|
const parsedBody = parsedOutput.body;
|
|
854
|
+
const $metadata = deserializeMetadata(output);
|
|
855
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
843
856
|
response = new KinesisServiceException_1.KinesisServiceException({
|
|
844
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
857
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
845
858
|
$fault: "client",
|
|
846
|
-
$metadata
|
|
859
|
+
$metadata,
|
|
847
860
|
});
|
|
848
861
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
849
862
|
}
|
|
@@ -865,8 +878,7 @@ const deserializeAws_json1_1IncreaseStreamRetentionPeriodCommandError = async (o
|
|
|
865
878
|
body: await parseBody(output.body, context),
|
|
866
879
|
};
|
|
867
880
|
let response;
|
|
868
|
-
|
|
869
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
881
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
870
882
|
switch (errorCode) {
|
|
871
883
|
case "InvalidArgumentException":
|
|
872
884
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
@@ -882,10 +894,12 @@ const deserializeAws_json1_1IncreaseStreamRetentionPeriodCommandError = async (o
|
|
|
882
894
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
883
895
|
default:
|
|
884
896
|
const parsedBody = parsedOutput.body;
|
|
897
|
+
const $metadata = deserializeMetadata(output);
|
|
898
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
885
899
|
response = new KinesisServiceException_1.KinesisServiceException({
|
|
886
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
900
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
887
901
|
$fault: "client",
|
|
888
|
-
$metadata
|
|
902
|
+
$metadata,
|
|
889
903
|
});
|
|
890
904
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
891
905
|
}
|
|
@@ -910,8 +924,7 @@ const deserializeAws_json1_1ListShardsCommandError = async (output, context) =>
|
|
|
910
924
|
body: await parseBody(output.body, context),
|
|
911
925
|
};
|
|
912
926
|
let response;
|
|
913
|
-
|
|
914
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
927
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
915
928
|
switch (errorCode) {
|
|
916
929
|
case "ExpiredNextTokenException":
|
|
917
930
|
case "com.amazonaws.kinesis#ExpiredNextTokenException":
|
|
@@ -930,10 +943,12 @@ const deserializeAws_json1_1ListShardsCommandError = async (output, context) =>
|
|
|
930
943
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
931
944
|
default:
|
|
932
945
|
const parsedBody = parsedOutput.body;
|
|
946
|
+
const $metadata = deserializeMetadata(output);
|
|
947
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
933
948
|
response = new KinesisServiceException_1.KinesisServiceException({
|
|
934
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
949
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
935
950
|
$fault: "client",
|
|
936
|
-
$metadata
|
|
951
|
+
$metadata,
|
|
937
952
|
});
|
|
938
953
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
939
954
|
}
|
|
@@ -958,8 +973,7 @@ const deserializeAws_json1_1ListStreamConsumersCommandError = async (output, con
|
|
|
958
973
|
body: await parseBody(output.body, context),
|
|
959
974
|
};
|
|
960
975
|
let response;
|
|
961
|
-
|
|
962
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
976
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
963
977
|
switch (errorCode) {
|
|
964
978
|
case "ExpiredNextTokenException":
|
|
965
979
|
case "com.amazonaws.kinesis#ExpiredNextTokenException":
|
|
@@ -978,10 +992,12 @@ const deserializeAws_json1_1ListStreamConsumersCommandError = async (output, con
|
|
|
978
992
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
979
993
|
default:
|
|
980
994
|
const parsedBody = parsedOutput.body;
|
|
995
|
+
const $metadata = deserializeMetadata(output);
|
|
996
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
981
997
|
response = new KinesisServiceException_1.KinesisServiceException({
|
|
982
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
998
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
983
999
|
$fault: "client",
|
|
984
|
-
$metadata
|
|
1000
|
+
$metadata,
|
|
985
1001
|
});
|
|
986
1002
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
987
1003
|
}
|
|
@@ -1006,18 +1022,19 @@ const deserializeAws_json1_1ListStreamsCommandError = async (output, context) =>
|
|
|
1006
1022
|
body: await parseBody(output.body, context),
|
|
1007
1023
|
};
|
|
1008
1024
|
let response;
|
|
1009
|
-
|
|
1010
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1025
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1011
1026
|
switch (errorCode) {
|
|
1012
1027
|
case "LimitExceededException":
|
|
1013
1028
|
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1014
1029
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1015
1030
|
default:
|
|
1016
1031
|
const parsedBody = parsedOutput.body;
|
|
1032
|
+
const $metadata = deserializeMetadata(output);
|
|
1033
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1017
1034
|
response = new KinesisServiceException_1.KinesisServiceException({
|
|
1018
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1035
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1019
1036
|
$fault: "client",
|
|
1020
|
-
$metadata
|
|
1037
|
+
$metadata,
|
|
1021
1038
|
});
|
|
1022
1039
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1023
1040
|
}
|
|
@@ -1042,8 +1059,7 @@ const deserializeAws_json1_1ListTagsForStreamCommandError = async (output, conte
|
|
|
1042
1059
|
body: await parseBody(output.body, context),
|
|
1043
1060
|
};
|
|
1044
1061
|
let response;
|
|
1045
|
-
|
|
1046
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1062
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1047
1063
|
switch (errorCode) {
|
|
1048
1064
|
case "InvalidArgumentException":
|
|
1049
1065
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
@@ -1056,10 +1072,12 @@ const deserializeAws_json1_1ListTagsForStreamCommandError = async (output, conte
|
|
|
1056
1072
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1057
1073
|
default:
|
|
1058
1074
|
const parsedBody = parsedOutput.body;
|
|
1075
|
+
const $metadata = deserializeMetadata(output);
|
|
1076
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1059
1077
|
response = new KinesisServiceException_1.KinesisServiceException({
|
|
1060
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1078
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1061
1079
|
$fault: "client",
|
|
1062
|
-
$metadata
|
|
1080
|
+
$metadata,
|
|
1063
1081
|
});
|
|
1064
1082
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1065
1083
|
}
|
|
@@ -1081,8 +1099,7 @@ const deserializeAws_json1_1MergeShardsCommandError = async (output, context) =>
|
|
|
1081
1099
|
body: await parseBody(output.body, context),
|
|
1082
1100
|
};
|
|
1083
1101
|
let response;
|
|
1084
|
-
|
|
1085
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1102
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1086
1103
|
switch (errorCode) {
|
|
1087
1104
|
case "InvalidArgumentException":
|
|
1088
1105
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
@@ -1101,10 +1118,12 @@ const deserializeAws_json1_1MergeShardsCommandError = async (output, context) =>
|
|
|
1101
1118
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1102
1119
|
default:
|
|
1103
1120
|
const parsedBody = parsedOutput.body;
|
|
1121
|
+
const $metadata = deserializeMetadata(output);
|
|
1122
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1104
1123
|
response = new KinesisServiceException_1.KinesisServiceException({
|
|
1105
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1124
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1106
1125
|
$fault: "client",
|
|
1107
|
-
$metadata
|
|
1126
|
+
$metadata,
|
|
1108
1127
|
});
|
|
1109
1128
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1110
1129
|
}
|
|
@@ -1129,8 +1148,7 @@ const deserializeAws_json1_1PutRecordCommandError = async (output, context) => {
|
|
|
1129
1148
|
body: await parseBody(output.body, context),
|
|
1130
1149
|
};
|
|
1131
1150
|
let response;
|
|
1132
|
-
|
|
1133
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1151
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1134
1152
|
switch (errorCode) {
|
|
1135
1153
|
case "InvalidArgumentException":
|
|
1136
1154
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
@@ -1161,10 +1179,12 @@ const deserializeAws_json1_1PutRecordCommandError = async (output, context) => {
|
|
|
1161
1179
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1162
1180
|
default:
|
|
1163
1181
|
const parsedBody = parsedOutput.body;
|
|
1182
|
+
const $metadata = deserializeMetadata(output);
|
|
1183
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1164
1184
|
response = new KinesisServiceException_1.KinesisServiceException({
|
|
1165
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1185
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1166
1186
|
$fault: "client",
|
|
1167
|
-
$metadata
|
|
1187
|
+
$metadata,
|
|
1168
1188
|
});
|
|
1169
1189
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1170
1190
|
}
|
|
@@ -1189,8 +1209,7 @@ const deserializeAws_json1_1PutRecordsCommandError = async (output, context) =>
|
|
|
1189
1209
|
body: await parseBody(output.body, context),
|
|
1190
1210
|
};
|
|
1191
1211
|
let response;
|
|
1192
|
-
|
|
1193
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1212
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1194
1213
|
switch (errorCode) {
|
|
1195
1214
|
case "InvalidArgumentException":
|
|
1196
1215
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
@@ -1221,10 +1240,12 @@ const deserializeAws_json1_1PutRecordsCommandError = async (output, context) =>
|
|
|
1221
1240
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1222
1241
|
default:
|
|
1223
1242
|
const parsedBody = parsedOutput.body;
|
|
1243
|
+
const $metadata = deserializeMetadata(output);
|
|
1244
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1224
1245
|
response = new KinesisServiceException_1.KinesisServiceException({
|
|
1225
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1246
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1226
1247
|
$fault: "client",
|
|
1227
|
-
$metadata
|
|
1248
|
+
$metadata,
|
|
1228
1249
|
});
|
|
1229
1250
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1230
1251
|
}
|
|
@@ -1249,8 +1270,7 @@ const deserializeAws_json1_1RegisterStreamConsumerCommandError = async (output,
|
|
|
1249
1270
|
body: await parseBody(output.body, context),
|
|
1250
1271
|
};
|
|
1251
1272
|
let response;
|
|
1252
|
-
|
|
1253
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1273
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1254
1274
|
switch (errorCode) {
|
|
1255
1275
|
case "InvalidArgumentException":
|
|
1256
1276
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
@@ -1266,10 +1286,12 @@ const deserializeAws_json1_1RegisterStreamConsumerCommandError = async (output,
|
|
|
1266
1286
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1267
1287
|
default:
|
|
1268
1288
|
const parsedBody = parsedOutput.body;
|
|
1289
|
+
const $metadata = deserializeMetadata(output);
|
|
1290
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1269
1291
|
response = new KinesisServiceException_1.KinesisServiceException({
|
|
1270
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1292
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1271
1293
|
$fault: "client",
|
|
1272
|
-
$metadata
|
|
1294
|
+
$metadata,
|
|
1273
1295
|
});
|
|
1274
1296
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1275
1297
|
}
|
|
@@ -1291,8 +1313,7 @@ const deserializeAws_json1_1RemoveTagsFromStreamCommandError = async (output, co
|
|
|
1291
1313
|
body: await parseBody(output.body, context),
|
|
1292
1314
|
};
|
|
1293
1315
|
let response;
|
|
1294
|
-
|
|
1295
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1316
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1296
1317
|
switch (errorCode) {
|
|
1297
1318
|
case "InvalidArgumentException":
|
|
1298
1319
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
@@ -1308,10 +1329,12 @@ const deserializeAws_json1_1RemoveTagsFromStreamCommandError = async (output, co
|
|
|
1308
1329
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1309
1330
|
default:
|
|
1310
1331
|
const parsedBody = parsedOutput.body;
|
|
1332
|
+
const $metadata = deserializeMetadata(output);
|
|
1333
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1311
1334
|
response = new KinesisServiceException_1.KinesisServiceException({
|
|
1312
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1335
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1313
1336
|
$fault: "client",
|
|
1314
|
-
$metadata
|
|
1337
|
+
$metadata,
|
|
1315
1338
|
});
|
|
1316
1339
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1317
1340
|
}
|
|
@@ -1333,8 +1356,7 @@ const deserializeAws_json1_1SplitShardCommandError = async (output, context) =>
|
|
|
1333
1356
|
body: await parseBody(output.body, context),
|
|
1334
1357
|
};
|
|
1335
1358
|
let response;
|
|
1336
|
-
|
|
1337
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1359
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1338
1360
|
switch (errorCode) {
|
|
1339
1361
|
case "InvalidArgumentException":
|
|
1340
1362
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
@@ -1353,10 +1375,12 @@ const deserializeAws_json1_1SplitShardCommandError = async (output, context) =>
|
|
|
1353
1375
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1354
1376
|
default:
|
|
1355
1377
|
const parsedBody = parsedOutput.body;
|
|
1378
|
+
const $metadata = deserializeMetadata(output);
|
|
1379
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1356
1380
|
response = new KinesisServiceException_1.KinesisServiceException({
|
|
1357
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1381
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1358
1382
|
$fault: "client",
|
|
1359
|
-
$metadata
|
|
1383
|
+
$metadata,
|
|
1360
1384
|
});
|
|
1361
1385
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1362
1386
|
}
|
|
@@ -1378,8 +1402,7 @@ const deserializeAws_json1_1StartStreamEncryptionCommandError = async (output, c
|
|
|
1378
1402
|
body: await parseBody(output.body, context),
|
|
1379
1403
|
};
|
|
1380
1404
|
let response;
|
|
1381
|
-
|
|
1382
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1405
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1383
1406
|
switch (errorCode) {
|
|
1384
1407
|
case "InvalidArgumentException":
|
|
1385
1408
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
@@ -1413,10 +1436,12 @@ const deserializeAws_json1_1StartStreamEncryptionCommandError = async (output, c
|
|
|
1413
1436
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1414
1437
|
default:
|
|
1415
1438
|
const parsedBody = parsedOutput.body;
|
|
1439
|
+
const $metadata = deserializeMetadata(output);
|
|
1440
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1416
1441
|
response = new KinesisServiceException_1.KinesisServiceException({
|
|
1417
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1442
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1418
1443
|
$fault: "client",
|
|
1419
|
-
$metadata
|
|
1444
|
+
$metadata,
|
|
1420
1445
|
});
|
|
1421
1446
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1422
1447
|
}
|
|
@@ -1438,8 +1463,7 @@ const deserializeAws_json1_1StopStreamEncryptionCommandError = async (output, co
|
|
|
1438
1463
|
body: await parseBody(output.body, context),
|
|
1439
1464
|
};
|
|
1440
1465
|
let response;
|
|
1441
|
-
|
|
1442
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1466
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1443
1467
|
switch (errorCode) {
|
|
1444
1468
|
case "InvalidArgumentException":
|
|
1445
1469
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
@@ -1455,10 +1479,12 @@ const deserializeAws_json1_1StopStreamEncryptionCommandError = async (output, co
|
|
|
1455
1479
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1456
1480
|
default:
|
|
1457
1481
|
const parsedBody = parsedOutput.body;
|
|
1482
|
+
const $metadata = deserializeMetadata(output);
|
|
1483
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1458
1484
|
response = new KinesisServiceException_1.KinesisServiceException({
|
|
1459
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1485
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1460
1486
|
$fault: "client",
|
|
1461
|
-
$metadata
|
|
1487
|
+
$metadata,
|
|
1462
1488
|
});
|
|
1463
1489
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1464
1490
|
}
|
|
@@ -1483,8 +1509,7 @@ const deserializeAws_json1_1SubscribeToShardCommandError = async (output, contex
|
|
|
1483
1509
|
body: await parseBody(output.body, context),
|
|
1484
1510
|
};
|
|
1485
1511
|
let response;
|
|
1486
|
-
|
|
1487
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1512
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1488
1513
|
switch (errorCode) {
|
|
1489
1514
|
case "InvalidArgumentException":
|
|
1490
1515
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
@@ -1500,10 +1525,12 @@ const deserializeAws_json1_1SubscribeToShardCommandError = async (output, contex
|
|
|
1500
1525
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1501
1526
|
default:
|
|
1502
1527
|
const parsedBody = parsedOutput.body;
|
|
1528
|
+
const $metadata = deserializeMetadata(output);
|
|
1529
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1503
1530
|
response = new KinesisServiceException_1.KinesisServiceException({
|
|
1504
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1531
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1505
1532
|
$fault: "client",
|
|
1506
|
-
$metadata
|
|
1533
|
+
$metadata,
|
|
1507
1534
|
});
|
|
1508
1535
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1509
1536
|
}
|
|
@@ -1528,8 +1555,7 @@ const deserializeAws_json1_1UpdateShardCountCommandError = async (output, contex
|
|
|
1528
1555
|
body: await parseBody(output.body, context),
|
|
1529
1556
|
};
|
|
1530
1557
|
let response;
|
|
1531
|
-
|
|
1532
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1558
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1533
1559
|
switch (errorCode) {
|
|
1534
1560
|
case "InvalidArgumentException":
|
|
1535
1561
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
@@ -1548,10 +1574,12 @@ const deserializeAws_json1_1UpdateShardCountCommandError = async (output, contex
|
|
|
1548
1574
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1549
1575
|
default:
|
|
1550
1576
|
const parsedBody = parsedOutput.body;
|
|
1577
|
+
const $metadata = deserializeMetadata(output);
|
|
1578
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1551
1579
|
response = new KinesisServiceException_1.KinesisServiceException({
|
|
1552
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1580
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1553
1581
|
$fault: "client",
|
|
1554
|
-
$metadata
|
|
1582
|
+
$metadata,
|
|
1555
1583
|
});
|
|
1556
1584
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1557
1585
|
}
|
|
@@ -1573,8 +1601,7 @@ const deserializeAws_json1_1UpdateStreamModeCommandError = async (output, contex
|
|
|
1573
1601
|
body: await parseBody(output.body, context),
|
|
1574
1602
|
};
|
|
1575
1603
|
let response;
|
|
1576
|
-
|
|
1577
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1604
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1578
1605
|
switch (errorCode) {
|
|
1579
1606
|
case "InvalidArgumentException":
|
|
1580
1607
|
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
@@ -1590,10 +1617,12 @@ const deserializeAws_json1_1UpdateStreamModeCommandError = async (output, contex
|
|
|
1590
1617
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1591
1618
|
default:
|
|
1592
1619
|
const parsedBody = parsedOutput.body;
|
|
1620
|
+
const $metadata = deserializeMetadata(output);
|
|
1621
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1593
1622
|
response = new KinesisServiceException_1.KinesisServiceException({
|
|
1594
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1623
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1595
1624
|
$fault: "client",
|
|
1596
|
-
$metadata
|
|
1625
|
+
$metadata,
|
|
1597
1626
|
});
|
|
1598
1627
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1599
1628
|
}
|
|
@@ -1726,39 +1755,36 @@ const deserializeAws_json1_1ValidationExceptionResponse = async (parsedOutput, c
|
|
|
1726
1755
|
};
|
|
1727
1756
|
const serializeAws_json1_1AddTagsToStreamInput = (input, context) => {
|
|
1728
1757
|
return {
|
|
1729
|
-
...(input.StreamName
|
|
1730
|
-
...(input.Tags
|
|
1758
|
+
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1759
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagMap(input.Tags, context) }),
|
|
1731
1760
|
};
|
|
1732
1761
|
};
|
|
1733
1762
|
const serializeAws_json1_1CreateStreamInput = (input, context) => {
|
|
1734
1763
|
return {
|
|
1735
|
-
...(input.ShardCount
|
|
1736
|
-
...(input.StreamModeDetails
|
|
1737
|
-
input.StreamModeDetails !== null && {
|
|
1764
|
+
...(input.ShardCount != null && { ShardCount: input.ShardCount }),
|
|
1765
|
+
...(input.StreamModeDetails != null && {
|
|
1738
1766
|
StreamModeDetails: serializeAws_json1_1StreamModeDetails(input.StreamModeDetails, context),
|
|
1739
1767
|
}),
|
|
1740
|
-
...(input.StreamName
|
|
1768
|
+
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1741
1769
|
};
|
|
1742
1770
|
};
|
|
1743
1771
|
const serializeAws_json1_1DecreaseStreamRetentionPeriodInput = (input, context) => {
|
|
1744
1772
|
return {
|
|
1745
|
-
...(input.RetentionPeriodHours
|
|
1746
|
-
|
|
1747
|
-
...(input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }),
|
|
1773
|
+
...(input.RetentionPeriodHours != null && { RetentionPeriodHours: input.RetentionPeriodHours }),
|
|
1774
|
+
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1748
1775
|
};
|
|
1749
1776
|
};
|
|
1750
1777
|
const serializeAws_json1_1DeleteStreamInput = (input, context) => {
|
|
1751
1778
|
return {
|
|
1752
|
-
...(input.EnforceConsumerDeletion
|
|
1753
|
-
|
|
1754
|
-
...(input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }),
|
|
1779
|
+
...(input.EnforceConsumerDeletion != null && { EnforceConsumerDeletion: input.EnforceConsumerDeletion }),
|
|
1780
|
+
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1755
1781
|
};
|
|
1756
1782
|
};
|
|
1757
1783
|
const serializeAws_json1_1DeregisterStreamConsumerInput = (input, context) => {
|
|
1758
1784
|
return {
|
|
1759
|
-
...(input.ConsumerARN
|
|
1760
|
-
...(input.ConsumerName
|
|
1761
|
-
...(input.StreamARN
|
|
1785
|
+
...(input.ConsumerARN != null && { ConsumerARN: input.ConsumerARN }),
|
|
1786
|
+
...(input.ConsumerName != null && { ConsumerName: input.ConsumerName }),
|
|
1787
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1762
1788
|
};
|
|
1763
1789
|
};
|
|
1764
1790
|
const serializeAws_json1_1DescribeLimitsInput = (input, context) => {
|
|
@@ -1766,114 +1792,100 @@ const serializeAws_json1_1DescribeLimitsInput = (input, context) => {
|
|
|
1766
1792
|
};
|
|
1767
1793
|
const serializeAws_json1_1DescribeStreamConsumerInput = (input, context) => {
|
|
1768
1794
|
return {
|
|
1769
|
-
...(input.ConsumerARN
|
|
1770
|
-
...(input.ConsumerName
|
|
1771
|
-
...(input.StreamARN
|
|
1795
|
+
...(input.ConsumerARN != null && { ConsumerARN: input.ConsumerARN }),
|
|
1796
|
+
...(input.ConsumerName != null && { ConsumerName: input.ConsumerName }),
|
|
1797
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1772
1798
|
};
|
|
1773
1799
|
};
|
|
1774
1800
|
const serializeAws_json1_1DescribeStreamInput = (input, context) => {
|
|
1775
1801
|
return {
|
|
1776
|
-
...(input.ExclusiveStartShardId
|
|
1777
|
-
|
|
1778
|
-
...(input.
|
|
1779
|
-
...(input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }),
|
|
1802
|
+
...(input.ExclusiveStartShardId != null && { ExclusiveStartShardId: input.ExclusiveStartShardId }),
|
|
1803
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
1804
|
+
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1780
1805
|
};
|
|
1781
1806
|
};
|
|
1782
1807
|
const serializeAws_json1_1DescribeStreamSummaryInput = (input, context) => {
|
|
1783
1808
|
return {
|
|
1784
|
-
...(input.StreamName
|
|
1809
|
+
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1785
1810
|
};
|
|
1786
1811
|
};
|
|
1787
1812
|
const serializeAws_json1_1DisableEnhancedMonitoringInput = (input, context) => {
|
|
1788
1813
|
return {
|
|
1789
|
-
...(input.ShardLevelMetrics
|
|
1790
|
-
input.ShardLevelMetrics !== null && {
|
|
1814
|
+
...(input.ShardLevelMetrics != null && {
|
|
1791
1815
|
ShardLevelMetrics: serializeAws_json1_1MetricsNameList(input.ShardLevelMetrics, context),
|
|
1792
1816
|
}),
|
|
1793
|
-
...(input.StreamName
|
|
1817
|
+
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1794
1818
|
};
|
|
1795
1819
|
};
|
|
1796
1820
|
const serializeAws_json1_1EnableEnhancedMonitoringInput = (input, context) => {
|
|
1797
1821
|
return {
|
|
1798
|
-
...(input.ShardLevelMetrics
|
|
1799
|
-
input.ShardLevelMetrics !== null && {
|
|
1822
|
+
...(input.ShardLevelMetrics != null && {
|
|
1800
1823
|
ShardLevelMetrics: serializeAws_json1_1MetricsNameList(input.ShardLevelMetrics, context),
|
|
1801
1824
|
}),
|
|
1802
|
-
...(input.StreamName
|
|
1825
|
+
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1803
1826
|
};
|
|
1804
1827
|
};
|
|
1805
1828
|
const serializeAws_json1_1GetRecordsInput = (input, context) => {
|
|
1806
1829
|
return {
|
|
1807
|
-
...(input.Limit
|
|
1808
|
-
...(input.ShardIterator
|
|
1830
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
1831
|
+
...(input.ShardIterator != null && { ShardIterator: input.ShardIterator }),
|
|
1809
1832
|
};
|
|
1810
1833
|
};
|
|
1811
1834
|
const serializeAws_json1_1GetShardIteratorInput = (input, context) => {
|
|
1812
1835
|
return {
|
|
1813
|
-
...(input.ShardId
|
|
1814
|
-
...(input.ShardIteratorType
|
|
1815
|
-
|
|
1816
|
-
...(input.
|
|
1817
|
-
|
|
1818
|
-
...(input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }),
|
|
1819
|
-
...(input.Timestamp !== undefined &&
|
|
1820
|
-
input.Timestamp !== null && { Timestamp: Math.round(input.Timestamp.getTime() / 1000) }),
|
|
1836
|
+
...(input.ShardId != null && { ShardId: input.ShardId }),
|
|
1837
|
+
...(input.ShardIteratorType != null && { ShardIteratorType: input.ShardIteratorType }),
|
|
1838
|
+
...(input.StartingSequenceNumber != null && { StartingSequenceNumber: input.StartingSequenceNumber }),
|
|
1839
|
+
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1840
|
+
...(input.Timestamp != null && { Timestamp: Math.round(input.Timestamp.getTime() / 1000) }),
|
|
1821
1841
|
};
|
|
1822
1842
|
};
|
|
1823
1843
|
const serializeAws_json1_1IncreaseStreamRetentionPeriodInput = (input, context) => {
|
|
1824
1844
|
return {
|
|
1825
|
-
...(input.RetentionPeriodHours
|
|
1826
|
-
|
|
1827
|
-
...(input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }),
|
|
1845
|
+
...(input.RetentionPeriodHours != null && { RetentionPeriodHours: input.RetentionPeriodHours }),
|
|
1846
|
+
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1828
1847
|
};
|
|
1829
1848
|
};
|
|
1830
1849
|
const serializeAws_json1_1ListShardsInput = (input, context) => {
|
|
1831
1850
|
return {
|
|
1832
|
-
...(input.ExclusiveStartShardId
|
|
1833
|
-
|
|
1834
|
-
...(input.
|
|
1835
|
-
...(input.
|
|
1836
|
-
...(input.
|
|
1837
|
-
input.ShardFilter !== null && { ShardFilter: serializeAws_json1_1ShardFilter(input.ShardFilter, context) }),
|
|
1838
|
-
...(input.StreamCreationTimestamp !== undefined &&
|
|
1839
|
-
input.StreamCreationTimestamp !== null && {
|
|
1851
|
+
...(input.ExclusiveStartShardId != null && { ExclusiveStartShardId: input.ExclusiveStartShardId }),
|
|
1852
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1853
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1854
|
+
...(input.ShardFilter != null && { ShardFilter: serializeAws_json1_1ShardFilter(input.ShardFilter, context) }),
|
|
1855
|
+
...(input.StreamCreationTimestamp != null && {
|
|
1840
1856
|
StreamCreationTimestamp: Math.round(input.StreamCreationTimestamp.getTime() / 1000),
|
|
1841
1857
|
}),
|
|
1842
|
-
...(input.StreamName
|
|
1858
|
+
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1843
1859
|
};
|
|
1844
1860
|
};
|
|
1845
1861
|
const serializeAws_json1_1ListStreamConsumersInput = (input, context) => {
|
|
1846
1862
|
return {
|
|
1847
|
-
...(input.MaxResults
|
|
1848
|
-
...(input.NextToken
|
|
1849
|
-
...(input.StreamARN
|
|
1850
|
-
...(input.StreamCreationTimestamp
|
|
1851
|
-
input.StreamCreationTimestamp !== null && {
|
|
1863
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1864
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1865
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1866
|
+
...(input.StreamCreationTimestamp != null && {
|
|
1852
1867
|
StreamCreationTimestamp: Math.round(input.StreamCreationTimestamp.getTime() / 1000),
|
|
1853
1868
|
}),
|
|
1854
1869
|
};
|
|
1855
1870
|
};
|
|
1856
1871
|
const serializeAws_json1_1ListStreamsInput = (input, context) => {
|
|
1857
1872
|
return {
|
|
1858
|
-
...(input.ExclusiveStartStreamName
|
|
1859
|
-
|
|
1860
|
-
...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
|
|
1873
|
+
...(input.ExclusiveStartStreamName != null && { ExclusiveStartStreamName: input.ExclusiveStartStreamName }),
|
|
1874
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
1861
1875
|
};
|
|
1862
1876
|
};
|
|
1863
1877
|
const serializeAws_json1_1ListTagsForStreamInput = (input, context) => {
|
|
1864
1878
|
return {
|
|
1865
|
-
...(input.ExclusiveStartTagKey
|
|
1866
|
-
|
|
1867
|
-
...(input.
|
|
1868
|
-
...(input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }),
|
|
1879
|
+
...(input.ExclusiveStartTagKey != null && { ExclusiveStartTagKey: input.ExclusiveStartTagKey }),
|
|
1880
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
1881
|
+
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1869
1882
|
};
|
|
1870
1883
|
};
|
|
1871
1884
|
const serializeAws_json1_1MergeShardsInput = (input, context) => {
|
|
1872
1885
|
return {
|
|
1873
|
-
...(input.AdjacentShardToMerge
|
|
1874
|
-
|
|
1875
|
-
...(input.
|
|
1876
|
-
...(input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }),
|
|
1886
|
+
...(input.AdjacentShardToMerge != null && { AdjacentShardToMerge: input.AdjacentShardToMerge }),
|
|
1887
|
+
...(input.ShardToMerge != null && { ShardToMerge: input.ShardToMerge }),
|
|
1888
|
+
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1877
1889
|
};
|
|
1878
1890
|
};
|
|
1879
1891
|
const serializeAws_json1_1MetricsNameList = (input, context) => {
|
|
@@ -1888,28 +1900,24 @@ const serializeAws_json1_1MetricsNameList = (input, context) => {
|
|
|
1888
1900
|
};
|
|
1889
1901
|
const serializeAws_json1_1PutRecordInput = (input, context) => {
|
|
1890
1902
|
return {
|
|
1891
|
-
...(input.Data
|
|
1892
|
-
...(input.ExplicitHashKey
|
|
1893
|
-
|
|
1894
|
-
...(input.
|
|
1895
|
-
...(input.
|
|
1896
|
-
input.SequenceNumberForOrdering !== null && { SequenceNumberForOrdering: input.SequenceNumberForOrdering }),
|
|
1897
|
-
...(input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }),
|
|
1903
|
+
...(input.Data != null && { Data: context.base64Encoder(input.Data) }),
|
|
1904
|
+
...(input.ExplicitHashKey != null && { ExplicitHashKey: input.ExplicitHashKey }),
|
|
1905
|
+
...(input.PartitionKey != null && { PartitionKey: input.PartitionKey }),
|
|
1906
|
+
...(input.SequenceNumberForOrdering != null && { SequenceNumberForOrdering: input.SequenceNumberForOrdering }),
|
|
1907
|
+
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1898
1908
|
};
|
|
1899
1909
|
};
|
|
1900
1910
|
const serializeAws_json1_1PutRecordsInput = (input, context) => {
|
|
1901
1911
|
return {
|
|
1902
|
-
...(input.Records
|
|
1903
|
-
|
|
1904
|
-
...(input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }),
|
|
1912
|
+
...(input.Records != null && { Records: serializeAws_json1_1PutRecordsRequestEntryList(input.Records, context) }),
|
|
1913
|
+
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1905
1914
|
};
|
|
1906
1915
|
};
|
|
1907
1916
|
const serializeAws_json1_1PutRecordsRequestEntry = (input, context) => {
|
|
1908
1917
|
return {
|
|
1909
|
-
...(input.Data
|
|
1910
|
-
...(input.ExplicitHashKey
|
|
1911
|
-
|
|
1912
|
-
...(input.PartitionKey !== undefined && input.PartitionKey !== null && { PartitionKey: input.PartitionKey }),
|
|
1918
|
+
...(input.Data != null && { Data: context.base64Encoder(input.Data) }),
|
|
1919
|
+
...(input.ExplicitHashKey != null && { ExplicitHashKey: input.ExplicitHashKey }),
|
|
1920
|
+
...(input.PartitionKey != null && { PartitionKey: input.PartitionKey }),
|
|
1913
1921
|
};
|
|
1914
1922
|
};
|
|
1915
1923
|
const serializeAws_json1_1PutRecordsRequestEntryList = (input, context) => {
|
|
@@ -1924,69 +1932,61 @@ const serializeAws_json1_1PutRecordsRequestEntryList = (input, context) => {
|
|
|
1924
1932
|
};
|
|
1925
1933
|
const serializeAws_json1_1RegisterStreamConsumerInput = (input, context) => {
|
|
1926
1934
|
return {
|
|
1927
|
-
...(input.ConsumerName
|
|
1928
|
-
...(input.StreamARN
|
|
1935
|
+
...(input.ConsumerName != null && { ConsumerName: input.ConsumerName }),
|
|
1936
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
1929
1937
|
};
|
|
1930
1938
|
};
|
|
1931
1939
|
const serializeAws_json1_1RemoveTagsFromStreamInput = (input, context) => {
|
|
1932
1940
|
return {
|
|
1933
|
-
...(input.StreamName
|
|
1934
|
-
...(input.TagKeys
|
|
1935
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
1941
|
+
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1942
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
1936
1943
|
};
|
|
1937
1944
|
};
|
|
1938
1945
|
const serializeAws_json1_1ShardFilter = (input, context) => {
|
|
1939
1946
|
return {
|
|
1940
|
-
...(input.ShardId
|
|
1941
|
-
...(input.Timestamp
|
|
1942
|
-
|
|
1943
|
-
...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
|
|
1947
|
+
...(input.ShardId != null && { ShardId: input.ShardId }),
|
|
1948
|
+
...(input.Timestamp != null && { Timestamp: Math.round(input.Timestamp.getTime() / 1000) }),
|
|
1949
|
+
...(input.Type != null && { Type: input.Type }),
|
|
1944
1950
|
};
|
|
1945
1951
|
};
|
|
1946
1952
|
const serializeAws_json1_1SplitShardInput = (input, context) => {
|
|
1947
1953
|
return {
|
|
1948
|
-
...(input.NewStartingHashKey
|
|
1949
|
-
|
|
1950
|
-
...(input.
|
|
1951
|
-
...(input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }),
|
|
1954
|
+
...(input.NewStartingHashKey != null && { NewStartingHashKey: input.NewStartingHashKey }),
|
|
1955
|
+
...(input.ShardToSplit != null && { ShardToSplit: input.ShardToSplit }),
|
|
1956
|
+
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1952
1957
|
};
|
|
1953
1958
|
};
|
|
1954
1959
|
const serializeAws_json1_1StartingPosition = (input, context) => {
|
|
1955
1960
|
return {
|
|
1956
|
-
...(input.SequenceNumber
|
|
1957
|
-
|
|
1958
|
-
...(input.
|
|
1959
|
-
input.Timestamp !== null && { Timestamp: Math.round(input.Timestamp.getTime() / 1000) }),
|
|
1960
|
-
...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
|
|
1961
|
+
...(input.SequenceNumber != null && { SequenceNumber: input.SequenceNumber }),
|
|
1962
|
+
...(input.Timestamp != null && { Timestamp: Math.round(input.Timestamp.getTime() / 1000) }),
|
|
1963
|
+
...(input.Type != null && { Type: input.Type }),
|
|
1961
1964
|
};
|
|
1962
1965
|
};
|
|
1963
1966
|
const serializeAws_json1_1StartStreamEncryptionInput = (input, context) => {
|
|
1964
1967
|
return {
|
|
1965
|
-
...(input.EncryptionType
|
|
1966
|
-
|
|
1967
|
-
...(input.
|
|
1968
|
-
...(input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }),
|
|
1968
|
+
...(input.EncryptionType != null && { EncryptionType: input.EncryptionType }),
|
|
1969
|
+
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
1970
|
+
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1969
1971
|
};
|
|
1970
1972
|
};
|
|
1971
1973
|
const serializeAws_json1_1StopStreamEncryptionInput = (input, context) => {
|
|
1972
1974
|
return {
|
|
1973
|
-
...(input.EncryptionType
|
|
1974
|
-
|
|
1975
|
-
...(input.
|
|
1976
|
-
...(input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }),
|
|
1975
|
+
...(input.EncryptionType != null && { EncryptionType: input.EncryptionType }),
|
|
1976
|
+
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
1977
|
+
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
1977
1978
|
};
|
|
1978
1979
|
};
|
|
1979
1980
|
const serializeAws_json1_1StreamModeDetails = (input, context) => {
|
|
1980
1981
|
return {
|
|
1981
|
-
...(input.StreamMode
|
|
1982
|
+
...(input.StreamMode != null && { StreamMode: input.StreamMode }),
|
|
1982
1983
|
};
|
|
1983
1984
|
};
|
|
1984
1985
|
const serializeAws_json1_1SubscribeToShardInput = (input, context) => {
|
|
1985
1986
|
return {
|
|
1986
|
-
...(input.ConsumerARN
|
|
1987
|
-
...(input.ShardId
|
|
1988
|
-
...(input.StartingPosition
|
|
1989
|
-
input.StartingPosition !== null && {
|
|
1987
|
+
...(input.ConsumerARN != null && { ConsumerARN: input.ConsumerARN }),
|
|
1988
|
+
...(input.ShardId != null && { ShardId: input.ShardId }),
|
|
1989
|
+
...(input.StartingPosition != null && {
|
|
1990
1990
|
StartingPosition: serializeAws_json1_1StartingPosition(input.StartingPosition, context),
|
|
1991
1991
|
}),
|
|
1992
1992
|
};
|
|
@@ -2014,29 +2014,23 @@ const serializeAws_json1_1TagMap = (input, context) => {
|
|
|
2014
2014
|
};
|
|
2015
2015
|
const serializeAws_json1_1UpdateShardCountInput = (input, context) => {
|
|
2016
2016
|
return {
|
|
2017
|
-
...(input.ScalingType
|
|
2018
|
-
...(input.StreamName
|
|
2019
|
-
...(input.TargetShardCount
|
|
2020
|
-
input.TargetShardCount !== null && { TargetShardCount: input.TargetShardCount }),
|
|
2017
|
+
...(input.ScalingType != null && { ScalingType: input.ScalingType }),
|
|
2018
|
+
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
2019
|
+
...(input.TargetShardCount != null && { TargetShardCount: input.TargetShardCount }),
|
|
2021
2020
|
};
|
|
2022
2021
|
};
|
|
2023
2022
|
const serializeAws_json1_1UpdateStreamModeInput = (input, context) => {
|
|
2024
2023
|
return {
|
|
2025
|
-
...(input.StreamARN
|
|
2026
|
-
...(input.StreamModeDetails
|
|
2027
|
-
input.StreamModeDetails !== null && {
|
|
2024
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
2025
|
+
...(input.StreamModeDetails != null && {
|
|
2028
2026
|
StreamModeDetails: serializeAws_json1_1StreamModeDetails(input.StreamModeDetails, context),
|
|
2029
2027
|
}),
|
|
2030
2028
|
};
|
|
2031
2029
|
};
|
|
2032
2030
|
const deserializeAws_json1_1ChildShard = (output, context) => {
|
|
2033
2031
|
return {
|
|
2034
|
-
HashKeyRange: output.HashKeyRange
|
|
2035
|
-
|
|
2036
|
-
: undefined,
|
|
2037
|
-
ParentShards: output.ParentShards !== undefined && output.ParentShards !== null
|
|
2038
|
-
? deserializeAws_json1_1ShardIdList(output.ParentShards, context)
|
|
2039
|
-
: undefined,
|
|
2032
|
+
HashKeyRange: output.HashKeyRange != null ? deserializeAws_json1_1HashKeyRange(output.HashKeyRange, context) : undefined,
|
|
2033
|
+
ParentShards: output.ParentShards != null ? deserializeAws_json1_1ShardIdList(output.ParentShards, context) : undefined,
|
|
2040
2034
|
ShardId: (0, smithy_client_1.expectString)(output.ShardId),
|
|
2041
2035
|
};
|
|
2042
2036
|
};
|
|
@@ -2054,7 +2048,7 @@ const deserializeAws_json1_1ChildShardList = (output, context) => {
|
|
|
2054
2048
|
const deserializeAws_json1_1Consumer = (output, context) => {
|
|
2055
2049
|
return {
|
|
2056
2050
|
ConsumerARN: (0, smithy_client_1.expectString)(output.ConsumerARN),
|
|
2057
|
-
ConsumerCreationTimestamp: output.ConsumerCreationTimestamp
|
|
2051
|
+
ConsumerCreationTimestamp: output.ConsumerCreationTimestamp != null
|
|
2058
2052
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ConsumerCreationTimestamp)))
|
|
2059
2053
|
: undefined,
|
|
2060
2054
|
ConsumerName: (0, smithy_client_1.expectString)(output.ConsumerName),
|
|
@@ -2064,7 +2058,7 @@ const deserializeAws_json1_1Consumer = (output, context) => {
|
|
|
2064
2058
|
const deserializeAws_json1_1ConsumerDescription = (output, context) => {
|
|
2065
2059
|
return {
|
|
2066
2060
|
ConsumerARN: (0, smithy_client_1.expectString)(output.ConsumerARN),
|
|
2067
|
-
ConsumerCreationTimestamp: output.ConsumerCreationTimestamp
|
|
2061
|
+
ConsumerCreationTimestamp: output.ConsumerCreationTimestamp != null
|
|
2068
2062
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ConsumerCreationTimestamp)))
|
|
2069
2063
|
: undefined,
|
|
2070
2064
|
ConsumerName: (0, smithy_client_1.expectString)(output.ConsumerName),
|
|
@@ -2093,28 +2087,28 @@ const deserializeAws_json1_1DescribeLimitsOutput = (output, context) => {
|
|
|
2093
2087
|
};
|
|
2094
2088
|
const deserializeAws_json1_1DescribeStreamConsumerOutput = (output, context) => {
|
|
2095
2089
|
return {
|
|
2096
|
-
ConsumerDescription: output.ConsumerDescription
|
|
2090
|
+
ConsumerDescription: output.ConsumerDescription != null
|
|
2097
2091
|
? deserializeAws_json1_1ConsumerDescription(output.ConsumerDescription, context)
|
|
2098
2092
|
: undefined,
|
|
2099
2093
|
};
|
|
2100
2094
|
};
|
|
2101
2095
|
const deserializeAws_json1_1DescribeStreamOutput = (output, context) => {
|
|
2102
2096
|
return {
|
|
2103
|
-
StreamDescription: output.StreamDescription
|
|
2097
|
+
StreamDescription: output.StreamDescription != null
|
|
2104
2098
|
? deserializeAws_json1_1StreamDescription(output.StreamDescription, context)
|
|
2105
2099
|
: undefined,
|
|
2106
2100
|
};
|
|
2107
2101
|
};
|
|
2108
2102
|
const deserializeAws_json1_1DescribeStreamSummaryOutput = (output, context) => {
|
|
2109
2103
|
return {
|
|
2110
|
-
StreamDescriptionSummary: output.StreamDescriptionSummary
|
|
2104
|
+
StreamDescriptionSummary: output.StreamDescriptionSummary != null
|
|
2111
2105
|
? deserializeAws_json1_1StreamDescriptionSummary(output.StreamDescriptionSummary, context)
|
|
2112
2106
|
: undefined,
|
|
2113
2107
|
};
|
|
2114
2108
|
};
|
|
2115
2109
|
const deserializeAws_json1_1EnhancedMetrics = (output, context) => {
|
|
2116
2110
|
return {
|
|
2117
|
-
ShardLevelMetrics: output.ShardLevelMetrics
|
|
2111
|
+
ShardLevelMetrics: output.ShardLevelMetrics != null
|
|
2118
2112
|
? deserializeAws_json1_1MetricsNameList(output.ShardLevelMetrics, context)
|
|
2119
2113
|
: undefined,
|
|
2120
2114
|
};
|
|
@@ -2132,10 +2126,10 @@ const deserializeAws_json1_1EnhancedMonitoringList = (output, context) => {
|
|
|
2132
2126
|
};
|
|
2133
2127
|
const deserializeAws_json1_1EnhancedMonitoringOutput = (output, context) => {
|
|
2134
2128
|
return {
|
|
2135
|
-
CurrentShardLevelMetrics: output.CurrentShardLevelMetrics
|
|
2129
|
+
CurrentShardLevelMetrics: output.CurrentShardLevelMetrics != null
|
|
2136
2130
|
? deserializeAws_json1_1MetricsNameList(output.CurrentShardLevelMetrics, context)
|
|
2137
2131
|
: undefined,
|
|
2138
|
-
DesiredShardLevelMetrics: output.DesiredShardLevelMetrics
|
|
2132
|
+
DesiredShardLevelMetrics: output.DesiredShardLevelMetrics != null
|
|
2139
2133
|
? deserializeAws_json1_1MetricsNameList(output.DesiredShardLevelMetrics, context)
|
|
2140
2134
|
: undefined,
|
|
2141
2135
|
StreamName: (0, smithy_client_1.expectString)(output.StreamName),
|
|
@@ -2153,14 +2147,10 @@ const deserializeAws_json1_1ExpiredNextTokenException = (output, context) => {
|
|
|
2153
2147
|
};
|
|
2154
2148
|
const deserializeAws_json1_1GetRecordsOutput = (output, context) => {
|
|
2155
2149
|
return {
|
|
2156
|
-
ChildShards: output.ChildShards
|
|
2157
|
-
? deserializeAws_json1_1ChildShardList(output.ChildShards, context)
|
|
2158
|
-
: undefined,
|
|
2150
|
+
ChildShards: output.ChildShards != null ? deserializeAws_json1_1ChildShardList(output.ChildShards, context) : undefined,
|
|
2159
2151
|
MillisBehindLatest: (0, smithy_client_1.expectLong)(output.MillisBehindLatest),
|
|
2160
2152
|
NextShardIterator: (0, smithy_client_1.expectString)(output.NextShardIterator),
|
|
2161
|
-
Records: output.Records
|
|
2162
|
-
? deserializeAws_json1_1RecordList(output.Records, context)
|
|
2163
|
-
: undefined,
|
|
2153
|
+
Records: output.Records != null ? deserializeAws_json1_1RecordList(output.Records, context) : undefined,
|
|
2164
2154
|
};
|
|
2165
2155
|
};
|
|
2166
2156
|
const deserializeAws_json1_1GetShardIteratorOutput = (output, context) => {
|
|
@@ -2222,33 +2212,25 @@ const deserializeAws_json1_1LimitExceededException = (output, context) => {
|
|
|
2222
2212
|
const deserializeAws_json1_1ListShardsOutput = (output, context) => {
|
|
2223
2213
|
return {
|
|
2224
2214
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2225
|
-
Shards: output.Shards
|
|
2226
|
-
? deserializeAws_json1_1ShardList(output.Shards, context)
|
|
2227
|
-
: undefined,
|
|
2215
|
+
Shards: output.Shards != null ? deserializeAws_json1_1ShardList(output.Shards, context) : undefined,
|
|
2228
2216
|
};
|
|
2229
2217
|
};
|
|
2230
2218
|
const deserializeAws_json1_1ListStreamConsumersOutput = (output, context) => {
|
|
2231
2219
|
return {
|
|
2232
|
-
Consumers: output.Consumers
|
|
2233
|
-
? deserializeAws_json1_1ConsumerList(output.Consumers, context)
|
|
2234
|
-
: undefined,
|
|
2220
|
+
Consumers: output.Consumers != null ? deserializeAws_json1_1ConsumerList(output.Consumers, context) : undefined,
|
|
2235
2221
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2236
2222
|
};
|
|
2237
2223
|
};
|
|
2238
2224
|
const deserializeAws_json1_1ListStreamsOutput = (output, context) => {
|
|
2239
2225
|
return {
|
|
2240
2226
|
HasMoreStreams: (0, smithy_client_1.expectBoolean)(output.HasMoreStreams),
|
|
2241
|
-
StreamNames: output.StreamNames
|
|
2242
|
-
? deserializeAws_json1_1StreamNameList(output.StreamNames, context)
|
|
2243
|
-
: undefined,
|
|
2227
|
+
StreamNames: output.StreamNames != null ? deserializeAws_json1_1StreamNameList(output.StreamNames, context) : undefined,
|
|
2244
2228
|
};
|
|
2245
2229
|
};
|
|
2246
2230
|
const deserializeAws_json1_1ListTagsForStreamOutput = (output, context) => {
|
|
2247
2231
|
return {
|
|
2248
2232
|
HasMoreTags: (0, smithy_client_1.expectBoolean)(output.HasMoreTags),
|
|
2249
|
-
Tags: output.Tags
|
|
2250
|
-
? deserializeAws_json1_1TagList(output.Tags, context)
|
|
2251
|
-
: undefined,
|
|
2233
|
+
Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
|
|
2252
2234
|
};
|
|
2253
2235
|
};
|
|
2254
2236
|
const deserializeAws_json1_1MetricsNameList = (output, context) => {
|
|
@@ -2278,9 +2260,7 @@ const deserializeAws_json1_1PutRecordsOutput = (output, context) => {
|
|
|
2278
2260
|
return {
|
|
2279
2261
|
EncryptionType: (0, smithy_client_1.expectString)(output.EncryptionType),
|
|
2280
2262
|
FailedRecordCount: (0, smithy_client_1.expectInt32)(output.FailedRecordCount),
|
|
2281
|
-
Records: output.Records
|
|
2282
|
-
? deserializeAws_json1_1PutRecordsResultEntryList(output.Records, context)
|
|
2283
|
-
: undefined,
|
|
2263
|
+
Records: output.Records != null ? deserializeAws_json1_1PutRecordsResultEntryList(output.Records, context) : undefined,
|
|
2284
2264
|
};
|
|
2285
2265
|
};
|
|
2286
2266
|
const deserializeAws_json1_1PutRecordsResultEntry = (output, context) => {
|
|
@@ -2304,10 +2284,10 @@ const deserializeAws_json1_1PutRecordsResultEntryList = (output, context) => {
|
|
|
2304
2284
|
};
|
|
2305
2285
|
const deserializeAws_json1_1_Record = (output, context) => {
|
|
2306
2286
|
return {
|
|
2307
|
-
ApproximateArrivalTimestamp: output.ApproximateArrivalTimestamp
|
|
2287
|
+
ApproximateArrivalTimestamp: output.ApproximateArrivalTimestamp != null
|
|
2308
2288
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ApproximateArrivalTimestamp)))
|
|
2309
2289
|
: undefined,
|
|
2310
|
-
Data: output.Data
|
|
2290
|
+
Data: output.Data != null ? context.base64Decoder(output.Data) : undefined,
|
|
2311
2291
|
EncryptionType: (0, smithy_client_1.expectString)(output.EncryptionType),
|
|
2312
2292
|
PartitionKey: (0, smithy_client_1.expectString)(output.PartitionKey),
|
|
2313
2293
|
SequenceNumber: (0, smithy_client_1.expectString)(output.SequenceNumber),
|
|
@@ -2326,9 +2306,7 @@ const deserializeAws_json1_1RecordList = (output, context) => {
|
|
|
2326
2306
|
};
|
|
2327
2307
|
const deserializeAws_json1_1RegisterStreamConsumerOutput = (output, context) => {
|
|
2328
2308
|
return {
|
|
2329
|
-
Consumer: output.Consumer
|
|
2330
|
-
? deserializeAws_json1_1Consumer(output.Consumer, context)
|
|
2331
|
-
: undefined,
|
|
2309
|
+
Consumer: output.Consumer != null ? deserializeAws_json1_1Consumer(output.Consumer, context) : undefined,
|
|
2332
2310
|
};
|
|
2333
2311
|
};
|
|
2334
2312
|
const deserializeAws_json1_1ResourceInUseException = (output, context) => {
|
|
@@ -2350,11 +2328,9 @@ const deserializeAws_json1_1SequenceNumberRange = (output, context) => {
|
|
|
2350
2328
|
const deserializeAws_json1_1Shard = (output, context) => {
|
|
2351
2329
|
return {
|
|
2352
2330
|
AdjacentParentShardId: (0, smithy_client_1.expectString)(output.AdjacentParentShardId),
|
|
2353
|
-
HashKeyRange: output.HashKeyRange
|
|
2354
|
-
? deserializeAws_json1_1HashKeyRange(output.HashKeyRange, context)
|
|
2355
|
-
: undefined,
|
|
2331
|
+
HashKeyRange: output.HashKeyRange != null ? deserializeAws_json1_1HashKeyRange(output.HashKeyRange, context) : undefined,
|
|
2356
2332
|
ParentShardId: (0, smithy_client_1.expectString)(output.ParentShardId),
|
|
2357
|
-
SequenceNumberRange: output.SequenceNumberRange
|
|
2333
|
+
SequenceNumberRange: output.SequenceNumberRange != null
|
|
2358
2334
|
? deserializeAws_json1_1SequenceNumberRange(output.SequenceNumberRange, context)
|
|
2359
2335
|
: undefined,
|
|
2360
2336
|
ShardId: (0, smithy_client_1.expectString)(output.ShardId),
|
|
@@ -2385,20 +2361,18 @@ const deserializeAws_json1_1ShardList = (output, context) => {
|
|
|
2385
2361
|
const deserializeAws_json1_1StreamDescription = (output, context) => {
|
|
2386
2362
|
return {
|
|
2387
2363
|
EncryptionType: (0, smithy_client_1.expectString)(output.EncryptionType),
|
|
2388
|
-
EnhancedMonitoring: output.EnhancedMonitoring
|
|
2364
|
+
EnhancedMonitoring: output.EnhancedMonitoring != null
|
|
2389
2365
|
? deserializeAws_json1_1EnhancedMonitoringList(output.EnhancedMonitoring, context)
|
|
2390
2366
|
: undefined,
|
|
2391
2367
|
HasMoreShards: (0, smithy_client_1.expectBoolean)(output.HasMoreShards),
|
|
2392
2368
|
KeyId: (0, smithy_client_1.expectString)(output.KeyId),
|
|
2393
2369
|
RetentionPeriodHours: (0, smithy_client_1.expectInt32)(output.RetentionPeriodHours),
|
|
2394
|
-
Shards: output.Shards
|
|
2395
|
-
? deserializeAws_json1_1ShardList(output.Shards, context)
|
|
2396
|
-
: undefined,
|
|
2370
|
+
Shards: output.Shards != null ? deserializeAws_json1_1ShardList(output.Shards, context) : undefined,
|
|
2397
2371
|
StreamARN: (0, smithy_client_1.expectString)(output.StreamARN),
|
|
2398
|
-
StreamCreationTimestamp: output.StreamCreationTimestamp
|
|
2372
|
+
StreamCreationTimestamp: output.StreamCreationTimestamp != null
|
|
2399
2373
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StreamCreationTimestamp)))
|
|
2400
2374
|
: undefined,
|
|
2401
|
-
StreamModeDetails: output.StreamModeDetails
|
|
2375
|
+
StreamModeDetails: output.StreamModeDetails != null
|
|
2402
2376
|
? deserializeAws_json1_1StreamModeDetails(output.StreamModeDetails, context)
|
|
2403
2377
|
: undefined,
|
|
2404
2378
|
StreamName: (0, smithy_client_1.expectString)(output.StreamName),
|
|
@@ -2409,17 +2383,17 @@ const deserializeAws_json1_1StreamDescriptionSummary = (output, context) => {
|
|
|
2409
2383
|
return {
|
|
2410
2384
|
ConsumerCount: (0, smithy_client_1.expectInt32)(output.ConsumerCount),
|
|
2411
2385
|
EncryptionType: (0, smithy_client_1.expectString)(output.EncryptionType),
|
|
2412
|
-
EnhancedMonitoring: output.EnhancedMonitoring
|
|
2386
|
+
EnhancedMonitoring: output.EnhancedMonitoring != null
|
|
2413
2387
|
? deserializeAws_json1_1EnhancedMonitoringList(output.EnhancedMonitoring, context)
|
|
2414
2388
|
: undefined,
|
|
2415
2389
|
KeyId: (0, smithy_client_1.expectString)(output.KeyId),
|
|
2416
2390
|
OpenShardCount: (0, smithy_client_1.expectInt32)(output.OpenShardCount),
|
|
2417
2391
|
RetentionPeriodHours: (0, smithy_client_1.expectInt32)(output.RetentionPeriodHours),
|
|
2418
2392
|
StreamARN: (0, smithy_client_1.expectString)(output.StreamARN),
|
|
2419
|
-
StreamCreationTimestamp: output.StreamCreationTimestamp
|
|
2393
|
+
StreamCreationTimestamp: output.StreamCreationTimestamp != null
|
|
2420
2394
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StreamCreationTimestamp)))
|
|
2421
2395
|
: undefined,
|
|
2422
|
-
StreamModeDetails: output.StreamModeDetails
|
|
2396
|
+
StreamModeDetails: output.StreamModeDetails != null
|
|
2423
2397
|
? deserializeAws_json1_1StreamModeDetails(output.StreamModeDetails, context)
|
|
2424
2398
|
: undefined,
|
|
2425
2399
|
StreamName: (0, smithy_client_1.expectString)(output.StreamName),
|
|
@@ -2444,14 +2418,10 @@ const deserializeAws_json1_1StreamNameList = (output, context) => {
|
|
|
2444
2418
|
};
|
|
2445
2419
|
const deserializeAws_json1_1SubscribeToShardEvent = (output, context) => {
|
|
2446
2420
|
return {
|
|
2447
|
-
ChildShards: output.ChildShards
|
|
2448
|
-
? deserializeAws_json1_1ChildShardList(output.ChildShards, context)
|
|
2449
|
-
: undefined,
|
|
2421
|
+
ChildShards: output.ChildShards != null ? deserializeAws_json1_1ChildShardList(output.ChildShards, context) : undefined,
|
|
2450
2422
|
ContinuationSequenceNumber: (0, smithy_client_1.expectString)(output.ContinuationSequenceNumber),
|
|
2451
2423
|
MillisBehindLatest: (0, smithy_client_1.expectLong)(output.MillisBehindLatest),
|
|
2452
|
-
Records: output.Records
|
|
2453
|
-
? deserializeAws_json1_1RecordList(output.Records, context)
|
|
2454
|
-
: undefined,
|
|
2424
|
+
Records: output.Records != null ? deserializeAws_json1_1RecordList(output.Records, context) : undefined,
|
|
2455
2425
|
};
|
|
2456
2426
|
};
|
|
2457
2427
|
const deserializeAws_json1_1SubscribeToShardEventStream = (output, context) => {
|
|
@@ -2509,7 +2479,7 @@ const deserializeAws_json1_1SubscribeToShardEventStream = (output, context) => {
|
|
|
2509
2479
|
};
|
|
2510
2480
|
const deserializeAws_json1_1SubscribeToShardOutput = (output, context) => {
|
|
2511
2481
|
return {
|
|
2512
|
-
EventStream: output.EventStream
|
|
2482
|
+
EventStream: output.EventStream != null
|
|
2513
2483
|
? deserializeAws_json1_1SubscribeToShardEventStream((0, smithy_client_1.expectUnion)(output.EventStream), context)
|
|
2514
2484
|
: undefined,
|
|
2515
2485
|
};
|
|
@@ -2605,5 +2575,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
2605
2575
|
if (data["__type"] !== undefined) {
|
|
2606
2576
|
return sanitizeErrorCode(data["__type"]);
|
|
2607
2577
|
}
|
|
2608
|
-
return "";
|
|
2609
2578
|
};
|