@aws-sdk/client-acm 3.927.0 → 3.928.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.
Files changed (40) hide show
  1. package/dist-cjs/index.js +728 -795
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/ACMClient.js +2 -0
  4. package/dist-es/commands/AddTagsToCertificateCommand.js +3 -9
  5. package/dist-es/commands/DeleteCertificateCommand.js +3 -9
  6. package/dist-es/commands/DescribeCertificateCommand.js +3 -9
  7. package/dist-es/commands/ExportCertificateCommand.js +3 -10
  8. package/dist-es/commands/GetAccountConfigurationCommand.js +3 -9
  9. package/dist-es/commands/GetCertificateCommand.js +3 -9
  10. package/dist-es/commands/ImportCertificateCommand.js +3 -10
  11. package/dist-es/commands/ListCertificatesCommand.js +3 -9
  12. package/dist-es/commands/ListTagsForCertificateCommand.js +3 -9
  13. package/dist-es/commands/PutAccountConfigurationCommand.js +3 -9
  14. package/dist-es/commands/RemoveTagsFromCertificateCommand.js +3 -9
  15. package/dist-es/commands/RenewCertificateCommand.js +3 -9
  16. package/dist-es/commands/RequestCertificateCommand.js +3 -9
  17. package/dist-es/commands/ResendValidationEmailCommand.js +3 -9
  18. package/dist-es/commands/RevokeCertificateCommand.js +3 -9
  19. package/dist-es/commands/UpdateCertificateOptionsCommand.js +3 -9
  20. package/dist-es/models/models_0.js +0 -13
  21. package/dist-es/runtimeConfig.shared.js +7 -0
  22. package/dist-es/schemas/schemas_0.js +655 -0
  23. package/dist-types/ACMClient.d.ts +10 -1
  24. package/dist-types/models/models_0.d.ts +0 -12
  25. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  26. package/dist-types/runtimeConfig.d.ts +1 -0
  27. package/dist-types/runtimeConfig.native.d.ts +1 -0
  28. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  29. package/dist-types/schemas/schemas_0.d.ts +90 -0
  30. package/dist-types/ts3.4/ACMClient.d.ts +4 -0
  31. package/dist-types/ts3.4/models/models_0.d.ts +0 -9
  32. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  33. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  34. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  35. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  36. package/dist-types/ts3.4/schemas/schemas_0.d.ts +96 -0
  37. package/package.json +5 -5
  38. package/dist-es/protocols/Aws_json1_1.js +0 -624
  39. package/dist-types/protocols/Aws_json1_1.d.ts +0 -146
  40. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -197
