@aws-sdk/client-mediastore 3.185.0 → 3.188.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 +16 -0
- package/dist-es/MediaStore.js +86 -93
- package/dist-es/MediaStoreClient.js +22 -28
- package/dist-es/commands/CreateContainerCommand.js +21 -28
- package/dist-es/commands/DeleteContainerCommand.js +21 -28
- package/dist-es/commands/DeleteContainerPolicyCommand.js +21 -28
- package/dist-es/commands/DeleteCorsPolicyCommand.js +21 -28
- package/dist-es/commands/DeleteLifecyclePolicyCommand.js +21 -28
- package/dist-es/commands/DeleteMetricPolicyCommand.js +21 -28
- package/dist-es/commands/DescribeContainerCommand.js +21 -28
- package/dist-es/commands/GetContainerPolicyCommand.js +21 -28
- package/dist-es/commands/GetCorsPolicyCommand.js +21 -28
- package/dist-es/commands/GetLifecyclePolicyCommand.js +21 -28
- package/dist-es/commands/GetMetricPolicyCommand.js +21 -28
- package/dist-es/commands/ListContainersCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/PutContainerPolicyCommand.js +21 -28
- package/dist-es/commands/PutCorsPolicyCommand.js +21 -28
- package/dist-es/commands/PutLifecyclePolicyCommand.js +21 -28
- package/dist-es/commands/PutMetricPolicyCommand.js +21 -28
- package/dist-es/commands/StartAccessLoggingCommand.js +21 -28
- package/dist-es/commands/StopAccessLoggingCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/MediaStoreServiceException.js +5 -10
- package/dist-es/models/models_0.js +213 -120
- package/dist-es/pagination/ListContainersPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +1331 -1757
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
|
@@ -1,1697 +1,1294 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
2
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { MediaStoreServiceException as __BaseException } from "../models/MediaStoreServiceException";
|
|
5
4
|
import { ContainerInUseException, ContainerNotFoundException, CorsPolicyNotFoundException, InternalServerError, LimitExceededException, PolicyNotFoundException, } from "../models/models_0";
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
return
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
export
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
return
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
return
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
body
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
});
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
}
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
return
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
}
|
|
1083
|
-
|
|
1084
|
-
var data, contents, response;
|
|
1085
|
-
return __generator(this, function (_a) {
|
|
1086
|
-
switch (_a.label) {
|
|
1087
|
-
case 0:
|
|
1088
|
-
if (output.statusCode >= 300) {
|
|
1089
|
-
return [2, deserializeAws_json1_1PutCorsPolicyCommandError(output, context)];
|
|
1090
|
-
}
|
|
1091
|
-
return [4, parseBody(output.body, context)];
|
|
1092
|
-
case 1:
|
|
1093
|
-
data = _a.sent();
|
|
1094
|
-
contents = {};
|
|
1095
|
-
contents = deserializeAws_json1_1PutCorsPolicyOutput(data, context);
|
|
1096
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1097
|
-
return [2, Promise.resolve(response)];
|
|
1098
|
-
}
|
|
1099
|
-
});
|
|
1100
|
-
}); };
|
|
1101
|
-
var deserializeAws_json1_1PutCorsPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1102
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1103
|
-
var _c;
|
|
1104
|
-
return __generator(this, function (_d) {
|
|
1105
|
-
switch (_d.label) {
|
|
1106
|
-
case 0:
|
|
1107
|
-
_a = [__assign({}, output)];
|
|
1108
|
-
_c = {};
|
|
1109
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1110
|
-
case 1:
|
|
1111
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1112
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1113
|
-
_b = errorCode;
|
|
1114
|
-
switch (_b) {
|
|
1115
|
-
case "ContainerInUseException": return [3, 2];
|
|
1116
|
-
case "com.amazonaws.mediastore#ContainerInUseException": return [3, 2];
|
|
1117
|
-
case "ContainerNotFoundException": return [3, 4];
|
|
1118
|
-
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3, 4];
|
|
1119
|
-
case "InternalServerError": return [3, 6];
|
|
1120
|
-
case "com.amazonaws.mediastore#InternalServerError": return [3, 6];
|
|
1121
|
-
}
|
|
1122
|
-
return [3, 8];
|
|
1123
|
-
case 2: return [4, deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)];
|
|
1124
|
-
case 3: throw _d.sent();
|
|
1125
|
-
case 4: return [4, deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)];
|
|
1126
|
-
case 5: throw _d.sent();
|
|
1127
|
-
case 6: return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
1128
|
-
case 7: throw _d.sent();
|
|
1129
|
-
case 8:
|
|
1130
|
-
parsedBody = parsedOutput.body;
|
|
1131
|
-
throwDefaultError({
|
|
1132
|
-
output: output,
|
|
1133
|
-
parsedBody: parsedBody,
|
|
1134
|
-
exceptionCtor: __BaseException,
|
|
1135
|
-
errorCode: errorCode,
|
|
1136
|
-
});
|
|
1137
|
-
_d.label = 9;
|
|
1138
|
-
case 9: return [2];
|
|
1139
|
-
}
|
|
1140
|
-
});
|
|
1141
|
-
}); };
|
|
1142
|
-
export var deserializeAws_json1_1PutLifecyclePolicyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1143
|
-
var data, contents, response;
|
|
1144
|
-
return __generator(this, function (_a) {
|
|
1145
|
-
switch (_a.label) {
|
|
1146
|
-
case 0:
|
|
1147
|
-
if (output.statusCode >= 300) {
|
|
1148
|
-
return [2, deserializeAws_json1_1PutLifecyclePolicyCommandError(output, context)];
|
|
1149
|
-
}
|
|
1150
|
-
return [4, parseBody(output.body, context)];
|
|
1151
|
-
case 1:
|
|
1152
|
-
data = _a.sent();
|
|
1153
|
-
contents = {};
|
|
1154
|
-
contents = deserializeAws_json1_1PutLifecyclePolicyOutput(data, context);
|
|
1155
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1156
|
-
return [2, Promise.resolve(response)];
|
|
1157
|
-
}
|
|
1158
|
-
});
|
|
1159
|
-
}); };
|
|
1160
|
-
var deserializeAws_json1_1PutLifecyclePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1161
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1162
|
-
var _c;
|
|
1163
|
-
return __generator(this, function (_d) {
|
|
1164
|
-
switch (_d.label) {
|
|
1165
|
-
case 0:
|
|
1166
|
-
_a = [__assign({}, output)];
|
|
1167
|
-
_c = {};
|
|
1168
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1169
|
-
case 1:
|
|
1170
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1171
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1172
|
-
_b = errorCode;
|
|
1173
|
-
switch (_b) {
|
|
1174
|
-
case "ContainerInUseException": return [3, 2];
|
|
1175
|
-
case "com.amazonaws.mediastore#ContainerInUseException": return [3, 2];
|
|
1176
|
-
case "ContainerNotFoundException": return [3, 4];
|
|
1177
|
-
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3, 4];
|
|
1178
|
-
case "InternalServerError": return [3, 6];
|
|
1179
|
-
case "com.amazonaws.mediastore#InternalServerError": return [3, 6];
|
|
1180
|
-
}
|
|
1181
|
-
return [3, 8];
|
|
1182
|
-
case 2: return [4, deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)];
|
|
1183
|
-
case 3: throw _d.sent();
|
|
1184
|
-
case 4: return [4, deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)];
|
|
1185
|
-
case 5: throw _d.sent();
|
|
1186
|
-
case 6: return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
1187
|
-
case 7: throw _d.sent();
|
|
1188
|
-
case 8:
|
|
1189
|
-
parsedBody = parsedOutput.body;
|
|
1190
|
-
throwDefaultError({
|
|
1191
|
-
output: output,
|
|
1192
|
-
parsedBody: parsedBody,
|
|
1193
|
-
exceptionCtor: __BaseException,
|
|
1194
|
-
errorCode: errorCode,
|
|
1195
|
-
});
|
|
1196
|
-
_d.label = 9;
|
|
1197
|
-
case 9: return [2];
|
|
1198
|
-
}
|
|
1199
|
-
});
|
|
1200
|
-
}); };
|
|
1201
|
-
export var deserializeAws_json1_1PutMetricPolicyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1202
|
-
var data, contents, response;
|
|
1203
|
-
return __generator(this, function (_a) {
|
|
1204
|
-
switch (_a.label) {
|
|
1205
|
-
case 0:
|
|
1206
|
-
if (output.statusCode >= 300) {
|
|
1207
|
-
return [2, deserializeAws_json1_1PutMetricPolicyCommandError(output, context)];
|
|
1208
|
-
}
|
|
1209
|
-
return [4, parseBody(output.body, context)];
|
|
1210
|
-
case 1:
|
|
1211
|
-
data = _a.sent();
|
|
1212
|
-
contents = {};
|
|
1213
|
-
contents = deserializeAws_json1_1PutMetricPolicyOutput(data, context);
|
|
1214
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1215
|
-
return [2, Promise.resolve(response)];
|
|
1216
|
-
}
|
|
1217
|
-
});
|
|
1218
|
-
}); };
|
|
1219
|
-
var deserializeAws_json1_1PutMetricPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1220
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1221
|
-
var _c;
|
|
1222
|
-
return __generator(this, function (_d) {
|
|
1223
|
-
switch (_d.label) {
|
|
1224
|
-
case 0:
|
|
1225
|
-
_a = [__assign({}, output)];
|
|
1226
|
-
_c = {};
|
|
1227
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1228
|
-
case 1:
|
|
1229
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1230
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1231
|
-
_b = errorCode;
|
|
1232
|
-
switch (_b) {
|
|
1233
|
-
case "ContainerInUseException": return [3, 2];
|
|
1234
|
-
case "com.amazonaws.mediastore#ContainerInUseException": return [3, 2];
|
|
1235
|
-
case "ContainerNotFoundException": return [3, 4];
|
|
1236
|
-
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3, 4];
|
|
1237
|
-
case "InternalServerError": return [3, 6];
|
|
1238
|
-
case "com.amazonaws.mediastore#InternalServerError": return [3, 6];
|
|
1239
|
-
}
|
|
1240
|
-
return [3, 8];
|
|
1241
|
-
case 2: return [4, deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)];
|
|
1242
|
-
case 3: throw _d.sent();
|
|
1243
|
-
case 4: return [4, deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)];
|
|
1244
|
-
case 5: throw _d.sent();
|
|
1245
|
-
case 6: return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
1246
|
-
case 7: throw _d.sent();
|
|
1247
|
-
case 8:
|
|
1248
|
-
parsedBody = parsedOutput.body;
|
|
1249
|
-
throwDefaultError({
|
|
1250
|
-
output: output,
|
|
1251
|
-
parsedBody: parsedBody,
|
|
1252
|
-
exceptionCtor: __BaseException,
|
|
1253
|
-
errorCode: errorCode,
|
|
1254
|
-
});
|
|
1255
|
-
_d.label = 9;
|
|
1256
|
-
case 9: return [2];
|
|
1257
|
-
}
|
|
1258
|
-
});
|
|
1259
|
-
}); };
|
|
1260
|
-
export var deserializeAws_json1_1StartAccessLoggingCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1261
|
-
var data, contents, response;
|
|
1262
|
-
return __generator(this, function (_a) {
|
|
1263
|
-
switch (_a.label) {
|
|
1264
|
-
case 0:
|
|
1265
|
-
if (output.statusCode >= 300) {
|
|
1266
|
-
return [2, deserializeAws_json1_1StartAccessLoggingCommandError(output, context)];
|
|
1267
|
-
}
|
|
1268
|
-
return [4, parseBody(output.body, context)];
|
|
1269
|
-
case 1:
|
|
1270
|
-
data = _a.sent();
|
|
1271
|
-
contents = {};
|
|
1272
|
-
contents = deserializeAws_json1_1StartAccessLoggingOutput(data, context);
|
|
1273
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1274
|
-
return [2, Promise.resolve(response)];
|
|
1275
|
-
}
|
|
1276
|
-
});
|
|
1277
|
-
}); };
|
|
1278
|
-
var deserializeAws_json1_1StartAccessLoggingCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1279
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1280
|
-
var _c;
|
|
1281
|
-
return __generator(this, function (_d) {
|
|
1282
|
-
switch (_d.label) {
|
|
1283
|
-
case 0:
|
|
1284
|
-
_a = [__assign({}, output)];
|
|
1285
|
-
_c = {};
|
|
1286
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1287
|
-
case 1:
|
|
1288
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1289
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1290
|
-
_b = errorCode;
|
|
1291
|
-
switch (_b) {
|
|
1292
|
-
case "ContainerInUseException": return [3, 2];
|
|
1293
|
-
case "com.amazonaws.mediastore#ContainerInUseException": return [3, 2];
|
|
1294
|
-
case "ContainerNotFoundException": return [3, 4];
|
|
1295
|
-
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3, 4];
|
|
1296
|
-
case "InternalServerError": return [3, 6];
|
|
1297
|
-
case "com.amazonaws.mediastore#InternalServerError": return [3, 6];
|
|
1298
|
-
}
|
|
1299
|
-
return [3, 8];
|
|
1300
|
-
case 2: return [4, deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)];
|
|
1301
|
-
case 3: throw _d.sent();
|
|
1302
|
-
case 4: return [4, deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)];
|
|
1303
|
-
case 5: throw _d.sent();
|
|
1304
|
-
case 6: return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
1305
|
-
case 7: throw _d.sent();
|
|
1306
|
-
case 8:
|
|
1307
|
-
parsedBody = parsedOutput.body;
|
|
1308
|
-
throwDefaultError({
|
|
1309
|
-
output: output,
|
|
1310
|
-
parsedBody: parsedBody,
|
|
1311
|
-
exceptionCtor: __BaseException,
|
|
1312
|
-
errorCode: errorCode,
|
|
1313
|
-
});
|
|
1314
|
-
_d.label = 9;
|
|
1315
|
-
case 9: return [2];
|
|
1316
|
-
}
|
|
1317
|
-
});
|
|
1318
|
-
}); };
|
|
1319
|
-
export var deserializeAws_json1_1StopAccessLoggingCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1320
|
-
var data, contents, response;
|
|
1321
|
-
return __generator(this, function (_a) {
|
|
1322
|
-
switch (_a.label) {
|
|
1323
|
-
case 0:
|
|
1324
|
-
if (output.statusCode >= 300) {
|
|
1325
|
-
return [2, deserializeAws_json1_1StopAccessLoggingCommandError(output, context)];
|
|
1326
|
-
}
|
|
1327
|
-
return [4, parseBody(output.body, context)];
|
|
1328
|
-
case 1:
|
|
1329
|
-
data = _a.sent();
|
|
1330
|
-
contents = {};
|
|
1331
|
-
contents = deserializeAws_json1_1StopAccessLoggingOutput(data, context);
|
|
1332
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1333
|
-
return [2, Promise.resolve(response)];
|
|
1334
|
-
}
|
|
1335
|
-
});
|
|
1336
|
-
}); };
|
|
1337
|
-
var deserializeAws_json1_1StopAccessLoggingCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1338
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1339
|
-
var _c;
|
|
1340
|
-
return __generator(this, function (_d) {
|
|
1341
|
-
switch (_d.label) {
|
|
1342
|
-
case 0:
|
|
1343
|
-
_a = [__assign({}, output)];
|
|
1344
|
-
_c = {};
|
|
1345
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1346
|
-
case 1:
|
|
1347
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1348
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1349
|
-
_b = errorCode;
|
|
1350
|
-
switch (_b) {
|
|
1351
|
-
case "ContainerInUseException": return [3, 2];
|
|
1352
|
-
case "com.amazonaws.mediastore#ContainerInUseException": return [3, 2];
|
|
1353
|
-
case "ContainerNotFoundException": return [3, 4];
|
|
1354
|
-
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3, 4];
|
|
1355
|
-
case "InternalServerError": return [3, 6];
|
|
1356
|
-
case "com.amazonaws.mediastore#InternalServerError": return [3, 6];
|
|
1357
|
-
}
|
|
1358
|
-
return [3, 8];
|
|
1359
|
-
case 2: return [4, deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)];
|
|
1360
|
-
case 3: throw _d.sent();
|
|
1361
|
-
case 4: return [4, deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)];
|
|
1362
|
-
case 5: throw _d.sent();
|
|
1363
|
-
case 6: return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
1364
|
-
case 7: throw _d.sent();
|
|
1365
|
-
case 8:
|
|
1366
|
-
parsedBody = parsedOutput.body;
|
|
1367
|
-
throwDefaultError({
|
|
1368
|
-
output: output,
|
|
1369
|
-
parsedBody: parsedBody,
|
|
1370
|
-
exceptionCtor: __BaseException,
|
|
1371
|
-
errorCode: errorCode,
|
|
1372
|
-
});
|
|
1373
|
-
_d.label = 9;
|
|
1374
|
-
case 9: return [2];
|
|
1375
|
-
}
|
|
1376
|
-
});
|
|
1377
|
-
}); };
|
|
1378
|
-
export var deserializeAws_json1_1TagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1379
|
-
var data, contents, response;
|
|
1380
|
-
return __generator(this, function (_a) {
|
|
1381
|
-
switch (_a.label) {
|
|
1382
|
-
case 0:
|
|
1383
|
-
if (output.statusCode >= 300) {
|
|
1384
|
-
return [2, deserializeAws_json1_1TagResourceCommandError(output, context)];
|
|
1385
|
-
}
|
|
1386
|
-
return [4, parseBody(output.body, context)];
|
|
1387
|
-
case 1:
|
|
1388
|
-
data = _a.sent();
|
|
1389
|
-
contents = {};
|
|
1390
|
-
contents = deserializeAws_json1_1TagResourceOutput(data, context);
|
|
1391
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1392
|
-
return [2, Promise.resolve(response)];
|
|
1393
|
-
}
|
|
1394
|
-
});
|
|
1395
|
-
}); };
|
|
1396
|
-
var deserializeAws_json1_1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1397
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1398
|
-
var _c;
|
|
1399
|
-
return __generator(this, function (_d) {
|
|
1400
|
-
switch (_d.label) {
|
|
1401
|
-
case 0:
|
|
1402
|
-
_a = [__assign({}, output)];
|
|
1403
|
-
_c = {};
|
|
1404
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1405
|
-
case 1:
|
|
1406
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1407
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1408
|
-
_b = errorCode;
|
|
1409
|
-
switch (_b) {
|
|
1410
|
-
case "ContainerInUseException": return [3, 2];
|
|
1411
|
-
case "com.amazonaws.mediastore#ContainerInUseException": return [3, 2];
|
|
1412
|
-
case "ContainerNotFoundException": return [3, 4];
|
|
1413
|
-
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3, 4];
|
|
1414
|
-
case "InternalServerError": return [3, 6];
|
|
1415
|
-
case "com.amazonaws.mediastore#InternalServerError": return [3, 6];
|
|
1416
|
-
}
|
|
1417
|
-
return [3, 8];
|
|
1418
|
-
case 2: return [4, deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)];
|
|
1419
|
-
case 3: throw _d.sent();
|
|
1420
|
-
case 4: return [4, deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)];
|
|
1421
|
-
case 5: throw _d.sent();
|
|
1422
|
-
case 6: return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
1423
|
-
case 7: throw _d.sent();
|
|
1424
|
-
case 8:
|
|
1425
|
-
parsedBody = parsedOutput.body;
|
|
1426
|
-
throwDefaultError({
|
|
1427
|
-
output: output,
|
|
1428
|
-
parsedBody: parsedBody,
|
|
1429
|
-
exceptionCtor: __BaseException,
|
|
1430
|
-
errorCode: errorCode,
|
|
1431
|
-
});
|
|
1432
|
-
_d.label = 9;
|
|
1433
|
-
case 9: return [2];
|
|
1434
|
-
}
|
|
1435
|
-
});
|
|
1436
|
-
}); };
|
|
1437
|
-
export var deserializeAws_json1_1UntagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1438
|
-
var data, contents, response;
|
|
1439
|
-
return __generator(this, function (_a) {
|
|
1440
|
-
switch (_a.label) {
|
|
1441
|
-
case 0:
|
|
1442
|
-
if (output.statusCode >= 300) {
|
|
1443
|
-
return [2, deserializeAws_json1_1UntagResourceCommandError(output, context)];
|
|
1444
|
-
}
|
|
1445
|
-
return [4, parseBody(output.body, context)];
|
|
1446
|
-
case 1:
|
|
1447
|
-
data = _a.sent();
|
|
1448
|
-
contents = {};
|
|
1449
|
-
contents = deserializeAws_json1_1UntagResourceOutput(data, context);
|
|
1450
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1451
|
-
return [2, Promise.resolve(response)];
|
|
1452
|
-
}
|
|
1453
|
-
});
|
|
1454
|
-
}); };
|
|
1455
|
-
var deserializeAws_json1_1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1456
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1457
|
-
var _c;
|
|
1458
|
-
return __generator(this, function (_d) {
|
|
1459
|
-
switch (_d.label) {
|
|
1460
|
-
case 0:
|
|
1461
|
-
_a = [__assign({}, output)];
|
|
1462
|
-
_c = {};
|
|
1463
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1464
|
-
case 1:
|
|
1465
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1466
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1467
|
-
_b = errorCode;
|
|
1468
|
-
switch (_b) {
|
|
1469
|
-
case "ContainerInUseException": return [3, 2];
|
|
1470
|
-
case "com.amazonaws.mediastore#ContainerInUseException": return [3, 2];
|
|
1471
|
-
case "ContainerNotFoundException": return [3, 4];
|
|
1472
|
-
case "com.amazonaws.mediastore#ContainerNotFoundException": return [3, 4];
|
|
1473
|
-
case "InternalServerError": return [3, 6];
|
|
1474
|
-
case "com.amazonaws.mediastore#InternalServerError": return [3, 6];
|
|
1475
|
-
}
|
|
1476
|
-
return [3, 8];
|
|
1477
|
-
case 2: return [4, deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)];
|
|
1478
|
-
case 3: throw _d.sent();
|
|
1479
|
-
case 4: return [4, deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)];
|
|
1480
|
-
case 5: throw _d.sent();
|
|
1481
|
-
case 6: return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
1482
|
-
case 7: throw _d.sent();
|
|
1483
|
-
case 8:
|
|
1484
|
-
parsedBody = parsedOutput.body;
|
|
1485
|
-
throwDefaultError({
|
|
1486
|
-
output: output,
|
|
1487
|
-
parsedBody: parsedBody,
|
|
1488
|
-
exceptionCtor: __BaseException,
|
|
1489
|
-
errorCode: errorCode,
|
|
1490
|
-
});
|
|
1491
|
-
_d.label = 9;
|
|
1492
|
-
case 9: return [2];
|
|
1493
|
-
}
|
|
1494
|
-
});
|
|
1495
|
-
}); };
|
|
1496
|
-
var deserializeAws_json1_1ContainerInUseExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1497
|
-
var body, deserialized, exception;
|
|
1498
|
-
return __generator(this, function (_a) {
|
|
1499
|
-
body = parsedOutput.body;
|
|
1500
|
-
deserialized = deserializeAws_json1_1ContainerInUseException(body, context);
|
|
1501
|
-
exception = new ContainerInUseException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1502
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1503
|
-
});
|
|
1504
|
-
}); };
|
|
1505
|
-
var deserializeAws_json1_1ContainerNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1506
|
-
var body, deserialized, exception;
|
|
1507
|
-
return __generator(this, function (_a) {
|
|
1508
|
-
body = parsedOutput.body;
|
|
1509
|
-
deserialized = deserializeAws_json1_1ContainerNotFoundException(body, context);
|
|
1510
|
-
exception = new ContainerNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1511
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1512
|
-
});
|
|
1513
|
-
}); };
|
|
1514
|
-
var deserializeAws_json1_1CorsPolicyNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1515
|
-
var body, deserialized, exception;
|
|
1516
|
-
return __generator(this, function (_a) {
|
|
1517
|
-
body = parsedOutput.body;
|
|
1518
|
-
deserialized = deserializeAws_json1_1CorsPolicyNotFoundException(body, context);
|
|
1519
|
-
exception = new CorsPolicyNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1520
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1521
|
-
});
|
|
1522
|
-
}); };
|
|
1523
|
-
var deserializeAws_json1_1InternalServerErrorResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1524
|
-
var body, deserialized, exception;
|
|
1525
|
-
return __generator(this, function (_a) {
|
|
1526
|
-
body = parsedOutput.body;
|
|
1527
|
-
deserialized = deserializeAws_json1_1InternalServerError(body, context);
|
|
1528
|
-
exception = new InternalServerError(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1529
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1530
|
-
});
|
|
1531
|
-
}); };
|
|
1532
|
-
var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1533
|
-
var body, deserialized, exception;
|
|
1534
|
-
return __generator(this, function (_a) {
|
|
1535
|
-
body = parsedOutput.body;
|
|
1536
|
-
deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
1537
|
-
exception = new LimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1538
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1539
|
-
});
|
|
1540
|
-
}); };
|
|
1541
|
-
var deserializeAws_json1_1PolicyNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1542
|
-
var body, deserialized, exception;
|
|
1543
|
-
return __generator(this, function (_a) {
|
|
1544
|
-
body = parsedOutput.body;
|
|
1545
|
-
deserialized = deserializeAws_json1_1PolicyNotFoundException(body, context);
|
|
1546
|
-
exception = new PolicyNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1547
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1548
|
-
});
|
|
1549
|
-
}); };
|
|
1550
|
-
var serializeAws_json1_1AllowedHeaders = function (input, context) {
|
|
5
|
+
export const serializeAws_json1_1CreateContainerCommand = async (input, context) => {
|
|
6
|
+
const headers = {
|
|
7
|
+
"content-type": "application/x-amz-json-1.1",
|
|
8
|
+
"x-amz-target": "MediaStore_20170901.CreateContainer",
|
|
9
|
+
};
|
|
10
|
+
let body;
|
|
11
|
+
body = JSON.stringify(serializeAws_json1_1CreateContainerInput(input, context));
|
|
12
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
|
+
};
|
|
14
|
+
export const serializeAws_json1_1DeleteContainerCommand = async (input, context) => {
|
|
15
|
+
const headers = {
|
|
16
|
+
"content-type": "application/x-amz-json-1.1",
|
|
17
|
+
"x-amz-target": "MediaStore_20170901.DeleteContainer",
|
|
18
|
+
};
|
|
19
|
+
let body;
|
|
20
|
+
body = JSON.stringify(serializeAws_json1_1DeleteContainerInput(input, context));
|
|
21
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
|
+
};
|
|
23
|
+
export const serializeAws_json1_1DeleteContainerPolicyCommand = async (input, context) => {
|
|
24
|
+
const headers = {
|
|
25
|
+
"content-type": "application/x-amz-json-1.1",
|
|
26
|
+
"x-amz-target": "MediaStore_20170901.DeleteContainerPolicy",
|
|
27
|
+
};
|
|
28
|
+
let body;
|
|
29
|
+
body = JSON.stringify(serializeAws_json1_1DeleteContainerPolicyInput(input, context));
|
|
30
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
|
+
};
|
|
32
|
+
export const serializeAws_json1_1DeleteCorsPolicyCommand = async (input, context) => {
|
|
33
|
+
const headers = {
|
|
34
|
+
"content-type": "application/x-amz-json-1.1",
|
|
35
|
+
"x-amz-target": "MediaStore_20170901.DeleteCorsPolicy",
|
|
36
|
+
};
|
|
37
|
+
let body;
|
|
38
|
+
body = JSON.stringify(serializeAws_json1_1DeleteCorsPolicyInput(input, context));
|
|
39
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
|
+
};
|
|
41
|
+
export const serializeAws_json1_1DeleteLifecyclePolicyCommand = async (input, context) => {
|
|
42
|
+
const headers = {
|
|
43
|
+
"content-type": "application/x-amz-json-1.1",
|
|
44
|
+
"x-amz-target": "MediaStore_20170901.DeleteLifecyclePolicy",
|
|
45
|
+
};
|
|
46
|
+
let body;
|
|
47
|
+
body = JSON.stringify(serializeAws_json1_1DeleteLifecyclePolicyInput(input, context));
|
|
48
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
|
+
};
|
|
50
|
+
export const serializeAws_json1_1DeleteMetricPolicyCommand = async (input, context) => {
|
|
51
|
+
const headers = {
|
|
52
|
+
"content-type": "application/x-amz-json-1.1",
|
|
53
|
+
"x-amz-target": "MediaStore_20170901.DeleteMetricPolicy",
|
|
54
|
+
};
|
|
55
|
+
let body;
|
|
56
|
+
body = JSON.stringify(serializeAws_json1_1DeleteMetricPolicyInput(input, context));
|
|
57
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
|
+
};
|
|
59
|
+
export const serializeAws_json1_1DescribeContainerCommand = async (input, context) => {
|
|
60
|
+
const headers = {
|
|
61
|
+
"content-type": "application/x-amz-json-1.1",
|
|
62
|
+
"x-amz-target": "MediaStore_20170901.DescribeContainer",
|
|
63
|
+
};
|
|
64
|
+
let body;
|
|
65
|
+
body = JSON.stringify(serializeAws_json1_1DescribeContainerInput(input, context));
|
|
66
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
|
+
};
|
|
68
|
+
export const serializeAws_json1_1GetContainerPolicyCommand = async (input, context) => {
|
|
69
|
+
const headers = {
|
|
70
|
+
"content-type": "application/x-amz-json-1.1",
|
|
71
|
+
"x-amz-target": "MediaStore_20170901.GetContainerPolicy",
|
|
72
|
+
};
|
|
73
|
+
let body;
|
|
74
|
+
body = JSON.stringify(serializeAws_json1_1GetContainerPolicyInput(input, context));
|
|
75
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
|
+
};
|
|
77
|
+
export const serializeAws_json1_1GetCorsPolicyCommand = async (input, context) => {
|
|
78
|
+
const headers = {
|
|
79
|
+
"content-type": "application/x-amz-json-1.1",
|
|
80
|
+
"x-amz-target": "MediaStore_20170901.GetCorsPolicy",
|
|
81
|
+
};
|
|
82
|
+
let body;
|
|
83
|
+
body = JSON.stringify(serializeAws_json1_1GetCorsPolicyInput(input, context));
|
|
84
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
|
+
};
|
|
86
|
+
export const serializeAws_json1_1GetLifecyclePolicyCommand = async (input, context) => {
|
|
87
|
+
const headers = {
|
|
88
|
+
"content-type": "application/x-amz-json-1.1",
|
|
89
|
+
"x-amz-target": "MediaStore_20170901.GetLifecyclePolicy",
|
|
90
|
+
};
|
|
91
|
+
let body;
|
|
92
|
+
body = JSON.stringify(serializeAws_json1_1GetLifecyclePolicyInput(input, context));
|
|
93
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
|
+
};
|
|
95
|
+
export const serializeAws_json1_1GetMetricPolicyCommand = async (input, context) => {
|
|
96
|
+
const headers = {
|
|
97
|
+
"content-type": "application/x-amz-json-1.1",
|
|
98
|
+
"x-amz-target": "MediaStore_20170901.GetMetricPolicy",
|
|
99
|
+
};
|
|
100
|
+
let body;
|
|
101
|
+
body = JSON.stringify(serializeAws_json1_1GetMetricPolicyInput(input, context));
|
|
102
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
103
|
+
};
|
|
104
|
+
export const serializeAws_json1_1ListContainersCommand = async (input, context) => {
|
|
105
|
+
const headers = {
|
|
106
|
+
"content-type": "application/x-amz-json-1.1",
|
|
107
|
+
"x-amz-target": "MediaStore_20170901.ListContainers",
|
|
108
|
+
};
|
|
109
|
+
let body;
|
|
110
|
+
body = JSON.stringify(serializeAws_json1_1ListContainersInput(input, context));
|
|
111
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
|
+
};
|
|
113
|
+
export const serializeAws_json1_1ListTagsForResourceCommand = async (input, context) => {
|
|
114
|
+
const headers = {
|
|
115
|
+
"content-type": "application/x-amz-json-1.1",
|
|
116
|
+
"x-amz-target": "MediaStore_20170901.ListTagsForResource",
|
|
117
|
+
};
|
|
118
|
+
let body;
|
|
119
|
+
body = JSON.stringify(serializeAws_json1_1ListTagsForResourceInput(input, context));
|
|
120
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
|
+
};
|
|
122
|
+
export const serializeAws_json1_1PutContainerPolicyCommand = async (input, context) => {
|
|
123
|
+
const headers = {
|
|
124
|
+
"content-type": "application/x-amz-json-1.1",
|
|
125
|
+
"x-amz-target": "MediaStore_20170901.PutContainerPolicy",
|
|
126
|
+
};
|
|
127
|
+
let body;
|
|
128
|
+
body = JSON.stringify(serializeAws_json1_1PutContainerPolicyInput(input, context));
|
|
129
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
130
|
+
};
|
|
131
|
+
export const serializeAws_json1_1PutCorsPolicyCommand = async (input, context) => {
|
|
132
|
+
const headers = {
|
|
133
|
+
"content-type": "application/x-amz-json-1.1",
|
|
134
|
+
"x-amz-target": "MediaStore_20170901.PutCorsPolicy",
|
|
135
|
+
};
|
|
136
|
+
let body;
|
|
137
|
+
body = JSON.stringify(serializeAws_json1_1PutCorsPolicyInput(input, context));
|
|
138
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
|
+
};
|
|
140
|
+
export const serializeAws_json1_1PutLifecyclePolicyCommand = async (input, context) => {
|
|
141
|
+
const headers = {
|
|
142
|
+
"content-type": "application/x-amz-json-1.1",
|
|
143
|
+
"x-amz-target": "MediaStore_20170901.PutLifecyclePolicy",
|
|
144
|
+
};
|
|
145
|
+
let body;
|
|
146
|
+
body = JSON.stringify(serializeAws_json1_1PutLifecyclePolicyInput(input, context));
|
|
147
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
|
+
};
|
|
149
|
+
export const serializeAws_json1_1PutMetricPolicyCommand = async (input, context) => {
|
|
150
|
+
const headers = {
|
|
151
|
+
"content-type": "application/x-amz-json-1.1",
|
|
152
|
+
"x-amz-target": "MediaStore_20170901.PutMetricPolicy",
|
|
153
|
+
};
|
|
154
|
+
let body;
|
|
155
|
+
body = JSON.stringify(serializeAws_json1_1PutMetricPolicyInput(input, context));
|
|
156
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
|
+
};
|
|
158
|
+
export const serializeAws_json1_1StartAccessLoggingCommand = async (input, context) => {
|
|
159
|
+
const headers = {
|
|
160
|
+
"content-type": "application/x-amz-json-1.1",
|
|
161
|
+
"x-amz-target": "MediaStore_20170901.StartAccessLogging",
|
|
162
|
+
};
|
|
163
|
+
let body;
|
|
164
|
+
body = JSON.stringify(serializeAws_json1_1StartAccessLoggingInput(input, context));
|
|
165
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
|
+
};
|
|
167
|
+
export const serializeAws_json1_1StopAccessLoggingCommand = async (input, context) => {
|
|
168
|
+
const headers = {
|
|
169
|
+
"content-type": "application/x-amz-json-1.1",
|
|
170
|
+
"x-amz-target": "MediaStore_20170901.StopAccessLogging",
|
|
171
|
+
};
|
|
172
|
+
let body;
|
|
173
|
+
body = JSON.stringify(serializeAws_json1_1StopAccessLoggingInput(input, context));
|
|
174
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
|
+
};
|
|
176
|
+
export const serializeAws_json1_1TagResourceCommand = async (input, context) => {
|
|
177
|
+
const headers = {
|
|
178
|
+
"content-type": "application/x-amz-json-1.1",
|
|
179
|
+
"x-amz-target": "MediaStore_20170901.TagResource",
|
|
180
|
+
};
|
|
181
|
+
let body;
|
|
182
|
+
body = JSON.stringify(serializeAws_json1_1TagResourceInput(input, context));
|
|
183
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
|
+
};
|
|
185
|
+
export const serializeAws_json1_1UntagResourceCommand = async (input, context) => {
|
|
186
|
+
const headers = {
|
|
187
|
+
"content-type": "application/x-amz-json-1.1",
|
|
188
|
+
"x-amz-target": "MediaStore_20170901.UntagResource",
|
|
189
|
+
};
|
|
190
|
+
let body;
|
|
191
|
+
body = JSON.stringify(serializeAws_json1_1UntagResourceInput(input, context));
|
|
192
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
193
|
+
};
|
|
194
|
+
export const deserializeAws_json1_1CreateContainerCommand = async (output, context) => {
|
|
195
|
+
if (output.statusCode >= 300) {
|
|
196
|
+
return deserializeAws_json1_1CreateContainerCommandError(output, context);
|
|
197
|
+
}
|
|
198
|
+
const data = await parseBody(output.body, context);
|
|
199
|
+
let contents = {};
|
|
200
|
+
contents = deserializeAws_json1_1CreateContainerOutput(data, context);
|
|
201
|
+
const response = {
|
|
202
|
+
$metadata: deserializeMetadata(output),
|
|
203
|
+
...contents,
|
|
204
|
+
};
|
|
205
|
+
return Promise.resolve(response);
|
|
206
|
+
};
|
|
207
|
+
const deserializeAws_json1_1CreateContainerCommandError = async (output, context) => {
|
|
208
|
+
const parsedOutput = {
|
|
209
|
+
...output,
|
|
210
|
+
body: await parseErrorBody(output.body, context),
|
|
211
|
+
};
|
|
212
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
213
|
+
switch (errorCode) {
|
|
214
|
+
case "ContainerInUseException":
|
|
215
|
+
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
216
|
+
throw await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context);
|
|
217
|
+
case "InternalServerError":
|
|
218
|
+
case "com.amazonaws.mediastore#InternalServerError":
|
|
219
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
220
|
+
case "LimitExceededException":
|
|
221
|
+
case "com.amazonaws.mediastore#LimitExceededException":
|
|
222
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
223
|
+
default:
|
|
224
|
+
const parsedBody = parsedOutput.body;
|
|
225
|
+
throwDefaultError({
|
|
226
|
+
output,
|
|
227
|
+
parsedBody,
|
|
228
|
+
exceptionCtor: __BaseException,
|
|
229
|
+
errorCode,
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
export const deserializeAws_json1_1DeleteContainerCommand = async (output, context) => {
|
|
234
|
+
if (output.statusCode >= 300) {
|
|
235
|
+
return deserializeAws_json1_1DeleteContainerCommandError(output, context);
|
|
236
|
+
}
|
|
237
|
+
const data = await parseBody(output.body, context);
|
|
238
|
+
let contents = {};
|
|
239
|
+
contents = deserializeAws_json1_1DeleteContainerOutput(data, context);
|
|
240
|
+
const response = {
|
|
241
|
+
$metadata: deserializeMetadata(output),
|
|
242
|
+
...contents,
|
|
243
|
+
};
|
|
244
|
+
return Promise.resolve(response);
|
|
245
|
+
};
|
|
246
|
+
const deserializeAws_json1_1DeleteContainerCommandError = async (output, context) => {
|
|
247
|
+
const parsedOutput = {
|
|
248
|
+
...output,
|
|
249
|
+
body: await parseErrorBody(output.body, context),
|
|
250
|
+
};
|
|
251
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
252
|
+
switch (errorCode) {
|
|
253
|
+
case "ContainerInUseException":
|
|
254
|
+
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
255
|
+
throw await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context);
|
|
256
|
+
case "ContainerNotFoundException":
|
|
257
|
+
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
258
|
+
throw await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
259
|
+
case "InternalServerError":
|
|
260
|
+
case "com.amazonaws.mediastore#InternalServerError":
|
|
261
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
262
|
+
default:
|
|
263
|
+
const parsedBody = parsedOutput.body;
|
|
264
|
+
throwDefaultError({
|
|
265
|
+
output,
|
|
266
|
+
parsedBody,
|
|
267
|
+
exceptionCtor: __BaseException,
|
|
268
|
+
errorCode,
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
};
|
|
272
|
+
export const deserializeAws_json1_1DeleteContainerPolicyCommand = async (output, context) => {
|
|
273
|
+
if (output.statusCode >= 300) {
|
|
274
|
+
return deserializeAws_json1_1DeleteContainerPolicyCommandError(output, context);
|
|
275
|
+
}
|
|
276
|
+
const data = await parseBody(output.body, context);
|
|
277
|
+
let contents = {};
|
|
278
|
+
contents = deserializeAws_json1_1DeleteContainerPolicyOutput(data, context);
|
|
279
|
+
const response = {
|
|
280
|
+
$metadata: deserializeMetadata(output),
|
|
281
|
+
...contents,
|
|
282
|
+
};
|
|
283
|
+
return Promise.resolve(response);
|
|
284
|
+
};
|
|
285
|
+
const deserializeAws_json1_1DeleteContainerPolicyCommandError = async (output, context) => {
|
|
286
|
+
const parsedOutput = {
|
|
287
|
+
...output,
|
|
288
|
+
body: await parseErrorBody(output.body, context),
|
|
289
|
+
};
|
|
290
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
291
|
+
switch (errorCode) {
|
|
292
|
+
case "ContainerInUseException":
|
|
293
|
+
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
294
|
+
throw await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context);
|
|
295
|
+
case "ContainerNotFoundException":
|
|
296
|
+
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
297
|
+
throw await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
298
|
+
case "InternalServerError":
|
|
299
|
+
case "com.amazonaws.mediastore#InternalServerError":
|
|
300
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
301
|
+
case "PolicyNotFoundException":
|
|
302
|
+
case "com.amazonaws.mediastore#PolicyNotFoundException":
|
|
303
|
+
throw await deserializeAws_json1_1PolicyNotFoundExceptionResponse(parsedOutput, context);
|
|
304
|
+
default:
|
|
305
|
+
const parsedBody = parsedOutput.body;
|
|
306
|
+
throwDefaultError({
|
|
307
|
+
output,
|
|
308
|
+
parsedBody,
|
|
309
|
+
exceptionCtor: __BaseException,
|
|
310
|
+
errorCode,
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
};
|
|
314
|
+
export const deserializeAws_json1_1DeleteCorsPolicyCommand = async (output, context) => {
|
|
315
|
+
if (output.statusCode >= 300) {
|
|
316
|
+
return deserializeAws_json1_1DeleteCorsPolicyCommandError(output, context);
|
|
317
|
+
}
|
|
318
|
+
const data = await parseBody(output.body, context);
|
|
319
|
+
let contents = {};
|
|
320
|
+
contents = deserializeAws_json1_1DeleteCorsPolicyOutput(data, context);
|
|
321
|
+
const response = {
|
|
322
|
+
$metadata: deserializeMetadata(output),
|
|
323
|
+
...contents,
|
|
324
|
+
};
|
|
325
|
+
return Promise.resolve(response);
|
|
326
|
+
};
|
|
327
|
+
const deserializeAws_json1_1DeleteCorsPolicyCommandError = async (output, context) => {
|
|
328
|
+
const parsedOutput = {
|
|
329
|
+
...output,
|
|
330
|
+
body: await parseErrorBody(output.body, context),
|
|
331
|
+
};
|
|
332
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
333
|
+
switch (errorCode) {
|
|
334
|
+
case "ContainerInUseException":
|
|
335
|
+
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
336
|
+
throw await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context);
|
|
337
|
+
case "ContainerNotFoundException":
|
|
338
|
+
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
339
|
+
throw await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
340
|
+
case "CorsPolicyNotFoundException":
|
|
341
|
+
case "com.amazonaws.mediastore#CorsPolicyNotFoundException":
|
|
342
|
+
throw await deserializeAws_json1_1CorsPolicyNotFoundExceptionResponse(parsedOutput, context);
|
|
343
|
+
case "InternalServerError":
|
|
344
|
+
case "com.amazonaws.mediastore#InternalServerError":
|
|
345
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
346
|
+
default:
|
|
347
|
+
const parsedBody = parsedOutput.body;
|
|
348
|
+
throwDefaultError({
|
|
349
|
+
output,
|
|
350
|
+
parsedBody,
|
|
351
|
+
exceptionCtor: __BaseException,
|
|
352
|
+
errorCode,
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
};
|
|
356
|
+
export const deserializeAws_json1_1DeleteLifecyclePolicyCommand = async (output, context) => {
|
|
357
|
+
if (output.statusCode >= 300) {
|
|
358
|
+
return deserializeAws_json1_1DeleteLifecyclePolicyCommandError(output, context);
|
|
359
|
+
}
|
|
360
|
+
const data = await parseBody(output.body, context);
|
|
361
|
+
let contents = {};
|
|
362
|
+
contents = deserializeAws_json1_1DeleteLifecyclePolicyOutput(data, context);
|
|
363
|
+
const response = {
|
|
364
|
+
$metadata: deserializeMetadata(output),
|
|
365
|
+
...contents,
|
|
366
|
+
};
|
|
367
|
+
return Promise.resolve(response);
|
|
368
|
+
};
|
|
369
|
+
const deserializeAws_json1_1DeleteLifecyclePolicyCommandError = async (output, context) => {
|
|
370
|
+
const parsedOutput = {
|
|
371
|
+
...output,
|
|
372
|
+
body: await parseErrorBody(output.body, context),
|
|
373
|
+
};
|
|
374
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
375
|
+
switch (errorCode) {
|
|
376
|
+
case "ContainerInUseException":
|
|
377
|
+
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
378
|
+
throw await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context);
|
|
379
|
+
case "ContainerNotFoundException":
|
|
380
|
+
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
381
|
+
throw await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
382
|
+
case "InternalServerError":
|
|
383
|
+
case "com.amazonaws.mediastore#InternalServerError":
|
|
384
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
385
|
+
case "PolicyNotFoundException":
|
|
386
|
+
case "com.amazonaws.mediastore#PolicyNotFoundException":
|
|
387
|
+
throw await deserializeAws_json1_1PolicyNotFoundExceptionResponse(parsedOutput, context);
|
|
388
|
+
default:
|
|
389
|
+
const parsedBody = parsedOutput.body;
|
|
390
|
+
throwDefaultError({
|
|
391
|
+
output,
|
|
392
|
+
parsedBody,
|
|
393
|
+
exceptionCtor: __BaseException,
|
|
394
|
+
errorCode,
|
|
395
|
+
});
|
|
396
|
+
}
|
|
397
|
+
};
|
|
398
|
+
export const deserializeAws_json1_1DeleteMetricPolicyCommand = async (output, context) => {
|
|
399
|
+
if (output.statusCode >= 300) {
|
|
400
|
+
return deserializeAws_json1_1DeleteMetricPolicyCommandError(output, context);
|
|
401
|
+
}
|
|
402
|
+
const data = await parseBody(output.body, context);
|
|
403
|
+
let contents = {};
|
|
404
|
+
contents = deserializeAws_json1_1DeleteMetricPolicyOutput(data, context);
|
|
405
|
+
const response = {
|
|
406
|
+
$metadata: deserializeMetadata(output),
|
|
407
|
+
...contents,
|
|
408
|
+
};
|
|
409
|
+
return Promise.resolve(response);
|
|
410
|
+
};
|
|
411
|
+
const deserializeAws_json1_1DeleteMetricPolicyCommandError = async (output, context) => {
|
|
412
|
+
const parsedOutput = {
|
|
413
|
+
...output,
|
|
414
|
+
body: await parseErrorBody(output.body, context),
|
|
415
|
+
};
|
|
416
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
417
|
+
switch (errorCode) {
|
|
418
|
+
case "ContainerInUseException":
|
|
419
|
+
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
420
|
+
throw await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context);
|
|
421
|
+
case "ContainerNotFoundException":
|
|
422
|
+
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
423
|
+
throw await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
424
|
+
case "InternalServerError":
|
|
425
|
+
case "com.amazonaws.mediastore#InternalServerError":
|
|
426
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
427
|
+
case "PolicyNotFoundException":
|
|
428
|
+
case "com.amazonaws.mediastore#PolicyNotFoundException":
|
|
429
|
+
throw await deserializeAws_json1_1PolicyNotFoundExceptionResponse(parsedOutput, context);
|
|
430
|
+
default:
|
|
431
|
+
const parsedBody = parsedOutput.body;
|
|
432
|
+
throwDefaultError({
|
|
433
|
+
output,
|
|
434
|
+
parsedBody,
|
|
435
|
+
exceptionCtor: __BaseException,
|
|
436
|
+
errorCode,
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
};
|
|
440
|
+
export const deserializeAws_json1_1DescribeContainerCommand = async (output, context) => {
|
|
441
|
+
if (output.statusCode >= 300) {
|
|
442
|
+
return deserializeAws_json1_1DescribeContainerCommandError(output, context);
|
|
443
|
+
}
|
|
444
|
+
const data = await parseBody(output.body, context);
|
|
445
|
+
let contents = {};
|
|
446
|
+
contents = deserializeAws_json1_1DescribeContainerOutput(data, context);
|
|
447
|
+
const response = {
|
|
448
|
+
$metadata: deserializeMetadata(output),
|
|
449
|
+
...contents,
|
|
450
|
+
};
|
|
451
|
+
return Promise.resolve(response);
|
|
452
|
+
};
|
|
453
|
+
const deserializeAws_json1_1DescribeContainerCommandError = async (output, context) => {
|
|
454
|
+
const parsedOutput = {
|
|
455
|
+
...output,
|
|
456
|
+
body: await parseErrorBody(output.body, context),
|
|
457
|
+
};
|
|
458
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
459
|
+
switch (errorCode) {
|
|
460
|
+
case "ContainerNotFoundException":
|
|
461
|
+
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
462
|
+
throw await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
463
|
+
case "InternalServerError":
|
|
464
|
+
case "com.amazonaws.mediastore#InternalServerError":
|
|
465
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
466
|
+
default:
|
|
467
|
+
const parsedBody = parsedOutput.body;
|
|
468
|
+
throwDefaultError({
|
|
469
|
+
output,
|
|
470
|
+
parsedBody,
|
|
471
|
+
exceptionCtor: __BaseException,
|
|
472
|
+
errorCode,
|
|
473
|
+
});
|
|
474
|
+
}
|
|
475
|
+
};
|
|
476
|
+
export const deserializeAws_json1_1GetContainerPolicyCommand = async (output, context) => {
|
|
477
|
+
if (output.statusCode >= 300) {
|
|
478
|
+
return deserializeAws_json1_1GetContainerPolicyCommandError(output, context);
|
|
479
|
+
}
|
|
480
|
+
const data = await parseBody(output.body, context);
|
|
481
|
+
let contents = {};
|
|
482
|
+
contents = deserializeAws_json1_1GetContainerPolicyOutput(data, context);
|
|
483
|
+
const response = {
|
|
484
|
+
$metadata: deserializeMetadata(output),
|
|
485
|
+
...contents,
|
|
486
|
+
};
|
|
487
|
+
return Promise.resolve(response);
|
|
488
|
+
};
|
|
489
|
+
const deserializeAws_json1_1GetContainerPolicyCommandError = async (output, context) => {
|
|
490
|
+
const parsedOutput = {
|
|
491
|
+
...output,
|
|
492
|
+
body: await parseErrorBody(output.body, context),
|
|
493
|
+
};
|
|
494
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
495
|
+
switch (errorCode) {
|
|
496
|
+
case "ContainerInUseException":
|
|
497
|
+
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
498
|
+
throw await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context);
|
|
499
|
+
case "ContainerNotFoundException":
|
|
500
|
+
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
501
|
+
throw await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
502
|
+
case "InternalServerError":
|
|
503
|
+
case "com.amazonaws.mediastore#InternalServerError":
|
|
504
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
505
|
+
case "PolicyNotFoundException":
|
|
506
|
+
case "com.amazonaws.mediastore#PolicyNotFoundException":
|
|
507
|
+
throw await deserializeAws_json1_1PolicyNotFoundExceptionResponse(parsedOutput, context);
|
|
508
|
+
default:
|
|
509
|
+
const parsedBody = parsedOutput.body;
|
|
510
|
+
throwDefaultError({
|
|
511
|
+
output,
|
|
512
|
+
parsedBody,
|
|
513
|
+
exceptionCtor: __BaseException,
|
|
514
|
+
errorCode,
|
|
515
|
+
});
|
|
516
|
+
}
|
|
517
|
+
};
|
|
518
|
+
export const deserializeAws_json1_1GetCorsPolicyCommand = async (output, context) => {
|
|
519
|
+
if (output.statusCode >= 300) {
|
|
520
|
+
return deserializeAws_json1_1GetCorsPolicyCommandError(output, context);
|
|
521
|
+
}
|
|
522
|
+
const data = await parseBody(output.body, context);
|
|
523
|
+
let contents = {};
|
|
524
|
+
contents = deserializeAws_json1_1GetCorsPolicyOutput(data, context);
|
|
525
|
+
const response = {
|
|
526
|
+
$metadata: deserializeMetadata(output),
|
|
527
|
+
...contents,
|
|
528
|
+
};
|
|
529
|
+
return Promise.resolve(response);
|
|
530
|
+
};
|
|
531
|
+
const deserializeAws_json1_1GetCorsPolicyCommandError = async (output, context) => {
|
|
532
|
+
const parsedOutput = {
|
|
533
|
+
...output,
|
|
534
|
+
body: await parseErrorBody(output.body, context),
|
|
535
|
+
};
|
|
536
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
537
|
+
switch (errorCode) {
|
|
538
|
+
case "ContainerInUseException":
|
|
539
|
+
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
540
|
+
throw await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context);
|
|
541
|
+
case "ContainerNotFoundException":
|
|
542
|
+
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
543
|
+
throw await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
544
|
+
case "CorsPolicyNotFoundException":
|
|
545
|
+
case "com.amazonaws.mediastore#CorsPolicyNotFoundException":
|
|
546
|
+
throw await deserializeAws_json1_1CorsPolicyNotFoundExceptionResponse(parsedOutput, context);
|
|
547
|
+
case "InternalServerError":
|
|
548
|
+
case "com.amazonaws.mediastore#InternalServerError":
|
|
549
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
550
|
+
default:
|
|
551
|
+
const parsedBody = parsedOutput.body;
|
|
552
|
+
throwDefaultError({
|
|
553
|
+
output,
|
|
554
|
+
parsedBody,
|
|
555
|
+
exceptionCtor: __BaseException,
|
|
556
|
+
errorCode,
|
|
557
|
+
});
|
|
558
|
+
}
|
|
559
|
+
};
|
|
560
|
+
export const deserializeAws_json1_1GetLifecyclePolicyCommand = async (output, context) => {
|
|
561
|
+
if (output.statusCode >= 300) {
|
|
562
|
+
return deserializeAws_json1_1GetLifecyclePolicyCommandError(output, context);
|
|
563
|
+
}
|
|
564
|
+
const data = await parseBody(output.body, context);
|
|
565
|
+
let contents = {};
|
|
566
|
+
contents = deserializeAws_json1_1GetLifecyclePolicyOutput(data, context);
|
|
567
|
+
const response = {
|
|
568
|
+
$metadata: deserializeMetadata(output),
|
|
569
|
+
...contents,
|
|
570
|
+
};
|
|
571
|
+
return Promise.resolve(response);
|
|
572
|
+
};
|
|
573
|
+
const deserializeAws_json1_1GetLifecyclePolicyCommandError = async (output, context) => {
|
|
574
|
+
const parsedOutput = {
|
|
575
|
+
...output,
|
|
576
|
+
body: await parseErrorBody(output.body, context),
|
|
577
|
+
};
|
|
578
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
579
|
+
switch (errorCode) {
|
|
580
|
+
case "ContainerInUseException":
|
|
581
|
+
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
582
|
+
throw await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context);
|
|
583
|
+
case "ContainerNotFoundException":
|
|
584
|
+
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
585
|
+
throw await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
586
|
+
case "InternalServerError":
|
|
587
|
+
case "com.amazonaws.mediastore#InternalServerError":
|
|
588
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
589
|
+
case "PolicyNotFoundException":
|
|
590
|
+
case "com.amazonaws.mediastore#PolicyNotFoundException":
|
|
591
|
+
throw await deserializeAws_json1_1PolicyNotFoundExceptionResponse(parsedOutput, context);
|
|
592
|
+
default:
|
|
593
|
+
const parsedBody = parsedOutput.body;
|
|
594
|
+
throwDefaultError({
|
|
595
|
+
output,
|
|
596
|
+
parsedBody,
|
|
597
|
+
exceptionCtor: __BaseException,
|
|
598
|
+
errorCode,
|
|
599
|
+
});
|
|
600
|
+
}
|
|
601
|
+
};
|
|
602
|
+
export const deserializeAws_json1_1GetMetricPolicyCommand = async (output, context) => {
|
|
603
|
+
if (output.statusCode >= 300) {
|
|
604
|
+
return deserializeAws_json1_1GetMetricPolicyCommandError(output, context);
|
|
605
|
+
}
|
|
606
|
+
const data = await parseBody(output.body, context);
|
|
607
|
+
let contents = {};
|
|
608
|
+
contents = deserializeAws_json1_1GetMetricPolicyOutput(data, context);
|
|
609
|
+
const response = {
|
|
610
|
+
$metadata: deserializeMetadata(output),
|
|
611
|
+
...contents,
|
|
612
|
+
};
|
|
613
|
+
return Promise.resolve(response);
|
|
614
|
+
};
|
|
615
|
+
const deserializeAws_json1_1GetMetricPolicyCommandError = async (output, context) => {
|
|
616
|
+
const parsedOutput = {
|
|
617
|
+
...output,
|
|
618
|
+
body: await parseErrorBody(output.body, context),
|
|
619
|
+
};
|
|
620
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
621
|
+
switch (errorCode) {
|
|
622
|
+
case "ContainerInUseException":
|
|
623
|
+
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
624
|
+
throw await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context);
|
|
625
|
+
case "ContainerNotFoundException":
|
|
626
|
+
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
627
|
+
throw await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
628
|
+
case "InternalServerError":
|
|
629
|
+
case "com.amazonaws.mediastore#InternalServerError":
|
|
630
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
631
|
+
case "PolicyNotFoundException":
|
|
632
|
+
case "com.amazonaws.mediastore#PolicyNotFoundException":
|
|
633
|
+
throw await deserializeAws_json1_1PolicyNotFoundExceptionResponse(parsedOutput, context);
|
|
634
|
+
default:
|
|
635
|
+
const parsedBody = parsedOutput.body;
|
|
636
|
+
throwDefaultError({
|
|
637
|
+
output,
|
|
638
|
+
parsedBody,
|
|
639
|
+
exceptionCtor: __BaseException,
|
|
640
|
+
errorCode,
|
|
641
|
+
});
|
|
642
|
+
}
|
|
643
|
+
};
|
|
644
|
+
export const deserializeAws_json1_1ListContainersCommand = async (output, context) => {
|
|
645
|
+
if (output.statusCode >= 300) {
|
|
646
|
+
return deserializeAws_json1_1ListContainersCommandError(output, context);
|
|
647
|
+
}
|
|
648
|
+
const data = await parseBody(output.body, context);
|
|
649
|
+
let contents = {};
|
|
650
|
+
contents = deserializeAws_json1_1ListContainersOutput(data, context);
|
|
651
|
+
const response = {
|
|
652
|
+
$metadata: deserializeMetadata(output),
|
|
653
|
+
...contents,
|
|
654
|
+
};
|
|
655
|
+
return Promise.resolve(response);
|
|
656
|
+
};
|
|
657
|
+
const deserializeAws_json1_1ListContainersCommandError = async (output, context) => {
|
|
658
|
+
const parsedOutput = {
|
|
659
|
+
...output,
|
|
660
|
+
body: await parseErrorBody(output.body, context),
|
|
661
|
+
};
|
|
662
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
663
|
+
switch (errorCode) {
|
|
664
|
+
case "InternalServerError":
|
|
665
|
+
case "com.amazonaws.mediastore#InternalServerError":
|
|
666
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
667
|
+
default:
|
|
668
|
+
const parsedBody = parsedOutput.body;
|
|
669
|
+
throwDefaultError({
|
|
670
|
+
output,
|
|
671
|
+
parsedBody,
|
|
672
|
+
exceptionCtor: __BaseException,
|
|
673
|
+
errorCode,
|
|
674
|
+
});
|
|
675
|
+
}
|
|
676
|
+
};
|
|
677
|
+
export const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
678
|
+
if (output.statusCode >= 300) {
|
|
679
|
+
return deserializeAws_json1_1ListTagsForResourceCommandError(output, context);
|
|
680
|
+
}
|
|
681
|
+
const data = await parseBody(output.body, context);
|
|
682
|
+
let contents = {};
|
|
683
|
+
contents = deserializeAws_json1_1ListTagsForResourceOutput(data, context);
|
|
684
|
+
const response = {
|
|
685
|
+
$metadata: deserializeMetadata(output),
|
|
686
|
+
...contents,
|
|
687
|
+
};
|
|
688
|
+
return Promise.resolve(response);
|
|
689
|
+
};
|
|
690
|
+
const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
|
|
691
|
+
const parsedOutput = {
|
|
692
|
+
...output,
|
|
693
|
+
body: await parseErrorBody(output.body, context),
|
|
694
|
+
};
|
|
695
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
696
|
+
switch (errorCode) {
|
|
697
|
+
case "ContainerInUseException":
|
|
698
|
+
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
699
|
+
throw await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context);
|
|
700
|
+
case "ContainerNotFoundException":
|
|
701
|
+
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
702
|
+
throw await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
703
|
+
case "InternalServerError":
|
|
704
|
+
case "com.amazonaws.mediastore#InternalServerError":
|
|
705
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
706
|
+
default:
|
|
707
|
+
const parsedBody = parsedOutput.body;
|
|
708
|
+
throwDefaultError({
|
|
709
|
+
output,
|
|
710
|
+
parsedBody,
|
|
711
|
+
exceptionCtor: __BaseException,
|
|
712
|
+
errorCode,
|
|
713
|
+
});
|
|
714
|
+
}
|
|
715
|
+
};
|
|
716
|
+
export const deserializeAws_json1_1PutContainerPolicyCommand = async (output, context) => {
|
|
717
|
+
if (output.statusCode >= 300) {
|
|
718
|
+
return deserializeAws_json1_1PutContainerPolicyCommandError(output, context);
|
|
719
|
+
}
|
|
720
|
+
const data = await parseBody(output.body, context);
|
|
721
|
+
let contents = {};
|
|
722
|
+
contents = deserializeAws_json1_1PutContainerPolicyOutput(data, context);
|
|
723
|
+
const response = {
|
|
724
|
+
$metadata: deserializeMetadata(output),
|
|
725
|
+
...contents,
|
|
726
|
+
};
|
|
727
|
+
return Promise.resolve(response);
|
|
728
|
+
};
|
|
729
|
+
const deserializeAws_json1_1PutContainerPolicyCommandError = async (output, context) => {
|
|
730
|
+
const parsedOutput = {
|
|
731
|
+
...output,
|
|
732
|
+
body: await parseErrorBody(output.body, context),
|
|
733
|
+
};
|
|
734
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
735
|
+
switch (errorCode) {
|
|
736
|
+
case "ContainerInUseException":
|
|
737
|
+
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
738
|
+
throw await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context);
|
|
739
|
+
case "ContainerNotFoundException":
|
|
740
|
+
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
741
|
+
throw await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
742
|
+
case "InternalServerError":
|
|
743
|
+
case "com.amazonaws.mediastore#InternalServerError":
|
|
744
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
745
|
+
default:
|
|
746
|
+
const parsedBody = parsedOutput.body;
|
|
747
|
+
throwDefaultError({
|
|
748
|
+
output,
|
|
749
|
+
parsedBody,
|
|
750
|
+
exceptionCtor: __BaseException,
|
|
751
|
+
errorCode,
|
|
752
|
+
});
|
|
753
|
+
}
|
|
754
|
+
};
|
|
755
|
+
export const deserializeAws_json1_1PutCorsPolicyCommand = async (output, context) => {
|
|
756
|
+
if (output.statusCode >= 300) {
|
|
757
|
+
return deserializeAws_json1_1PutCorsPolicyCommandError(output, context);
|
|
758
|
+
}
|
|
759
|
+
const data = await parseBody(output.body, context);
|
|
760
|
+
let contents = {};
|
|
761
|
+
contents = deserializeAws_json1_1PutCorsPolicyOutput(data, context);
|
|
762
|
+
const response = {
|
|
763
|
+
$metadata: deserializeMetadata(output),
|
|
764
|
+
...contents,
|
|
765
|
+
};
|
|
766
|
+
return Promise.resolve(response);
|
|
767
|
+
};
|
|
768
|
+
const deserializeAws_json1_1PutCorsPolicyCommandError = async (output, context) => {
|
|
769
|
+
const parsedOutput = {
|
|
770
|
+
...output,
|
|
771
|
+
body: await parseErrorBody(output.body, context),
|
|
772
|
+
};
|
|
773
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
774
|
+
switch (errorCode) {
|
|
775
|
+
case "ContainerInUseException":
|
|
776
|
+
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
777
|
+
throw await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context);
|
|
778
|
+
case "ContainerNotFoundException":
|
|
779
|
+
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
780
|
+
throw await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
781
|
+
case "InternalServerError":
|
|
782
|
+
case "com.amazonaws.mediastore#InternalServerError":
|
|
783
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
784
|
+
default:
|
|
785
|
+
const parsedBody = parsedOutput.body;
|
|
786
|
+
throwDefaultError({
|
|
787
|
+
output,
|
|
788
|
+
parsedBody,
|
|
789
|
+
exceptionCtor: __BaseException,
|
|
790
|
+
errorCode,
|
|
791
|
+
});
|
|
792
|
+
}
|
|
793
|
+
};
|
|
794
|
+
export const deserializeAws_json1_1PutLifecyclePolicyCommand = async (output, context) => {
|
|
795
|
+
if (output.statusCode >= 300) {
|
|
796
|
+
return deserializeAws_json1_1PutLifecyclePolicyCommandError(output, context);
|
|
797
|
+
}
|
|
798
|
+
const data = await parseBody(output.body, context);
|
|
799
|
+
let contents = {};
|
|
800
|
+
contents = deserializeAws_json1_1PutLifecyclePolicyOutput(data, context);
|
|
801
|
+
const response = {
|
|
802
|
+
$metadata: deserializeMetadata(output),
|
|
803
|
+
...contents,
|
|
804
|
+
};
|
|
805
|
+
return Promise.resolve(response);
|
|
806
|
+
};
|
|
807
|
+
const deserializeAws_json1_1PutLifecyclePolicyCommandError = async (output, context) => {
|
|
808
|
+
const parsedOutput = {
|
|
809
|
+
...output,
|
|
810
|
+
body: await parseErrorBody(output.body, context),
|
|
811
|
+
};
|
|
812
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
813
|
+
switch (errorCode) {
|
|
814
|
+
case "ContainerInUseException":
|
|
815
|
+
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
816
|
+
throw await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context);
|
|
817
|
+
case "ContainerNotFoundException":
|
|
818
|
+
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
819
|
+
throw await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
820
|
+
case "InternalServerError":
|
|
821
|
+
case "com.amazonaws.mediastore#InternalServerError":
|
|
822
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
823
|
+
default:
|
|
824
|
+
const parsedBody = parsedOutput.body;
|
|
825
|
+
throwDefaultError({
|
|
826
|
+
output,
|
|
827
|
+
parsedBody,
|
|
828
|
+
exceptionCtor: __BaseException,
|
|
829
|
+
errorCode,
|
|
830
|
+
});
|
|
831
|
+
}
|
|
832
|
+
};
|
|
833
|
+
export const deserializeAws_json1_1PutMetricPolicyCommand = async (output, context) => {
|
|
834
|
+
if (output.statusCode >= 300) {
|
|
835
|
+
return deserializeAws_json1_1PutMetricPolicyCommandError(output, context);
|
|
836
|
+
}
|
|
837
|
+
const data = await parseBody(output.body, context);
|
|
838
|
+
let contents = {};
|
|
839
|
+
contents = deserializeAws_json1_1PutMetricPolicyOutput(data, context);
|
|
840
|
+
const response = {
|
|
841
|
+
$metadata: deserializeMetadata(output),
|
|
842
|
+
...contents,
|
|
843
|
+
};
|
|
844
|
+
return Promise.resolve(response);
|
|
845
|
+
};
|
|
846
|
+
const deserializeAws_json1_1PutMetricPolicyCommandError = async (output, context) => {
|
|
847
|
+
const parsedOutput = {
|
|
848
|
+
...output,
|
|
849
|
+
body: await parseErrorBody(output.body, context),
|
|
850
|
+
};
|
|
851
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
852
|
+
switch (errorCode) {
|
|
853
|
+
case "ContainerInUseException":
|
|
854
|
+
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
855
|
+
throw await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context);
|
|
856
|
+
case "ContainerNotFoundException":
|
|
857
|
+
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
858
|
+
throw await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
859
|
+
case "InternalServerError":
|
|
860
|
+
case "com.amazonaws.mediastore#InternalServerError":
|
|
861
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
862
|
+
default:
|
|
863
|
+
const parsedBody = parsedOutput.body;
|
|
864
|
+
throwDefaultError({
|
|
865
|
+
output,
|
|
866
|
+
parsedBody,
|
|
867
|
+
exceptionCtor: __BaseException,
|
|
868
|
+
errorCode,
|
|
869
|
+
});
|
|
870
|
+
}
|
|
871
|
+
};
|
|
872
|
+
export const deserializeAws_json1_1StartAccessLoggingCommand = async (output, context) => {
|
|
873
|
+
if (output.statusCode >= 300) {
|
|
874
|
+
return deserializeAws_json1_1StartAccessLoggingCommandError(output, context);
|
|
875
|
+
}
|
|
876
|
+
const data = await parseBody(output.body, context);
|
|
877
|
+
let contents = {};
|
|
878
|
+
contents = deserializeAws_json1_1StartAccessLoggingOutput(data, context);
|
|
879
|
+
const response = {
|
|
880
|
+
$metadata: deserializeMetadata(output),
|
|
881
|
+
...contents,
|
|
882
|
+
};
|
|
883
|
+
return Promise.resolve(response);
|
|
884
|
+
};
|
|
885
|
+
const deserializeAws_json1_1StartAccessLoggingCommandError = async (output, context) => {
|
|
886
|
+
const parsedOutput = {
|
|
887
|
+
...output,
|
|
888
|
+
body: await parseErrorBody(output.body, context),
|
|
889
|
+
};
|
|
890
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
891
|
+
switch (errorCode) {
|
|
892
|
+
case "ContainerInUseException":
|
|
893
|
+
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
894
|
+
throw await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context);
|
|
895
|
+
case "ContainerNotFoundException":
|
|
896
|
+
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
897
|
+
throw await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
898
|
+
case "InternalServerError":
|
|
899
|
+
case "com.amazonaws.mediastore#InternalServerError":
|
|
900
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
901
|
+
default:
|
|
902
|
+
const parsedBody = parsedOutput.body;
|
|
903
|
+
throwDefaultError({
|
|
904
|
+
output,
|
|
905
|
+
parsedBody,
|
|
906
|
+
exceptionCtor: __BaseException,
|
|
907
|
+
errorCode,
|
|
908
|
+
});
|
|
909
|
+
}
|
|
910
|
+
};
|
|
911
|
+
export const deserializeAws_json1_1StopAccessLoggingCommand = async (output, context) => {
|
|
912
|
+
if (output.statusCode >= 300) {
|
|
913
|
+
return deserializeAws_json1_1StopAccessLoggingCommandError(output, context);
|
|
914
|
+
}
|
|
915
|
+
const data = await parseBody(output.body, context);
|
|
916
|
+
let contents = {};
|
|
917
|
+
contents = deserializeAws_json1_1StopAccessLoggingOutput(data, context);
|
|
918
|
+
const response = {
|
|
919
|
+
$metadata: deserializeMetadata(output),
|
|
920
|
+
...contents,
|
|
921
|
+
};
|
|
922
|
+
return Promise.resolve(response);
|
|
923
|
+
};
|
|
924
|
+
const deserializeAws_json1_1StopAccessLoggingCommandError = async (output, context) => {
|
|
925
|
+
const parsedOutput = {
|
|
926
|
+
...output,
|
|
927
|
+
body: await parseErrorBody(output.body, context),
|
|
928
|
+
};
|
|
929
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
930
|
+
switch (errorCode) {
|
|
931
|
+
case "ContainerInUseException":
|
|
932
|
+
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
933
|
+
throw await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context);
|
|
934
|
+
case "ContainerNotFoundException":
|
|
935
|
+
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
936
|
+
throw await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
937
|
+
case "InternalServerError":
|
|
938
|
+
case "com.amazonaws.mediastore#InternalServerError":
|
|
939
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
940
|
+
default:
|
|
941
|
+
const parsedBody = parsedOutput.body;
|
|
942
|
+
throwDefaultError({
|
|
943
|
+
output,
|
|
944
|
+
parsedBody,
|
|
945
|
+
exceptionCtor: __BaseException,
|
|
946
|
+
errorCode,
|
|
947
|
+
});
|
|
948
|
+
}
|
|
949
|
+
};
|
|
950
|
+
export const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
951
|
+
if (output.statusCode >= 300) {
|
|
952
|
+
return deserializeAws_json1_1TagResourceCommandError(output, context);
|
|
953
|
+
}
|
|
954
|
+
const data = await parseBody(output.body, context);
|
|
955
|
+
let contents = {};
|
|
956
|
+
contents = deserializeAws_json1_1TagResourceOutput(data, context);
|
|
957
|
+
const response = {
|
|
958
|
+
$metadata: deserializeMetadata(output),
|
|
959
|
+
...contents,
|
|
960
|
+
};
|
|
961
|
+
return Promise.resolve(response);
|
|
962
|
+
};
|
|
963
|
+
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
964
|
+
const parsedOutput = {
|
|
965
|
+
...output,
|
|
966
|
+
body: await parseErrorBody(output.body, context),
|
|
967
|
+
};
|
|
968
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
969
|
+
switch (errorCode) {
|
|
970
|
+
case "ContainerInUseException":
|
|
971
|
+
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
972
|
+
throw await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context);
|
|
973
|
+
case "ContainerNotFoundException":
|
|
974
|
+
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
975
|
+
throw await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
976
|
+
case "InternalServerError":
|
|
977
|
+
case "com.amazonaws.mediastore#InternalServerError":
|
|
978
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
979
|
+
default:
|
|
980
|
+
const parsedBody = parsedOutput.body;
|
|
981
|
+
throwDefaultError({
|
|
982
|
+
output,
|
|
983
|
+
parsedBody,
|
|
984
|
+
exceptionCtor: __BaseException,
|
|
985
|
+
errorCode,
|
|
986
|
+
});
|
|
987
|
+
}
|
|
988
|
+
};
|
|
989
|
+
export const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
990
|
+
if (output.statusCode >= 300) {
|
|
991
|
+
return deserializeAws_json1_1UntagResourceCommandError(output, context);
|
|
992
|
+
}
|
|
993
|
+
const data = await parseBody(output.body, context);
|
|
994
|
+
let contents = {};
|
|
995
|
+
contents = deserializeAws_json1_1UntagResourceOutput(data, context);
|
|
996
|
+
const response = {
|
|
997
|
+
$metadata: deserializeMetadata(output),
|
|
998
|
+
...contents,
|
|
999
|
+
};
|
|
1000
|
+
return Promise.resolve(response);
|
|
1001
|
+
};
|
|
1002
|
+
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
1003
|
+
const parsedOutput = {
|
|
1004
|
+
...output,
|
|
1005
|
+
body: await parseErrorBody(output.body, context),
|
|
1006
|
+
};
|
|
1007
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1008
|
+
switch (errorCode) {
|
|
1009
|
+
case "ContainerInUseException":
|
|
1010
|
+
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
1011
|
+
throw await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context);
|
|
1012
|
+
case "ContainerNotFoundException":
|
|
1013
|
+
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
1014
|
+
throw await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
1015
|
+
case "InternalServerError":
|
|
1016
|
+
case "com.amazonaws.mediastore#InternalServerError":
|
|
1017
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
1018
|
+
default:
|
|
1019
|
+
const parsedBody = parsedOutput.body;
|
|
1020
|
+
throwDefaultError({
|
|
1021
|
+
output,
|
|
1022
|
+
parsedBody,
|
|
1023
|
+
exceptionCtor: __BaseException,
|
|
1024
|
+
errorCode,
|
|
1025
|
+
});
|
|
1026
|
+
}
|
|
1027
|
+
};
|
|
1028
|
+
const deserializeAws_json1_1ContainerInUseExceptionResponse = async (parsedOutput, context) => {
|
|
1029
|
+
const body = parsedOutput.body;
|
|
1030
|
+
const deserialized = deserializeAws_json1_1ContainerInUseException(body, context);
|
|
1031
|
+
const exception = new ContainerInUseException({
|
|
1032
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1033
|
+
...deserialized,
|
|
1034
|
+
});
|
|
1035
|
+
return __decorateServiceException(exception, body);
|
|
1036
|
+
};
|
|
1037
|
+
const deserializeAws_json1_1ContainerNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1038
|
+
const body = parsedOutput.body;
|
|
1039
|
+
const deserialized = deserializeAws_json1_1ContainerNotFoundException(body, context);
|
|
1040
|
+
const exception = new ContainerNotFoundException({
|
|
1041
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1042
|
+
...deserialized,
|
|
1043
|
+
});
|
|
1044
|
+
return __decorateServiceException(exception, body);
|
|
1045
|
+
};
|
|
1046
|
+
const deserializeAws_json1_1CorsPolicyNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1047
|
+
const body = parsedOutput.body;
|
|
1048
|
+
const deserialized = deserializeAws_json1_1CorsPolicyNotFoundException(body, context);
|
|
1049
|
+
const exception = new CorsPolicyNotFoundException({
|
|
1050
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1051
|
+
...deserialized,
|
|
1052
|
+
});
|
|
1053
|
+
return __decorateServiceException(exception, body);
|
|
1054
|
+
};
|
|
1055
|
+
const deserializeAws_json1_1InternalServerErrorResponse = async (parsedOutput, context) => {
|
|
1056
|
+
const body = parsedOutput.body;
|
|
1057
|
+
const deserialized = deserializeAws_json1_1InternalServerError(body, context);
|
|
1058
|
+
const exception = new InternalServerError({
|
|
1059
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1060
|
+
...deserialized,
|
|
1061
|
+
});
|
|
1062
|
+
return __decorateServiceException(exception, body);
|
|
1063
|
+
};
|
|
1064
|
+
const deserializeAws_json1_1LimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
1065
|
+
const body = parsedOutput.body;
|
|
1066
|
+
const deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
1067
|
+
const exception = new LimitExceededException({
|
|
1068
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1069
|
+
...deserialized,
|
|
1070
|
+
});
|
|
1071
|
+
return __decorateServiceException(exception, body);
|
|
1072
|
+
};
|
|
1073
|
+
const deserializeAws_json1_1PolicyNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1074
|
+
const body = parsedOutput.body;
|
|
1075
|
+
const deserialized = deserializeAws_json1_1PolicyNotFoundException(body, context);
|
|
1076
|
+
const exception = new PolicyNotFoundException({
|
|
1077
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1078
|
+
...deserialized,
|
|
1079
|
+
});
|
|
1080
|
+
return __decorateServiceException(exception, body);
|
|
1081
|
+
};
|
|
1082
|
+
const serializeAws_json1_1AllowedHeaders = (input, context) => {
|
|
1551
1083
|
return input
|
|
1552
|
-
.filter(
|
|
1553
|
-
.map(
|
|
1084
|
+
.filter((e) => e != null)
|
|
1085
|
+
.map((entry) => {
|
|
1554
1086
|
return entry;
|
|
1555
1087
|
});
|
|
1556
1088
|
};
|
|
1557
|
-
|
|
1089
|
+
const serializeAws_json1_1AllowedMethods = (input, context) => {
|
|
1558
1090
|
return input
|
|
1559
|
-
.filter(
|
|
1560
|
-
.map(
|
|
1091
|
+
.filter((e) => e != null)
|
|
1092
|
+
.map((entry) => {
|
|
1561
1093
|
return entry;
|
|
1562
1094
|
});
|
|
1563
1095
|
};
|
|
1564
|
-
|
|
1096
|
+
const serializeAws_json1_1AllowedOrigins = (input, context) => {
|
|
1565
1097
|
return input
|
|
1566
|
-
.filter(
|
|
1567
|
-
.map(
|
|
1098
|
+
.filter((e) => e != null)
|
|
1099
|
+
.map((entry) => {
|
|
1568
1100
|
return entry;
|
|
1569
1101
|
});
|
|
1570
1102
|
};
|
|
1571
|
-
|
|
1103
|
+
const serializeAws_json1_1CorsPolicy = (input, context) => {
|
|
1572
1104
|
return input
|
|
1573
|
-
.filter(
|
|
1574
|
-
.map(
|
|
1105
|
+
.filter((e) => e != null)
|
|
1106
|
+
.map((entry) => {
|
|
1575
1107
|
return serializeAws_json1_1CorsRule(entry, context);
|
|
1576
1108
|
});
|
|
1577
1109
|
};
|
|
1578
|
-
|
|
1579
|
-
return
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1110
|
+
const serializeAws_json1_1CorsRule = (input, context) => {
|
|
1111
|
+
return {
|
|
1112
|
+
...(input.AllowedHeaders != null && {
|
|
1113
|
+
AllowedHeaders: serializeAws_json1_1AllowedHeaders(input.AllowedHeaders, context),
|
|
1114
|
+
}),
|
|
1115
|
+
...(input.AllowedMethods != null && {
|
|
1116
|
+
AllowedMethods: serializeAws_json1_1AllowedMethods(input.AllowedMethods, context),
|
|
1117
|
+
}),
|
|
1118
|
+
...(input.AllowedOrigins != null && {
|
|
1119
|
+
AllowedOrigins: serializeAws_json1_1AllowedOrigins(input.AllowedOrigins, context),
|
|
1120
|
+
}),
|
|
1121
|
+
...(input.ExposeHeaders != null && {
|
|
1122
|
+
ExposeHeaders: serializeAws_json1_1ExposeHeaders(input.ExposeHeaders, context),
|
|
1123
|
+
}),
|
|
1124
|
+
...(input.MaxAgeSeconds != null && { MaxAgeSeconds: input.MaxAgeSeconds }),
|
|
1125
|
+
};
|
|
1588
1126
|
};
|
|
1589
|
-
|
|
1590
|
-
return
|
|
1127
|
+
const serializeAws_json1_1CreateContainerInput = (input, context) => {
|
|
1128
|
+
return {
|
|
1129
|
+
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1130
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
1131
|
+
};
|
|
1591
1132
|
};
|
|
1592
|
-
|
|
1593
|
-
return
|
|
1133
|
+
const serializeAws_json1_1DeleteContainerInput = (input, context) => {
|
|
1134
|
+
return {
|
|
1135
|
+
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1136
|
+
};
|
|
1594
1137
|
};
|
|
1595
|
-
|
|
1596
|
-
return
|
|
1138
|
+
const serializeAws_json1_1DeleteContainerPolicyInput = (input, context) => {
|
|
1139
|
+
return {
|
|
1140
|
+
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1141
|
+
};
|
|
1597
1142
|
};
|
|
1598
|
-
|
|
1599
|
-
return
|
|
1143
|
+
const serializeAws_json1_1DeleteCorsPolicyInput = (input, context) => {
|
|
1144
|
+
return {
|
|
1145
|
+
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1146
|
+
};
|
|
1600
1147
|
};
|
|
1601
|
-
|
|
1602
|
-
return
|
|
1148
|
+
const serializeAws_json1_1DeleteLifecyclePolicyInput = (input, context) => {
|
|
1149
|
+
return {
|
|
1150
|
+
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1151
|
+
};
|
|
1603
1152
|
};
|
|
1604
|
-
|
|
1605
|
-
return
|
|
1153
|
+
const serializeAws_json1_1DeleteMetricPolicyInput = (input, context) => {
|
|
1154
|
+
return {
|
|
1155
|
+
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1156
|
+
};
|
|
1606
1157
|
};
|
|
1607
|
-
|
|
1608
|
-
return
|
|
1158
|
+
const serializeAws_json1_1DescribeContainerInput = (input, context) => {
|
|
1159
|
+
return {
|
|
1160
|
+
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1161
|
+
};
|
|
1609
1162
|
};
|
|
1610
|
-
|
|
1163
|
+
const serializeAws_json1_1ExposeHeaders = (input, context) => {
|
|
1611
1164
|
return input
|
|
1612
|
-
.filter(
|
|
1613
|
-
.map(
|
|
1165
|
+
.filter((e) => e != null)
|
|
1166
|
+
.map((entry) => {
|
|
1614
1167
|
return entry;
|
|
1615
1168
|
});
|
|
1616
1169
|
};
|
|
1617
|
-
|
|
1618
|
-
return
|
|
1170
|
+
const serializeAws_json1_1GetContainerPolicyInput = (input, context) => {
|
|
1171
|
+
return {
|
|
1172
|
+
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1173
|
+
};
|
|
1619
1174
|
};
|
|
1620
|
-
|
|
1621
|
-
return
|
|
1175
|
+
const serializeAws_json1_1GetCorsPolicyInput = (input, context) => {
|
|
1176
|
+
return {
|
|
1177
|
+
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1178
|
+
};
|
|
1622
1179
|
};
|
|
1623
|
-
|
|
1624
|
-
return
|
|
1180
|
+
const serializeAws_json1_1GetLifecyclePolicyInput = (input, context) => {
|
|
1181
|
+
return {
|
|
1182
|
+
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1183
|
+
};
|
|
1625
1184
|
};
|
|
1626
|
-
|
|
1627
|
-
return
|
|
1185
|
+
const serializeAws_json1_1GetMetricPolicyInput = (input, context) => {
|
|
1186
|
+
return {
|
|
1187
|
+
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1188
|
+
};
|
|
1628
1189
|
};
|
|
1629
|
-
|
|
1630
|
-
return
|
|
1190
|
+
const serializeAws_json1_1ListContainersInput = (input, context) => {
|
|
1191
|
+
return {
|
|
1192
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1193
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1194
|
+
};
|
|
1631
1195
|
};
|
|
1632
|
-
|
|
1633
|
-
return
|
|
1196
|
+
const serializeAws_json1_1ListTagsForResourceInput = (input, context) => {
|
|
1197
|
+
return {
|
|
1198
|
+
...(input.Resource != null && { Resource: input.Resource }),
|
|
1199
|
+
};
|
|
1634
1200
|
};
|
|
1635
|
-
|
|
1636
|
-
return
|
|
1637
|
-
|
|
1638
|
-
|
|
1201
|
+
const serializeAws_json1_1MetricPolicy = (input, context) => {
|
|
1202
|
+
return {
|
|
1203
|
+
...(input.ContainerLevelMetrics != null && { ContainerLevelMetrics: input.ContainerLevelMetrics }),
|
|
1204
|
+
...(input.MetricPolicyRules != null && {
|
|
1205
|
+
MetricPolicyRules: serializeAws_json1_1MetricPolicyRules(input.MetricPolicyRules, context),
|
|
1206
|
+
}),
|
|
1207
|
+
};
|
|
1639
1208
|
};
|
|
1640
|
-
|
|
1641
|
-
return
|
|
1209
|
+
const serializeAws_json1_1MetricPolicyRule = (input, context) => {
|
|
1210
|
+
return {
|
|
1211
|
+
...(input.ObjectGroup != null && { ObjectGroup: input.ObjectGroup }),
|
|
1212
|
+
...(input.ObjectGroupName != null && { ObjectGroupName: input.ObjectGroupName }),
|
|
1213
|
+
};
|
|
1642
1214
|
};
|
|
1643
|
-
|
|
1215
|
+
const serializeAws_json1_1MetricPolicyRules = (input, context) => {
|
|
1644
1216
|
return input
|
|
1645
|
-
.filter(
|
|
1646
|
-
.map(
|
|
1217
|
+
.filter((e) => e != null)
|
|
1218
|
+
.map((entry) => {
|
|
1647
1219
|
return serializeAws_json1_1MetricPolicyRule(entry, context);
|
|
1648
1220
|
});
|
|
1649
1221
|
};
|
|
1650
|
-
|
|
1651
|
-
return
|
|
1222
|
+
const serializeAws_json1_1PutContainerPolicyInput = (input, context) => {
|
|
1223
|
+
return {
|
|
1224
|
+
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1225
|
+
...(input.Policy != null && { Policy: input.Policy }),
|
|
1226
|
+
};
|
|
1652
1227
|
};
|
|
1653
|
-
|
|
1654
|
-
return
|
|
1228
|
+
const serializeAws_json1_1PutCorsPolicyInput = (input, context) => {
|
|
1229
|
+
return {
|
|
1230
|
+
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1231
|
+
...(input.CorsPolicy != null && { CorsPolicy: serializeAws_json1_1CorsPolicy(input.CorsPolicy, context) }),
|
|
1232
|
+
};
|
|
1655
1233
|
};
|
|
1656
|
-
|
|
1657
|
-
return
|
|
1234
|
+
const serializeAws_json1_1PutLifecyclePolicyInput = (input, context) => {
|
|
1235
|
+
return {
|
|
1236
|
+
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1237
|
+
...(input.LifecyclePolicy != null && { LifecyclePolicy: input.LifecyclePolicy }),
|
|
1238
|
+
};
|
|
1658
1239
|
};
|
|
1659
|
-
|
|
1660
|
-
return
|
|
1240
|
+
const serializeAws_json1_1PutMetricPolicyInput = (input, context) => {
|
|
1241
|
+
return {
|
|
1242
|
+
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1243
|
+
...(input.MetricPolicy != null && { MetricPolicy: serializeAws_json1_1MetricPolicy(input.MetricPolicy, context) }),
|
|
1244
|
+
};
|
|
1661
1245
|
};
|
|
1662
|
-
|
|
1663
|
-
return
|
|
1246
|
+
const serializeAws_json1_1StartAccessLoggingInput = (input, context) => {
|
|
1247
|
+
return {
|
|
1248
|
+
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1249
|
+
};
|
|
1664
1250
|
};
|
|
1665
|
-
|
|
1666
|
-
return
|
|
1251
|
+
const serializeAws_json1_1StopAccessLoggingInput = (input, context) => {
|
|
1252
|
+
return {
|
|
1253
|
+
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1254
|
+
};
|
|
1667
1255
|
};
|
|
1668
|
-
|
|
1669
|
-
return
|
|
1256
|
+
const serializeAws_json1_1Tag = (input, context) => {
|
|
1257
|
+
return {
|
|
1258
|
+
...(input.Key != null && { Key: input.Key }),
|
|
1259
|
+
...(input.Value != null && { Value: input.Value }),
|
|
1260
|
+
};
|
|
1670
1261
|
};
|
|
1671
|
-
|
|
1262
|
+
const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
1672
1263
|
return input
|
|
1673
|
-
.filter(
|
|
1674
|
-
.map(
|
|
1264
|
+
.filter((e) => e != null)
|
|
1265
|
+
.map((entry) => {
|
|
1675
1266
|
return entry;
|
|
1676
1267
|
});
|
|
1677
1268
|
};
|
|
1678
|
-
|
|
1269
|
+
const serializeAws_json1_1TagList = (input, context) => {
|
|
1679
1270
|
return input
|
|
1680
|
-
.filter(
|
|
1681
|
-
.map(
|
|
1271
|
+
.filter((e) => e != null)
|
|
1272
|
+
.map((entry) => {
|
|
1682
1273
|
return serializeAws_json1_1Tag(entry, context);
|
|
1683
1274
|
});
|
|
1684
1275
|
};
|
|
1685
|
-
|
|
1686
|
-
return
|
|
1276
|
+
const serializeAws_json1_1TagResourceInput = (input, context) => {
|
|
1277
|
+
return {
|
|
1278
|
+
...(input.Resource != null && { Resource: input.Resource }),
|
|
1279
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
1280
|
+
};
|
|
1687
1281
|
};
|
|
1688
|
-
|
|
1689
|
-
return
|
|
1282
|
+
const serializeAws_json1_1UntagResourceInput = (input, context) => {
|
|
1283
|
+
return {
|
|
1284
|
+
...(input.Resource != null && { Resource: input.Resource }),
|
|
1285
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
1286
|
+
};
|
|
1690
1287
|
};
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
.filter(
|
|
1694
|
-
.map(
|
|
1288
|
+
const deserializeAws_json1_1AllowedHeaders = (output, context) => {
|
|
1289
|
+
const retVal = (output || [])
|
|
1290
|
+
.filter((e) => e != null)
|
|
1291
|
+
.map((entry) => {
|
|
1695
1292
|
if (entry === null) {
|
|
1696
1293
|
return null;
|
|
1697
1294
|
}
|
|
@@ -1699,10 +1296,10 @@ var deserializeAws_json1_1AllowedHeaders = function (output, context) {
|
|
|
1699
1296
|
});
|
|
1700
1297
|
return retVal;
|
|
1701
1298
|
};
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
.filter(
|
|
1705
|
-
.map(
|
|
1299
|
+
const deserializeAws_json1_1AllowedMethods = (output, context) => {
|
|
1300
|
+
const retVal = (output || [])
|
|
1301
|
+
.filter((e) => e != null)
|
|
1302
|
+
.map((entry) => {
|
|
1706
1303
|
if (entry === null) {
|
|
1707
1304
|
return null;
|
|
1708
1305
|
}
|
|
@@ -1710,10 +1307,10 @@ var deserializeAws_json1_1AllowedMethods = function (output, context) {
|
|
|
1710
1307
|
});
|
|
1711
1308
|
return retVal;
|
|
1712
1309
|
};
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
.filter(
|
|
1716
|
-
.map(
|
|
1310
|
+
const deserializeAws_json1_1AllowedOrigins = (output, context) => {
|
|
1311
|
+
const retVal = (output || [])
|
|
1312
|
+
.filter((e) => e != null)
|
|
1313
|
+
.map((entry) => {
|
|
1717
1314
|
if (entry === null) {
|
|
1718
1315
|
return null;
|
|
1719
1316
|
}
|
|
@@ -1721,7 +1318,7 @@ var deserializeAws_json1_1AllowedOrigins = function (output, context) {
|
|
|
1721
1318
|
});
|
|
1722
1319
|
return retVal;
|
|
1723
1320
|
};
|
|
1724
|
-
|
|
1321
|
+
const deserializeAws_json1_1Container = (output, context) => {
|
|
1725
1322
|
return {
|
|
1726
1323
|
ARN: __expectString(output.ARN),
|
|
1727
1324
|
AccessLoggingEnabled: __expectBoolean(output.AccessLoggingEnabled),
|
|
@@ -1733,15 +1330,15 @@ var deserializeAws_json1_1Container = function (output, context) {
|
|
|
1733
1330
|
Status: __expectString(output.Status),
|
|
1734
1331
|
};
|
|
1735
1332
|
};
|
|
1736
|
-
|
|
1333
|
+
const deserializeAws_json1_1ContainerInUseException = (output, context) => {
|
|
1737
1334
|
return {
|
|
1738
1335
|
Message: __expectString(output.Message),
|
|
1739
1336
|
};
|
|
1740
1337
|
};
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
.filter(
|
|
1744
|
-
.map(
|
|
1338
|
+
const deserializeAws_json1_1ContainerList = (output, context) => {
|
|
1339
|
+
const retVal = (output || [])
|
|
1340
|
+
.filter((e) => e != null)
|
|
1341
|
+
.map((entry) => {
|
|
1745
1342
|
if (entry === null) {
|
|
1746
1343
|
return null;
|
|
1747
1344
|
}
|
|
@@ -1749,15 +1346,15 @@ var deserializeAws_json1_1ContainerList = function (output, context) {
|
|
|
1749
1346
|
});
|
|
1750
1347
|
return retVal;
|
|
1751
1348
|
};
|
|
1752
|
-
|
|
1349
|
+
const deserializeAws_json1_1ContainerNotFoundException = (output, context) => {
|
|
1753
1350
|
return {
|
|
1754
1351
|
Message: __expectString(output.Message),
|
|
1755
1352
|
};
|
|
1756
1353
|
};
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
.filter(
|
|
1760
|
-
.map(
|
|
1354
|
+
const deserializeAws_json1_1CorsPolicy = (output, context) => {
|
|
1355
|
+
const retVal = (output || [])
|
|
1356
|
+
.filter((e) => e != null)
|
|
1357
|
+
.map((entry) => {
|
|
1761
1358
|
if (entry === null) {
|
|
1762
1359
|
return null;
|
|
1763
1360
|
}
|
|
@@ -1765,12 +1362,12 @@ var deserializeAws_json1_1CorsPolicy = function (output, context) {
|
|
|
1765
1362
|
});
|
|
1766
1363
|
return retVal;
|
|
1767
1364
|
};
|
|
1768
|
-
|
|
1365
|
+
const deserializeAws_json1_1CorsPolicyNotFoundException = (output, context) => {
|
|
1769
1366
|
return {
|
|
1770
1367
|
Message: __expectString(output.Message),
|
|
1771
1368
|
};
|
|
1772
1369
|
};
|
|
1773
|
-
|
|
1370
|
+
const deserializeAws_json1_1CorsRule = (output, context) => {
|
|
1774
1371
|
return {
|
|
1775
1372
|
AllowedHeaders: output.AllowedHeaders != null ? deserializeAws_json1_1AllowedHeaders(output.AllowedHeaders, context) : undefined,
|
|
1776
1373
|
AllowedMethods: output.AllowedMethods != null ? deserializeAws_json1_1AllowedMethods(output.AllowedMethods, context) : undefined,
|
|
@@ -1779,35 +1376,35 @@ var deserializeAws_json1_1CorsRule = function (output, context) {
|
|
|
1779
1376
|
MaxAgeSeconds: __expectInt32(output.MaxAgeSeconds),
|
|
1780
1377
|
};
|
|
1781
1378
|
};
|
|
1782
|
-
|
|
1379
|
+
const deserializeAws_json1_1CreateContainerOutput = (output, context) => {
|
|
1783
1380
|
return {
|
|
1784
1381
|
Container: output.Container != null ? deserializeAws_json1_1Container(output.Container, context) : undefined,
|
|
1785
1382
|
};
|
|
1786
1383
|
};
|
|
1787
|
-
|
|
1384
|
+
const deserializeAws_json1_1DeleteContainerOutput = (output, context) => {
|
|
1788
1385
|
return {};
|
|
1789
1386
|
};
|
|
1790
|
-
|
|
1387
|
+
const deserializeAws_json1_1DeleteContainerPolicyOutput = (output, context) => {
|
|
1791
1388
|
return {};
|
|
1792
1389
|
};
|
|
1793
|
-
|
|
1390
|
+
const deserializeAws_json1_1DeleteCorsPolicyOutput = (output, context) => {
|
|
1794
1391
|
return {};
|
|
1795
1392
|
};
|
|
1796
|
-
|
|
1393
|
+
const deserializeAws_json1_1DeleteLifecyclePolicyOutput = (output, context) => {
|
|
1797
1394
|
return {};
|
|
1798
1395
|
};
|
|
1799
|
-
|
|
1396
|
+
const deserializeAws_json1_1DeleteMetricPolicyOutput = (output, context) => {
|
|
1800
1397
|
return {};
|
|
1801
1398
|
};
|
|
1802
|
-
|
|
1399
|
+
const deserializeAws_json1_1DescribeContainerOutput = (output, context) => {
|
|
1803
1400
|
return {
|
|
1804
1401
|
Container: output.Container != null ? deserializeAws_json1_1Container(output.Container, context) : undefined,
|
|
1805
1402
|
};
|
|
1806
1403
|
};
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
.filter(
|
|
1810
|
-
.map(
|
|
1404
|
+
const deserializeAws_json1_1ExposeHeaders = (output, context) => {
|
|
1405
|
+
const retVal = (output || [])
|
|
1406
|
+
.filter((e) => e != null)
|
|
1407
|
+
.map((entry) => {
|
|
1811
1408
|
if (entry === null) {
|
|
1812
1409
|
return null;
|
|
1813
1410
|
}
|
|
@@ -1815,48 +1412,48 @@ var deserializeAws_json1_1ExposeHeaders = function (output, context) {
|
|
|
1815
1412
|
});
|
|
1816
1413
|
return retVal;
|
|
1817
1414
|
};
|
|
1818
|
-
|
|
1415
|
+
const deserializeAws_json1_1GetContainerPolicyOutput = (output, context) => {
|
|
1819
1416
|
return {
|
|
1820
1417
|
Policy: __expectString(output.Policy),
|
|
1821
1418
|
};
|
|
1822
1419
|
};
|
|
1823
|
-
|
|
1420
|
+
const deserializeAws_json1_1GetCorsPolicyOutput = (output, context) => {
|
|
1824
1421
|
return {
|
|
1825
1422
|
CorsPolicy: output.CorsPolicy != null ? deserializeAws_json1_1CorsPolicy(output.CorsPolicy, context) : undefined,
|
|
1826
1423
|
};
|
|
1827
1424
|
};
|
|
1828
|
-
|
|
1425
|
+
const deserializeAws_json1_1GetLifecyclePolicyOutput = (output, context) => {
|
|
1829
1426
|
return {
|
|
1830
1427
|
LifecyclePolicy: __expectString(output.LifecyclePolicy),
|
|
1831
1428
|
};
|
|
1832
1429
|
};
|
|
1833
|
-
|
|
1430
|
+
const deserializeAws_json1_1GetMetricPolicyOutput = (output, context) => {
|
|
1834
1431
|
return {
|
|
1835
1432
|
MetricPolicy: output.MetricPolicy != null ? deserializeAws_json1_1MetricPolicy(output.MetricPolicy, context) : undefined,
|
|
1836
1433
|
};
|
|
1837
1434
|
};
|
|
1838
|
-
|
|
1435
|
+
const deserializeAws_json1_1InternalServerError = (output, context) => {
|
|
1839
1436
|
return {
|
|
1840
1437
|
Message: __expectString(output.Message),
|
|
1841
1438
|
};
|
|
1842
1439
|
};
|
|
1843
|
-
|
|
1440
|
+
const deserializeAws_json1_1LimitExceededException = (output, context) => {
|
|
1844
1441
|
return {
|
|
1845
1442
|
Message: __expectString(output.Message),
|
|
1846
1443
|
};
|
|
1847
1444
|
};
|
|
1848
|
-
|
|
1445
|
+
const deserializeAws_json1_1ListContainersOutput = (output, context) => {
|
|
1849
1446
|
return {
|
|
1850
1447
|
Containers: output.Containers != null ? deserializeAws_json1_1ContainerList(output.Containers, context) : undefined,
|
|
1851
1448
|
NextToken: __expectString(output.NextToken),
|
|
1852
1449
|
};
|
|
1853
1450
|
};
|
|
1854
|
-
|
|
1451
|
+
const deserializeAws_json1_1ListTagsForResourceOutput = (output, context) => {
|
|
1855
1452
|
return {
|
|
1856
1453
|
Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
|
|
1857
1454
|
};
|
|
1858
1455
|
};
|
|
1859
|
-
|
|
1456
|
+
const deserializeAws_json1_1MetricPolicy = (output, context) => {
|
|
1860
1457
|
return {
|
|
1861
1458
|
ContainerLevelMetrics: __expectString(output.ContainerLevelMetrics),
|
|
1862
1459
|
MetricPolicyRules: output.MetricPolicyRules != null
|
|
@@ -1864,16 +1461,16 @@ var deserializeAws_json1_1MetricPolicy = function (output, context) {
|
|
|
1864
1461
|
: undefined,
|
|
1865
1462
|
};
|
|
1866
1463
|
};
|
|
1867
|
-
|
|
1464
|
+
const deserializeAws_json1_1MetricPolicyRule = (output, context) => {
|
|
1868
1465
|
return {
|
|
1869
1466
|
ObjectGroup: __expectString(output.ObjectGroup),
|
|
1870
1467
|
ObjectGroupName: __expectString(output.ObjectGroupName),
|
|
1871
1468
|
};
|
|
1872
1469
|
};
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
.filter(
|
|
1876
|
-
.map(
|
|
1470
|
+
const deserializeAws_json1_1MetricPolicyRules = (output, context) => {
|
|
1471
|
+
const retVal = (output || [])
|
|
1472
|
+
.filter((e) => e != null)
|
|
1473
|
+
.map((entry) => {
|
|
1877
1474
|
if (entry === null) {
|
|
1878
1475
|
return null;
|
|
1879
1476
|
}
|
|
@@ -1881,39 +1478,39 @@ var deserializeAws_json1_1MetricPolicyRules = function (output, context) {
|
|
|
1881
1478
|
});
|
|
1882
1479
|
return retVal;
|
|
1883
1480
|
};
|
|
1884
|
-
|
|
1481
|
+
const deserializeAws_json1_1PolicyNotFoundException = (output, context) => {
|
|
1885
1482
|
return {
|
|
1886
1483
|
Message: __expectString(output.Message),
|
|
1887
1484
|
};
|
|
1888
1485
|
};
|
|
1889
|
-
|
|
1486
|
+
const deserializeAws_json1_1PutContainerPolicyOutput = (output, context) => {
|
|
1890
1487
|
return {};
|
|
1891
1488
|
};
|
|
1892
|
-
|
|
1489
|
+
const deserializeAws_json1_1PutCorsPolicyOutput = (output, context) => {
|
|
1893
1490
|
return {};
|
|
1894
1491
|
};
|
|
1895
|
-
|
|
1492
|
+
const deserializeAws_json1_1PutLifecyclePolicyOutput = (output, context) => {
|
|
1896
1493
|
return {};
|
|
1897
1494
|
};
|
|
1898
|
-
|
|
1495
|
+
const deserializeAws_json1_1PutMetricPolicyOutput = (output, context) => {
|
|
1899
1496
|
return {};
|
|
1900
1497
|
};
|
|
1901
|
-
|
|
1498
|
+
const deserializeAws_json1_1StartAccessLoggingOutput = (output, context) => {
|
|
1902
1499
|
return {};
|
|
1903
1500
|
};
|
|
1904
|
-
|
|
1501
|
+
const deserializeAws_json1_1StopAccessLoggingOutput = (output, context) => {
|
|
1905
1502
|
return {};
|
|
1906
1503
|
};
|
|
1907
|
-
|
|
1504
|
+
const deserializeAws_json1_1Tag = (output, context) => {
|
|
1908
1505
|
return {
|
|
1909
1506
|
Key: __expectString(output.Key),
|
|
1910
1507
|
Value: __expectString(output.Value),
|
|
1911
1508
|
};
|
|
1912
1509
|
};
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
.filter(
|
|
1916
|
-
.map(
|
|
1510
|
+
const deserializeAws_json1_1TagList = (output, context) => {
|
|
1511
|
+
const retVal = (output || [])
|
|
1512
|
+
.filter((e) => e != null)
|
|
1513
|
+
.map((entry) => {
|
|
1917
1514
|
if (entry === null) {
|
|
1918
1515
|
return null;
|
|
1919
1516
|
}
|
|
@@ -1921,81 +1518,58 @@ var deserializeAws_json1_1TagList = function (output, context) {
|
|
|
1921
1518
|
});
|
|
1922
1519
|
return retVal;
|
|
1923
1520
|
};
|
|
1924
|
-
|
|
1521
|
+
const deserializeAws_json1_1TagResourceOutput = (output, context) => {
|
|
1925
1522
|
return {};
|
|
1926
1523
|
};
|
|
1927
|
-
|
|
1524
|
+
const deserializeAws_json1_1UntagResourceOutput = (output, context) => {
|
|
1928
1525
|
return {};
|
|
1929
1526
|
};
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
});
|
|
1938
|
-
};
|
|
1939
|
-
var collectBody = function (streamBody, context) {
|
|
1940
|
-
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
1527
|
+
const deserializeMetadata = (output) => ({
|
|
1528
|
+
httpStatusCode: output.statusCode,
|
|
1529
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1530
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1531
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
1532
|
+
});
|
|
1533
|
+
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
1941
1534
|
if (streamBody instanceof Uint8Array) {
|
|
1942
1535
|
return Promise.resolve(streamBody);
|
|
1943
1536
|
}
|
|
1944
1537
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1945
1538
|
};
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
};
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
if (resolvedHostname !== undefined) {
|
|
1965
|
-
contents.hostname = resolvedHostname;
|
|
1966
|
-
}
|
|
1967
|
-
if (body !== undefined) {
|
|
1968
|
-
contents.body = body;
|
|
1969
|
-
}
|
|
1970
|
-
return [2, new __HttpRequest(contents)];
|
|
1971
|
-
}
|
|
1972
|
-
});
|
|
1973
|
-
}); };
|
|
1974
|
-
var parseBody = function (streamBody, context) {
|
|
1975
|
-
return collectBodyString(streamBody, context).then(function (encoded) {
|
|
1976
|
-
if (encoded.length) {
|
|
1977
|
-
return JSON.parse(encoded);
|
|
1978
|
-
}
|
|
1979
|
-
return {};
|
|
1980
|
-
});
|
|
1539
|
+
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1540
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1541
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1542
|
+
const contents = {
|
|
1543
|
+
protocol,
|
|
1544
|
+
hostname,
|
|
1545
|
+
port,
|
|
1546
|
+
method: "POST",
|
|
1547
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1548
|
+
headers,
|
|
1549
|
+
};
|
|
1550
|
+
if (resolvedHostname !== undefined) {
|
|
1551
|
+
contents.hostname = resolvedHostname;
|
|
1552
|
+
}
|
|
1553
|
+
if (body !== undefined) {
|
|
1554
|
+
contents.body = body;
|
|
1555
|
+
}
|
|
1556
|
+
return new __HttpRequest(contents);
|
|
1981
1557
|
};
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
var sanitizeErrorCode = function (rawValue) {
|
|
1998
|
-
var cleanValue = rawValue;
|
|
1558
|
+
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1559
|
+
if (encoded.length) {
|
|
1560
|
+
return JSON.parse(encoded);
|
|
1561
|
+
}
|
|
1562
|
+
return {};
|
|
1563
|
+
});
|
|
1564
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
1565
|
+
const value = await parseBody(errorBody, context);
|
|
1566
|
+
value.message = value.message ?? value.Message;
|
|
1567
|
+
return value;
|
|
1568
|
+
};
|
|
1569
|
+
const loadRestJsonErrorCode = (output, data) => {
|
|
1570
|
+
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1571
|
+
const sanitizeErrorCode = (rawValue) => {
|
|
1572
|
+
let cleanValue = rawValue;
|
|
1999
1573
|
if (typeof cleanValue === "number") {
|
|
2000
1574
|
cleanValue = cleanValue.toString();
|
|
2001
1575
|
}
|
|
@@ -2010,7 +1584,7 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
2010
1584
|
}
|
|
2011
1585
|
return cleanValue;
|
|
2012
1586
|
};
|
|
2013
|
-
|
|
1587
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2014
1588
|
if (headerKey !== undefined) {
|
|
2015
1589
|
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2016
1590
|
}
|