@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.
@@ -1,131 +1,131 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
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";
2
+ import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
3
3
  import { MediaStoreServiceException as __BaseException } from "../models/MediaStoreServiceException";
4
4
  import { ContainerInUseException, ContainerNotFoundException, CorsPolicyNotFoundException, InternalServerError, LimitExceededException, PolicyNotFoundException, } from "../models/models_0";
5
5
  export const se_CreateContainerCommand = async (input, context) => {
6
6
  const headers = sharedHeaders("CreateContainer");
7
7
  let body;
8
- body = JSON.stringify(se_CreateContainerInput(input, context));
8
+ body = JSON.stringify(_json(input));
9
9
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
10
10
  };
11
11
  export const se_DeleteContainerCommand = async (input, context) => {
12
12
  const headers = sharedHeaders("DeleteContainer");
13
13
  let body;
14
- body = JSON.stringify(se_DeleteContainerInput(input, context));
14
+ body = JSON.stringify(_json(input));
15
15
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
16
16
  };
17
17
  export const se_DeleteContainerPolicyCommand = async (input, context) => {
18
18
  const headers = sharedHeaders("DeleteContainerPolicy");
19
19
  let body;
20
- body = JSON.stringify(se_DeleteContainerPolicyInput(input, context));
20
+ body = JSON.stringify(_json(input));
21
21
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
22
22
  };
23
23
  export const se_DeleteCorsPolicyCommand = async (input, context) => {
24
24
  const headers = sharedHeaders("DeleteCorsPolicy");
25
25
  let body;
26
- body = JSON.stringify(se_DeleteCorsPolicyInput(input, context));
26
+ body = JSON.stringify(_json(input));
27
27
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
28
28
  };
29
29
  export const se_DeleteLifecyclePolicyCommand = async (input, context) => {
30
30
  const headers = sharedHeaders("DeleteLifecyclePolicy");
31
31
  let body;
32
- body = JSON.stringify(se_DeleteLifecyclePolicyInput(input, context));
32
+ body = JSON.stringify(_json(input));
33
33
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
34
34
  };
35
35
  export const se_DeleteMetricPolicyCommand = async (input, context) => {
36
36
  const headers = sharedHeaders("DeleteMetricPolicy");
37
37
  let body;
38
- body = JSON.stringify(se_DeleteMetricPolicyInput(input, context));
38
+ body = JSON.stringify(_json(input));
39
39
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
40
40
  };
41
41
  export const se_DescribeContainerCommand = async (input, context) => {
42
42
  const headers = sharedHeaders("DescribeContainer");
43
43
  let body;
44
- body = JSON.stringify(se_DescribeContainerInput(input, context));
44
+ body = JSON.stringify(_json(input));
45
45
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
46
46
  };
47
47
  export const se_GetContainerPolicyCommand = async (input, context) => {
48
48
  const headers = sharedHeaders("GetContainerPolicy");
49
49
  let body;
50
- body = JSON.stringify(se_GetContainerPolicyInput(input, context));
50
+ body = JSON.stringify(_json(input));
51
51
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
52
52
  };
53
53
  export const se_GetCorsPolicyCommand = async (input, context) => {
54
54
  const headers = sharedHeaders("GetCorsPolicy");
55
55
  let body;
56
- body = JSON.stringify(se_GetCorsPolicyInput(input, context));
56
+ body = JSON.stringify(_json(input));
57
57
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
58
58
  };
59
59
  export const se_GetLifecyclePolicyCommand = async (input, context) => {
60
60
  const headers = sharedHeaders("GetLifecyclePolicy");
61
61
  let body;
62
- body = JSON.stringify(se_GetLifecyclePolicyInput(input, context));
62
+ body = JSON.stringify(_json(input));
63
63
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
64
64
  };
65
65
  export const se_GetMetricPolicyCommand = async (input, context) => {
66
66
  const headers = sharedHeaders("GetMetricPolicy");
67
67
  let body;
68
- body = JSON.stringify(se_GetMetricPolicyInput(input, context));
68
+ body = JSON.stringify(_json(input));
69
69
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
70
70
  };
71
71
  export const se_ListContainersCommand = async (input, context) => {
72
72
  const headers = sharedHeaders("ListContainers");
73
73
  let body;
74
- body = JSON.stringify(se_ListContainersInput(input, context));
74
+ body = JSON.stringify(_json(input));
75
75
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
76
76
  };
77
77
  export const se_ListTagsForResourceCommand = async (input, context) => {
78
78
  const headers = sharedHeaders("ListTagsForResource");
79
79
  let body;
80
- body = JSON.stringify(se_ListTagsForResourceInput(input, context));
80
+ body = JSON.stringify(_json(input));
81
81
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
82
82
  };
83
83
  export const se_PutContainerPolicyCommand = async (input, context) => {
84
84
  const headers = sharedHeaders("PutContainerPolicy");
85
85
  let body;
86
- body = JSON.stringify(se_PutContainerPolicyInput(input, context));
86
+ body = JSON.stringify(_json(input));
87
87
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
88
88
  };
89
89
  export const se_PutCorsPolicyCommand = async (input, context) => {
90
90
  const headers = sharedHeaders("PutCorsPolicy");
91
91
  let body;
92
- body = JSON.stringify(se_PutCorsPolicyInput(input, context));
92
+ body = JSON.stringify(_json(input));
93
93
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
94
94
  };
95
95
  export const se_PutLifecyclePolicyCommand = async (input, context) => {
96
96
  const headers = sharedHeaders("PutLifecyclePolicy");
97
97
  let body;
98
- body = JSON.stringify(se_PutLifecyclePolicyInput(input, context));
98
+ body = JSON.stringify(_json(input));
99
99
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
100
100
  };
101
101
  export const se_PutMetricPolicyCommand = async (input, context) => {
102
102
  const headers = sharedHeaders("PutMetricPolicy");
103
103
  let body;
104
- body = JSON.stringify(se_PutMetricPolicyInput(input, context));
104
+ body = JSON.stringify(_json(input));
105
105
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
106
106
  };
107
107
  export const se_StartAccessLoggingCommand = async (input, context) => {
108
108
  const headers = sharedHeaders("StartAccessLogging");
109
109
  let body;
110
- body = JSON.stringify(se_StartAccessLoggingInput(input, context));
110
+ body = JSON.stringify(_json(input));
111
111
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
112
112
  };