@@ -1,624 +0,0 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
- import { ACMServiceException as __BaseException } from "../models/ACMServiceException";
5
- import { AccessDeniedException, ConflictException, InvalidArgsException, InvalidArnException, InvalidDomainValidationOptionsException, InvalidParameterException, InvalidStateException, InvalidTagException, LimitExceededException, RequestInProgressException, ResourceInUseException, ResourceNotFoundException, TagPolicyException, ThrottlingException, TooManyTagsException, ValidationException, } from "../models/models_0";
6
- export const se_AddTagsToCertificateCommand = async (input, context) => {
7
- const headers = sharedHeaders("AddTagsToCertificate");
8
- let body;
9
- body = JSON.stringify(_json(input));
10
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
11
- };
12
- export const se_DeleteCertificateCommand = async (input, context) => {
13
- const headers = sharedHeaders("DeleteCertificate");
14
- let body;
15
- body = JSON.stringify(_json(input));
16
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
17
- };
18
- export const se_DescribeCertificateCommand = async (input, context) => {
19
- const headers = sharedHeaders("DescribeCertificate");
20
- let body;
21
- body = JSON.stringify(_json(input));
22
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
23
- };
24
- export const se_ExportCertificateCommand = async (input, context) => {
25
- const headers = sharedHeaders("ExportCertificate");
26
- let body;
27
- body = JSON.stringify(se_ExportCertificateRequest(input, context));
28
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
29
- };
30
- export const se_GetAccountConfigurationCommand = async (input, context) => {
31
- const headers = sharedHeaders("GetAccountConfiguration");
32
- const body = "{}";
33
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
34
- };
35
- export const se_GetCertificateCommand = async (input, context) => {
36
- const headers = sharedHeaders("GetCertificate");
37
- let body;
38
- body = JSON.stringify(_json(input));
39
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
40
- };
41
- export const se_ImportCertificateCommand = async (input, context) => {
42
- const headers = sharedHeaders("ImportCertificate");
43
- let body;
44
- body = JSON.stringify(se_ImportCertificateRequest(input, context));
45
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
46
- };
47
- export const se_ListCertificatesCommand = async (input, context) => {
48
- const headers = sharedHeaders("ListCertificates");
49
- let body;
50
- body = JSON.stringify(_json(input));
51
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
52
- };
53
- export const se_ListTagsForCertificateCommand = async (input, context) => {
54
- const headers = sharedHeaders("ListTagsForCertificate");
55
- let body;
56
- body = JSON.stringify(_json(input));
57
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
58
- };
59
- export const se_PutAccountConfigurationCommand = async (input, context) => {
60
- const headers = sharedHeaders("PutAccountConfiguration");
61
- let body;
62
- body = JSON.stringify(_json(input));
63
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
64
- };
65
- export const se_RemoveTagsFromCertificateCommand = async (input, context) => {
66
- const headers = sharedHeaders("RemoveTagsFromCertificate");
67
- let body;
68
- body = JSON.stringify(_json(input));
69
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
70
- };
71
- export const se_RenewCertificateCommand = async (input, context) => {
72
- const headers = sharedHeaders("RenewCertificate");
73
- let body;
74
- body = JSON.stringify(_json(input));
75
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
76
- };
77
- export const se_RequestCertificateCommand = async (input, context) => {
78
- const headers = sharedHeaders("RequestCertificate");
79
- let body;
80
- body = JSON.stringify(_json(input));
81
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
82
- };
83
- export const se_ResendValidationEmailCommand = async (input, context) => {
84
- const headers = sharedHeaders("ResendValidationEmail");
85
- let body;
86
- body = JSON.stringify(_json(input));
87
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
88
- };
89
- export const se_RevokeCertificateCommand = async (input, context) => {
90
- const headers = sharedHeaders("RevokeCertificate");
91
- let body;
92
- body = JSON.stringify(_json(input));
93
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
94
- };
95
- export const se_UpdateCertificateOptionsCommand = async (input, context) => {
96
- const headers = sharedHeaders("UpdateCertificateOptions");
97
- let body;
98
- body = JSON.stringify(_json(input));
99
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
100
- };
101
- export const de_AddTagsToCertificateCommand = async (output, context) => {
102
- if (output.statusCode >= 300) {
103
- return de_CommandError(output, context);
104
- }
105
- await collectBody(output.body, context);
106
- const response = {
107
- $metadata: deserializeMetadata(output),
108
- };
109
- return response;
110
- };
111
- export const de_DeleteCertificateCommand = async (output, context) => {
112
- if (output.statusCode >= 300) {
113
- return de_CommandError(output, context);
114
- }
115
- await collectBody(output.body, context);
116
- const response = {
117
- $metadata: deserializeMetadata(output),
118
- };
119
- return response;
120
- };
121
- export const de_DescribeCertificateCommand = async (output, context) => {
122
- if (output.statusCode >= 300) {
123
- return de_CommandError(output, context);
124
- }
125
- const data = await parseBody(output.body, context);
126
- let contents = {};
127
- contents = de_DescribeCertificateResponse(data, context);
128
- const response = {
129
- $metadata: deserializeMetadata(output),
130
- ...contents,
131
- };
132
- return response;
133
- };
134
- export const de_ExportCertificateCommand = async (output, context) => {
135
- if (output.statusCode >= 300) {
136
- return de_CommandError(output, context);
137
- }
138
- const data = await parseBody(output.body, context);
139
- let contents = {};
140
- contents = _json(data);
141
- const response = {
142
- $metadata: deserializeMetadata(output),
143
- ...contents,
144
- };
145
- return response;
146
- };
147
- export const de_GetAccountConfigurationCommand = async (output, context) => {
148
- if (output.statusCode >= 300) {
149
- return de_CommandError(output, context);
150
- }
151
- const data = await parseBody(output.body, context);
152
- let contents = {};
153
- contents = _json(data);
154
- const response = {
155
- $metadata: deserializeMetadata(output),
156
- ...contents,
157
- };
158
- return response;
159
- };
160
- export const de_GetCertificateCommand = async (output, context) => {
161
- if (output.statusCode >= 300) {
162
- return de_CommandError(output, context);
163
- }
164
- const data = await parseBody(output.body, context);
165
- let contents = {};
166
- contents = _json(data);
167
- const response = {
168
- $metadata: deserializeMetadata(output),
169
- ...contents,
170
- };
171
- return response;
172
- };
173
- export const de_ImportCertificateCommand = async (output, context) => {
174
- if (output.statusCode >= 300) {
175
- return de_CommandError(output, context);
176
- }
177
- const data = await parseBody(output.body, context);
178
- let contents = {};
179
- contents = _json(data);
180
- const response = {
181
- $metadata: deserializeMetadata(output),
182
- ...contents,
183
- };
184
- return response;
185
- };
186
- export const de_ListCertificatesCommand = async (output, context) => {
187
- if (output.statusCode >= 300) {
188
- return de_CommandError(output, context);
189
- }
190
- const data = await parseBody(output.body, context);
191
- let contents = {};
192
- contents = de_ListCertificatesResponse(data, context);
193
- const response = {
194
- $metadata: deserializeMetadata(output),
195
- ...contents,
196
- };
197
- return response;
198
- };
199
- export const de_ListTagsForCertificateCommand = async (output, context) => {
200
- if (output.statusCode >= 300) {
201
- return de_CommandError(output, context);
202
- }
203
- const data = await parseBody(output.body, context);
204
- let contents = {};
205
- contents = _json(data);
206
- const response = {
207
- $metadata: deserializeMetadata(output),
208
- ...contents,
209
- };
210
- return response;
211
- };
212
- export const de_PutAccountConfigurationCommand = async (output, context) => {
213
- if (output.statusCode >= 300) {
214
- return de_CommandError(output, context);
215
- }
216
- await collectBody(output.body, context);
217
- const response = {
218
- $metadata: deserializeMetadata(output),
219
- };
220
- return response;
221
- };
222
- export const de_RemoveTagsFromCertificateCommand = async (output, context) => {
223
- if (output.statusCode >= 300) {
224
- return de_CommandError(output, context);
225
- }
226
- await collectBody(output.body, context);
227
- const response = {
228
- $metadata: deserializeMetadata(output),
229
- };
230
- return response;
231
- };
232
- export const de_RenewCertificateCommand = async (output, context) => {
233
- if (output.statusCode >= 300) {
234
- return de_CommandError(output, context);
235
- }
236
- await collectBody(output.body, context);
237
- const response = {
238
- $metadata: deserializeMetadata(output),
239
- };
240
- return response;
241
- };
242
- export const de_RequestCertificateCommand = async (output, context) => {
243
- if (output.statusCode >= 300) {
244
- return de_CommandError(output, context);
245
- }
246
- const data = await parseBody(output.body, context);
247
- let contents = {};
248
- contents = _json(data);
249
- const response = {
250
- $metadata: deserializeMetadata(output),
251
- ...contents,
252
- };
253
- return response;
254
- };
255
- export const de_ResendValidationEmailCommand = async (output, context) => {
256
- if (output.statusCode >= 300) {
257
- return de_CommandError(output, context);
258
- }
259
- await collectBody(output.body, context);
260
- const response = {
261
- $metadata: deserializeMetadata(output),
262
- };
263
- return response;
264
- };
265
- export const de_RevokeCertificateCommand = async (output, context) => {
266
- if (output.statusCode >= 300) {
267
- return de_CommandError(output, context);
268
- }
269
- const data = await parseBody(output.body, context);
270
- let contents = {};
271
- contents = _json(data);
272
- const response = {
273
- $metadata: deserializeMetadata(output),
274
- ...contents,
275
- };
276
- return response;
277
- };
278
- export const de_UpdateCertificateOptionsCommand = async (output, context) => {
279
- if (output.statusCode >= 300) {
280
- return de_CommandError(output, context);
281
- }
282
- await collectBody(output.body, context);
283
- const response = {
284
- $metadata: deserializeMetadata(output),
285
- };
286
- return response;
287
- };
288
- const de_CommandError = async (output, context) => {
289
- const parsedOutput = {
290
- ...output,
291
- body: await parseErrorBody(output.body, context),
292
- };
293
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
294
- switch (errorCode) {
295
- case "InvalidArnException":
296
- case "com.amazonaws.acm#InvalidArnException":
297
- throw await de_InvalidArnExceptionRes(parsedOutput, context);
298
- case "InvalidParameterException":
299
- case "com.amazonaws.acm#InvalidParameterException":
300
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
301
- case "InvalidTagException":
302
- case "com.amazonaws.acm#InvalidTagException":
303
- throw await de_InvalidTagExceptionRes(parsedOutput, context);
304
- case "ResourceNotFoundException":
305
- case "com.amazonaws.acm#ResourceNotFoundException":
306
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
307
- case "TagPolicyException":
308
- case "com.amazonaws.acm#TagPolicyException":
309
- throw await de_TagPolicyExceptionRes(parsedOutput, context);
310
- case "ThrottlingException":
311
- case "com.amazonaws.acm#ThrottlingException":
312
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
313
- case "TooManyTagsException":
314
- case "com.amazonaws.acm#TooManyTagsException":
315
- throw await de_TooManyTagsExceptionRes(parsedOutput, context);
316
- case "AccessDeniedException":
317
- case "com.amazonaws.acm#AccessDeniedException":
318
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
319
- case "ConflictException":
320
- case "com.amazonaws.acm#ConflictException":
321
- throw await de_ConflictExceptionRes(parsedOutput, context);
322
- case "ResourceInUseException":
323
- case "com.amazonaws.acm#ResourceInUseException":
324
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
325
- case "RequestInProgressException":
326
- case "com.amazonaws.acm#RequestInProgressException":
327
- throw await de_RequestInProgressExceptionRes(parsedOutput, context);
328
- case "LimitExceededException":
329
- case "com.amazonaws.acm#LimitExceededException":
330
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
331
- case "InvalidArgsException":
332
- case "com.amazonaws.acm#InvalidArgsException":
333
- throw await de_InvalidArgsExceptionRes(parsedOutput, context);
334
- case "ValidationException":
335
- case "com.amazonaws.acm#ValidationException":
336
- throw await de_ValidationExceptionRes(parsedOutput, context);
337
- case "InvalidDomainValidationOptionsException":
338
- case "com.amazonaws.acm#InvalidDomainValidationOptionsException":
339
- throw await de_InvalidDomainValidationOptionsExceptionRes(parsedOutput, context);
340
- case "InvalidStateException":
341
- case "com.amazonaws.acm#InvalidStateException":
342
- throw await de_InvalidStateExceptionRes(parsedOutput, context);
343
- default:
344
- const parsedBody = parsedOutput.body;
345
- return throwDefaultError({
346
- output,
347
- parsedBody,
348
- errorCode,
349
- });
350
- }
351
- };
352
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
353
- const body = parsedOutput.body;
354
- const deserialized = _json(body);
355
- const exception = new AccessDeniedException({
356
- $metadata: deserializeMetadata(parsedOutput),
357
- ...deserialized,
358
- });
359
- return __decorateServiceException(exception, body);
360
- };
361
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
362
- const body = parsedOutput.body;
363
- const deserialized = _json(body);
364
- const exception = new ConflictException({
365
- $metadata: deserializeMetadata(parsedOutput),
366
- ...deserialized,
367
- });
368
- return __decorateServiceException(exception, body);
369
- };
370
- const de_InvalidArgsExceptionRes = async (parsedOutput, context) => {
371
- const body = parsedOutput.body;
372
- const deserialized = _json(body);
373
- const exception = new InvalidArgsException({
374
- $metadata: deserializeMetadata(parsedOutput),
375
- ...deserialized,
376
- });
377
- return __decorateServiceException(exception, body);
378
- };
379
- const de_InvalidArnExceptionRes = async (parsedOutput, context) => {
380
- const body = parsedOutput.body;
381
- const deserialized = _json(body);
382
- const exception = new InvalidArnException({
383
- $metadata: deserializeMetadata(parsedOutput),
384
- ...deserialized,
385
- });
386
- return __decorateServiceException(exception, body);
387
- };
388
- const de_InvalidDomainValidationOptionsExceptionRes = async (parsedOutput, context) => {
389
- const body = parsedOutput.body;
390
- const deserialized = _json(body);
391
- const exception = new InvalidDomainValidationOptionsException({
392
- $metadata: deserializeMetadata(parsedOutput),
393
- ...deserialized,
394
- });
395
- return __decorateServiceException(exception, body);
396
- };
397
- const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
398
- const body = parsedOutput.body;
399
- const deserialized = _json(body);
400
- const exception = new InvalidParameterException({
401
- $metadata: deserializeMetadata(parsedOutput),
402
- ...deserialized,
403
- });
404
- return __decorateServiceException(exception, body);
405
- };
406
- const de_InvalidStateExceptionRes = async (parsedOutput, context) => {
407
- const body = parsedOutput.body;
408
- const deserialized = _json(body);
409
- const exception = new InvalidStateException({
410
- $metadata: deserializeMetadata(parsedOutput),
411
- ...deserialized,
412
- });
413
- return __decorateServiceException(exception, body);
414
- };
415
- const de_InvalidTagExceptionRes = async (parsedOutput, context) => {
416
- const body = parsedOutput.body;
417
- const deserialized = _json(body);
418
- const exception = new InvalidTagException({
419
- $metadata: deserializeMetadata(parsedOutput),
420
- ...deserialized,
421
- });
422
- return __decorateServiceException(exception, body);
423
- };
424
- const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
425
- const body = parsedOutput.body;
426
- const deserialized = _json(body);
427
- const exception = new LimitExceededException({
428
- $metadata: deserializeMetadata(parsedOutput),
429
- ...deserialized,
430
- });
431
- return __decorateServiceException(exception, body);
432
- };
433
- const de_RequestInProgressExceptionRes = async (parsedOutput, context) => {
434
- const body = parsedOutput.body;
435
- const deserialized = _json(body);
436
- const exception = new RequestInProgressException({
437
- $metadata: deserializeMetadata(parsedOutput),
438
- ...deserialized,
439
- });
440
- return __decorateServiceException(exception, body);
441
- };
442
- const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
443
- const body = parsedOutput.body;
444
- const deserialized = _json(body);
445
- const exception = new ResourceInUseException({
446
- $metadata: deserializeMetadata(parsedOutput),
447
- ...deserialized,
448
- });
449
- return __decorateServiceException(exception, body);
450
- };
451
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
452
- const body = parsedOutput.body;
453
- const deserialized = _json(body);
454
- const exception = new ResourceNotFoundException({
455
- $metadata: deserializeMetadata(parsedOutput),
456
- ...deserialized,
457
- });
458
- return __decorateServiceException(exception, body);
459
- };
460
- const de_TagPolicyExceptionRes = async (parsedOutput, context) => {
461
- const body = parsedOutput.body;
462
- const deserialized = _json(body);
463
- const exception = new TagPolicyException({
464
- $metadata: deserializeMetadata(parsedOutput),
465
- ...deserialized,
466
- });
467
- return __decorateServiceException(exception, body);
468
- };
469
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
470
- const body = parsedOutput.body;
471
- const deserialized = _json(body);
472
- const exception = new ThrottlingException({
473
- $metadata: deserializeMetadata(parsedOutput),
474
- ...deserialized,
475
- });
476
- return __decorateServiceException(exception, body);
477
- };
478
- const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
479
- const body = parsedOutput.body;
480
- const deserialized = _json(body);
481
- const exception = new TooManyTagsException({
482
- $metadata: deserializeMetadata(parsedOutput),
483
- ...deserialized,
484
- });
485
- return __decorateServiceException(exception, body);
486
- };
487
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
488
- const body = parsedOutput.body;
489
- const deserialized = _json(body);
490
- const exception = new ValidationException({
491
- $metadata: deserializeMetadata(parsedOutput),
492
- ...deserialized,
493
- });
494
- return __decorateServiceException(exception, body);
495
- };
496
- const se_ExportCertificateRequest = (input, context) => {
497
- return take(input, {
498
- CertificateArn: [],
499
- Passphrase: context.base64Encoder,
500
- });
501
- };
502
- const se_ImportCertificateRequest = (input, context) => {
503
- return take(input, {
504
- Certificate: context.base64Encoder,
505
- CertificateArn: [],
506
- CertificateChain: context.base64Encoder,
507
- PrivateKey: context.base64Encoder,
508
- Tags: _json,
509
- });
510
- };
511
- const de_CertificateDetail = (output, context) => {
512
- return take(output, {
513
- CertificateArn: __expectString,
514
- CertificateAuthorityArn: __expectString,
515
- CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
516
- DomainName: __expectString,
517
- DomainValidationOptions: _json,
518
- ExtendedKeyUsages: _json,
519
- FailureReason: __expectString,
520
- ImportedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
521
- InUseBy: _json,
522
- IssuedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
523
- Issuer: __expectString,
524
- KeyAlgorithm: __expectString,
525
- KeyUsages: _json,
526
- ManagedBy: __expectString,
527
- NotAfter: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
528
- NotBefore: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
529
- Options: _json,
530
- RenewalEligibility: __expectString,
531
- RenewalSummary: (_) => de_RenewalSummary(_, context),
532
- RevocationReason: __expectString,
533
- RevokedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
534
- Serial: __expectString,
535
- SignatureAlgorithm: __expectString,
536
- Status: __expectString,
537
- Subject: __expectString,
538
- SubjectAlternativeNames: _json,
539
- Type: __expectString,
540
- });
541
- };
542
- const de_CertificateSummary = (output, context) => {
543
- return take(output, {
544
- CertificateArn: __expectString,
545
- CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
546
- DomainName: __expectString,
547
- ExportOption: __expectString,
548
- Exported: __expectBoolean,
549
- ExtendedKeyUsages: _json,
550
- HasAdditionalSubjectAlternativeNames: __expectBoolean,
551
- ImportedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
552
- InUse: __expectBoolean,
553
- IssuedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
554
- KeyAlgorithm: __expectString,
555
- KeyUsages: _json,
556
- ManagedBy: __expectString,
557
- NotAfter: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
558
- NotBefore: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
559
- RenewalEligibility: __expectString,
560
- RevokedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
561
- Status: __expectString,
562
- SubjectAlternativeNameSummaries: _json,
563
- Type: __expectString,
564
- });
565
- };
566
- const de_CertificateSummaryList = (output, context) => {
567
- const retVal = (output || [])
568
- .filter((e) => e != null)
569
- .map((entry) => {
570
- return de_CertificateSummary(entry, context);
571
- });
572
- return retVal;
573
- };
574
- const de_DescribeCertificateResponse = (output, context) => {
575
- return take(output, {
576
- Certificate: (_) => de_CertificateDetail(_, context),
577
- });
578
- };
579
- const de_ListCertificatesResponse = (output, context) => {
580
- return take(output, {
581
- CertificateSummaryList: (_) => de_CertificateSummaryList(_, context),
582
- NextToken: __expectString,
583
- });
584
- };
585
- const de_RenewalSummary = (output, context) => {
586
- return take(output, {
587
- DomainValidationOptions: _json,
588
- RenewalStatus: __expectString,
589
- RenewalStatusReason: __expectString,
590
- UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
591
- });
592
- };
593
- const deserializeMetadata = (output) => ({
594
- httpStatusCode: output.statusCode,
595
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
596
- extendedRequestId: output.headers["x-amz-id-2"],
597
- cfId: output.headers["x-amz-cf-id"],
598
- });
599
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
600
- const throwDefaultError = withBaseException(__BaseException);
601
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
602
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
603
- const contents = {
604
- protocol,
605
- hostname,
606
- port,
607
- method: "POST",
608
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
609
- headers,
610
- };
611
- if (resolvedHostname !== undefined) {
612
- contents.hostname = resolvedHostname;
613
- }
614
- if (body !== undefined) {
615
- contents.body = body;
616
- }
617
- return new __HttpRequest(contents);
618
- };
619
- function sharedHeaders(operation) {
620
- return {
621
- "content-type": "application/x-amz-json-1.1",
622
- "x-amz-target": `CertificateManager.${operation}`,
623
- };
624
- }