@aws-sdk/client-pca-connector-ad 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 +51 -822
- package/dist-es/protocols/Aws_restJson1.js +42 -813
- package/package.json +3 -3
|
@@ -313,7 +313,7 @@ export const se_UpdateTemplateGroupAccessControlEntryCommand = async (input, con
|
|
|
313
313
|
};
|
|
314
314
|
export const de_CreateConnectorCommand = async (output, context) => {
|
|
315
315
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
316
|
-
return
|
|
316
|
+
return de_CommandError(output, context);
|
|
317
317
|
}
|
|
318
318
|
const contents = map({
|
|
319
319
|
$metadata: deserializeMetadata(output),
|
|
@@ -325,46 +325,9 @@ export const de_CreateConnectorCommand = async (output, context) => {
|
|
|
325
325
|
Object.assign(contents, doc);
|
|
326
326
|
return contents;
|
|
327
327
|
};
|
|
328
|
-
const de_CreateConnectorCommandError = async (output, context) => {
|
|
329
|
-
const parsedOutput = {
|
|
330
|
-
...output,
|
|
331
|
-
body: await parseErrorBody(output.body, context),
|
|
332
|
-
};
|
|
333
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
334
|
-
switch (errorCode) {
|
|
335
|
-
case "AccessDeniedException":
|
|
336
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
337
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
338
|
-
case "ConflictException":
|
|
339
|
-
case "com.amazonaws.pcaconnectorad#ConflictException":
|
|
340
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
341
|
-
case "InternalServerException":
|
|
342
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
343
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
344
|
-
case "ResourceNotFoundException":
|
|
345
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
346
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
347
|
-
case "ServiceQuotaExceededException":
|
|
348
|
-
case "com.amazonaws.pcaconnectorad#ServiceQuotaExceededException":
|
|
349
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
350
|
-
case "ThrottlingException":
|
|
351
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
352
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
353
|
-
case "ValidationException":
|
|
354
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
355
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
356
|
-
default:
|
|
357
|
-
const parsedBody = parsedOutput.body;
|
|
358
|
-
return throwDefaultError({
|
|
359
|
-
output,
|
|
360
|
-
parsedBody,
|
|
361
|
-
errorCode,
|
|
362
|
-
});
|
|
363
|
-
}
|
|
364
|
-
};
|
|
365
328
|
export const de_CreateDirectoryRegistrationCommand = async (output, context) => {
|
|
366
329
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
367
|
-
return
|
|
330
|
+
return de_CommandError(output, context);
|
|
368
331
|
}
|
|
369
332
|
const contents = map({
|
|
370
333
|
$metadata: deserializeMetadata(output),
|
|
@@ -376,43 +339,9 @@ export const de_CreateDirectoryRegistrationCommand = async (output, context) =>
|
|
|
376
339
|
Object.assign(contents, doc);
|
|
377
340
|
return contents;
|
|
378
341
|
};
|
|
379
|
-
const de_CreateDirectoryRegistrationCommandError = async (output, context) => {
|
|
380
|
-
const parsedOutput = {
|
|
381
|
-
...output,
|
|
382
|
-
body: await parseErrorBody(output.body, context),
|
|
383
|
-
};
|
|
384
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
385
|
-
switch (errorCode) {
|
|
386
|
-
case "AccessDeniedException":
|
|
387
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
388
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
389
|
-
case "ConflictException":
|
|
390
|
-
case "com.amazonaws.pcaconnectorad#ConflictException":
|
|
391
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
392
|
-
case "InternalServerException":
|
|
393
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
394
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
395
|
-
case "ResourceNotFoundException":
|
|
396
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
397
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
398
|
-
case "ThrottlingException":
|
|
399
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
400
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
401
|
-
case "ValidationException":
|
|
402
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
403
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
404
|
-
default:
|
|
405
|
-
const parsedBody = parsedOutput.body;
|
|
406
|
-
return throwDefaultError({
|
|
407
|
-
output,
|
|
408
|
-
parsedBody,
|
|
409
|
-
errorCode,
|
|
410
|
-
});
|
|
411
|
-
}
|
|
412
|
-
};
|
|
413
342
|
export const de_CreateServicePrincipalNameCommand = async (output, context) => {
|
|
414
343
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
415
|
-
return
|
|
344
|
+
return de_CommandError(output, context);
|
|
416
345
|
}
|
|
417
346
|
const contents = map({
|
|
418
347
|
$metadata: deserializeMetadata(output),
|
|
@@ -420,43 +349,9 @@ export const de_CreateServicePrincipalNameCommand = async (output, context) => {
|
|
|
420
349
|
await collectBody(output.body, context);
|
|
421
350
|
return contents;
|
|
422
351
|
};
|
|
423
|
-
const de_CreateServicePrincipalNameCommandError = async (output, context) => {
|
|
424
|
-
const parsedOutput = {
|
|
425
|
-
...output,
|
|
426
|
-
body: await parseErrorBody(output.body, context),
|
|
427
|
-
};
|
|
428
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
429
|
-
switch (errorCode) {
|
|
430
|
-
case "AccessDeniedException":
|
|
431
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
432
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
433
|
-
case "ConflictException":
|
|
434
|
-
case "com.amazonaws.pcaconnectorad#ConflictException":
|
|
435
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
436
|
-
case "InternalServerException":
|
|
437
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
438
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
439
|
-
case "ResourceNotFoundException":
|
|
440
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
441
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
442
|
-
case "ThrottlingException":
|
|
443
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
444
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
445
|
-
case "ValidationException":
|
|
446
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
447
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
448
|
-
default:
|
|
449
|
-
const parsedBody = parsedOutput.body;
|
|
450
|
-
return throwDefaultError({
|
|
451
|
-
output,
|
|
452
|
-
parsedBody,
|
|
453
|
-
errorCode,
|
|
454
|
-
});
|
|
455
|
-
}
|
|
456
|
-
};
|
|
457
352
|
export const de_CreateTemplateCommand = async (output, context) => {
|
|
458
353
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
459
|
-
return
|
|
354
|
+
return de_CommandError(output, context);
|
|
460
355
|
}
|
|
461
356
|
const contents = map({
|
|
462
357
|
$metadata: deserializeMetadata(output),
|
|
@@ -468,46 +363,9 @@ export const de_CreateTemplateCommand = async (output, context) => {
|
|
|
468
363
|
Object.assign(contents, doc);
|
|
469
364
|
return contents;
|
|
470
365
|
};
|
|
471
|
-
const de_CreateTemplateCommandError = async (output, context) => {
|
|
472
|
-
const parsedOutput = {
|
|
473
|
-
...output,
|
|
474
|
-
body: await parseErrorBody(output.body, context),
|
|
475
|
-
};
|
|
476
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
477
|
-
switch (errorCode) {
|
|
478
|
-
case "AccessDeniedException":
|
|
479
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
480
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
481
|
-
case "ConflictException":
|
|
482
|
-
case "com.amazonaws.pcaconnectorad#ConflictException":
|
|
483
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
484
|
-
case "InternalServerException":
|
|
485
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
486
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
487
|
-
case "ResourceNotFoundException":
|
|
488
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
489
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
490
|
-
case "ServiceQuotaExceededException":
|
|
491
|
-
case "com.amazonaws.pcaconnectorad#ServiceQuotaExceededException":
|
|
492
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
493
|
-
case "ThrottlingException":
|
|
494
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
495
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
496
|
-
case "ValidationException":
|
|
497
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
498
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
499
|
-
default:
|
|
500
|
-
const parsedBody = parsedOutput.body;
|
|
501
|
-
return throwDefaultError({
|
|
502
|
-
output,
|
|
503
|
-
parsedBody,
|
|
504
|
-
errorCode,
|
|
505
|
-
});
|
|
506
|
-
}
|
|
507
|
-
};
|
|
508
366
|
export const de_CreateTemplateGroupAccessControlEntryCommand = async (output, context) => {
|
|
509
367
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
510
|
-
return
|
|
368
|
+
return de_CommandError(output, context);
|
|
511
369
|
}
|
|
512
370
|
const contents = map({
|
|
513
371
|
$metadata: deserializeMetadata(output),
|
|
@@ -515,46 +373,9 @@ export const de_CreateTemplateGroupAccessControlEntryCommand = async (output, co
|
|
|
515
373
|
await collectBody(output.body, context);
|
|
516
374
|
return contents;
|
|
517
375
|
};
|
|
518
|
-
const de_CreateTemplateGroupAccessControlEntryCommandError = async (output, context) => {
|
|
519
|
-
const parsedOutput = {
|
|
520
|
-
...output,
|
|
521
|
-
body: await parseErrorBody(output.body, context),
|
|
522
|
-
};
|
|
523
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
524
|
-
switch (errorCode) {
|
|
525
|
-
case "AccessDeniedException":
|
|
526
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
527
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
528
|
-
case "ConflictException":
|
|
529
|
-
case "com.amazonaws.pcaconnectorad#ConflictException":
|
|
530
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
531
|
-
case "InternalServerException":
|
|
532
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
533
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
534
|
-
case "ResourceNotFoundException":
|
|
535
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
536
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
537
|
-
case "ServiceQuotaExceededException":
|
|
538
|
-
case "com.amazonaws.pcaconnectorad#ServiceQuotaExceededException":
|
|
539
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
540
|
-
case "ThrottlingException":
|
|
541
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
542
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
543
|
-
case "ValidationException":
|
|
544
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
545
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
546
|
-
default:
|
|
547
|
-
const parsedBody = parsedOutput.body;
|
|
548
|
-
return throwDefaultError({
|
|
549
|
-
output,
|
|
550
|
-
parsedBody,
|
|
551
|
-
errorCode,
|
|
552
|
-
});
|
|
553
|
-
}
|
|
554
|
-
};
|
|
555
376
|
export const de_DeleteConnectorCommand = async (output, context) => {
|
|
556
377
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
557
|
-
return
|
|
378
|
+
return de_CommandError(output, context);
|
|
558
379
|
}
|
|
559
380
|
const contents = map({
|
|
560
381
|
$metadata: deserializeMetadata(output),
|
|
@@ -562,43 +383,9 @@ export const de_DeleteConnectorCommand = async (output, context) => {
|
|
|
562
383
|
await collectBody(output.body, context);
|
|
563
384
|
return contents;
|
|
564
385
|
};
|
|
565
|
-
const de_DeleteConnectorCommandError = async (output, context) => {
|
|
566
|
-
const parsedOutput = {
|
|
567
|
-
...output,
|
|
568
|
-
body: await parseErrorBody(output.body, context),
|
|
569
|
-
};
|
|
570
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
571
|
-
switch (errorCode) {
|
|
572
|
-
case "AccessDeniedException":
|
|
573
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
574
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
575
|
-
case "ConflictException":
|
|
576
|
-
case "com.amazonaws.pcaconnectorad#ConflictException":
|
|
577
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
578
|
-
case "InternalServerException":
|
|
579
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
580
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
581
|
-
case "ResourceNotFoundException":
|
|
582
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
583
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
584
|
-
case "ThrottlingException":
|
|
585
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
586
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
587
|
-
case "ValidationException":
|
|
588
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
589
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
590
|
-
default:
|
|
591
|
-
const parsedBody = parsedOutput.body;
|
|
592
|
-
return throwDefaultError({
|
|
593
|
-
output,
|
|
594
|
-
parsedBody,
|
|
595
|
-
errorCode,
|
|
596
|
-
});
|
|
597
|
-
}
|
|
598
|
-
};
|
|
599
386
|
export const de_DeleteDirectoryRegistrationCommand = async (output, context) => {
|
|
600
387
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
601
|
-
return
|
|
388
|
+
return de_CommandError(output, context);
|
|
602
389
|
}
|
|
603
390
|
const contents = map({
|
|
604
391
|
$metadata: deserializeMetadata(output),
|
|
@@ -606,40 +393,9 @@ export const de_DeleteDirectoryRegistrationCommand = async (output, context) =>
|
|
|
606
393
|
await collectBody(output.body, context);
|
|
607
394
|
return contents;
|
|
608
395
|
};
|
|
609
|
-
const de_DeleteDirectoryRegistrationCommandError = async (output, context) => {
|
|
610
|
-
const parsedOutput = {
|
|
611
|
-
...output,
|
|
612
|
-
body: await parseErrorBody(output.body, context),
|
|
613
|
-
};
|
|
614
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
615
|
-
switch (errorCode) {
|
|
616
|
-
case "AccessDeniedException":
|
|
617
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
618
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
619
|
-
case "ConflictException":
|
|
620
|
-
case "com.amazonaws.pcaconnectorad#ConflictException":
|
|
621
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
622
|
-
case "InternalServerException":
|
|
623
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
624
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
625
|
-
case "ThrottlingException":
|
|
626
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
627
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
628
|
-
case "ValidationException":
|
|
629
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
630
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
631
|
-
default:
|
|
632
|
-
const parsedBody = parsedOutput.body;
|
|
633
|
-
return throwDefaultError({
|
|
634
|
-
output,
|
|
635
|
-
parsedBody,
|
|
636
|
-
errorCode,
|
|
637
|
-
});
|
|
638
|
-
}
|
|
639
|
-
};
|
|
640
396
|
export const de_DeleteServicePrincipalNameCommand = async (output, context) => {
|
|
641
397
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
642
|
-
return
|
|
398
|
+
return de_CommandError(output, context);
|
|
643
399
|
}
|
|
644
400
|
const contents = map({
|
|
645
401
|
$metadata: deserializeMetadata(output),
|
|
@@ -647,40 +403,9 @@ export const de_DeleteServicePrincipalNameCommand = async (output, context) => {
|
|
|
647
403
|
await collectBody(output.body, context);
|
|
648
404
|
return contents;
|
|
649
405
|
};
|
|
650
|
-
const de_DeleteServicePrincipalNameCommandError = async (output, context) => {
|
|
651
|
-
const parsedOutput = {
|
|
652
|
-
...output,
|
|
653
|
-
body: await parseErrorBody(output.body, context),
|
|
654
|
-
};
|
|
655
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
656
|
-
switch (errorCode) {
|
|
657
|
-
case "AccessDeniedException":
|
|
658
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
659
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
660
|
-
case "ConflictException":
|
|
661
|
-
case "com.amazonaws.pcaconnectorad#ConflictException":
|
|
662
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
663
|
-
case "InternalServerException":
|
|
664
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
665
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
666
|
-
case "ThrottlingException":
|
|
667
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
668
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
669
|
-
case "ValidationException":
|
|
670
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
671
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
672
|
-
default:
|
|
673
|
-
const parsedBody = parsedOutput.body;
|
|
674
|
-
return throwDefaultError({
|
|
675
|
-
output,
|
|
676
|
-
parsedBody,
|
|
677
|
-
errorCode,
|
|
678
|
-
});
|
|
679
|
-
}
|
|
680
|
-
};
|
|
681
406
|
export const de_DeleteTemplateCommand = async (output, context) => {
|
|
682
407
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
683
|
-
return
|
|
408
|
+
return de_CommandError(output, context);
|
|
684
409
|
}
|
|
685
410
|
const contents = map({
|
|
686
411
|
$metadata: deserializeMetadata(output),
|
|
@@ -688,43 +413,9 @@ export const de_DeleteTemplateCommand = async (output, context) => {
|
|
|
688
413
|
await collectBody(output.body, context);
|
|
689
414
|
return contents;
|
|
690
415
|
};
|
|
691
|
-
const de_DeleteTemplateCommandError = async (output, context) => {
|
|
692
|
-
const parsedOutput = {
|
|
693
|
-
...output,
|
|
694
|
-
body: await parseErrorBody(output.body, context),
|
|
695
|
-
};
|
|
696
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
697
|
-
switch (errorCode) {
|
|
698
|
-
case "AccessDeniedException":
|
|
699
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
700
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
701
|
-
case "ConflictException":
|
|
702
|
-
case "com.amazonaws.pcaconnectorad#ConflictException":
|
|
703
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
704
|
-
case "InternalServerException":
|
|
705
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
706
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
707
|
-
case "ResourceNotFoundException":
|
|
708
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
709
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
710
|
-
case "ThrottlingException":
|
|
711
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
712
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
713
|
-
case "ValidationException":
|
|
714
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
715
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
716
|
-
default:
|
|
717
|
-
const parsedBody = parsedOutput.body;
|
|
718
|
-
return throwDefaultError({
|
|
719
|
-
output,
|
|
720
|
-
parsedBody,
|
|
721
|
-
errorCode,
|
|
722
|
-
});
|
|
723
|
-
}
|
|
724
|
-
};
|
|
725
416
|
export const de_DeleteTemplateGroupAccessControlEntryCommand = async (output, context) => {
|
|
726
417
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
727
|
-
return
|
|
418
|
+
return de_CommandError(output, context);
|
|
728
419
|
}
|
|
729
420
|
const contents = map({
|
|
730
421
|
$metadata: deserializeMetadata(output),
|
|
@@ -732,43 +423,9 @@ export const de_DeleteTemplateGroupAccessControlEntryCommand = async (output, co
|
|
|
732
423
|
await collectBody(output.body, context);
|
|
733
424
|
return contents;
|
|
734
425
|
};
|
|
735
|
-
const de_DeleteTemplateGroupAccessControlEntryCommandError = async (output, context) => {
|
|
736
|
-
const parsedOutput = {
|
|
737
|
-
...output,
|
|
738
|
-
body: await parseErrorBody(output.body, context),
|
|
739
|
-
};
|
|
740
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
741
|
-
switch (errorCode) {
|
|
742
|
-
case "AccessDeniedException":
|
|
743
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
744
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
745
|
-
case "ConflictException":
|
|
746
|
-
case "com.amazonaws.pcaconnectorad#ConflictException":
|
|
747
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
748
|
-
case "InternalServerException":
|
|
749
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
750
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
751
|
-
case "ResourceNotFoundException":
|
|
752
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
753
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
754
|
-
case "ThrottlingException":
|
|
755
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
756
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
757
|
-
case "ValidationException":
|
|
758
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
759
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
760
|
-
default:
|
|
761
|
-
const parsedBody = parsedOutput.body;
|
|
762
|
-
return throwDefaultError({
|
|
763
|
-
output,
|
|
764
|
-
parsedBody,
|
|
765
|
-
errorCode,
|
|
766
|
-
});
|
|
767
|
-
}
|
|
768
|
-
};
|
|
769
426
|
export const de_GetConnectorCommand = async (output, context) => {
|
|
770
427
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
771
|
-
return
|
|
428
|
+
return de_CommandError(output, context);
|
|
772
429
|
}
|
|
773
430
|
const contents = map({
|
|
774
431
|
$metadata: deserializeMetadata(output),
|
|
@@ -780,40 +437,9 @@ export const de_GetConnectorCommand = async (output, context) => {
|
|
|
780
437
|
Object.assign(contents, doc);
|
|
781
438
|
return contents;
|
|
782
439
|
};
|
|
783
|
-
const de_GetConnectorCommandError = async (output, context) => {
|
|
784
|
-
const parsedOutput = {
|
|
785
|
-
...output,
|
|
786
|
-
body: await parseErrorBody(output.body, context),
|
|
787
|
-
};
|
|
788
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
789
|
-
switch (errorCode) {
|
|
790
|
-
case "AccessDeniedException":
|
|
791
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
792
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
793
|
-
case "InternalServerException":
|
|
794
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
795
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
796
|
-
case "ResourceNotFoundException":
|
|
797
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
798
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
799
|
-
case "ThrottlingException":
|
|
800
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
801
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
802
|
-
case "ValidationException":
|
|
803
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
804
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
805
|
-
default:
|
|
806
|
-
const parsedBody = parsedOutput.body;
|
|
807
|
-
return throwDefaultError({
|
|
808
|
-
output,
|
|
809
|
-
parsedBody,
|
|
810
|
-
errorCode,
|
|
811
|
-
});
|
|
812
|
-
}
|
|
813
|
-
};
|
|
814
440
|
export const de_GetDirectoryRegistrationCommand = async (output, context) => {
|
|
815
441
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
816
|
-
return
|
|
442
|
+
return de_CommandError(output, context);
|
|
817
443
|
}
|
|
818
444
|
const contents = map({
|
|
819
445
|
$metadata: deserializeMetadata(output),
|
|
@@ -825,40 +451,9 @@ export const de_GetDirectoryRegistrationCommand = async (output, context) => {
|
|
|
825
451
|
Object.assign(contents, doc);
|
|
826
452
|
return contents;
|
|
827
453
|
};
|
|
828
|
-
const de_GetDirectoryRegistrationCommandError = async (output, context) => {
|
|
829
|
-
const parsedOutput = {
|
|
830
|
-
...output,
|
|
831
|
-
body: await parseErrorBody(output.body, context),
|
|
832
|
-
};
|
|
833
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
834
|
-
switch (errorCode) {
|
|
835
|
-
case "AccessDeniedException":
|
|
836
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
837
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
838
|
-
case "InternalServerException":
|
|
839
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
840
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
841
|
-
case "ResourceNotFoundException":
|
|
842
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
843
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
844
|
-
case "ThrottlingException":
|
|
845
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
846
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
847
|
-
case "ValidationException":
|
|
848
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
849
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
850
|
-
default:
|
|
851
|
-
const parsedBody = parsedOutput.body;
|
|
852
|
-
return throwDefaultError({
|
|
853
|
-
output,
|
|
854
|
-
parsedBody,
|
|
855
|
-
errorCode,
|
|
856
|
-
});
|
|
857
|
-
}
|
|
858
|
-
};
|
|
859
454
|
export const de_GetServicePrincipalNameCommand = async (output, context) => {
|
|
860
455
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
861
|
-
return
|
|
456
|
+
return de_CommandError(output, context);
|
|
862
457
|
}
|
|
863
458
|
const contents = map({
|
|
864
459
|
$metadata: deserializeMetadata(output),
|
|
@@ -870,40 +465,9 @@ export const de_GetServicePrincipalNameCommand = async (output, context) => {
|
|
|
870
465
|
Object.assign(contents, doc);
|
|
871
466
|
return contents;
|
|
872
467
|
};
|
|
873
|
-
const de_GetServicePrincipalNameCommandError = async (output, context) => {
|
|
874
|
-
const parsedOutput = {
|
|
875
|
-
...output,
|
|
876
|
-
body: await parseErrorBody(output.body, context),
|
|
877
|
-
};
|
|
878
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
879
|
-
switch (errorCode) {
|
|
880
|
-
case "AccessDeniedException":
|
|
881
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
882
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
883
|
-
case "InternalServerException":
|
|
884
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
885
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
886
|
-
case "ResourceNotFoundException":
|
|
887
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
888
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
889
|
-
case "ThrottlingException":
|
|
890
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
891
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
892
|
-
case "ValidationException":
|
|
893
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
894
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
895
|
-
default:
|
|
896
|
-
const parsedBody = parsedOutput.body;
|
|
897
|
-
return throwDefaultError({
|
|
898
|
-
output,
|
|
899
|
-
parsedBody,
|
|
900
|
-
errorCode,
|
|
901
|
-
});
|
|
902
|
-
}
|
|
903
|
-
};
|
|
904
468
|
export const de_GetTemplateCommand = async (output, context) => {
|
|
905
469
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
906
|
-
return
|
|
470
|
+
return de_CommandError(output, context);
|
|
907
471
|
}
|
|
908
472
|
const contents = map({
|
|
909
473
|
$metadata: deserializeMetadata(output),
|
|
@@ -915,40 +479,9 @@ export const de_GetTemplateCommand = async (output, context) => {
|
|
|
915
479
|
Object.assign(contents, doc);
|
|
916
480
|
return contents;
|
|
917
481
|
};
|
|
918
|
-
const de_GetTemplateCommandError = async (output, context) => {
|
|
919
|
-
const parsedOutput = {
|
|
920
|
-
...output,
|
|
921
|
-
body: await parseErrorBody(output.body, context),
|
|
922
|
-
};
|
|
923
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
924
|
-
switch (errorCode) {
|
|
925
|
-
case "AccessDeniedException":
|
|
926
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
927
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
928
|
-
case "InternalServerException":
|
|
929
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
930
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
931
|
-
case "ResourceNotFoundException":
|
|
932
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
933
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
934
|
-
case "ThrottlingException":
|
|
935
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
936
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
937
|
-
case "ValidationException":
|
|
938
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
939
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
940
|
-
default:
|
|
941
|
-
const parsedBody = parsedOutput.body;
|
|
942
|
-
return throwDefaultError({
|
|
943
|
-
output,
|
|
944
|
-
parsedBody,
|
|
945
|
-
errorCode,
|
|
946
|
-
});
|
|
947
|
-
}
|
|
948
|
-
};
|
|
949
482
|
export const de_GetTemplateGroupAccessControlEntryCommand = async (output, context) => {
|
|
950
483
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
951
|
-
return
|
|
484
|
+
return de_CommandError(output, context);
|
|
952
485
|
}
|
|
953
486
|
const contents = map({
|
|
954
487
|
$metadata: deserializeMetadata(output),
|
|
@@ -959,84 +492,25 @@ export const de_GetTemplateGroupAccessControlEntryCommand = async (output, conte
|
|
|
959
492
|
});
|
|
960
493
|
Object.assign(contents, doc);
|
|
961
494
|
return contents;
|
|
962
|
-
};
|
|
963
|
-
const
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
body: await parseErrorBody(output.body, context),
|
|
967
|
-
};
|
|
968
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
969
|
-
switch (errorCode) {
|
|
970
|
-
case "AccessDeniedException":
|
|
971
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
972
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
973
|
-
case "InternalServerException":
|
|
974
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
975
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
976
|
-
case "ResourceNotFoundException":
|
|
977
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
978
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
979
|
-
case "ThrottlingException":
|
|
980
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
981
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
982
|
-
case "ValidationException":
|
|
983
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
984
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
985
|
-
default:
|
|
986
|
-
const parsedBody = parsedOutput.body;
|
|
987
|
-
return throwDefaultError({
|
|
988
|
-
output,
|
|
989
|
-
parsedBody,
|
|
990
|
-
errorCode,
|
|
991
|
-
});
|
|
992
|
-
}
|
|
993
|
-
};
|
|
994
|
-
export const de_ListConnectorsCommand = async (output, context) => {
|
|
995
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
996
|
-
return de_ListConnectorsCommandError(output, context);
|
|
997
|
-
}
|
|
998
|
-
const contents = map({
|
|
999
|
-
$metadata: deserializeMetadata(output),
|
|
1000
|
-
});
|
|
1001
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1002
|
-
const doc = take(data, {
|
|
1003
|
-
Connectors: (_) => de_ConnectorList(_, context),
|
|
1004
|
-
NextToken: __expectString,
|
|
1005
|
-
});
|
|
1006
|
-
Object.assign(contents, doc);
|
|
1007
|
-
return contents;
|
|
1008
|
-
};
|
|
1009
|
-
const de_ListConnectorsCommandError = async (output, context) => {
|
|
1010
|
-
const parsedOutput = {
|
|
1011
|
-
...output,
|
|
1012
|
-
body: await parseErrorBody(output.body, context),
|
|
1013
|
-
};
|
|
1014
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1015
|
-
switch (errorCode) {
|
|
1016
|
-
case "AccessDeniedException":
|
|
1017
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1018
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1019
|
-
case "InternalServerException":
|
|
1020
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1021
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1022
|
-
case "ThrottlingException":
|
|
1023
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1024
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1025
|
-
case "ValidationException":
|
|
1026
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1027
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1028
|
-
default:
|
|
1029
|
-
const parsedBody = parsedOutput.body;
|
|
1030
|
-
return throwDefaultError({
|
|
1031
|
-
output,
|
|
1032
|
-
parsedBody,
|
|
1033
|
-
errorCode,
|
|
1034
|
-
});
|
|
495
|
+
};
|
|
496
|
+
export const de_ListConnectorsCommand = async (output, context) => {
|
|
497
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
498
|
+
return de_CommandError(output, context);
|
|
1035
499
|
}
|
|
500
|
+
const contents = map({
|
|
501
|
+
$metadata: deserializeMetadata(output),
|
|
502
|
+
});
|
|
503
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
504
|
+
const doc = take(data, {
|
|
505
|
+
Connectors: (_) => de_ConnectorList(_, context),
|
|
506
|
+
NextToken: __expectString,
|
|
507
|
+
});
|
|
508
|
+
Object.assign(contents, doc);
|
|
509
|
+
return contents;
|
|
1036
510
|
};
|
|
1037
511
|
export const de_ListDirectoryRegistrationsCommand = async (output, context) => {
|
|
1038
512
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1039
|
-
return
|
|
513
|
+
return de_CommandError(output, context);
|
|
1040
514
|
}
|
|
1041
515
|
const contents = map({
|
|
1042
516
|
$metadata: deserializeMetadata(output),
|
|
@@ -1049,37 +523,9 @@ export const de_ListDirectoryRegistrationsCommand = async (output, context) => {
|
|
|
1049
523
|
Object.assign(contents, doc);
|
|
1050
524
|
return contents;
|
|
1051
525
|
};
|
|
1052
|
-
const de_ListDirectoryRegistrationsCommandError = async (output, context) => {
|
|
1053
|
-
const parsedOutput = {
|
|
1054
|
-
...output,
|
|
1055
|
-
body: await parseErrorBody(output.body, context),
|
|
1056
|
-
};
|
|
1057
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1058
|
-
switch (errorCode) {
|
|
1059
|
-
case "AccessDeniedException":
|
|
1060
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1061
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1062
|
-
case "InternalServerException":
|
|
1063
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1064
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1065
|
-
case "ThrottlingException":
|
|
1066
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1067
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1068
|
-
case "ValidationException":
|
|
1069
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1070
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1071
|
-
default:
|
|
1072
|
-
const parsedBody = parsedOutput.body;
|
|
1073
|
-
return throwDefaultError({
|
|
1074
|
-
output,
|
|
1075
|
-
parsedBody,
|
|
1076
|
-
errorCode,
|
|
1077
|
-
});
|
|
1078
|
-
}
|
|
1079
|
-
};
|
|
1080
526
|
export const de_ListServicePrincipalNamesCommand = async (output, context) => {
|
|
1081
527
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1082
|
-
return
|
|
528
|
+
return de_CommandError(output, context);
|
|
1083
529
|
}
|
|
1084
530
|
const contents = map({
|
|
1085
531
|
$metadata: deserializeMetadata(output),
|
|
@@ -1092,40 +538,9 @@ export const de_ListServicePrincipalNamesCommand = async (output, context) => {
|
|
|
1092
538
|
Object.assign(contents, doc);
|
|
1093
539
|
return contents;
|
|
1094
540
|
};
|
|
1095
|
-
const de_ListServicePrincipalNamesCommandError = async (output, context) => {
|
|
1096
|
-
const parsedOutput = {
|
|
1097
|
-
...output,
|
|
1098
|
-
body: await parseErrorBody(output.body, context),
|
|
1099
|
-
};
|
|
1100
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1101
|
-
switch (errorCode) {
|
|
1102
|
-
case "AccessDeniedException":
|
|
1103
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1104
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1105
|
-
case "InternalServerException":
|
|
1106
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1107
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1108
|
-
case "ResourceNotFoundException":
|
|
1109
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
1110
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1111
|
-
case "ThrottlingException":
|
|
1112
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1113
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1114
|
-
case "ValidationException":
|
|
1115
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1116
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1117
|
-
default:
|
|
1118
|
-
const parsedBody = parsedOutput.body;
|
|
1119
|
-
return throwDefaultError({
|
|
1120
|
-
output,
|
|
1121
|
-
parsedBody,
|
|
1122
|
-
errorCode,
|
|
1123
|
-
});
|
|
1124
|
-
}
|
|
1125
|
-
};
|
|
1126
541
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1127
542
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1128
|
-
return
|
|
543
|
+
return de_CommandError(output, context);
|
|
1129
544
|
}
|
|
1130
545
|
const contents = map({
|
|
1131
546
|
$metadata: deserializeMetadata(output),
|
|
@@ -1137,40 +552,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1137
552
|
Object.assign(contents, doc);
|
|
1138
553
|
return contents;
|
|
1139
554
|
};
|
|
1140
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1141
|
-
const parsedOutput = {
|
|
1142
|
-
...output,
|
|
1143
|
-
body: await parseErrorBody(output.body, context),
|
|
1144
|
-
};
|
|
1145
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1146
|
-
switch (errorCode) {
|
|
1147
|
-
case "AccessDeniedException":
|
|
1148
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1149
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1150
|
-
case "InternalServerException":
|
|
1151
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1152
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1153
|
-
case "ResourceNotFoundException":
|
|
1154
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
1155
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1156
|
-
case "ThrottlingException":
|
|
1157
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1158
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1159
|
-
case "ValidationException":
|
|
1160
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1161
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1162
|
-
default:
|
|
1163
|
-
const parsedBody = parsedOutput.body;
|
|
1164
|
-
return throwDefaultError({
|
|
1165
|
-
output,
|
|
1166
|
-
parsedBody,
|
|
1167
|
-
errorCode,
|
|
1168
|
-
});
|
|
1169
|
-
}
|
|
1170
|
-
};
|
|
1171
555
|
export const de_ListTemplateGroupAccessControlEntriesCommand = async (output, context) => {
|
|
1172
556
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1173
|
-
return
|
|
557
|
+
return de_CommandError(output, context);
|
|
1174
558
|
}
|
|
1175
559
|
const contents = map({
|
|
1176
560
|
$metadata: deserializeMetadata(output),
|
|
@@ -1183,40 +567,9 @@ export const de_ListTemplateGroupAccessControlEntriesCommand = async (output, co
|
|
|
1183
567
|
Object.assign(contents, doc);
|
|
1184
568
|
return contents;
|
|
1185
569
|
};
|
|
1186
|
-
const de_ListTemplateGroupAccessControlEntriesCommandError = async (output, context) => {
|
|
1187
|
-
const parsedOutput = {
|
|
1188
|
-
...output,
|
|
1189
|
-
body: await parseErrorBody(output.body, context),
|
|
1190
|
-
};
|
|
1191
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1192
|
-
switch (errorCode) {
|
|
1193
|
-
case "AccessDeniedException":
|
|
1194
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1195
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1196
|
-
case "InternalServerException":
|
|
1197
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1198
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1199
|
-
case "ResourceNotFoundException":
|
|
1200
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
1201
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1202
|
-
case "ThrottlingException":
|
|
1203
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1204
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1205
|
-
case "ValidationException":
|
|
1206
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1207
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1208
|
-
default:
|
|
1209
|
-
const parsedBody = parsedOutput.body;
|
|
1210
|
-
return throwDefaultError({
|
|
1211
|
-
output,
|
|
1212
|
-
parsedBody,
|
|
1213
|
-
errorCode,
|
|
1214
|
-
});
|
|
1215
|
-
}
|
|
1216
|
-
};
|
|
1217
570
|
export const de_ListTemplatesCommand = async (output, context) => {
|
|
1218
571
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1219
|
-
return
|
|
572
|
+
return de_CommandError(output, context);
|
|
1220
573
|
}
|
|
1221
574
|
const contents = map({
|
|
1222
575
|
$metadata: deserializeMetadata(output),
|
|
@@ -1229,40 +582,9 @@ export const de_ListTemplatesCommand = async (output, context) => {
|
|
|
1229
582
|
Object.assign(contents, doc);
|
|
1230
583
|
return contents;
|
|
1231
584
|
};
|
|
1232
|
-
const de_ListTemplatesCommandError = async (output, context) => {
|
|
1233
|
-
const parsedOutput = {
|
|
1234
|
-
...output,
|
|
1235
|
-
body: await parseErrorBody(output.body, context),
|
|
1236
|
-
};
|
|
1237
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1238
|
-
switch (errorCode) {
|
|
1239
|
-
case "AccessDeniedException":
|
|
1240
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1241
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1242
|
-
case "InternalServerException":
|
|
1243
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1244
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1245
|
-
case "ResourceNotFoundException":
|
|
1246
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
1247
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1248
|
-
case "ThrottlingException":
|
|
1249
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1250
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1251
|
-
case "ValidationException":
|
|
1252
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1253
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1254
|
-
default:
|
|
1255
|
-
const parsedBody = parsedOutput.body;
|
|
1256
|
-
return throwDefaultError({
|
|
1257
|
-
output,
|
|
1258
|
-
parsedBody,
|
|
1259
|
-
errorCode,
|
|
1260
|
-
});
|
|
1261
|
-
}
|
|
1262
|
-
};
|
|
1263
585
|
export const de_TagResourceCommand = async (output, context) => {
|
|
1264
586
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1265
|
-
return
|
|
587
|
+
return de_CommandError(output, context);
|
|
1266
588
|
}
|
|
1267
589
|
const contents = map({
|
|
1268
590
|
$metadata: deserializeMetadata(output),
|
|
@@ -1270,40 +592,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1270
592
|
await collectBody(output.body, context);
|
|
1271
593
|
return contents;
|
|
1272
594
|
};
|
|
1273
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1274
|
-
const parsedOutput = {
|
|
1275
|
-
...output,
|
|
1276
|
-
body: await parseErrorBody(output.body, context),
|
|
1277
|
-
};
|
|
1278
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1279
|
-
switch (errorCode) {
|
|
1280
|
-
case "AccessDeniedException":
|
|
1281
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1282
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1283
|
-
case "InternalServerException":
|
|
1284
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1285
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1286
|
-
case "ResourceNotFoundException":
|
|
1287
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
1288
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1289
|
-
case "ThrottlingException":
|
|
1290
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1291
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1292
|
-
case "ValidationException":
|
|
1293
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1294
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1295
|
-
default:
|
|
1296
|
-
const parsedBody = parsedOutput.body;
|
|
1297
|
-
return throwDefaultError({
|
|
1298
|
-
output,
|
|
1299
|
-
parsedBody,
|
|
1300
|
-
errorCode,
|
|
1301
|
-
});
|
|
1302
|
-
}
|
|
1303
|
-
};
|
|
1304
595
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
1305
596
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1306
|
-
return
|
|
597
|
+
return de_CommandError(output, context);
|
|
1307
598
|
}
|
|
1308
599
|
const contents = map({
|
|
1309
600
|
$metadata: deserializeMetadata(output),
|
|
@@ -1311,40 +602,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1311
602
|
await collectBody(output.body, context);
|
|
1312
603
|
return contents;
|
|
1313
604
|
};
|
|
1314
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1315
|
-
const parsedOutput = {
|
|
1316
|
-
...output,
|
|
1317
|
-
body: await parseErrorBody(output.body, context),
|
|
1318
|
-
};
|
|
1319
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1320
|
-
switch (errorCode) {
|
|
1321
|
-
case "AccessDeniedException":
|
|
1322
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1323
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1324
|
-
case "InternalServerException":
|
|
1325
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1326
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1327
|
-
case "ResourceNotFoundException":
|
|
1328
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
1329
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1330
|
-
case "ThrottlingException":
|
|
1331
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1332
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1333
|
-
case "ValidationException":
|
|
1334
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1335
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1336
|
-
default:
|
|
1337
|
-
const parsedBody = parsedOutput.body;
|
|
1338
|
-
return throwDefaultError({
|
|
1339
|
-
output,
|
|
1340
|
-
parsedBody,
|
|
1341
|
-
errorCode,
|
|
1342
|
-
});
|
|
1343
|
-
}
|
|
1344
|
-
};
|
|
1345
605
|
export const de_UpdateTemplateCommand = async (output, context) => {
|
|
1346
606
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1347
|
-
return
|
|
607
|
+
return de_CommandError(output, context);
|
|
1348
608
|
}
|
|
1349
609
|
const contents = map({
|
|
1350
610
|
$metadata: deserializeMetadata(output),
|
|
@@ -1352,43 +612,9 @@ export const de_UpdateTemplateCommand = async (output, context) => {
|
|
|
1352
612
|
await collectBody(output.body, context);
|
|
1353
613
|
return contents;
|
|
1354
614
|
};
|
|
1355
|
-
const de_UpdateTemplateCommandError = async (output, context) => {
|
|
1356
|
-
const parsedOutput = {
|
|
1357
|
-
...output,
|
|
1358
|
-
body: await parseErrorBody(output.body, context),
|
|
1359
|
-
};
|
|
1360
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1361
|
-
switch (errorCode) {
|
|
1362
|
-
case "AccessDeniedException":
|
|
1363
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1364
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1365
|
-
case "ConflictException":
|
|
1366
|
-
case "com.amazonaws.pcaconnectorad#ConflictException":
|
|
1367
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1368
|
-
case "InternalServerException":
|
|
1369
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1370
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1371
|
-
case "ResourceNotFoundException":
|
|
1372
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
1373
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1374
|
-
case "ThrottlingException":
|
|
1375
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1376
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1377
|
-
case "ValidationException":
|
|
1378
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1379
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1380
|
-
default:
|
|
1381
|
-
const parsedBody = parsedOutput.body;
|
|
1382
|
-
return throwDefaultError({
|
|
1383
|
-
output,
|
|
1384
|
-
parsedBody,
|
|
1385
|
-
errorCode,
|
|
1386
|
-
});
|
|
1387
|
-
}
|
|
1388
|
-
};
|
|
1389
615
|
export const de_UpdateTemplateGroupAccessControlEntryCommand = async (output, context) => {
|
|
1390
616
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1391
|
-
return
|
|
617
|
+
return de_CommandError(output, context);
|
|
1392
618
|
}
|
|
1393
619
|
const contents = map({
|
|
1394
620
|
$metadata: deserializeMetadata(output),
|
|
@@ -1396,7 +622,7 @@ export const de_UpdateTemplateGroupAccessControlEntryCommand = async (output, co
|
|
|
1396
622
|
await collectBody(output.body, context);
|
|
1397
623
|
return contents;
|
|
1398
624
|
};
|
|
1399
|
-
const
|
|
625
|
+
const de_CommandError = async (output, context) => {
|
|
1400
626
|
const parsedOutput = {
|
|
1401
627
|
...output,
|
|
1402
628
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1415,6 +641,9 @@ const de_UpdateTemplateGroupAccessControlEntryCommandError = async (output, cont
|
|
|
1415
641
|
case "ResourceNotFoundException":
|
|
1416
642
|
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
1417
643
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
644
|
+
case "ServiceQuotaExceededException":
|
|
645
|
+
case "com.amazonaws.pcaconnectorad#ServiceQuotaExceededException":
|
|
646
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1418
647
|
case "ThrottlingException":
|
|
1419
648
|
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1420
649
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|