113
113
  export const se_StopAccessLoggingCommand = async (input, context) => {
114
114
  const headers = sharedHeaders("StopAccessLogging");
115
115
  let body;
116
- body = JSON.stringify(se_StopAccessLoggingInput(input, context));
116
+ body = JSON.stringify(_json(input));
117
117
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
118
118
  };
119
119
  export const se_TagResourceCommand = async (input, context) => {
120
120
  const headers = sharedHeaders("TagResource");
121
121
  let body;
122
- body = JSON.stringify(se_TagResourceInput(input, context));
122
+ body = JSON.stringify(_json(input));
123
123
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
124
124
  };
125
125
  export const se_UntagResourceCommand = async (input, context) => {
126
126
  const headers = sharedHeaders("UntagResource");
127
127
  let body;
128
- body = JSON.stringify(se_UntagResourceInput(input, context));
128
+ body = JSON.stringify(_json(input));
129
129
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
130
130
  };
131
131
  export const de_CreateContainerCommand = async (output, context) => {
@@ -139,7 +139,7 @@ export const de_CreateContainerCommand = async (output, context) => {
139
139
  $metadata: deserializeMetadata(output),
140
140
  ...contents,
141
141
  };
142
- return Promise.resolve(response);
142
+ return response;
143
143
  };
