@aws-sdk/client-acm-pca 3.504.0 → 3.509.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/index.js +70 -695
- package/dist-es/protocols/Aws_json1_1.js +69 -694
- package/package.json +3 -3
|
@@ -142,7 +142,7 @@ export const se_UpdateCertificateAuthorityCommand = async (input, context) => {
|
|
|
142
142
|
};
|
|
143
143
|
export const de_CreateCertificateAuthorityCommand = async (output, context) => {
|
|
144
144
|
if (output.statusCode >= 300) {
|
|
145
|
-
return
|
|
145
|
+
return de_CommandError(output, context);
|
|
146
146
|
}
|
|
147
147
|
const data = await parseBody(output.body, context);
|
|
148
148
|
let contents = {};
|
|
@@ -153,37 +153,9 @@ export const de_CreateCertificateAuthorityCommand = async (output, context) => {
|
|
|
153
153
|
};
|
|
154
154
|
return response;
|
|
155
155
|
};
|
|
156
|
-
const de_CreateCertificateAuthorityCommandError = async (output, context) => {
|
|
157
|
-
const parsedOutput = {
|
|
158
|
-
...output,
|
|
159
|
-
body: await parseErrorBody(output.body, context),
|
|
160
|
-
};
|
|
161
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
162
|
-
switch (errorCode) {
|
|
163
|
-
case "InvalidArgsException":
|
|
164
|
-
case "com.amazonaws.acmpca#InvalidArgsException":
|
|
165
|
-
throw await de_InvalidArgsExceptionRes(parsedOutput, context);
|
|
166
|
-
case "InvalidPolicyException":
|
|
167
|
-
case "com.amazonaws.acmpca#InvalidPolicyException":
|
|
168
|
-
throw await de_InvalidPolicyExceptionRes(parsedOutput, context);
|
|
169
|
-
case "InvalidTagException":
|
|
170
|
-
case "com.amazonaws.acmpca#InvalidTagException":
|
|
171
|
-
throw await de_InvalidTagExceptionRes(parsedOutput, context);
|
|
172
|
-
case "LimitExceededException":
|
|
173
|
-
case "com.amazonaws.acmpca#LimitExceededException":
|
|
174
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
175
|
-
default:
|
|
176
|
-
const parsedBody = parsedOutput.body;
|
|
177
|
-
return throwDefaultError({
|
|
178
|
-
output,
|
|
179
|
-
parsedBody,
|
|
180
|
-
errorCode,
|
|
181
|
-
});
|
|
182
|
-
}
|
|
183
|
-
};
|
|
184
156
|
export const de_CreateCertificateAuthorityAuditReportCommand = async (output, context) => {
|
|
185
157
|
if (output.statusCode >= 300) {
|
|
186
|
-
return
|
|
158
|
+
return de_CommandError(output, context);
|
|
187
159
|
}
|
|
188
160
|
const data = await parseBody(output.body, context);
|
|
189
161
|
let contents = {};
|
|
@@ -194,43 +166,9 @@ export const de_CreateCertificateAuthorityAuditReportCommand = async (output, co
|
|
|
194
166
|
};
|
|
195
167
|
return response;
|
|
196
168
|
};
|
|
197
|
-
const de_CreateCertificateAuthorityAuditReportCommandError = async (output, context) => {
|
|
198
|
-
const parsedOutput = {
|
|
199
|
-
...output,
|
|
200
|
-
body: await parseErrorBody(output.body, context),
|
|
201
|
-
};
|
|
202
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
203
|
-
switch (errorCode) {
|
|
204
|
-
case "InvalidArgsException":
|
|
205
|
-
case "com.amazonaws.acmpca#InvalidArgsException":
|
|
206
|
-
throw await de_InvalidArgsExceptionRes(parsedOutput, context);
|
|
207
|
-
case "InvalidArnException":
|
|
208
|
-
case "com.amazonaws.acmpca#InvalidArnException":
|
|
209
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
210
|
-
case "InvalidStateException":
|
|
211
|
-
case "com.amazonaws.acmpca#InvalidStateException":
|
|
212
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
213
|
-
case "RequestFailedException":
|
|
214
|
-
case "com.amazonaws.acmpca#RequestFailedException":
|
|
215
|
-
throw await de_RequestFailedExceptionRes(parsedOutput, context);
|
|
216
|
-
case "RequestInProgressException":
|
|
217
|
-
case "com.amazonaws.acmpca#RequestInProgressException":
|
|
218
|
-
throw await de_RequestInProgressExceptionRes(parsedOutput, context);
|
|
219
|
-
case "ResourceNotFoundException":
|
|
220
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
221
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
222
|
-
default:
|
|
223
|
-
const parsedBody = parsedOutput.body;
|
|
224
|
-
return throwDefaultError({
|
|
225
|
-
output,
|
|
226
|
-
parsedBody,
|
|
227
|
-
errorCode,
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
};
|
|
231
169
|
export const de_CreatePermissionCommand = async (output, context) => {
|
|
232
170
|
if (output.statusCode >= 300) {
|
|
233
|
-
return
|
|
171
|
+
return de_CommandError(output, context);
|
|
234
172
|
}
|
|
235
173
|
await collectBody(output.body, context);
|
|
236
174
|
const response = {
|
|
@@ -238,43 +176,9 @@ export const de_CreatePermissionCommand = async (output, context) => {
|
|
|
238
176
|
};
|
|
239
177
|
return response;
|
|
240
178
|
};
|
|
241
|
-
const de_CreatePermissionCommandError = async (output, context) => {
|
|
242
|
-
const parsedOutput = {
|
|
243
|
-
...output,
|
|
244
|
-
body: await parseErrorBody(output.body, context),
|
|
245
|
-
};
|
|
246
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
247
|
-
switch (errorCode) {
|
|
248
|
-
case "InvalidArnException":
|
|
249
|
-
case "com.amazonaws.acmpca#InvalidArnException":
|
|
250
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
251
|
-
case "InvalidStateException":
|
|
252
|
-
case "com.amazonaws.acmpca#InvalidStateException":
|
|
253
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
254
|
-
case "LimitExceededException":
|
|
255
|
-
case "com.amazonaws.acmpca#LimitExceededException":
|
|
256
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
257
|
-
case "PermissionAlreadyExistsException":
|
|
258
|
-
case "com.amazonaws.acmpca#PermissionAlreadyExistsException":
|
|
259
|
-
throw await de_PermissionAlreadyExistsExceptionRes(parsedOutput, context);
|
|
260
|
-
case "RequestFailedException":
|
|
261
|
-
case "com.amazonaws.acmpca#RequestFailedException":
|
|
262
|
-
throw await de_RequestFailedExceptionRes(parsedOutput, context);
|
|
263
|
-
case "ResourceNotFoundException":
|
|
264
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
265
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
266
|
-
default:
|
|
267
|
-
const parsedBody = parsedOutput.body;
|
|
268
|
-
return throwDefaultError({
|
|
269
|
-
output,
|
|
270
|
-
parsedBody,
|
|
271
|
-
errorCode,
|
|
272
|
-
});
|
|
273
|
-
}
|
|
274
|
-
};
|
|
275
179
|
export const de_DeleteCertificateAuthorityCommand = async (output, context) => {
|
|
276
180
|
if (output.statusCode >= 300) {
|
|
277
|
-
return
|
|
181
|
+
return de_CommandError(output, context);
|
|
278
182
|
}
|
|
279
183
|
await collectBody(output.body, context);
|
|
280
184
|
const response = {
|
|
@@ -282,37 +186,9 @@ export const de_DeleteCertificateAuthorityCommand = async (output, context) => {
|
|
|
282
186
|
};
|
|
283
187
|
return response;
|
|
284
188
|
};
|
|
285
|
-
const de_DeleteCertificateAuthorityCommandError = async (output, context) => {
|
|
286
|
-
const parsedOutput = {
|
|
287
|
-
...output,
|
|
288
|
-
body: await parseErrorBody(output.body, context),
|
|
289
|
-
};
|
|
290
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
291
|
-
switch (errorCode) {
|
|
292
|
-
case "ConcurrentModificationException":
|
|
293
|
-
case "com.amazonaws.acmpca#ConcurrentModificationException":
|
|
294
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
295
|
-
case "InvalidArnException":
|
|
296
|
-
case "com.amazonaws.acmpca#InvalidArnException":
|
|
297
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
298
|
-
case "InvalidStateException":
|
|
299
|
-
case "com.amazonaws.acmpca#InvalidStateException":
|
|
300
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
301
|
-
case "ResourceNotFoundException":
|
|
302
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
303
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
304
|
-
default:
|
|
305
|
-
const parsedBody = parsedOutput.body;
|
|
306
|
-
return throwDefaultError({
|
|
307
|
-
output,
|
|
308
|
-
parsedBody,
|
|
309
|
-
errorCode,
|
|
310
|
-
});
|
|
311
|
-
}
|
|
312
|
-
};
|
|
313
189
|
export const de_DeletePermissionCommand = async (output, context) => {
|
|
314
190
|
if (output.statusCode >= 300) {
|
|
315
|
-
return
|
|
191
|
+
return de_CommandError(output, context);
|
|
316
192
|
}
|
|
317
193
|
await collectBody(output.body, context);
|
|
318
194
|
const response = {
|
|
@@ -320,37 +196,9 @@ export const de_DeletePermissionCommand = async (output, context) => {
|
|
|
320
196
|
};
|
|
321
197
|
return response;
|
|
322
198
|
};
|
|
323
|
-
const de_DeletePermissionCommandError = async (output, context) => {
|
|
324
|
-
const parsedOutput = {
|
|
325
|
-
...output,
|
|
326
|
-
body: await parseErrorBody(output.body, context),
|
|
327
|
-
};
|
|
328
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
329
|
-
switch (errorCode) {
|
|
330
|
-
case "InvalidArnException":
|
|
331
|
-
case "com.amazonaws.acmpca#InvalidArnException":
|
|
332
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
333
|
-
case "InvalidStateException":
|
|
334
|
-
case "com.amazonaws.acmpca#InvalidStateException":
|
|
335
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
336
|
-
case "RequestFailedException":
|
|
337
|
-
case "com.amazonaws.acmpca#RequestFailedException":
|
|
338
|
-
throw await de_RequestFailedExceptionRes(parsedOutput, context);
|
|
339
|
-
case "ResourceNotFoundException":
|
|
340
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
341
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
342
|
-
default:
|
|
343
|
-
const parsedBody = parsedOutput.body;
|
|
344
|
-
return throwDefaultError({
|
|
345
|
-
output,
|
|
346
|
-
parsedBody,
|
|
347
|
-
errorCode,
|
|
348
|
-
});
|
|
349
|
-
}
|
|
350
|
-
};
|
|
351
199
|
export const de_DeletePolicyCommand = async (output, context) => {
|
|
352
200
|
if (output.statusCode >= 300) {
|
|
353
|
-
return
|
|
201
|
+
return de_CommandError(output, context);
|
|
354
202
|
}
|
|
355
203
|
await collectBody(output.body, context);
|
|
356
204
|
const response = {
|
|
@@ -358,43 +206,9 @@ export const de_DeletePolicyCommand = async (output, context) => {
|
|
|
358
206
|
};
|
|
359
207
|
return response;
|
|
360
208
|
};
|
|
361
|
-
const de_DeletePolicyCommandError = async (output, context) => {
|
|
362
|
-
const parsedOutput = {
|
|
363
|
-
...output,
|
|
364
|
-
body: await parseErrorBody(output.body, context),
|
|
365
|
-
};
|
|
366
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
367
|
-
switch (errorCode) {
|
|
368
|
-
case "ConcurrentModificationException":
|
|
369
|
-
case "com.amazonaws.acmpca#ConcurrentModificationException":
|
|
370
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
371
|
-
case "InvalidArnException":
|
|
372
|
-
case "com.amazonaws.acmpca#InvalidArnException":
|
|
373
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
374
|
-
case "InvalidStateException":
|
|
375
|
-
case "com.amazonaws.acmpca#InvalidStateException":
|
|
376
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
377
|
-
case "LockoutPreventedException":
|
|
378
|
-
case "com.amazonaws.acmpca#LockoutPreventedException":
|
|
379
|
-
throw await de_LockoutPreventedExceptionRes(parsedOutput, context);
|
|
380
|
-
case "RequestFailedException":
|
|
381
|
-
case "com.amazonaws.acmpca#RequestFailedException":
|
|
382
|
-
throw await de_RequestFailedExceptionRes(parsedOutput, context);
|
|
383
|
-
case "ResourceNotFoundException":
|
|
384
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
385
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
386
|
-
default:
|
|
387
|
-
const parsedBody = parsedOutput.body;
|
|
388
|
-
return throwDefaultError({
|
|
389
|
-
output,
|
|
390
|
-
parsedBody,
|
|
391
|
-
errorCode,
|
|
392
|
-
});
|
|
393
|
-
}
|
|
394
|
-
};
|
|
395
209
|
export const de_DescribeCertificateAuthorityCommand = async (output, context) => {
|
|
396
210
|
if (output.statusCode >= 300) {
|
|
397
|
-
return
|
|
211
|
+
return de_CommandError(output, context);
|
|
398
212
|
}
|
|
399
213
|
const data = await parseBody(output.body, context);
|
|
400
214
|
let contents = {};
|
|
@@ -405,31 +219,9 @@ export const de_DescribeCertificateAuthorityCommand = async (output, context) =>
|
|
|
405
219
|
};
|
|
406
220
|
return response;
|
|
407
221
|
};
|
|
408
|
-
const de_DescribeCertificateAuthorityCommandError = async (output, context) => {
|
|
409
|
-
const parsedOutput = {
|
|
410
|
-
...output,
|
|
411
|
-
body: await parseErrorBody(output.body, context),
|
|
412
|
-
};
|
|
413
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
414
|
-
switch (errorCode) {
|
|
415
|
-
case "InvalidArnException":
|
|
416
|
-
case "com.amazonaws.acmpca#InvalidArnException":
|
|
417
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
418
|
-
case "ResourceNotFoundException":
|
|
419
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
420
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
421
|
-
default:
|
|
422
|
-
const parsedBody = parsedOutput.body;
|
|
423
|
-
return throwDefaultError({
|
|
424
|
-
output,
|
|
425
|
-
parsedBody,
|
|
426
|
-
errorCode,
|
|
427
|
-
});
|
|
428
|
-
}
|
|
429
|
-
};
|
|
430
222
|
export const de_DescribeCertificateAuthorityAuditReportCommand = async (output, context) => {
|
|
431
223
|
if (output.statusCode >= 300) {
|
|
432
|
-
return
|
|
224
|
+
return de_CommandError(output, context);
|
|
433
225
|
}
|
|
434
226
|
const data = await parseBody(output.body, context);
|
|
435
227
|
let contents = {};
|
|
@@ -440,34 +232,9 @@ export const de_DescribeCertificateAuthorityAuditReportCommand = async (output,
|
|
|
440
232
|
};
|
|
441
233
|
return response;
|
|
442
234
|
};
|
|
443
|
-
const de_DescribeCertificateAuthorityAuditReportCommandError = async (output, context) => {
|
|
444
|
-
const parsedOutput = {
|
|
445
|
-
...output,
|
|
446
|
-
body: await parseErrorBody(output.body, context),
|
|
447
|
-
};
|
|
448
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
449
|
-
switch (errorCode) {
|
|
450
|
-
case "InvalidArgsException":
|
|
451
|
-
case "com.amazonaws.acmpca#InvalidArgsException":
|
|
452
|
-
throw await de_InvalidArgsExceptionRes(parsedOutput, context);
|
|
453
|
-
case "InvalidArnException":
|
|
454
|
-
case "com.amazonaws.acmpca#InvalidArnException":
|
|
455
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
456
|
-
case "ResourceNotFoundException":
|
|
457
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
458
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
459
|
-
default:
|
|
460
|
-
const parsedBody = parsedOutput.body;
|
|
461
|
-
return throwDefaultError({
|
|
462
|
-
output,
|
|
463
|
-
parsedBody,
|
|
464
|
-
errorCode,
|
|
465
|
-
});
|
|
466
|
-
}
|
|
467
|
-
};
|
|
468
235
|
export const de_GetCertificateCommand = async (output, context) => {
|
|
469
236
|
if (output.statusCode >= 300) {
|
|
470
|
-
return
|
|
237
|
+
return de_CommandError(output, context);
|
|
471
238
|
}
|
|
472
239
|
const data = await parseBody(output.body, context);
|
|
473
240
|
let contents = {};
|
|
@@ -478,40 +245,9 @@ export const de_GetCertificateCommand = async (output, context) => {
|
|
|
478
245
|
};
|
|
479
246
|
return response;
|
|
480
247
|
};
|
|
481
|
-
const de_GetCertificateCommandError = async (output, context) => {
|
|
482
|
-
const parsedOutput = {
|
|
483
|
-
...output,
|
|
484
|
-
body: await parseErrorBody(output.body, context),
|
|
485
|
-
};
|
|
486
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
487
|
-
switch (errorCode) {
|
|
488
|
-
case "InvalidArnException":
|
|
489
|
-
case "com.amazonaws.acmpca#InvalidArnException":
|
|
490
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
491
|
-
case "InvalidStateException":
|
|
492
|
-
case "com.amazonaws.acmpca#InvalidStateException":
|
|
493
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
494
|
-
case "RequestFailedException":
|
|
495
|
-
case "com.amazonaws.acmpca#RequestFailedException":
|
|
496
|
-
throw await de_RequestFailedExceptionRes(parsedOutput, context);
|
|
497
|
-
case "RequestInProgressException":
|
|
498
|
-
case "com.amazonaws.acmpca#RequestInProgressException":
|
|
499
|
-
throw await de_RequestInProgressExceptionRes(parsedOutput, context);
|
|
500
|
-
case "ResourceNotFoundException":
|
|
501
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
502
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
503
|
-
default:
|
|
504
|
-
const parsedBody = parsedOutput.body;
|
|
505
|
-
return throwDefaultError({
|
|
506
|
-
output,
|
|
507
|
-
parsedBody,
|
|
508
|
-
errorCode,
|
|
509
|
-
});
|
|
510
|
-
}
|
|
511
|
-
};
|
|
512
248
|
export const de_GetCertificateAuthorityCertificateCommand = async (output, context) => {
|
|
513
249
|
if (output.statusCode >= 300) {
|
|
514
|
-
return
|
|
250
|
+
return de_CommandError(output, context);
|
|
515
251
|
}
|
|
516
252
|
const data = await parseBody(output.body, context);
|
|
517
253
|
let contents = {};
|
|
@@ -522,34 +258,9 @@ export const de_GetCertificateAuthorityCertificateCommand = async (output, conte
|
|
|
522
258
|
};
|
|
523
259
|
return response;
|
|
524
260
|
};
|
|
525
|
-
const de_GetCertificateAuthorityCertificateCommandError = async (output, context) => {
|
|
526
|
-
const parsedOutput = {
|
|
527
|
-
...output,
|
|
528
|
-
body: await parseErrorBody(output.body, context),
|
|
529
|
-
};
|
|
530
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
531
|
-
switch (errorCode) {
|
|
532
|
-
case "InvalidArnException":
|
|
533
|
-
case "com.amazonaws.acmpca#InvalidArnException":
|
|
534
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
535
|
-
case "InvalidStateException":
|
|
536
|
-
case "com.amazonaws.acmpca#InvalidStateException":
|
|
537
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
538
|
-
case "ResourceNotFoundException":
|
|
539
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
540
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
541
|
-
default:
|
|
542
|
-
const parsedBody = parsedOutput.body;
|
|
543
|
-
return throwDefaultError({
|
|
544
|
-
output,
|
|
545
|
-
parsedBody,
|
|
546
|
-
errorCode,
|
|
547
|
-
});
|
|
548
|
-
}
|
|
549
|
-
};
|
|
550
261
|
export const de_GetCertificateAuthorityCsrCommand = async (output, context) => {
|
|
551
262
|
if (output.statusCode >= 300) {
|
|
552
|
-
return
|
|
263
|
+
return de_CommandError(output, context);
|
|
553
264
|
}
|
|
554
265
|
const data = await parseBody(output.body, context);
|
|
555
266
|
let contents = {};
|
|
@@ -560,40 +271,9 @@ export const de_GetCertificateAuthorityCsrCommand = async (output, context) => {
|
|
|
560
271
|
};
|
|
561
272
|
return response;
|
|
562
273
|
};
|
|
563
|
-
const de_GetCertificateAuthorityCsrCommandError = async (output, context) => {
|
|
564
|
-
const parsedOutput = {
|
|
565
|
-
...output,
|
|
566
|
-
body: await parseErrorBody(output.body, context),
|
|
567
|
-
};
|
|
568
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
569
|
-
switch (errorCode) {
|
|
570
|
-
case "InvalidArnException":
|
|
571
|
-
case "com.amazonaws.acmpca#InvalidArnException":
|
|
572
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
573
|
-
case "InvalidStateException":
|
|
574
|
-
case "com.amazonaws.acmpca#InvalidStateException":
|
|
575
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
576
|
-
case "RequestFailedException":
|
|
577
|
-
case "com.amazonaws.acmpca#RequestFailedException":
|
|
578
|
-
throw await de_RequestFailedExceptionRes(parsedOutput, context);
|
|
579
|
-
case "RequestInProgressException":
|
|
580
|
-
case "com.amazonaws.acmpca#RequestInProgressException":
|
|
581
|
-
throw await de_RequestInProgressExceptionRes(parsedOutput, context);
|
|
582
|
-
case "ResourceNotFoundException":
|
|
583
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
584
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
585
|
-
default:
|
|
586
|
-
const parsedBody = parsedOutput.body;
|
|
587
|
-
return throwDefaultError({
|
|
588
|
-
output,
|
|
589
|
-
parsedBody,
|
|
590
|
-
errorCode,
|
|
591
|
-
});
|
|
592
|
-
}
|
|
593
|
-
};
|
|
594
274
|
export const de_GetPolicyCommand = async (output, context) => {
|
|
595
275
|
if (output.statusCode >= 300) {
|
|
596
|
-
return
|
|
276
|
+
return de_CommandError(output, context);
|
|
597
277
|
}
|
|
598
278
|
const data = await parseBody(output.body, context);
|
|
599
279
|
let contents = {};
|
|
@@ -604,37 +284,9 @@ export const de_GetPolicyCommand = async (output, context) => {
|
|
|
604
284
|
};
|
|
605
285
|
return response;
|
|
606
286
|
};
|
|
607
|
-
const de_GetPolicyCommandError = async (output, context) => {
|
|
608
|
-
const parsedOutput = {
|
|
609
|
-
...output,
|
|
610
|
-
body: await parseErrorBody(output.body, context),
|
|
611
|
-
};
|
|
612
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
613
|
-
switch (errorCode) {
|
|
614
|
-
case "InvalidArnException":
|
|
615
|
-
case "com.amazonaws.acmpca#InvalidArnException":
|
|
616
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
617
|
-
case "InvalidStateException":
|
|
618
|
-
case "com.amazonaws.acmpca#InvalidStateException":
|
|
619
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
620
|
-
case "RequestFailedException":
|
|
621
|
-
case "com.amazonaws.acmpca#RequestFailedException":
|
|
622
|
-
throw await de_RequestFailedExceptionRes(parsedOutput, context);
|
|
623
|
-
case "ResourceNotFoundException":
|
|
624
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
625
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
626
|
-
default:
|
|
627
|
-
const parsedBody = parsedOutput.body;
|
|
628
|
-
return throwDefaultError({
|
|
629
|
-
output,
|
|
630
|
-
parsedBody,
|
|
631
|
-
errorCode,
|
|
632
|
-
});
|
|
633
|
-
}
|
|
634
|
-
};
|
|
635
287
|
export const de_ImportCertificateAuthorityCertificateCommand = async (output, context) => {
|
|
636
288
|
if (output.statusCode >= 300) {
|
|
637
|
-
return
|
|
289
|
+
return de_CommandError(output, context);
|
|
638
290
|
}
|
|
639
291
|
await collectBody(output.body, context);
|
|
640
292
|
const response = {
|
|
@@ -642,52 +294,9 @@ export const de_ImportCertificateAuthorityCertificateCommand = async (output, co
|
|
|
642
294
|
};
|
|
643
295
|
return response;
|
|
644
296
|
};
|
|
645
|
-
const de_ImportCertificateAuthorityCertificateCommandError = async (output, context) => {
|
|
646
|
-
const parsedOutput = {
|
|
647
|
-
...output,
|
|
648
|
-
body: await parseErrorBody(output.body, context),
|
|
649
|
-
};
|
|
650
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
651
|
-
switch (errorCode) {
|
|
652
|
-
case "CertificateMismatchException":
|
|
653
|
-
case "com.amazonaws.acmpca#CertificateMismatchException":
|
|
654
|
-
throw await de_CertificateMismatchExceptionRes(parsedOutput, context);
|
|
655
|
-
case "ConcurrentModificationException":
|
|
656
|
-
case "com.amazonaws.acmpca#ConcurrentModificationException":
|
|
657
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
658
|
-
case "InvalidArnException":
|
|
659
|
-
case "com.amazonaws.acmpca#InvalidArnException":
|
|
660
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
661
|
-
case "InvalidRequestException":
|
|
662
|
-
case "com.amazonaws.acmpca#InvalidRequestException":
|
|
663
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
664
|
-
case "InvalidStateException":
|
|
665
|
-
case "com.amazonaws.acmpca#InvalidStateException":
|
|
666
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
667
|
-
case "MalformedCertificateException":
|
|
668
|
-
case "com.amazonaws.acmpca#MalformedCertificateException":
|
|
669
|
-
throw await de_MalformedCertificateExceptionRes(parsedOutput, context);
|
|
670
|
-
case "RequestFailedException":
|
|
671
|
-
case "com.amazonaws.acmpca#RequestFailedException":
|
|
672
|
-
throw await de_RequestFailedExceptionRes(parsedOutput, context);
|
|
673
|
-
case "RequestInProgressException":
|
|
674
|
-
case "com.amazonaws.acmpca#RequestInProgressException":
|
|
675
|
-
throw await de_RequestInProgressExceptionRes(parsedOutput, context);
|
|
676
|
-
case "ResourceNotFoundException":
|
|
677
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
678
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
679
|
-
default:
|
|
680
|
-
const parsedBody = parsedOutput.body;
|
|
681
|
-
return throwDefaultError({
|
|
682
|
-
output,
|
|
683
|
-
parsedBody,
|
|
684
|
-
errorCode,
|
|
685
|
-
});
|
|
686
|
-
}
|
|
687
|
-
};
|
|
688
297
|
export const de_IssueCertificateCommand = async (output, context) => {
|
|
689
298
|
if (output.statusCode >= 300) {
|
|
690
|
-
return
|
|
299
|
+
return de_CommandError(output, context);
|
|
691
300
|
}
|
|
692
301
|
const data = await parseBody(output.body, context);
|
|
693
302
|
let contents = {};
|
|
@@ -698,43 +307,9 @@ export const de_IssueCertificateCommand = async (output, context) => {
|
|
|
698
307
|
};
|
|
699
308
|
return response;
|
|
700
309
|
};
|
|
701
|
-
const de_IssueCertificateCommandError = async (output, context) => {
|
|
702
|
-
const parsedOutput = {
|
|
703
|
-
...output,
|
|
704
|
-
body: await parseErrorBody(output.body, context),
|
|
705
|
-
};
|
|
706
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
707
|
-
switch (errorCode) {
|
|
708
|
-
case "InvalidArgsException":
|
|
709
|
-
case "com.amazonaws.acmpca#InvalidArgsException":
|
|
710
|
-
throw await de_InvalidArgsExceptionRes(parsedOutput, context);
|
|
711
|
-
case "InvalidArnException":
|
|
712
|
-
case "com.amazonaws.acmpca#InvalidArnException":
|
|
713
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
714
|
-
case "InvalidStateException":
|
|
715
|
-
case "com.amazonaws.acmpca#InvalidStateException":
|
|
716
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
717
|
-
case "LimitExceededException":
|
|
718
|
-
case "com.amazonaws.acmpca#LimitExceededException":
|
|
719
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
720
|
-
case "MalformedCSRException":
|
|
721
|
-
case "com.amazonaws.acmpca#MalformedCSRException":
|
|
722
|
-
throw await de_MalformedCSRExceptionRes(parsedOutput, context);
|
|
723
|
-
case "ResourceNotFoundException":
|
|
724
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
725
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
726
|
-
default:
|
|
727
|
-
const parsedBody = parsedOutput.body;
|
|
728
|
-
return throwDefaultError({
|
|
729
|
-
output,
|
|
730
|
-
parsedBody,
|
|
731
|
-
errorCode,
|
|
732
|
-
});
|
|
733
|
-
}
|
|
734
|
-
};
|
|
735
310
|
export const de_ListCertificateAuthoritiesCommand = async (output, context) => {
|
|
736
311
|
if (output.statusCode >= 300) {
|
|
737
|
-
return
|
|
312
|
+
return de_CommandError(output, context);
|
|
738
313
|
}
|
|
739
314
|
const data = await parseBody(output.body, context);
|
|
740
315
|
let contents = {};
|
|
@@ -745,28 +320,9 @@ export const de_ListCertificateAuthoritiesCommand = async (output, context) => {
|
|
|
745
320
|
};
|
|
746
321
|
return response;
|
|
747
322
|
};
|
|
748
|
-
const de_ListCertificateAuthoritiesCommandError = async (output, context) => {
|
|
749
|
-
const parsedOutput = {
|
|
750
|
-
...output,
|
|
751
|
-
body: await parseErrorBody(output.body, context),
|
|
752
|
-
};
|
|
753
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
754
|
-
switch (errorCode) {
|
|
755
|
-
case "InvalidNextTokenException":
|
|
756
|
-
case "com.amazonaws.acmpca#InvalidNextTokenException":
|
|
757
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
758
|
-
default:
|
|
759
|
-
const parsedBody = parsedOutput.body;
|
|
760
|
-
return throwDefaultError({
|
|
761
|
-
output,
|
|
762
|
-
parsedBody,
|
|
763
|
-
errorCode,
|
|
764
|
-
});
|
|
765
|
-
}
|
|
766
|
-
};
|
|
767
323
|
export const de_ListPermissionsCommand = async (output, context) => {
|
|
768
324
|
if (output.statusCode >= 300) {
|
|
769
|
-
return
|
|
325
|
+
return de_CommandError(output, context);
|
|
770
326
|
}
|
|
771
327
|
const data = await parseBody(output.body, context);
|
|
772
328
|
let contents = {};
|
|
@@ -777,40 +333,9 @@ export const de_ListPermissionsCommand = async (output, context) => {
|
|
|
777
333
|
};
|
|
778
334
|
return response;
|
|
779
335
|
};
|
|
780
|
-
const de_ListPermissionsCommandError = async (output, context) => {
|
|
781
|
-
const parsedOutput = {
|
|
782
|
-
...output,
|
|
783
|
-
body: await parseErrorBody(output.body, context),
|
|
784
|
-
};
|
|
785
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
786
|
-
switch (errorCode) {
|
|
787
|
-
case "InvalidArnException":
|
|
788
|
-
case "com.amazonaws.acmpca#InvalidArnException":
|
|
789
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
790
|
-
case "InvalidNextTokenException":
|
|
791
|
-
case "com.amazonaws.acmpca#InvalidNextTokenException":
|
|
792
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
793
|
-
case "InvalidStateException":
|
|
794
|
-
case "com.amazonaws.acmpca#InvalidStateException":
|
|
795
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
796
|
-
case "RequestFailedException":
|
|
797
|
-
case "com.amazonaws.acmpca#RequestFailedException":
|
|
798
|
-
throw await de_RequestFailedExceptionRes(parsedOutput, context);
|
|
799
|
-
case "ResourceNotFoundException":
|
|
800
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
801
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
802
|
-
default:
|
|
803
|
-
const parsedBody = parsedOutput.body;
|
|
804
|
-
return throwDefaultError({
|
|
805
|
-
output,
|
|
806
|
-
parsedBody,
|
|
807
|
-
errorCode,
|
|
808
|
-
});
|
|
809
|
-
}
|
|
810
|
-
};
|
|
811
336
|
export const de_ListTagsCommand = async (output, context) => {
|
|
812
337
|
if (output.statusCode >= 300) {
|
|
813
|
-
return
|
|
338
|
+
return de_CommandError(output, context);
|
|
814
339
|
}
|
|
815
340
|
const data = await parseBody(output.body, context);
|
|
816
341
|
let contents = {};
|
|
@@ -821,34 +346,9 @@ export const de_ListTagsCommand = async (output, context) => {
|
|
|
821
346
|
};
|
|
822
347
|
return response;
|
|
823
348
|
};
|
|
824
|
-
const de_ListTagsCommandError = async (output, context) => {
|
|
825
|
-
const parsedOutput = {
|
|
826
|
-
...output,
|
|
827
|
-
body: await parseErrorBody(output.body, context),
|
|
828
|
-
};
|
|
829
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
830
|
-
switch (errorCode) {
|
|
831
|
-
case "InvalidArnException":
|
|
832
|
-
case "com.amazonaws.acmpca#InvalidArnException":
|
|
833
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
834
|
-
case "InvalidStateException":
|
|
835
|
-
case "com.amazonaws.acmpca#InvalidStateException":
|
|
836
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
837
|
-
case "ResourceNotFoundException":
|
|
838
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
839
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
840
|
-
default:
|
|
841
|
-
const parsedBody = parsedOutput.body;
|
|
842
|
-
return throwDefaultError({
|
|
843
|
-
output,
|
|
844
|
-
parsedBody,
|
|
845
|
-
errorCode,
|
|
846
|
-
});
|
|
847
|
-
}
|
|
848
|
-
};
|
|
849
349
|
export const de_PutPolicyCommand = async (output, context) => {
|
|
850
350
|
if (output.statusCode >= 300) {
|
|
851
|
-
return
|
|
351
|
+
return de_CommandError(output, context);
|
|
852
352
|
}
|
|
853
353
|
await collectBody(output.body, context);
|
|
854
354
|
const response = {
|
|
@@ -856,46 +356,9 @@ export const de_PutPolicyCommand = async (output, context) => {
|
|
|
856
356
|
};
|
|
857
357
|
return response;
|
|
858
358
|
};
|
|
859
|
-
const de_PutPolicyCommandError = async (output, context) => {
|
|
860
|
-
const parsedOutput = {
|
|
861
|
-
...output,
|
|
862
|
-
body: await parseErrorBody(output.body, context),
|
|
863
|
-
};
|
|
864
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
865
|
-
switch (errorCode) {
|
|
866
|
-
case "ConcurrentModificationException":
|
|
867
|
-
case "com.amazonaws.acmpca#ConcurrentModificationException":
|
|
868
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
869
|
-
case "InvalidArnException":
|
|
870
|
-
case "com.amazonaws.acmpca#InvalidArnException":
|
|
871
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
872
|
-
case "InvalidPolicyException":
|
|
873
|
-
case "com.amazonaws.acmpca#InvalidPolicyException":
|
|
874
|
-
throw await de_InvalidPolicyExceptionRes(parsedOutput, context);
|
|
875
|
-
case "InvalidStateException":
|
|
876
|
-
case "com.amazonaws.acmpca#InvalidStateException":
|
|
877
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
878
|
-
case "LockoutPreventedException":
|
|
879
|
-
case "com.amazonaws.acmpca#LockoutPreventedException":
|
|
880
|
-
throw await de_LockoutPreventedExceptionRes(parsedOutput, context);
|
|
881
|
-
case "RequestFailedException":
|
|
882
|
-
case "com.amazonaws.acmpca#RequestFailedException":
|
|
883
|
-
throw await de_RequestFailedExceptionRes(parsedOutput, context);
|
|
884
|
-
case "ResourceNotFoundException":
|
|
885
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
886
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
887
|
-
default:
|
|
888
|
-
const parsedBody = parsedOutput.body;
|
|
889
|
-
return throwDefaultError({
|
|
890
|
-
output,
|
|
891
|
-
parsedBody,
|
|
892
|
-
errorCode,
|
|
893
|
-
});
|
|
894
|
-
}
|
|
895
|
-
};
|
|
896
359
|
export const de_RestoreCertificateAuthorityCommand = async (output, context) => {
|
|
897
360
|
if (output.statusCode >= 300) {
|
|
898
|
-
return
|
|
361
|
+
return de_CommandError(output, context);
|
|
899
362
|
}
|
|
900
363
|
await collectBody(output.body, context);
|
|
901
364
|
const response = {
|
|
@@ -903,34 +366,9 @@ export const de_RestoreCertificateAuthorityCommand = async (output, context) =>
|
|
|
903
366
|
};
|
|
904
367
|
return response;
|
|
905
368
|
};
|
|
906
|
-
const de_RestoreCertificateAuthorityCommandError = async (output, context) => {
|
|
907
|
-
const parsedOutput = {
|
|
908
|
-
...output,
|
|
909
|
-
body: await parseErrorBody(output.body, context),
|
|
910
|
-
};
|
|
911
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
912
|
-
switch (errorCode) {
|
|
913
|
-
case "InvalidArnException":
|
|
914
|
-
case "com.amazonaws.acmpca#InvalidArnException":
|
|
915
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
916
|
-
case "InvalidStateException":
|
|
917
|
-
case "com.amazonaws.acmpca#InvalidStateException":
|
|
918
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
919
|
-
case "ResourceNotFoundException":
|
|
920
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
921
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
922
|
-
default:
|
|
923
|
-
const parsedBody = parsedOutput.body;
|
|
924
|
-
return throwDefaultError({
|
|
925
|
-
output,
|
|
926
|
-
parsedBody,
|
|
927
|
-
errorCode,
|
|
928
|
-
});
|
|
929
|
-
}
|
|
930
|
-
};
|
|
931
369
|
export const de_RevokeCertificateCommand = async (output, context) => {
|
|
932
370
|
if (output.statusCode >= 300) {
|
|
933
|
-
return
|
|
371
|
+
return de_CommandError(output, context);
|
|
934
372
|
}
|
|
935
373
|
await collectBody(output.body, context);
|
|
936
374
|
const response = {
|
|
@@ -938,52 +376,9 @@ export const de_RevokeCertificateCommand = async (output, context) => {
|
|
|
938
376
|
};
|
|
939
377
|
return response;
|
|
940
378
|
};
|
|
941
|
-
const de_RevokeCertificateCommandError = async (output, context) => {
|
|
942
|
-
const parsedOutput = {
|
|
943
|
-
...output,
|
|
944
|
-
body: await parseErrorBody(output.body, context),
|
|
945
|
-
};
|
|
946
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
947
|
-
switch (errorCode) {
|
|
948
|
-
case "ConcurrentModificationException":
|
|
949
|
-
case "com.amazonaws.acmpca#ConcurrentModificationException":
|
|
950
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
951
|
-
case "InvalidArnException":
|
|
952
|
-
case "com.amazonaws.acmpca#InvalidArnException":
|
|
953
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
954
|
-
case "InvalidRequestException":
|
|
955
|
-
case "com.amazonaws.acmpca#InvalidRequestException":
|
|
956
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
957
|
-
case "InvalidStateException":
|
|
958
|
-
case "com.amazonaws.acmpca#InvalidStateException":
|
|
959
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
960
|
-
case "LimitExceededException":
|
|
961
|
-
case "com.amazonaws.acmpca#LimitExceededException":
|
|
962
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
963
|
-
case "RequestAlreadyProcessedException":
|
|
964
|
-
case "com.amazonaws.acmpca#RequestAlreadyProcessedException":
|
|
965
|
-
throw await de_RequestAlreadyProcessedExceptionRes(parsedOutput, context);
|
|
966
|
-
case "RequestFailedException":
|
|
967
|
-
case "com.amazonaws.acmpca#RequestFailedException":
|
|
968
|
-
throw await de_RequestFailedExceptionRes(parsedOutput, context);
|
|
969
|
-
case "RequestInProgressException":
|
|
970
|
-
case "com.amazonaws.acmpca#RequestInProgressException":
|
|
971
|
-
throw await de_RequestInProgressExceptionRes(parsedOutput, context);
|
|
972
|
-
case "ResourceNotFoundException":
|
|
973
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
974
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
975
|
-
default:
|
|
976
|
-
const parsedBody = parsedOutput.body;
|
|
977
|
-
return throwDefaultError({
|
|
978
|
-
output,
|
|
979
|
-
parsedBody,
|
|
980
|
-
errorCode,
|
|
981
|
-
});
|
|
982
|
-
}
|
|
983
|
-
};
|
|
984
379
|
export const de_TagCertificateAuthorityCommand = async (output, context) => {
|
|
985
380
|
if (output.statusCode >= 300) {
|
|
986
|
-
return
|
|
381
|
+
return de_CommandError(output, context);
|
|
987
382
|
}
|
|
988
383
|
await collectBody(output.body, context);
|
|
989
384
|
const response = {
|
|
@@ -991,40 +386,9 @@ export const de_TagCertificateAuthorityCommand = async (output, context) => {
|
|
|
991
386
|
};
|
|
992
387
|
return response;
|
|
993
388
|
};
|
|
994
|
-
const de_TagCertificateAuthorityCommandError = async (output, context) => {
|
|
995
|
-
const parsedOutput = {
|
|
996
|
-
...output,
|
|
997
|
-
body: await parseErrorBody(output.body, context),
|
|
998
|
-
};
|
|
999
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1000
|
-
switch (errorCode) {
|
|
1001
|
-
case "InvalidArnException":
|
|
1002
|
-
case "com.amazonaws.acmpca#InvalidArnException":
|
|
1003
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1004
|
-
case "InvalidStateException":
|
|
1005
|
-
case "com.amazonaws.acmpca#InvalidStateException":
|
|
1006
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
1007
|
-
case "InvalidTagException":
|
|
1008
|
-
case "com.amazonaws.acmpca#InvalidTagException":
|
|
1009
|
-
throw await de_InvalidTagExceptionRes(parsedOutput, context);
|
|
1010
|
-
case "ResourceNotFoundException":
|
|
1011
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
1012
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1013
|
-
case "TooManyTagsException":
|
|
1014
|
-
case "com.amazonaws.acmpca#TooManyTagsException":
|
|
1015
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1016
|
-
default:
|
|
1017
|
-
const parsedBody = parsedOutput.body;
|
|
1018
|
-
return throwDefaultError({
|
|
1019
|
-
output,
|
|
1020
|
-
parsedBody,
|
|
1021
|
-
errorCode,
|
|
1022
|
-
});
|
|
1023
|
-
}
|
|
1024
|
-
};
|
|
1025
389
|
export const de_UntagCertificateAuthorityCommand = async (output, context) => {
|
|
1026
390
|
if (output.statusCode >= 300) {
|
|
1027
|
-
return
|
|
391
|
+
return de_CommandError(output, context);
|
|
1028
392
|
}
|
|
1029
393
|
await collectBody(output.body, context);
|
|
1030
394
|
const response = {
|
|
@@ -1032,37 +396,9 @@ export const de_UntagCertificateAuthorityCommand = async (output, context) => {
|
|
|
1032
396
|
};
|
|
1033
397
|
return response;
|
|
1034
398
|
};
|
|
1035
|
-
const de_UntagCertificateAuthorityCommandError = async (output, context) => {
|
|
1036
|
-
const parsedOutput = {
|
|
1037
|
-
...output,
|
|
1038
|
-
body: await parseErrorBody(output.body, context),
|
|
1039
|
-
};
|
|
1040
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1041
|
-
switch (errorCode) {
|
|
1042
|
-
case "InvalidArnException":
|
|
1043
|
-
case "com.amazonaws.acmpca#InvalidArnException":
|
|
1044
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1045
|
-
case "InvalidStateException":
|
|
1046
|
-
case "com.amazonaws.acmpca#InvalidStateException":
|
|
1047
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
1048
|
-
case "InvalidTagException":
|
|
1049
|
-
case "com.amazonaws.acmpca#InvalidTagException":
|
|
1050
|
-
throw await de_InvalidTagExceptionRes(parsedOutput, context);
|
|
1051
|
-
case "ResourceNotFoundException":
|
|
1052
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
1053
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1054
|
-
default:
|
|
1055
|
-
const parsedBody = parsedOutput.body;
|
|
1056
|
-
return throwDefaultError({
|
|
1057
|
-
output,
|
|
1058
|
-
parsedBody,
|
|
1059
|
-
errorCode,
|
|
1060
|
-
});
|
|
1061
|
-
}
|
|
1062
|
-
};
|
|
1063
399
|
export const de_UpdateCertificateAuthorityCommand = async (output, context) => {
|
|
1064
400
|
if (output.statusCode >= 300) {
|
|
1065
|
-
return
|
|
401
|
+
return de_CommandError(output, context);
|
|
1066
402
|
}
|
|
1067
403
|
await collectBody(output.body, context);
|
|
1068
404
|
const response = {
|
|
@@ -1070,31 +406,70 @@ export const de_UpdateCertificateAuthorityCommand = async (output, context) => {
|
|
|
1070
406
|
};
|
|
1071
407
|
return response;
|
|
1072
408
|
};
|
|
1073
|
-
const
|
|
409
|
+
const de_CommandError = async (output, context) => {
|
|
1074
410
|
const parsedOutput = {
|
|
1075
411
|
...output,
|
|
1076
412
|
body: await parseErrorBody(output.body, context),
|
|
1077
413
|
};
|
|
1078
414
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1079
415
|
switch (errorCode) {
|
|
1080
|
-
case "ConcurrentModificationException":
|
|
1081
|
-
case "com.amazonaws.acmpca#ConcurrentModificationException":
|
|
1082
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1083
416
|
case "InvalidArgsException":
|
|
1084
417
|
case "com.amazonaws.acmpca#InvalidArgsException":
|
|
1085
418
|
throw await de_InvalidArgsExceptionRes(parsedOutput, context);
|
|
1086
|
-
case "InvalidArnException":
|
|
1087
|
-
case "com.amazonaws.acmpca#InvalidArnException":
|
|
1088
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1089
419
|
case "InvalidPolicyException":
|
|
1090
420
|
case "com.amazonaws.acmpca#InvalidPolicyException":
|
|
1091
421
|
throw await de_InvalidPolicyExceptionRes(parsedOutput, context);
|
|
422
|
+
case "InvalidTagException":
|
|
423
|
+
case "com.amazonaws.acmpca#InvalidTagException":
|
|
424
|
+
throw await de_InvalidTagExceptionRes(parsedOutput, context);
|
|
425
|
+
case "LimitExceededException":
|
|
426
|
+
case "com.amazonaws.acmpca#LimitExceededException":
|
|
427
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
428
|
+
case "InvalidArnException":
|
|
429
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
430
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1092
431
|
case "InvalidStateException":
|
|
1093
432
|
case "com.amazonaws.acmpca#InvalidStateException":
|
|
1094
433
|
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
434
|
+
case "RequestFailedException":
|
|
435
|
+
case "com.amazonaws.acmpca#RequestFailedException":
|
|
436
|
+
throw await de_RequestFailedExceptionRes(parsedOutput, context);
|
|
437
|
+
case "RequestInProgressException":
|
|
438
|
+
case "com.amazonaws.acmpca#RequestInProgressException":
|
|
439
|
+
throw await de_RequestInProgressExceptionRes(parsedOutput, context);
|
|
1095
440
|
case "ResourceNotFoundException":
|
|
1096
441
|
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
1097
442
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
443
|
+
case "PermissionAlreadyExistsException":
|
|
444
|
+
case "com.amazonaws.acmpca#PermissionAlreadyExistsException":
|
|
445
|
+
throw await de_PermissionAlreadyExistsExceptionRes(parsedOutput, context);
|
|
446
|
+
case "ConcurrentModificationException":
|
|
447
|
+
case "com.amazonaws.acmpca#ConcurrentModificationException":
|
|
448
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
449
|
+
case "LockoutPreventedException":
|
|
450
|
+
case "com.amazonaws.acmpca#LockoutPreventedException":
|
|
451
|
+
throw await de_LockoutPreventedExceptionRes(parsedOutput, context);
|
|
452
|
+
case "CertificateMismatchException":
|
|
453
|
+
case "com.amazonaws.acmpca#CertificateMismatchException":
|
|
454
|
+
throw await de_CertificateMismatchExceptionRes(parsedOutput, context);
|
|
455
|
+
case "InvalidRequestException":
|
|
456
|
+
case "com.amazonaws.acmpca#InvalidRequestException":
|
|
457
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
458
|
+
case "MalformedCertificateException":
|
|
459
|
+
case "com.amazonaws.acmpca#MalformedCertificateException":
|
|
460
|
+
throw await de_MalformedCertificateExceptionRes(parsedOutput, context);
|
|
461
|
+
case "MalformedCSRException":
|
|
462
|
+
case "com.amazonaws.acmpca#MalformedCSRException":
|
|
463
|
+
throw await de_MalformedCSRExceptionRes(parsedOutput, context);
|
|
464
|
+
case "InvalidNextTokenException":
|
|
465
|
+
case "com.amazonaws.acmpca#InvalidNextTokenException":
|
|
466
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
467
|
+
case "RequestAlreadyProcessedException":
|
|
468
|
+
case "com.amazonaws.acmpca#RequestAlreadyProcessedException":
|
|
469
|
+
throw await de_RequestAlreadyProcessedExceptionRes(parsedOutput, context);
|
|
470
|
+
case "TooManyTagsException":
|
|
471
|
+
case "com.amazonaws.acmpca#TooManyTagsException":
|
|
472
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1098
473
|
default:
|
|
1099
474
|
const parsedBody = parsedOutput.body;
|
|
1100
475
|
return throwDefaultError({
|