@aws-sdk/client-acm 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,21 +8,21 @@ const models_0_1 = require("../models/models_0");
8
8
  const se_AddTagsToCertificateCommand = async (input, context) => {
9
9
  const headers = sharedHeaders("AddTagsToCertificate");
10
10
  let body;
11
- body = JSON.stringify(se_AddTagsToCertificateRequest(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_AddTagsToCertificateCommand = se_AddTagsToCertificateCommand;
15
15
  const se_DeleteCertificateCommand = async (input, context) => {
16
16
  const headers = sharedHeaders("DeleteCertificate");
17
17
  let body;
18
- body = JSON.stringify(se_DeleteCertificateRequest(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_DeleteCertificateCommand = se_DeleteCertificateCommand;
22
22
  const se_DescribeCertificateCommand = async (input, context) => {
23
23
  const headers = sharedHeaders("DescribeCertificate");
24
24
  let body;
25
- body = JSON.stringify(se_DescribeCertificateRequest(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_DescribeCertificateCommand = se_DescribeCertificateCommand;
@@ -42,7 +42,7 @@ exports.se_GetAccountConfigurationCommand = se_GetAccountConfigurationCommand;
42
42
  const se_GetCertificateCommand = async (input, context) => {
43
43
  const headers = sharedHeaders("GetCertificate");
44
44
  let body;
45
- body = JSON.stringify(se_GetCertificateRequest(input, context));
45
+ body = JSON.stringify((0, smithy_client_1._json)(input));
46
46
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
47
47
  };
48
48
  exports.se_GetCertificateCommand = se_GetCertificateCommand;
@@ -56,56 +56,56 @@ exports.se_ImportCertificateCommand = se_ImportCertificateCommand;
56
56
  const se_ListCertificatesCommand = async (input, context) => {
57
57
  const headers = sharedHeaders("ListCertificates");
58
58
  let body;
59
- body = JSON.stringify(se_ListCertificatesRequest(input, context));
59
+ body = JSON.stringify((0, smithy_client_1._json)(input));
60
60
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
61
61
  };
62
62
  exports.se_ListCertificatesCommand = se_ListCertificatesCommand;
63
63
  const se_ListTagsForCertificateCommand = async (input, context) => {
64
64
  const headers = sharedHeaders("ListTagsForCertificate");
65
65
  let body;
66
- body = JSON.stringify(se_ListTagsForCertificateRequest(input, context));
66
+ body = JSON.stringify((0, smithy_client_1._json)(input));
67
67
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
68
68
  };
69
69
  exports.se_ListTagsForCertificateCommand = se_ListTagsForCertificateCommand;
70
70
  const se_PutAccountConfigurationCommand = async (input, context) => {
71
71
  const headers = sharedHeaders("PutAccountConfiguration");
72
72
  let body;
73
- body = JSON.stringify(se_PutAccountConfigurationRequest(input, context));
73
+ body = JSON.stringify((0, smithy_client_1._json)(input));
74
74
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
75
75
  };
76
76
  exports.se_PutAccountConfigurationCommand = se_PutAccountConfigurationCommand;
77
77
  const se_RemoveTagsFromCertificateCommand = async (input, context) => {
78
78
  const headers = sharedHeaders("RemoveTagsFromCertificate");
79
79
  let body;
80
- body = JSON.stringify(se_RemoveTagsFromCertificateRequest(input, context));
80
+ body = JSON.stringify((0, smithy_client_1._json)(input));
81
81
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
82
82
  };
83
83
  exports.se_RemoveTagsFromCertificateCommand = se_RemoveTagsFromCertificateCommand;
84
84
  const se_RenewCertificateCommand = async (input, context) => {
85
85
  const headers = sharedHeaders("RenewCertificate");
86
86
  let body;
87
- body = JSON.stringify(se_RenewCertificateRequest(input, context));
87
+ body = JSON.stringify((0, smithy_client_1._json)(input));
88
88
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
89
89
  };
90
90
  exports.se_RenewCertificateCommand = se_RenewCertificateCommand;
91
91
  const se_RequestCertificateCommand = async (input, context) => {
92
92
  const headers = sharedHeaders("RequestCertificate");
93
93
  let body;
94
- body = JSON.stringify(se_RequestCertificateRequest(input, context));
94
+ body = JSON.stringify((0, smithy_client_1._json)(input));
95
95
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
96
96
  };
97
97
  exports.se_RequestCertificateCommand = se_RequestCertificateCommand;
98
98
  const se_ResendValidationEmailCommand = async (input, context) => {
99
99
  const headers = sharedHeaders("ResendValidationEmail");
100
100
  let body;
101
- body = JSON.stringify(se_ResendValidationEmailRequest(input, context));
101
+ body = JSON.stringify((0, smithy_client_1._json)(input));
102
102
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
103
103
  };
104
104
  exports.se_ResendValidationEmailCommand = se_ResendValidationEmailCommand;
105
105
  const se_UpdateCertificateOptionsCommand = async (input, context) => {
106
106
  const headers = sharedHeaders("UpdateCertificateOptions");
107
107
  let body;
108
- body = JSON.stringify(se_UpdateCertificateOptionsRequest(input, context));
108
+ body = JSON.stringify((0, smithy_client_1._json)(input));
109
109
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
110
110
  };
111
111
  exports.se_UpdateCertificateOptionsCommand = se_UpdateCertificateOptionsCommand;
@@ -117,7 +117,7 @@ const de_AddTagsToCertificateCommand = async (output, context) => {
117
117
  const response = {
118
118
  $metadata: deserializeMetadata(output),
119
119
  };
120
- return Promise.resolve(response);
120
+ return response;
121
121
  };
122
122
  exports.de_AddTagsToCertificateCommand = de_AddTagsToCertificateCommand;
123
123
  const de_AddTagsToCertificateCommandError = async (output, context) => {
@@ -150,10 +150,9 @@ const de_AddTagsToCertificateCommandError = async (output, context) => {
150
150
  throw await de_TooManyTagsExceptionRes(parsedOutput, context);
151
151
  default:
152
152
  const parsedBody = parsedOutput.body;
153
- (0, smithy_client_1.throwDefaultError)({
153
+ return throwDefaultError({
154
154
  output,
155
155
  parsedBody,
156
- exceptionCtor: ACMServiceException_1.ACMServiceException,
157
156
  errorCode,
158
157
  });
159
158
  }
@@ -166,7 +165,7 @@ const de_DeleteCertificateCommand = async (output, context) => {
166
165
  const response = {
167
166
  $metadata: deserializeMetadata(output),
168
167
  };
169
- return Promise.resolve(response);
168
+ return response;
170
169
  };
171
170
  exports.de_DeleteCertificateCommand = de_DeleteCertificateCommand;
172
171
  const de_DeleteCertificateCommandError = async (output, context) => {
@@ -196,10 +195,9 @@ const de_DeleteCertificateCommandError = async (output, context) => {
196
195
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
197
196
  default:
198
197
  const parsedBody = parsedOutput.body;
199
- (0, smithy_client_1.throwDefaultError)({
198
+ return throwDefaultError({
200
199
  output,
201
200
  parsedBody,
202
- exceptionCtor: ACMServiceException_1.ACMServiceException,
203
201
  errorCode,
204
202
  });
205
203
  }
@@ -215,7 +213,7 @@ const de_DescribeCertificateCommand = async (output, context) => {
215
213
  $metadata: deserializeMetadata(output),
216
214
  ...contents,
217
215
  };
218
- return Promise.resolve(response);
216
+ return response;
219
217
  };
220
218
  exports.de_DescribeCertificateCommand = de_DescribeCertificateCommand;
221
219
  const de_DescribeCertificateCommandError = async (output, context) => {
@@ -233,10 +231,9 @@ const de_DescribeCertificateCommandError = async (output, context) => {
233
231
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
234
232
  default:
235
233
  const parsedBody = parsedOutput.body;
236
- (0, smithy_client_1.throwDefaultError)({
234
+ return throwDefaultError({
237
235
  output,
238
236
  parsedBody,
239
- exceptionCtor: ACMServiceException_1.ACMServiceException,
240
237
  errorCode,
241
238
  });
242
239
  }
@@ -247,12 +244,12 @@ const de_ExportCertificateCommand = async (output, context) => {
247
244
  }
248
245
  const data = await parseBody(output.body, context);
249
246
  let contents = {};
250
- contents = de_ExportCertificateResponse(data, context);
247
+ contents = (0, smithy_client_1._json)(data);
251
248
  const response = {
252
249
  $metadata: deserializeMetadata(output),
253
250
  ...contents,
254
251
  };
255
- return Promise.resolve(response);
252
+ return response;
256
253
  };
257
254
  exports.de_ExportCertificateCommand = de_ExportCertificateCommand;
258
255
  const de_ExportCertificateCommandError = async (output, context) => {
@@ -273,10 +270,9 @@ const de_ExportCertificateCommandError = async (output, context) => {
273
270
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
274
271
  default:
275
272
  const parsedBody = parsedOutput.body;
276
- (0, smithy_client_1.throwDefaultError)({
273
+ return throwDefaultError({
277
274
  output,
278
275
  parsedBody,
279
- exceptionCtor: ACMServiceException_1.ACMServiceException,
280
276
  errorCode,
281
277
  });
282
278
  }
@@ -287,12 +283,12 @@ const de_GetAccountConfigurationCommand = async (output, context) => {
287
283
  }
288
284
  const data = await parseBody(output.body, context);
289
285
  let contents = {};
290
- contents = de_GetAccountConfigurationResponse(data, context);
286
+ contents = (0, smithy_client_1._json)(data);
291
287
  const response = {
292
288
  $metadata: deserializeMetadata(output),
293
289
  ...contents,
294
290
  };
295
- return Promise.resolve(response);
291
+ return response;
296
292
  };
297
293
  exports.de_GetAccountConfigurationCommand = de_GetAccountConfigurationCommand;
298
294
  const de_GetAccountConfigurationCommandError = async (output, context) => {
@@ -310,10 +306,9 @@ const de_GetAccountConfigurationCommandError = async (output, context) => {
310
306
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
311
307
  default:
312
308
  const parsedBody = parsedOutput.body;
313
- (0, smithy_client_1.throwDefaultError)({
309
+ return throwDefaultError({
314
310
  output,
315
311
  parsedBody,
316
- exceptionCtor: ACMServiceException_1.ACMServiceException,
317
312
  errorCode,
318
313
  });
319
314
  }
@@ -324,12 +319,12 @@ const de_GetCertificateCommand = async (output, context) => {
324
319
  }
325
320
  const data = await parseBody(output.body, context);
326
321
  let contents = {};
327
- contents = de_GetCertificateResponse(data, context);
322
+ contents = (0, smithy_client_1._json)(data);
328
323
  const response = {
329
324
  $metadata: deserializeMetadata(output),
330
325
  ...contents,
331
326
  };
332
- return Promise.resolve(response);
327
+ return response;
333
328
  };
334
329
  exports.de_GetCertificateCommand = de_GetCertificateCommand;
335
330
  const de_GetCertificateCommandError = async (output, context) => {
@@ -350,10 +345,9 @@ const de_GetCertificateCommandError = async (output, context) => {
350
345
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
351
346
  default:
352
347
  const parsedBody = parsedOutput.body;
353
- (0, smithy_client_1.throwDefaultError)({
348
+ return throwDefaultError({
354
349
  output,
355
350
  parsedBody,
356
- exceptionCtor: ACMServiceException_1.ACMServiceException,
357
351
  errorCode,
358
352
  });
359
353
  }
@@ -364,12 +358,12 @@ const de_ImportCertificateCommand = async (output, context) => {
364
358
  }
365
359
  const data = await parseBody(output.body, context);
366
360
  let contents = {};
367
- contents = de_ImportCertificateResponse(data, context);
361
+ contents = (0, smithy_client_1._json)(data);
368
362
  const response = {
369
363
  $metadata: deserializeMetadata(output),
370
364
  ...contents,
371
365
  };
372
- return Promise.resolve(response);
366
+ return response;
373
367
  };
374
368
  exports.de_ImportCertificateCommand = de_ImportCertificateCommand;
375
369
  const de_ImportCertificateCommandError = async (output, context) => {
@@ -402,10 +396,9 @@ const de_ImportCertificateCommandError = async (output, context) => {
402
396
  throw await de_TooManyTagsExceptionRes(parsedOutput, context);
403
397
  default:
404
398
  const parsedBody = parsedOutput.body;
405
- (0, smithy_client_1.throwDefaultError)({
399
+ return throwDefaultError({
406
400
  output,
407
401
  parsedBody,
408
- exceptionCtor: ACMServiceException_1.ACMServiceException,
409
402
  errorCode,
410
403
  });
411
404
  }
@@ -421,7 +414,7 @@ const de_ListCertificatesCommand = async (output, context) => {
421
414
  $metadata: deserializeMetadata(output),
422
415
  ...contents,
423
416
  };
424
- return Promise.resolve(response);
417
+ return response;
425
418
  };
426
419
  exports.de_ListCertificatesCommand = de_ListCertificatesCommand;
427
420
  const de_ListCertificatesCommandError = async (output, context) => {
@@ -439,10 +432,9 @@ const de_ListCertificatesCommandError = async (output, context) => {
439
432
  throw await de_ValidationExceptionRes(parsedOutput, context);
440
433
  default:
441
434
  const parsedBody = parsedOutput.body;
442
- (0, smithy_client_1.throwDefaultError)({
435
+ return throwDefaultError({
443
436
  output,
444
437
  parsedBody,
445
- exceptionCtor: ACMServiceException_1.ACMServiceException,
446
438
  errorCode,
447
439
  });
448
440
  }
@@ -453,12 +445,12 @@ const de_ListTagsForCertificateCommand = async (output, context) => {
453
445
  }
454
446
  const data = await parseBody(output.body, context);
455
447
  let contents = {};
456
- contents = de_ListTagsForCertificateResponse(data, context);
448
+ contents = (0, smithy_client_1._json)(data);
457
449
  const response = {
458
450
  $metadata: deserializeMetadata(output),
459
451
  ...contents,
460
452
  };
461
- return Promise.resolve(response);
453
+ return response;
462
454
  };
463
455
  exports.de_ListTagsForCertificateCommand = de_ListTagsForCertificateCommand;
464
456
  const de_ListTagsForCertificateCommandError = async (output, context) => {
@@ -476,10 +468,9 @@ const de_ListTagsForCertificateCommandError = async (output, context) => {
476
468
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
477
469
  default:
478
470
  const parsedBody = parsedOutput.body;
479
- (0, smithy_client_1.throwDefaultError)({
471
+ return throwDefaultError({
480
472
  output,
481
473
  parsedBody,
482
- exceptionCtor: ACMServiceException_1.ACMServiceException,
483
474
  errorCode,
484
475
  });
485
476
  }
@@ -492,7 +483,7 @@ const de_PutAccountConfigurationCommand = async (output, context) => {
492
483
  const response = {
493
484
  $metadata: deserializeMetadata(output),
494
485
  };
495
- return Promise.resolve(response);
486
+ return response;
496
487
  };
497
488
  exports.de_PutAccountConfigurationCommand = de_PutAccountConfigurationCommand;
498
489
  const de_PutAccountConfigurationCommandError = async (output, context) => {
@@ -516,10 +507,9 @@ const de_PutAccountConfigurationCommandError = async (output, context) => {
516
507
  throw await de_ValidationExceptionRes(parsedOutput, context);
517
508
  default:
518
509
  const parsedBody = parsedOutput.body;
519
- (0, smithy_client_1.throwDefaultError)({
510
+ return throwDefaultError({
520
511
  output,
521
512
  parsedBody,
522
- exceptionCtor: ACMServiceException_1.ACMServiceException,
523
513
  errorCode,
524
514
  });
525
515
  }
@@ -532,7 +522,7 @@ const de_RemoveTagsFromCertificateCommand = async (output, context) => {
532
522
  const response = {
533
523
  $metadata: deserializeMetadata(output),
534
524
  };
535
- return Promise.resolve(response);
525
+ return response;
536
526
  };
537
527
  exports.de_RemoveTagsFromCertificateCommand = de_RemoveTagsFromCertificateCommand;
538
528
  const de_RemoveTagsFromCertificateCommandError = async (output, context) => {
@@ -562,10 +552,9 @@ const de_RemoveTagsFromCertificateCommandError = async (output, context) => {
562
552
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
563
553
  default:
564
554
  const parsedBody = parsedOutput.body;
565
- (0, smithy_client_1.throwDefaultError)({
555
+ return throwDefaultError({
566
556
  output,
567
557
  parsedBody,
568
- exceptionCtor: ACMServiceException_1.ACMServiceException,
569
558
  errorCode,
570
559
  });
571
560
  }
@@ -578,7 +567,7 @@ const de_RenewCertificateCommand = async (output, context) => {
578
567
  const response = {
579
568
  $metadata: deserializeMetadata(output),
580
569
  };
581
- return Promise.resolve(response);
570
+ return response;
582
571
  };
583
572
  exports.de_RenewCertificateCommand = de_RenewCertificateCommand;
584
573
  const de_RenewCertificateCommandError = async (output, context) => {
@@ -596,10 +585,9 @@ const de_RenewCertificateCommandError = async (output, context) => {
596
585
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
597
586
  default:
598
587
  const parsedBody = parsedOutput.body;
599
- (0, smithy_client_1.throwDefaultError)({
588
+ return throwDefaultError({
600
589
  output,
601
590
  parsedBody,
602
- exceptionCtor: ACMServiceException_1.ACMServiceException,
603
591
  errorCode,
604
592
  });
605
593
  }
@@ -610,12 +598,12 @@ const de_RequestCertificateCommand = async (output, context) => {
610
598
  }
611
599
  const data = await parseBody(output.body, context);
612
600
  let contents = {};
613
- contents = de_RequestCertificateResponse(data, context);
601
+ contents = (0, smithy_client_1._json)(data);
614
602
  const response = {
615
603
  $metadata: deserializeMetadata(output),
616
604
  ...contents,
617
605
  };
618
- return Promise.resolve(response);
606
+ return response;
619
607
  };
620
608
  exports.de_RequestCertificateCommand = de_RequestCertificateCommand;
621
609
  const de_RequestCertificateCommandError = async (output, context) => {
@@ -648,10 +636,9 @@ const de_RequestCertificateCommandError = async (output, context) => {
648
636
  throw await de_TooManyTagsExceptionRes(parsedOutput, context);
649
637
  default:
650
638
  const parsedBody = parsedOutput.body;
651
- (0, smithy_client_1.throwDefaultError)({
639
+ return throwDefaultError({
652
640
  output,
653
641
  parsedBody,
654
- exceptionCtor: ACMServiceException_1.ACMServiceException,
655
642
  errorCode,
656
643
  });
657
644
  }
@@ -664,7 +651,7 @@ const de_ResendValidationEmailCommand = async (output, context) => {
664
651
  const response = {
665
652
  $metadata: deserializeMetadata(output),
666
653
  };
667
- return Promise.resolve(response);
654
+ return response;
668
655
  };
669
656
  exports.de_ResendValidationEmailCommand = de_ResendValidationEmailCommand;
670
657
  const de_ResendValidationEmailCommandError = async (output, context) => {
@@ -688,10 +675,9 @@ const de_ResendValidationEmailCommandError = async (output, context) => {
688
675
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
689
676
  default:
690
677
  const parsedBody = parsedOutput.body;
691
- (0, smithy_client_1.throwDefaultError)({
678
+ return throwDefaultError({
692
679
  output,
693
680
  parsedBody,
694
- exceptionCtor: ACMServiceException_1.ACMServiceException,
695
681
  errorCode,
696
682
  });
697
683
  }
@@ -704,7 +690,7 @@ const de_UpdateCertificateOptionsCommand = async (output, context) => {
704
690
  const response = {
705
691
  $metadata: deserializeMetadata(output),
706
692
  };
707
- return Promise.resolve(response);
693
+ return response;
708
694
  };
709
695
  exports.de_UpdateCertificateOptionsCommand = de_UpdateCertificateOptionsCommand;
710
696
  const de_UpdateCertificateOptionsCommandError = async (output, context) => {
@@ -728,17 +714,16 @@ const de_UpdateCertificateOptionsCommandError = async (output, context) => {
728
714
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
729
715
  default:
730
716
  const parsedBody = parsedOutput.body;
731
- (0, smithy_client_1.throwDefaultError)({
717
+ return throwDefaultError({
732
718
  output,
733
719
  parsedBody,
734
- exceptionCtor: ACMServiceException_1.ACMServiceException,
735
720
  errorCode,
736
721
  });
737
722
  }
738
723
  };
739
724
  const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
740
725
  const body = parsedOutput.body;
741
- const deserialized = de_AccessDeniedException(body, context);
726
+ const deserialized = (0, smithy_client_1._json)(body);
742
727
  const exception = new models_0_1.AccessDeniedException({
743
728
  $metadata: deserializeMetadata(parsedOutput),
744
729
  ...deserialized,
@@ -747,7 +732,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
747
732
  };
748
733
  const de_ConflictExceptionRes = async (parsedOutput, context) => {
749
734
  const body = parsedOutput.body;
750
- const deserialized = de_ConflictException(body, context);
735
+ const deserialized = (0, smithy_client_1._json)(body);
751
736
  const exception = new models_0_1.ConflictException({
752
737
  $metadata: deserializeMetadata(parsedOutput),
753
738
  ...deserialized,
@@ -756,7 +741,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
756
741
  };
757
742
  const de_InvalidArgsExceptionRes = async (parsedOutput, context) => {
758
743
  const body = parsedOutput.body;
759
- const deserialized = de_InvalidArgsException(body, context);
744
+ const deserialized = (0, smithy_client_1._json)(body);
760
745
  const exception = new models_0_1.InvalidArgsException({
761
746
  $metadata: deserializeMetadata(parsedOutput),
762
747
  ...deserialized,
@@ -765,7 +750,7 @@ const de_InvalidArgsExceptionRes = async (parsedOutput, context) => {
765
750
  };
766
751
  const de_InvalidArnExceptionRes = async (parsedOutput, context) => {
767
752
  const body = parsedOutput.body;
768
- const deserialized = de_InvalidArnException(body, context);
753
+ const deserialized = (0, smithy_client_1._json)(body);
769
754
  const exception = new models_0_1.InvalidArnException({
770
755
  $metadata: deserializeMetadata(parsedOutput),
771
756
  ...deserialized,
@@ -774,7 +759,7 @@ const de_InvalidArnExceptionRes = async (parsedOutput, context) => {
774
759
  };
775
760
  const de_InvalidDomainValidationOptionsExceptionRes = async (parsedOutput, context) => {
776
761
  const body = parsedOutput.body;
777
- const deserialized = de_InvalidDomainValidationOptionsException(body, context);
762
+ const deserialized = (0, smithy_client_1._json)(body);
778
763
  const exception = new models_0_1.InvalidDomainValidationOptionsException({
779
764
  $metadata: deserializeMetadata(parsedOutput),
780
765
  ...deserialized,
@@ -783,7 +768,7 @@ const de_InvalidDomainValidationOptionsExceptionRes = async (parsedOutput, conte
783
768
  };
784
769
  const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
785
770
  const body = parsedOutput.body;
786
- const deserialized = de_InvalidParameterException(body, context);
771
+ const deserialized = (0, smithy_client_1._json)(body);
787
772
  const exception = new models_0_1.InvalidParameterException({
788
773
  $metadata: deserializeMetadata(parsedOutput),
789
774
  ...deserialized,
@@ -792,7 +777,7 @@ const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
792
777
  };
793
778
  const de_InvalidStateExceptionRes = async (parsedOutput, context) => {
794
779
  const body = parsedOutput.body;
795
- const deserialized = de_InvalidStateException(body, context);
780
+ const deserialized = (0, smithy_client_1._json)(body);
796
781
  const exception = new models_0_1.InvalidStateException({
797
782
  $metadata: deserializeMetadata(parsedOutput),
798
783
  ...deserialized,
@@ -801,7 +786,7 @@ const de_InvalidStateExceptionRes = async (parsedOutput, context) => {
801
786
  };
802
787
  const de_InvalidTagExceptionRes = async (parsedOutput, context) => {
803
788
  const body = parsedOutput.body;
804
- const deserialized = de_InvalidTagException(body, context);
789
+ const deserialized = (0, smithy_client_1._json)(body);
805
790
  const exception = new models_0_1.InvalidTagException({
806
791
  $metadata: deserializeMetadata(parsedOutput),
807
792
  ...deserialized,
@@ -810,7 +795,7 @@ const de_InvalidTagExceptionRes = async (parsedOutput, context) => {
810
795
  };
811
796
  const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
812
797
  const body = parsedOutput.body;
813
- const deserialized = de_LimitExceededException(body, context);
798
+ const deserialized = (0, smithy_client_1._json)(body);
814
799
  const exception = new models_0_1.LimitExceededException({
815
800
  $metadata: deserializeMetadata(parsedOutput),
816
801
  ...deserialized,
@@ -819,7 +804,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
819
804
  };
820
805
  const de_RequestInProgressExceptionRes = async (parsedOutput, context) => {
821
806
  const body = parsedOutput.body;
822
- const deserialized = de_RequestInProgressException(body, context);
807
+ const deserialized = (0, smithy_client_1._json)(body);
823
808
  const exception = new models_0_1.RequestInProgressException({
824
809
  $metadata: deserializeMetadata(parsedOutput),
825
810
  ...deserialized,
@@ -828,7 +813,7 @@ const de_RequestInProgressExceptionRes = async (parsedOutput, context) => {
828
813
  };
829
814
  const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
830
815
  const body = parsedOutput.body;
831
- const deserialized = de_ResourceInUseException(body, context);
816
+ const deserialized = (0, smithy_client_1._json)(body);
832
817
  const exception = new models_0_1.ResourceInUseException({
833
818
  $metadata: deserializeMetadata(parsedOutput),
834
819
  ...deserialized,
@@ -837,7 +822,7 @@ const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
837
822
  };
838
823
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
839
824
  const body = parsedOutput.body;
840
- const deserialized = de_ResourceNotFoundException(body, context);
825
+ const deserialized = (0, smithy_client_1._json)(body);
841
826
  const exception = new models_0_1.ResourceNotFoundException({
842
827
  $metadata: deserializeMetadata(parsedOutput),
843
828
  ...deserialized,
@@ -846,7 +831,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
846
831
  };
847
832
  const de_TagPolicyExceptionRes = async (parsedOutput, context) => {
848
833
  const body = parsedOutput.body;
849
- const deserialized = de_TagPolicyException(body, context);
834
+ const deserialized = (0, smithy_client_1._json)(body);
850
835
  const exception = new models_0_1.TagPolicyException({
851
836
  $metadata: deserializeMetadata(parsedOutput),
852
837
  ...deserialized,
@@ -855,7 +840,7 @@ const de_TagPolicyExceptionRes = async (parsedOutput, context) => {
855
840
  };
856
841
  const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
857
842
  const body = parsedOutput.body;
858
- const deserialized = de_ThrottlingException(body, context);
843
+ const deserialized = (0, smithy_client_1._json)(body);
859
844
  const exception = new models_0_1.ThrottlingException({
860
845
  $metadata: deserializeMetadata(parsedOutput),
861
846
  ...deserialized,
@@ -864,7 +849,7 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
864
849
  };
865
850
  const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
866
851
  const body = parsedOutput.body;
867
- const deserialized = de_TooManyTagsException(body, context);
852
+ const deserialized = (0, smithy_client_1._json)(body);
868
853
  const exception = new models_0_1.TooManyTagsException({
869
854
  $metadata: deserializeMetadata(parsedOutput),
870
855
  ...deserialized,
@@ -873,540 +858,106 @@ const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
873
858
  };
874
859
  const de_ValidationExceptionRes = async (parsedOutput, context) => {
875
860
  const body = parsedOutput.body;
876
- const deserialized = de_ValidationException(body, context);
861
+ const deserialized = (0, smithy_client_1._json)(body);
877
862
  const exception = new models_0_1.ValidationException({
878
863
  $metadata: deserializeMetadata(parsedOutput),
879
864
  ...deserialized,
880
865
  });
881
866
  return (0, smithy_client_1.decorateServiceException)(exception, body);
882
867
  };
883
- const se_AddTagsToCertificateRequest = (input, context) => {
884
- return {
885
- ...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
886
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
887
- };
888
- };
889
- const se_CertificateOptions = (input, context) => {
890
- return {
891
- ...(input.CertificateTransparencyLoggingPreference != null && {
892
- CertificateTransparencyLoggingPreference: input.CertificateTransparencyLoggingPreference,
893
- }),
894
- };
895
- };
896
- const se_CertificateStatuses = (input, context) => {
897
- return input
898
- .filter((e) => e != null)
899
- .map((entry) => {
900
- return entry;
901
- });
902
- };
903
- const se_DeleteCertificateRequest = (input, context) => {
904
- return {
905
- ...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
906
- };
907
- };
908
- const se_DescribeCertificateRequest = (input, context) => {
909
- return {
910
- ...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
911
- };
912
- };
913
- const se_DomainList = (input, context) => {
914
- return input
915
- .filter((e) => e != null)
916
- .map((entry) => {
917
- return entry;
918
- });
919
- };
920
- const se_DomainValidationOption = (input, context) => {
921
- return {
922
- ...(input.DomainName != null && { DomainName: input.DomainName }),
923
- ...(input.ValidationDomain != null && { ValidationDomain: input.ValidationDomain }),
924
- };
925
- };
926
- const se_DomainValidationOptionList = (input, context) => {
927
- return input
928
- .filter((e) => e != null)
929
- .map((entry) => {
930
- return se_DomainValidationOption(entry, context);
931
- });
932
- };
933
- const se_ExpiryEventsConfiguration = (input, context) => {
934
- return {
935
- ...(input.DaysBeforeExpiry != null && { DaysBeforeExpiry: input.DaysBeforeExpiry }),
936
- };
937
- };
938
868
  const se_ExportCertificateRequest = (input, context) => {
939
- return {
940
- ...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
941
- ...(input.Passphrase != null && { Passphrase: context.base64Encoder(input.Passphrase) }),
942
- };
943
- };
944
- const se_ExtendedKeyUsageFilterList = (input, context) => {
945
- return input
946
- .filter((e) => e != null)
947
- .map((entry) => {
948
- return entry;
869
+ return (0, smithy_client_1.take)(input, {
870
+ CertificateArn: [],
871
+ Passphrase: context.base64Encoder,
949
872
  });
950
873
  };
951
- const se_Filters = (input, context) => {
952
- return {
953
- ...(input.extendedKeyUsage != null && {
954
- extendedKeyUsage: se_ExtendedKeyUsageFilterList(input.extendedKeyUsage, context),
955
- }),
956
- ...(input.keyTypes != null && { keyTypes: se_KeyAlgorithmList(input.keyTypes, context) }),
957
- ...(input.keyUsage != null && { keyUsage: se_KeyUsageFilterList(input.keyUsage, context) }),
958
- };
959
- };
960
- const se_GetCertificateRequest = (input, context) => {
961
- return {
962
- ...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
963
- };
964
- };
965
874
  const se_ImportCertificateRequest = (input, context) => {
966
- return {
967
- ...(input.Certificate != null && { Certificate: context.base64Encoder(input.Certificate) }),
968
- ...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
969
- ...(input.CertificateChain != null && { CertificateChain: context.base64Encoder(input.CertificateChain) }),
970
- ...(input.PrivateKey != null && { PrivateKey: context.base64Encoder(input.PrivateKey) }),
971
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
972
- };
973
- };
974
- const se_KeyAlgorithmList = (input, context) => {
975
- return input
976
- .filter((e) => e != null)
977
- .map((entry) => {
978
- return entry;
979
- });
980
- };
981
- const se_KeyUsageFilterList = (input, context) => {
982
- return input
983
- .filter((e) => e != null)
984
- .map((entry) => {
985
- return entry;
986
- });
987
- };
988
- const se_ListCertificatesRequest = (input, context) => {
989
- return {
990
- ...(input.CertificateStatuses != null && {
991
- CertificateStatuses: se_CertificateStatuses(input.CertificateStatuses, context),
992
- }),
993
- ...(input.Includes != null && { Includes: se_Filters(input.Includes, context) }),
994
- ...(input.MaxItems != null && { MaxItems: input.MaxItems }),
995
- ...(input.NextToken != null && { NextToken: input.NextToken }),
996
- ...(input.SortBy != null && { SortBy: input.SortBy }),
997
- ...(input.SortOrder != null && { SortOrder: input.SortOrder }),
998
- };
999
- };
1000
- const se_ListTagsForCertificateRequest = (input, context) => {
1001
- return {
1002
- ...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
1003
- };
1004
- };
1005
- const se_PutAccountConfigurationRequest = (input, context) => {
1006
- return {
1007
- ...(input.ExpiryEvents != null && { ExpiryEvents: se_ExpiryEventsConfiguration(input.ExpiryEvents, context) }),
1008
- ...(input.IdempotencyToken != null && { IdempotencyToken: input.IdempotencyToken }),
1009
- };
1010
- };
1011
- const se_RemoveTagsFromCertificateRequest = (input, context) => {
1012
- return {
1013
- ...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
1014
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
1015
- };
1016
- };
1017
- const se_RenewCertificateRequest = (input, context) => {
1018
- return {
1019
- ...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
1020
- };
1021
- };
1022
- const se_RequestCertificateRequest = (input, context) => {
1023
- return {
1024
- ...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
1025
- ...(input.DomainName != null && { DomainName: input.DomainName }),
1026
- ...(input.DomainValidationOptions != null && {
1027
- DomainValidationOptions: se_DomainValidationOptionList(input.DomainValidationOptions, context),
1028
- }),
1029
- ...(input.IdempotencyToken != null && { IdempotencyToken: input.IdempotencyToken }),
1030
- ...(input.KeyAlgorithm != null && { KeyAlgorithm: input.KeyAlgorithm }),
1031
- ...(input.Options != null && { Options: se_CertificateOptions(input.Options, context) }),
1032
- ...(input.SubjectAlternativeNames != null && {
1033
- SubjectAlternativeNames: se_DomainList(input.SubjectAlternativeNames, context),
1034
- }),
1035
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
1036
- ...(input.ValidationMethod != null && { ValidationMethod: input.ValidationMethod }),
1037
- };
1038
- };
1039
- const se_ResendValidationEmailRequest = (input, context) => {
1040
- return {
1041
- ...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
1042
- ...(input.Domain != null && { Domain: input.Domain }),
1043
- ...(input.ValidationDomain != null && { ValidationDomain: input.ValidationDomain }),
1044
- };
1045
- };
1046
- const se_Tag = (input, context) => {
1047
- return {
1048
- ...(input.Key != null && { Key: input.Key }),
1049
- ...(input.Value != null && { Value: input.Value }),
1050
- };
1051
- };
1052
- const se_TagList = (input, context) => {
1053
- return input
1054
- .filter((e) => e != null)
1055
- .map((entry) => {
1056
- return se_Tag(entry, context);
875
+ return (0, smithy_client_1.take)(input, {
876
+ Certificate: context.base64Encoder,
877
+ CertificateArn: [],
878
+ CertificateChain: context.base64Encoder,
879
+ PrivateKey: context.base64Encoder,
880
+ Tags: smithy_client_1._json,
1057
881
  });
1058
882
  };
1059
- const se_UpdateCertificateOptionsRequest = (input, context) => {
1060
- return {
1061
- ...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
1062
- ...(input.Options != null && { Options: se_CertificateOptions(input.Options, context) }),
1063
- };
1064
- };
1065
- const de_AccessDeniedException = (output, context) => {
1066
- return {
1067
- Message: (0, smithy_client_1.expectString)(output.Message),
1068
- };
1069
- };
1070
883
  const de_CertificateDetail = (output, context) => {
1071
- return {
1072
- CertificateArn: (0, smithy_client_1.expectString)(output.CertificateArn),
1073
- CertificateAuthorityArn: (0, smithy_client_1.expectString)(output.CertificateAuthorityArn),
1074
- CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
1075
- DomainName: (0, smithy_client_1.expectString)(output.DomainName),
1076
- DomainValidationOptions: output.DomainValidationOptions != null
1077
- ? de_DomainValidationList(output.DomainValidationOptions, context)
1078
- : undefined,
1079
- ExtendedKeyUsages: output.ExtendedKeyUsages != null ? de_ExtendedKeyUsageList(output.ExtendedKeyUsages, context) : undefined,
1080
- FailureReason: (0, smithy_client_1.expectString)(output.FailureReason),
1081
- ImportedAt: output.ImportedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ImportedAt))) : undefined,
1082
- InUseBy: output.InUseBy != null ? de_InUseList(output.InUseBy, context) : undefined,
1083
- IssuedAt: output.IssuedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.IssuedAt))) : undefined,
1084
- Issuer: (0, smithy_client_1.expectString)(output.Issuer),
1085
- KeyAlgorithm: (0, smithy_client_1.expectString)(output.KeyAlgorithm),
1086
- KeyUsages: output.KeyUsages != null ? de_KeyUsageList(output.KeyUsages, context) : undefined,
1087
- NotAfter: output.NotAfter != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.NotAfter))) : undefined,
1088
- NotBefore: output.NotBefore != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.NotBefore))) : undefined,
1089
- Options: output.Options != null ? de_CertificateOptions(output.Options, context) : undefined,
1090
- RenewalEligibility: (0, smithy_client_1.expectString)(output.RenewalEligibility),
1091
- RenewalSummary: output.RenewalSummary != null ? de_RenewalSummary(output.RenewalSummary, context) : undefined,
1092
- RevocationReason: (0, smithy_client_1.expectString)(output.RevocationReason),
1093
- RevokedAt: output.RevokedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.RevokedAt))) : undefined,
1094
- Serial: (0, smithy_client_1.expectString)(output.Serial),
1095
- SignatureAlgorithm: (0, smithy_client_1.expectString)(output.SignatureAlgorithm),
1096
- Status: (0, smithy_client_1.expectString)(output.Status),
1097
- Subject: (0, smithy_client_1.expectString)(output.Subject),
1098
- SubjectAlternativeNames: output.SubjectAlternativeNames != null ? de_DomainList(output.SubjectAlternativeNames, context) : undefined,
1099
- Type: (0, smithy_client_1.expectString)(output.Type),
1100
- };
1101
- };
1102
- const de_CertificateOptions = (output, context) => {
1103
- return {
1104
- CertificateTransparencyLoggingPreference: (0, smithy_client_1.expectString)(output.CertificateTransparencyLoggingPreference),
1105
- };
884
+ return (0, smithy_client_1.take)(output, {
885
+ CertificateArn: smithy_client_1.expectString,
886
+ CertificateAuthorityArn: smithy_client_1.expectString,
887
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
888
+ DomainName: smithy_client_1.expectString,
889
+ DomainValidationOptions: smithy_client_1._json,
890
+ ExtendedKeyUsages: smithy_client_1._json,
891
+ FailureReason: smithy_client_1.expectString,
892
+ ImportedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
893
+ InUseBy: smithy_client_1._json,
894
+ IssuedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
895
+ Issuer: smithy_client_1.expectString,
896
+ KeyAlgorithm: smithy_client_1.expectString,
897
+ KeyUsages: smithy_client_1._json,
898
+ NotAfter: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
899
+ NotBefore: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
900
+ Options: smithy_client_1._json,
901
+ RenewalEligibility: smithy_client_1.expectString,
902
+ RenewalSummary: (_) => de_RenewalSummary(_, context),
903
+ RevocationReason: smithy_client_1.expectString,
904
+ RevokedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
905
+ Serial: smithy_client_1.expectString,
906
+ SignatureAlgorithm: smithy_client_1.expectString,
907
+ Status: smithy_client_1.expectString,
908
+ Subject: smithy_client_1.expectString,
909
+ SubjectAlternativeNames: smithy_client_1._json,
910
+ Type: smithy_client_1.expectString,
911
+ });
1106
912
  };
1107
913
  const de_CertificateSummary = (output, context) => {
1108
- return {
1109
- CertificateArn: (0, smithy_client_1.expectString)(output.CertificateArn),
1110
- CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
1111
- DomainName: (0, smithy_client_1.expectString)(output.DomainName),
1112
- Exported: (0, smithy_client_1.expectBoolean)(output.Exported),
1113
- ExtendedKeyUsages: output.ExtendedKeyUsages != null ? de_ExtendedKeyUsageNames(output.ExtendedKeyUsages, context) : undefined,
1114
- HasAdditionalSubjectAlternativeNames: (0, smithy_client_1.expectBoolean)(output.HasAdditionalSubjectAlternativeNames),
1115
- ImportedAt: output.ImportedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ImportedAt))) : undefined,
1116
- InUse: (0, smithy_client_1.expectBoolean)(output.InUse),
1117
- IssuedAt: output.IssuedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.IssuedAt))) : undefined,
1118
- KeyAlgorithm: (0, smithy_client_1.expectString)(output.KeyAlgorithm),
1119
- KeyUsages: output.KeyUsages != null ? de_KeyUsageNames(output.KeyUsages, context) : undefined,
1120
- NotAfter: output.NotAfter != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.NotAfter))) : undefined,
1121
- NotBefore: output.NotBefore != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.NotBefore))) : undefined,
1122
- RenewalEligibility: (0, smithy_client_1.expectString)(output.RenewalEligibility),
1123
- RevokedAt: output.RevokedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.RevokedAt))) : undefined,
1124
- Status: (0, smithy_client_1.expectString)(output.Status),
1125
- SubjectAlternativeNameSummaries: output.SubjectAlternativeNameSummaries != null
1126
- ? de_DomainList(output.SubjectAlternativeNameSummaries, context)
1127
- : undefined,
1128
- Type: (0, smithy_client_1.expectString)(output.Type),
1129
- };
914
+ return (0, smithy_client_1.take)(output, {
915
+ CertificateArn: smithy_client_1.expectString,
916
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
917
+ DomainName: smithy_client_1.expectString,
918
+ Exported: smithy_client_1.expectBoolean,
919
+ ExtendedKeyUsages: smithy_client_1._json,
920
+ HasAdditionalSubjectAlternativeNames: smithy_client_1.expectBoolean,
921
+ ImportedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
922
+ InUse: smithy_client_1.expectBoolean,
923
+ IssuedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
924
+ KeyAlgorithm: smithy_client_1.expectString,
925
+ KeyUsages: smithy_client_1._json,
926
+ NotAfter: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
927
+ NotBefore: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
928
+ RenewalEligibility: smithy_client_1.expectString,
929
+ RevokedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
930
+ Status: smithy_client_1.expectString,
931
+ SubjectAlternativeNameSummaries: smithy_client_1._json,
932
+ Type: smithy_client_1.expectString,
933
+ });
1130
934
  };
1131
935
  const de_CertificateSummaryList = (output, context) => {
1132
936
  const retVal = (output || [])
1133
937
  .filter((e) => e != null)
1134
938
  .map((entry) => {
1135
- if (entry === null) {
1136
- return null;
1137
- }
1138
939
  return de_CertificateSummary(entry, context);
1139
940
  });
1140
941
  return retVal;
1141
942
  };
1142
- const de_ConflictException = (output, context) => {
1143
- return {
1144
- message: (0, smithy_client_1.expectString)(output.message),
1145
- };
1146
- };
1147
943
  const de_DescribeCertificateResponse = (output, context) => {
1148
- return {
1149
- Certificate: output.Certificate != null ? de_CertificateDetail(output.Certificate, context) : undefined,
1150
- };
1151
- };
1152
- const de_DomainList = (output, context) => {
1153
- const retVal = (output || [])
1154
- .filter((e) => e != null)
1155
- .map((entry) => {
1156
- if (entry === null) {
1157
- return null;
1158
- }
1159
- return (0, smithy_client_1.expectString)(entry);
1160
- });
1161
- return retVal;
1162
- };
1163
- const de_DomainValidation = (output, context) => {
1164
- return {
1165
- DomainName: (0, smithy_client_1.expectString)(output.DomainName),
1166
- ResourceRecord: output.ResourceRecord != null ? de_ResourceRecord(output.ResourceRecord, context) : undefined,
1167
- ValidationDomain: (0, smithy_client_1.expectString)(output.ValidationDomain),
1168
- ValidationEmails: output.ValidationEmails != null ? de_ValidationEmailList(output.ValidationEmails, context) : undefined,
1169
- ValidationMethod: (0, smithy_client_1.expectString)(output.ValidationMethod),
1170
- ValidationStatus: (0, smithy_client_1.expectString)(output.ValidationStatus),
1171
- };
1172
- };
1173
- const de_DomainValidationList = (output, context) => {
1174
- const retVal = (output || [])
1175
- .filter((e) => e != null)
1176
- .map((entry) => {
1177
- if (entry === null) {
1178
- return null;
1179
- }
1180
- return de_DomainValidation(entry, context);
944
+ return (0, smithy_client_1.take)(output, {
945
+ Certificate: (_) => de_CertificateDetail(_, context),
1181
946
  });
1182
- return retVal;
1183
- };
1184
- const de_ExpiryEventsConfiguration = (output, context) => {
1185
- return {
1186
- DaysBeforeExpiry: (0, smithy_client_1.expectInt32)(output.DaysBeforeExpiry),
1187
- };
1188
- };
1189
- const de_ExportCertificateResponse = (output, context) => {
1190
- return {
1191
- Certificate: (0, smithy_client_1.expectString)(output.Certificate),
1192
- CertificateChain: (0, smithy_client_1.expectString)(output.CertificateChain),
1193
- PrivateKey: (0, smithy_client_1.expectString)(output.PrivateKey),
1194
- };
1195
- };
1196
- const de_ExtendedKeyUsage = (output, context) => {
1197
- return {
1198
- Name: (0, smithy_client_1.expectString)(output.Name),
1199
- OID: (0, smithy_client_1.expectString)(output.OID),
1200
- };
1201
- };
1202
- const de_ExtendedKeyUsageList = (output, context) => {
1203
- const retVal = (output || [])
1204
- .filter((e) => e != null)
1205
- .map((entry) => {
1206
- if (entry === null) {
1207
- return null;
1208
- }
1209
- return de_ExtendedKeyUsage(entry, context);
1210
- });
1211
- return retVal;
1212
- };
1213
- const de_ExtendedKeyUsageNames = (output, context) => {
1214
- const retVal = (output || [])
1215
- .filter((e) => e != null)
1216
- .map((entry) => {
1217
- if (entry === null) {
1218
- return null;
1219
- }
1220
- return (0, smithy_client_1.expectString)(entry);
1221
- });
1222
- return retVal;
1223
- };
1224
- const de_GetAccountConfigurationResponse = (output, context) => {
1225
- return {
1226
- ExpiryEvents: output.ExpiryEvents != null ? de_ExpiryEventsConfiguration(output.ExpiryEvents, context) : undefined,
1227
- };
1228
- };
1229
- const de_GetCertificateResponse = (output, context) => {
1230
- return {
1231
- Certificate: (0, smithy_client_1.expectString)(output.Certificate),
1232
- CertificateChain: (0, smithy_client_1.expectString)(output.CertificateChain),
1233
- };
1234
- };
1235
- const de_ImportCertificateResponse = (output, context) => {
1236
- return {
1237
- CertificateArn: (0, smithy_client_1.expectString)(output.CertificateArn),
1238
- };
1239
- };
1240
- const de_InUseList = (output, context) => {
1241
- const retVal = (output || [])
1242
- .filter((e) => e != null)
1243
- .map((entry) => {
1244
- if (entry === null) {
1245
- return null;
1246
- }
1247
- return (0, smithy_client_1.expectString)(entry);
1248
- });
1249
- return retVal;
1250
- };
1251
- const de_InvalidArgsException = (output, context) => {
1252
- return {
1253
- message: (0, smithy_client_1.expectString)(output.message),
1254
- };
1255
- };
1256
- const de_InvalidArnException = (output, context) => {
1257
- return {
1258
- message: (0, smithy_client_1.expectString)(output.message),
1259
- };
1260
- };
1261
- const de_InvalidDomainValidationOptionsException = (output, context) => {
1262
- return {
1263
- message: (0, smithy_client_1.expectString)(output.message),
1264
- };
1265
- };
1266
- const de_InvalidParameterException = (output, context) => {
1267
- return {
1268
- message: (0, smithy_client_1.expectString)(output.message),
1269
- };
1270
- };
1271
- const de_InvalidStateException = (output, context) => {
1272
- return {
1273
- message: (0, smithy_client_1.expectString)(output.message),
1274
- };
1275
- };
1276
- const de_InvalidTagException = (output, context) => {
1277
- return {
1278
- message: (0, smithy_client_1.expectString)(output.message),
1279
- };
1280
- };
1281
- const de_KeyUsage = (output, context) => {
1282
- return {
1283
- Name: (0, smithy_client_1.expectString)(output.Name),
1284
- };
1285
- };
1286
- const de_KeyUsageList = (output, context) => {
1287
- const retVal = (output || [])
1288
- .filter((e) => e != null)
1289
- .map((entry) => {
1290
- if (entry === null) {
1291
- return null;
1292
- }
1293
- return de_KeyUsage(entry, context);
1294
- });
1295
- return retVal;
1296
- };
1297
- const de_KeyUsageNames = (output, context) => {
1298
- const retVal = (output || [])
1299
- .filter((e) => e != null)
1300
- .map((entry) => {
1301
- if (entry === null) {
1302
- return null;
1303
- }
1304
- return (0, smithy_client_1.expectString)(entry);
1305
- });
1306
- return retVal;
1307
- };
1308
- const de_LimitExceededException = (output, context) => {
1309
- return {
1310
- message: (0, smithy_client_1.expectString)(output.message),
1311
- };
1312
947
  };
1313
948
  const de_ListCertificatesResponse = (output, context) => {
1314
- return {
1315
- CertificateSummaryList: output.CertificateSummaryList != null
1316
- ? de_CertificateSummaryList(output.CertificateSummaryList, context)
1317
- : undefined,
1318
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1319
- };
1320
- };
1321
- const de_ListTagsForCertificateResponse = (output, context) => {
1322
- return {
1323
- Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
1324
- };
1325
- };
1326
- const de_RenewalSummary = (output, context) => {
1327
- return {
1328
- DomainValidationOptions: output.DomainValidationOptions != null
1329
- ? de_DomainValidationList(output.DomainValidationOptions, context)
1330
- : undefined,
1331
- RenewalStatus: (0, smithy_client_1.expectString)(output.RenewalStatus),
1332
- RenewalStatusReason: (0, smithy_client_1.expectString)(output.RenewalStatusReason),
1333
- UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
1334
- };
1335
- };
1336
- const de_RequestCertificateResponse = (output, context) => {
1337
- return {
1338
- CertificateArn: (0, smithy_client_1.expectString)(output.CertificateArn),
1339
- };
1340
- };
1341
- const de_RequestInProgressException = (output, context) => {
1342
- return {
1343
- message: (0, smithy_client_1.expectString)(output.message),
1344
- };
1345
- };
1346
- const de_ResourceInUseException = (output, context) => {
1347
- return {
1348
- message: (0, smithy_client_1.expectString)(output.message),
1349
- };
1350
- };
1351
- const de_ResourceNotFoundException = (output, context) => {
1352
- return {
1353
- message: (0, smithy_client_1.expectString)(output.message),
1354
- };
1355
- };
1356
- const de_ResourceRecord = (output, context) => {
1357
- return {
1358
- Name: (0, smithy_client_1.expectString)(output.Name),
1359
- Type: (0, smithy_client_1.expectString)(output.Type),
1360
- Value: (0, smithy_client_1.expectString)(output.Value),
1361
- };
1362
- };
1363
- const de_Tag = (output, context) => {
1364
- return {
1365
- Key: (0, smithy_client_1.expectString)(output.Key),
1366
- Value: (0, smithy_client_1.expectString)(output.Value),
1367
- };
1368
- };
1369
- const de_TagList = (output, context) => {
1370
- const retVal = (output || [])
1371
- .filter((e) => e != null)
1372
- .map((entry) => {
1373
- if (entry === null) {
1374
- return null;
1375
- }
1376
- return de_Tag(entry, context);
949
+ return (0, smithy_client_1.take)(output, {
950
+ CertificateSummaryList: (_) => de_CertificateSummaryList(_, context),
951
+ NextToken: smithy_client_1.expectString,
1377
952
  });
1378
- return retVal;
1379
- };
1380
- const de_TagPolicyException = (output, context) => {
1381
- return {
1382
- message: (0, smithy_client_1.expectString)(output.message),
1383
- };
1384
953
  };
1385
- const de_ThrottlingException = (output, context) => {
1386
- return {
1387
- message: (0, smithy_client_1.expectString)(output.message),
1388
- };
1389
- };
1390
- const de_TooManyTagsException = (output, context) => {
1391
- return {
1392
- message: (0, smithy_client_1.expectString)(output.message),
1393
- };
1394
- };
1395
- const de_ValidationEmailList = (output, context) => {
1396
- const retVal = (output || [])
1397
- .filter((e) => e != null)
1398
- .map((entry) => {
1399
- if (entry === null) {
1400
- return null;
1401
- }
1402
- return (0, smithy_client_1.expectString)(entry);
954
+ const de_RenewalSummary = (output, context) => {
955
+ return (0, smithy_client_1.take)(output, {
956
+ DomainValidationOptions: smithy_client_1._json,
957
+ RenewalStatus: smithy_client_1.expectString,
958
+ RenewalStatusReason: smithy_client_1.expectString,
959
+ UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1403
960
  });
1404
- return retVal;
1405
- };
1406
- const de_ValidationException = (output, context) => {
1407
- return {
1408
- message: (0, smithy_client_1.expectString)(output.message),
1409
- };
1410
961
  };
1411
962
  const deserializeMetadata = (output) => ({
1412
963
  httpStatusCode: output.statusCode,
@@ -1421,6 +972,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
1421
972
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
1422
973
  };
1423
974
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
975
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(ACMServiceException_1.ACMServiceException);
1424
976
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1425
977
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1426
978
  const contents = {