@aws-sdk/client-acm 3.310.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,139 +1,94 @@
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 { ACMServiceException as __BaseException } from "../models/ACMServiceException";
4
4
  import { AccessDeniedException, ConflictException, InvalidArgsException, InvalidArnException, InvalidDomainValidationOptionsException, InvalidParameterException, InvalidStateException, InvalidTagException, LimitExceededException, RequestInProgressException, ResourceInUseException, ResourceNotFoundException, TagPolicyException, ThrottlingException, TooManyTagsException, ValidationException, } from "../models/models_0";
5
5
  export const se_AddTagsToCertificateCommand = async (input, context) => {
6
- const headers = {
7
- "content-type": "application/x-amz-json-1.1",
8
- "x-amz-target": "CertificateManager.AddTagsToCertificate",
9
- };
6
+ const headers = sharedHeaders("AddTagsToCertificate");
10
7
  let body;
11
- body = JSON.stringify(se_AddTagsToCertificateRequest(input, context));
8
+ body = JSON.stringify(_json(input));
12
9
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
13
10
  };
14
11
  export const se_DeleteCertificateCommand = async (input, context) => {
15
- const headers = {
16
- "content-type": "application/x-amz-json-1.1",
17
- "x-amz-target": "CertificateManager.DeleteCertificate",
18
- };
12
+ const headers = sharedHeaders("DeleteCertificate");
19
13
  let body;
20
- body = JSON.stringify(se_DeleteCertificateRequest(input, context));
14
+ body = JSON.stringify(_json(input));
21
15
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
22
16
  };
23
17
  export const se_DescribeCertificateCommand = async (input, context) => {
24
- const headers = {
25
- "content-type": "application/x-amz-json-1.1",
26
- "x-amz-target": "CertificateManager.DescribeCertificate",
27
- };
18
+ const headers = sharedHeaders("DescribeCertificate");
28
19
  let body;
29
- body = JSON.stringify(se_DescribeCertificateRequest(input, context));
20
+ body = JSON.stringify(_json(input));
30
21
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
31
22
  };
32
23
  export const se_ExportCertificateCommand = async (input, context) => {
33
- const headers = {
34
- "content-type": "application/x-amz-json-1.1",
35
- "x-amz-target": "CertificateManager.ExportCertificate",
36
- };
24
+ const headers = sharedHeaders("ExportCertificate");
37
25
  let body;
38
26
  body = JSON.stringify(se_ExportCertificateRequest(input, context));
39
27
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
40
28
  };
41
29
  export const se_GetAccountConfigurationCommand = async (input, context) => {
42
- const headers = {
43
- "content-type": "application/x-amz-json-1.1",
44
- "x-amz-target": "CertificateManager.GetAccountConfiguration",
45
- };
30
+ const headers = sharedHeaders("GetAccountConfiguration");
46
31
  const body = "{}";
47
32
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
48
33
  };
49
34
  export const se_GetCertificateCommand = async (input, context) => {
50
- const headers = {
51
- "content-type": "application/x-amz-json-1.1",
52
- "x-amz-target": "CertificateManager.GetCertificate",
53
- };
35
+ const headers = sharedHeaders("GetCertificate");
54
36
  let body;
55
- body = JSON.stringify(se_GetCertificateRequest(input, context));
37
+ body = JSON.stringify(_json(input));
56
38
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
57
39
  };
58
40
  export const se_ImportCertificateCommand = async (input, context) => {
59
- const headers = {
60
- "content-type": "application/x-amz-json-1.1",
61
- "x-amz-target": "CertificateManager.ImportCertificate",
62
- };
41
+ const headers = sharedHeaders("ImportCertificate");
63
42
  let body;
64
43
  body = JSON.stringify(se_ImportCertificateRequest(input, context));
65
44
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
66
45
  };
67
46
  export const se_ListCertificatesCommand = async (input, context) => {
68
- const headers = {
69
- "content-type": "application/x-amz-json-1.1",
70
- "x-amz-target": "CertificateManager.ListCertificates",
71
- };
47
+ const headers = sharedHeaders("ListCertificates");
72
48
  let body;
73
- body = JSON.stringify(se_ListCertificatesRequest(input, context));
49
+ body = JSON.stringify(_json(input));
74
50
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
75
51
  };
76
52
  export const se_ListTagsForCertificateCommand = async (input, context) => {
77
- const headers = {
78
- "content-type": "application/x-amz-json-1.1",
79
- "x-amz-target": "CertificateManager.ListTagsForCertificate",
80
- };
53
+ const headers = sharedHeaders("ListTagsForCertificate");
81
54
  let body;
82
- body = JSON.stringify(se_ListTagsForCertificateRequest(input, context));
55
+ body = JSON.stringify(_json(input));
83
56
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
84
57
  };
85
58
  export const se_PutAccountConfigurationCommand = async (input, context) => {
86
- const headers = {
87
- "content-type": "application/x-amz-json-1.1",
88
- "x-amz-target": "CertificateManager.PutAccountConfiguration",
89
- };
59
+ const headers = sharedHeaders("PutAccountConfiguration");
90
60
  let body;
91
- body = JSON.stringify(se_PutAccountConfigurationRequest(input, context));
61
+ body = JSON.stringify(_json(input));
92
62
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
93
63
  };
94
64
  export const se_RemoveTagsFromCertificateCommand = async (input, context) => {
95
- const headers = {
96
- "content-type": "application/x-amz-json-1.1",
97
- "x-amz-target": "CertificateManager.RemoveTagsFromCertificate",
98
- };
65
+ const headers = sharedHeaders("RemoveTagsFromCertificate");
99
66
  let body;
100
- body = JSON.stringify(se_RemoveTagsFromCertificateRequest(input, context));
67
+ body = JSON.stringify(_json(input));
101
68
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
102
69
  };
103
70
  export const se_RenewCertificateCommand = async (input, context) => {
104
- const headers = {
105
- "content-type": "application/x-amz-json-1.1",
106
- "x-amz-target": "CertificateManager.RenewCertificate",
107
- };
71
+ const headers = sharedHeaders("RenewCertificate");
108
72
  let body;
109
- body = JSON.stringify(se_RenewCertificateRequest(input, context));
73
+ body = JSON.stringify(_json(input));
110
74
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
111
75
  };
112
76
  export const se_RequestCertificateCommand = async (input, context) => {
113
- const headers = {
114
- "content-type": "application/x-amz-json-1.1",
115
- "x-amz-target": "CertificateManager.RequestCertificate",
116
- };
77
+ const headers = sharedHeaders("RequestCertificate");
117
78
  let body;
118
- body = JSON.stringify(se_RequestCertificateRequest(input, context));
79
+ body = JSON.stringify(_json(input));
119
80
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
120
81
  };
