@aws-sdk/client-mediastore 3.312.0 → 3.315.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.
@@ -8,147 +8,147 @@ const models_0_1 = require("../models/models_0");
8
8
  const se_CreateContainerCommand = async (input, context) => {
9
9
  const headers = sharedHeaders("CreateContainer");
10
10
  let body;
11
- body = JSON.stringify(se_CreateContainerInput(input, context));
11
+ body = JSON.stringify((0, smithy_client_1._json)(input));
12
12
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
13
13
  };
14
14
  exports.se_CreateContainerCommand = se_CreateContainerCommand;
15
15
  const se_DeleteContainerCommand = async (input, context) => {
16
16
  const headers = sharedHeaders("DeleteContainer");
17
17
  let body;
18
- body = JSON.stringify(se_DeleteContainerInput(input, context));
18
+ body = JSON.stringify((0, smithy_client_1._json)(input));
19
19
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
20
20
  };
21
21
  exports.se_DeleteContainerCommand = se_DeleteContainerCommand;
22
22
  const se_DeleteContainerPolicyCommand = async (input, context) => {
23
23
  const headers = sharedHeaders("DeleteContainerPolicy");
24
24
  let body;
25
- body = JSON.stringify(se_DeleteContainerPolicyInput(input, context));
25
+ body = JSON.stringify((0, smithy_client_1._json)(input));
26
26
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
27
27
  };
28
28
  exports.se_DeleteContainerPolicyCommand = se_DeleteContainerPolicyCommand;
29
29
  const se_DeleteCorsPolicyCommand = async (input, context) => {
30
30
  const headers = sharedHeaders("DeleteCorsPolicy");
31
31
  let body;
32
- body = JSON.stringify(se_DeleteCorsPolicyInput(input, context));
32
+ body = JSON.stringify((0, smithy_client_1._json)(input));
33
33
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
34
34
  };
35
35
  exports.se_DeleteCorsPolicyCommand = se_DeleteCorsPolicyCommand;
36
36
  const se_DeleteLifecyclePolicyCommand = async (input, context) => {
37
37
  const headers = sharedHeaders("DeleteLifecyclePolicy");
38
38
  let body;
39
- body = JSON.stringify(se_DeleteLifecyclePolicyInput(input, context));
39
+ body = JSON.stringify((0, smithy_client_1._json)(input));
40
40
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
41
41
  };
42
42
  exports.se_DeleteLifecyclePolicyCommand = se_DeleteLifecyclePolicyCommand;
43
43
  const se_DeleteMetricPolicyCommand = async (input, context) => {
44
44
  const headers = sharedHeaders("DeleteMetricPolicy");
45
45
  let body;
46
- body = JSON.stringify(se_DeleteMetricPolicyInput(input, context));
46
+ body = JSON.stringify((0, smithy_client_1._json)(input));
47
47
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
48
48
  };
49
49
  exports.se_DeleteMetricPolicyCommand = se_DeleteMetricPolicyCommand;
50
50
  const se_DescribeContainerCommand = async (input, context) => {
51
51
  const headers = sharedHeaders("DescribeContainer");
52
52
  let body;
53
- body = JSON.stringify(se_DescribeContainerInput(input, context));
53
+ body = JSON.stringify((0, smithy_client_1._json)(input));
54
54
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
55
55
  };
56
56
  exports.se_DescribeContainerCommand = se_DescribeContainerCommand;
57
57
  const se_GetContainerPolicyCommand = async (input, context) => {
58
58
  const headers = sharedHeaders("GetContainerPolicy");
59
59
  let body;
60
- body = JSON.stringify(se_GetContainerPolicyInput(input, context));
60
+ body = JSON.stringify((0, smithy_client_1._json)(input));
61
61
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
62
62
  };
63
63
  exports.se_GetContainerPolicyCommand = se_GetContainerPolicyCommand;
64
64
  const se_GetCorsPolicyCommand = async (input, context) => {
65
65
  const headers = sharedHeaders("GetCorsPolicy");
66
66
  let body;
67
- body = JSON.stringify(se_GetCorsPolicyInput(input, context));
67
+ body = JSON.stringify((0, smithy_client_1._json)(input));
68
68
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
69
69
  };
70
70
  exports.se_GetCorsPolicyCommand = se_GetCorsPolicyCommand;
71
71
  const se_GetLifecyclePolicyCommand = async (input, context) => {
72
72
  const headers = sharedHeaders("GetLifecyclePolicy");
73
73
  let body;
74
- body = JSON.stringify(se_GetLifecyclePolicyInput(input, context));
74
+ body = JSON.stringify((0, smithy_client_1._json)(input));
75
75
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
76
76
  };
77
77
  exports.se_GetLifecyclePolicyCommand = se_GetLifecyclePolicyCommand;
78
78
  const se_GetMetricPolicyCommand = async (input, context) => {
79
79
  const headers = sharedHeaders("GetMetricPolicy");
80
80
  let body;
81
- body = JSON.stringify(se_GetMetricPolicyInput(input, context));
81
+ body = JSON.stringify((0, smithy_client_1._json)(input));
82
82
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
83
83
  };
84
84
  exports.se_GetMetricPolicyCommand = se_GetMetricPolicyCommand;
85
85
  const se_ListContainersCommand = async (input, context) => {
86
86
  const headers = sharedHeaders("ListContainers");
87
87
  let body;
88
- body = JSON.stringify(se_ListContainersInput(input, context));
88
+ body = JSON.stringify((0, smithy_client_1._json)(input));
89
89
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
90
90
  };
91
91
  exports.se_ListContainersCommand = se_ListContainersCommand;
92
92
  const se_ListTagsForResourceCommand = async (input, context) => {
93
93
  const headers = sharedHeaders("ListTagsForResource");
94
94
  let body;
95
- body = JSON.stringify(se_ListTagsForResourceInput(input, context));
95
+ body = JSON.stringify((0, smithy_client_1._json)(input));
96
96
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
97
97
  };
98
98
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
99
99
  const se_PutContainerPolicyCommand = async (input, context) => {
100
100
  const headers = sharedHeaders("PutContainerPolicy");
101
101
  let body;
102
- body = JSON.stringify(se_PutContainerPolicyInput(input, context));
102
+ body = JSON.stringify((0, smithy_client_1._json)(input));
103
103
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
104
104
  };
105
105
  exports.se_PutContainerPolicyCommand = se_PutContainerPolicyCommand;
106
106
  const se_PutCorsPolicyCommand = async (input, context) => {
107
107
  const headers = sharedHeaders("PutCorsPolicy");
108
108
  let body;
109
- body = JSON.stringify(se_PutCorsPolicyInput(input, context));
109
+ body = JSON.stringify((0, smithy_client_1._json)(input));
110
110
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
111
111
  };
112
112
  exports.se_PutCorsPolicyCommand = se_PutCorsPolicyCommand;
