@aws-sdk/client-mediastore 3.141.0 → 3.142.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 +11 -0
- package/dist-cjs/protocols/Aws_json1_1.js +105 -192
- package/dist-es/protocols/Aws_json1_1.js +169 -193
- package/package.json +6 -6
|
@@ -234,7 +234,6 @@ const deserializeAws_json1_1CreateContainerCommandError = async (output, context
|
|
|
234
234
|
...output,
|
|
235
235
|
body: await parseBody(output.body, context),
|
|
236
236
|
};
|
|
237
|
-
let response;
|
|
238
237
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
239
238
|
switch (errorCode) {
|
|
240
239
|
case "ContainerInUseException":
|
|
@@ -248,14 +247,12 @@ const deserializeAws_json1_1CreateContainerCommandError = async (output, context
|
|
|
248
247
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
249
248
|
default:
|
|
250
249
|
const parsedBody = parsedOutput.body;
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
$metadata,
|
|
250
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
251
|
+
output,
|
|
252
|
+
parsedBody,
|
|
253
|
+
exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
|
|
254
|
+
errorCode,
|
|
257
255
|
});
|
|
258
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
259
256
|
}
|
|
260
257
|
};
|
|
261
258
|
const deserializeAws_json1_1DeleteContainerCommand = async (output, context) => {
|
|
@@ -277,7 +274,6 @@ const deserializeAws_json1_1DeleteContainerCommandError = async (output, context
|
|
|
277
274
|
...output,
|
|
278
275
|
body: await parseBody(output.body, context),
|
|
279
276
|
};
|
|
280
|
-
let response;
|
|
281
277
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
282
278
|
switch (errorCode) {
|
|
283
279
|
case "ContainerInUseException":
|
|
@@ -291,14 +287,12 @@ const deserializeAws_json1_1DeleteContainerCommandError = async (output, context
|
|
|
291
287
|
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
292
288
|
default:
|
|
293
289
|
const parsedBody = parsedOutput.body;
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
$metadata,
|
|
290
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
291
|
+
output,
|
|
292
|
+
parsedBody,
|
|
293
|
+
exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
|
|
294
|
+
errorCode,
|
|
300
295
|
});
|
|
301
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
302
296
|
}
|
|
303
297
|
};
|
|
304
298
|
const deserializeAws_json1_1DeleteContainerPolicyCommand = async (output, context) => {
|
|
@@ -320,7 +314,6 @@ const deserializeAws_json1_1DeleteContainerPolicyCommandError = async (output, c
|
|
|
320
314
|
...output,
|
|
321
315
|
body: await parseBody(output.body, context),
|
|
322
316
|
};
|
|
323
|
-
let response;
|
|
324
317
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
325
318
|
switch (errorCode) {
|
|
326
319
|
case "ContainerInUseException":
|
|
@@ -337,14 +330,12 @@ const deserializeAws_json1_1DeleteContainerPolicyCommandError = async (output, c
|
|
|
337
330
|
throw await deserializeAws_json1_1PolicyNotFoundExceptionResponse(parsedOutput, context);
|
|
338
331
|
default:
|
|
339
332
|
const parsedBody = parsedOutput.body;
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
$metadata,
|
|
333
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
334
|
+
output,
|
|
335
|
+
parsedBody,
|
|
336
|
+
exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
|
|
337
|
+
errorCode,
|
|
346
338
|
});
|
|
347
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
348
339
|
}
|
|
349
340
|
};
|
|
350
341
|
const deserializeAws_json1_1DeleteCorsPolicyCommand = async (output, context) => {
|
|
@@ -366,7 +357,6 @@ const deserializeAws_json1_1DeleteCorsPolicyCommandError = async (output, contex
|
|
|
366
357
|
...output,
|
|
367
358
|
body: await parseBody(output.body, context),
|
|
368
359
|
};
|
|
369
|
-
let response;
|
|
370
360
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
371
361
|
switch (errorCode) {
|
|
372
362
|
case "ContainerInUseException":
|
|
@@ -383,14 +373,12 @@ const deserializeAws_json1_1DeleteCorsPolicyCommandError = async (output, contex
|
|
|
383
373
|
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
384
374
|
default:
|
|
385
375
|
const parsedBody = parsedOutput.body;
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
$metadata,
|
|
376
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
377
|
+
output,
|
|
378
|
+
parsedBody,
|
|
379
|
+
exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
|
|
380
|
+
errorCode,
|
|
392
381
|
});
|
|
393
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
394
382
|
}
|
|
395
383
|
};
|
|
396
384
|
const deserializeAws_json1_1DeleteLifecyclePolicyCommand = async (output, context) => {
|
|
@@ -412,7 +400,6 @@ const deserializeAws_json1_1DeleteLifecyclePolicyCommandError = async (output, c
|
|
|
412
400
|
...output,
|
|
413
401
|
body: await parseBody(output.body, context),
|
|
414
402
|
};
|
|
415
|
-
let response;
|
|
416
403
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
417
404
|
switch (errorCode) {
|
|
418
405
|
case "ContainerInUseException":
|
|
@@ -429,14 +416,12 @@ const deserializeAws_json1_1DeleteLifecyclePolicyCommandError = async (output, c
|
|
|
429
416
|
throw await deserializeAws_json1_1PolicyNotFoundExceptionResponse(parsedOutput, context);
|
|
430
417
|
default:
|
|
431
418
|
const parsedBody = parsedOutput.body;
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
$metadata,
|
|
419
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
420
|
+
output,
|
|
421
|
+
parsedBody,
|
|
422
|
+
exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
|
|
423
|
+
errorCode,
|
|
438
424
|
});
|
|
439
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
440
425
|
}
|
|
441
426
|
};
|
|
442
427
|
const deserializeAws_json1_1DeleteMetricPolicyCommand = async (output, context) => {
|
|
@@ -458,7 +443,6 @@ const deserializeAws_json1_1DeleteMetricPolicyCommandError = async (output, cont
|
|
|
458
443
|
...output,
|
|
459
444
|
body: await parseBody(output.body, context),
|
|
460
445
|
};
|
|
461
|
-
let response;
|
|
462
446
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
463
447
|
switch (errorCode) {
|
|
464
448
|
case "ContainerInUseException":
|
|
@@ -475,14 +459,12 @@ const deserializeAws_json1_1DeleteMetricPolicyCommandError = async (output, cont
|
|
|
475
459
|
throw await deserializeAws_json1_1PolicyNotFoundExceptionResponse(parsedOutput, context);
|
|
476
460
|
default:
|
|
477
461
|
const parsedBody = parsedOutput.body;
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
$metadata,
|
|
462
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
463
|
+
output,
|
|
464
|
+
parsedBody,
|
|
465
|
+
exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
|
|
466
|
+
errorCode,
|
|
484
467
|
});
|
|
485
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
486
468
|
}
|
|
487
469
|
};
|
|
488
470
|
const deserializeAws_json1_1DescribeContainerCommand = async (output, context) => {
|
|
@@ -504,7 +486,6 @@ const deserializeAws_json1_1DescribeContainerCommandError = async (output, conte
|
|
|
504
486
|
...output,
|
|
505
487
|
body: await parseBody(output.body, context),
|
|
506
488
|
};
|
|
507
|
-
let response;
|
|
508
489
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
509
490
|
switch (errorCode) {
|
|
510
491
|
case "ContainerNotFoundException":
|
|
@@ -515,14 +496,12 @@ const deserializeAws_json1_1DescribeContainerCommandError = async (output, conte
|
|
|
515
496
|
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
516
497
|
default:
|
|
517
498
|
const parsedBody = parsedOutput.body;
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
$metadata,
|
|
499
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
500
|
+
output,
|
|
501
|
+
parsedBody,
|
|
502
|
+
exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
|
|
503
|
+
errorCode,
|
|
524
504
|
});
|
|
525
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
526
505
|
}
|
|
527
506
|
};
|
|
528
507
|
const deserializeAws_json1_1GetContainerPolicyCommand = async (output, context) => {
|
|
@@ -544,7 +523,6 @@ const deserializeAws_json1_1GetContainerPolicyCommandError = async (output, cont
|
|
|
544
523
|
...output,
|
|
545
524
|
body: await parseBody(output.body, context),
|
|
546
525
|
};
|
|
547
|
-
let response;
|
|
548
526
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
549
527
|
switch (errorCode) {
|
|
550
528
|
case "ContainerInUseException":
|
|
@@ -561,14 +539,12 @@ const deserializeAws_json1_1GetContainerPolicyCommandError = async (output, cont
|
|
|
561
539
|
throw await deserializeAws_json1_1PolicyNotFoundExceptionResponse(parsedOutput, context);
|
|
562
540
|
default:
|
|
563
541
|
const parsedBody = parsedOutput.body;
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
$metadata,
|
|
542
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
543
|
+
output,
|
|
544
|
+
parsedBody,
|
|
545
|
+
exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
|
|
546
|
+
errorCode,
|
|
570
547
|
});
|
|
571
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
572
548
|
}
|
|
573
549
|
};
|
|
574
550
|
const deserializeAws_json1_1GetCorsPolicyCommand = async (output, context) => {
|
|
@@ -590,7 +566,6 @@ const deserializeAws_json1_1GetCorsPolicyCommandError = async (output, context)
|
|
|
590
566
|
...output,
|
|
591
567
|
body: await parseBody(output.body, context),
|
|
592
568
|
};
|
|
593
|
-
let response;
|
|
594
569
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
595
570
|
switch (errorCode) {
|
|
596
571
|
case "ContainerInUseException":
|
|
@@ -607,14 +582,12 @@ const deserializeAws_json1_1GetCorsPolicyCommandError = async (output, context)
|
|
|
607
582
|
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
608
583
|
default:
|
|
609
584
|
const parsedBody = parsedOutput.body;
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
$metadata,
|
|
585
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
586
|
+
output,
|
|
587
|
+
parsedBody,
|
|
588
|
+
exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
|
|
589
|
+
errorCode,
|
|
616
590
|
});
|
|
617
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
618
591
|
}
|
|
619
592
|
};
|
|
620
593
|
const deserializeAws_json1_1GetLifecyclePolicyCommand = async (output, context) => {
|
|
@@ -636,7 +609,6 @@ const deserializeAws_json1_1GetLifecyclePolicyCommandError = async (output, cont
|
|
|
636
609
|
...output,
|
|
637
610
|
body: await parseBody(output.body, context),
|
|
638
611
|
};
|
|
639
|
-
let response;
|
|
640
612
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
641
613
|
switch (errorCode) {
|
|
642
614
|
case "ContainerInUseException":
|
|
@@ -653,14 +625,12 @@ const deserializeAws_json1_1GetLifecyclePolicyCommandError = async (output, cont
|
|
|
653
625
|
throw await deserializeAws_json1_1PolicyNotFoundExceptionResponse(parsedOutput, context);
|
|
654
626
|
default:
|
|
655
627
|
const parsedBody = parsedOutput.body;
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
$metadata,
|
|
628
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
629
|
+
output,
|
|
630
|
+
parsedBody,
|
|
631
|
+
exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
|
|
632
|
+
errorCode,
|
|
662
633
|
});
|
|
663
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
664
634
|
}
|
|
665
635
|
};
|
|
666
636
|
const deserializeAws_json1_1GetMetricPolicyCommand = async (output, context) => {
|
|
@@ -682,7 +652,6 @@ const deserializeAws_json1_1GetMetricPolicyCommandError = async (output, context
|
|
|
682
652
|
...output,
|
|
683
653
|
body: await parseBody(output.body, context),
|
|
684
654
|
};
|
|
685
|
-
let response;
|
|
686
655
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
687
656
|
switch (errorCode) {
|
|
688
657
|
case "ContainerInUseException":
|
|
@@ -699,14 +668,12 @@ const deserializeAws_json1_1GetMetricPolicyCommandError = async (output, context
|
|
|
699
668
|
throw await deserializeAws_json1_1PolicyNotFoundExceptionResponse(parsedOutput, context);
|
|
700
669
|
default:
|
|
701
670
|
const parsedBody = parsedOutput.body;
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
$metadata,
|
|
671
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
672
|
+
output,
|
|
673
|
+
parsedBody,
|
|
674
|
+
exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
|
|
675
|
+
errorCode,
|
|
708
676
|
});
|
|
709
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
710
677
|
}
|
|
711
678
|
};
|
|
712
679
|
const deserializeAws_json1_1ListContainersCommand = async (output, context) => {
|
|
@@ -728,7 +695,6 @@ const deserializeAws_json1_1ListContainersCommandError = async (output, context)
|
|
|
728
695
|
...output,
|
|
729
696
|
body: await parseBody(output.body, context),
|
|
730
697
|
};
|
|
731
|
-
let response;
|
|
732
698
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
733
699
|
switch (errorCode) {
|
|
734
700
|
case "InternalServerError":
|
|
@@ -736,14 +702,12 @@ const deserializeAws_json1_1ListContainersCommandError = async (output, context)
|
|
|
736
702
|
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
737
703
|
default:
|
|
738
704
|
const parsedBody = parsedOutput.body;
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
$metadata,
|
|
705
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
706
|
+
output,
|
|
707
|
+
parsedBody,
|
|
708
|
+
exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
|
|
709
|
+
errorCode,
|
|
745
710
|
});
|
|
746
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
747
711
|
}
|
|
748
712
|
};
|
|
749
713
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -765,7 +729,6 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
765
729
|
...output,
|
|
766
730
|
body: await parseBody(output.body, context),
|
|
767
731
|
};
|
|
768
|
-
let response;
|
|
769
732
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
770
733
|
switch (errorCode) {
|
|
771
734
|
case "ContainerInUseException":
|
|
@@ -779,14 +742,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
779
742
|
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
780
743
|
default:
|
|
781
744
|
const parsedBody = parsedOutput.body;
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
$metadata,
|
|
745
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
746
|
+
output,
|
|
747
|
+
parsedBody,
|
|
748
|
+
exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
|
|
749
|
+
errorCode,
|
|
788
750
|
});
|
|
789
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
790
751
|
}
|
|
791
752
|
};
|
|
792
753
|
const deserializeAws_json1_1PutContainerPolicyCommand = async (output, context) => {
|
|
@@ -808,7 +769,6 @@ const deserializeAws_json1_1PutContainerPolicyCommandError = async (output, cont
|
|
|
808
769
|
...output,
|
|
809
770
|
body: await parseBody(output.body, context),
|
|
810
771
|
};
|
|
811
|
-
let response;
|
|
812
772
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
813
773
|
switch (errorCode) {
|
|
814
774
|
case "ContainerInUseException":
|
|
@@ -822,14 +782,12 @@ const deserializeAws_json1_1PutContainerPolicyCommandError = async (output, cont
|
|
|
822
782
|
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
823
783
|
default:
|
|
824
784
|
const parsedBody = parsedOutput.body;
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
$metadata,
|
|
785
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
786
|
+
output,
|
|
787
|
+
parsedBody,
|
|
788
|
+
exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
|
|
789
|
+
errorCode,
|
|
831
790
|
});
|
|
832
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
833
791
|
}
|
|
834
792
|
};
|
|
835
793
|
const deserializeAws_json1_1PutCorsPolicyCommand = async (output, context) => {
|
|
@@ -851,7 +809,6 @@ const deserializeAws_json1_1PutCorsPolicyCommandError = async (output, context)
|
|
|
851
809
|
...output,
|
|
852
810
|
body: await parseBody(output.body, context),
|
|
853
811
|
};
|
|
854
|
-
let response;
|
|
855
812
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
856
813
|
switch (errorCode) {
|
|
857
814
|
case "ContainerInUseException":
|
|
@@ -865,14 +822,12 @@ const deserializeAws_json1_1PutCorsPolicyCommandError = async (output, context)
|
|
|
865
822
|
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
866
823
|
default:
|
|
867
824
|
const parsedBody = parsedOutput.body;
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
$metadata,
|
|
825
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
826
|
+
output,
|
|
827
|
+
parsedBody,
|
|
828
|
+
exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
|
|
829
|
+
errorCode,
|
|
874
830
|
});
|
|
875
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
876
831
|
}
|
|
877
832
|
};
|
|
878
833
|
const deserializeAws_json1_1PutLifecyclePolicyCommand = async (output, context) => {
|
|
@@ -894,7 +849,6 @@ const deserializeAws_json1_1PutLifecyclePolicyCommandError = async (output, cont
|
|
|
894
849
|
...output,
|
|
895
850
|
body: await parseBody(output.body, context),
|
|
896
851
|
};
|
|
897
|
-
let response;
|
|
898
852
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
899
853
|
switch (errorCode) {
|
|
900
854
|
case "ContainerInUseException":
|
|
@@ -908,14 +862,12 @@ const deserializeAws_json1_1PutLifecyclePolicyCommandError = async (output, cont
|
|
|
908
862
|
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
909
863
|
default:
|
|
910
864
|
const parsedBody = parsedOutput.body;
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
$metadata,
|
|
865
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
866
|
+
output,
|
|
867
|
+
parsedBody,
|
|
868
|
+
exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
|
|
869
|
+
errorCode,
|
|
917
870
|
});
|
|
918
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
919
871
|
}
|
|
920
872
|
};
|
|
921
873
|
const deserializeAws_json1_1PutMetricPolicyCommand = async (output, context) => {
|
|
@@ -937,7 +889,6 @@ const deserializeAws_json1_1PutMetricPolicyCommandError = async (output, context
|
|
|
937
889
|
...output,
|
|
938
890
|
body: await parseBody(output.body, context),
|
|
939
891
|
};
|
|
940
|
-
let response;
|
|
941
892
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
942
893
|
switch (errorCode) {
|
|
943
894
|
case "ContainerInUseException":
|
|
@@ -951,14 +902,12 @@ const deserializeAws_json1_1PutMetricPolicyCommandError = async (output, context
|
|
|
951
902
|
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
952
903
|
default:
|
|
953
904
|
const parsedBody = parsedOutput.body;
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
$metadata,
|
|
905
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
906
|
+
output,
|
|
907
|
+
parsedBody,
|
|
908
|
+
exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
|
|
909
|
+
errorCode,
|
|
960
910
|
});
|
|
961
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
962
911
|
}
|
|
963
912
|
};
|
|
964
913
|
const deserializeAws_json1_1StartAccessLoggingCommand = async (output, context) => {
|
|
@@ -980,7 +929,6 @@ const deserializeAws_json1_1StartAccessLoggingCommandError = async (output, cont
|
|
|
980
929
|
...output,
|
|
981
930
|
body: await parseBody(output.body, context),
|
|
982
931
|
};
|
|
983
|
-
let response;
|
|
984
932
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
985
933
|
switch (errorCode) {
|
|
986
934
|
case "ContainerInUseException":
|
|
@@ -994,14 +942,12 @@ const deserializeAws_json1_1StartAccessLoggingCommandError = async (output, cont
|
|
|
994
942
|
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
995
943
|
default:
|
|
996
944
|
const parsedBody = parsedOutput.body;
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
$metadata,
|
|
945
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
946
|
+
output,
|
|
947
|
+
parsedBody,
|
|
948
|
+
exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
|
|
949
|
+
errorCode,
|
|
1003
950
|
});
|
|
1004
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1005
951
|
}
|
|
1006
952
|
};
|
|
1007
953
|
const deserializeAws_json1_1StopAccessLoggingCommand = async (output, context) => {
|
|
@@ -1023,7 +969,6 @@ const deserializeAws_json1_1StopAccessLoggingCommandError = async (output, conte
|
|
|
1023
969
|
...output,
|
|
1024
970
|
body: await parseBody(output.body, context),
|
|
1025
971
|
};
|
|
1026
|
-
let response;
|
|
1027
972
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1028
973
|
switch (errorCode) {
|
|
1029
974
|
case "ContainerInUseException":
|
|
@@ -1037,14 +982,12 @@ const deserializeAws_json1_1StopAccessLoggingCommandError = async (output, conte
|
|
|
1037
982
|
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
1038
983
|
default:
|
|
1039
984
|
const parsedBody = parsedOutput.body;
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
$metadata,
|
|
985
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
986
|
+
output,
|
|
987
|
+
parsedBody,
|
|
988
|
+
exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
|
|
989
|
+
errorCode,
|
|
1046
990
|
});
|
|
1047
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1048
991
|
}
|
|
1049
992
|
};
|
|
1050
993
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
@@ -1066,7 +1009,6 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1066
1009
|
...output,
|
|
1067
1010
|
body: await parseBody(output.body, context),
|
|
1068
1011
|
};
|
|
1069
|
-
let response;
|
|
1070
1012
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1071
1013
|
switch (errorCode) {
|
|
1072
1014
|
case "ContainerInUseException":
|
|
@@ -1080,14 +1022,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1080
1022
|
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
1081
1023
|
default:
|
|
1082
1024
|
const parsedBody = parsedOutput.body;
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
$metadata,
|
|
1025
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1026
|
+
output,
|
|
1027
|
+
parsedBody,
|
|
1028
|
+
exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
|
|
1029
|
+
errorCode,
|
|
1089
1030
|
});
|
|
1090
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1091
1031
|
}
|
|
1092
1032
|
};
|
|
1093
1033
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
@@ -1109,7 +1049,6 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1109
1049
|
...output,
|
|
1110
1050
|
body: await parseBody(output.body, context),
|
|
1111
1051
|
};
|
|
1112
|
-
let response;
|
|
1113
1052
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1114
1053
|
switch (errorCode) {
|
|
1115
1054
|
case "ContainerInUseException":
|
|
@@ -1123,14 +1062,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1123
1062
|
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
1124
1063
|
default:
|
|
1125
1064
|
const parsedBody = parsedOutput.body;
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
$metadata,
|
|
1065
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1066
|
+
output,
|
|
1067
|
+
parsedBody,
|
|
1068
|
+
exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
|
|
1069
|
+
errorCode,
|
|
1132
1070
|
});
|
|
1133
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1134
1071
|
}
|
|
1135
1072
|
};
|
|
1136
1073
|
const deserializeAws_json1_1ContainerInUseExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -1191,9 +1128,6 @@ const serializeAws_json1_1AllowedHeaders = (input, context) => {
|
|
|
1191
1128
|
return input
|
|
1192
1129
|
.filter((e) => e != null)
|
|
1193
1130
|
.map((entry) => {
|
|
1194
|
-
if (entry === null) {
|
|
1195
|
-
return null;
|
|
1196
|
-
}
|
|
1197
1131
|
return entry;
|
|
1198
1132
|
});
|
|
1199
1133
|
};
|
|
@@ -1201,9 +1135,6 @@ const serializeAws_json1_1AllowedMethods = (input, context) => {
|
|
|
1201
1135
|
return input
|
|
1202
1136
|
.filter((e) => e != null)
|
|
1203
1137
|
.map((entry) => {
|
|
1204
|
-
if (entry === null) {
|
|
1205
|
-
return null;
|
|
1206
|
-
}
|
|
1207
1138
|
return entry;
|
|
1208
1139
|
});
|
|
1209
1140
|
};
|
|
@@ -1211,9 +1142,6 @@ const serializeAws_json1_1AllowedOrigins = (input, context) => {
|
|
|
1211
1142
|
return input
|
|
1212
1143
|
.filter((e) => e != null)
|
|
1213
1144
|
.map((entry) => {
|
|
1214
|
-
if (entry === null) {
|
|
1215
|
-
return null;
|
|
1216
|
-
}
|
|
1217
1145
|
return entry;
|
|
1218
1146
|
});
|
|
1219
1147
|
};
|
|
@@ -1221,9 +1149,6 @@ const serializeAws_json1_1CorsPolicy = (input, context) => {
|
|
|
1221
1149
|
return input
|
|
1222
1150
|
.filter((e) => e != null)
|
|
1223
1151
|
.map((entry) => {
|
|
1224
|
-
if (entry === null) {
|
|
1225
|
-
return null;
|
|
1226
|
-
}
|
|
1227
1152
|
return serializeAws_json1_1CorsRule(entry, context);
|
|
1228
1153
|
});
|
|
1229
1154
|
};
|
|
@@ -1284,9 +1209,6 @@ const serializeAws_json1_1ExposeHeaders = (input, context) => {
|
|
|
1284
1209
|
return input
|
|
1285
1210
|
.filter((e) => e != null)
|
|
1286
1211
|
.map((entry) => {
|
|
1287
|
-
if (entry === null) {
|
|
1288
|
-
return null;
|
|
1289
|
-
}
|
|
1290
1212
|
return entry;
|
|
1291
1213
|
});
|
|
1292
1214
|
};
|
|
@@ -1339,9 +1261,6 @@ const serializeAws_json1_1MetricPolicyRules = (input, context) => {
|
|
|
1339
1261
|
return input
|
|
1340
1262
|
.filter((e) => e != null)
|
|
1341
1263
|
.map((entry) => {
|
|
1342
|
-
if (entry === null) {
|
|
1343
|
-
return null;
|
|
1344
|
-
}
|
|
1345
1264
|
return serializeAws_json1_1MetricPolicyRule(entry, context);
|
|
1346
1265
|
});
|
|
1347
1266
|
};
|
|
@@ -1389,9 +1308,6 @@ const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
|
1389
1308
|
return input
|
|
1390
1309
|
.filter((e) => e != null)
|
|
1391
1310
|
.map((entry) => {
|
|
1392
|
-
if (entry === null) {
|
|
1393
|
-
return null;
|
|
1394
|
-
}
|
|
1395
1311
|
return entry;
|
|
1396
1312
|
});
|
|
1397
1313
|
};
|
|
@@ -1399,9 +1315,6 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
1399
1315
|
return input
|
|
1400
1316
|
.filter((e) => e != null)
|
|
1401
1317
|
.map((entry) => {
|
|
1402
|
-
if (entry === null) {
|
|
1403
|
-
return null;
|
|
1404
|
-
}
|
|
1405
1318
|
return serializeAws_json1_1Tag(entry, context);
|
|
1406
1319
|
});
|
|
1407
1320
|
};
|