121
82
  export const se_ResendValidationEmailCommand = async (input, context) => {
122
- const headers = {
123
- "content-type": "application/x-amz-json-1.1",
124
- "x-amz-target": "CertificateManager.ResendValidationEmail",
125
- };
83
+ const headers = sharedHeaders("ResendValidationEmail");
126
84
  let body;
127
- body = JSON.stringify(se_ResendValidationEmailRequest(input, context));
85
+ body = JSON.stringify(_json(input));
128
86
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
129
87
  };
130
88
  export const se_UpdateCertificateOptionsCommand = async (input, context) => {
131
- const headers = {
132
- "content-type": "application/x-amz-json-1.1",
133
- "x-amz-target": "CertificateManager.UpdateCertificateOptions",
134
- };
89
+ const headers = sharedHeaders("UpdateCertificateOptions");
135
90
  let body;
136
- body = JSON.stringify(se_UpdateCertificateOptionsRequest(input, context));
91
+ body = JSON.stringify(_json(input));
137
92
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
138
93
  };
139
94
  export const de_AddTagsToCertificateCommand = async (output, context) => {
@@ -144,7 +99,7 @@ export const de_AddTagsToCertificateCommand = async (output, context) => {
144
99
  const response = {
145
100
  $metadata: deserializeMetadata(output),
146
101
  };
147
- return Promise.resolve(response);
102
+ return response;
148
103
  };
149
104
  const de_AddTagsToCertificateCommandError = async (output, context) => {
150
105
  const parsedOutput = {
@@ -176,10 +131,9 @@ const de_AddTagsToCertificateCommandError = async (output, context) => {
176
131
  throw await de_TooManyTagsExceptionRes(parsedOutput, context);
177
132
  default:
178
133
  const parsedBody = parsedOutput.body;
179
- throwDefaultError({
134
+ return throwDefaultError({
180
135
  output,
181
136
  parsedBody,
182
- exceptionCtor: __BaseException,
183
137
  errorCode,
184
138
  });
185
139
  }
@@ -192,7 +146,7 @@ export const de_DeleteCertificateCommand = async (output, context) => {
192
146
  const response = {
193
147
  $metadata: deserializeMetadata(output),
194
148
  };
195
- return Promise.resolve(response);
149
+ return response;
196
150
  };
197
151
  const de_DeleteCertificateCommandError = async (output, context) => {
198
152
  const parsedOutput = {
@@ -221,10 +175,9 @@ const de_DeleteCertificateCommandError = async (output, context) => {
221
175
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
222
176
  default:
223
177
  const parsedBody = parsedOutput.body;
224
- throwDefaultError({
178
+ return throwDefaultError({
225
179
  output,
226
180
  parsedBody,
227
- exceptionCtor: __BaseException,
228
181
  errorCode,
229
182
  });
230
183
  }
@@ -240,7 +193,7 @@ export const de_DescribeCertificateCommand = async (output, context) => {
240
193
  $metadata: deserializeMetadata(output),
241
194
  ...contents,
242
195
  };
243
- return Promise.resolve(response);
196
+ return response;
244
197
  };
245
198
  const de_DescribeCertificateCommandError = async (output, context) => {
246
199
  const parsedOutput = {
@@ -257,10 +210,9 @@ const de_DescribeCertificateCommandError = async (output, context) => {
257
210
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
258
211
  default:
259
212
  const parsedBody = parsedOutput.body;
260
- throwDefaultError({
213
+ return throwDefaultError({
261
214
  output,
262
215
  parsedBody,
263
- exceptionCtor: __BaseException,
264
216
  errorCode,
265
217
  });
266
218
  }
@@ -271,12 +223,12 @@ export const de_ExportCertificateCommand = async (output, context) => {
271
223
  }
272
224
  const data = await parseBody(output.body, context);
273
225
  let contents = {};
274
- contents = de_ExportCertificateResponse(data, context);
226
+ contents = _json(data);
275
227
  const response = {
276
228
  $metadata: deserializeMetadata(output),
277
229
  ...contents,
278
230
  };
279
- return Promise.resolve(response);
231
+ return response;
280
232
  };
281
233
  const de_ExportCertificateCommandError = async (output, context) => {
282
234
  const parsedOutput = {
@@ -296,10 +248,9 @@ const de_ExportCertificateCommandError = async (output, context) => {
296
248
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
297
249
  default:
298
250
  const parsedBody = parsedOutput.body;
299
- throwDefaultError({
251
+ return throwDefaultError({
300
252
  output,
301
253
  parsedBody,
302
- exceptionCtor: __BaseException,
303
254
  errorCode,
304
255
  });
305
256
  }
@@ -310,12 +261,12 @@ export const de_GetAccountConfigurationCommand = async (output, context) => {
310
261
  }
311
262
  const data = await parseBody(output.body, context);
312
263
  let contents = {};
313
- contents = de_GetAccountConfigurationResponse(data, context);
264
+ contents = _json(data);
314
265
  const response = {
315
266
  $metadata: deserializeMetadata(output),
316
267
  ...contents,
317
268
  };
318
- return Promise.resolve(response);
269
+ return response;
319
270
  };
320
271
  const de_GetAccountConfigurationCommandError = async (output, context) => {
321
272
  const parsedOutput = {
@@ -332,10 +283,9 @@ const de_GetAccountConfigurationCommandError = async (output, context) => {
332
283
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
333
284
  default:
334
285
  const parsedBody = parsedOutput.body;
335
- throwDefaultError({
286
+ return throwDefaultError({
336
287
  output,
337
288
  parsedBody,
338
- exceptionCtor: __BaseException,
339
289
  errorCode,
340
290
  });
341
291
  }
@@ -346,12 +296,12 @@ export const de_GetCertificateCommand = async (output, context) => {
346
296
  }
347
297
  const data = await parseBody(output.body, context);
348
298
  let contents = {};
349
- contents = de_GetCertificateResponse(data, context);
299
+ contents = _json(data);
350
300
  const response = {
351
301
  $metadata: deserializeMetadata(output),
352
302
  ...contents,
353
303
  };
354
- return Promise.resolve(response);
304
+ return response;
355
305
  };
356
306
  const de_GetCertificateCommandError = async (output, context) => {
357
307
  const parsedOutput = {
@@ -371,10 +321,9 @@ const de_GetCertificateCommandError = async (output, context) => {
371
321
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
372
322
  default:
373
323
  const parsedBody = parsedOutput.body;
374
- throwDefaultError({
324
+ return throwDefaultError({
375
325
  output,
376
326
  parsedBody,
377
- exceptionCtor: __BaseException,
378
327
  errorCode,
379
328
  });
380
329
  }
@@ -385,12 +334,12 @@ export const de_ImportCertificateCommand = async (output, context) => {
385
334
  }
386
335
  const data = await parseBody(output.body, context);
387
336
  let contents = {};
388
- contents = de_ImportCertificateResponse(data, context);
337
+ contents = _json(data);
389
338
  const response = {
390
339
  $metadata: deserializeMetadata(output),
391
340
  ...contents,
392
341
  };
393
- return Promise.resolve(response);
342
+ return response;
394
343
  };
395
344
  const de_ImportCertificateCommandError = async (output, context) => {
396
345
  const parsedOutput = {
@@ -422,10 +371,9 @@ const de_ImportCertificateCommandError = async (output, context) => {
422
371
  throw await de_TooManyTagsExceptionRes(parsedOutput, context);
423
372
  default:
424
373
  const parsedBody = parsedOutput.body;
425
- throwDefaultError({
374
+ return throwDefaultError({
426
375
  output,
427
376
  parsedBody,
428
- exceptionCtor: __BaseException,
429
377
  errorCode,
430
378
  });
431
379
  }
@@ -441,7 +389,7 @@ export const de_ListCertificatesCommand = async (output, context) => {
441
389
  $metadata: deserializeMetadata(output),
442
390
  ...contents,
443
391
  };
444
- return Promise.resolve(response);
392
+ return response;
445
393
  };
446
394
  const de_ListCertificatesCommandError = async (output, context) => {
447
395
  const parsedOutput = {
@@ -458,10 +406,9 @@ const de_ListCertificatesCommandError = async (output, context) => {
458
406
  throw await de_ValidationExceptionRes(parsedOutput, context);
459
407
  default:
460
408
  const parsedBody = parsedOutput.body;
461
- throwDefaultError({
409
+ return throwDefaultError({
462
410
  output,
463
411
  parsedBody,
464
- exceptionCtor: __BaseException,
465
412
  errorCode,
466
413
  });
467
414
  }
@@ -472,12 +419,12 @@ export const de_ListTagsForCertificateCommand = async (output, context) => {
472
419
  }
473
420
  const data = await parseBody(output.body, context);
474
421
  let contents = {};
475
- contents = de_ListTagsForCertificateResponse(data, context);
422
+ contents = _json(data);
476
423
  const response = {
477
424
  $metadata: deserializeMetadata(output),
478
425
  ...contents,
479
426
  };
480
- return Promise.resolve(response);
427
+ return response;
481
428
  };
482
429
  const de_ListTagsForCertificateCommandError = async (output, context) => {
483
430
  const parsedOutput = {
@@ -494,10 +441,9 @@ const de_ListTagsForCertificateCommandError = async (output, context) => {
494
441
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
495
442
  default:
496
443
  const parsedBody = parsedOutput.body;
497
- throwDefaultError({
444
+ return throwDefaultError({
498
445
  output,
499
446
  parsedBody,
500
- exceptionCtor: __BaseException,
501
447
  errorCode,
502
448
  });
503
449
  }
@@ -510,7 +456,7 @@ export const de_PutAccountConfigurationCommand = async (output, context) => {
510
456
  const response = {
511
457
  $metadata: deserializeMetadata(output),
512
458
  };
513
- return Promise.resolve(response);
459
+ return response;
514
460
  };
515
461
  const de_PutAccountConfigurationCommandError = async (output, context) => {
516
462
  const parsedOutput = {
@@ -533,10 +479,9 @@ const de_PutAccountConfigurationCommandError = async (output, context) => {
533
479
  throw await de_ValidationExceptionRes(parsedOutput, context);
534
480
  default:
535
481
  const parsedBody = parsedOutput.body;
536
- throwDefaultError({
482
+ return throwDefaultError({
537
483
  output,
538
484
  parsedBody,
539
- exceptionCtor: __BaseException,
540
485
  errorCode,
541
486
  });
542
487
  }
@@ -549,7 +494,7 @@ export const de_RemoveTagsFromCertificateCommand = async (output, context) => {
549
494
  const response = {
550
495
  $metadata: deserializeMetadata(output),
551
496
  };
552
- return Promise.resolve(response);
497
+ return response;
553
498
  };
554
499
  const de_RemoveTagsFromCertificateCommandError = async (output, context) => {
555
500
  const parsedOutput = {
@@ -578,10 +523,9 @@ const de_RemoveTagsFromCertificateCommandError = async (output, context) => {
578
523
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
579
524
  default:
580
525
  const parsedBody = parsedOutput.body;
581
- throwDefaultError({
526
+ return throwDefaultError({
582
527
  output,
583
528
  parsedBody,
584
- exceptionCtor: __BaseException,
585
529
  errorCode,
586
530
  });
587
531
  }
@@ -594,7 +538,7 @@ export const de_RenewCertificateCommand = async (output, context) => {
594
538
  const response = {
595
539
  $metadata: deserializeMetadata(output),
596
540
  };
597
- return Promise.resolve(response);
541
+ return response;
598
542
  };
599
543
  const de_RenewCertificateCommandError = async (output, context) => {
600
544
  const parsedOutput = {
@@ -611,10 +555,9 @@ const de_RenewCertificateCommandError = async (output, context) => {
611
555
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
612
556
  default:
613
557
  const parsedBody = parsedOutput.body;
614
- throwDefaultError({
558
+ return throwDefaultError({
615
559
  output,
616
560
  parsedBody,
617
- exceptionCtor: __BaseException,
618
561
  errorCode,
619
562
  });
620
563
  }
@@ -625,12 +568,12 @@ export const de_RequestCertificateCommand = async (output, context) => {
625
568
  }
626
569
  const data = await parseBody(output.body, context);
627
570
  let contents = {};
628
- contents = de_RequestCertificateResponse(data, context);
571
+ contents = _json(data);
629
572
  const response = {
630
573
  $metadata: deserializeMetadata(output),
631
574
  ...contents,
632
575
  };
633
- return Promise.resolve(response);
576
+ return response;
634
577
  };
635
578
  const de_RequestCertificateCommandError = async (output, context) => {
636
579
  const parsedOutput = {
@@ -662,10 +605,9 @@ const de_RequestCertificateCommandError = async (output, context) => {
662
605
  throw await de_TooManyTagsExceptionRes(parsedOutput, context);
663
606
  default:
664
607
  const parsedBody = parsedOutput.body;
665
- throwDefaultError({
608
+ return throwDefaultError({
666
609
  output,
667
610
  parsedBody,
668
- exceptionCtor: __BaseException,
669
611
  errorCode,
670
612
  });
671
613
  }
@@ -678,7 +620,7 @@ export const de_ResendValidationEmailCommand = async (output, context) => {
678
620
  const response = {
679
621
  $metadata: deserializeMetadata(output),
680
622
  };
681
- return Promise.resolve(response);
623
+ return response;
682
624
  };
683
625
  const de_ResendValidationEmailCommandError = async (output, context) => {
684
626
  const parsedOutput = {
@@ -701,10 +643,9 @@ const de_ResendValidationEmailCommandError = async (output, context) => {
701
643
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
702
644
  default:
703
645
  const parsedBody = parsedOutput.body;
704
- throwDefaultError({
646
+ return throwDefaultError({
705
647
  output,
706
648
  parsedBody,
707
- exceptionCtor: __BaseException,
708
649
  errorCode,
709
650
  });
710
651
  }
@@ -717,7 +658,7 @@ export const de_UpdateCertificateOptionsCommand = async (output, context) => {
717
658
  const response = {
718
659
  $metadata: deserializeMetadata(output),
719
660
  };
720
- return Promise.resolve(response);
661
+ return response;
721
662
  };
722
663
  const de_UpdateCertificateOptionsCommandError = async (output, context) => {
723
664
  const parsedOutput = {
@@ -740,17 +681,16 @@ const de_UpdateCertificateOptionsCommandError = async (output, context) => {
740
681
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
741
682
  default:
742
683
  const parsedBody = parsedOutput.body;
743
- throwDefaultError({
684
+ return throwDefaultError({
744
685
  output,
745
686
  parsedBody,
746
- exceptionCtor: __BaseException,
747
687
  errorCode,
748
688
  });
749
689
  }
750
690
  };
751
691
  const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
752
692
  const body = parsedOutput.body;
753
- const deserialized = de_AccessDeniedException(body, context);
693
+ const deserialized = _json(body);
754
694
  const exception = new AccessDeniedException({
755
695
  $metadata: deserializeMetadata(parsedOutput),
756
696
  ...deserialized,
@@ -759,7 +699,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
759
699
  };
760
700
  const de_ConflictExceptionRes = async (parsedOutput, context) => {
761
701
  const body = parsedOutput.body;
762
- const deserialized = de_ConflictException(body, context);
702
+ const deserialized = _json(body);
763
703
  const exception = new ConflictException({
764
704
  $metadata: deserializeMetadata(parsedOutput),
765
705
  ...deserialized,
@@ -768,7 +708,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
768
708
  };
769
709
  const de_InvalidArgsExceptionRes = async (parsedOutput, context) => {
770
710
  const body = parsedOutput.body;
771
- const deserialized = de_InvalidArgsException(body, context);
711
+ const deserialized = _json(body);
772
712
  const exception = new InvalidArgsException({
773
713
  $metadata: deserializeMetadata(parsedOutput),
774
714
  ...deserialized,
@@ -777,7 +717,7 @@ const de_InvalidArgsExceptionRes = async (parsedOutput, context) => {
777
717
  };
778
718
  const de_InvalidArnExceptionRes = async (parsedOutput, context) => {
779
719
  const body = parsedOutput.body;
780
- const deserialized = de_InvalidArnException(body, context);
720
+ const deserialized = _json(body);
781
721
  const exception = new InvalidArnException({
782
722
  $metadata: deserializeMetadata(parsedOutput),
783
723
  ...deserialized,
@@ -786,7 +726,7 @@ const de_InvalidArnExceptionRes = async (parsedOutput, context) => {
786
726
  };
787
727
  const de_InvalidDomainValidationOptionsExceptionRes = async (parsedOutput, context) => {
788
728
  const body = parsedOutput.body;
789
- const deserialized = de_InvalidDomainValidationOptionsException(body, context);
729
+ const deserialized = _json(body);
790
730
  const exception = new InvalidDomainValidationOptionsException({
791
731
  $metadata: deserializeMetadata(parsedOutput),
792
732
  ...deserialized,
@@ -795,7 +735,7 @@ const de_InvalidDomainValidationOptionsExceptionRes = async (parsedOutput, conte
795
735
  };
796
736
  const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
797
737
  const body = parsedOutput.body;
798
- const deserialized = de_InvalidParameterException(body, context);
738
+ const deserialized = _json(body);
799
739
  const exception = new InvalidParameterException({
800
740
  $metadata: deserializeMetadata(parsedOutput),
801
741
  ...deserialized,
@@ -804,7 +744,7 @@ const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
804
744
  };
805
745
  const de_InvalidStateExceptionRes = async (parsedOutput, context) => {
806
746
  const body = parsedOutput.body;
807
- const deserialized = de_InvalidStateException(body, context);
747
+ const deserialized = _json(body);
808
748
  const exception = new InvalidStateException({
809
749
  $metadata: deserializeMetadata(parsedOutput),
810
750
  ...deserialized,
@@ -813,7 +753,7 @@ const de_InvalidStateExceptionRes = async (parsedOutput, context) => {
813
753
  };
814
754
  const de_InvalidTagExceptionRes = async (parsedOutput, context) => {
815
755
  const body = parsedOutput.body;
816
- const deserialized = de_InvalidTagException(body, context);
756
+ const deserialized = _json(body);
817
757
  const exception = new InvalidTagException({
818
758
  $metadata: deserializeMetadata(parsedOutput),
819
759
  ...deserialized,
@@ -822,7 +762,7 @@ const de_InvalidTagExceptionRes = async (parsedOutput, context) => {
822
762
  };
823
763
  const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
824
764
  const body = parsedOutput.body;
825
- const deserialized = de_LimitExceededException(body, context);
765
+ const deserialized = _json(body);
826
766
  const exception = new LimitExceededException({
827
767
  $metadata: deserializeMetadata(parsedOutput),
828
768
  ...deserialized,
@@ -831,7 +771,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
831
771
  };
832
772
  const de_RequestInProgressExceptionRes = async (parsedOutput, context) => {
833
773
  const body = parsedOutput.body;
834
- const deserialized = de_RequestInProgressException(body, context);
774
+ const deserialized = _json(body);
835
775
  const exception = new RequestInProgressException({
836
776
  $metadata: deserializeMetadata(parsedOutput),
837
777
  ...deserialized,
@@ -840,7 +780,7 @@ const de_RequestInProgressExceptionRes = async (parsedOutput, context) => {
840
780
  };
841
781
  const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
842
782
  const body = parsedOutput.body;
843
- const deserialized = de_ResourceInUseException(body, context);
783
+ const deserialized = _json(body);
844
784
  const exception = new ResourceInUseException({
845
785
  $metadata: deserializeMetadata(parsedOutput),
846
786
  ...deserialized,
@@ -849,7 +789,7 @@ const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
849
789
  };
850
790
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
851
791
  const body = parsedOutput.body;
852
- const deserialized = de_ResourceNotFoundException(body, context);
792
+ const deserialized = _json(body);
853
793
  const exception = new ResourceNotFoundException({
854
794
  $metadata: deserializeMetadata(parsedOutput),
855
795
  ...deserialized,
@@ -858,7 +798,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
858
798
  };
859
799
  const de_TagPolicyExceptionRes = async (parsedOutput, context) => {
860
800
  const body = parsedOutput.body;
861
- const deserialized = de_TagPolicyException(body, context);
801
+ const deserialized = _json(body);
862
802
  const exception = new TagPolicyException({
863
803
  $metadata: deserializeMetadata(parsedOutput),
864
804
  ...deserialized,
@@ -867,7 +807,7 @@ const de_TagPolicyExceptionRes = async (parsedOutput, context) => {
867
807
  };
868
808
  const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
869
809
  const body = parsedOutput.body;
870
- const deserialized = de_ThrottlingException(body, context);
810
+ const deserialized = _json(body);
871
811
  const exception = new ThrottlingException({
872
812
  $metadata: deserializeMetadata(parsedOutput),
873
813
  ...deserialized,
@@ -876,7 +816,7 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
876
816
  };
877
817
  const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
878
818
  const body = parsedOutput.body;
879
- const deserialized = de_TooManyTagsException(body, context);
819
+ const deserialized = _json(body);
880
820
  const exception = new TooManyTagsException({
881
821
  $metadata: deserializeMetadata(parsedOutput),
882
822
  ...deserialized,
@@ -885,540 +825,106 @@ const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
885
825
  };
886
826
  const de_ValidationExceptionRes = async (parsedOutput, context) => {
887
827
  const body = parsedOutput.body;
888
- const deserialized = de_ValidationException(body, context);
828
+ const deserialized = _json(body);
889
829
  const exception = new ValidationException({
890
830
  $metadata: deserializeMetadata(parsedOutput),
891
831
  ...deserialized,
892
832
  });
893
833
  return __decorateServiceException(exception, body);
894
834
  };
895
- const se_AddTagsToCertificateRequest = (input, context) => {
896
- return {
897
- ...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
898
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
899
- };
900
- };
901
- const se_CertificateOptions = (input, context) => {
902
- return {
903
- ...(input.CertificateTransparencyLoggingPreference != null && {
904
- CertificateTransparencyLoggingPreference: input.CertificateTransparencyLoggingPreference,
905
- }),
906
- };
907
- };
908
- const se_CertificateStatuses = (input, context) => {
909
- return input
910
- .filter((e) => e != null)
911
- .map((entry) => {
912
- return entry;
913
- });
914
- };
915
- const se_DeleteCertificateRequest = (input, context) => {
916
- return {
917
- ...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
918
- };
919
- };
920
- const se_DescribeCertificateRequest = (input, context) => {
921
- return {
922
- ...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
923
- };
924
- };
925
- const se_DomainList = (input, context) => {
926
- return input
927
- .filter((e) => e != null)
928
- .map((entry) => {
929
- return entry;
930
- });
931
- };
932
- const se_DomainValidationOption = (input, context) => {
933
- return {
934
- ...(input.DomainName != null && { DomainName: input.DomainName }),
935
- ...(input.ValidationDomain != null && { ValidationDomain: input.ValidationDomain }),
936
- };
937
- };
938
- const se_DomainValidationOptionList = (input, context) => {
939
- return input
940
- .filter((e) => e != null)
941
- .map((entry) => {
942
- return se_DomainValidationOption(entry, context);
943
- });
944
- };
945
- const se_ExpiryEventsConfiguration = (input, context) => {
946
- return {
947
- ...(input.DaysBeforeExpiry != null && { DaysBeforeExpiry: input.DaysBeforeExpiry }),
948
- };
949
- };
950
835
  const se_ExportCertificateRequest = (input, context) => {
951
- return {
952
- ...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
953
- ...(input.Passphrase != null && { Passphrase: context.base64Encoder(input.Passphrase) }),
954
- };
955
- };
956
- const se_ExtendedKeyUsageFilterList = (input, context) => {
957
- return input
958
- .filter((e) => e != null)
959
- .map((entry) => {
960
- return entry;
836
+ return take(input, {
837
+ CertificateArn: [],
838
+ Passphrase: context.base64Encoder,
961
839
  });
962
840
  };
963
- const se_Filters = (input, context) => {
964
- return {
965
- ...(input.extendedKeyUsage != null && {
966
- extendedKeyUsage: se_ExtendedKeyUsageFilterList(input.extendedKeyUsage, context),
967
- }),
968
- ...(input.keyTypes != null && { keyTypes: se_KeyAlgorithmList(input.keyTypes, context) }),
969
- ...(input.keyUsage != null && { keyUsage: se_KeyUsageFilterList(input.keyUsage, context) }),
970
- };
971
- };
972
- const se_GetCertificateRequest = (input, context) => {
973
- return {
974
- ...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
975
- };
976
- };
977
841
  const se_ImportCertificateRequest = (input, context) => {
978
- return {
979
- ...(input.Certificate != null && { Certificate: context.base64Encoder(input.Certificate) }),
980
- ...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
981
- ...(input.CertificateChain != null && { CertificateChain: context.base64Encoder(input.CertificateChain) }),
982
- ...(input.PrivateKey != null && { PrivateKey: context.base64Encoder(input.PrivateKey) }),
983
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
984
- };
985
- };
986
- const se_KeyAlgorithmList = (input, context) => {
987
- return input
988
- .filter((e) => e != null)
989
- .map((entry) => {
990
- return entry;
991
- });
992
- };
993
- const se_KeyUsageFilterList = (input, context) => {
994
- return input
995
- .filter((e) => e != null)
996
- .map((entry) => {
997
- return entry;
842
+ return take(input, {
843
+ Certificate: context.base64Encoder,
844
+ CertificateArn: [],
845
+ CertificateChain: context.base64Encoder,
846
+ PrivateKey: context.base64Encoder,
847
+ Tags: _json,
998
848
  });
999
849
  };
1000
- const se_ListCertificatesRequest = (input, context) => {
1001
- return {
1002
- ...(input.CertificateStatuses != null && {
1003
- CertificateStatuses: se_CertificateStatuses(input.CertificateStatuses, context),
1004
- }),
1005
- ...(input.Includes != null && { Includes: se_Filters(input.Includes, context) }),
1006
- ...(input.MaxItems != null && { MaxItems: input.MaxItems }),
1007
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1008
- ...(input.SortBy != null && { SortBy: input.SortBy }),
1009
- ...(input.SortOrder != null && { SortOrder: input.SortOrder }),
1010
- };
1011
- };
1012
- const se_ListTagsForCertificateRequest = (input, context) => {
1013
- return {
1014
- ...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
1015
- };
1016
- };
1017
- const se_PutAccountConfigurationRequest = (input, context) => {
1018
- return {
1019
- ...(input.ExpiryEvents != null && { ExpiryEvents: se_ExpiryEventsConfiguration(input.ExpiryEvents, context) }),
1020
- ...(input.IdempotencyToken != null && { IdempotencyToken: input.IdempotencyToken }),
1021
- };
1022
- };
1023
- const se_RemoveTagsFromCertificateRequest = (input, context) => {
1024
- return {
1025
- ...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
1026
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
1027
- };
1028
- };
1029
- const se_RenewCertificateRequest = (input, context) => {
1030
- return {
1031
- ...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
1032
- };
1033
- };
1034
- const se_RequestCertificateRequest = (input, context) => {
1035
- return {
1036
- ...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
1037
- ...(input.DomainName != null && { DomainName: input.DomainName }),
1038
- ...(input.DomainValidationOptions != null && {
1039
- DomainValidationOptions: se_DomainValidationOptionList(input.DomainValidationOptions, context),
1040
- }),
1041
- ...(input.IdempotencyToken != null && { IdempotencyToken: input.IdempotencyToken }),
1042
- ...(input.KeyAlgorithm != null && { KeyAlgorithm: input.KeyAlgorithm }),
1043
- ...(input.Options != null && { Options: se_CertificateOptions(input.Options, context) }),
1044
- ...(input.SubjectAlternativeNames != null && {
1045
- SubjectAlternativeNames: se_DomainList(input.SubjectAlternativeNames, context),
1046
- }),
1047
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
1048
- ...(input.ValidationMethod != null && { ValidationMethod: input.ValidationMethod }),
1049
- };
1050
- };
1051
- const se_ResendValidationEmailRequest = (input, context) => {
1052
- return {
1053
- ...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
1054
- ...(input.Domain != null && { Domain: input.Domain }),
1055
- ...(input.ValidationDomain != null && { ValidationDomain: input.ValidationDomain }),
1056
- };
1057
- };
1058
- const se_Tag = (input, context) => {
1059
- return {
1060
- ...(input.Key != null && { Key: input.Key }),
1061
- ...(input.Value != null && { Value: input.Value }),
1062
- };
1063
- };
1064
- const se_TagList = (input, context) => {
1065
- return input
1066
- .filter((e) => e != null)
1067
- .map((entry) => {
1068
- return se_Tag(entry, context);
1069
- });
1070
- };
1071
- const se_UpdateCertificateOptionsRequest = (input, context) => {
1072
- return {
1073
- ...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
1074
- ...(input.Options != null && { Options: se_CertificateOptions(input.Options, context) }),
1075
- };
1076
- };
1077
- const de_AccessDeniedException = (output, context) => {
1078
- return {
1079
- Message: __expectString(output.Message),
1080
- };
1081
- };
1082
850
  const de_CertificateDetail = (output, context) => {
1083
- return {
1084
- CertificateArn: __expectString(output.CertificateArn),
1085
- CertificateAuthorityArn: __expectString(output.CertificateAuthorityArn),
1086
- CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
1087
- DomainName: __expectString(output.DomainName),
1088
- DomainValidationOptions: output.DomainValidationOptions != null
1089
- ? de_DomainValidationList(output.DomainValidationOptions, context)
1090
- : undefined,
1091
- ExtendedKeyUsages: output.ExtendedKeyUsages != null ? de_ExtendedKeyUsageList(output.ExtendedKeyUsages, context) : undefined,
1092
- FailureReason: __expectString(output.FailureReason),
1093
- ImportedAt: output.ImportedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ImportedAt))) : undefined,
1094
- InUseBy: output.InUseBy != null ? de_InUseList(output.InUseBy, context) : undefined,
1095
- IssuedAt: output.IssuedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.IssuedAt))) : undefined,
1096
- Issuer: __expectString(output.Issuer),
1097
- KeyAlgorithm: __expectString(output.KeyAlgorithm),
1098
- KeyUsages: output.KeyUsages != null ? de_KeyUsageList(output.KeyUsages, context) : undefined,
1099
- NotAfter: output.NotAfter != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.NotAfter))) : undefined,
1100
- NotBefore: output.NotBefore != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.NotBefore))) : undefined,
1101
- Options: output.Options != null ? de_CertificateOptions(output.Options, context) : undefined,
1102
- RenewalEligibility: __expectString(output.RenewalEligibility),
1103
- RenewalSummary: output.RenewalSummary != null ? de_RenewalSummary(output.RenewalSummary, context) : undefined,
1104
- RevocationReason: __expectString(output.RevocationReason),
1105
- RevokedAt: output.RevokedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.RevokedAt))) : undefined,
1106
- Serial: __expectString(output.Serial),
1107
- SignatureAlgorithm: __expectString(output.SignatureAlgorithm),
1108
- Status: __expectString(output.Status),
1109
- Subject: __expectString(output.Subject),
1110
- SubjectAlternativeNames: output.SubjectAlternativeNames != null ? de_DomainList(output.SubjectAlternativeNames, context) : undefined,
1111
- Type: __expectString(output.Type),
1112
- };
1113
- };
1114
- const de_CertificateOptions = (output, context) => {
1115
- return {
1116
- CertificateTransparencyLoggingPreference: __expectString(output.CertificateTransparencyLoggingPreference),
1117
- };
851
+ return take(output, {
852
+ CertificateArn: __expectString,
853
+ CertificateAuthorityArn: __expectString,
854
+ CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
855
+ DomainName: __expectString,
856
+ DomainValidationOptions: _json,
857
+ ExtendedKeyUsages: _json,
858
+ FailureReason: __expectString,
859
+ ImportedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
860
+ InUseBy: _json,
861
+ IssuedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
862
+ Issuer: __expectString,
863
+ KeyAlgorithm: __expectString,
864
+ KeyUsages: _json,
865
+ NotAfter: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
866
+ NotBefore: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
867
+ Options: _json,
868
+ RenewalEligibility: __expectString,
869
+ RenewalSummary: (_) => de_RenewalSummary(_, context),
870
+ RevocationReason: __expectString,
871
+ RevokedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
872
+ Serial: __expectString,
873
+ SignatureAlgorithm: __expectString,
874
+ Status: __expectString,
875
+ Subject: __expectString,
876
+ SubjectAlternativeNames: _json,
877
+ Type: __expectString,
878
+ });
1118
879
  };
1119
880
  const de_CertificateSummary = (output, context) => {
1120
- return {
1121
- CertificateArn: __expectString(output.CertificateArn),
1122
- CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
1123
- DomainName: __expectString(output.DomainName),
1124
- Exported: __expectBoolean(output.Exported),
1125
- ExtendedKeyUsages: output.ExtendedKeyUsages != null ? de_ExtendedKeyUsageNames(output.ExtendedKeyUsages, context) : undefined,
1126
- HasAdditionalSubjectAlternativeNames: __expectBoolean(output.HasAdditionalSubjectAlternativeNames),
1127
- ImportedAt: output.ImportedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ImportedAt))) : undefined,
1128
- InUse: __expectBoolean(output.InUse),
1129
- IssuedAt: output.IssuedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.IssuedAt))) : undefined,
1130
- KeyAlgorithm: __expectString(output.KeyAlgorithm),
1131
- KeyUsages: output.KeyUsages != null ? de_KeyUsageNames(output.KeyUsages, context) : undefined,
1132
- NotAfter: output.NotAfter != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.NotAfter))) : undefined,
1133
- NotBefore: output.NotBefore != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.NotBefore))) : undefined,
1134
- RenewalEligibility: __expectString(output.RenewalEligibility),
1135
- RevokedAt: output.RevokedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.RevokedAt))) : undefined,
1136
- Status: __expectString(output.Status),
1137
- SubjectAlternativeNameSummaries: output.SubjectAlternativeNameSummaries != null
1138
- ? de_DomainList(output.SubjectAlternativeNameSummaries, context)
1139
- : undefined,
1140
- Type: __expectString(output.Type),
1141
- };
881
+ return take(output, {
882
+ CertificateArn: __expectString,
883
+ CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
884
+ DomainName: __expectString,
885
+ Exported: __expectBoolean,
886
+ ExtendedKeyUsages: _json,
887
+ HasAdditionalSubjectAlternativeNames: __expectBoolean,
888
+ ImportedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
889
+ InUse: __expectBoolean,
890
+ IssuedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
891
+ KeyAlgorithm: __expectString,
892
+ KeyUsages: _json,
893
+ NotAfter: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
894
+ NotBefore: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
895
+ RenewalEligibility: __expectString,
896
+ RevokedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
897
+ Status: __expectString,
898
+ SubjectAlternativeNameSummaries: _json,
899
+ Type: __expectString,
900
+ });
1142
901
  };
1143
902
  const de_CertificateSummaryList = (output, context) => {
1144
903
  const retVal = (output || [])
1145
904
  .filter((e) => e != null)
1146
905
  .map((entry) => {
1147
- if (entry === null) {
1148
- return null;
1149
- }
1150
906
  return de_CertificateSummary(entry, context);
1151
907
  });
1152
908
  return retVal;
1153
909
  };
1154
- const de_ConflictException = (output, context) => {
1155
- return {
1156
- message: __expectString(output.message),
1157
- };
1158
- };
1159
910
  const de_DescribeCertificateResponse = (output, context) => {
1160
- return {
1161
- Certificate: output.Certificate != null ? de_CertificateDetail(output.Certificate, context) : undefined,
1162
- };
1163
- };
1164
- const de_DomainList = (output, context) => {
1165
- const retVal = (output || [])
1166
- .filter((e) => e != null)
1167
- .map((entry) => {
1168
- if (entry === null) {
1169
- return null;
1170
- }
1171
- return __expectString(entry);
1172
- });
1173
- return retVal;
1174
- };
1175
- const de_DomainValidation = (output, context) => {
1176
- return {
1177
- DomainName: __expectString(output.DomainName),
1178
- ResourceRecord: output.ResourceRecord != null ? de_ResourceRecord(output.ResourceRecord, context) : undefined,
1179
- ValidationDomain: __expectString(output.ValidationDomain),
1180
- ValidationEmails: output.ValidationEmails != null ? de_ValidationEmailList(output.ValidationEmails, context) : undefined,
1181
- ValidationMethod: __expectString(output.ValidationMethod),
1182
- ValidationStatus: __expectString(output.ValidationStatus),
1183
- };
1184
- };
1185
- const de_DomainValidationList = (output, context) => {
1186
- const retVal = (output || [])
1187
- .filter((e) => e != null)
1188
- .map((entry) => {
1189
- if (entry === null) {
1190
- return null;
1191
- }
1192
- return de_DomainValidation(entry, context);
1193
- });
1194
- return retVal;
1195
- };
1196
- const de_ExpiryEventsConfiguration = (output, context) => {
1197
- return {
1198
- DaysBeforeExpiry: __expectInt32(output.DaysBeforeExpiry),
1199
- };
1200
- };
1201
- const de_ExportCertificateResponse = (output, context) => {
1202
- return {
1203
- Certificate: __expectString(output.Certificate),
1204
- CertificateChain: __expectString(output.CertificateChain),
1205
- PrivateKey: __expectString(output.PrivateKey),
1206
- };
1207
- };
1208
- const de_ExtendedKeyUsage = (output, context) => {
1209
- return {
1210
- Name: __expectString(output.Name),
1211
- OID: __expectString(output.OID),
1212
- };
1213
- };
1214
- const de_ExtendedKeyUsageList = (output, context) => {
1215
- const retVal = (output || [])
1216
- .filter((e) => e != null)
1217
- .map((entry) => {
1218
- if (entry === null) {
1219
- return null;
1220
- }
1221
- return de_ExtendedKeyUsage(entry, context);
1222
- });
1223
- return retVal;
1224
- };
1225
- const de_ExtendedKeyUsageNames = (output, context) => {
1226
- const retVal = (output || [])
1227
- .filter((e) => e != null)
1228
- .map((entry) => {
1229
- if (entry === null) {
1230
- return null;
1231
- }
1232
- return __expectString(entry);
1233
- });
1234
- return retVal;
1235
- };
1236
- const de_GetAccountConfigurationResponse = (output, context) => {
1237
- return {
1238
- ExpiryEvents: output.ExpiryEvents != null ? de_ExpiryEventsConfiguration(output.ExpiryEvents, context) : undefined,
1239
- };
1240
- };
1241
- const de_GetCertificateResponse = (output, context) => {
1242
- return {
1243
- Certificate: __expectString(output.Certificate),
1244
- CertificateChain: __expectString(output.CertificateChain),
1245
- };
1246
- };
1247
- const de_ImportCertificateResponse = (output, context) => {
1248
- return {
1249
- CertificateArn: __expectString(output.CertificateArn),
1250
- };
1251
- };
1252
- const de_InUseList = (output, context) => {
1253
- const retVal = (output || [])
1254
- .filter((e) => e != null)
1255
- .map((entry) => {
1256
- if (entry === null) {
1257
- return null;
1258
- }
1259
- return __expectString(entry);
1260
- });
1261
- return retVal;
1262
- };
1263
- const de_InvalidArgsException = (output, context) => {
1264
- return {
1265
- message: __expectString(output.message),
1266
- };
1267
- };
1268
- const de_InvalidArnException = (output, context) => {
1269
- return {
1270
- message: __expectString(output.message),
1271
- };
1272
- };
1273
- const de_InvalidDomainValidationOptionsException = (output, context) => {
1274
- return {
1275
- message: __expectString(output.message),
1276
- };
1277
- };
1278
- const de_InvalidParameterException = (output, context) => {
1279
- return {
1280
- message: __expectString(output.message),
1281
- };
1282
- };
1283
- const de_InvalidStateException = (output, context) => {
1284
- return {
1285
- message: __expectString(output.message),
1286
- };
1287
- };
1288
- const de_InvalidTagException = (output, context) => {
1289
- return {
1290
- message: __expectString(output.message),
1291
- };
1292
- };
1293
- const de_KeyUsage = (output, context) => {
1294
- return {
1295
- Name: __expectString(output.Name),
1296
- };
1297
- };
1298
- const de_KeyUsageList = (output, context) => {
1299
- const retVal = (output || [])
1300
- .filter((e) => e != null)
1301
- .map((entry) => {
1302
- if (entry === null) {
1303
- return null;
1304
- }
1305
- return de_KeyUsage(entry, context);
1306
- });
1307
- return retVal;
1308
- };
1309
- const de_KeyUsageNames = (output, context) => {
1310
- const retVal = (output || [])
1311
- .filter((e) => e != null)
1312
- .map((entry) => {
1313
- if (entry === null) {
1314
- return null;
1315
- }
1316
- return __expectString(entry);
911
+ return take(output, {
912
+ Certificate: (_) => de_CertificateDetail(_, context),
1317
913
  });
1318
- return retVal;
1319
- };
1320
- const de_LimitExceededException = (output, context) => {
1321
- return {
1322
- message: __expectString(output.message),
1323
- };
1324
914
  };
1325
915
  const de_ListCertificatesResponse = (output, context) => {
1326
- return {
1327
- CertificateSummaryList: output.CertificateSummaryList != null
1328
- ? de_CertificateSummaryList(output.CertificateSummaryList, context)
1329
- : undefined,
1330
- NextToken: __expectString(output.NextToken),
1331
- };
1332
- };
1333
- const de_ListTagsForCertificateResponse = (output, context) => {
1334
- return {
1335
- Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
1336
- };
1337
- };
1338
- const de_RenewalSummary = (output, context) => {
1339
- return {
1340
- DomainValidationOptions: output.DomainValidationOptions != null
1341
- ? de_DomainValidationList(output.DomainValidationOptions, context)
1342
- : undefined,
1343
- RenewalStatus: __expectString(output.RenewalStatus),
1344
- RenewalStatusReason: __expectString(output.RenewalStatusReason),
1345
- UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
1346
- };
1347
- };
1348
- const de_RequestCertificateResponse = (output, context) => {
1349
- return {
1350
- CertificateArn: __expectString(output.CertificateArn),
1351
- };
1352
- };
1353
- const de_RequestInProgressException = (output, context) => {
1354
- return {
1355
- message: __expectString(output.message),
1356
- };
1357
- };
1358
- const de_ResourceInUseException = (output, context) => {
1359
- return {
1360
- message: __expectString(output.message),
1361
- };
1362
- };
1363
- const de_ResourceNotFoundException = (output, context) => {
1364
- return {
1365
- message: __expectString(output.message),
1366
- };
1367
- };
1368
- const de_ResourceRecord = (output, context) => {
1369
- return {
1370
- Name: __expectString(output.Name),
1371
- Type: __expectString(output.Type),
1372
- Value: __expectString(output.Value),
1373
- };
1374
- };
1375
- const de_Tag = (output, context) => {
1376
- return {
1377
- Key: __expectString(output.Key),
1378
- Value: __expectString(output.Value),
1379
- };
1380
- };
1381
- const de_TagList = (output, context) => {
1382
- const retVal = (output || [])
1383
- .filter((e) => e != null)
1384
- .map((entry) => {
1385
- if (entry === null) {
1386
- return null;
1387
- }
1388
- return de_Tag(entry, context);
916
+ return take(output, {
917
+ CertificateSummaryList: (_) => de_CertificateSummaryList(_, context),
918
+ NextToken: __expectString,
1389
919
  });
1390
- return retVal;
1391
- };
1392
- const de_TagPolicyException = (output, context) => {
1393
- return {
1394
- message: __expectString(output.message),
1395
- };
1396
- };
1397
- const de_ThrottlingException = (output, context) => {
1398
- return {
1399
- message: __expectString(output.message),
1400
- };
1401
- };
1402
- const de_TooManyTagsException = (output, context) => {
1403
- return {
1404
- message: __expectString(output.message),
1405
- };
1406
920
  };
1407
- const de_ValidationEmailList = (output, context) => {
1408
- const retVal = (output || [])
1409
- .filter((e) => e != null)
1410
- .map((entry) => {
1411
- if (entry === null) {
1412
- return null;
1413
- }
1414
- return __expectString(entry);
921
+ const de_RenewalSummary = (output, context) => {
922
+ return take(output, {
923
+ DomainValidationOptions: _json,
924
+ RenewalStatus: __expectString,
925
+ RenewalStatusReason: __expectString,
926
+ UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1415
927
  });
1416
- return retVal;
1417
- };
1418
- const de_ValidationException = (output, context) => {
1419
- return {
1420
- message: __expectString(output.message),
1421
- };
1422
928
  };
1423
929
  const deserializeMetadata = (output) => ({
1424
930
  httpStatusCode: output.statusCode,
@@ -1433,6 +939,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
1433
939
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
1434
940
  };
1435
941
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
942
+ const throwDefaultError = withBaseException(__BaseException);
1436
943
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1437
944
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1438
945
  const contents = {
@@ -1451,6 +958,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
1451
958
  }
1452
959
  return new __HttpRequest(contents);
1453
960
  };
961
+ function sharedHeaders(operation) {
962
+ return {
963
+ "content-type": "application/x-amz-json-1.1",
964
+ "x-amz-target": `CertificateManager.${operation}`,
965
+ };
966
+ }
1454
967
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1455
968
  if (encoded.length) {
1456
969
  return JSON.parse(encoded);