113
113
  const se_PutLifecyclePolicyCommand = async (input, context) => {
114
114
  const headers = sharedHeaders("PutLifecyclePolicy");
115
115
  let body;
116
- body = JSON.stringify(se_PutLifecyclePolicyInput(input, context));
116
+ body = JSON.stringify((0, smithy_client_1._json)(input));
117
117
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
118
118
  };
119
119
  exports.se_PutLifecyclePolicyCommand = se_PutLifecyclePolicyCommand;
120
120
  const se_PutMetricPolicyCommand = async (input, context) => {
121
121
  const headers = sharedHeaders("PutMetricPolicy");
122
122
  let body;
123
- body = JSON.stringify(se_PutMetricPolicyInput(input, context));
123
+ body = JSON.stringify((0, smithy_client_1._json)(input));
124
124
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
125
125
  };
126
126
  exports.se_PutMetricPolicyCommand = se_PutMetricPolicyCommand;
127
127
  const se_StartAccessLoggingCommand = async (input, context) => {
128
128
  const headers = sharedHeaders("StartAccessLogging");
129
129
  let body;
130
- body = JSON.stringify(se_StartAccessLoggingInput(input, context));
130
+ body = JSON.stringify((0, smithy_client_1._json)(input));
131
131
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
132
132
  };
133
133
  exports.se_StartAccessLoggingCommand = se_StartAccessLoggingCommand;
134
134
  const se_StopAccessLoggingCommand = async (input, context) => {
135
135
  const headers = sharedHeaders("StopAccessLogging");
136
136
  let body;
137
- body = JSON.stringify(se_StopAccessLoggingInput(input, context));
137
+ body = JSON.stringify((0, smithy_client_1._json)(input));
138
138
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
139
139
  };
140
140
  exports.se_StopAccessLoggingCommand = se_StopAccessLoggingCommand;
141
141
  const se_TagResourceCommand = async (input, context) => {
142
142
  const headers = sharedHeaders("TagResource");
143
143
  let body;
144
- body = JSON.stringify(se_TagResourceInput(input, context));
144
+ body = JSON.stringify((0, smithy_client_1._json)(input));
145
145
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
146
146
  };
147
147
  exports.se_TagResourceCommand = se_TagResourceCommand;
148
148
  const se_UntagResourceCommand = async (input, context) => {
149
149
  const headers = sharedHeaders("UntagResource");
150
150
  let body;
151
- body = JSON.stringify(se_UntagResourceInput(input, context));
151
+ body = JSON.stringify((0, smithy_client_1._json)(input));
152
152
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
153
153
  };
154
154
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
@@ -163,7 +163,7 @@ const de_CreateContainerCommand = async (output, context) => {
163
163
  $metadata: deserializeMetadata(output),
164
164
  ...contents,
165
165
  };
166
- return Promise.resolve(response);
166
+ return response;
167
167
  };
168
168
  exports.de_CreateContainerCommand = de_CreateContainerCommand;
