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