@aws-sdk/client-acm-pca 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 +150 -877
- package/dist-es/protocols/Aws_json1_1.js +151 -878
- package/package.json +6 -6
|
@@ -8,84 +8,84 @@ const models_0_1 = require("../models/models_0");
|
|
|
8
8
|
const se_CreateCertificateAuthorityCommand = async (input, context) => {
|
|
9
9
|
const headers = sharedHeaders("CreateCertificateAuthority");
|
|
10
10
|
let body;
|
|
11
|
-
body = JSON.stringify(
|
|
11
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
12
12
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
13
|
};
|
|
14
14
|
exports.se_CreateCertificateAuthorityCommand = se_CreateCertificateAuthorityCommand;
|
|
15
15
|
const se_CreateCertificateAuthorityAuditReportCommand = async (input, context) => {
|
|
16
16
|
const headers = sharedHeaders("CreateCertificateAuthorityAuditReport");
|
|
17
17
|
let body;
|
|
18
|
-
body = JSON.stringify(
|
|
18
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
19
19
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
20
20
|
};
|
|
21
21
|
exports.se_CreateCertificateAuthorityAuditReportCommand = se_CreateCertificateAuthorityAuditReportCommand;
|
|
22
22
|
const se_CreatePermissionCommand = async (input, context) => {
|
|
23
23
|
const headers = sharedHeaders("CreatePermission");
|
|
24
24
|
let body;
|
|
25
|
-
body = JSON.stringify(
|
|
25
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
26
26
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
27
|
};
|
|
28
28
|
exports.se_CreatePermissionCommand = se_CreatePermissionCommand;
|
|
29
29
|
const se_DeleteCertificateAuthorityCommand = async (input, context) => {
|
|
30
30
|
const headers = sharedHeaders("DeleteCertificateAuthority");
|
|
31
31
|
let body;
|
|
32
|
-
body = JSON.stringify(
|
|
32
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
33
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
34
34
|
};
|
|
35
35
|
exports.se_DeleteCertificateAuthorityCommand = se_DeleteCertificateAuthorityCommand;
|
|
36
36
|
const se_DeletePermissionCommand = async (input, context) => {
|
|
37
37
|
const headers = sharedHeaders("DeletePermission");
|
|
38
38
|
let body;
|
|
39
|
-
body = JSON.stringify(
|
|
39
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
40
40
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
41
|
};
|
|
42
42
|
exports.se_DeletePermissionCommand = se_DeletePermissionCommand;
|
|
43
43
|
const se_DeletePolicyCommand = async (input, context) => {
|
|
44
44
|
const headers = sharedHeaders("DeletePolicy");
|
|
45
45
|
let body;
|
|
46
|
-
body = JSON.stringify(
|
|
46
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
47
47
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
48
48
|
};
|
|
49
49
|
exports.se_DeletePolicyCommand = se_DeletePolicyCommand;
|
|
50
50
|
const se_DescribeCertificateAuthorityCommand = async (input, context) => {
|
|
51
51
|
const headers = sharedHeaders("DescribeCertificateAuthority");
|
|
52
52
|
let body;
|
|
53
|
-
body = JSON.stringify(
|
|
53
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
54
54
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
55
55
|
};
|
|
56
56
|
exports.se_DescribeCertificateAuthorityCommand = se_DescribeCertificateAuthorityCommand;
|
|
57
57
|
const se_DescribeCertificateAuthorityAuditReportCommand = async (input, context) => {
|
|
58
58
|
const headers = sharedHeaders("DescribeCertificateAuthorityAuditReport");
|
|
59
59
|
let body;
|
|
60
|
-
body = JSON.stringify(
|
|
60
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
61
61
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
62
62
|
};
|
|
63
63
|
exports.se_DescribeCertificateAuthorityAuditReportCommand = se_DescribeCertificateAuthorityAuditReportCommand;
|
|
64
64
|
const se_GetCertificateCommand = async (input, context) => {
|
|
65
65
|
const headers = sharedHeaders("GetCertificate");
|
|
66
66
|
let body;
|
|
67
|
-
body = JSON.stringify(
|
|
67
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
68
68
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
69
69
|
};
|
|
70
70
|
exports.se_GetCertificateCommand = se_GetCertificateCommand;
|
|
71
71
|
const se_GetCertificateAuthorityCertificateCommand = async (input, context) => {
|
|
72
72
|
const headers = sharedHeaders("GetCertificateAuthorityCertificate");
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
75
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
76
|
};
|
|
77
77
|
exports.se_GetCertificateAuthorityCertificateCommand = se_GetCertificateAuthorityCertificateCommand;
|
|
78
78
|
const se_GetCertificateAuthorityCsrCommand = async (input, context) => {
|
|
79
79
|
const headers = sharedHeaders("GetCertificateAuthorityCsr");
|
|
80
80
|
let body;
|
|
81
|
-
body = JSON.stringify(
|
|
81
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
82
82
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
83
83
|
};
|
|
84
84
|
exports.se_GetCertificateAuthorityCsrCommand = se_GetCertificateAuthorityCsrCommand;
|
|
85
85
|
const se_GetPolicyCommand = async (input, context) => {
|
|
86
86
|
const headers = sharedHeaders("GetPolicy");
|
|
87
87
|
let body;
|
|
88
|
-
body = JSON.stringify(
|
|
88
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
89
89
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
90
90
|
};
|
|
91
91
|
exports.se_GetPolicyCommand = se_GetPolicyCommand;
|
|
@@ -106,63 +106,63 @@ exports.se_IssueCertificateCommand = se_IssueCertificateCommand;
|
|
|
106
106
|
const se_ListCertificateAuthoritiesCommand = async (input, context) => {
|
|
107
107
|
const headers = sharedHeaders("ListCertificateAuthorities");
|
|
108
108
|
let body;
|
|
109
|
-
body = JSON.stringify(
|
|
109
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
110
110
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
111
111
|
};
|
|
112
112
|
exports.se_ListCertificateAuthoritiesCommand = se_ListCertificateAuthoritiesCommand;
|
|
113
113
|
const se_ListPermissionsCommand = async (input, context) => {
|
|
114
114
|
const headers = sharedHeaders("ListPermissions");
|
|
115
115
|
let body;
|
|
116
|
-
body = JSON.stringify(
|
|
116
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
117
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
118
118
|
};
|
|
119
119
|
exports.se_ListPermissionsCommand = se_ListPermissionsCommand;
|
|
120
120
|
const se_ListTagsCommand = async (input, context) => {
|
|
121
121
|
const headers = sharedHeaders("ListTags");
|
|
122
122
|
let body;
|
|
123
|
-
body = JSON.stringify(
|
|
123
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
124
124
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
125
|
};
|
|
126
126
|
exports.se_ListTagsCommand = se_ListTagsCommand;
|
|
127
127
|
const se_PutPolicyCommand = async (input, context) => {
|
|
128
128
|
const headers = sharedHeaders("PutPolicy");
|
|
129
129
|
let body;
|
|
130
|
-
body = JSON.stringify(
|
|
130
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
131
131
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
132
132
|
};
|
|
133
133
|
exports.se_PutPolicyCommand = se_PutPolicyCommand;
|
|
134
134
|
const se_RestoreCertificateAuthorityCommand = async (input, context) => {
|
|
135
135
|
const headers = sharedHeaders("RestoreCertificateAuthority");
|
|
136
136
|
let body;
|
|
137
|
-
body = JSON.stringify(
|
|
137
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
138
138
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
139
|
};
|
|
140
140
|
exports.se_RestoreCertificateAuthorityCommand = se_RestoreCertificateAuthorityCommand;
|
|
141
141
|
const se_RevokeCertificateCommand = async (input, context) => {
|
|
142
142
|
const headers = sharedHeaders("RevokeCertificate");
|
|
143
143
|
let body;
|
|
144
|
-
body = JSON.stringify(
|
|
144
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
145
145
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
146
146
|
};
|
|
147
147
|
exports.se_RevokeCertificateCommand = se_RevokeCertificateCommand;
|
|
148
148
|
const se_TagCertificateAuthorityCommand = async (input, context) => {
|
|
149
149
|
const headers = sharedHeaders("TagCertificateAuthority");
|
|
150
150
|
let body;
|
|
151
|
-
body = JSON.stringify(
|
|
151
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
152
152
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
153
153
|
};
|
|
154
154
|
exports.se_TagCertificateAuthorityCommand = se_TagCertificateAuthorityCommand;
|
|
155
155
|
const se_UntagCertificateAuthorityCommand = async (input, context) => {
|
|
156
156
|
const headers = sharedHeaders("UntagCertificateAuthority");
|
|
157
157
|
let body;
|
|
158
|
-
body = JSON.stringify(
|
|
158
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
159
159
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
160
160
|
};
|
|
161
161
|
exports.se_UntagCertificateAuthorityCommand = se_UntagCertificateAuthorityCommand;
|
|
162
162
|
const se_UpdateCertificateAuthorityCommand = async (input, context) => {
|
|
163
163
|
const headers = sharedHeaders("UpdateCertificateAuthority");
|
|
164
164
|
let body;
|
|
165
|
-
body = JSON.stringify(
|
|
165
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
166
166
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
167
|
};
|
|
168
168
|
exports.se_UpdateCertificateAuthorityCommand = se_UpdateCertificateAuthorityCommand;
|
|
@@ -172,12 +172,12 @@ const de_CreateCertificateAuthorityCommand = async (output, context) => {
|
|
|
172
172
|
}
|
|
173
173
|
const data = await parseBody(output.body, context);
|
|
174
174
|
let contents = {};
|
|
175
|
-
contents =
|
|
175
|
+
contents = (0, smithy_client_1._json)(data);
|
|
176
176
|
const response = {
|
|
177
177
|
$metadata: deserializeMetadata(output),
|
|
178
178
|
...contents,
|
|
179
179
|
};
|
|
180
|
-
return
|
|
180
|
+
return response;
|
|
181
181
|
};
|
|
182
182
|
exports.de_CreateCertificateAuthorityCommand = de_CreateCertificateAuthorityCommand;
|
|
183
183
|
const de_CreateCertificateAuthorityCommandError = async (output, context) => {
|
|
@@ -201,10 +201,9 @@ const de_CreateCertificateAuthorityCommandError = async (output, context) => {
|
|
|
201
201
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
202
202
|
default:
|
|
203
203
|
const parsedBody = parsedOutput.body;
|
|
204
|
-
|
|
204
|
+
return throwDefaultError({
|
|
205
205
|
output,
|
|
206
206
|
parsedBody,
|
|
207
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
208
207
|
errorCode,
|
|
209
208
|
});
|
|
210
209
|
}
|
|
@@ -215,12 +214,12 @@ const de_CreateCertificateAuthorityAuditReportCommand = async (output, context)
|
|
|
215
214
|
}
|
|
216
215
|
const data = await parseBody(output.body, context);
|
|
217
216
|
let contents = {};
|
|
218
|
-
contents =
|
|
217
|
+
contents = (0, smithy_client_1._json)(data);
|
|
219
218
|
const response = {
|
|
220
219
|
$metadata: deserializeMetadata(output),
|
|
221
220
|
...contents,
|
|
222
221
|
};
|
|
223
|
-
return
|
|
222
|
+
return response;
|
|
224
223
|
};
|
|
225
224
|
exports.de_CreateCertificateAuthorityAuditReportCommand = de_CreateCertificateAuthorityAuditReportCommand;
|
|
226
225
|
const de_CreateCertificateAuthorityAuditReportCommandError = async (output, context) => {
|
|
@@ -250,10 +249,9 @@ const de_CreateCertificateAuthorityAuditReportCommandError = async (output, cont
|
|
|
250
249
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
251
250
|
default:
|
|
252
251
|
const parsedBody = parsedOutput.body;
|
|
253
|
-
|
|
252
|
+
return throwDefaultError({
|
|
254
253
|
output,
|
|
255
254
|
parsedBody,
|
|
256
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
257
255
|
errorCode,
|
|
258
256
|
});
|
|
259
257
|
}
|
|
@@ -266,7 +264,7 @@ const de_CreatePermissionCommand = async (output, context) => {
|
|
|
266
264
|
const response = {
|
|
267
265
|
$metadata: deserializeMetadata(output),
|
|
268
266
|
};
|
|
269
|
-
return
|
|
267
|
+
return response;
|
|
270
268
|
};
|
|
271
269
|
exports.de_CreatePermissionCommand = de_CreatePermissionCommand;
|
|
272
270
|
const de_CreatePermissionCommandError = async (output, context) => {
|
|
@@ -296,10 +294,9 @@ const de_CreatePermissionCommandError = async (output, context) => {
|
|
|
296
294
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
297
295
|
default:
|
|
298
296
|
const parsedBody = parsedOutput.body;
|
|
299
|
-
|
|
297
|
+
return throwDefaultError({
|
|
300
298
|
output,
|
|
301
299
|
parsedBody,
|
|
302
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
303
300
|
errorCode,
|
|
304
301
|
});
|
|
305
302
|
}
|
|
@@ -312,7 +309,7 @@ const de_DeleteCertificateAuthorityCommand = async (output, context) => {
|
|
|
312
309
|
const response = {
|
|
313
310
|
$metadata: deserializeMetadata(output),
|
|
314
311
|
};
|
|
315
|
-
return
|
|
312
|
+
return response;
|
|
316
313
|
};
|
|
317
314
|
exports.de_DeleteCertificateAuthorityCommand = de_DeleteCertificateAuthorityCommand;
|
|
318
315
|
const de_DeleteCertificateAuthorityCommandError = async (output, context) => {
|
|
@@ -336,10 +333,9 @@ const de_DeleteCertificateAuthorityCommandError = async (output, context) => {
|
|
|
336
333
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
337
334
|
default:
|
|
338
335
|
const parsedBody = parsedOutput.body;
|
|
339
|
-
|
|
336
|
+
return throwDefaultError({
|
|
340
337
|
output,
|
|
341
338
|
parsedBody,
|
|
342
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
343
339
|
errorCode,
|
|
344
340
|
});
|
|
345
341
|
}
|
|
@@ -352,7 +348,7 @@ const de_DeletePermissionCommand = async (output, context) => {
|
|
|
352
348
|
const response = {
|
|
353
349
|
$metadata: deserializeMetadata(output),
|
|
354
350
|
};
|
|
355
|
-
return
|
|
351
|
+
return response;
|
|
356
352
|
};
|
|
357
353
|
exports.de_DeletePermissionCommand = de_DeletePermissionCommand;
|
|
358
354
|
const de_DeletePermissionCommandError = async (output, context) => {
|
|
@@ -376,10 +372,9 @@ const de_DeletePermissionCommandError = async (output, context) => {
|
|
|
376
372
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
377
373
|
default:
|
|
378
374
|
const parsedBody = parsedOutput.body;
|
|
379
|
-
|
|
375
|
+
return throwDefaultError({
|
|
380
376
|
output,
|
|
381
377
|
parsedBody,
|
|
382
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
383
378
|
errorCode,
|
|
384
379
|
});
|
|
385
380
|
}
|
|
@@ -392,7 +387,7 @@ const de_DeletePolicyCommand = async (output, context) => {
|
|
|
392
387
|
const response = {
|
|
393
388
|
$metadata: deserializeMetadata(output),
|
|
394
389
|
};
|
|
395
|
-
return
|
|
390
|
+
return response;
|
|
396
391
|
};
|
|
397
392
|
exports.de_DeletePolicyCommand = de_DeletePolicyCommand;
|
|
398
393
|
const de_DeletePolicyCommandError = async (output, context) => {
|
|
@@ -422,10 +417,9 @@ const de_DeletePolicyCommandError = async (output, context) => {
|
|
|
422
417
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
423
418
|
default:
|
|
424
419
|
const parsedBody = parsedOutput.body;
|
|
425
|
-
|
|
420
|
+
return throwDefaultError({
|
|
426
421
|
output,
|
|
427
422
|
parsedBody,
|
|
428
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
429
423
|
errorCode,
|
|
430
424
|
});
|
|
431
425
|
}
|
|
@@ -441,7 +435,7 @@ const de_DescribeCertificateAuthorityCommand = async (output, context) => {
|
|
|
441
435
|
$metadata: deserializeMetadata(output),
|
|
442
436
|
...contents,
|
|
443
437
|
};
|
|
444
|
-
return
|
|
438
|
+
return response;
|
|
445
439
|
};
|
|
446
440
|
exports.de_DescribeCertificateAuthorityCommand = de_DescribeCertificateAuthorityCommand;
|
|
447
441
|
const de_DescribeCertificateAuthorityCommandError = async (output, context) => {
|
|
@@ -459,10 +453,9 @@ const de_DescribeCertificateAuthorityCommandError = async (output, context) => {
|
|
|
459
453
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
460
454
|
default:
|
|
461
455
|
const parsedBody = parsedOutput.body;
|
|
462
|
-
|
|
456
|
+
return throwDefaultError({
|
|
463
457
|
output,
|
|
464
458
|
parsedBody,
|
|
465
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
466
459
|
errorCode,
|
|
467
460
|
});
|
|
468
461
|
}
|
|
@@ -478,7 +471,7 @@ const de_DescribeCertificateAuthorityAuditReportCommand = async (output, context
|
|
|
478
471
|
$metadata: deserializeMetadata(output),
|
|
479
472
|
...contents,
|
|
480
473
|
};
|
|
481
|
-
return
|
|
474
|
+
return response;
|
|
482
475
|
};
|
|
483
476
|
exports.de_DescribeCertificateAuthorityAuditReportCommand = de_DescribeCertificateAuthorityAuditReportCommand;
|
|
484
477
|
const de_DescribeCertificateAuthorityAuditReportCommandError = async (output, context) => {
|
|
@@ -499,10 +492,9 @@ const de_DescribeCertificateAuthorityAuditReportCommandError = async (output, co
|
|
|
499
492
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
500
493
|
default:
|
|
501
494
|
const parsedBody = parsedOutput.body;
|
|
502
|
-
|
|
495
|
+
return throwDefaultError({
|
|
503
496
|
output,
|
|
504
497
|
parsedBody,
|
|
505
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
506
498
|
errorCode,
|
|
507
499
|
});
|
|
508
500
|
}
|
|
@@ -513,12 +505,12 @@ const de_GetCertificateCommand = async (output, context) => {
|
|
|
513
505
|
}
|
|
514
506
|
const data = await parseBody(output.body, context);
|
|
515
507
|
let contents = {};
|
|
516
|
-
contents =
|
|
508
|
+
contents = (0, smithy_client_1._json)(data);
|
|
517
509
|
const response = {
|
|
518
510
|
$metadata: deserializeMetadata(output),
|
|
519
511
|
...contents,
|
|
520
512
|
};
|
|
521
|
-
return
|
|
513
|
+
return response;
|
|
522
514
|
};
|
|
523
515
|
exports.de_GetCertificateCommand = de_GetCertificateCommand;
|
|
524
516
|
const de_GetCertificateCommandError = async (output, context) => {
|
|
@@ -545,10 +537,9 @@ const de_GetCertificateCommandError = async (output, context) => {
|
|
|
545
537
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
546
538
|
default:
|
|
547
539
|
const parsedBody = parsedOutput.body;
|
|
548
|
-
|
|
540
|
+
return throwDefaultError({
|
|
549
541
|
output,
|
|
550
542
|
parsedBody,
|
|
551
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
552
543
|
errorCode,
|
|
553
544
|
});
|
|
554
545
|
}
|
|
@@ -559,12 +550,12 @@ const de_GetCertificateAuthorityCertificateCommand = async (output, context) =>
|
|
|
559
550
|
}
|
|
560
551
|
const data = await parseBody(output.body, context);
|
|
561
552
|
let contents = {};
|
|
562
|
-
contents =
|
|
553
|
+
contents = (0, smithy_client_1._json)(data);
|
|
563
554
|
const response = {
|
|
564
555
|
$metadata: deserializeMetadata(output),
|
|
565
556
|
...contents,
|
|
566
557
|
};
|
|
567
|
-
return
|
|
558
|
+
return response;
|
|
568
559
|
};
|
|
569
560
|
exports.de_GetCertificateAuthorityCertificateCommand = de_GetCertificateAuthorityCertificateCommand;
|
|
570
561
|
const de_GetCertificateAuthorityCertificateCommandError = async (output, context) => {
|
|
@@ -585,10 +576,9 @@ const de_GetCertificateAuthorityCertificateCommandError = async (output, context
|
|
|
585
576
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
586
577
|
default:
|
|
587
578
|
const parsedBody = parsedOutput.body;
|
|
588
|
-
|
|
579
|
+
return throwDefaultError({
|
|
589
580
|
output,
|
|
590
581
|
parsedBody,
|
|
591
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
592
582
|
errorCode,
|
|
593
583
|
});
|
|
594
584
|
}
|
|
@@ -599,12 +589,12 @@ const de_GetCertificateAuthorityCsrCommand = async (output, context) => {
|
|
|
599
589
|
}
|
|
600
590
|
const data = await parseBody(output.body, context);
|
|
601
591
|
let contents = {};
|
|
602
|
-
contents =
|
|
592
|
+
contents = (0, smithy_client_1._json)(data);
|
|
603
593
|
const response = {
|
|
604
594
|
$metadata: deserializeMetadata(output),
|
|
605
595
|
...contents,
|
|
606
596
|
};
|
|
607
|
-
return
|
|
597
|
+
return response;
|
|
608
598
|
};
|
|
609
599
|
exports.de_GetCertificateAuthorityCsrCommand = de_GetCertificateAuthorityCsrCommand;
|
|
610
600
|
const de_GetCertificateAuthorityCsrCommandError = async (output, context) => {
|
|
@@ -631,10 +621,9 @@ const de_GetCertificateAuthorityCsrCommandError = async (output, context) => {
|
|
|
631
621
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
632
622
|
default:
|
|
633
623
|
const parsedBody = parsedOutput.body;
|
|
634
|
-
|
|
624
|
+
return throwDefaultError({
|
|
635
625
|
output,
|
|
636
626
|
parsedBody,
|
|
637
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
638
627
|
errorCode,
|
|
639
628
|
});
|
|
640
629
|
}
|
|
@@ -645,12 +634,12 @@ const de_GetPolicyCommand = async (output, context) => {
|
|
|
645
634
|
}
|
|
646
635
|
const data = await parseBody(output.body, context);
|
|
647
636
|
let contents = {};
|
|
648
|
-
contents =
|
|
637
|
+
contents = (0, smithy_client_1._json)(data);
|
|
649
638
|
const response = {
|
|
650
639
|
$metadata: deserializeMetadata(output),
|
|
651
640
|
...contents,
|
|
652
641
|
};
|
|
653
|
-
return
|
|
642
|
+
return response;
|
|
654
643
|
};
|
|
655
644
|
exports.de_GetPolicyCommand = de_GetPolicyCommand;
|
|
656
645
|
const de_GetPolicyCommandError = async (output, context) => {
|
|
@@ -674,10 +663,9 @@ const de_GetPolicyCommandError = async (output, context) => {
|
|
|
674
663
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
675
664
|
default:
|
|
676
665
|
const parsedBody = parsedOutput.body;
|
|
677
|
-
|
|
666
|
+
return throwDefaultError({
|
|
678
667
|
output,
|
|
679
668
|
parsedBody,
|
|
680
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
681
669
|
errorCode,
|
|
682
670
|
});
|
|
683
671
|
}
|
|
@@ -690,7 +678,7 @@ const de_ImportCertificateAuthorityCertificateCommand = async (output, context)
|
|
|
690
678
|
const response = {
|
|
691
679
|
$metadata: deserializeMetadata(output),
|
|
692
680
|
};
|
|
693
|
-
return
|
|
681
|
+
return response;
|
|
694
682
|
};
|
|
695
683
|
exports.de_ImportCertificateAuthorityCertificateCommand = de_ImportCertificateAuthorityCertificateCommand;
|
|
696
684
|
const de_ImportCertificateAuthorityCertificateCommandError = async (output, context) => {
|
|
@@ -729,10 +717,9 @@ const de_ImportCertificateAuthorityCertificateCommandError = async (output, cont
|
|
|
729
717
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
730
718
|
default:
|
|
731
719
|
const parsedBody = parsedOutput.body;
|
|
732
|
-
|
|
720
|
+
return throwDefaultError({
|
|
733
721
|
output,
|
|
734
722
|
parsedBody,
|
|
735
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
736
723
|
errorCode,
|
|
737
724
|
});
|
|
738
725
|
}
|
|
@@ -743,12 +730,12 @@ const de_IssueCertificateCommand = async (output, context) => {
|
|
|
743
730
|
}
|
|
744
731
|
const data = await parseBody(output.body, context);
|
|
745
732
|
let contents = {};
|
|
746
|
-
contents =
|
|
733
|
+
contents = (0, smithy_client_1._json)(data);
|
|
747
734
|
const response = {
|
|
748
735
|
$metadata: deserializeMetadata(output),
|
|
749
736
|
...contents,
|
|
750
737
|
};
|
|
751
|
-
return
|
|
738
|
+
return response;
|
|
752
739
|
};
|
|
753
740
|
exports.de_IssueCertificateCommand = de_IssueCertificateCommand;
|
|
754
741
|
const de_IssueCertificateCommandError = async (output, context) => {
|
|
@@ -778,10 +765,9 @@ const de_IssueCertificateCommandError = async (output, context) => {
|
|
|
778
765
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
779
766
|
default:
|
|
780
767
|
const parsedBody = parsedOutput.body;
|
|
781
|
-
|
|
768
|
+
return throwDefaultError({
|
|
782
769
|
output,
|
|
783
770
|
parsedBody,
|
|
784
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
785
771
|
errorCode,
|
|
786
772
|
});
|
|
787
773
|
}
|
|
@@ -797,7 +783,7 @@ const de_ListCertificateAuthoritiesCommand = async (output, context) => {
|
|
|
797
783
|
$metadata: deserializeMetadata(output),
|
|
798
784
|
...contents,
|
|
799
785
|
};
|
|
800
|
-
return
|
|
786
|
+
return response;
|
|
801
787
|
};
|
|
802
788
|
exports.de_ListCertificateAuthoritiesCommand = de_ListCertificateAuthoritiesCommand;
|
|
803
789
|
const de_ListCertificateAuthoritiesCommandError = async (output, context) => {
|
|
@@ -812,10 +798,9 @@ const de_ListCertificateAuthoritiesCommandError = async (output, context) => {
|
|
|
812
798
|
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
813
799
|
default:
|
|
814
800
|
const parsedBody = parsedOutput.body;
|
|
815
|
-
|
|
801
|
+
return throwDefaultError({
|
|
816
802
|
output,
|
|
817
803
|
parsedBody,
|
|
818
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
819
804
|
errorCode,
|
|
820
805
|
});
|
|
821
806
|
}
|
|
@@ -831,7 +816,7 @@ const de_ListPermissionsCommand = async (output, context) => {
|
|
|
831
816
|
$metadata: deserializeMetadata(output),
|
|
832
817
|
...contents,
|
|
833
818
|
};
|
|
834
|
-
return
|
|
819
|
+
return response;
|
|
835
820
|
};
|
|
836
821
|
exports.de_ListPermissionsCommand = de_ListPermissionsCommand;
|
|
837
822
|
const de_ListPermissionsCommandError = async (output, context) => {
|
|
@@ -858,10 +843,9 @@ const de_ListPermissionsCommandError = async (output, context) => {
|
|
|
858
843
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
859
844
|
default:
|
|
860
845
|
const parsedBody = parsedOutput.body;
|
|
861
|
-
|
|
846
|
+
return throwDefaultError({
|
|
862
847
|
output,
|
|
863
848
|
parsedBody,
|
|
864
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
865
849
|
errorCode,
|
|
866
850
|
});
|
|
867
851
|
}
|
|
@@ -872,12 +856,12 @@ const de_ListTagsCommand = async (output, context) => {
|
|
|
872
856
|
}
|
|
873
857
|
const data = await parseBody(output.body, context);
|
|
874
858
|
let contents = {};
|
|
875
|
-
contents =
|
|
859
|
+
contents = (0, smithy_client_1._json)(data);
|
|
876
860
|
const response = {
|
|
877
861
|
$metadata: deserializeMetadata(output),
|
|
878
862
|
...contents,
|
|
879
863
|
};
|
|
880
|
-
return
|
|
864
|
+
return response;
|
|
881
865
|
};
|
|
882
866
|
exports.de_ListTagsCommand = de_ListTagsCommand;
|
|
883
867
|
const de_ListTagsCommandError = async (output, context) => {
|
|
@@ -898,10 +882,9 @@ const de_ListTagsCommandError = async (output, context) => {
|
|
|
898
882
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
899
883
|
default:
|
|
900
884
|
const parsedBody = parsedOutput.body;
|
|
901
|
-
|
|
885
|
+
return throwDefaultError({
|
|
902
886
|
output,
|
|
903
887
|
parsedBody,
|
|
904
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
905
888
|
errorCode,
|
|
906
889
|
});
|
|
907
890
|
}
|
|
@@ -914,7 +897,7 @@ const de_PutPolicyCommand = async (output, context) => {
|
|
|
914
897
|
const response = {
|
|
915
898
|
$metadata: deserializeMetadata(output),
|
|
916
899
|
};
|
|
917
|
-
return
|
|
900
|
+
return response;
|
|
918
901
|
};
|
|
919
902
|
exports.de_PutPolicyCommand = de_PutPolicyCommand;
|
|
920
903
|
const de_PutPolicyCommandError = async (output, context) => {
|
|
@@ -947,10 +930,9 @@ const de_PutPolicyCommandError = async (output, context) => {
|
|
|
947
930
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
948
931
|
default:
|
|
949
932
|
const parsedBody = parsedOutput.body;
|
|
950
|
-
|
|
933
|
+
return throwDefaultError({
|
|
951
934
|
output,
|
|
952
935
|
parsedBody,
|
|
953
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
954
936
|
errorCode,
|
|
955
937
|
});
|
|
956
938
|
}
|
|
@@ -963,7 +945,7 @@ const de_RestoreCertificateAuthorityCommand = async (output, context) => {
|
|
|
963
945
|
const response = {
|
|
964
946
|
$metadata: deserializeMetadata(output),
|
|
965
947
|
};
|
|
966
|
-
return
|
|
948
|
+
return response;
|
|
967
949
|
};
|
|
968
950
|
exports.de_RestoreCertificateAuthorityCommand = de_RestoreCertificateAuthorityCommand;
|
|
969
951
|
const de_RestoreCertificateAuthorityCommandError = async (output, context) => {
|
|
@@ -984,10 +966,9 @@ const de_RestoreCertificateAuthorityCommandError = async (output, context) => {
|
|
|
984
966
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
985
967
|
default:
|
|
986
968
|
const parsedBody = parsedOutput.body;
|
|
987
|
-
|
|
969
|
+
return throwDefaultError({
|
|
988
970
|
output,
|
|
989
971
|
parsedBody,
|
|
990
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
991
972
|
errorCode,
|
|
992
973
|
});
|
|
993
974
|
}
|
|
@@ -1000,7 +981,7 @@ const de_RevokeCertificateCommand = async (output, context) => {
|
|
|
1000
981
|
const response = {
|
|
1001
982
|
$metadata: deserializeMetadata(output),
|
|
1002
983
|
};
|
|
1003
|
-
return
|
|
984
|
+
return response;
|
|
1004
985
|
};
|
|
1005
986
|
exports.de_RevokeCertificateCommand = de_RevokeCertificateCommand;
|
|
1006
987
|
const de_RevokeCertificateCommandError = async (output, context) => {
|
|
@@ -1039,10 +1020,9 @@ const de_RevokeCertificateCommandError = async (output, context) => {
|
|
|
1039
1020
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1040
1021
|
default:
|
|
1041
1022
|
const parsedBody = parsedOutput.body;
|
|
1042
|
-
|
|
1023
|
+
return throwDefaultError({
|
|
1043
1024
|
output,
|
|
1044
1025
|
parsedBody,
|
|
1045
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
1046
1026
|
errorCode,
|
|
1047
1027
|
});
|
|
1048
1028
|
}
|
|
@@ -1055,7 +1035,7 @@ const de_TagCertificateAuthorityCommand = async (output, context) => {
|
|
|
1055
1035
|
const response = {
|
|
1056
1036
|
$metadata: deserializeMetadata(output),
|
|
1057
1037
|
};
|
|
1058
|
-
return
|
|
1038
|
+
return response;
|
|
1059
1039
|
};
|
|
1060
1040
|
exports.de_TagCertificateAuthorityCommand = de_TagCertificateAuthorityCommand;
|
|
1061
1041
|
const de_TagCertificateAuthorityCommandError = async (output, context) => {
|
|
@@ -1082,10 +1062,9 @@ const de_TagCertificateAuthorityCommandError = async (output, context) => {
|
|
|
1082
1062
|
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1083
1063
|
default:
|
|
1084
1064
|
const parsedBody = parsedOutput.body;
|
|
1085
|
-
|
|
1065
|
+
return throwDefaultError({
|
|
1086
1066
|
output,
|
|
1087
1067
|
parsedBody,
|
|
1088
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
1089
1068
|
errorCode,
|
|
1090
1069
|
});
|
|
1091
1070
|
}
|
|
@@ -1098,7 +1077,7 @@ const de_UntagCertificateAuthorityCommand = async (output, context) => {
|
|
|
1098
1077
|
const response = {
|
|
1099
1078
|
$metadata: deserializeMetadata(output),
|
|
1100
1079
|
};
|
|
1101
|
-
return
|
|
1080
|
+
return response;
|
|
1102
1081
|
};
|
|
1103
1082
|
exports.de_UntagCertificateAuthorityCommand = de_UntagCertificateAuthorityCommand;
|
|
1104
1083
|
const de_UntagCertificateAuthorityCommandError = async (output, context) => {
|
|
@@ -1122,10 +1101,9 @@ const de_UntagCertificateAuthorityCommandError = async (output, context) => {
|
|
|
1122
1101
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1123
1102
|
default:
|
|
1124
1103
|
const parsedBody = parsedOutput.body;
|
|
1125
|
-
|
|
1104
|
+
return throwDefaultError({
|
|
1126
1105
|
output,
|
|
1127
1106
|
parsedBody,
|
|
1128
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
1129
1107
|
errorCode,
|
|
1130
1108
|
});
|
|
1131
1109
|
}
|
|
@@ -1138,7 +1116,7 @@ const de_UpdateCertificateAuthorityCommand = async (output, context) => {
|
|
|
1138
1116
|
const response = {
|
|
1139
1117
|
$metadata: deserializeMetadata(output),
|
|
1140
1118
|
};
|
|
1141
|
-
return
|
|
1119
|
+
return response;
|
|
1142
1120
|
};
|
|
1143
1121
|
exports.de_UpdateCertificateAuthorityCommand = de_UpdateCertificateAuthorityCommand;
|
|
1144
1122
|
const de_UpdateCertificateAuthorityCommandError = async (output, context) => {
|
|
@@ -1168,17 +1146,16 @@ const de_UpdateCertificateAuthorityCommandError = async (output, context) => {
|
|
|
1168
1146
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1169
1147
|
default:
|
|
1170
1148
|
const parsedBody = parsedOutput.body;
|
|
1171
|
-
|
|
1149
|
+
return throwDefaultError({
|
|
1172
1150
|
output,
|
|
1173
1151
|
parsedBody,
|
|
1174
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
1175
1152
|
errorCode,
|
|
1176
1153
|
});
|
|
1177
1154
|
}
|
|
1178
1155
|
};
|
|
1179
1156
|
const de_CertificateMismatchExceptionRes = async (parsedOutput, context) => {
|
|
1180
1157
|
const body = parsedOutput.body;
|
|
1181
|
-
const deserialized =
|
|
1158
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1182
1159
|
const exception = new models_0_1.CertificateMismatchException({
|
|
1183
1160
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1184
1161
|
...deserialized,
|
|
@@ -1187,7 +1164,7 @@ const de_CertificateMismatchExceptionRes = async (parsedOutput, context) => {
|
|
|
1187
1164
|
};
|
|
1188
1165
|
const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
1189
1166
|
const body = parsedOutput.body;
|
|
1190
|
-
const deserialized =
|
|
1167
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1191
1168
|
const exception = new models_0_1.ConcurrentModificationException({
|
|
1192
1169
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1193
1170
|
...deserialized,
|
|
@@ -1196,7 +1173,7 @@ const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
|
1196
1173
|
};
|
|
1197
1174
|
const de_InvalidArgsExceptionRes = async (parsedOutput, context) => {
|
|
1198
1175
|
const body = parsedOutput.body;
|
|
1199
|
-
const deserialized =
|
|
1176
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1200
1177
|
const exception = new models_0_1.InvalidArgsException({
|
|
1201
1178
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1202
1179
|
...deserialized,
|
|
@@ -1205,7 +1182,7 @@ const de_InvalidArgsExceptionRes = async (parsedOutput, context) => {
|
|
|
1205
1182
|
};
|
|
1206
1183
|
const de_InvalidArnExceptionRes = async (parsedOutput, context) => {
|
|
1207
1184
|
const body = parsedOutput.body;
|
|
1208
|
-
const deserialized =
|
|
1185
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1209
1186
|
const exception = new models_0_1.InvalidArnException({
|
|
1210
1187
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1211
1188
|
...deserialized,
|
|
@@ -1214,7 +1191,7 @@ const de_InvalidArnExceptionRes = async (parsedOutput, context) => {
|
|
|
1214
1191
|
};
|
|
1215
1192
|
const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
1216
1193
|
const body = parsedOutput.body;
|
|
1217
|
-
const deserialized =
|
|
1194
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1218
1195
|
const exception = new models_0_1.InvalidNextTokenException({
|
|
1219
1196
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1220
1197
|
...deserialized,
|
|
@@ -1223,7 +1200,7 @@ const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
|
1223
1200
|
};
|
|
1224
1201
|
const de_InvalidPolicyExceptionRes = async (parsedOutput, context) => {
|
|
1225
1202
|
const body = parsedOutput.body;
|
|
1226
|
-
const deserialized =
|
|
1203
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1227
1204
|
const exception = new models_0_1.InvalidPolicyException({
|
|
1228
1205
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1229
1206
|
...deserialized,
|
|
@@ -1232,7 +1209,7 @@ const de_InvalidPolicyExceptionRes = async (parsedOutput, context) => {
|
|
|
1232
1209
|
};
|
|
1233
1210
|
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
1234
1211
|
const body = parsedOutput.body;
|
|
1235
|
-
const deserialized =
|
|
1212
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1236
1213
|
const exception = new models_0_1.InvalidRequestException({
|
|
1237
1214
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1238
1215
|
...deserialized,
|
|
@@ -1241,7 +1218,7 @@ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
1241
1218
|
};
|
|
1242
1219
|
const de_InvalidStateExceptionRes = async (parsedOutput, context) => {
|
|
1243
1220
|
const body = parsedOutput.body;
|
|
1244
|
-
const deserialized =
|
|
1221
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1245
1222
|
const exception = new models_0_1.InvalidStateException({
|
|
1246
1223
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1247
1224
|
...deserialized,
|
|
@@ -1250,7 +1227,7 @@ const de_InvalidStateExceptionRes = async (parsedOutput, context) => {
|
|
|
1250
1227
|
};
|
|
1251
1228
|
const de_InvalidTagExceptionRes = async (parsedOutput, context) => {
|
|
1252
1229
|
const body = parsedOutput.body;
|
|
1253
|
-
const deserialized =
|
|
1230
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1254
1231
|
const exception = new models_0_1.InvalidTagException({
|
|
1255
1232
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1256
1233
|
...deserialized,
|
|
@@ -1259,7 +1236,7 @@ const de_InvalidTagExceptionRes = async (parsedOutput, context) => {
|
|
|
1259
1236
|
};
|
|
1260
1237
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1261
1238
|
const body = parsedOutput.body;
|
|
1262
|
-
const deserialized =
|
|
1239
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1263
1240
|
const exception = new models_0_1.LimitExceededException({
|
|
1264
1241
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1265
1242
|
...deserialized,
|
|
@@ -1268,7 +1245,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1268
1245
|
};
|
|
1269
1246
|
const de_LockoutPreventedExceptionRes = async (parsedOutput, context) => {
|
|
1270
1247
|
const body = parsedOutput.body;
|
|
1271
|
-
const deserialized =
|
|
1248
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1272
1249
|
const exception = new models_0_1.LockoutPreventedException({
|
|
1273
1250
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1274
1251
|
...deserialized,
|
|
@@ -1277,7 +1254,7 @@ const de_LockoutPreventedExceptionRes = async (parsedOutput, context) => {
|
|
|
1277
1254
|
};
|
|
1278
1255
|
const de_MalformedCertificateExceptionRes = async (parsedOutput, context) => {
|
|
1279
1256
|
const body = parsedOutput.body;
|
|
1280
|
-
const deserialized =
|
|
1257
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1281
1258
|
const exception = new models_0_1.MalformedCertificateException({
|
|
1282
1259
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1283
1260
|
...deserialized,
|
|
@@ -1286,7 +1263,7 @@ const de_MalformedCertificateExceptionRes = async (parsedOutput, context) => {
|
|
|
1286
1263
|
};
|
|
1287
1264
|
const de_MalformedCSRExceptionRes = async (parsedOutput, context) => {
|
|
1288
1265
|
const body = parsedOutput.body;
|
|
1289
|
-
const deserialized =
|
|
1266
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1290
1267
|
const exception = new models_0_1.MalformedCSRException({
|
|
1291
1268
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1292
1269
|
...deserialized,
|
|
@@ -1295,7 +1272,7 @@ const de_MalformedCSRExceptionRes = async (parsedOutput, context) => {
|
|
|
1295
1272
|
};
|
|
1296
1273
|
const de_PermissionAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1297
1274
|
const body = parsedOutput.body;
|
|
1298
|
-
const deserialized =
|
|
1275
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1299
1276
|
const exception = new models_0_1.PermissionAlreadyExistsException({
|
|
1300
1277
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1301
1278
|
...deserialized,
|
|
@@ -1304,7 +1281,7 @@ const de_PermissionAlreadyExistsExceptionRes = async (parsedOutput, context) =>
|
|
|
1304
1281
|
};
|
|
1305
1282
|
const de_RequestAlreadyProcessedExceptionRes = async (parsedOutput, context) => {
|
|
1306
1283
|
const body = parsedOutput.body;
|
|
1307
|
-
const deserialized =
|
|
1284
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1308
1285
|
const exception = new models_0_1.RequestAlreadyProcessedException({
|
|
1309
1286
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1310
1287
|
...deserialized,
|
|
@@ -1313,7 +1290,7 @@ const de_RequestAlreadyProcessedExceptionRes = async (parsedOutput, context) =>
|
|
|
1313
1290
|
};
|
|
1314
1291
|
const de_RequestFailedExceptionRes = async (parsedOutput, context) => {
|
|
1315
1292
|
const body = parsedOutput.body;
|
|
1316
|
-
const deserialized =
|
|
1293
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1317
1294
|
const exception = new models_0_1.RequestFailedException({
|
|
1318
1295
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1319
1296
|
...deserialized,
|
|
@@ -1322,7 +1299,7 @@ const de_RequestFailedExceptionRes = async (parsedOutput, context) => {
|
|
|
1322
1299
|
};
|
|
1323
1300
|
const de_RequestInProgressExceptionRes = async (parsedOutput, context) => {
|
|
1324
1301
|
const body = parsedOutput.body;
|
|
1325
|
-
const deserialized =
|
|
1302
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1326
1303
|
const exception = new models_0_1.RequestInProgressException({
|
|
1327
1304
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1328
1305
|
...deserialized,
|
|
@@ -1331,7 +1308,7 @@ const de_RequestInProgressExceptionRes = async (parsedOutput, context) => {
|
|
|
1331
1308
|
};
|
|
1332
1309
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1333
1310
|
const body = parsedOutput.body;
|
|
1334
|
-
const deserialized =
|
|
1311
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1335
1312
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
1336
1313
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1337
1314
|
...deserialized,
|
|
@@ -1340,807 +1317,102 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1340
1317
|
};
|
|
1341
1318
|
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
1342
1319
|
const body = parsedOutput.body;
|
|
1343
|
-
const deserialized =
|
|
1320
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1344
1321
|
const exception = new models_0_1.TooManyTagsException({
|
|
1345
1322
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1346
1323
|
...deserialized,
|
|
1347
1324
|
});
|
|
1348
1325
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1349
1326
|
};
|
|
1350
|
-
const se_AccessDescription = (input, context) => {
|
|
1351
|
-
return {
|
|
1352
|
-
...(input.AccessLocation != null && { AccessLocation: se_GeneralName(input.AccessLocation, context) }),
|
|
1353
|
-
...(input.AccessMethod != null && { AccessMethod: se_AccessMethod(input.AccessMethod, context) }),
|
|
1354
|
-
};
|
|
1355
|
-
};
|
|
1356
|
-
const se_AccessDescriptionList = (input, context) => {
|
|
1357
|
-
return input
|
|
1358
|
-
.filter((e) => e != null)
|
|
1359
|
-
.map((entry) => {
|
|
1360
|
-
return se_AccessDescription(entry, context);
|
|
1361
|
-
});
|
|
1362
|
-
};
|
|
1363
|
-
const se_AccessMethod = (input, context) => {
|
|
1364
|
-
return {
|
|
1365
|
-
...(input.AccessMethodType != null && { AccessMethodType: input.AccessMethodType }),
|
|
1366
|
-
...(input.CustomObjectIdentifier != null && { CustomObjectIdentifier: input.CustomObjectIdentifier }),
|
|
1367
|
-
};
|
|
1368
|
-
};
|
|
1369
|
-
const se_ActionList = (input, context) => {
|
|
1370
|
-
return input
|
|
1371
|
-
.filter((e) => e != null)
|
|
1372
|
-
.map((entry) => {
|
|
1373
|
-
return entry;
|
|
1374
|
-
});
|
|
1375
|
-
};
|
|
1376
|
-
const se_ApiPassthrough = (input, context) => {
|
|
1377
|
-
return {
|
|
1378
|
-
...(input.Extensions != null && { Extensions: se_Extensions(input.Extensions, context) }),
|
|
1379
|
-
...(input.Subject != null && { Subject: se_ASN1Subject(input.Subject, context) }),
|
|
1380
|
-
};
|
|
1381
|
-
};
|
|
1382
|
-
const se_ASN1Subject = (input, context) => {
|
|
1383
|
-
return {
|
|
1384
|
-
...(input.CommonName != null && { CommonName: input.CommonName }),
|
|
1385
|
-
...(input.Country != null && { Country: input.Country }),
|
|
1386
|
-
...(input.CustomAttributes != null && {
|
|
1387
|
-
CustomAttributes: se_CustomAttributeList(input.CustomAttributes, context),
|
|
1388
|
-
}),
|
|
1389
|
-
...(input.DistinguishedNameQualifier != null && { DistinguishedNameQualifier: input.DistinguishedNameQualifier }),
|
|
1390
|
-
...(input.GenerationQualifier != null && { GenerationQualifier: input.GenerationQualifier }),
|
|
1391
|
-
...(input.GivenName != null && { GivenName: input.GivenName }),
|
|
1392
|
-
...(input.Initials != null && { Initials: input.Initials }),
|
|
1393
|
-
...(input.Locality != null && { Locality: input.Locality }),
|
|
1394
|
-
...(input.Organization != null && { Organization: input.Organization }),
|
|
1395
|
-
...(input.OrganizationalUnit != null && { OrganizationalUnit: input.OrganizationalUnit }),
|
|
1396
|
-
...(input.Pseudonym != null && { Pseudonym: input.Pseudonym }),
|
|
1397
|
-
...(input.SerialNumber != null && { SerialNumber: input.SerialNumber }),
|
|
1398
|
-
...(input.State != null && { State: input.State }),
|
|
1399
|
-
...(input.Surname != null && { Surname: input.Surname }),
|
|
1400
|
-
...(input.Title != null && { Title: input.Title }),
|
|
1401
|
-
};
|
|
1402
|
-
};
|
|
1403
|
-
const se_CertificateAuthorityConfiguration = (input, context) => {
|
|
1404
|
-
return {
|
|
1405
|
-
...(input.CsrExtensions != null && { CsrExtensions: se_CsrExtensions(input.CsrExtensions, context) }),
|
|
1406
|
-
...(input.KeyAlgorithm != null && { KeyAlgorithm: input.KeyAlgorithm }),
|
|
1407
|
-
...(input.SigningAlgorithm != null && { SigningAlgorithm: input.SigningAlgorithm }),
|
|
1408
|
-
...(input.Subject != null && { Subject: se_ASN1Subject(input.Subject, context) }),
|
|
1409
|
-
};
|
|
1410
|
-
};
|
|
1411
|
-
const se_CertificatePolicyList = (input, context) => {
|
|
1412
|
-
return input
|
|
1413
|
-
.filter((e) => e != null)
|
|
1414
|
-
.map((entry) => {
|
|
1415
|
-
return se_PolicyInformation(entry, context);
|
|
1416
|
-
});
|
|
1417
|
-
};
|
|
1418
|
-
const se_CreateCertificateAuthorityAuditReportRequest = (input, context) => {
|
|
1419
|
-
return {
|
|
1420
|
-
...(input.AuditReportResponseFormat != null && { AuditReportResponseFormat: input.AuditReportResponseFormat }),
|
|
1421
|
-
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1422
|
-
...(input.S3BucketName != null && { S3BucketName: input.S3BucketName }),
|
|
1423
|
-
};
|
|
1424
|
-
};
|
|
1425
|
-
const se_CreateCertificateAuthorityRequest = (input, context) => {
|
|
1426
|
-
return {
|
|
1427
|
-
...(input.CertificateAuthorityConfiguration != null && {
|
|
1428
|
-
CertificateAuthorityConfiguration: se_CertificateAuthorityConfiguration(input.CertificateAuthorityConfiguration, context),
|
|
1429
|
-
}),
|
|
1430
|
-
...(input.CertificateAuthorityType != null && { CertificateAuthorityType: input.CertificateAuthorityType }),
|
|
1431
|
-
...(input.IdempotencyToken != null && { IdempotencyToken: input.IdempotencyToken }),
|
|
1432
|
-
...(input.KeyStorageSecurityStandard != null && { KeyStorageSecurityStandard: input.KeyStorageSecurityStandard }),
|
|
1433
|
-
...(input.RevocationConfiguration != null && {
|
|
1434
|
-
RevocationConfiguration: se_RevocationConfiguration(input.RevocationConfiguration, context),
|
|
1435
|
-
}),
|
|
1436
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1437
|
-
...(input.UsageMode != null && { UsageMode: input.UsageMode }),
|
|
1438
|
-
};
|
|
1439
|
-
};
|
|
1440
|
-
const se_CreatePermissionRequest = (input, context) => {
|
|
1441
|
-
return {
|
|
1442
|
-
...(input.Actions != null && { Actions: se_ActionList(input.Actions, context) }),
|
|
1443
|
-
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1444
|
-
...(input.Principal != null && { Principal: input.Principal }),
|
|
1445
|
-
...(input.SourceAccount != null && { SourceAccount: input.SourceAccount }),
|
|
1446
|
-
};
|
|
1447
|
-
};
|
|
1448
|
-
const se_CrlConfiguration = (input, context) => {
|
|
1449
|
-
return {
|
|
1450
|
-
...(input.CustomCname != null && { CustomCname: input.CustomCname }),
|
|
1451
|
-
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
1452
|
-
...(input.ExpirationInDays != null && { ExpirationInDays: input.ExpirationInDays }),
|
|
1453
|
-
...(input.S3BucketName != null && { S3BucketName: input.S3BucketName }),
|
|
1454
|
-
...(input.S3ObjectAcl != null && { S3ObjectAcl: input.S3ObjectAcl }),
|
|
1455
|
-
};
|
|
1456
|
-
};
|
|
1457
|
-
const se_CsrExtensions = (input, context) => {
|
|
1458
|
-
return {
|
|
1459
|
-
...(input.KeyUsage != null && { KeyUsage: se_KeyUsage(input.KeyUsage, context) }),
|
|
1460
|
-
...(input.SubjectInformationAccess != null && {
|
|
1461
|
-
SubjectInformationAccess: se_AccessDescriptionList(input.SubjectInformationAccess, context),
|
|
1462
|
-
}),
|
|
1463
|
-
};
|
|
1464
|
-
};
|
|
1465
|
-
const se_CustomAttribute = (input, context) => {
|
|
1466
|
-
return {
|
|
1467
|
-
...(input.ObjectIdentifier != null && { ObjectIdentifier: input.ObjectIdentifier }),
|
|
1468
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1469
|
-
};
|
|
1470
|
-
};
|
|
1471
|
-
const se_CustomAttributeList = (input, context) => {
|
|
1472
|
-
return input
|
|
1473
|
-
.filter((e) => e != null)
|
|
1474
|
-
.map((entry) => {
|
|
1475
|
-
return se_CustomAttribute(entry, context);
|
|
1476
|
-
});
|
|
1477
|
-
};
|
|
1478
|
-
const se_CustomExtension = (input, context) => {
|
|
1479
|
-
return {
|
|
1480
|
-
...(input.Critical != null && { Critical: input.Critical }),
|
|
1481
|
-
...(input.ObjectIdentifier != null && { ObjectIdentifier: input.ObjectIdentifier }),
|
|
1482
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1483
|
-
};
|
|
1484
|
-
};
|
|
1485
|
-
const se_CustomExtensionList = (input, context) => {
|
|
1486
|
-
return input
|
|
1487
|
-
.filter((e) => e != null)
|
|
1488
|
-
.map((entry) => {
|
|
1489
|
-
return se_CustomExtension(entry, context);
|
|
1490
|
-
});
|
|
1491
|
-
};
|
|
1492
|
-
const se_DeleteCertificateAuthorityRequest = (input, context) => {
|
|
1493
|
-
return {
|
|
1494
|
-
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1495
|
-
...(input.PermanentDeletionTimeInDays != null && {
|
|
1496
|
-
PermanentDeletionTimeInDays: input.PermanentDeletionTimeInDays,
|
|
1497
|
-
}),
|
|
1498
|
-
};
|
|
1499
|
-
};
|
|
1500
|
-
const se_DeletePermissionRequest = (input, context) => {
|
|
1501
|
-
return {
|
|
1502
|
-
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1503
|
-
...(input.Principal != null && { Principal: input.Principal }),
|
|
1504
|
-
...(input.SourceAccount != null && { SourceAccount: input.SourceAccount }),
|
|
1505
|
-
};
|
|
1506
|
-
};
|
|
1507
|
-
const se_DeletePolicyRequest = (input, context) => {
|
|
1508
|
-
return {
|
|
1509
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1510
|
-
};
|
|
1511
|
-
};
|
|
1512
|
-
const se_DescribeCertificateAuthorityAuditReportRequest = (input, context) => {
|
|
1513
|
-
return {
|
|
1514
|
-
...(input.AuditReportId != null && { AuditReportId: input.AuditReportId }),
|
|
1515
|
-
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1516
|
-
};
|
|
1517
|
-
};
|
|
1518
|
-
const se_DescribeCertificateAuthorityRequest = (input, context) => {
|
|
1519
|
-
return {
|
|
1520
|
-
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1521
|
-
};
|
|
1522
|
-
};
|
|
1523
|
-
const se_EdiPartyName = (input, context) => {
|
|
1524
|
-
return {
|
|
1525
|
-
...(input.NameAssigner != null && { NameAssigner: input.NameAssigner }),
|
|
1526
|
-
...(input.PartyName != null && { PartyName: input.PartyName }),
|
|
1527
|
-
};
|
|
1528
|
-
};
|
|
1529
|
-
const se_ExtendedKeyUsage = (input, context) => {
|
|
1530
|
-
return {
|
|
1531
|
-
...(input.ExtendedKeyUsageObjectIdentifier != null && {
|
|
1532
|
-
ExtendedKeyUsageObjectIdentifier: input.ExtendedKeyUsageObjectIdentifier,
|
|
1533
|
-
}),
|
|
1534
|
-
...(input.ExtendedKeyUsageType != null && { ExtendedKeyUsageType: input.ExtendedKeyUsageType }),
|
|
1535
|
-
};
|
|
1536
|
-
};
|
|
1537
|
-
const se_ExtendedKeyUsageList = (input, context) => {
|
|
1538
|
-
return input
|
|
1539
|
-
.filter((e) => e != null)
|
|
1540
|
-
.map((entry) => {
|
|
1541
|
-
return se_ExtendedKeyUsage(entry, context);
|
|
1542
|
-
});
|
|
1543
|
-
};
|
|
1544
|
-
const se_Extensions = (input, context) => {
|
|
1545
|
-
return {
|
|
1546
|
-
...(input.CertificatePolicies != null && {
|
|
1547
|
-
CertificatePolicies: se_CertificatePolicyList(input.CertificatePolicies, context),
|
|
1548
|
-
}),
|
|
1549
|
-
...(input.CustomExtensions != null && {
|
|
1550
|
-
CustomExtensions: se_CustomExtensionList(input.CustomExtensions, context),
|
|
1551
|
-
}),
|
|
1552
|
-
...(input.ExtendedKeyUsage != null && {
|
|
1553
|
-
ExtendedKeyUsage: se_ExtendedKeyUsageList(input.ExtendedKeyUsage, context),
|
|
1554
|
-
}),
|
|
1555
|
-
...(input.KeyUsage != null && { KeyUsage: se_KeyUsage(input.KeyUsage, context) }),
|
|
1556
|
-
...(input.SubjectAlternativeNames != null && {
|
|
1557
|
-
SubjectAlternativeNames: se_GeneralNameList(input.SubjectAlternativeNames, context),
|
|
1558
|
-
}),
|
|
1559
|
-
};
|
|
1560
|
-
};
|
|
1561
|
-
const se_GeneralName = (input, context) => {
|
|
1562
|
-
return {
|
|
1563
|
-
...(input.DirectoryName != null && { DirectoryName: se_ASN1Subject(input.DirectoryName, context) }),
|
|
1564
|
-
...(input.DnsName != null && { DnsName: input.DnsName }),
|
|
1565
|
-
...(input.EdiPartyName != null && { EdiPartyName: se_EdiPartyName(input.EdiPartyName, context) }),
|
|
1566
|
-
...(input.IpAddress != null && { IpAddress: input.IpAddress }),
|
|
1567
|
-
...(input.OtherName != null && { OtherName: se_OtherName(input.OtherName, context) }),
|
|
1568
|
-
...(input.RegisteredId != null && { RegisteredId: input.RegisteredId }),
|
|
1569
|
-
...(input.Rfc822Name != null && { Rfc822Name: input.Rfc822Name }),
|
|
1570
|
-
...(input.UniformResourceIdentifier != null && { UniformResourceIdentifier: input.UniformResourceIdentifier }),
|
|
1571
|
-
};
|
|
1572
|
-
};
|
|
1573
|
-
const se_GeneralNameList = (input, context) => {
|
|
1574
|
-
return input
|
|
1575
|
-
.filter((e) => e != null)
|
|
1576
|
-
.map((entry) => {
|
|
1577
|
-
return se_GeneralName(entry, context);
|
|
1578
|
-
});
|
|
1579
|
-
};
|
|
1580
|
-
const se_GetCertificateAuthorityCertificateRequest = (input, context) => {
|
|
1581
|
-
return {
|
|
1582
|
-
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1583
|
-
};
|
|
1584
|
-
};
|
|
1585
|
-
const se_GetCertificateAuthorityCsrRequest = (input, context) => {
|
|
1586
|
-
return {
|
|
1587
|
-
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1588
|
-
};
|
|
1589
|
-
};
|
|
1590
|
-
const se_GetCertificateRequest = (input, context) => {
|
|
1591
|
-
return {
|
|
1592
|
-
...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
|
|
1593
|
-
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1594
|
-
};
|
|
1595
|
-
};
|
|
1596
|
-
const se_GetPolicyRequest = (input, context) => {
|
|
1597
|
-
return {
|
|
1598
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1599
|
-
};
|
|
1600
|
-
};
|
|
1601
1327
|
const se_ImportCertificateAuthorityCertificateRequest = (input, context) => {
|
|
1602
|
-
return {
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
};
|
|
1607
|
-
};
|
|
1608
|
-
const se_IssueCertificateRequest = (input, context) => {
|
|
1609
|
-
return {
|
|
1610
|
-
...(input.ApiPassthrough != null && { ApiPassthrough: se_ApiPassthrough(input.ApiPassthrough, context) }),
|
|
1611
|
-
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1612
|
-
...(input.Csr != null && { Csr: context.base64Encoder(input.Csr) }),
|
|
1613
|
-
...(input.IdempotencyToken != null && { IdempotencyToken: input.IdempotencyToken }),
|
|
1614
|
-
...(input.SigningAlgorithm != null && { SigningAlgorithm: input.SigningAlgorithm }),
|
|
1615
|
-
...(input.TemplateArn != null && { TemplateArn: input.TemplateArn }),
|
|
1616
|
-
...(input.Validity != null && { Validity: se_Validity(input.Validity, context) }),
|
|
1617
|
-
...(input.ValidityNotBefore != null && { ValidityNotBefore: se_Validity(input.ValidityNotBefore, context) }),
|
|
1618
|
-
};
|
|
1619
|
-
};
|
|
1620
|
-
const se_KeyUsage = (input, context) => {
|
|
1621
|
-
return {
|
|
1622
|
-
...(input.CRLSign != null && { CRLSign: input.CRLSign }),
|
|
1623
|
-
...(input.DataEncipherment != null && { DataEncipherment: input.DataEncipherment }),
|
|
1624
|
-
...(input.DecipherOnly != null && { DecipherOnly: input.DecipherOnly }),
|
|
1625
|
-
...(input.DigitalSignature != null && { DigitalSignature: input.DigitalSignature }),
|
|
1626
|
-
...(input.EncipherOnly != null && { EncipherOnly: input.EncipherOnly }),
|
|
1627
|
-
...(input.KeyAgreement != null && { KeyAgreement: input.KeyAgreement }),
|
|
1628
|
-
...(input.KeyCertSign != null && { KeyCertSign: input.KeyCertSign }),
|
|
1629
|
-
...(input.KeyEncipherment != null && { KeyEncipherment: input.KeyEncipherment }),
|
|
1630
|
-
...(input.NonRepudiation != null && { NonRepudiation: input.NonRepudiation }),
|
|
1631
|
-
};
|
|
1632
|
-
};
|
|
1633
|
-
const se_ListCertificateAuthoritiesRequest = (input, context) => {
|
|
1634
|
-
return {
|
|
1635
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1636
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1637
|
-
...(input.ResourceOwner != null && { ResourceOwner: input.ResourceOwner }),
|
|
1638
|
-
};
|
|
1639
|
-
};
|
|
1640
|
-
const se_ListPermissionsRequest = (input, context) => {
|
|
1641
|
-
return {
|
|
1642
|
-
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1643
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1644
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1645
|
-
};
|
|
1646
|
-
};
|
|
1647
|
-
const se_ListTagsRequest = (input, context) => {
|
|
1648
|
-
return {
|
|
1649
|
-
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1650
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1651
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1652
|
-
};
|
|
1653
|
-
};
|
|
1654
|
-
const se_OcspConfiguration = (input, context) => {
|
|
1655
|
-
return {
|
|
1656
|
-
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
1657
|
-
...(input.OcspCustomCname != null && { OcspCustomCname: input.OcspCustomCname }),
|
|
1658
|
-
};
|
|
1659
|
-
};
|
|
1660
|
-
const se_OtherName = (input, context) => {
|
|
1661
|
-
return {
|
|
1662
|
-
...(input.TypeId != null && { TypeId: input.TypeId }),
|
|
1663
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1664
|
-
};
|
|
1665
|
-
};
|
|
1666
|
-
const se_PolicyInformation = (input, context) => {
|
|
1667
|
-
return {
|
|
1668
|
-
...(input.CertPolicyId != null && { CertPolicyId: input.CertPolicyId }),
|
|
1669
|
-
...(input.PolicyQualifiers != null && {
|
|
1670
|
-
PolicyQualifiers: se_PolicyQualifierInfoList(input.PolicyQualifiers, context),
|
|
1671
|
-
}),
|
|
1672
|
-
};
|
|
1673
|
-
};
|
|
1674
|
-
const se_PolicyQualifierInfo = (input, context) => {
|
|
1675
|
-
return {
|
|
1676
|
-
...(input.PolicyQualifierId != null && { PolicyQualifierId: input.PolicyQualifierId }),
|
|
1677
|
-
...(input.Qualifier != null && { Qualifier: se_Qualifier(input.Qualifier, context) }),
|
|
1678
|
-
};
|
|
1679
|
-
};
|
|
1680
|
-
const se_PolicyQualifierInfoList = (input, context) => {
|
|
1681
|
-
return input
|
|
1682
|
-
.filter((e) => e != null)
|
|
1683
|
-
.map((entry) => {
|
|
1684
|
-
return se_PolicyQualifierInfo(entry, context);
|
|
1685
|
-
});
|
|
1686
|
-
};
|
|
1687
|
-
const se_PutPolicyRequest = (input, context) => {
|
|
1688
|
-
return {
|
|
1689
|
-
...(input.Policy != null && { Policy: input.Policy }),
|
|
1690
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1691
|
-
};
|
|
1692
|
-
};
|
|
1693
|
-
const se_Qualifier = (input, context) => {
|
|
1694
|
-
return {
|
|
1695
|
-
...(input.CpsUri != null && { CpsUri: input.CpsUri }),
|
|
1696
|
-
};
|
|
1697
|
-
};
|
|
1698
|
-
const se_RestoreCertificateAuthorityRequest = (input, context) => {
|
|
1699
|
-
return {
|
|
1700
|
-
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1701
|
-
};
|
|
1702
|
-
};
|
|
1703
|
-
const se_RevocationConfiguration = (input, context) => {
|
|
1704
|
-
return {
|
|
1705
|
-
...(input.CrlConfiguration != null && { CrlConfiguration: se_CrlConfiguration(input.CrlConfiguration, context) }),
|
|
1706
|
-
...(input.OcspConfiguration != null && {
|
|
1707
|
-
OcspConfiguration: se_OcspConfiguration(input.OcspConfiguration, context),
|
|
1708
|
-
}),
|
|
1709
|
-
};
|
|
1710
|
-
};
|
|
1711
|
-
const se_RevokeCertificateRequest = (input, context) => {
|
|
1712
|
-
return {
|
|
1713
|
-
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1714
|
-
...(input.CertificateSerial != null && { CertificateSerial: input.CertificateSerial }),
|
|
1715
|
-
...(input.RevocationReason != null && { RevocationReason: input.RevocationReason }),
|
|
1716
|
-
};
|
|
1717
|
-
};
|
|
1718
|
-
const se_Tag = (input, context) => {
|
|
1719
|
-
return {
|
|
1720
|
-
...(input.Key != null && { Key: input.Key }),
|
|
1721
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1722
|
-
};
|
|
1723
|
-
};
|
|
1724
|
-
const se_TagCertificateAuthorityRequest = (input, context) => {
|
|
1725
|
-
return {
|
|
1726
|
-
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1727
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1728
|
-
};
|
|
1729
|
-
};
|
|
1730
|
-
const se_TagList = (input, context) => {
|
|
1731
|
-
return input
|
|
1732
|
-
.filter((e) => e != null)
|
|
1733
|
-
.map((entry) => {
|
|
1734
|
-
return se_Tag(entry, context);
|
|
1735
|
-
});
|
|
1736
|
-
};
|
|
1737
|
-
const se_UntagCertificateAuthorityRequest = (input, context) => {
|
|
1738
|
-
return {
|
|
1739
|
-
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1740
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1741
|
-
};
|
|
1742
|
-
};
|
|
1743
|
-
const se_UpdateCertificateAuthorityRequest = (input, context) => {
|
|
1744
|
-
return {
|
|
1745
|
-
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1746
|
-
...(input.RevocationConfiguration != null && {
|
|
1747
|
-
RevocationConfiguration: se_RevocationConfiguration(input.RevocationConfiguration, context),
|
|
1748
|
-
}),
|
|
1749
|
-
...(input.Status != null && { Status: input.Status }),
|
|
1750
|
-
};
|
|
1751
|
-
};
|
|
1752
|
-
const se_Validity = (input, context) => {
|
|
1753
|
-
return {
|
|
1754
|
-
...(input.Type != null && { Type: input.Type }),
|
|
1755
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1756
|
-
};
|
|
1757
|
-
};
|
|
1758
|
-
const de_AccessDescription = (output, context) => {
|
|
1759
|
-
return {
|
|
1760
|
-
AccessLocation: output.AccessLocation != null ? de_GeneralName(output.AccessLocation, context) : undefined,
|
|
1761
|
-
AccessMethod: output.AccessMethod != null ? de_AccessMethod(output.AccessMethod, context) : undefined,
|
|
1762
|
-
};
|
|
1763
|
-
};
|
|
1764
|
-
const de_AccessDescriptionList = (output, context) => {
|
|
1765
|
-
const retVal = (output || [])
|
|
1766
|
-
.filter((e) => e != null)
|
|
1767
|
-
.map((entry) => {
|
|
1768
|
-
if (entry === null) {
|
|
1769
|
-
return null;
|
|
1770
|
-
}
|
|
1771
|
-
return de_AccessDescription(entry, context);
|
|
1328
|
+
return (0, smithy_client_1.take)(input, {
|
|
1329
|
+
Certificate: context.base64Encoder,
|
|
1330
|
+
CertificateAuthorityArn: [],
|
|
1331
|
+
CertificateChain: context.base64Encoder,
|
|
1772
1332
|
});
|
|
1773
|
-
return retVal;
|
|
1774
1333
|
};
|
|
1775
|
-
const
|
|
1776
|
-
return {
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
.
|
|
1784
|
-
.
|
|
1785
|
-
if (entry === null) {
|
|
1786
|
-
return null;
|
|
1787
|
-
}
|
|
1788
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1334
|
+
const se_IssueCertificateRequest = (input, context) => {
|
|
1335
|
+
return (0, smithy_client_1.take)(input, {
|
|
1336
|
+
ApiPassthrough: smithy_client_1._json,
|
|
1337
|
+
CertificateAuthorityArn: [],
|
|
1338
|
+
Csr: context.base64Encoder,
|
|
1339
|
+
IdempotencyToken: [],
|
|
1340
|
+
SigningAlgorithm: [],
|
|
1341
|
+
TemplateArn: [],
|
|
1342
|
+
Validity: smithy_client_1._json,
|
|
1343
|
+
ValidityNotBefore: smithy_client_1._json,
|
|
1789
1344
|
});
|
|
1790
|
-
return retVal;
|
|
1791
|
-
};
|
|
1792
|
-
const de_ASN1Subject = (output, context) => {
|
|
1793
|
-
return {
|
|
1794
|
-
CommonName: (0, smithy_client_1.expectString)(output.CommonName),
|
|
1795
|
-
Country: (0, smithy_client_1.expectString)(output.Country),
|
|
1796
|
-
CustomAttributes: output.CustomAttributes != null ? de_CustomAttributeList(output.CustomAttributes, context) : undefined,
|
|
1797
|
-
DistinguishedNameQualifier: (0, smithy_client_1.expectString)(output.DistinguishedNameQualifier),
|
|
1798
|
-
GenerationQualifier: (0, smithy_client_1.expectString)(output.GenerationQualifier),
|
|
1799
|
-
GivenName: (0, smithy_client_1.expectString)(output.GivenName),
|
|
1800
|
-
Initials: (0, smithy_client_1.expectString)(output.Initials),
|
|
1801
|
-
Locality: (0, smithy_client_1.expectString)(output.Locality),
|
|
1802
|
-
Organization: (0, smithy_client_1.expectString)(output.Organization),
|
|
1803
|
-
OrganizationalUnit: (0, smithy_client_1.expectString)(output.OrganizationalUnit),
|
|
1804
|
-
Pseudonym: (0, smithy_client_1.expectString)(output.Pseudonym),
|
|
1805
|
-
SerialNumber: (0, smithy_client_1.expectString)(output.SerialNumber),
|
|
1806
|
-
State: (0, smithy_client_1.expectString)(output.State),
|
|
1807
|
-
Surname: (0, smithy_client_1.expectString)(output.Surname),
|
|
1808
|
-
Title: (0, smithy_client_1.expectString)(output.Title),
|
|
1809
|
-
};
|
|
1810
1345
|
};
|
|
1811
1346
|
const de_CertificateAuthorities = (output, context) => {
|
|
1812
1347
|
const retVal = (output || [])
|
|
1813
1348
|
.filter((e) => e != null)
|
|
1814
1349
|
.map((entry) => {
|
|
1815
|
-
if (entry === null) {
|
|
1816
|
-
return null;
|
|
1817
|
-
}
|
|
1818
1350
|
return de_CertificateAuthority(entry, context);
|
|
1819
1351
|
});
|
|
1820
1352
|
return retVal;
|
|
1821
1353
|
};
|
|
1822
1354
|
const de_CertificateAuthority = (output, context) => {
|
|
1823
|
-
return {
|
|
1824
|
-
Arn:
|
|
1825
|
-
CertificateAuthorityConfiguration:
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
: undefined,
|
|
1840
|
-
RevocationConfiguration: output.RevocationConfiguration != null
|
|
1841
|
-
? de_RevocationConfiguration(output.RevocationConfiguration, context)
|
|
1842
|
-
: undefined,
|
|
1843
|
-
Serial: (0, smithy_client_1.expectString)(output.Serial),
|
|
1844
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1845
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1846
|
-
UsageMode: (0, smithy_client_1.expectString)(output.UsageMode),
|
|
1847
|
-
};
|
|
1848
|
-
};
|
|
1849
|
-
const de_CertificateAuthorityConfiguration = (output, context) => {
|
|
1850
|
-
return {
|
|
1851
|
-
CsrExtensions: output.CsrExtensions != null ? de_CsrExtensions(output.CsrExtensions, context) : undefined,
|
|
1852
|
-
KeyAlgorithm: (0, smithy_client_1.expectString)(output.KeyAlgorithm),
|
|
1853
|
-
SigningAlgorithm: (0, smithy_client_1.expectString)(output.SigningAlgorithm),
|
|
1854
|
-
Subject: output.Subject != null ? de_ASN1Subject(output.Subject, context) : undefined,
|
|
1855
|
-
};
|
|
1856
|
-
};
|
|
1857
|
-
const de_CertificateMismatchException = (output, context) => {
|
|
1858
|
-
return {
|
|
1859
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1860
|
-
};
|
|
1861
|
-
};
|
|
1862
|
-
const de_ConcurrentModificationException = (output, context) => {
|
|
1863
|
-
return {
|
|
1864
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1865
|
-
};
|
|
1866
|
-
};
|
|
1867
|
-
const de_CreateCertificateAuthorityAuditReportResponse = (output, context) => {
|
|
1868
|
-
return {
|
|
1869
|
-
AuditReportId: (0, smithy_client_1.expectString)(output.AuditReportId),
|
|
1870
|
-
S3Key: (0, smithy_client_1.expectString)(output.S3Key),
|
|
1871
|
-
};
|
|
1872
|
-
};
|
|
1873
|
-
const de_CreateCertificateAuthorityResponse = (output, context) => {
|
|
1874
|
-
return {
|
|
1875
|
-
CertificateAuthorityArn: (0, smithy_client_1.expectString)(output.CertificateAuthorityArn),
|
|
1876
|
-
};
|
|
1877
|
-
};
|
|
1878
|
-
const de_CrlConfiguration = (output, context) => {
|
|
1879
|
-
return {
|
|
1880
|
-
CustomCname: (0, smithy_client_1.expectString)(output.CustomCname),
|
|
1881
|
-
Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
|
|
1882
|
-
ExpirationInDays: (0, smithy_client_1.expectInt32)(output.ExpirationInDays),
|
|
1883
|
-
S3BucketName: (0, smithy_client_1.expectString)(output.S3BucketName),
|
|
1884
|
-
S3ObjectAcl: (0, smithy_client_1.expectString)(output.S3ObjectAcl),
|
|
1885
|
-
};
|
|
1886
|
-
};
|
|
1887
|
-
const de_CsrExtensions = (output, context) => {
|
|
1888
|
-
return {
|
|
1889
|
-
KeyUsage: output.KeyUsage != null ? de_KeyUsage(output.KeyUsage, context) : undefined,
|
|
1890
|
-
SubjectInformationAccess: output.SubjectInformationAccess != null
|
|
1891
|
-
? de_AccessDescriptionList(output.SubjectInformationAccess, context)
|
|
1892
|
-
: undefined,
|
|
1893
|
-
};
|
|
1894
|
-
};
|
|
1895
|
-
const de_CustomAttribute = (output, context) => {
|
|
1896
|
-
return {
|
|
1897
|
-
ObjectIdentifier: (0, smithy_client_1.expectString)(output.ObjectIdentifier),
|
|
1898
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
1899
|
-
};
|
|
1900
|
-
};
|
|
1901
|
-
const de_CustomAttributeList = (output, context) => {
|
|
1902
|
-
const retVal = (output || [])
|
|
1903
|
-
.filter((e) => e != null)
|
|
1904
|
-
.map((entry) => {
|
|
1905
|
-
if (entry === null) {
|
|
1906
|
-
return null;
|
|
1907
|
-
}
|
|
1908
|
-
return de_CustomAttribute(entry, context);
|
|
1355
|
+
return (0, smithy_client_1.take)(output, {
|
|
1356
|
+
Arn: smithy_client_1.expectString,
|
|
1357
|
+
CertificateAuthorityConfiguration: smithy_client_1._json,
|
|
1358
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1359
|
+
FailureReason: smithy_client_1.expectString,
|
|
1360
|
+
KeyStorageSecurityStandard: smithy_client_1.expectString,
|
|
1361
|
+
LastStateChangeAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1362
|
+
NotAfter: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1363
|
+
NotBefore: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1364
|
+
OwnerAccount: smithy_client_1.expectString,
|
|
1365
|
+
RestorableUntil: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1366
|
+
RevocationConfiguration: smithy_client_1._json,
|
|
1367
|
+
Serial: smithy_client_1.expectString,
|
|
1368
|
+
Status: smithy_client_1.expectString,
|
|
1369
|
+
Type: smithy_client_1.expectString,
|
|
1370
|
+
UsageMode: smithy_client_1.expectString,
|
|
1909
1371
|
});
|
|
1910
|
-
return retVal;
|
|
1911
1372
|
};
|
|
1912
1373
|
const de_DescribeCertificateAuthorityAuditReportResponse = (output, context) => {
|
|
1913
|
-
return {
|
|
1914
|
-
AuditReportStatus:
|
|
1915
|
-
CreatedAt:
|
|
1916
|
-
S3BucketName:
|
|
1917
|
-
S3Key:
|
|
1918
|
-
};
|
|
1374
|
+
return (0, smithy_client_1.take)(output, {
|
|
1375
|
+
AuditReportStatus: smithy_client_1.expectString,
|
|
1376
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1377
|
+
S3BucketName: smithy_client_1.expectString,
|
|
1378
|
+
S3Key: smithy_client_1.expectString,
|
|
1379
|
+
});
|
|
1919
1380
|
};
|
|
1920
1381
|
const de_DescribeCertificateAuthorityResponse = (output, context) => {
|
|
1921
|
-
return {
|
|
1922
|
-
CertificateAuthority:
|
|
1923
|
-
};
|
|
1924
|
-
};
|
|
1925
|
-
const de_EdiPartyName = (output, context) => {
|
|
1926
|
-
return {
|
|
1927
|
-
NameAssigner: (0, smithy_client_1.expectString)(output.NameAssigner),
|
|
1928
|
-
PartyName: (0, smithy_client_1.expectString)(output.PartyName),
|
|
1929
|
-
};
|
|
1930
|
-
};
|
|
1931
|
-
const de_GeneralName = (output, context) => {
|
|
1932
|
-
return {
|
|
1933
|
-
DirectoryName: output.DirectoryName != null ? de_ASN1Subject(output.DirectoryName, context) : undefined,
|
|
1934
|
-
DnsName: (0, smithy_client_1.expectString)(output.DnsName),
|
|
1935
|
-
EdiPartyName: output.EdiPartyName != null ? de_EdiPartyName(output.EdiPartyName, context) : undefined,
|
|
1936
|
-
IpAddress: (0, smithy_client_1.expectString)(output.IpAddress),
|
|
1937
|
-
OtherName: output.OtherName != null ? de_OtherName(output.OtherName, context) : undefined,
|
|
1938
|
-
RegisteredId: (0, smithy_client_1.expectString)(output.RegisteredId),
|
|
1939
|
-
Rfc822Name: (0, smithy_client_1.expectString)(output.Rfc822Name),
|
|
1940
|
-
UniformResourceIdentifier: (0, smithy_client_1.expectString)(output.UniformResourceIdentifier),
|
|
1941
|
-
};
|
|
1942
|
-
};
|
|
1943
|
-
const de_GetCertificateAuthorityCertificateResponse = (output, context) => {
|
|
1944
|
-
return {
|
|
1945
|
-
Certificate: (0, smithy_client_1.expectString)(output.Certificate),
|
|
1946
|
-
CertificateChain: (0, smithy_client_1.expectString)(output.CertificateChain),
|
|
1947
|
-
};
|
|
1948
|
-
};
|
|
1949
|
-
const de_GetCertificateAuthorityCsrResponse = (output, context) => {
|
|
1950
|
-
return {
|
|
1951
|
-
Csr: (0, smithy_client_1.expectString)(output.Csr),
|
|
1952
|
-
};
|
|
1953
|
-
};
|
|
1954
|
-
const de_GetCertificateResponse = (output, context) => {
|
|
1955
|
-
return {
|
|
1956
|
-
Certificate: (0, smithy_client_1.expectString)(output.Certificate),
|
|
1957
|
-
CertificateChain: (0, smithy_client_1.expectString)(output.CertificateChain),
|
|
1958
|
-
};
|
|
1959
|
-
};
|
|
1960
|
-
const de_GetPolicyResponse = (output, context) => {
|
|
1961
|
-
return {
|
|
1962
|
-
Policy: (0, smithy_client_1.expectString)(output.Policy),
|
|
1963
|
-
};
|
|
1964
|
-
};
|
|
1965
|
-
const de_InvalidArgsException = (output, context) => {
|
|
1966
|
-
return {
|
|
1967
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1968
|
-
};
|
|
1969
|
-
};
|
|
1970
|
-
const de_InvalidArnException = (output, context) => {
|
|
1971
|
-
return {
|
|
1972
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1973
|
-
};
|
|
1974
|
-
};
|
|
1975
|
-
const de_InvalidNextTokenException = (output, context) => {
|
|
1976
|
-
return {
|
|
1977
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1978
|
-
};
|
|
1979
|
-
};
|
|
1980
|
-
const de_InvalidPolicyException = (output, context) => {
|
|
1981
|
-
return {
|
|
1982
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1983
|
-
};
|
|
1984
|
-
};
|
|
1985
|
-
const de_InvalidRequestException = (output, context) => {
|
|
1986
|
-
return {
|
|
1987
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1988
|
-
};
|
|
1989
|
-
};
|
|
1990
|
-
const de_InvalidStateException = (output, context) => {
|
|
1991
|
-
return {
|
|
1992
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1993
|
-
};
|
|
1994
|
-
};
|
|
1995
|
-
const de_InvalidTagException = (output, context) => {
|
|
1996
|
-
return {
|
|
1997
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1998
|
-
};
|
|
1999
|
-
};
|
|
2000
|
-
const de_IssueCertificateResponse = (output, context) => {
|
|
2001
|
-
return {
|
|
2002
|
-
CertificateArn: (0, smithy_client_1.expectString)(output.CertificateArn),
|
|
2003
|
-
};
|
|
2004
|
-
};
|
|
2005
|
-
const de_KeyUsage = (output, context) => {
|
|
2006
|
-
return {
|
|
2007
|
-
CRLSign: (0, smithy_client_1.expectBoolean)(output.CRLSign),
|
|
2008
|
-
DataEncipherment: (0, smithy_client_1.expectBoolean)(output.DataEncipherment),
|
|
2009
|
-
DecipherOnly: (0, smithy_client_1.expectBoolean)(output.DecipherOnly),
|
|
2010
|
-
DigitalSignature: (0, smithy_client_1.expectBoolean)(output.DigitalSignature),
|
|
2011
|
-
EncipherOnly: (0, smithy_client_1.expectBoolean)(output.EncipherOnly),
|
|
2012
|
-
KeyAgreement: (0, smithy_client_1.expectBoolean)(output.KeyAgreement),
|
|
2013
|
-
KeyCertSign: (0, smithy_client_1.expectBoolean)(output.KeyCertSign),
|
|
2014
|
-
KeyEncipherment: (0, smithy_client_1.expectBoolean)(output.KeyEncipherment),
|
|
2015
|
-
NonRepudiation: (0, smithy_client_1.expectBoolean)(output.NonRepudiation),
|
|
2016
|
-
};
|
|
2017
|
-
};
|
|
2018
|
-
const de_LimitExceededException = (output, context) => {
|
|
2019
|
-
return {
|
|
2020
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2021
|
-
};
|
|
1382
|
+
return (0, smithy_client_1.take)(output, {
|
|
1383
|
+
CertificateAuthority: (_) => de_CertificateAuthority(_, context),
|
|
1384
|
+
});
|
|
2022
1385
|
};
|
|
2023
1386
|
const de_ListCertificateAuthoritiesResponse = (output, context) => {
|
|
2024
|
-
return {
|
|
2025
|
-
CertificateAuthorities:
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2029
|
-
};
|
|
1387
|
+
return (0, smithy_client_1.take)(output, {
|
|
1388
|
+
CertificateAuthorities: (_) => de_CertificateAuthorities(_, context),
|
|
1389
|
+
NextToken: smithy_client_1.expectString,
|
|
1390
|
+
});
|
|
2030
1391
|
};
|
|
2031
1392
|
const de_ListPermissionsResponse = (output, context) => {
|
|
2032
|
-
return {
|
|
2033
|
-
NextToken:
|
|
2034
|
-
Permissions:
|
|
2035
|
-
};
|
|
2036
|
-
};
|
|
2037
|
-
const de_ListTagsResponse = (output, context) => {
|
|
2038
|
-
return {
|
|
2039
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2040
|
-
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
2041
|
-
};
|
|
2042
|
-
};
|
|
2043
|
-
const de_LockoutPreventedException = (output, context) => {
|
|
2044
|
-
return {
|
|
2045
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2046
|
-
};
|
|
2047
|
-
};
|
|
2048
|
-
const de_MalformedCertificateException = (output, context) => {
|
|
2049
|
-
return {
|
|
2050
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2051
|
-
};
|
|
2052
|
-
};
|
|
2053
|
-
const de_MalformedCSRException = (output, context) => {
|
|
2054
|
-
return {
|
|
2055
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2056
|
-
};
|
|
2057
|
-
};
|
|
2058
|
-
const de_OcspConfiguration = (output, context) => {
|
|
2059
|
-
return {
|
|
2060
|
-
Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
|
|
2061
|
-
OcspCustomCname: (0, smithy_client_1.expectString)(output.OcspCustomCname),
|
|
2062
|
-
};
|
|
2063
|
-
};
|
|
2064
|
-
const de_OtherName = (output, context) => {
|
|
2065
|
-
return {
|
|
2066
|
-
TypeId: (0, smithy_client_1.expectString)(output.TypeId),
|
|
2067
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
2068
|
-
};
|
|
1393
|
+
return (0, smithy_client_1.take)(output, {
|
|
1394
|
+
NextToken: smithy_client_1.expectString,
|
|
1395
|
+
Permissions: (_) => de_PermissionList(_, context),
|
|
1396
|
+
});
|
|
2069
1397
|
};
|
|
2070
1398
|
const de_Permission = (output, context) => {
|
|
2071
|
-
return {
|
|
2072
|
-
Actions:
|
|
2073
|
-
CertificateAuthorityArn:
|
|
2074
|
-
CreatedAt:
|
|
2075
|
-
Policy:
|
|
2076
|
-
Principal:
|
|
2077
|
-
SourceAccount:
|
|
2078
|
-
};
|
|
2079
|
-
};
|
|
2080
|
-
const de_PermissionAlreadyExistsException = (output, context) => {
|
|
2081
|
-
return {
|
|
2082
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2083
|
-
};
|
|
1399
|
+
return (0, smithy_client_1.take)(output, {
|
|
1400
|
+
Actions: smithy_client_1._json,
|
|
1401
|
+
CertificateAuthorityArn: smithy_client_1.expectString,
|
|
1402
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1403
|
+
Policy: smithy_client_1.expectString,
|
|
1404
|
+
Principal: smithy_client_1.expectString,
|
|
1405
|
+
SourceAccount: smithy_client_1.expectString,
|
|
1406
|
+
});
|
|
2084
1407
|
};
|
|
2085
1408
|
const de_PermissionList = (output, context) => {
|
|
2086
1409
|
const retVal = (output || [])
|
|
2087
1410
|
.filter((e) => e != null)
|
|
2088
1411
|
.map((entry) => {
|
|
2089
|
-
if (entry === null) {
|
|
2090
|
-
return null;
|
|
2091
|
-
}
|
|
2092
1412
|
return de_Permission(entry, context);
|
|
2093
1413
|
});
|
|
2094
1414
|
return retVal;
|
|
2095
1415
|
};
|
|
2096
|
-
const de_RequestAlreadyProcessedException = (output, context) => {
|
|
2097
|
-
return {
|
|
2098
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2099
|
-
};
|
|
2100
|
-
};
|
|
2101
|
-
const de_RequestFailedException = (output, context) => {
|
|
2102
|
-
return {
|
|
2103
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2104
|
-
};
|
|
2105
|
-
};
|
|
2106
|
-
const de_RequestInProgressException = (output, context) => {
|
|
2107
|
-
return {
|
|
2108
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2109
|
-
};
|
|
2110
|
-
};
|
|
2111
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
2112
|
-
return {
|
|
2113
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2114
|
-
};
|
|
2115
|
-
};
|
|
2116
|
-
const de_RevocationConfiguration = (output, context) => {
|
|
2117
|
-
return {
|
|
2118
|
-
CrlConfiguration: output.CrlConfiguration != null ? de_CrlConfiguration(output.CrlConfiguration, context) : undefined,
|
|
2119
|
-
OcspConfiguration: output.OcspConfiguration != null ? de_OcspConfiguration(output.OcspConfiguration, context) : undefined,
|
|
2120
|
-
};
|
|
2121
|
-
};
|
|
2122
|
-
const de_Tag = (output, context) => {
|
|
2123
|
-
return {
|
|
2124
|
-
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
2125
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
2126
|
-
};
|
|
2127
|
-
};
|
|
2128
|
-
const de_TagList = (output, context) => {
|
|
2129
|
-
const retVal = (output || [])
|
|
2130
|
-
.filter((e) => e != null)
|
|
2131
|
-
.map((entry) => {
|
|
2132
|
-
if (entry === null) {
|
|
2133
|
-
return null;
|
|
2134
|
-
}
|
|
2135
|
-
return de_Tag(entry, context);
|
|
2136
|
-
});
|
|
2137
|
-
return retVal;
|
|
2138
|
-
};
|
|
2139
|
-
const de_TooManyTagsException = (output, context) => {
|
|
2140
|
-
return {
|
|
2141
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2142
|
-
};
|
|
2143
|
-
};
|
|
2144
1416
|
const deserializeMetadata = (output) => ({
|
|
2145
1417
|
httpStatusCode: output.statusCode,
|
|
2146
1418
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -2154,6 +1426,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
2154
1426
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2155
1427
|
};
|
|
2156
1428
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1429
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(ACMPCAServiceException_1.ACMPCAServiceException);
|
|
2157
1430
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2158
1431
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2159
1432
|
const contents = {
|