169
169
  const de_CreateContainerCommandError = async (output, context) => {
@@ -184,10 +184,9 @@ const de_CreateContainerCommandError = async (output, context) => {
184
184
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
185
185
  default:
186
186
  const parsedBody = parsedOutput.body;
187
- (0, smithy_client_1.throwDefaultError)({
187
+ return throwDefaultError({
188
188
  output,
189
189
  parsedBody,
190
- exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
191
190
  errorCode,
192
191
  });
193
192
  }
@@ -198,12 +197,12 @@ const de_DeleteContainerCommand = async (output, context) => {
198
197
  }
199
198
  const data = await parseBody(output.body, context);
200
199
  let contents = {};
201
- contents = de_DeleteContainerOutput(data, context);
200
+ contents = (0, smithy_client_1._json)(data);
202
201
  const response = {
203
202
  $metadata: deserializeMetadata(output),
204
203
  ...contents,
205
204
  };
206
- return Promise.resolve(response);
205
+ return response;
207
206
  };
208
207
  exports.de_DeleteContainerCommand = de_DeleteContainerCommand;
209
208
  const de_DeleteContainerCommandError = async (output, context) => {
@@ -224,10 +223,9 @@ const de_DeleteContainerCommandError = async (output, context) => {
224
223
  throw await de_InternalServerErrorRes(parsedOutput, context);
225
224
  default:
226
225
  const parsedBody = parsedOutput.body;
227
- (0, smithy_client_1.throwDefaultError)({
226
+ return throwDefaultError({
228
227
  output,
229
228
  parsedBody,
230
- exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
231
229
  errorCode,
232
230
  });
233
231
  }
@@ -238,12 +236,12 @@ const de_DeleteContainerPolicyCommand = async (output, context) => {
238
236
  }
239
237
  const data = await parseBody(output.body, context);
240
238
  let contents = {};
241
- contents = de_DeleteContainerPolicyOutput(data, context);
239
+ contents = (0, smithy_client_1._json)(data);
242
240
  const response = {
243
241
  $metadata: deserializeMetadata(output),
244
242
  ...contents,
245
243
  };
246
- return Promise.resolve(response);
244
+ return response;
247
245
  };
248
246
  exports.de_DeleteContainerPolicyCommand = de_DeleteContainerPolicyCommand;
249
247
  const de_DeleteContainerPolicyCommandError = async (output, context) => {
@@ -267,10 +265,9 @@ const de_DeleteContainerPolicyCommandError = async (output, context) => {
267
265
  throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
268
266
  default:
269
267
  const parsedBody = parsedOutput.body;
270
- (0, smithy_client_1.throwDefaultError)({
268
+ return throwDefaultError({
271
269
  output,
272
270
  parsedBody,
273
- exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
274
271
  errorCode,
275
272
  });
276
273
  }
@@ -281,12 +278,12 @@ const de_DeleteCorsPolicyCommand = async (output, context) => {
281
278
  }
282
279
  const data = await parseBody(output.body, context);
283
280
  let contents = {};
284
- contents = de_DeleteCorsPolicyOutput(data, context);
281
+ contents = (0, smithy_client_1._json)(data);
285
282
  const response = {
286
283
  $metadata: deserializeMetadata(output),
287
284
  ...contents,
288
285
  };
289
- return Promise.resolve(response);
286
+ return response;
290
287
  };
291
288
  exports.de_DeleteCorsPolicyCommand = de_DeleteCorsPolicyCommand;
292
289
  const de_DeleteCorsPolicyCommandError = async (output, context) => {
@@ -310,10 +307,9 @@ const de_DeleteCorsPolicyCommandError = async (output, context) => {
310
307
  throw await de_InternalServerErrorRes(parsedOutput, context);
311
308
  default:
312
309
  const parsedBody = parsedOutput.body;
313
- (0, smithy_client_1.throwDefaultError)({
310
+ return throwDefaultError({
314
311
  output,
315
312
  parsedBody,
316
- exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
317
313
  errorCode,
318
314
  });
319
315
  }
@@ -324,12 +320,12 @@ const de_DeleteLifecyclePolicyCommand = async (output, context) => {
324
320
  }
325
321
  const data = await parseBody(output.body, context);
326
322
  let contents = {};
327
- contents = de_DeleteLifecyclePolicyOutput(data, context);
323
+ contents = (0, smithy_client_1._json)(data);
328
324
  const response = {
329
325
  $metadata: deserializeMetadata(output),
330
326
  ...contents,
331
327
  };
332
- return Promise.resolve(response);
328
+ return response;
333
329
  };
334
330
  exports.de_DeleteLifecyclePolicyCommand = de_DeleteLifecyclePolicyCommand;
335
331
  const de_DeleteLifecyclePolicyCommandError = async (output, context) => {
@@ -353,10 +349,9 @@ const de_DeleteLifecyclePolicyCommandError = async (output, context) => {
353
349
  throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
354
350
  default:
355
351
  const parsedBody = parsedOutput.body;
356
- (0, smithy_client_1.throwDefaultError)({
352
+ return throwDefaultError({
357
353
  output,
358
354
  parsedBody,
359
- exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
360
355
  errorCode,
361
356
  });
362
357
  }
@@ -367,12 +362,12 @@ const de_DeleteMetricPolicyCommand = async (output, context) => {
367
362
  }
368
363
  const data = await parseBody(output.body, context);
369
364
  let contents = {};
370
- contents = de_DeleteMetricPolicyOutput(data, context);
365
+ contents = (0, smithy_client_1._json)(data);
371
366
  const response = {
372
367
  $metadata: deserializeMetadata(output),
373
368
  ...contents,
374
369
  };
375
- return Promise.resolve(response);
370
+ return response;
376
371
  };
377
372
  exports.de_DeleteMetricPolicyCommand = de_DeleteMetricPolicyCommand;
378
373
  const de_DeleteMetricPolicyCommandError = async (output, context) => {
@@ -396,10 +391,9 @@ const de_DeleteMetricPolicyCommandError = async (output, context) => {
396
391
  throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
397
392
  default:
398
393
  const parsedBody = parsedOutput.body;
399
- (0, smithy_client_1.throwDefaultError)({
394
+ return throwDefaultError({
400
395
  output,
401
396
  parsedBody,
402
- exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
403
397
  errorCode,
404
398
  });
405
399
  }
@@ -415,7 +409,7 @@ const de_DescribeContainerCommand = async (output, context) => {
415
409
  $metadata: deserializeMetadata(output),
416
410
  ...contents,
417
411
  };
418
- return Promise.resolve(response);
412
+ return response;
419
413
  };
420
414
  exports.de_DescribeContainerCommand = de_DescribeContainerCommand;
421
415
  const de_DescribeContainerCommandError = async (output, context) => {
@@ -433,10 +427,9 @@ const de_DescribeContainerCommandError = async (output, context) => {
433
427
  throw await de_InternalServerErrorRes(parsedOutput, context);
434
428
  default:
435
429
  const parsedBody = parsedOutput.body;
436
- (0, smithy_client_1.throwDefaultError)({
430
+ return throwDefaultError({
437
431
  output,
438
432
  parsedBody,
439
- exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
440
433
  errorCode,
441
434
  });
442
435
  }
@@ -447,12 +440,12 @@ const de_GetContainerPolicyCommand = async (output, context) => {
447
440
  }
448
441
  const data = await parseBody(output.body, context);
449
442
  let contents = {};
450
- contents = de_GetContainerPolicyOutput(data, context);
443
+ contents = (0, smithy_client_1._json)(data);
451
444
  const response = {
452
445
  $metadata: deserializeMetadata(output),
453
446
  ...contents,
454
447
  };
455
- return Promise.resolve(response);
448
+ return response;
456
449
  };
457
450
  exports.de_GetContainerPolicyCommand = de_GetContainerPolicyCommand;
458
451
  const de_GetContainerPolicyCommandError = async (output, context) => {
@@ -476,10 +469,9 @@ const de_GetContainerPolicyCommandError = async (output, context) => {
476
469
  throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
477
470
  default:
478
471
  const parsedBody = parsedOutput.body;
479
- (0, smithy_client_1.throwDefaultError)({
472
+ return throwDefaultError({
480
473
  output,
481
474
  parsedBody,
482
- exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
483
475
  errorCode,
484
476
  });
485
477
  }
@@ -490,12 +482,12 @@ const de_GetCorsPolicyCommand = async (output, context) => {
490
482
  }
491
483
  const data = await parseBody(output.body, context);
492
484
  let contents = {};
493
- contents = de_GetCorsPolicyOutput(data, context);
485
+ contents = (0, smithy_client_1._json)(data);
494
486
  const response = {
495
487
  $metadata: deserializeMetadata(output),
496
488
  ...contents,
497
489
  };
498
- return Promise.resolve(response);
490
+ return response;
499
491
  };
500
492
  exports.de_GetCorsPolicyCommand = de_GetCorsPolicyCommand;
501
493
  const de_GetCorsPolicyCommandError = async (output, context) => {
@@ -519,10 +511,9 @@ const de_GetCorsPolicyCommandError = async (output, context) => {
519
511
  throw await de_InternalServerErrorRes(parsedOutput, context);
520
512
  default:
521
513
  const parsedBody = parsedOutput.body;
522
- (0, smithy_client_1.throwDefaultError)({
514
+ return throwDefaultError({
523
515
  output,
524
516
  parsedBody,
525
- exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
526
517
  errorCode,
527
518
  });
528
519
  }
@@ -533,12 +524,12 @@ const de_GetLifecyclePolicyCommand = async (output, context) => {
533
524
  }
534
525
  const data = await parseBody(output.body, context);
535
526
  let contents = {};
536
- contents = de_GetLifecyclePolicyOutput(data, context);
527
+ contents = (0, smithy_client_1._json)(data);
537
528
  const response = {
538
529
  $metadata: deserializeMetadata(output),
539
530
  ...contents,
540
531
  };
541
- return Promise.resolve(response);
532
+ return response;
542
533
  };
543
534
  exports.de_GetLifecyclePolicyCommand = de_GetLifecyclePolicyCommand;
544
535
  const de_GetLifecyclePolicyCommandError = async (output, context) => {
@@ -562,10 +553,9 @@ const de_GetLifecyclePolicyCommandError = async (output, context) => {
562
553
  throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
563
554
  default:
564
555
  const parsedBody = parsedOutput.body;
565
- (0, smithy_client_1.throwDefaultError)({
556
+ return throwDefaultError({
566
557
  output,
567
558
  parsedBody,
568
- exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
569
559
  errorCode,
570
560
  });
571
561
  }
@@ -576,12 +566,12 @@ const de_GetMetricPolicyCommand = async (output, context) => {
576
566
  }
577
567
  const data = await parseBody(output.body, context);
578
568
  let contents = {};
579
- contents = de_GetMetricPolicyOutput(data, context);
569
+ contents = (0, smithy_client_1._json)(data);
580
570
  const response = {
581
571
  $metadata: deserializeMetadata(output),
582
572
  ...contents,
583
573
  };
584
- return Promise.resolve(response);
574
+ return response;
585
575
  };
586
576
  exports.de_GetMetricPolicyCommand = de_GetMetricPolicyCommand;
587
577
  const de_GetMetricPolicyCommandError = async (output, context) => {
@@ -605,10 +595,9 @@ const de_GetMetricPolicyCommandError = async (output, context) => {
605
595
  throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
606
596
  default:
607
597
  const parsedBody = parsedOutput.body;
608
- (0, smithy_client_1.throwDefaultError)({
598
+ return throwDefaultError({
609
599
  output,
610
600
  parsedBody,
611
- exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
612
601
  errorCode,
613
602
  });
614
603
  }
@@ -624,7 +613,7 @@ const de_ListContainersCommand = async (output, context) => {
624
613
  $metadata: deserializeMetadata(output),
625
614
  ...contents,
626
615
  };
627
- return Promise.resolve(response);
616
+ return response;
628
617
  };
629
618
  exports.de_ListContainersCommand = de_ListContainersCommand;
630
619
  const de_ListContainersCommandError = async (output, context) => {
@@ -639,10 +628,9 @@ const de_ListContainersCommandError = async (output, context) => {
639
628
  throw await de_InternalServerErrorRes(parsedOutput, context);
640
629
  default:
641
630
  const parsedBody = parsedOutput.body;
642
- (0, smithy_client_1.throwDefaultError)({
631
+ return throwDefaultError({
643
632
  output,
644
633
  parsedBody,
645
- exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
646
634
  errorCode,
647
635
  });
648
636
  }
@@ -653,12 +641,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
653
641
  }
654
642
  const data = await parseBody(output.body, context);
655
643
  let contents = {};
656
- contents = de_ListTagsForResourceOutput(data, context);
644
+ contents = (0, smithy_client_1._json)(data);
657
645
  const response = {
658
646
  $metadata: deserializeMetadata(output),
659
647
  ...contents,
660
648
  };
661
- return Promise.resolve(response);
649
+ return response;
662
650
  };
663
651
  exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
664
652
  const de_ListTagsForResourceCommandError = async (output, context) => {
@@ -679,10 +667,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
679
667
  throw await de_InternalServerErrorRes(parsedOutput, context);
680
668
  default:
681
669
  const parsedBody = parsedOutput.body;
682
- (0, smithy_client_1.throwDefaultError)({
670
+ return throwDefaultError({
683
671
  output,
684
672
  parsedBody,
685
- exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
686
673
  errorCode,
687
674
  });
688
675
  }
@@ -693,12 +680,12 @@ const de_PutContainerPolicyCommand = async (output, context) => {
693
680
  }
694
681
  const data = await parseBody(output.body, context);
695
682
  let contents = {};
696
- contents = de_PutContainerPolicyOutput(data, context);
683
+ contents = (0, smithy_client_1._json)(data);
697
684
  const response = {
698
685
  $metadata: deserializeMetadata(output),
699
686
  ...contents,
700
687
  };
701
- return Promise.resolve(response);
688
+ return response;
702
689
  };
703
690
  exports.de_PutContainerPolicyCommand = de_PutContainerPolicyCommand;
704
691
  const de_PutContainerPolicyCommandError = async (output, context) => {
@@ -719,10 +706,9 @@ const de_PutContainerPolicyCommandError = async (output, context) => {
719
706
  throw await de_InternalServerErrorRes(parsedOutput, context);
720
707
  default:
721
708
  const parsedBody = parsedOutput.body;
722
- (0, smithy_client_1.throwDefaultError)({
709
+ return throwDefaultError({
723
710
  output,
724
711
  parsedBody,
725
- exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
726
712
  errorCode,
727
713
  });
728
714
  }
@@ -733,12 +719,12 @@ const de_PutCorsPolicyCommand = async (output, context) => {
733
719
  }
734
720
  const data = await parseBody(output.body, context);
735
721
  let contents = {};
736
- contents = de_PutCorsPolicyOutput(data, context);
722
+ contents = (0, smithy_client_1._json)(data);
737
723
  const response = {
738
724
  $metadata: deserializeMetadata(output),
739
725
  ...contents,
740
726
  };
741
- return Promise.resolve(response);
727
+ return response;
742
728
  };
743
729
  exports.de_PutCorsPolicyCommand = de_PutCorsPolicyCommand;
744
730
  const de_PutCorsPolicyCommandError = async (output, context) => {
@@ -759,10 +745,9 @@ const de_PutCorsPolicyCommandError = async (output, context) => {
759
745
  throw await de_InternalServerErrorRes(parsedOutput, context);
760
746
  default:
761
747
  const parsedBody = parsedOutput.body;
762
- (0, smithy_client_1.throwDefaultError)({
748
+ return throwDefaultError({
763
749
  output,
764
750
  parsedBody,
765
- exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
766
751
  errorCode,
767
752
  });
768
753
  }
@@ -773,12 +758,12 @@ const de_PutLifecyclePolicyCommand = async (output, context) => {
773
758
  }
774
759
  const data = await parseBody(output.body, context);
775
760
  let contents = {};
776
- contents = de_PutLifecyclePolicyOutput(data, context);
761
+ contents = (0, smithy_client_1._json)(data);
777
762
  const response = {
778
763
  $metadata: deserializeMetadata(output),
779
764
  ...contents,
780
765
  };
781
- return Promise.resolve(response);
766
+ return response;
782
767
  };
783
768
  exports.de_PutLifecyclePolicyCommand = de_PutLifecyclePolicyCommand;
784
769
  const de_PutLifecyclePolicyCommandError = async (output, context) => {
@@ -799,10 +784,9 @@ const de_PutLifecyclePolicyCommandError = async (output, context) => {
799
784
  throw await de_InternalServerErrorRes(parsedOutput, context);
800
785
  default:
801
786
  const parsedBody = parsedOutput.body;
802
- (0, smithy_client_1.throwDefaultError)({
787
+ return throwDefaultError({
803
788
  output,
804
789
  parsedBody,
805
- exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
806
790
  errorCode,
807
791
  });
808
792
  }
@@ -813,12 +797,12 @@ const de_PutMetricPolicyCommand = async (output, context) => {
813
797
  }
814
798
  const data = await parseBody(output.body, context);
815
799
  let contents = {};
816
- contents = de_PutMetricPolicyOutput(data, context);
800
+ contents = (0, smithy_client_1._json)(data);
817
801
  const response = {
818
802
  $metadata: deserializeMetadata(output),
819
803
  ...contents,
820
804
  };
821
- return Promise.resolve(response);
805
+ return response;
822
806
  };
823
807
  exports.de_PutMetricPolicyCommand = de_PutMetricPolicyCommand;
824
808
  const de_PutMetricPolicyCommandError = async (output, context) => {
@@ -839,10 +823,9 @@ const de_PutMetricPolicyCommandError = async (output, context) => {
839
823
  throw await de_InternalServerErrorRes(parsedOutput, context);
840
824
  default:
841
825
  const parsedBody = parsedOutput.body;
842
- (0, smithy_client_1.throwDefaultError)({
826
+ return throwDefaultError({
843
827
  output,
844
828
  parsedBody,
845
- exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
846
829
  errorCode,
847
830
  });
848
831
  }
@@ -853,12 +836,12 @@ const de_StartAccessLoggingCommand = async (output, context) => {
853
836
  }
854
837
  const data = await parseBody(output.body, context);
855
838
  let contents = {};
856
- contents = de_StartAccessLoggingOutput(data, context);
839
+ contents = (0, smithy_client_1._json)(data);
857
840
  const response = {
858
841
  $metadata: deserializeMetadata(output),
859
842
  ...contents,
860
843
  };
861
- return Promise.resolve(response);
844
+ return response;
862
845
  };
863
846
  exports.de_StartAccessLoggingCommand = de_StartAccessLoggingCommand;
864
847
  const de_StartAccessLoggingCommandError = async (output, context) => {
@@ -879,10 +862,9 @@ const de_StartAccessLoggingCommandError = async (output, context) => {
879
862
  throw await de_InternalServerErrorRes(parsedOutput, context);
880
863
  default:
881
864
  const parsedBody = parsedOutput.body;
882
- (0, smithy_client_1.throwDefaultError)({
865
+ return throwDefaultError({
883
866
  output,
884
867
  parsedBody,
885
- exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
886
868
  errorCode,
887
869
  });
888
870
  }
@@ -893,12 +875,12 @@ const de_StopAccessLoggingCommand = async (output, context) => {
893
875
  }
894
876
  const data = await parseBody(output.body, context);
895
877
  let contents = {};
896
- contents = de_StopAccessLoggingOutput(data, context);
878
+ contents = (0, smithy_client_1._json)(data);
897
879
  const response = {
898
880
  $metadata: deserializeMetadata(output),
899
881
  ...contents,
900
882
  };
901
- return Promise.resolve(response);
883
+ return response;
902
884
  };
903
885
  exports.de_StopAccessLoggingCommand = de_StopAccessLoggingCommand;
904
886
  const de_StopAccessLoggingCommandError = async (output, context) => {
@@ -919,10 +901,9 @@ const de_StopAccessLoggingCommandError = async (output, context) => {
919
901
  throw await de_InternalServerErrorRes(parsedOutput, context);
920
902
  default:
921
903
  const parsedBody = parsedOutput.body;
922
- (0, smithy_client_1.throwDefaultError)({
904
+ return throwDefaultError({
923
905
  output,
924
906
  parsedBody,
925
- exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
926
907
  errorCode,
927
908
  });
928
909
  }
@@ -933,12 +914,12 @@ const de_TagResourceCommand = async (output, context) => {
933
914
  }
934
915
  const data = await parseBody(output.body, context);
935
916
  let contents = {};
936
- contents = de_TagResourceOutput(data, context);
917
+ contents = (0, smithy_client_1._json)(data);
937
918
  const response = {
938
919
  $metadata: deserializeMetadata(output),
939
920
  ...contents,
940
921
  };
941
- return Promise.resolve(response);
922
+ return response;
942
923
  };
943
924
  exports.de_TagResourceCommand = de_TagResourceCommand;
944
925
  const de_TagResourceCommandError = async (output, context) => {
@@ -959,10 +940,9 @@ const de_TagResourceCommandError = async (output, context) => {
959
940
  throw await de_InternalServerErrorRes(parsedOutput, context);
960
941
  default:
961
942
  const parsedBody = parsedOutput.body;
962
- (0, smithy_client_1.throwDefaultError)({
943
+ return throwDefaultError({
963
944
  output,
964
945
  parsedBody,
965
- exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
966
946
  errorCode,
967
947
  });
968
948
  }
@@ -973,12 +953,12 @@ const de_UntagResourceCommand = async (output, context) => {
973
953
  }
974
954
  const data = await parseBody(output.body, context);
975
955
  let contents = {};
976
- contents = de_UntagResourceOutput(data, context);
956
+ contents = (0, smithy_client_1._json)(data);
977
957
  const response = {
978
958
  $metadata: deserializeMetadata(output),
979
959
  ...contents,
980
960
  };
981
- return Promise.resolve(response);
961
+ return response;
982
962
  };
983
963
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
984
964
  const de_UntagResourceCommandError = async (output, context) => {
@@ -999,17 +979,16 @@ const de_UntagResourceCommandError = async (output, context) => {
999
979
  throw await de_InternalServerErrorRes(parsedOutput, context);
1000
980
  default:
1001
981
  const parsedBody = parsedOutput.body;
1002
- (0, smithy_client_1.throwDefaultError)({
982
+ return throwDefaultError({
1003
983
  output,
1004
984
  parsedBody,
1005
- exceptionCtor: MediaStoreServiceException_1.MediaStoreServiceException,
1006
985
  errorCode,
1007
986
  });
1008
987
  }
1009
988
  };
1010
989
  const de_ContainerInUseExceptionRes = async (parsedOutput, context) => {
1011
990
  const body = parsedOutput.body;
1012
- const deserialized = de_ContainerInUseException(body, context);
991
+ const deserialized = (0, smithy_client_1._json)(body);
1013
992
  const exception = new models_0_1.ContainerInUseException({
1014
993
  $metadata: deserializeMetadata(parsedOutput),
1015
994
  ...deserialized,
@@ -1018,7 +997,7 @@ const de_ContainerInUseExceptionRes = async (parsedOutput, context) => {
1018
997
  };
1019
998
  const de_ContainerNotFoundExceptionRes = async (parsedOutput, context) => {
1020
999
  const body = parsedOutput.body;
1021
- const deserialized = de_ContainerNotFoundException(body, context);
1000
+ const deserialized = (0, smithy_client_1._json)(body);
1022
1001
  const exception = new models_0_1.ContainerNotFoundException({
1023
1002
  $metadata: deserializeMetadata(parsedOutput),
1024
1003
  ...deserialized,
@@ -1027,7 +1006,7 @@ const de_ContainerNotFoundExceptionRes = async (parsedOutput, context) => {
1027
1006
  };
1028
1007
  const de_CorsPolicyNotFoundExceptionRes = async (parsedOutput, context) => {
1029
1008
  const body = parsedOutput.body;
1030
- const deserialized = de_CorsPolicyNotFoundException(body, context);
1009
+ const deserialized = (0, smithy_client_1._json)(body);
1031
1010
  const exception = new models_0_1.CorsPolicyNotFoundException({
1032
1011
  $metadata: deserializeMetadata(parsedOutput),
1033
1012
  ...deserialized,
@@ -1036,7 +1015,7 @@ const de_CorsPolicyNotFoundExceptionRes = async (parsedOutput, context) => {
1036
1015
  };
1037
1016
  const de_InternalServerErrorRes = async (parsedOutput, context) => {
1038
1017
  const body = parsedOutput.body;
1039
- const deserialized = de_InternalServerError(body, context);
1018
+ const deserialized = (0, smithy_client_1._json)(body);
1040
1019
  const exception = new models_0_1.InternalServerError({
1041
1020
  $metadata: deserializeMetadata(parsedOutput),
1042
1021
  ...deserialized,
@@ -1045,7 +1024,7 @@ const de_InternalServerErrorRes = async (parsedOutput, context) => {
1045
1024
  };
1046
1025
  const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
1047
1026
  const body = parsedOutput.body;
1048
- const deserialized = de_LimitExceededException(body, context);
1027
+ const deserialized = (0, smithy_client_1._json)(body);
1049
1028
  const exception = new models_0_1.LimitExceededException({
1050
1029
  $metadata: deserializeMetadata(parsedOutput),
1051
1030
  ...deserialized,
@@ -1054,447 +1033,46 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
1054
1033
  };
1055
1034
  const de_PolicyNotFoundExceptionRes = async (parsedOutput, context) => {
1056
1035
  const body = parsedOutput.body;
1057
- const deserialized = de_PolicyNotFoundException(body, context);
1036
+ const deserialized = (0, smithy_client_1._json)(body);
1058
1037
  const exception = new models_0_1.PolicyNotFoundException({
1059
1038
  $metadata: deserializeMetadata(parsedOutput),
1060
1039
  ...deserialized,
1061
1040
  });
1062
1041
  return (0, smithy_client_1.decorateServiceException)(exception, body);
1063
1042
  };
1064
- const se_AllowedHeaders = (input, context) => {
1065
- return input
1066
- .filter((e) => e != null)
1067
- .map((entry) => {
1068
- return entry;
1069
- });
1070
- };
1071
- const se_AllowedMethods = (input, context) => {
1072
- return input
1073
- .filter((e) => e != null)
1074
- .map((entry) => {
1075
- return entry;
1076
- });
1077
- };
1078
- const se_AllowedOrigins = (input, context) => {
1079
- return input
1080
- .filter((e) => e != null)
1081
- .map((entry) => {
1082
- return entry;
1083
- });
1084
- };
1085
- const se_CorsPolicy = (input, context) => {
1086
- return input
1087
- .filter((e) => e != null)
1088
- .map((entry) => {
1089
- return se_CorsRule(entry, context);
1090
- });
1091
- };
1092
- const se_CorsRule = (input, context) => {
1093
- return {
1094
- ...(input.AllowedHeaders != null && { AllowedHeaders: se_AllowedHeaders(input.AllowedHeaders, context) }),
1095
- ...(input.AllowedMethods != null && { AllowedMethods: se_AllowedMethods(input.AllowedMethods, context) }),
1096
- ...(input.AllowedOrigins != null && { AllowedOrigins: se_AllowedOrigins(input.AllowedOrigins, context) }),
1097
- ...(input.ExposeHeaders != null && { ExposeHeaders: se_ExposeHeaders(input.ExposeHeaders, context) }),
1098
- ...(input.MaxAgeSeconds != null && { MaxAgeSeconds: input.MaxAgeSeconds }),
1099
- };
1100
- };
1101
- const se_CreateContainerInput = (input, context) => {
1102
- return {
1103
- ...(input.ContainerName != null && { ContainerName: input.ContainerName }),
1104
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
1105
- };
1106
- };
1107
- const se_DeleteContainerInput = (input, context) => {
1108
- return {
1109
- ...(input.ContainerName != null && { ContainerName: input.ContainerName }),
1110
- };
1111
- };
1112
- const se_DeleteContainerPolicyInput = (input, context) => {
1113
- return {
1114
- ...(input.ContainerName != null && { ContainerName: input.ContainerName }),
1115
- };
1116
- };
1117
- const se_DeleteCorsPolicyInput = (input, context) => {
1118
- return {
1119
- ...(input.ContainerName != null && { ContainerName: input.ContainerName }),
1120
- };
1121
- };
1122
- const se_DeleteLifecyclePolicyInput = (input, context) => {
1123
- return {
1124
- ...(input.ContainerName != null && { ContainerName: input.ContainerName }),
1125
- };
1126
- };
1127
- const se_DeleteMetricPolicyInput = (input, context) => {
1128
- return {
1129
- ...(input.ContainerName != null && { ContainerName: input.ContainerName }),
1130
- };
1131
- };
1132
- const se_DescribeContainerInput = (input, context) => {
1133
- return {
1134
- ...(input.ContainerName != null && { ContainerName: input.ContainerName }),
1135
- };
1136
- };
1137
- const se_ExposeHeaders = (input, context) => {
1138
- return input
1139
- .filter((e) => e != null)
1140
- .map((entry) => {
1141
- return entry;
1142
- });
1143
- };
1144
- const se_GetContainerPolicyInput = (input, context) => {
1145
- return {
1146
- ...(input.ContainerName != null && { ContainerName: input.ContainerName }),
1147
- };
1148
- };
1149
- const se_GetCorsPolicyInput = (input, context) => {
1150
- return {
1151
- ...(input.ContainerName != null && { ContainerName: input.ContainerName }),
1152
- };
1153
- };
1154
- const se_GetLifecyclePolicyInput = (input, context) => {
1155
- return {
1156
- ...(input.ContainerName != null && { ContainerName: input.ContainerName }),
1157
- };
1158
- };
1159
- const se_GetMetricPolicyInput = (input, context) => {
1160
- return {
1161
- ...(input.ContainerName != null && { ContainerName: input.ContainerName }),
1162
- };
1163
- };
1164
- const se_ListContainersInput = (input, context) => {
1165
- return {
1166
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1167
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1168
- };
1169
- };
1170
- const se_ListTagsForResourceInput = (input, context) => {
1171
- return {
1172
- ...(input.Resource != null && { Resource: input.Resource }),
1173
- };
1174
- };
1175
- const se_MetricPolicy = (input, context) => {
1176
- return {
1177
- ...(input.ContainerLevelMetrics != null && { ContainerLevelMetrics: input.ContainerLevelMetrics }),
1178
- ...(input.MetricPolicyRules != null && {
1179
- MetricPolicyRules: se_MetricPolicyRules(input.MetricPolicyRules, context),
1180
- }),
1181
- };
1182
- };
1183
- const se_MetricPolicyRule = (input, context) => {
1184
- return {
1185
- ...(input.ObjectGroup != null && { ObjectGroup: input.ObjectGroup }),
1186
- ...(input.ObjectGroupName != null && { ObjectGroupName: input.ObjectGroupName }),
1187
- };
1188
- };
1189
- const se_MetricPolicyRules = (input, context) => {
1190
- return input
1191
- .filter((e) => e != null)
1192
- .map((entry) => {
1193
- return se_MetricPolicyRule(entry, context);
1194
- });
1195
- };
1196
- const se_PutContainerPolicyInput = (input, context) => {
1197
- return {
1198
- ...(input.ContainerName != null && { ContainerName: input.ContainerName }),
1199
- ...(input.Policy != null && { Policy: input.Policy }),
1200
- };
1201
- };
1202
- const se_PutCorsPolicyInput = (input, context) => {
1203
- return {
1204
- ...(input.ContainerName != null && { ContainerName: input.ContainerName }),
1205
- ...(input.CorsPolicy != null && { CorsPolicy: se_CorsPolicy(input.CorsPolicy, context) }),
1206
- };
1207
- };
1208
- const se_PutLifecyclePolicyInput = (input, context) => {
1209
- return {
1210
- ...(input.ContainerName != null && { ContainerName: input.ContainerName }),
1211
- ...(input.LifecyclePolicy != null && { LifecyclePolicy: input.LifecyclePolicy }),
1212
- };
1213
- };
1214
- const se_PutMetricPolicyInput = (input, context) => {
1215
- return {
1216
- ...(input.ContainerName != null && { ContainerName: input.ContainerName }),
1217
- ...(input.MetricPolicy != null && { MetricPolicy: se_MetricPolicy(input.MetricPolicy, context) }),
1218
- };
1219
- };
1220
- const se_StartAccessLoggingInput = (input, context) => {
1221
- return {
1222
- ...(input.ContainerName != null && { ContainerName: input.ContainerName }),
1223
- };
1224
- };
1225
- const se_StopAccessLoggingInput = (input, context) => {
1226
- return {
1227
- ...(input.ContainerName != null && { ContainerName: input.ContainerName }),
1228
- };
1229
- };
1230
- const se_Tag = (input, context) => {
1231
- return {
1232
- ...(input.Key != null && { Key: input.Key }),
1233
- ...(input.Value != null && { Value: input.Value }),
1234
- };
1235
- };
1236
- const se_TagKeyList = (input, context) => {
1237
- return input
1238
- .filter((e) => e != null)
1239
- .map((entry) => {
1240
- return entry;
1241
- });
1242
- };
1243
- const se_TagList = (input, context) => {
1244
- return input
1245
- .filter((e) => e != null)
1246
- .map((entry) => {
1247
- return se_Tag(entry, context);
1248
- });
1249
- };
1250
- const se_TagResourceInput = (input, context) => {
1251
- return {
1252
- ...(input.Resource != null && { Resource: input.Resource }),
1253
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
1254
- };
1255
- };
1256
- const se_UntagResourceInput = (input, context) => {
1257
- return {
1258
- ...(input.Resource != null && { Resource: input.Resource }),
1259
- ...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
1260
- };
1261
- };
1262
- const de_AllowedHeaders = (output, context) => {
1263
- const retVal = (output || [])
1264
- .filter((e) => e != null)
1265
- .map((entry) => {
1266
- if (entry === null) {
1267
- return null;
1268
- }
1269
- return (0, smithy_client_1.expectString)(entry);
1270
- });
1271
- return retVal;
1272
- };
1273
- const de_AllowedMethods = (output, context) => {
1274
- const retVal = (output || [])
1275
- .filter((e) => e != null)
1276
- .map((entry) => {
1277
- if (entry === null) {
1278
- return null;
1279
- }
1280
- return (0, smithy_client_1.expectString)(entry);
1281
- });
1282
- return retVal;
1283
- };
1284
- const de_AllowedOrigins = (output, context) => {
1285
- const retVal = (output || [])
1286
- .filter((e) => e != null)
1287
- .map((entry) => {
1288
- if (entry === null) {
1289
- return null;
1290
- }
1291
- return (0, smithy_client_1.expectString)(entry);
1292
- });
1293
- return retVal;
1294
- };
1295
1043
  const de_Container = (output, context) => {
1296
- return {
1297
- ARN: (0, smithy_client_1.expectString)(output.ARN),
1298
- AccessLoggingEnabled: (0, smithy_client_1.expectBoolean)(output.AccessLoggingEnabled),
1299
- CreationTime: output.CreationTime != null
1300
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
1301
- : undefined,
1302
- Endpoint: (0, smithy_client_1.expectString)(output.Endpoint),
1303
- Name: (0, smithy_client_1.expectString)(output.Name),
1304
- Status: (0, smithy_client_1.expectString)(output.Status),
1305
- };
1306
- };
1307
- const de_ContainerInUseException = (output, context) => {
1308
- return {
1309
- Message: (0, smithy_client_1.expectString)(output.Message),
1310
- };
1044
+ return (0, smithy_client_1.take)(output, {
1045
+ ARN: smithy_client_1.expectString,
1046
+ AccessLoggingEnabled: smithy_client_1.expectBoolean,
1047
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1048
+ Endpoint: smithy_client_1.expectString,
1049
+ Name: smithy_client_1.expectString,
1050
+ Status: smithy_client_1.expectString,
1051
+ });
1311
1052
  };
1312
1053
  const de_ContainerList = (output, context) => {
1313
1054
  const retVal = (output || [])
1314
1055
  .filter((e) => e != null)
1315
1056
  .map((entry) => {
1316
- if (entry === null) {
1317
- return null;
1318
- }
1319
1057
  return de_Container(entry, context);
1320
1058
  });
1321
1059
  return retVal;
1322
1060
  };
1323
- const de_ContainerNotFoundException = (output, context) => {
1324
- return {
1325
- Message: (0, smithy_client_1.expectString)(output.Message),
1326
- };
1327
- };
1328
- const de_CorsPolicy = (output, context) => {
1329
- const retVal = (output || [])
1330
- .filter((e) => e != null)
1331
- .map((entry) => {
1332
- if (entry === null) {
1333
- return null;
1334
- }
1335
- return de_CorsRule(entry, context);
1336
- });
1337
- return retVal;
1338
- };
1339
- const de_CorsPolicyNotFoundException = (output, context) => {
1340
- return {
1341
- Message: (0, smithy_client_1.expectString)(output.Message),
1342
- };
1343
- };
1344
- const de_CorsRule = (output, context) => {
1345
- return {
1346
- AllowedHeaders: output.AllowedHeaders != null ? de_AllowedHeaders(output.AllowedHeaders, context) : undefined,
1347
- AllowedMethods: output.AllowedMethods != null ? de_AllowedMethods(output.AllowedMethods, context) : undefined,
1348
- AllowedOrigins: output.AllowedOrigins != null ? de_AllowedOrigins(output.AllowedOrigins, context) : undefined,
1349
- ExposeHeaders: output.ExposeHeaders != null ? de_ExposeHeaders(output.ExposeHeaders, context) : undefined,
1350
- MaxAgeSeconds: (0, smithy_client_1.expectInt32)(output.MaxAgeSeconds),
1351
- };
1352
- };
1353
1061
  const de_CreateContainerOutput = (output, context) => {
1354
- return {
1355
- Container: output.Container != null ? de_Container(output.Container, context) : undefined,
1356
- };
1357
- };
1358
- const de_DeleteContainerOutput = (output, context) => {
1359
- return {};
1360
- };
1361
- const de_DeleteContainerPolicyOutput = (output, context) => {
1362
- return {};
1363
- };
1364
- const de_DeleteCorsPolicyOutput = (output, context) => {
1365
- return {};
1366
- };
1367
- const de_DeleteLifecyclePolicyOutput = (output, context) => {
1368
- return {};
1369
- };
1370
- const de_DeleteMetricPolicyOutput = (output, context) => {
1371
- return {};
1062
+ return (0, smithy_client_1.take)(output, {
1063
+ Container: (_) => de_Container(_, context),
1064
+ });
1372
1065
  };
1373
1066
  const de_DescribeContainerOutput = (output, context) => {
1374
- return {
1375
- Container: output.Container != null ? de_Container(output.Container, context) : undefined,
1376
- };
1377
- };
1378
- const de_ExposeHeaders = (output, context) => {
1379
- const retVal = (output || [])
1380
- .filter((e) => e != null)
1381
- .map((entry) => {
1382
- if (entry === null) {
1383
- return null;
1384
- }
1385
- return (0, smithy_client_1.expectString)(entry);
1067
+ return (0, smithy_client_1.take)(output, {
1068
+ Container: (_) => de_Container(_, context),
1386
1069
  });
1387
- return retVal;
1388
- };
1389
- const de_GetContainerPolicyOutput = (output, context) => {
1390
- return {
1391
- Policy: (0, smithy_client_1.expectString)(output.Policy),
1392
- };
1393
- };
1394
- const de_GetCorsPolicyOutput = (output, context) => {
1395
- return {
1396
- CorsPolicy: output.CorsPolicy != null ? de_CorsPolicy(output.CorsPolicy, context) : undefined,
1397
- };
1398
- };
1399
- const de_GetLifecyclePolicyOutput = (output, context) => {
1400
- return {
1401
- LifecyclePolicy: (0, smithy_client_1.expectString)(output.LifecyclePolicy),
1402
- };
1403
- };
1404
- const de_GetMetricPolicyOutput = (output, context) => {
1405
- return {
1406
- MetricPolicy: output.MetricPolicy != null ? de_MetricPolicy(output.MetricPolicy, context) : undefined,
1407
- };
1408
- };
1409
- const de_InternalServerError = (output, context) => {
1410
- return {
1411
- Message: (0, smithy_client_1.expectString)(output.Message),
1412
- };
1413
- };
1414
- const de_LimitExceededException = (output, context) => {
1415
- return {
1416
- Message: (0, smithy_client_1.expectString)(output.Message),
1417
- };
1418
1070
  };
1419
1071
  const de_ListContainersOutput = (output, context) => {
1420
- return {
1421
- Containers: output.Containers != null ? de_ContainerList(output.Containers, context) : undefined,
1422
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1423
- };
1424
- };
1425
- const de_ListTagsForResourceOutput = (output, context) => {
1426
- return {
1427
- Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
1428
- };
1429
- };
1430
- const de_MetricPolicy = (output, context) => {
1431
- return {
1432
- ContainerLevelMetrics: (0, smithy_client_1.expectString)(output.ContainerLevelMetrics),
1433
- MetricPolicyRules: output.MetricPolicyRules != null ? de_MetricPolicyRules(output.MetricPolicyRules, context) : undefined,
1434
- };
1435
- };
1436
- const de_MetricPolicyRule = (output, context) => {
1437
- return {
1438
- ObjectGroup: (0, smithy_client_1.expectString)(output.ObjectGroup),
1439
- ObjectGroupName: (0, smithy_client_1.expectString)(output.ObjectGroupName),
1440
- };
1441
- };
1442
- const de_MetricPolicyRules = (output, context) => {
1443
- const retVal = (output || [])
1444
- .filter((e) => e != null)
1445
- .map((entry) => {
1446
- if (entry === null) {
1447
- return null;
1448
- }
1449
- return de_MetricPolicyRule(entry, context);
1072
+ return (0, smithy_client_1.take)(output, {
1073
+ Containers: (_) => de_ContainerList(_, context),
1074
+ NextToken: smithy_client_1.expectString,
1450
1075
  });
1451
- return retVal;
1452
- };
1453
- const de_PolicyNotFoundException = (output, context) => {
1454
- return {
1455
- Message: (0, smithy_client_1.expectString)(output.Message),
1456
- };
1457
- };
1458
- const de_PutContainerPolicyOutput = (output, context) => {
1459
- return {};
1460
- };
1461
- const de_PutCorsPolicyOutput = (output, context) => {
1462
- return {};
1463
- };
1464
- const de_PutLifecyclePolicyOutput = (output, context) => {
1465
- return {};
1466
- };
1467
- const de_PutMetricPolicyOutput = (output, context) => {
1468
- return {};
1469
- };
1470
- const de_StartAccessLoggingOutput = (output, context) => {
1471
- return {};
1472
- };
1473
- const de_StopAccessLoggingOutput = (output, context) => {
1474
- return {};
1475
- };
1476
- const de_Tag = (output, context) => {
1477
- return {
1478
- Key: (0, smithy_client_1.expectString)(output.Key),
1479
- Value: (0, smithy_client_1.expectString)(output.Value),
1480
- };
1481
- };
1482
- const de_TagList = (output, context) => {
1483
- const retVal = (output || [])
1484
- .filter((e) => e != null)
1485
- .map((entry) => {
1486
- if (entry === null) {
1487
- return null;
1488
- }
1489
- return de_Tag(entry, context);
1490
- });
1491
- return retVal;
1492
- };
1493
- const de_TagResourceOutput = (output, context) => {
1494
- return {};
1495
- };
1496
- const de_UntagResourceOutput = (output, context) => {
1497
- return {};
1498
1076
  };
1499
1077
  const deserializeMetadata = (output) => ({
1500
1078
  httpStatusCode: output.statusCode,
@@ -1509,6 +1087,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
1509
1087
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
1510
1088
  };
1511
1089
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1090
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(MediaStoreServiceException_1.MediaStoreServiceException);
1512
1091
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1513
1092
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1514
1093
  const contents = {