144
144
  const de_CreateContainerCommandError = async (output, context) => {
145
145
  const parsedOutput = {
@@ -159,10 +159,9 @@ const de_CreateContainerCommandError = async (output, context) => {
159
159
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
160
160
  default:
161
161
  const parsedBody = parsedOutput.body;
162
- throwDefaultError({
162
+ return throwDefaultError({
163
163
  output,
164
164
  parsedBody,
165
- exceptionCtor: __BaseException,
166
165
  errorCode,
167
166
  });
168
167
  }
@@ -173,12 +172,12 @@ export const de_DeleteContainerCommand = async (output, context) => {
173
172
  }
174
173
  const data = await parseBody(output.body, context);
175
174
  let contents = {};
176
- contents = de_DeleteContainerOutput(data, context);
175
+ contents = _json(data);
177
176
  const response = {
178
177
  $metadata: deserializeMetadata(output),
179
178
  ...contents,
180
179
  };
181
- return Promise.resolve(response);
180
+ return response;
182
181
  };
183
182
  const de_DeleteContainerCommandError = async (output, context) => {
184
183
  const parsedOutput = {
@@ -198,10 +197,9 @@ const de_DeleteContainerCommandError = async (output, context) => {
198
197
  throw await de_InternalServerErrorRes(parsedOutput, context);
199
198
  default:
200
199
  const parsedBody = parsedOutput.body;
201
- throwDefaultError({
200
+ return throwDefaultError({
202
201
  output,
203
202
  parsedBody,
204
- exceptionCtor: __BaseException,
205
203
  errorCode,
206
204
  });
207
205
  }
@@ -212,12 +210,12 @@ export const de_DeleteContainerPolicyCommand = async (output, context) => {
212
210
  }
213
211
  const data = await parseBody(output.body, context);
214
212
  let contents = {};
215
- contents = de_DeleteContainerPolicyOutput(data, context);
213
+ contents = _json(data);
216
214
  const response = {
217
215
  $metadata: deserializeMetadata(output),
218
216
  ...contents,
219
217
  };
220
- return Promise.resolve(response);
218
+ return response;
221
219
  };
222
220
  const de_DeleteContainerPolicyCommandError = async (output, context) => {
223
221
  const parsedOutput = {
@@ -240,10 +238,9 @@ const de_DeleteContainerPolicyCommandError = async (output, context) => {
240
238
  throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
241
239
  default:
242
240
  const parsedBody = parsedOutput.body;
243
- throwDefaultError({
241
+ return throwDefaultError({
244
242
  output,
245
243
  parsedBody,
246
- exceptionCtor: __BaseException,
247
244
  errorCode,
248
245
  });
249
246
  }
@@ -254,12 +251,12 @@ export const de_DeleteCorsPolicyCommand = async (output, context) => {
254
251
  }
255
252
  const data = await parseBody(output.body, context);
256
253
  let contents = {};
257
- contents = de_DeleteCorsPolicyOutput(data, context);
254
+ contents = _json(data);
258
255
  const response = {
259
256
  $metadata: deserializeMetadata(output),
260
257
  ...contents,
261
258
  };
262
- return Promise.resolve(response);
259
+ return response;
263
260
  };
264
261
  const de_DeleteCorsPolicyCommandError = async (output, context) => {
265
262
  const parsedOutput = {
@@ -282,10 +279,9 @@ const de_DeleteCorsPolicyCommandError = async (output, context) => {
282
279
  throw await de_InternalServerErrorRes(parsedOutput, context);
283
280
  default:
284
281
  const parsedBody = parsedOutput.body;
285
- throwDefaultError({
282
+ return throwDefaultError({
286
283
  output,
287
284
  parsedBody,
288
- exceptionCtor: __BaseException,
289
285
  errorCode,
290
286
  });
291
287
  }
@@ -296,12 +292,12 @@ export const de_DeleteLifecyclePolicyCommand = async (output, context) => {
296
292
  }
297
293
  const data = await parseBody(output.body, context);
298
294
  let contents = {};
299
- contents = de_DeleteLifecyclePolicyOutput(data, context);
295
+ contents = _json(data);
300
296
  const response = {
301
297
  $metadata: deserializeMetadata(output),
302
298
  ...contents,
303
299
  };
304
- return Promise.resolve(response);
300
+ return response;
305
301
  };
306
302
  const de_DeleteLifecyclePolicyCommandError = async (output, context) => {
307
303
  const parsedOutput = {
@@ -324,10 +320,9 @@ const de_DeleteLifecyclePolicyCommandError = async (output, context) => {
324
320
  throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
325
321
  default:
326
322
  const parsedBody = parsedOutput.body;
327
- throwDefaultError({
323
+ return throwDefaultError({
328
324
  output,
329
325
  parsedBody,
330
- exceptionCtor: __BaseException,
331
326
  errorCode,
332
327
  });
333
328
  }
@@ -338,12 +333,12 @@ export const de_DeleteMetricPolicyCommand = async (output, context) => {
338
333
  }
339
334
  const data = await parseBody(output.body, context);
340
335
  let contents = {};
341
- contents = de_DeleteMetricPolicyOutput(data, context);
336
+ contents = _json(data);
342
337
  const response = {
343
338
  $metadata: deserializeMetadata(output),
344
339
  ...contents,
345
340
  };
346
- return Promise.resolve(response);
341
+ return response;
347
342
  };
348
343
  const de_DeleteMetricPolicyCommandError = async (output, context) => {
349
344
  const parsedOutput = {
@@ -366,10 +361,9 @@ const de_DeleteMetricPolicyCommandError = async (output, context) => {
366
361
  throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
367
362
  default:
368
363
  const parsedBody = parsedOutput.body;
369
- throwDefaultError({
364
+ return throwDefaultError({
370
365
  output,
371
366
  parsedBody,
372
- exceptionCtor: __BaseException,
373
367
  errorCode,
374
368
  });
375
369
  }
@@ -385,7 +379,7 @@ export const de_DescribeContainerCommand = async (output, context) => {
385
379
  $metadata: deserializeMetadata(output),
386
380
  ...contents,
387
381
  };
388
- return Promise.resolve(response);
382
+ return response;
389
383
  };
390
384
  const de_DescribeContainerCommandError = async (output, context) => {
391
385
  const parsedOutput = {
@@ -402,10 +396,9 @@ const de_DescribeContainerCommandError = async (output, context) => {
402
396
  throw await de_InternalServerErrorRes(parsedOutput, context);
403
397
  default:
404
398
  const parsedBody = parsedOutput.body;
405
- throwDefaultError({
399
+ return throwDefaultError({
406
400
  output,
407
401
  parsedBody,
408
- exceptionCtor: __BaseException,
409
402
  errorCode,
410
403
  });
411
404
  }
@@ -416,12 +409,12 @@ export const de_GetContainerPolicyCommand = async (output, context) => {
416
409
  }
417
410
  const data = await parseBody(output.body, context);
418
411
  let contents = {};
419
- contents = de_GetContainerPolicyOutput(data, context);
412
+ contents = _json(data);
420
413
  const response = {
421
414
  $metadata: deserializeMetadata(output),
422
415
  ...contents,
423
416
  };
424
- return Promise.resolve(response);
417
+ return response;
425
418
  };
426
419
  const de_GetContainerPolicyCommandError = async (output, context) => {
427
420
  const parsedOutput = {
@@ -444,10 +437,9 @@ const de_GetContainerPolicyCommandError = async (output, context) => {
444
437
  throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
445
438
  default:
446
439
  const parsedBody = parsedOutput.body;
447
- throwDefaultError({
440
+ return throwDefaultError({
448
441
  output,
449
442
  parsedBody,
450
- exceptionCtor: __BaseException,
451
443
  errorCode,
452
444
  });
453
445
  }
@@ -458,12 +450,12 @@ export const de_GetCorsPolicyCommand = async (output, context) => {
458
450
  }
459
451
  const data = await parseBody(output.body, context);
460
452
  let contents = {};
461
- contents = de_GetCorsPolicyOutput(data, context);
453
+ contents = _json(data);
462
454
  const response = {
463
455
  $metadata: deserializeMetadata(output),
464
456
  ...contents,
465
457
  };
466
- return Promise.resolve(response);
458
+ return response;
467
459
  };
468
460
  const de_GetCorsPolicyCommandError = async (output, context) => {
469
461
  const parsedOutput = {
@@ -486,10 +478,9 @@ const de_GetCorsPolicyCommandError = async (output, context) => {
486
478
  throw await de_InternalServerErrorRes(parsedOutput, context);
487
479
  default:
488
480
  const parsedBody = parsedOutput.body;
489
- throwDefaultError({
481
+ return throwDefaultError({
490
482
  output,
491
483
  parsedBody,
492
- exceptionCtor: __BaseException,
493
484
  errorCode,
494
485
  });
495
486
  }
@@ -500,12 +491,12 @@ export const de_GetLifecyclePolicyCommand = async (output, context) => {
500
491
  }
501
492
  const data = await parseBody(output.body, context);
502
493
  let contents = {};
503
- contents = de_GetLifecyclePolicyOutput(data, context);
494
+ contents = _json(data);
504
495
  const response = {
505
496
  $metadata: deserializeMetadata(output),
506
497
  ...contents,
507
498
  };
508
- return Promise.resolve(response);
499
+ return response;
509
500
  };
510
501
  const de_GetLifecyclePolicyCommandError = async (output, context) => {
511
502
  const parsedOutput = {
@@ -528,10 +519,9 @@ const de_GetLifecyclePolicyCommandError = async (output, context) => {
528
519
  throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
529
520
  default:
530
521
  const parsedBody = parsedOutput.body;
531
- throwDefaultError({
522
+ return throwDefaultError({
532
523
  output,
533
524
  parsedBody,
534
- exceptionCtor: __BaseException,
535
525
  errorCode,
536
526
  });
537
527
  }
@@ -542,12 +532,12 @@ export const de_GetMetricPolicyCommand = async (output, context) => {
542
532
  }
543
533
  const data = await parseBody(output.body, context);
544
534
  let contents = {};
545
- contents = de_GetMetricPolicyOutput(data, context);
535
+ contents = _json(data);
546
536
  const response = {
547
537
  $metadata: deserializeMetadata(output),
548
538
  ...contents,
549
539
  };
550
- return Promise.resolve(response);
540
+ return response;
551
541
  };
552
542
  const de_GetMetricPolicyCommandError = async (output, context) => {
553
543
  const parsedOutput = {
@@ -570,10 +560,9 @@ const de_GetMetricPolicyCommandError = async (output, context) => {
570
560
  throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
571
561
  default:
572
562
  const parsedBody = parsedOutput.body;
573
- throwDefaultError({
563
+ return throwDefaultError({
574
564
  output,
575
565
  parsedBody,
576
- exceptionCtor: __BaseException,
577
566
  errorCode,
578
567
  });
579
568
  }
@@ -589,7 +578,7 @@ export const de_ListContainersCommand = async (output, context) => {
589
578
  $metadata: deserializeMetadata(output),
590
579
  ...contents,
591
580
  };
592
- return Promise.resolve(response);
581
+ return response;
593
582
  };
594
583
  const de_ListContainersCommandError = async (output, context) => {
595
584
  const parsedOutput = {
@@ -603,10 +592,9 @@ const de_ListContainersCommandError = async (output, context) => {
603
592
  throw await de_InternalServerErrorRes(parsedOutput, context);
604
593
  default:
605
594
  const parsedBody = parsedOutput.body;
606
- throwDefaultError({
595
+ return throwDefaultError({
607
596
  output,
608
597
  parsedBody,
609
- exceptionCtor: __BaseException,
610
598
  errorCode,
611
599
  });
612
600
  }
@@ -617,12 +605,12 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
617
605
  }
618
606
  const data = await parseBody(output.body, context);
619
607
  let contents = {};
620
- contents = de_ListTagsForResourceOutput(data, context);
608
+ contents = _json(data);
621
609
  const response = {
622
610
  $metadata: deserializeMetadata(output),
623
611
  ...contents,
624
612
  };
625
- return Promise.resolve(response);
613
+ return response;
626
614
  };
627
615
  const de_ListTagsForResourceCommandError = async (output, context) => {
628
616
  const parsedOutput = {
@@ -642,10 +630,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
642
630
  throw await de_InternalServerErrorRes(parsedOutput, context);
643
631
  default:
644
632
  const parsedBody = parsedOutput.body;
645
- throwDefaultError({
633
+ return throwDefaultError({
646
634
  output,
647
635
  parsedBody,
648
- exceptionCtor: __BaseException,
649
636
  errorCode,
650
637
  });
651
638
  }
@@ -656,12 +643,12 @@ export const de_PutContainerPolicyCommand = async (output, context) => {
656
643
  }
657
644
  const data = await parseBody(output.body, context);
658
645
  let contents = {};
659
- contents = de_PutContainerPolicyOutput(data, context);
646
+ contents = _json(data);
660
647
  const response = {
661
648
  $metadata: deserializeMetadata(output),
662
649
  ...contents,
663
650
  };
664
- return Promise.resolve(response);
651
+ return response;
665
652
  };
666
653
  const de_PutContainerPolicyCommandError = async (output, context) => {
667
654
  const parsedOutput = {
@@ -681,10 +668,9 @@ const de_PutContainerPolicyCommandError = async (output, context) => {
681
668
  throw await de_InternalServerErrorRes(parsedOutput, context);
682
669
  default:
683
670
  const parsedBody = parsedOutput.body;
684
- throwDefaultError({
671
+ return throwDefaultError({
685
672
  output,
686
673
  parsedBody,
687
- exceptionCtor: __BaseException,
688
674
  errorCode,
689
675
  });
690
676
  }
@@ -695,12 +681,12 @@ export const de_PutCorsPolicyCommand = async (output, context) => {
695
681
  }
696
682
  const data = await parseBody(output.body, context);
697
683
  let contents = {};
698
- contents = de_PutCorsPolicyOutput(data, context);
684
+ contents = _json(data);
699
685
  const response = {
700
686
  $metadata: deserializeMetadata(output),
701
687
  ...contents,
702
688
  };
703
- return Promise.resolve(response);
689
+ return response;
704
690
  };
705
691
  const de_PutCorsPolicyCommandError = async (output, context) => {
706
692
  const parsedOutput = {
@@ -720,10 +706,9 @@ const de_PutCorsPolicyCommandError = async (output, context) => {
720
706
  throw await de_InternalServerErrorRes(parsedOutput, context);
721
707
  default:
722
708
  const parsedBody = parsedOutput.body;
723
- throwDefaultError({
709
+ return throwDefaultError({
724
710
  output,
725
711
  parsedBody,
726
- exceptionCtor: __BaseException,
727
712
  errorCode,
728
713
  });
729
714
  }
@@ -734,12 +719,12 @@ export const de_PutLifecyclePolicyCommand = async (output, context) => {
734
719
  }
735
720
  const data = await parseBody(output.body, context);
736
721
  let contents = {};
737
- contents = de_PutLifecyclePolicyOutput(data, context);
722
+ contents = _json(data);
738
723
  const response = {
739
724
  $metadata: deserializeMetadata(output),
740
725
  ...contents,
741
726
  };
742
- return Promise.resolve(response);
727
+ return response;
743
728
  };
744
729
  const de_PutLifecyclePolicyCommandError = async (output, context) => {
745
730
  const parsedOutput = {
@@ -759,10 +744,9 @@ const de_PutLifecyclePolicyCommandError = async (output, context) => {
759
744
  throw await de_InternalServerErrorRes(parsedOutput, context);
760
745
  default:
761
746
  const parsedBody = parsedOutput.body;
762
- throwDefaultError({
747
+ return throwDefaultError({
763
748
  output,
764
749
  parsedBody,
765
- exceptionCtor: __BaseException,
766
750
  errorCode,
767
751
  });
768
752
  }
@@ -773,12 +757,12 @@ export const de_PutMetricPolicyCommand = async (output, context) => {
773
757
  }
774
758
  const data = await parseBody(output.body, context);
775
759
  let contents = {};
776
- contents = de_PutMetricPolicyOutput(data, context);
760
+ contents = _json(data);
777
761
  const response = {
778
762
  $metadata: deserializeMetadata(output),
779
763
  ...contents,
780
764
  };
781
- return Promise.resolve(response);
765
+ return response;
782
766
  };
783
767
  const de_PutMetricPolicyCommandError = async (output, context) => {
784
768
  const parsedOutput = {
@@ -798,10 +782,9 @@ const de_PutMetricPolicyCommandError = async (output, context) => {
798
782
  throw await de_InternalServerErrorRes(parsedOutput, context);
799
783
  default:
800
784
  const parsedBody = parsedOutput.body;
801
- throwDefaultError({
785
+ return throwDefaultError({
802
786
  output,
803
787
  parsedBody,
804
- exceptionCtor: __BaseException,
805
788
  errorCode,
806
789
  });
807
790
  }
@@ -812,12 +795,12 @@ export const de_StartAccessLoggingCommand = async (output, context) => {
812
795
  }
813
796
  const data = await parseBody(output.body, context);
814
797
  let contents = {};
815
- contents = de_StartAccessLoggingOutput(data, context);
798
+ contents = _json(data);
816
799
  const response = {
817
800
  $metadata: deserializeMetadata(output),
818
801
  ...contents,
819
802
  };
820
- return Promise.resolve(response);
803
+ return response;
821
804
  };
822
805
  const de_StartAccessLoggingCommandError = async (output, context) => {
823
806
  const parsedOutput = {
@@ -837,10 +820,9 @@ const de_StartAccessLoggingCommandError = async (output, context) => {
837
820
  throw await de_InternalServerErrorRes(parsedOutput, context);
838
821
  default:
839
822
  const parsedBody = parsedOutput.body;
840
- throwDefaultError({
823
+ return throwDefaultError({
841
824
  output,
842
825
  parsedBody,
843
- exceptionCtor: __BaseException,
844
826
  errorCode,
845
827
  });
846
828
  }
@@ -851,12 +833,12 @@ export const de_StopAccessLoggingCommand = async (output, context) => {
851
833
  }
852
834
  const data = await parseBody(output.body, context);
853
835
  let contents = {};
854
- contents = de_StopAccessLoggingOutput(data, context);
836
+ contents = _json(data);
855
837
  const response = {
856
838
  $metadata: deserializeMetadata(output),
857
839
  ...contents,
858
840
  };
859
- return Promise.resolve(response);
841
+ return response;
860
842
  };
861
843
  const de_StopAccessLoggingCommandError = async (output, context) => {
862
844
  const parsedOutput = {
@@ -876,10 +858,9 @@ const de_StopAccessLoggingCommandError = async (output, context) => {
876
858
  throw await de_InternalServerErrorRes(parsedOutput, context);
877
859
  default:
878
860
  const parsedBody = parsedOutput.body;
879
- throwDefaultError({
861
+ return throwDefaultError({
880
862
  output,
881
863
  parsedBody,
882
- exceptionCtor: __BaseException,
883
864
  errorCode,
884
865
  });
885
866
  }
@@ -890,12 +871,12 @@ export const de_TagResourceCommand = async (output, context) => {
890
871
  }
891
872
  const data = await parseBody(output.body, context);
892
873
  let contents = {};
893
- contents = de_TagResourceOutput(data, context);
874
+ contents = _json(data);
894
875
  const response = {
895
876
  $metadata: deserializeMetadata(output),
896
877
  ...contents,
897
878
  };
898
- return Promise.resolve(response);
879
+ return response;
899
880
  };
900
881
  const de_TagResourceCommandError = async (output, context) => {
901
882
  const parsedOutput = {
@@ -915,10 +896,9 @@ const de_TagResourceCommandError = async (output, context) => {
915
896
  throw await de_InternalServerErrorRes(parsedOutput, context);
916
897
  default:
917
898
  const parsedBody = parsedOutput.body;
918
- throwDefaultError({
899
+ return throwDefaultError({
919
900
  output,
920
901
  parsedBody,
921
- exceptionCtor: __BaseException,
922
902
  errorCode,
923
903
  });
924
904
  }
@@ -929,12 +909,12 @@ export const de_UntagResourceCommand = async (output, context) => {
929
909
  }
930
910
  const data = await parseBody(output.body, context);
931
911
  let contents = {};
932
- contents = de_UntagResourceOutput(data, context);
912
+ contents = _json(data);
933
913
  const response = {
934
914
  $metadata: deserializeMetadata(output),
935
915
  ...contents,
936
916
  };
937
- return Promise.resolve(response);
917
+ return response;
938
918
  };
939
919
  const de_UntagResourceCommandError = async (output, context) => {
940
920
  const parsedOutput = {
@@ -954,17 +934,16 @@ const de_UntagResourceCommandError = async (output, context) => {
954
934
  throw await de_InternalServerErrorRes(parsedOutput, context);
955
935
  default:
956
936
  const parsedBody = parsedOutput.body;
957
- throwDefaultError({
937
+ return throwDefaultError({
958
938
  output,
959
939
  parsedBody,
960
- exceptionCtor: __BaseException,
961
940
  errorCode,
962
941
  });
963
942
  }
964
943
  };
965
944
  const de_ContainerInUseExceptionRes = async (parsedOutput, context) => {
966
945
  const body = parsedOutput.body;
967
- const deserialized = de_ContainerInUseException(body, context);
946
+ const deserialized = _json(body);
968
947
  const exception = new ContainerInUseException({
969
948
  $metadata: deserializeMetadata(parsedOutput),
970
949
  ...deserialized,
@@ -973,7 +952,7 @@ const de_ContainerInUseExceptionRes = async (parsedOutput, context) => {
973
952
  };
974
953
  const de_ContainerNotFoundExceptionRes = async (parsedOutput, context) => {
975
954
  const body = parsedOutput.body;
976
- const deserialized = de_ContainerNotFoundException(body, context);
955
+ const deserialized = _json(body);
977
956
  const exception = new ContainerNotFoundException({
978
957
  $metadata: deserializeMetadata(parsedOutput),
979
958
  ...deserialized,
@@ -982,7 +961,7 @@ const de_ContainerNotFoundExceptionRes = async (parsedOutput, context) => {
982
961
  };
983
962
  const de_CorsPolicyNotFoundExceptionRes = async (parsedOutput, context) => {
984
963
  const body = parsedOutput.body;
985
- const deserialized = de_CorsPolicyNotFoundException(body, context);
964
+ const deserialized = _json(body);
986
965
  const exception = new CorsPolicyNotFoundException({
987
966
  $metadata: deserializeMetadata(parsedOutput),
988
967
  ...deserialized,
@@ -991,7 +970,7 @@ const de_CorsPolicyNotFoundExceptionRes = async (parsedOutput, context) => {
991
970
  };
992
971
  const de_InternalServerErrorRes = async (parsedOutput, context) => {
993
972
  const body = parsedOutput.body;
994
- const deserialized = de_InternalServerError(body, context);
973
+ const deserialized = _json(body);
995
974
  const exception = new InternalServerError({
996
975
  $metadata: deserializeMetadata(parsedOutput),
997
976
  ...deserialized,
@@ -1000,7 +979,7 @@ const de_InternalServerErrorRes = async (parsedOutput, context) => {
1000
979
  };
1001
980
  const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
1002
981
  const body = parsedOutput.body;
1003
- const deserialized = de_LimitExceededException(body, context);
982
+ const deserialized = _json(body);
1004
983
  const exception = new LimitExceededException({
1005
984
  $metadata: deserializeMetadata(parsedOutput),
1006
985
  ...deserialized,
@@ -1009,447 +988,46 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
1009
988
  };
1010
989
  const de_PolicyNotFoundExceptionRes = async (parsedOutput, context) => {
1011
990
  const body = parsedOutput.body;
1012
- const deserialized = de_PolicyNotFoundException(body, context);
991
+ const deserialized = _json(body);
1013
992
  const exception = new PolicyNotFoundException({
1014
993
  $metadata: deserializeMetadata(parsedOutput),
1015
994
  ...deserialized,
1016
995
  });
1017
996
  return __decorateServiceException(exception, body);
1018
997
  };
1019
- const se_AllowedHeaders = (input, context) => {
1020
- return input
1021
- .filter((e) => e != null)
1022
- .map((entry) => {
1023
- return entry;
1024
- });
1025
- };
1026
- const se_AllowedMethods = (input, context) => {
1027
- return input
1028
- .filter((e) => e != null)
1029
- .map((entry) => {
1030
- return entry;
1031
- });
1032
- };
1033
- const se_AllowedOrigins = (input, context) => {
1034
- return input
1035
- .filter((e) => e != null)
1036
- .map((entry) => {
1037
- return entry;
1038
- });
1039
- };
1040
- const se_CorsPolicy = (input, context) => {
1041
- return input
1042
- .filter((e) => e != null)
1043
- .map((entry) => {
1044
- return se_CorsRule(entry, context);
1045
- });
1046
- };
1047
- const se_CorsRule = (input, context) => {
1048
- return {
1049
- ...(input.AllowedHeaders != null && { AllowedHeaders: se_AllowedHeaders(input.AllowedHeaders, context) }),
1050
- ...(input.AllowedMethods != null && { AllowedMethods: se_AllowedMethods(input.AllowedMethods, context) }),
1051
- ...(input.AllowedOrigins != null && { AllowedOrigins: se_AllowedOrigins(input.AllowedOrigins, context) }),
1052
- ...(input.ExposeHeaders != null && { ExposeHeaders: se_ExposeHeaders(input.ExposeHeaders, context) }),
1053
- ...(input.MaxAgeSeconds != null && { MaxAgeSeconds: input.MaxAgeSeconds }),
1054
- };
1055
- };
1056
- const se_CreateContainerInput = (input, context) => {
1057
- return {
1058
- ...(input.ContainerName != null && { ContainerName: input.ContainerName }),
1059
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
1060
- };
1061
- };
1062
- const se_DeleteContainerInput = (input, context) => {
1063
- return {
1064
- ...(input.ContainerName != null && { ContainerName: input.ContainerName }),
1065
- };
1066
- };
1067
- const se_DeleteContainerPolicyInput = (input, context) => {
1068
- return {
1069
- ...(input.ContainerName != null && { ContainerName: input.ContainerName }),
1070
- };
1071
- };
1072
- const se_DeleteCorsPolicyInput = (input, context) => {
1073
- return {
1074
- ...(input.ContainerName != null && { ContainerName: input.ContainerName }),
1075
- };
1076
- };
1077
- const se_DeleteLifecyclePolicyInput = (input, context) => {
1078
- return {
1079
- ...(input.ContainerName != null && { ContainerName: input.ContainerName }),
1080
- };
1081
- };
1082
- const se_DeleteMetricPolicyInput = (input, context) => {
1083
- return {
1084
- ...(input.ContainerName != null && { ContainerName: input.ContainerName }),
1085
- };
1086
- };
1087
- const se_DescribeContainerInput = (input, context) => {
1088
- return {
1089
- ...(input.ContainerName != null && { ContainerName: input.ContainerName }),
1090
- };
1091
- };
1092
- const se_ExposeHeaders = (input, context) => {
1093
- return input
1094
- .filter((e) => e != null)
1095
- .map((entry) => {
1096
- return entry;
1097
- });
1098
- };
1099
- const se_GetContainerPolicyInput = (input, context) => {
1100
- return {
1101
- ...(input.ContainerName != null && { ContainerName: input.ContainerName }),
1102
- };
1103
- };
1104
- const se_GetCorsPolicyInput = (input, context) => {
1105
- return {
1106
- ...(input.ContainerName != null && { ContainerName: input.ContainerName }),
1107
- };
1108
- };
1109
- const se_GetLifecyclePolicyInput = (input, context) => {
1110
- return {
1111
- ...(input.ContainerName != null && { ContainerName: input.ContainerName }),
1112
- };
1113
- };
1114
- const se_GetMetricPolicyInput = (input, context) => {
1115
- return {
1116
- ...(input.ContainerName != null && { ContainerName: input.ContainerName }),
1117
- };
1118
- };
1119
- const se_ListContainersInput = (input, context) => {
1120
- return {
1121
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1122
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1123
- };
1124
- };
1125
- const se_ListTagsForResourceInput = (input, context) => {
1126
- return {
1127
- ...(input.Resource != null && { Resource: input.Resource }),
1128
- };
1129
- };
1130
- const se_MetricPolicy = (input, context) => {
1131
- return {
1132
- ...(input.ContainerLevelMetrics != null && { ContainerLevelMetrics: input.ContainerLevelMetrics }),
1133
- ...(input.MetricPolicyRules != null && {
1134
- MetricPolicyRules: se_MetricPolicyRules(input.MetricPolicyRules, context),
1135
- }),
1136
- };
1137
- };
1138
- const se_MetricPolicyRule = (input, context) => {
1139
- return {
1140
- ...(input.ObjectGroup != null && { ObjectGroup: input.ObjectGroup }),
1141
- ...(input.ObjectGroupName != null && { ObjectGroupName: input.ObjectGroupName }),
1142
- };
1143
- };
1144
- const se_MetricPolicyRules = (input, context) => {
1145
- return input
1146
- .filter((e) => e != null)
1147
- .map((entry) => {
1148
- return se_MetricPolicyRule(entry, context);
1149
- });
1150
- };
1151
- const se_PutContainerPolicyInput = (input, context) => {
1152
- return {
1153
- ...(input.ContainerName != null && { ContainerName: input.ContainerName }),
1154
- ...(input.Policy != null && { Policy: input.Policy }),
1155
- };
1156
- };
1157
- const se_PutCorsPolicyInput = (input, context) => {
1158
- return {
1159
- ...(input.ContainerName != null && { ContainerName: input.ContainerName }),
1160
- ...(input.CorsPolicy != null && { CorsPolicy: se_CorsPolicy(input.CorsPolicy, context) }),
1161
- };
1162
- };
1163
- const se_PutLifecyclePolicyInput = (input, context) => {
1164
- return {
1165
- ...(input.ContainerName != null && { ContainerName: input.ContainerName }),
1166
- ...(input.LifecyclePolicy != null && { LifecyclePolicy: input.LifecyclePolicy }),
1167
- };
1168
- };
1169
- const se_PutMetricPolicyInput = (input, context) => {
1170
- return {
1171
- ...(input.ContainerName != null && { ContainerName: input.ContainerName }),
1172
- ...(input.MetricPolicy != null && { MetricPolicy: se_MetricPolicy(input.MetricPolicy, context) }),
1173
- };
1174
- };
1175
- const se_StartAccessLoggingInput = (input, context) => {
1176
- return {
1177
- ...(input.ContainerName != null && { ContainerName: input.ContainerName }),
1178
- };
1179
- };
1180
- const se_StopAccessLoggingInput = (input, context) => {
1181
- return {
1182
- ...(input.ContainerName != null && { ContainerName: input.ContainerName }),
1183
- };
1184
- };
1185
- const se_Tag = (input, context) => {
1186
- return {
1187
- ...(input.Key != null && { Key: input.Key }),
1188
- ...(input.Value != null && { Value: input.Value }),
1189
- };
1190
- };
1191
- const se_TagKeyList = (input, context) => {
1192
- return input
1193
- .filter((e) => e != null)
1194
- .map((entry) => {
1195
- return entry;
1196
- });
1197
- };
1198
- const se_TagList = (input, context) => {
1199
- return input
1200
- .filter((e) => e != null)
1201
- .map((entry) => {
1202
- return se_Tag(entry, context);
1203
- });
1204
- };
1205
- const se_TagResourceInput = (input, context) => {
1206
- return {
1207
- ...(input.Resource != null && { Resource: input.Resource }),
1208
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
1209
- };
1210
- };
1211
- const se_UntagResourceInput = (input, context) => {
1212
- return {
1213
- ...(input.Resource != null && { Resource: input.Resource }),
1214
- ...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
1215
- };
1216
- };
1217
- const de_AllowedHeaders = (output, context) => {
1218
- const retVal = (output || [])
1219
- .filter((e) => e != null)
1220
- .map((entry) => {
1221
- if (entry === null) {
1222
- return null;
1223
- }
1224
- return __expectString(entry);
1225
- });
1226
- return retVal;
1227
- };
1228
- const de_AllowedMethods = (output, context) => {
1229
- const retVal = (output || [])
1230
- .filter((e) => e != null)
1231
- .map((entry) => {
1232
- if (entry === null) {
1233
- return null;
1234
- }
1235
- return __expectString(entry);
1236
- });
1237
- return retVal;
1238
- };
1239
- const de_AllowedOrigins = (output, context) => {
1240
- const retVal = (output || [])
1241
- .filter((e) => e != null)
1242
- .map((entry) => {
1243
- if (entry === null) {
1244
- return null;
1245
- }
1246
- return __expectString(entry);
1247
- });
1248
- return retVal;
1249
- };
1250
998
  const de_Container = (output, context) => {
1251
- return {
1252
- ARN: __expectString(output.ARN),
1253
- AccessLoggingEnabled: __expectBoolean(output.AccessLoggingEnabled),
1254
- CreationTime: output.CreationTime != null
1255
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
1256
- : undefined,
1257
- Endpoint: __expectString(output.Endpoint),
1258
- Name: __expectString(output.Name),
1259
- Status: __expectString(output.Status),
1260
- };
1261
- };
1262
- const de_ContainerInUseException = (output, context) => {
1263
- return {
1264
- Message: __expectString(output.Message),
1265
- };
999
+ return take(output, {
1000
+ ARN: __expectString,
1001
+ AccessLoggingEnabled: __expectBoolean,
1002
+ CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1003
+ Endpoint: __expectString,
1004
+ Name: __expectString,
1005
+ Status: __expectString,
1006
+ });
1266
1007
  };
1267
1008
  const de_ContainerList = (output, context) => {
1268
1009
  const retVal = (output || [])
1269
1010
  .filter((e) => e != null)
1270
1011
  .map((entry) => {
1271
- if (entry === null) {
1272
- return null;
1273
- }
1274
1012
  return de_Container(entry, context);
1275
1013
  });
1276
1014
  return retVal;
1277
1015
  };
1278
- const de_ContainerNotFoundException = (output, context) => {
1279
- return {
1280
- Message: __expectString(output.Message),
1281
- };
1282
- };
1283
- const de_CorsPolicy = (output, context) => {
1284
- const retVal = (output || [])
1285
- .filter((e) => e != null)
1286
- .map((entry) => {
1287
- if (entry === null) {
1288
- return null;
1289
- }
1290
- return de_CorsRule(entry, context);
1291
- });
1292
- return retVal;
1293
- };
1294
- const de_CorsPolicyNotFoundException = (output, context) => {
1295
- return {
1296
- Message: __expectString(output.Message),
1297
- };
1298
- };
1299
- const de_CorsRule = (output, context) => {
1300
- return {
1301
- AllowedHeaders: output.AllowedHeaders != null ? de_AllowedHeaders(output.AllowedHeaders, context) : undefined,
1302
- AllowedMethods: output.AllowedMethods != null ? de_AllowedMethods(output.AllowedMethods, context) : undefined,
1303
- AllowedOrigins: output.AllowedOrigins != null ? de_AllowedOrigins(output.AllowedOrigins, context) : undefined,
1304
- ExposeHeaders: output.ExposeHeaders != null ? de_ExposeHeaders(output.ExposeHeaders, context) : undefined,
1305
- MaxAgeSeconds: __expectInt32(output.MaxAgeSeconds),
1306
- };
1307
- };
1308
1016
  const de_CreateContainerOutput = (output, context) => {
1309
- return {
1310
- Container: output.Container != null ? de_Container(output.Container, context) : undefined,
1311
- };
1312
- };
1313
- const de_DeleteContainerOutput = (output, context) => {
1314
- return {};
1315
- };
1316
- const de_DeleteContainerPolicyOutput = (output, context) => {
1317
- return {};
1318
- };
1319
- const de_DeleteCorsPolicyOutput = (output, context) => {
1320
- return {};
1321
- };
1322
- const de_DeleteLifecyclePolicyOutput = (output, context) => {
1323
- return {};
1324
- };
1325
- const de_DeleteMetricPolicyOutput = (output, context) => {
1326
- return {};
1017
+ return take(output, {
1018
+ Container: (_) => de_Container(_, context),
1019
+ });
1327
1020
  };
1328
1021
  const de_DescribeContainerOutput = (output, context) => {
1329
- return {
1330
- Container: output.Container != null ? de_Container(output.Container, context) : undefined,
1331
- };
1332
- };
1333
- const de_ExposeHeaders = (output, context) => {
1334
- const retVal = (output || [])
1335
- .filter((e) => e != null)
1336
- .map((entry) => {
1337
- if (entry === null) {
1338
- return null;
1339
- }
1340
- return __expectString(entry);
1022
+ return take(output, {
1023
+ Container: (_) => de_Container(_, context),
1341
1024
  });
1342
- return retVal;
1343
- };
1344
- const de_GetContainerPolicyOutput = (output, context) => {
1345
- return {
1346
- Policy: __expectString(output.Policy),
1347
- };
1348
- };
1349
- const de_GetCorsPolicyOutput = (output, context) => {
1350
- return {
1351
- CorsPolicy: output.CorsPolicy != null ? de_CorsPolicy(output.CorsPolicy, context) : undefined,
1352
- };
1353
- };
1354
- const de_GetLifecyclePolicyOutput = (output, context) => {
1355
- return {
1356
- LifecyclePolicy: __expectString(output.LifecyclePolicy),
1357
- };
1358
- };
1359
- const de_GetMetricPolicyOutput = (output, context) => {
1360
- return {
1361
- MetricPolicy: output.MetricPolicy != null ? de_MetricPolicy(output.MetricPolicy, context) : undefined,
1362
- };
1363
- };
1364
- const de_InternalServerError = (output, context) => {
1365
- return {
1366
- Message: __expectString(output.Message),
1367
- };
1368
- };
1369
- const de_LimitExceededException = (output, context) => {
1370
- return {
1371
- Message: __expectString(output.Message),
1372
- };
1373
1025
  };
1374
1026
  const de_ListContainersOutput = (output, context) => {
1375
- return {
1376
- Containers: output.Containers != null ? de_ContainerList(output.Containers, context) : undefined,
1377
- NextToken: __expectString(output.NextToken),
1378
- };
1379
- };
1380
- const de_ListTagsForResourceOutput = (output, context) => {
1381
- return {
1382
- Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
1383
- };
1384
- };
1385
- const de_MetricPolicy = (output, context) => {
1386
- return {
1387
- ContainerLevelMetrics: __expectString(output.ContainerLevelMetrics),
1388
- MetricPolicyRules: output.MetricPolicyRules != null ? de_MetricPolicyRules(output.MetricPolicyRules, context) : undefined,
1389
- };
1390
- };
1391
- const de_MetricPolicyRule = (output, context) => {
1392
- return {
1393
- ObjectGroup: __expectString(output.ObjectGroup),
1394
- ObjectGroupName: __expectString(output.ObjectGroupName),
1395
- };
1396
- };
1397
- const de_MetricPolicyRules = (output, context) => {
1398
- const retVal = (output || [])
1399
- .filter((e) => e != null)
1400
- .map((entry) => {
1401
- if (entry === null) {
1402
- return null;
1403
- }
1404
- return de_MetricPolicyRule(entry, context);
1027
+ return take(output, {
1028
+ Containers: (_) => de_ContainerList(_, context),
1029
+ NextToken: __expectString,
1405
1030
  });
1406
- return retVal;
1407
- };
1408
- const de_PolicyNotFoundException = (output, context) => {
1409
- return {
1410
- Message: __expectString(output.Message),
1411
- };
1412
- };
1413
- const de_PutContainerPolicyOutput = (output, context) => {
1414
- return {};
1415
- };
1416
- const de_PutCorsPolicyOutput = (output, context) => {
1417
- return {};
1418
- };
1419
- const de_PutLifecyclePolicyOutput = (output, context) => {
1420
- return {};
1421
- };
1422
- const de_PutMetricPolicyOutput = (output, context) => {
1423
- return {};
1424
- };
1425
- const de_StartAccessLoggingOutput = (output, context) => {
1426
- return {};
1427
- };
1428
- const de_StopAccessLoggingOutput = (output, context) => {
1429
- return {};
1430
- };
1431
- const de_Tag = (output, context) => {
1432
- return {
1433
- Key: __expectString(output.Key),
1434
- Value: __expectString(output.Value),
1435
- };
1436
- };
1437
- const de_TagList = (output, context) => {
1438
- const retVal = (output || [])
1439
- .filter((e) => e != null)
1440
- .map((entry) => {
1441
- if (entry === null) {
1442
- return null;
1443
- }
1444
- return de_Tag(entry, context);
1445
- });
1446
- return retVal;
1447
- };
1448
- const de_TagResourceOutput = (output, context) => {
1449
- return {};
1450
- };
1451
- const de_UntagResourceOutput = (output, context) => {
1452
- return {};
1453
1031
  };
1454
1032
  const deserializeMetadata = (output) => ({
1455
1033
  httpStatusCode: output.statusCode,
@@ -1464,6 +1042,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
1464
1042
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
1465
1043
  };
1466
1044
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1045
+ const throwDefaultError = withBaseException(__BaseException);
1467
1046
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1468
1047
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1469
1048
  const contents = {