@aws-sdk/client-sso-admin 3.51.0 → 3.54.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/CHANGELOG.md +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/SSOAdminServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +101 -2
- package/dist-cjs/protocols/Aws_json1_1.js +341 -1399
- package/dist-es/index.js +1 -0
- package/dist-es/models/SSOAdminServiceException.js +12 -0
- package/dist-es/models/models_0.js +93 -1
- package/dist-es/protocols/Aws_json1_1.js +764 -1510
- package/dist-types/SSOAdminClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/SSOAdminServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +51 -22
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/SSOAdminClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/SSOAdminServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +37 -22
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +33 -33
|
@@ -4,6 +4,8 @@ exports.deserializeAws_json1_1ListAccountsForProvisionedPermissionSetCommand = e
|
|
|
4
4
|
exports.deserializeAws_json1_1UpdatePermissionSetCommand = exports.deserializeAws_json1_1UpdateInstanceAccessControlAttributeConfigurationCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1PutInlinePolicyToPermissionSetCommand = exports.deserializeAws_json1_1ProvisionPermissionSetCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListPermissionSetsProvisionedToAccountCommand = exports.deserializeAws_json1_1ListPermissionSetsCommand = exports.deserializeAws_json1_1ListPermissionSetProvisioningStatusCommand = exports.deserializeAws_json1_1ListManagedPoliciesInPermissionSetCommand = exports.deserializeAws_json1_1ListInstancesCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const SSOAdminServiceException_1 = require("../models/SSOAdminServiceException");
|
|
7
9
|
const serializeAws_json1_1AttachManagedPolicyToPermissionSetCommand = async (input, context) => {
|
|
8
10
|
const headers = {
|
|
9
11
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -339,75 +341,34 @@ const deserializeAws_json1_1AttachManagedPolicyToPermissionSetCommandError = asy
|
|
|
339
341
|
switch (errorCode) {
|
|
340
342
|
case "AccessDeniedException":
|
|
341
343
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
342
|
-
|
|
343
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
344
|
-
name: errorCode,
|
|
345
|
-
$metadata: deserializeMetadata(output),
|
|
346
|
-
};
|
|
347
|
-
break;
|
|
344
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
348
345
|
case "ConflictException":
|
|
349
346
|
case "com.amazonaws.ssoadmin#ConflictException":
|
|
350
|
-
|
|
351
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
352
|
-
name: errorCode,
|
|
353
|
-
$metadata: deserializeMetadata(output),
|
|
354
|
-
};
|
|
355
|
-
break;
|
|
347
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
356
348
|
case "InternalServerException":
|
|
357
349
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
358
|
-
|
|
359
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
360
|
-
name: errorCode,
|
|
361
|
-
$metadata: deserializeMetadata(output),
|
|
362
|
-
};
|
|
363
|
-
break;
|
|
350
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
364
351
|
case "ResourceNotFoundException":
|
|
365
352
|
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
366
|
-
|
|
367
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
368
|
-
name: errorCode,
|
|
369
|
-
$metadata: deserializeMetadata(output),
|
|
370
|
-
};
|
|
371
|
-
break;
|
|
353
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
372
354
|
case "ServiceQuotaExceededException":
|
|
373
355
|
case "com.amazonaws.ssoadmin#ServiceQuotaExceededException":
|
|
374
|
-
|
|
375
|
-
...(await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
376
|
-
name: errorCode,
|
|
377
|
-
$metadata: deserializeMetadata(output),
|
|
378
|
-
};
|
|
379
|
-
break;
|
|
356
|
+
throw await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
380
357
|
case "ThrottlingException":
|
|
381
358
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
382
|
-
|
|
383
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
384
|
-
name: errorCode,
|
|
385
|
-
$metadata: deserializeMetadata(output),
|
|
386
|
-
};
|
|
387
|
-
break;
|
|
359
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
388
360
|
case "ValidationException":
|
|
389
361
|
case "com.amazonaws.ssoadmin#ValidationException":
|
|
390
|
-
|
|
391
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
392
|
-
name: errorCode,
|
|
393
|
-
$metadata: deserializeMetadata(output),
|
|
394
|
-
};
|
|
395
|
-
break;
|
|
362
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
396
363
|
default:
|
|
397
364
|
const parsedBody = parsedOutput.body;
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
...parsedBody,
|
|
401
|
-
name: `${errorCode}`,
|
|
402
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
365
|
+
response = new SSOAdminServiceException_1.SSOAdminServiceException({
|
|
366
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
403
367
|
$fault: "client",
|
|
404
368
|
$metadata: deserializeMetadata(output),
|
|
405
|
-
};
|
|
369
|
+
});
|
|
370
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
406
371
|
}
|
|
407
|
-
const message = response.message || response.Message || errorCode;
|
|
408
|
-
response.message = message;
|
|
409
|
-
delete response.Message;
|
|
410
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
411
372
|
};
|
|
412
373
|
const deserializeAws_json1_1CreateAccountAssignmentCommand = async (output, context) => {
|
|
413
374
|
if (output.statusCode >= 300) {
|
|
@@ -434,75 +395,34 @@ const deserializeAws_json1_1CreateAccountAssignmentCommandError = async (output,
|
|
|
434
395
|
switch (errorCode) {
|
|
435
396
|
case "AccessDeniedException":
|
|
436
397
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
437
|
-
|
|
438
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
439
|
-
name: errorCode,
|
|
440
|
-
$metadata: deserializeMetadata(output),
|
|
441
|
-
};
|
|
442
|
-
break;
|
|
398
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
443
399
|
case "ConflictException":
|
|
444
400
|
case "com.amazonaws.ssoadmin#ConflictException":
|
|
445
|
-
|
|
446
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
447
|
-
name: errorCode,
|
|
448
|
-
$metadata: deserializeMetadata(output),
|
|
449
|
-
};
|
|
450
|
-
break;
|
|
401
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
451
402
|
case "InternalServerException":
|
|
452
403
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
453
|
-
|
|
454
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
455
|
-
name: errorCode,
|
|
456
|
-
$metadata: deserializeMetadata(output),
|
|
457
|
-
};
|
|
458
|
-
break;
|
|
404
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
459
405
|
case "ResourceNotFoundException":
|
|
460
406
|
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
461
|
-
|
|
462
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
463
|
-
name: errorCode,
|
|
464
|
-
$metadata: deserializeMetadata(output),
|
|
465
|
-
};
|
|
466
|
-
break;
|
|
407
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
467
408
|
case "ServiceQuotaExceededException":
|
|
468
409
|
case "com.amazonaws.ssoadmin#ServiceQuotaExceededException":
|
|
469
|
-
|
|
470
|
-
...(await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
471
|
-
name: errorCode,
|
|
472
|
-
$metadata: deserializeMetadata(output),
|
|
473
|
-
};
|
|
474
|
-
break;
|
|
410
|
+
throw await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
475
411
|
case "ThrottlingException":
|
|
476
412
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
477
|
-
|
|
478
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
479
|
-
name: errorCode,
|
|
480
|
-
$metadata: deserializeMetadata(output),
|
|
481
|
-
};
|
|
482
|
-
break;
|
|
413
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
483
414
|
case "ValidationException":
|
|
484
415
|
case "com.amazonaws.ssoadmin#ValidationException":
|
|
485
|
-
|
|
486
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
487
|
-
name: errorCode,
|
|
488
|
-
$metadata: deserializeMetadata(output),
|
|
489
|
-
};
|
|
490
|
-
break;
|
|
416
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
491
417
|
default:
|
|
492
418
|
const parsedBody = parsedOutput.body;
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
...parsedBody,
|
|
496
|
-
name: `${errorCode}`,
|
|
497
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
419
|
+
response = new SSOAdminServiceException_1.SSOAdminServiceException({
|
|
420
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
498
421
|
$fault: "client",
|
|
499
422
|
$metadata: deserializeMetadata(output),
|
|
500
|
-
};
|
|
423
|
+
});
|
|
424
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
501
425
|
}
|
|
502
|
-
const message = response.message || response.Message || errorCode;
|
|
503
|
-
response.message = message;
|
|
504
|
-
delete response.Message;
|
|
505
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
506
426
|
};
|
|
507
427
|
const deserializeAws_json1_1CreateInstanceAccessControlAttributeConfigurationCommand = async (output, context) => {
|
|
508
428
|
if (output.statusCode >= 300) {
|
|
@@ -529,67 +449,31 @@ const deserializeAws_json1_1CreateInstanceAccessControlAttributeConfigurationCom
|
|
|
529
449
|
switch (errorCode) {
|
|
530
450
|
case "AccessDeniedException":
|
|
531
451
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
532
|
-
|
|
533
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
534
|
-
name: errorCode,
|
|
535
|
-
$metadata: deserializeMetadata(output),
|
|
536
|
-
};
|
|
537
|
-
break;
|
|
452
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
538
453
|
case "ConflictException":
|
|
539
454
|
case "com.amazonaws.ssoadmin#ConflictException":
|
|
540
|
-
|
|
541
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
542
|
-
name: errorCode,
|
|
543
|
-
$metadata: deserializeMetadata(output),
|
|
544
|
-
};
|
|
545
|
-
break;
|
|
455
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
546
456
|
case "InternalServerException":
|
|
547
457
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
548
|
-
|
|
549
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
550
|
-
name: errorCode,
|
|
551
|
-
$metadata: deserializeMetadata(output),
|
|
552
|
-
};
|
|
553
|
-
break;
|
|
458
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
554
459
|
case "ResourceNotFoundException":
|
|
555
460
|
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
556
|
-
|
|
557
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
558
|
-
name: errorCode,
|
|
559
|
-
$metadata: deserializeMetadata(output),
|
|
560
|
-
};
|
|
561
|
-
break;
|
|
461
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
562
462
|
case "ThrottlingException":
|
|
563
463
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
564
|
-
|
|
565
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
566
|
-
name: errorCode,
|
|
567
|
-
$metadata: deserializeMetadata(output),
|
|
568
|
-
};
|
|
569
|
-
break;
|
|
464
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
570
465
|
case "ValidationException":
|
|
571
466
|
case "com.amazonaws.ssoadmin#ValidationException":
|
|
572
|
-
|
|
573
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
574
|
-
name: errorCode,
|
|
575
|
-
$metadata: deserializeMetadata(output),
|
|
576
|
-
};
|
|
577
|
-
break;
|
|
467
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
578
468
|
default:
|
|
579
469
|
const parsedBody = parsedOutput.body;
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
...parsedBody,
|
|
583
|
-
name: `${errorCode}`,
|
|
584
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
470
|
+
response = new SSOAdminServiceException_1.SSOAdminServiceException({
|
|
471
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
585
472
|
$fault: "client",
|
|
586
473
|
$metadata: deserializeMetadata(output),
|
|
587
|
-
};
|
|
474
|
+
});
|
|
475
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
588
476
|
}
|
|
589
|
-
const message = response.message || response.Message || errorCode;
|
|
590
|
-
response.message = message;
|
|
591
|
-
delete response.Message;
|
|
592
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
593
477
|
};
|
|
594
478
|
const deserializeAws_json1_1CreatePermissionSetCommand = async (output, context) => {
|
|
595
479
|
if (output.statusCode >= 300) {
|
|
@@ -616,75 +500,34 @@ const deserializeAws_json1_1CreatePermissionSetCommandError = async (output, con
|
|
|
616
500
|
switch (errorCode) {
|
|
617
501
|
case "AccessDeniedException":
|
|
618
502
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
619
|
-
|
|
620
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
621
|
-
name: errorCode,
|
|
622
|
-
$metadata: deserializeMetadata(output),
|
|
623
|
-
};
|
|
624
|
-
break;
|
|
503
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
625
504
|
case "ConflictException":
|
|
626
505
|
case "com.amazonaws.ssoadmin#ConflictException":
|
|
627
|
-
|
|
628
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
629
|
-
name: errorCode,
|
|
630
|
-
$metadata: deserializeMetadata(output),
|
|
631
|
-
};
|
|
632
|
-
break;
|
|
506
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
633
507
|
case "InternalServerException":
|
|
634
508
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
635
|
-
|
|
636
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
637
|
-
name: errorCode,
|
|
638
|
-
$metadata: deserializeMetadata(output),
|
|
639
|
-
};
|
|
640
|
-
break;
|
|
509
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
641
510
|
case "ResourceNotFoundException":
|
|
642
511
|
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
643
|
-
|
|
644
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
645
|
-
name: errorCode,
|
|
646
|
-
$metadata: deserializeMetadata(output),
|
|
647
|
-
};
|
|
648
|
-
break;
|
|
512
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
649
513
|
case "ServiceQuotaExceededException":
|
|
650
514
|
case "com.amazonaws.ssoadmin#ServiceQuotaExceededException":
|
|
651
|
-
|
|
652
|
-
...(await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
653
|
-
name: errorCode,
|
|
654
|
-
$metadata: deserializeMetadata(output),
|
|
655
|
-
};
|
|
656
|
-
break;
|
|
515
|
+
throw await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
657
516
|
case "ThrottlingException":
|
|
658
517
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
659
|
-
|
|
660
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
661
|
-
name: errorCode,
|
|
662
|
-
$metadata: deserializeMetadata(output),
|
|
663
|
-
};
|
|
664
|
-
break;
|
|
518
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
665
519
|
case "ValidationException":
|
|
666
520
|
case "com.amazonaws.ssoadmin#ValidationException":
|
|
667
|
-
|
|
668
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
669
|
-
name: errorCode,
|
|
670
|
-
$metadata: deserializeMetadata(output),
|
|
671
|
-
};
|
|
672
|
-
break;
|
|
521
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
673
522
|
default:
|
|
674
523
|
const parsedBody = parsedOutput.body;
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
...parsedBody,
|
|
678
|
-
name: `${errorCode}`,
|
|
679
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
524
|
+
response = new SSOAdminServiceException_1.SSOAdminServiceException({
|
|
525
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
680
526
|
$fault: "client",
|
|
681
527
|
$metadata: deserializeMetadata(output),
|
|
682
|
-
};
|
|
528
|
+
});
|
|
529
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
683
530
|
}
|
|
684
|
-
const message = response.message || response.Message || errorCode;
|
|
685
|
-
response.message = message;
|
|
686
|
-
delete response.Message;
|
|
687
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
688
531
|
};
|
|
689
532
|
const deserializeAws_json1_1DeleteAccountAssignmentCommand = async (output, context) => {
|
|
690
533
|
if (output.statusCode >= 300) {
|
|
@@ -711,67 +554,31 @@ const deserializeAws_json1_1DeleteAccountAssignmentCommandError = async (output,
|
|
|
711
554
|
switch (errorCode) {
|
|
712
555
|
case "AccessDeniedException":
|
|
713
556
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
714
|
-
|
|
715
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
716
|
-
name: errorCode,
|
|
717
|
-
$metadata: deserializeMetadata(output),
|
|
718
|
-
};
|
|
719
|
-
break;
|
|
557
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
720
558
|
case "ConflictException":
|
|
721
559
|
case "com.amazonaws.ssoadmin#ConflictException":
|
|
722
|
-
|
|
723
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
724
|
-
name: errorCode,
|
|
725
|
-
$metadata: deserializeMetadata(output),
|
|
726
|
-
};
|
|
727
|
-
break;
|
|
560
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
728
561
|
case "InternalServerException":
|
|
729
562
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
730
|
-
|
|
731
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
732
|
-
name: errorCode,
|
|
733
|
-
$metadata: deserializeMetadata(output),
|
|
734
|
-
};
|
|
735
|
-
break;
|
|
563
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
736
564
|
case "ResourceNotFoundException":
|
|
737
565
|
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
738
|
-
|
|
739
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
740
|
-
name: errorCode,
|
|
741
|
-
$metadata: deserializeMetadata(output),
|
|
742
|
-
};
|
|
743
|
-
break;
|
|
566
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
744
567
|
case "ThrottlingException":
|
|
745
568
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
746
|
-
|
|
747
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
748
|
-
name: errorCode,
|
|
749
|
-
$metadata: deserializeMetadata(output),
|
|
750
|
-
};
|
|
751
|
-
break;
|
|
569
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
752
570
|
case "ValidationException":
|
|
753
571
|
case "com.amazonaws.ssoadmin#ValidationException":
|
|
754
|
-
|
|
755
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
756
|
-
name: errorCode,
|
|
757
|
-
$metadata: deserializeMetadata(output),
|
|
758
|
-
};
|
|
759
|
-
break;
|
|
572
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
760
573
|
default:
|
|
761
574
|
const parsedBody = parsedOutput.body;
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
...parsedBody,
|
|
765
|
-
name: `${errorCode}`,
|
|
766
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
575
|
+
response = new SSOAdminServiceException_1.SSOAdminServiceException({
|
|
576
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
767
577
|
$fault: "client",
|
|
768
578
|
$metadata: deserializeMetadata(output),
|
|
769
|
-
};
|
|
579
|
+
});
|
|
580
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
770
581
|
}
|
|
771
|
-
const message = response.message || response.Message || errorCode;
|
|
772
|
-
response.message = message;
|
|
773
|
-
delete response.Message;
|
|
774
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
775
582
|
};
|
|
776
583
|
const deserializeAws_json1_1DeleteInlinePolicyFromPermissionSetCommand = async (output, context) => {
|
|
777
584
|
if (output.statusCode >= 300) {
|
|
@@ -798,67 +605,31 @@ const deserializeAws_json1_1DeleteInlinePolicyFromPermissionSetCommandError = as
|
|
|
798
605
|
switch (errorCode) {
|
|
799
606
|
case "AccessDeniedException":
|
|
800
607
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
801
|
-
|
|
802
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
803
|
-
name: errorCode,
|
|
804
|
-
$metadata: deserializeMetadata(output),
|
|
805
|
-
};
|
|
806
|
-
break;
|
|
608
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
807
609
|
case "ConflictException":
|
|
808
610
|
case "com.amazonaws.ssoadmin#ConflictException":
|
|
809
|
-
|
|
810
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
811
|
-
name: errorCode,
|
|
812
|
-
$metadata: deserializeMetadata(output),
|
|
813
|
-
};
|
|
814
|
-
break;
|
|
611
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
815
612
|
case "InternalServerException":
|
|
816
613
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
817
|
-
|
|
818
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
819
|
-
name: errorCode,
|
|
820
|
-
$metadata: deserializeMetadata(output),
|
|
821
|
-
};
|
|
822
|
-
break;
|
|
614
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
823
615
|
case "ResourceNotFoundException":
|
|
824
616
|
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
825
|
-
|
|
826
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
827
|
-
name: errorCode,
|
|
828
|
-
$metadata: deserializeMetadata(output),
|
|
829
|
-
};
|
|
830
|
-
break;
|
|
617
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
831
618
|
case "ThrottlingException":
|
|
832
619
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
833
|
-
|
|
834
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
835
|
-
name: errorCode,
|
|
836
|
-
$metadata: deserializeMetadata(output),
|
|
837
|
-
};
|
|
838
|
-
break;
|
|
620
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
839
621
|
case "ValidationException":
|
|
840
622
|
case "com.amazonaws.ssoadmin#ValidationException":
|
|
841
|
-
|
|
842
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
843
|
-
name: errorCode,
|
|
844
|
-
$metadata: deserializeMetadata(output),
|
|
845
|
-
};
|
|
846
|
-
break;
|
|
623
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
847
624
|
default:
|
|
848
625
|
const parsedBody = parsedOutput.body;
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
...parsedBody,
|
|
852
|
-
name: `${errorCode}`,
|
|
853
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
626
|
+
response = new SSOAdminServiceException_1.SSOAdminServiceException({
|
|
627
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
854
628
|
$fault: "client",
|
|
855
629
|
$metadata: deserializeMetadata(output),
|
|
856
|
-
};
|
|
630
|
+
});
|
|
631
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
857
632
|
}
|
|
858
|
-
const message = response.message || response.Message || errorCode;
|
|
859
|
-
response.message = message;
|
|
860
|
-
delete response.Message;
|
|
861
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
862
633
|
};
|
|
863
634
|
const deserializeAws_json1_1DeleteInstanceAccessControlAttributeConfigurationCommand = async (output, context) => {
|
|
864
635
|
if (output.statusCode >= 300) {
|
|
@@ -885,67 +656,31 @@ const deserializeAws_json1_1DeleteInstanceAccessControlAttributeConfigurationCom
|
|
|
885
656
|
switch (errorCode) {
|
|
886
657
|
case "AccessDeniedException":
|
|
887
658
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
888
|
-
|
|
889
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
890
|
-
name: errorCode,
|
|
891
|
-
$metadata: deserializeMetadata(output),
|
|
892
|
-
};
|
|
893
|
-
break;
|
|
659
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
894
660
|
case "ConflictException":
|
|
895
661
|
case "com.amazonaws.ssoadmin#ConflictException":
|
|
896
|
-
|
|
897
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
898
|
-
name: errorCode,
|
|
899
|
-
$metadata: deserializeMetadata(output),
|
|
900
|
-
};
|
|
901
|
-
break;
|
|
662
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
902
663
|
case "InternalServerException":
|
|
903
664
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
904
|
-
|
|
905
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
906
|
-
name: errorCode,
|
|
907
|
-
$metadata: deserializeMetadata(output),
|
|
908
|
-
};
|
|
909
|
-
break;
|
|
665
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
910
666
|
case "ResourceNotFoundException":
|
|
911
667
|
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
912
|
-
|
|
913
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
914
|
-
name: errorCode,
|
|
915
|
-
$metadata: deserializeMetadata(output),
|
|
916
|
-
};
|
|
917
|
-
break;
|
|
668
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
918
669
|
case "ThrottlingException":
|
|
919
670
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
920
|
-
|
|
921
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
922
|
-
name: errorCode,
|
|
923
|
-
$metadata: deserializeMetadata(output),
|
|
924
|
-
};
|
|
925
|
-
break;
|
|
671
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
926
672
|
case "ValidationException":
|
|
927
673
|
case "com.amazonaws.ssoadmin#ValidationException":
|
|
928
|
-
|
|
929
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
930
|
-
name: errorCode,
|
|
931
|
-
$metadata: deserializeMetadata(output),
|
|
932
|
-
};
|
|
933
|
-
break;
|
|
674
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
934
675
|
default:
|
|
935
676
|
const parsedBody = parsedOutput.body;
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
...parsedBody,
|
|
939
|
-
name: `${errorCode}`,
|
|
940
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
677
|
+
response = new SSOAdminServiceException_1.SSOAdminServiceException({
|
|
678
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
941
679
|
$fault: "client",
|
|
942
680
|
$metadata: deserializeMetadata(output),
|
|
943
|
-
};
|
|
681
|
+
});
|
|
682
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
944
683
|
}
|
|
945
|
-
const message = response.message || response.Message || errorCode;
|
|
946
|
-
response.message = message;
|
|
947
|
-
delete response.Message;
|
|
948
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
949
684
|
};
|
|
950
685
|
const deserializeAws_json1_1DeletePermissionSetCommand = async (output, context) => {
|
|
951
686
|
if (output.statusCode >= 300) {
|
|
@@ -972,67 +707,31 @@ const deserializeAws_json1_1DeletePermissionSetCommandError = async (output, con
|
|
|
972
707
|
switch (errorCode) {
|
|
973
708
|
case "AccessDeniedException":
|
|
974
709
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
975
|
-
|
|
976
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
977
|
-
name: errorCode,
|
|
978
|
-
$metadata: deserializeMetadata(output),
|
|
979
|
-
};
|
|
980
|
-
break;
|
|
710
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
981
711
|
case "ConflictException":
|
|
982
712
|
case "com.amazonaws.ssoadmin#ConflictException":
|
|
983
|
-
|
|
984
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
985
|
-
name: errorCode,
|
|
986
|
-
$metadata: deserializeMetadata(output),
|
|
987
|
-
};
|
|
988
|
-
break;
|
|
713
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
989
714
|
case "InternalServerException":
|
|
990
715
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
991
|
-
|
|
992
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
993
|
-
name: errorCode,
|
|
994
|
-
$metadata: deserializeMetadata(output),
|
|
995
|
-
};
|
|
996
|
-
break;
|
|
716
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
997
717
|
case "ResourceNotFoundException":
|
|
998
718
|
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
999
|
-
|
|
1000
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1001
|
-
name: errorCode,
|
|
1002
|
-
$metadata: deserializeMetadata(output),
|
|
1003
|
-
};
|
|
1004
|
-
break;
|
|
719
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1005
720
|
case "ThrottlingException":
|
|
1006
721
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1007
|
-
|
|
1008
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1009
|
-
name: errorCode,
|
|
1010
|
-
$metadata: deserializeMetadata(output),
|
|
1011
|
-
};
|
|
1012
|
-
break;
|
|
722
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1013
723
|
case "ValidationException":
|
|
1014
724
|
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1015
|
-
|
|
1016
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1017
|
-
name: errorCode,
|
|
1018
|
-
$metadata: deserializeMetadata(output),
|
|
1019
|
-
};
|
|
1020
|
-
break;
|
|
725
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1021
726
|
default:
|
|
1022
727
|
const parsedBody = parsedOutput.body;
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
...parsedBody,
|
|
1026
|
-
name: `${errorCode}`,
|
|
1027
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
728
|
+
response = new SSOAdminServiceException_1.SSOAdminServiceException({
|
|
729
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1028
730
|
$fault: "client",
|
|
1029
731
|
$metadata: deserializeMetadata(output),
|
|
1030
|
-
};
|
|
732
|
+
});
|
|
733
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1031
734
|
}
|
|
1032
|
-
const message = response.message || response.Message || errorCode;
|
|
1033
|
-
response.message = message;
|
|
1034
|
-
delete response.Message;
|
|
1035
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1036
735
|
};
|
|
1037
736
|
const deserializeAws_json1_1DescribeAccountAssignmentCreationStatusCommand = async (output, context) => {
|
|
1038
737
|
if (output.statusCode >= 300) {
|
|
@@ -1059,59 +758,28 @@ const deserializeAws_json1_1DescribeAccountAssignmentCreationStatusCommandError
|
|
|
1059
758
|
switch (errorCode) {
|
|
1060
759
|
case "AccessDeniedException":
|
|
1061
760
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1062
|
-
|
|
1063
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1064
|
-
name: errorCode,
|
|
1065
|
-
$metadata: deserializeMetadata(output),
|
|
1066
|
-
};
|
|
1067
|
-
break;
|
|
761
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1068
762
|
case "InternalServerException":
|
|
1069
763
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1070
|
-
|
|
1071
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1072
|
-
name: errorCode,
|
|
1073
|
-
$metadata: deserializeMetadata(output),
|
|
1074
|
-
};
|
|
1075
|
-
break;
|
|
764
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1076
765
|
case "ResourceNotFoundException":
|
|
1077
766
|
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1078
|
-
|
|
1079
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1080
|
-
name: errorCode,
|
|
1081
|
-
$metadata: deserializeMetadata(output),
|
|
1082
|
-
};
|
|
1083
|
-
break;
|
|
767
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1084
768
|
case "ThrottlingException":
|
|
1085
769
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1086
|
-
|
|
1087
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1088
|
-
name: errorCode,
|
|
1089
|
-
$metadata: deserializeMetadata(output),
|
|
1090
|
-
};
|
|
1091
|
-
break;
|
|
770
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1092
771
|
case "ValidationException":
|
|
1093
772
|
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1094
|
-
|
|
1095
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1096
|
-
name: errorCode,
|
|
1097
|
-
$metadata: deserializeMetadata(output),
|
|
1098
|
-
};
|
|
1099
|
-
break;
|
|
773
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1100
774
|
default:
|
|
1101
775
|
const parsedBody = parsedOutput.body;
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
...parsedBody,
|
|
1105
|
-
name: `${errorCode}`,
|
|
1106
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
776
|
+
response = new SSOAdminServiceException_1.SSOAdminServiceException({
|
|
777
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1107
778
|
$fault: "client",
|
|
1108
779
|
$metadata: deserializeMetadata(output),
|
|
1109
|
-
};
|
|
780
|
+
});
|
|
781
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1110
782
|
}
|
|
1111
|
-
const message = response.message || response.Message || errorCode;
|
|
1112
|
-
response.message = message;
|
|
1113
|
-
delete response.Message;
|
|
1114
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1115
783
|
};
|
|
1116
784
|
const deserializeAws_json1_1DescribeAccountAssignmentDeletionStatusCommand = async (output, context) => {
|
|
1117
785
|
if (output.statusCode >= 300) {
|
|
@@ -1138,59 +806,28 @@ const deserializeAws_json1_1DescribeAccountAssignmentDeletionStatusCommandError
|
|
|
1138
806
|
switch (errorCode) {
|
|
1139
807
|
case "AccessDeniedException":
|
|
1140
808
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1141
|
-
|
|
1142
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1143
|
-
name: errorCode,
|
|
1144
|
-
$metadata: deserializeMetadata(output),
|
|
1145
|
-
};
|
|
1146
|
-
break;
|
|
809
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1147
810
|
case "InternalServerException":
|
|
1148
811
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1149
|
-
|
|
1150
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1151
|
-
name: errorCode,
|
|
1152
|
-
$metadata: deserializeMetadata(output),
|
|
1153
|
-
};
|
|
1154
|
-
break;
|
|
812
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1155
813
|
case "ResourceNotFoundException":
|
|
1156
814
|
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1157
|
-
|
|
1158
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1159
|
-
name: errorCode,
|
|
1160
|
-
$metadata: deserializeMetadata(output),
|
|
1161
|
-
};
|
|
1162
|
-
break;
|
|
815
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1163
816
|
case "ThrottlingException":
|
|
1164
817
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1165
|
-
|
|
1166
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1167
|
-
name: errorCode,
|
|
1168
|
-
$metadata: deserializeMetadata(output),
|
|
1169
|
-
};
|
|
1170
|
-
break;
|
|
818
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1171
819
|
case "ValidationException":
|
|
1172
820
|
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1173
|
-
|
|
1174
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1175
|
-
name: errorCode,
|
|
1176
|
-
$metadata: deserializeMetadata(output),
|
|
1177
|
-
};
|
|
1178
|
-
break;
|
|
821
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1179
822
|
default:
|
|
1180
823
|
const parsedBody = parsedOutput.body;
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
...parsedBody,
|
|
1184
|
-
name: `${errorCode}`,
|
|
1185
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
824
|
+
response = new SSOAdminServiceException_1.SSOAdminServiceException({
|
|
825
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1186
826
|
$fault: "client",
|
|
1187
827
|
$metadata: deserializeMetadata(output),
|
|
1188
|
-
};
|
|
828
|
+
});
|
|
829
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1189
830
|
}
|
|
1190
|
-
const message = response.message || response.Message || errorCode;
|
|
1191
|
-
response.message = message;
|
|
1192
|
-
delete response.Message;
|
|
1193
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1194
831
|
};
|
|
1195
832
|
const deserializeAws_json1_1DescribeInstanceAccessControlAttributeConfigurationCommand = async (output, context) => {
|
|
1196
833
|
if (output.statusCode >= 300) {
|
|
@@ -1217,59 +854,28 @@ const deserializeAws_json1_1DescribeInstanceAccessControlAttributeConfigurationC
|
|
|
1217
854
|
switch (errorCode) {
|
|
1218
855
|
case "AccessDeniedException":
|
|
1219
856
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1220
|
-
|
|
1221
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1222
|
-
name: errorCode,
|
|
1223
|
-
$metadata: deserializeMetadata(output),
|
|
1224
|
-
};
|
|
1225
|
-
break;
|
|
857
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1226
858
|
case "InternalServerException":
|
|
1227
859
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1228
|
-
|
|
1229
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1230
|
-
name: errorCode,
|
|
1231
|
-
$metadata: deserializeMetadata(output),
|
|
1232
|
-
};
|
|
1233
|
-
break;
|
|
860
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1234
861
|
case "ResourceNotFoundException":
|
|
1235
862
|
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1236
|
-
|
|
1237
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1238
|
-
name: errorCode,
|
|
1239
|
-
$metadata: deserializeMetadata(output),
|
|
1240
|
-
};
|
|
1241
|
-
break;
|
|
863
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1242
864
|
case "ThrottlingException":
|
|
1243
865
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1244
|
-
|
|
1245
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1246
|
-
name: errorCode,
|
|
1247
|
-
$metadata: deserializeMetadata(output),
|
|
1248
|
-
};
|
|
1249
|
-
break;
|
|
866
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1250
867
|
case "ValidationException":
|
|
1251
868
|
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1252
|
-
|
|
1253
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1254
|
-
name: errorCode,
|
|
1255
|
-
$metadata: deserializeMetadata(output),
|
|
1256
|
-
};
|
|
1257
|
-
break;
|
|
869
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1258
870
|
default:
|
|
1259
871
|
const parsedBody = parsedOutput.body;
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
...parsedBody,
|
|
1263
|
-
name: `${errorCode}`,
|
|
1264
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
872
|
+
response = new SSOAdminServiceException_1.SSOAdminServiceException({
|
|
873
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1265
874
|
$fault: "client",
|
|
1266
875
|
$metadata: deserializeMetadata(output),
|
|
1267
|
-
};
|
|
876
|
+
});
|
|
877
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1268
878
|
}
|
|
1269
|
-
const message = response.message || response.Message || errorCode;
|
|
1270
|
-
response.message = message;
|
|
1271
|
-
delete response.Message;
|
|
1272
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1273
879
|
};
|
|
1274
880
|
const deserializeAws_json1_1DescribePermissionSetCommand = async (output, context) => {
|
|
1275
881
|
if (output.statusCode >= 300) {
|
|
@@ -1296,59 +902,28 @@ const deserializeAws_json1_1DescribePermissionSetCommandError = async (output, c
|
|
|
1296
902
|
switch (errorCode) {
|
|
1297
903
|
case "AccessDeniedException":
|
|
1298
904
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1299
|
-
|
|
1300
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1301
|
-
name: errorCode,
|
|
1302
|
-
$metadata: deserializeMetadata(output),
|
|
1303
|
-
};
|
|
1304
|
-
break;
|
|
905
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1305
906
|
case "InternalServerException":
|
|
1306
907
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1307
|
-
|
|
1308
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1309
|
-
name: errorCode,
|
|
1310
|
-
$metadata: deserializeMetadata(output),
|
|
1311
|
-
};
|
|
1312
|
-
break;
|
|
908
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1313
909
|
case "ResourceNotFoundException":
|
|
1314
910
|
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1315
|
-
|
|
1316
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1317
|
-
name: errorCode,
|
|
1318
|
-
$metadata: deserializeMetadata(output),
|
|
1319
|
-
};
|
|
1320
|
-
break;
|
|
911
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1321
912
|
case "ThrottlingException":
|
|
1322
913
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1323
|
-
|
|
1324
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1325
|
-
name: errorCode,
|
|
1326
|
-
$metadata: deserializeMetadata(output),
|
|
1327
|
-
};
|
|
1328
|
-
break;
|
|
914
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1329
915
|
case "ValidationException":
|
|
1330
916
|
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1331
|
-
|
|
1332
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1333
|
-
name: errorCode,
|
|
1334
|
-
$metadata: deserializeMetadata(output),
|
|
1335
|
-
};
|
|
1336
|
-
break;
|
|
917
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1337
918
|
default:
|
|
1338
919
|
const parsedBody = parsedOutput.body;
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
...parsedBody,
|
|
1342
|
-
name: `${errorCode}`,
|
|
1343
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
920
|
+
response = new SSOAdminServiceException_1.SSOAdminServiceException({
|
|
921
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1344
922
|
$fault: "client",
|
|
1345
923
|
$metadata: deserializeMetadata(output),
|
|
1346
|
-
};
|
|
924
|
+
});
|
|
925
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1347
926
|
}
|
|
1348
|
-
const message = response.message || response.Message || errorCode;
|
|
1349
|
-
response.message = message;
|
|
1350
|
-
delete response.Message;
|
|
1351
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1352
927
|
};
|
|
1353
928
|
const deserializeAws_json1_1DescribePermissionSetProvisioningStatusCommand = async (output, context) => {
|
|
1354
929
|
if (output.statusCode >= 300) {
|
|
@@ -1375,59 +950,28 @@ const deserializeAws_json1_1DescribePermissionSetProvisioningStatusCommandError
|
|
|
1375
950
|
switch (errorCode) {
|
|
1376
951
|
case "AccessDeniedException":
|
|
1377
952
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1378
|
-
|
|
1379
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1380
|
-
name: errorCode,
|
|
1381
|
-
$metadata: deserializeMetadata(output),
|
|
1382
|
-
};
|
|
1383
|
-
break;
|
|
953
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1384
954
|
case "InternalServerException":
|
|
1385
955
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1386
|
-
|
|
1387
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1388
|
-
name: errorCode,
|
|
1389
|
-
$metadata: deserializeMetadata(output),
|
|
1390
|
-
};
|
|
1391
|
-
break;
|
|
956
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1392
957
|
case "ResourceNotFoundException":
|
|
1393
958
|
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1394
|
-
|
|
1395
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1396
|
-
name: errorCode,
|
|
1397
|
-
$metadata: deserializeMetadata(output),
|
|
1398
|
-
};
|
|
1399
|
-
break;
|
|
959
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1400
960
|
case "ThrottlingException":
|
|
1401
961
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1402
|
-
|
|
1403
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1404
|
-
name: errorCode,
|
|
1405
|
-
$metadata: deserializeMetadata(output),
|
|
1406
|
-
};
|
|
1407
|
-
break;
|
|
962
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1408
963
|
case "ValidationException":
|
|
1409
964
|
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1410
|
-
|
|
1411
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1412
|
-
name: errorCode,
|
|
1413
|
-
$metadata: deserializeMetadata(output),
|
|
1414
|
-
};
|
|
1415
|
-
break;
|
|
965
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1416
966
|
default:
|
|
1417
967
|
const parsedBody = parsedOutput.body;
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
...parsedBody,
|
|
1421
|
-
name: `${errorCode}`,
|
|
1422
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
968
|
+
response = new SSOAdminServiceException_1.SSOAdminServiceException({
|
|
969
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1423
970
|
$fault: "client",
|
|
1424
971
|
$metadata: deserializeMetadata(output),
|
|
1425
|
-
};
|
|
972
|
+
});
|
|
973
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1426
974
|
}
|
|
1427
|
-
const message = response.message || response.Message || errorCode;
|
|
1428
|
-
response.message = message;
|
|
1429
|
-
delete response.Message;
|
|
1430
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1431
975
|
};
|
|
1432
976
|
const deserializeAws_json1_1DetachManagedPolicyFromPermissionSetCommand = async (output, context) => {
|
|
1433
977
|
if (output.statusCode >= 300) {
|
|
@@ -1454,67 +998,31 @@ const deserializeAws_json1_1DetachManagedPolicyFromPermissionSetCommandError = a
|
|
|
1454
998
|
switch (errorCode) {
|
|
1455
999
|
case "AccessDeniedException":
|
|
1456
1000
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1457
|
-
|
|
1458
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1459
|
-
name: errorCode,
|
|
1460
|
-
$metadata: deserializeMetadata(output),
|
|
1461
|
-
};
|
|
1462
|
-
break;
|
|
1001
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1463
1002
|
case "ConflictException":
|
|
1464
1003
|
case "com.amazonaws.ssoadmin#ConflictException":
|
|
1465
|
-
|
|
1466
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
1467
|
-
name: errorCode,
|
|
1468
|
-
$metadata: deserializeMetadata(output),
|
|
1469
|
-
};
|
|
1470
|
-
break;
|
|
1004
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
1471
1005
|
case "InternalServerException":
|
|
1472
1006
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1473
|
-
|
|
1474
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1475
|
-
name: errorCode,
|
|
1476
|
-
$metadata: deserializeMetadata(output),
|
|
1477
|
-
};
|
|
1478
|
-
break;
|
|
1007
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1479
1008
|
case "ResourceNotFoundException":
|
|
1480
1009
|
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1481
|
-
|
|
1482
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1483
|
-
name: errorCode,
|
|
1484
|
-
$metadata: deserializeMetadata(output),
|
|
1485
|
-
};
|
|
1486
|
-
break;
|
|
1010
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1487
1011
|
case "ThrottlingException":
|
|
1488
1012
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1489
|
-
|
|
1490
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1491
|
-
name: errorCode,
|
|
1492
|
-
$metadata: deserializeMetadata(output),
|
|
1493
|
-
};
|
|
1494
|
-
break;
|
|
1013
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1495
1014
|
case "ValidationException":
|
|
1496
1015
|
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1497
|
-
|
|
1498
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1499
|
-
name: errorCode,
|
|
1500
|
-
$metadata: deserializeMetadata(output),
|
|
1501
|
-
};
|
|
1502
|
-
break;
|
|
1016
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1503
1017
|
default:
|
|
1504
1018
|
const parsedBody = parsedOutput.body;
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
...parsedBody,
|
|
1508
|
-
name: `${errorCode}`,
|
|
1509
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1019
|
+
response = new SSOAdminServiceException_1.SSOAdminServiceException({
|
|
1020
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1510
1021
|
$fault: "client",
|
|
1511
1022
|
$metadata: deserializeMetadata(output),
|
|
1512
|
-
};
|
|
1023
|
+
});
|
|
1024
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1513
1025
|
}
|
|
1514
|
-
const message = response.message || response.Message || errorCode;
|
|
1515
|
-
response.message = message;
|
|
1516
|
-
delete response.Message;
|
|
1517
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1518
1026
|
};
|
|
1519
1027
|
const deserializeAws_json1_1GetInlinePolicyForPermissionSetCommand = async (output, context) => {
|
|
1520
1028
|
if (output.statusCode >= 300) {
|
|
@@ -1541,59 +1049,28 @@ const deserializeAws_json1_1GetInlinePolicyForPermissionSetCommandError = async
|
|
|
1541
1049
|
switch (errorCode) {
|
|
1542
1050
|
case "AccessDeniedException":
|
|
1543
1051
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1544
|
-
|
|
1545
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1546
|
-
name: errorCode,
|
|
1547
|
-
$metadata: deserializeMetadata(output),
|
|
1548
|
-
};
|
|
1549
|
-
break;
|
|
1052
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1550
1053
|
case "InternalServerException":
|
|
1551
1054
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1552
|
-
|
|
1553
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1554
|
-
name: errorCode,
|
|
1555
|
-
$metadata: deserializeMetadata(output),
|
|
1556
|
-
};
|
|
1557
|
-
break;
|
|
1055
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1558
1056
|
case "ResourceNotFoundException":
|
|
1559
1057
|
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1560
|
-
|
|
1561
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1562
|
-
name: errorCode,
|
|
1563
|
-
$metadata: deserializeMetadata(output),
|
|
1564
|
-
};
|
|
1565
|
-
break;
|
|
1058
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1566
1059
|
case "ThrottlingException":
|
|
1567
1060
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1568
|
-
|
|
1569
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1570
|
-
name: errorCode,
|
|
1571
|
-
$metadata: deserializeMetadata(output),
|
|
1572
|
-
};
|
|
1573
|
-
break;
|
|
1061
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1574
1062
|
case "ValidationException":
|
|
1575
1063
|
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1576
|
-
|
|
1577
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1578
|
-
name: errorCode,
|
|
1579
|
-
$metadata: deserializeMetadata(output),
|
|
1580
|
-
};
|
|
1581
|
-
break;
|
|
1064
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1582
1065
|
default:
|
|
1583
1066
|
const parsedBody = parsedOutput.body;
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
...parsedBody,
|
|
1587
|
-
name: `${errorCode}`,
|
|
1588
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1067
|
+
response = new SSOAdminServiceException_1.SSOAdminServiceException({
|
|
1068
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1589
1069
|
$fault: "client",
|
|
1590
1070
|
$metadata: deserializeMetadata(output),
|
|
1591
|
-
};
|
|
1071
|
+
});
|
|
1072
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1592
1073
|
}
|
|
1593
|
-
const message = response.message || response.Message || errorCode;
|
|
1594
|
-
response.message = message;
|
|
1595
|
-
delete response.Message;
|
|
1596
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1597
1074
|
};
|
|
1598
1075
|
const deserializeAws_json1_1ListAccountAssignmentCreationStatusCommand = async (output, context) => {
|
|
1599
1076
|
if (output.statusCode >= 300) {
|
|
@@ -1620,59 +1097,28 @@ const deserializeAws_json1_1ListAccountAssignmentCreationStatusCommandError = as
|
|
|
1620
1097
|
switch (errorCode) {
|
|
1621
1098
|
case "AccessDeniedException":
|
|
1622
1099
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1623
|
-
|
|
1624
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1625
|
-
name: errorCode,
|
|
1626
|
-
$metadata: deserializeMetadata(output),
|
|
1627
|
-
};
|
|
1628
|
-
break;
|
|
1100
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1629
1101
|
case "InternalServerException":
|
|
1630
1102
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1631
|
-
|
|
1632
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1633
|
-
name: errorCode,
|
|
1634
|
-
$metadata: deserializeMetadata(output),
|
|
1635
|
-
};
|
|
1636
|
-
break;
|
|
1103
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1637
1104
|
case "ResourceNotFoundException":
|
|
1638
1105
|
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1639
|
-
|
|
1640
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1641
|
-
name: errorCode,
|
|
1642
|
-
$metadata: deserializeMetadata(output),
|
|
1643
|
-
};
|
|
1644
|
-
break;
|
|
1106
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1645
1107
|
case "ThrottlingException":
|
|
1646
1108
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1647
|
-
|
|
1648
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1649
|
-
name: errorCode,
|
|
1650
|
-
$metadata: deserializeMetadata(output),
|
|
1651
|
-
};
|
|
1652
|
-
break;
|
|
1109
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1653
1110
|
case "ValidationException":
|
|
1654
1111
|
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1655
|
-
|
|
1656
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1657
|
-
name: errorCode,
|
|
1658
|
-
$metadata: deserializeMetadata(output),
|
|
1659
|
-
};
|
|
1660
|
-
break;
|
|
1112
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1661
1113
|
default:
|
|
1662
1114
|
const parsedBody = parsedOutput.body;
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
...parsedBody,
|
|
1666
|
-
name: `${errorCode}`,
|
|
1667
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1115
|
+
response = new SSOAdminServiceException_1.SSOAdminServiceException({
|
|
1116
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1668
1117
|
$fault: "client",
|
|
1669
1118
|
$metadata: deserializeMetadata(output),
|
|
1670
|
-
};
|
|
1119
|
+
});
|
|
1120
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1671
1121
|
}
|
|
1672
|
-
const message = response.message || response.Message || errorCode;
|
|
1673
|
-
response.message = message;
|
|
1674
|
-
delete response.Message;
|
|
1675
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1676
1122
|
};
|
|
1677
1123
|
const deserializeAws_json1_1ListAccountAssignmentDeletionStatusCommand = async (output, context) => {
|
|
1678
1124
|
if (output.statusCode >= 300) {
|
|
@@ -1699,59 +1145,28 @@ const deserializeAws_json1_1ListAccountAssignmentDeletionStatusCommandError = as
|
|
|
1699
1145
|
switch (errorCode) {
|
|
1700
1146
|
case "AccessDeniedException":
|
|
1701
1147
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1702
|
-
|
|
1703
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1704
|
-
name: errorCode,
|
|
1705
|
-
$metadata: deserializeMetadata(output),
|
|
1706
|
-
};
|
|
1707
|
-
break;
|
|
1148
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1708
1149
|
case "InternalServerException":
|
|
1709
1150
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1710
|
-
|
|
1711
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1712
|
-
name: errorCode,
|
|
1713
|
-
$metadata: deserializeMetadata(output),
|
|
1714
|
-
};
|
|
1715
|
-
break;
|
|
1151
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1716
1152
|
case "ResourceNotFoundException":
|
|
1717
1153
|
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1718
|
-
|
|
1719
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1720
|
-
name: errorCode,
|
|
1721
|
-
$metadata: deserializeMetadata(output),
|
|
1722
|
-
};
|
|
1723
|
-
break;
|
|
1154
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1724
1155
|
case "ThrottlingException":
|
|
1725
1156
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1726
|
-
|
|
1727
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1728
|
-
name: errorCode,
|
|
1729
|
-
$metadata: deserializeMetadata(output),
|
|
1730
|
-
};
|
|
1731
|
-
break;
|
|
1157
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1732
1158
|
case "ValidationException":
|
|
1733
1159
|
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1734
|
-
|
|
1735
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1736
|
-
name: errorCode,
|
|
1737
|
-
$metadata: deserializeMetadata(output),
|
|
1738
|
-
};
|
|
1739
|
-
break;
|
|
1160
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1740
1161
|
default:
|
|
1741
1162
|
const parsedBody = parsedOutput.body;
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
...parsedBody,
|
|
1745
|
-
name: `${errorCode}`,
|
|
1746
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1163
|
+
response = new SSOAdminServiceException_1.SSOAdminServiceException({
|
|
1164
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1747
1165
|
$fault: "client",
|
|
1748
1166
|
$metadata: deserializeMetadata(output),
|
|
1749
|
-
};
|
|
1167
|
+
});
|
|
1168
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1750
1169
|
}
|
|
1751
|
-
const message = response.message || response.Message || errorCode;
|
|
1752
|
-
response.message = message;
|
|
1753
|
-
delete response.Message;
|
|
1754
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1755
1170
|
};
|
|
1756
1171
|
const deserializeAws_json1_1ListAccountAssignmentsCommand = async (output, context) => {
|
|
1757
1172
|
if (output.statusCode >= 300) {
|
|
@@ -1778,59 +1193,28 @@ const deserializeAws_json1_1ListAccountAssignmentsCommandError = async (output,
|
|
|
1778
1193
|
switch (errorCode) {
|
|
1779
1194
|
case "AccessDeniedException":
|
|
1780
1195
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1781
|
-
|
|
1782
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1783
|
-
name: errorCode,
|
|
1784
|
-
$metadata: deserializeMetadata(output),
|
|
1785
|
-
};
|
|
1786
|
-
break;
|
|
1196
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1787
1197
|
case "InternalServerException":
|
|
1788
1198
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1789
|
-
|
|
1790
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1791
|
-
name: errorCode,
|
|
1792
|
-
$metadata: deserializeMetadata(output),
|
|
1793
|
-
};
|
|
1794
|
-
break;
|
|
1199
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1795
1200
|
case "ResourceNotFoundException":
|
|
1796
1201
|
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1797
|
-
|
|
1798
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1799
|
-
name: errorCode,
|
|
1800
|
-
$metadata: deserializeMetadata(output),
|
|
1801
|
-
};
|
|
1802
|
-
break;
|
|
1202
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1803
1203
|
case "ThrottlingException":
|
|
1804
1204
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1805
|
-
|
|
1806
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1807
|
-
name: errorCode,
|
|
1808
|
-
$metadata: deserializeMetadata(output),
|
|
1809
|
-
};
|
|
1810
|
-
break;
|
|
1205
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1811
1206
|
case "ValidationException":
|
|
1812
1207
|
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1813
|
-
|
|
1814
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1815
|
-
name: errorCode,
|
|
1816
|
-
$metadata: deserializeMetadata(output),
|
|
1817
|
-
};
|
|
1818
|
-
break;
|
|
1208
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1819
1209
|
default:
|
|
1820
1210
|
const parsedBody = parsedOutput.body;
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
...parsedBody,
|
|
1824
|
-
name: `${errorCode}`,
|
|
1825
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1211
|
+
response = new SSOAdminServiceException_1.SSOAdminServiceException({
|
|
1212
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1826
1213
|
$fault: "client",
|
|
1827
1214
|
$metadata: deserializeMetadata(output),
|
|
1828
|
-
};
|
|
1215
|
+
});
|
|
1216
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1829
1217
|
}
|
|
1830
|
-
const message = response.message || response.Message || errorCode;
|
|
1831
|
-
response.message = message;
|
|
1832
|
-
delete response.Message;
|
|
1833
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1834
1218
|
};
|
|
1835
1219
|
const deserializeAws_json1_1ListAccountsForProvisionedPermissionSetCommand = async (output, context) => {
|
|
1836
1220
|
if (output.statusCode >= 300) {
|
|
@@ -1857,59 +1241,28 @@ const deserializeAws_json1_1ListAccountsForProvisionedPermissionSetCommandError
|
|
|
1857
1241
|
switch (errorCode) {
|
|
1858
1242
|
case "AccessDeniedException":
|
|
1859
1243
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1860
|
-
|
|
1861
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1862
|
-
name: errorCode,
|
|
1863
|
-
$metadata: deserializeMetadata(output),
|
|
1864
|
-
};
|
|
1865
|
-
break;
|
|
1244
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1866
1245
|
case "InternalServerException":
|
|
1867
1246
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1868
|
-
|
|
1869
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1870
|
-
name: errorCode,
|
|
1871
|
-
$metadata: deserializeMetadata(output),
|
|
1872
|
-
};
|
|
1873
|
-
break;
|
|
1247
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1874
1248
|
case "ResourceNotFoundException":
|
|
1875
1249
|
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1876
|
-
|
|
1877
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1878
|
-
name: errorCode,
|
|
1879
|
-
$metadata: deserializeMetadata(output),
|
|
1880
|
-
};
|
|
1881
|
-
break;
|
|
1250
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1882
1251
|
case "ThrottlingException":
|
|
1883
1252
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1884
|
-
|
|
1885
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1886
|
-
name: errorCode,
|
|
1887
|
-
$metadata: deserializeMetadata(output),
|
|
1888
|
-
};
|
|
1889
|
-
break;
|
|
1253
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1890
1254
|
case "ValidationException":
|
|
1891
1255
|
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1892
|
-
|
|
1893
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1894
|
-
name: errorCode,
|
|
1895
|
-
$metadata: deserializeMetadata(output),
|
|
1896
|
-
};
|
|
1897
|
-
break;
|
|
1256
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1898
1257
|
default:
|
|
1899
1258
|
const parsedBody = parsedOutput.body;
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
...parsedBody,
|
|
1903
|
-
name: `${errorCode}`,
|
|
1904
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1259
|
+
response = new SSOAdminServiceException_1.SSOAdminServiceException({
|
|
1260
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1905
1261
|
$fault: "client",
|
|
1906
1262
|
$metadata: deserializeMetadata(output),
|
|
1907
|
-
};
|
|
1263
|
+
});
|
|
1264
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1908
1265
|
}
|
|
1909
|
-
const message = response.message || response.Message || errorCode;
|
|
1910
|
-
response.message = message;
|
|
1911
|
-
delete response.Message;
|
|
1912
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1913
1266
|
};
|
|
1914
1267
|
const deserializeAws_json1_1ListInstancesCommand = async (output, context) => {
|
|
1915
1268
|
if (output.statusCode >= 300) {
|
|
@@ -1936,51 +1289,25 @@ const deserializeAws_json1_1ListInstancesCommandError = async (output, context)
|
|
|
1936
1289
|
switch (errorCode) {
|
|
1937
1290
|
case "AccessDeniedException":
|
|
1938
1291
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1939
|
-
|
|
1940
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1941
|
-
name: errorCode,
|
|
1942
|
-
$metadata: deserializeMetadata(output),
|
|
1943
|
-
};
|
|
1944
|
-
break;
|
|
1292
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1945
1293
|
case "InternalServerException":
|
|
1946
1294
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1947
|
-
|
|
1948
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1949
|
-
name: errorCode,
|
|
1950
|
-
$metadata: deserializeMetadata(output),
|
|
1951
|
-
};
|
|
1952
|
-
break;
|
|
1295
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1953
1296
|
case "ThrottlingException":
|
|
1954
1297
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1955
|
-
|
|
1956
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1957
|
-
name: errorCode,
|
|
1958
|
-
$metadata: deserializeMetadata(output),
|
|
1959
|
-
};
|
|
1960
|
-
break;
|
|
1298
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1961
1299
|
case "ValidationException":
|
|
1962
1300
|
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1963
|
-
|
|
1964
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1965
|
-
name: errorCode,
|
|
1966
|
-
$metadata: deserializeMetadata(output),
|
|
1967
|
-
};
|
|
1968
|
-
break;
|
|
1301
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1969
1302
|
default:
|
|
1970
1303
|
const parsedBody = parsedOutput.body;
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
...parsedBody,
|
|
1974
|
-
name: `${errorCode}`,
|
|
1975
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1304
|
+
response = new SSOAdminServiceException_1.SSOAdminServiceException({
|
|
1305
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1976
1306
|
$fault: "client",
|
|
1977
1307
|
$metadata: deserializeMetadata(output),
|
|
1978
|
-
};
|
|
1308
|
+
});
|
|
1309
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1979
1310
|
}
|
|
1980
|
-
const message = response.message || response.Message || errorCode;
|
|
1981
|
-
response.message = message;
|
|
1982
|
-
delete response.Message;
|
|
1983
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1984
1311
|
};
|
|
1985
1312
|
const deserializeAws_json1_1ListManagedPoliciesInPermissionSetCommand = async (output, context) => {
|
|
1986
1313
|
if (output.statusCode >= 300) {
|
|
@@ -2007,59 +1334,28 @@ const deserializeAws_json1_1ListManagedPoliciesInPermissionSetCommandError = asy
|
|
|
2007
1334
|
switch (errorCode) {
|
|
2008
1335
|
case "AccessDeniedException":
|
|
2009
1336
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2010
|
-
|
|
2011
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2012
|
-
name: errorCode,
|
|
2013
|
-
$metadata: deserializeMetadata(output),
|
|
2014
|
-
};
|
|
2015
|
-
break;
|
|
1337
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2016
1338
|
case "InternalServerException":
|
|
2017
1339
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2018
|
-
|
|
2019
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2020
|
-
name: errorCode,
|
|
2021
|
-
$metadata: deserializeMetadata(output),
|
|
2022
|
-
};
|
|
2023
|
-
break;
|
|
1340
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
2024
1341
|
case "ResourceNotFoundException":
|
|
2025
1342
|
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2026
|
-
|
|
2027
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2028
|
-
name: errorCode,
|
|
2029
|
-
$metadata: deserializeMetadata(output),
|
|
2030
|
-
};
|
|
2031
|
-
break;
|
|
1343
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2032
1344
|
case "ThrottlingException":
|
|
2033
1345
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2034
|
-
|
|
2035
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2036
|
-
name: errorCode,
|
|
2037
|
-
$metadata: deserializeMetadata(output),
|
|
2038
|
-
};
|
|
2039
|
-
break;
|
|
1346
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2040
1347
|
case "ValidationException":
|
|
2041
1348
|
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2042
|
-
|
|
2043
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2044
|
-
name: errorCode,
|
|
2045
|
-
$metadata: deserializeMetadata(output),
|
|
2046
|
-
};
|
|
2047
|
-
break;
|
|
1349
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2048
1350
|
default:
|
|
2049
1351
|
const parsedBody = parsedOutput.body;
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
...parsedBody,
|
|
2053
|
-
name: `${errorCode}`,
|
|
2054
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1352
|
+
response = new SSOAdminServiceException_1.SSOAdminServiceException({
|
|
1353
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2055
1354
|
$fault: "client",
|
|
2056
1355
|
$metadata: deserializeMetadata(output),
|
|
2057
|
-
};
|
|
1356
|
+
});
|
|
1357
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2058
1358
|
}
|
|
2059
|
-
const message = response.message || response.Message || errorCode;
|
|
2060
|
-
response.message = message;
|
|
2061
|
-
delete response.Message;
|
|
2062
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2063
1359
|
};
|
|
2064
1360
|
const deserializeAws_json1_1ListPermissionSetProvisioningStatusCommand = async (output, context) => {
|
|
2065
1361
|
if (output.statusCode >= 300) {
|
|
@@ -2086,59 +1382,28 @@ const deserializeAws_json1_1ListPermissionSetProvisioningStatusCommandError = as
|
|
|
2086
1382
|
switch (errorCode) {
|
|
2087
1383
|
case "AccessDeniedException":
|
|
2088
1384
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2089
|
-
|
|
2090
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2091
|
-
name: errorCode,
|
|
2092
|
-
$metadata: deserializeMetadata(output),
|
|
2093
|
-
};
|
|
2094
|
-
break;
|
|
1385
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2095
1386
|
case "InternalServerException":
|
|
2096
1387
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2097
|
-
|
|
2098
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2099
|
-
name: errorCode,
|
|
2100
|
-
$metadata: deserializeMetadata(output),
|
|
2101
|
-
};
|
|
2102
|
-
break;
|
|
1388
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
2103
1389
|
case "ResourceNotFoundException":
|
|
2104
1390
|
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2105
|
-
|
|
2106
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2107
|
-
name: errorCode,
|
|
2108
|
-
$metadata: deserializeMetadata(output),
|
|
2109
|
-
};
|
|
2110
|
-
break;
|
|
1391
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2111
1392
|
case "ThrottlingException":
|
|
2112
1393
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2113
|
-
|
|
2114
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2115
|
-
name: errorCode,
|
|
2116
|
-
$metadata: deserializeMetadata(output),
|
|
2117
|
-
};
|
|
2118
|
-
break;
|
|
1394
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2119
1395
|
case "ValidationException":
|
|
2120
1396
|
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2121
|
-
|
|
2122
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2123
|
-
name: errorCode,
|
|
2124
|
-
$metadata: deserializeMetadata(output),
|
|
2125
|
-
};
|
|
2126
|
-
break;
|
|
1397
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2127
1398
|
default:
|
|
2128
1399
|
const parsedBody = parsedOutput.body;
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
...parsedBody,
|
|
2132
|
-
name: `${errorCode}`,
|
|
2133
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1400
|
+
response = new SSOAdminServiceException_1.SSOAdminServiceException({
|
|
1401
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2134
1402
|
$fault: "client",
|
|
2135
1403
|
$metadata: deserializeMetadata(output),
|
|
2136
|
-
};
|
|
1404
|
+
});
|
|
1405
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2137
1406
|
}
|
|
2138
|
-
const message = response.message || response.Message || errorCode;
|
|
2139
|
-
response.message = message;
|
|
2140
|
-
delete response.Message;
|
|
2141
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2142
1407
|
};
|
|
2143
1408
|
const deserializeAws_json1_1ListPermissionSetsCommand = async (output, context) => {
|
|
2144
1409
|
if (output.statusCode >= 300) {
|
|
@@ -2165,59 +1430,28 @@ const deserializeAws_json1_1ListPermissionSetsCommandError = async (output, cont
|
|
|
2165
1430
|
switch (errorCode) {
|
|
2166
1431
|
case "AccessDeniedException":
|
|
2167
1432
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2168
|
-
|
|
2169
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2170
|
-
name: errorCode,
|
|
2171
|
-
$metadata: deserializeMetadata(output),
|
|
2172
|
-
};
|
|
2173
|
-
break;
|
|
1433
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2174
1434
|
case "InternalServerException":
|
|
2175
1435
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2176
|
-
|
|
2177
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2178
|
-
name: errorCode,
|
|
2179
|
-
$metadata: deserializeMetadata(output),
|
|
2180
|
-
};
|
|
2181
|
-
break;
|
|
1436
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
2182
1437
|
case "ResourceNotFoundException":
|
|
2183
1438
|
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2184
|
-
|
|
2185
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2186
|
-
name: errorCode,
|
|
2187
|
-
$metadata: deserializeMetadata(output),
|
|
2188
|
-
};
|
|
2189
|
-
break;
|
|
1439
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2190
1440
|
case "ThrottlingException":
|
|
2191
1441
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2192
|
-
|
|
2193
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2194
|
-
name: errorCode,
|
|
2195
|
-
$metadata: deserializeMetadata(output),
|
|
2196
|
-
};
|
|
2197
|
-
break;
|
|
1442
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2198
1443
|
case "ValidationException":
|
|
2199
1444
|
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2200
|
-
|
|
2201
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2202
|
-
name: errorCode,
|
|
2203
|
-
$metadata: deserializeMetadata(output),
|
|
2204
|
-
};
|
|
2205
|
-
break;
|
|
1445
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2206
1446
|
default:
|
|
2207
1447
|
const parsedBody = parsedOutput.body;
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
...parsedBody,
|
|
2211
|
-
name: `${errorCode}`,
|
|
2212
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1448
|
+
response = new SSOAdminServiceException_1.SSOAdminServiceException({
|
|
1449
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2213
1450
|
$fault: "client",
|
|
2214
1451
|
$metadata: deserializeMetadata(output),
|
|
2215
|
-
};
|
|
1452
|
+
});
|
|
1453
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2216
1454
|
}
|
|
2217
|
-
const message = response.message || response.Message || errorCode;
|
|
2218
|
-
response.message = message;
|
|
2219
|
-
delete response.Message;
|
|
2220
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2221
1455
|
};
|
|
2222
1456
|
const deserializeAws_json1_1ListPermissionSetsProvisionedToAccountCommand = async (output, context) => {
|
|
2223
1457
|
if (output.statusCode >= 300) {
|
|
@@ -2244,59 +1478,28 @@ const deserializeAws_json1_1ListPermissionSetsProvisionedToAccountCommandError =
|
|
|
2244
1478
|
switch (errorCode) {
|
|
2245
1479
|
case "AccessDeniedException":
|
|
2246
1480
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2247
|
-
|
|
2248
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2249
|
-
name: errorCode,
|
|
2250
|
-
$metadata: deserializeMetadata(output),
|
|
2251
|
-
};
|
|
2252
|
-
break;
|
|
1481
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2253
1482
|
case "InternalServerException":
|
|
2254
1483
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2255
|
-
|
|
2256
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2257
|
-
name: errorCode,
|
|
2258
|
-
$metadata: deserializeMetadata(output),
|
|
2259
|
-
};
|
|
2260
|
-
break;
|
|
1484
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
2261
1485
|
case "ResourceNotFoundException":
|
|
2262
1486
|
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2263
|
-
|
|
2264
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2265
|
-
name: errorCode,
|
|
2266
|
-
$metadata: deserializeMetadata(output),
|
|
2267
|
-
};
|
|
2268
|
-
break;
|
|
1487
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2269
1488
|
case "ThrottlingException":
|
|
2270
1489
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2271
|
-
|
|
2272
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2273
|
-
name: errorCode,
|
|
2274
|
-
$metadata: deserializeMetadata(output),
|
|
2275
|
-
};
|
|
2276
|
-
break;
|
|
1490
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2277
1491
|
case "ValidationException":
|
|
2278
1492
|
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2279
|
-
|
|
2280
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2281
|
-
name: errorCode,
|
|
2282
|
-
$metadata: deserializeMetadata(output),
|
|
2283
|
-
};
|
|
2284
|
-
break;
|
|
1493
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2285
1494
|
default:
|
|
2286
1495
|
const parsedBody = parsedOutput.body;
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
...parsedBody,
|
|
2290
|
-
name: `${errorCode}`,
|
|
2291
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1496
|
+
response = new SSOAdminServiceException_1.SSOAdminServiceException({
|
|
1497
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2292
1498
|
$fault: "client",
|
|
2293
1499
|
$metadata: deserializeMetadata(output),
|
|
2294
|
-
};
|
|
1500
|
+
});
|
|
1501
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2295
1502
|
}
|
|
2296
|
-
const message = response.message || response.Message || errorCode;
|
|
2297
|
-
response.message = message;
|
|
2298
|
-
delete response.Message;
|
|
2299
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2300
1503
|
};
|
|
2301
1504
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
2302
1505
|
if (output.statusCode >= 300) {
|
|
@@ -2323,59 +1526,28 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2323
1526
|
switch (errorCode) {
|
|
2324
1527
|
case "AccessDeniedException":
|
|
2325
1528
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2326
|
-
|
|
2327
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2328
|
-
name: errorCode,
|
|
2329
|
-
$metadata: deserializeMetadata(output),
|
|
2330
|
-
};
|
|
2331
|
-
break;
|
|
1529
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2332
1530
|
case "InternalServerException":
|
|
2333
1531
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2334
|
-
|
|
2335
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2336
|
-
name: errorCode,
|
|
2337
|
-
$metadata: deserializeMetadata(output),
|
|
2338
|
-
};
|
|
2339
|
-
break;
|
|
1532
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
2340
1533
|
case "ResourceNotFoundException":
|
|
2341
1534
|
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2342
|
-
|
|
2343
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2344
|
-
name: errorCode,
|
|
2345
|
-
$metadata: deserializeMetadata(output),
|
|
2346
|
-
};
|
|
2347
|
-
break;
|
|
1535
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2348
1536
|
case "ThrottlingException":
|
|
2349
1537
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2350
|
-
|
|
2351
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2352
|
-
name: errorCode,
|
|
2353
|
-
$metadata: deserializeMetadata(output),
|
|
2354
|
-
};
|
|
2355
|
-
break;
|
|
1538
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2356
1539
|
case "ValidationException":
|
|
2357
1540
|
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2358
|
-
|
|
2359
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2360
|
-
name: errorCode,
|
|
2361
|
-
$metadata: deserializeMetadata(output),
|
|
2362
|
-
};
|
|
2363
|
-
break;
|
|
1541
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2364
1542
|
default:
|
|
2365
1543
|
const parsedBody = parsedOutput.body;
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
...parsedBody,
|
|
2369
|
-
name: `${errorCode}`,
|
|
2370
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1544
|
+
response = new SSOAdminServiceException_1.SSOAdminServiceException({
|
|
1545
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2371
1546
|
$fault: "client",
|
|
2372
1547
|
$metadata: deserializeMetadata(output),
|
|
2373
|
-
};
|
|
1548
|
+
});
|
|
1549
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2374
1550
|
}
|
|
2375
|
-
const message = response.message || response.Message || errorCode;
|
|
2376
|
-
response.message = message;
|
|
2377
|
-
delete response.Message;
|
|
2378
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2379
1551
|
};
|
|
2380
1552
|
const deserializeAws_json1_1ProvisionPermissionSetCommand = async (output, context) => {
|
|
2381
1553
|
if (output.statusCode >= 300) {
|
|
@@ -2402,67 +1574,31 @@ const deserializeAws_json1_1ProvisionPermissionSetCommandError = async (output,
|
|
|
2402
1574
|
switch (errorCode) {
|
|
2403
1575
|
case "AccessDeniedException":
|
|
2404
1576
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2405
|
-
|
|
2406
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2407
|
-
name: errorCode,
|
|
2408
|
-
$metadata: deserializeMetadata(output),
|
|
2409
|
-
};
|
|
2410
|
-
break;
|
|
1577
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2411
1578
|
case "ConflictException":
|
|
2412
1579
|
case "com.amazonaws.ssoadmin#ConflictException":
|
|
2413
|
-
|
|
2414
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
2415
|
-
name: errorCode,
|
|
2416
|
-
$metadata: deserializeMetadata(output),
|
|
2417
|
-
};
|
|
2418
|
-
break;
|
|
1580
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
2419
1581
|
case "InternalServerException":
|
|
2420
1582
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2421
|
-
|
|
2422
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2423
|
-
name: errorCode,
|
|
2424
|
-
$metadata: deserializeMetadata(output),
|
|
2425
|
-
};
|
|
2426
|
-
break;
|
|
1583
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
2427
1584
|
case "ResourceNotFoundException":
|
|
2428
1585
|
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2429
|
-
|
|
2430
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2431
|
-
name: errorCode,
|
|
2432
|
-
$metadata: deserializeMetadata(output),
|
|
2433
|
-
};
|
|
2434
|
-
break;
|
|
1586
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2435
1587
|
case "ThrottlingException":
|
|
2436
1588
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2437
|
-
|
|
2438
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2439
|
-
name: errorCode,
|
|
2440
|
-
$metadata: deserializeMetadata(output),
|
|
2441
|
-
};
|
|
2442
|
-
break;
|
|
1589
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2443
1590
|
case "ValidationException":
|
|
2444
1591
|
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2445
|
-
|
|
2446
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2447
|
-
name: errorCode,
|
|
2448
|
-
$metadata: deserializeMetadata(output),
|
|
2449
|
-
};
|
|
2450
|
-
break;
|
|
1592
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2451
1593
|
default:
|
|
2452
1594
|
const parsedBody = parsedOutput.body;
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
...parsedBody,
|
|
2456
|
-
name: `${errorCode}`,
|
|
2457
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1595
|
+
response = new SSOAdminServiceException_1.SSOAdminServiceException({
|
|
1596
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2458
1597
|
$fault: "client",
|
|
2459
1598
|
$metadata: deserializeMetadata(output),
|
|
2460
|
-
};
|
|
1599
|
+
});
|
|
1600
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2461
1601
|
}
|
|
2462
|
-
const message = response.message || response.Message || errorCode;
|
|
2463
|
-
response.message = message;
|
|
2464
|
-
delete response.Message;
|
|
2465
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2466
1602
|
};
|
|
2467
1603
|
const deserializeAws_json1_1PutInlinePolicyToPermissionSetCommand = async (output, context) => {
|
|
2468
1604
|
if (output.statusCode >= 300) {
|
|
@@ -2489,75 +1625,34 @@ const deserializeAws_json1_1PutInlinePolicyToPermissionSetCommandError = async (
|
|
|
2489
1625
|
switch (errorCode) {
|
|
2490
1626
|
case "AccessDeniedException":
|
|
2491
1627
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2492
|
-
|
|
2493
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2494
|
-
name: errorCode,
|
|
2495
|
-
$metadata: deserializeMetadata(output),
|
|
2496
|
-
};
|
|
2497
|
-
break;
|
|
1628
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2498
1629
|
case "ConflictException":
|
|
2499
1630
|
case "com.amazonaws.ssoadmin#ConflictException":
|
|
2500
|
-
|
|
2501
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
2502
|
-
name: errorCode,
|
|
2503
|
-
$metadata: deserializeMetadata(output),
|
|
2504
|
-
};
|
|
2505
|
-
break;
|
|
1631
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
2506
1632
|
case "InternalServerException":
|
|
2507
1633
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2508
|
-
|
|
2509
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2510
|
-
name: errorCode,
|
|
2511
|
-
$metadata: deserializeMetadata(output),
|
|
2512
|
-
};
|
|
2513
|
-
break;
|
|
1634
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
2514
1635
|
case "ResourceNotFoundException":
|
|
2515
1636
|
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2516
|
-
|
|
2517
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2518
|
-
name: errorCode,
|
|
2519
|
-
$metadata: deserializeMetadata(output),
|
|
2520
|
-
};
|
|
2521
|
-
break;
|
|
1637
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2522
1638
|
case "ServiceQuotaExceededException":
|
|
2523
1639
|
case "com.amazonaws.ssoadmin#ServiceQuotaExceededException":
|
|
2524
|
-
|
|
2525
|
-
...(await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
2526
|
-
name: errorCode,
|
|
2527
|
-
$metadata: deserializeMetadata(output),
|
|
2528
|
-
};
|
|
2529
|
-
break;
|
|
1640
|
+
throw await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
2530
1641
|
case "ThrottlingException":
|
|
2531
1642
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2532
|
-
|
|
2533
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2534
|
-
name: errorCode,
|
|
2535
|
-
$metadata: deserializeMetadata(output),
|
|
2536
|
-
};
|
|
2537
|
-
break;
|
|
1643
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2538
1644
|
case "ValidationException":
|
|
2539
1645
|
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2540
|
-
|
|
2541
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2542
|
-
name: errorCode,
|
|
2543
|
-
$metadata: deserializeMetadata(output),
|
|
2544
|
-
};
|
|
2545
|
-
break;
|
|
1646
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2546
1647
|
default:
|
|
2547
1648
|
const parsedBody = parsedOutput.body;
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
...parsedBody,
|
|
2551
|
-
name: `${errorCode}`,
|
|
2552
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1649
|
+
response = new SSOAdminServiceException_1.SSOAdminServiceException({
|
|
1650
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2553
1651
|
$fault: "client",
|
|
2554
1652
|
$metadata: deserializeMetadata(output),
|
|
2555
|
-
};
|
|
1653
|
+
});
|
|
1654
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2556
1655
|
}
|
|
2557
|
-
const message = response.message || response.Message || errorCode;
|
|
2558
|
-
response.message = message;
|
|
2559
|
-
delete response.Message;
|
|
2560
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2561
1656
|
};
|
|
2562
1657
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
2563
1658
|
if (output.statusCode >= 300) {
|
|
@@ -2584,75 +1679,34 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2584
1679
|
switch (errorCode) {
|
|
2585
1680
|
case "AccessDeniedException":
|
|
2586
1681
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2587
|
-
|
|
2588
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2589
|
-
name: errorCode,
|
|
2590
|
-
$metadata: deserializeMetadata(output),
|
|
2591
|
-
};
|
|
2592
|
-
break;
|
|
1682
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2593
1683
|
case "ConflictException":
|
|
2594
1684
|
case "com.amazonaws.ssoadmin#ConflictException":
|
|
2595
|
-
|
|
2596
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
2597
|
-
name: errorCode,
|
|
2598
|
-
$metadata: deserializeMetadata(output),
|
|
2599
|
-
};
|
|
2600
|
-
break;
|
|
1685
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
2601
1686
|
case "InternalServerException":
|
|
2602
1687
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2603
|
-
|
|
2604
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2605
|
-
name: errorCode,
|
|
2606
|
-
$metadata: deserializeMetadata(output),
|
|
2607
|
-
};
|
|
2608
|
-
break;
|
|
1688
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
2609
1689
|
case "ResourceNotFoundException":
|
|
2610
1690
|
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2611
|
-
|
|
2612
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2613
|
-
name: errorCode,
|
|
2614
|
-
$metadata: deserializeMetadata(output),
|
|
2615
|
-
};
|
|
2616
|
-
break;
|
|
1691
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2617
1692
|
case "ServiceQuotaExceededException":
|
|
2618
1693
|
case "com.amazonaws.ssoadmin#ServiceQuotaExceededException":
|
|
2619
|
-
|
|
2620
|
-
...(await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
2621
|
-
name: errorCode,
|
|
2622
|
-
$metadata: deserializeMetadata(output),
|
|
2623
|
-
};
|
|
2624
|
-
break;
|
|
1694
|
+
throw await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
2625
1695
|
case "ThrottlingException":
|
|
2626
1696
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2627
|
-
|
|
2628
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2629
|
-
name: errorCode,
|
|
2630
|
-
$metadata: deserializeMetadata(output),
|
|
2631
|
-
};
|
|
2632
|
-
break;
|
|
1697
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2633
1698
|
case "ValidationException":
|
|
2634
1699
|
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2635
|
-
|
|
2636
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2637
|
-
name: errorCode,
|
|
2638
|
-
$metadata: deserializeMetadata(output),
|
|
2639
|
-
};
|
|
2640
|
-
break;
|
|
1700
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2641
1701
|
default:
|
|
2642
1702
|
const parsedBody = parsedOutput.body;
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
...parsedBody,
|
|
2646
|
-
name: `${errorCode}`,
|
|
2647
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1703
|
+
response = new SSOAdminServiceException_1.SSOAdminServiceException({
|
|
1704
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2648
1705
|
$fault: "client",
|
|
2649
1706
|
$metadata: deserializeMetadata(output),
|
|
2650
|
-
};
|
|
1707
|
+
});
|
|
1708
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2651
1709
|
}
|
|
2652
|
-
const message = response.message || response.Message || errorCode;
|
|
2653
|
-
response.message = message;
|
|
2654
|
-
delete response.Message;
|
|
2655
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2656
1710
|
};
|
|
2657
1711
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
2658
1712
|
if (output.statusCode >= 300) {
|
|
@@ -2679,67 +1733,31 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2679
1733
|
switch (errorCode) {
|
|
2680
1734
|
case "AccessDeniedException":
|
|
2681
1735
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2682
|
-
|
|
2683
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2684
|
-
name: errorCode,
|
|
2685
|
-
$metadata: deserializeMetadata(output),
|
|
2686
|
-
};
|
|
2687
|
-
break;
|
|
1736
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2688
1737
|
case "ConflictException":
|
|
2689
1738
|
case "com.amazonaws.ssoadmin#ConflictException":
|
|
2690
|
-
|
|
2691
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
2692
|
-
name: errorCode,
|
|
2693
|
-
$metadata: deserializeMetadata(output),
|
|
2694
|
-
};
|
|
2695
|
-
break;
|
|
1739
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
2696
1740
|
case "InternalServerException":
|
|
2697
1741
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2698
|
-
|
|
2699
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2700
|
-
name: errorCode,
|
|
2701
|
-
$metadata: deserializeMetadata(output),
|
|
2702
|
-
};
|
|
2703
|
-
break;
|
|
1742
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
2704
1743
|
case "ResourceNotFoundException":
|
|
2705
1744
|
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2706
|
-
|
|
2707
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2708
|
-
name: errorCode,
|
|
2709
|
-
$metadata: deserializeMetadata(output),
|
|
2710
|
-
};
|
|
2711
|
-
break;
|
|
1745
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2712
1746
|
case "ThrottlingException":
|
|
2713
1747
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2714
|
-
|
|
2715
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2716
|
-
name: errorCode,
|
|
2717
|
-
$metadata: deserializeMetadata(output),
|
|
2718
|
-
};
|
|
2719
|
-
break;
|
|
1748
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2720
1749
|
case "ValidationException":
|
|
2721
1750
|
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2722
|
-
|
|
2723
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2724
|
-
name: errorCode,
|
|
2725
|
-
$metadata: deserializeMetadata(output),
|
|
2726
|
-
};
|
|
2727
|
-
break;
|
|
1751
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2728
1752
|
default:
|
|
2729
1753
|
const parsedBody = parsedOutput.body;
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
...parsedBody,
|
|
2733
|
-
name: `${errorCode}`,
|
|
2734
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1754
|
+
response = new SSOAdminServiceException_1.SSOAdminServiceException({
|
|
1755
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2735
1756
|
$fault: "client",
|
|
2736
1757
|
$metadata: deserializeMetadata(output),
|
|
2737
|
-
};
|
|
1758
|
+
});
|
|
1759
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2738
1760
|
}
|
|
2739
|
-
const message = response.message || response.Message || errorCode;
|
|
2740
|
-
response.message = message;
|
|
2741
|
-
delete response.Message;
|
|
2742
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2743
1761
|
};
|
|
2744
1762
|
const deserializeAws_json1_1UpdateInstanceAccessControlAttributeConfigurationCommand = async (output, context) => {
|
|
2745
1763
|
if (output.statusCode >= 300) {
|
|
@@ -2766,67 +1784,31 @@ const deserializeAws_json1_1UpdateInstanceAccessControlAttributeConfigurationCom
|
|
|
2766
1784
|
switch (errorCode) {
|
|
2767
1785
|
case "AccessDeniedException":
|
|
2768
1786
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2769
|
-
|
|
2770
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2771
|
-
name: errorCode,
|
|
2772
|
-
$metadata: deserializeMetadata(output),
|
|
2773
|
-
};
|
|
2774
|
-
break;
|
|
1787
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2775
1788
|
case "ConflictException":
|
|
2776
1789
|
case "com.amazonaws.ssoadmin#ConflictException":
|
|
2777
|
-
|
|
2778
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
2779
|
-
name: errorCode,
|
|
2780
|
-
$metadata: deserializeMetadata(output),
|
|
2781
|
-
};
|
|
2782
|
-
break;
|
|
1790
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
2783
1791
|
case "InternalServerException":
|
|
2784
1792
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2785
|
-
|
|
2786
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2787
|
-
name: errorCode,
|
|
2788
|
-
$metadata: deserializeMetadata(output),
|
|
2789
|
-
};
|
|
2790
|
-
break;
|
|
1793
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
2791
1794
|
case "ResourceNotFoundException":
|
|
2792
1795
|
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2793
|
-
|
|
2794
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2795
|
-
name: errorCode,
|
|
2796
|
-
$metadata: deserializeMetadata(output),
|
|
2797
|
-
};
|
|
2798
|
-
break;
|
|
1796
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2799
1797
|
case "ThrottlingException":
|
|
2800
1798
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2801
|
-
|
|
2802
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2803
|
-
name: errorCode,
|
|
2804
|
-
$metadata: deserializeMetadata(output),
|
|
2805
|
-
};
|
|
2806
|
-
break;
|
|
1799
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2807
1800
|
case "ValidationException":
|
|
2808
1801
|
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2809
|
-
|
|
2810
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2811
|
-
name: errorCode,
|
|
2812
|
-
$metadata: deserializeMetadata(output),
|
|
2813
|
-
};
|
|
2814
|
-
break;
|
|
1802
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2815
1803
|
default:
|
|
2816
1804
|
const parsedBody = parsedOutput.body;
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
...parsedBody,
|
|
2820
|
-
name: `${errorCode}`,
|
|
2821
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1805
|
+
response = new SSOAdminServiceException_1.SSOAdminServiceException({
|
|
1806
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2822
1807
|
$fault: "client",
|
|
2823
1808
|
$metadata: deserializeMetadata(output),
|
|
2824
|
-
};
|
|
1809
|
+
});
|
|
1810
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2825
1811
|
}
|
|
2826
|
-
const message = response.message || response.Message || errorCode;
|
|
2827
|
-
response.message = message;
|
|
2828
|
-
delete response.Message;
|
|
2829
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2830
1812
|
};
|
|
2831
1813
|
const deserializeAws_json1_1UpdatePermissionSetCommand = async (output, context) => {
|
|
2832
1814
|
if (output.statusCode >= 300) {
|
|
@@ -2853,144 +1835,94 @@ const deserializeAws_json1_1UpdatePermissionSetCommandError = async (output, con
|
|
|
2853
1835
|
switch (errorCode) {
|
|
2854
1836
|
case "AccessDeniedException":
|
|
2855
1837
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2856
|
-
|
|
2857
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2858
|
-
name: errorCode,
|
|
2859
|
-
$metadata: deserializeMetadata(output),
|
|
2860
|
-
};
|
|
2861
|
-
break;
|
|
1838
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2862
1839
|
case "ConflictException":
|
|
2863
1840
|
case "com.amazonaws.ssoadmin#ConflictException":
|
|
2864
|
-
|
|
2865
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
2866
|
-
name: errorCode,
|
|
2867
|
-
$metadata: deserializeMetadata(output),
|
|
2868
|
-
};
|
|
2869
|
-
break;
|
|
1841
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
2870
1842
|
case "InternalServerException":
|
|
2871
1843
|
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2872
|
-
|
|
2873
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2874
|
-
name: errorCode,
|
|
2875
|
-
$metadata: deserializeMetadata(output),
|
|
2876
|
-
};
|
|
2877
|
-
break;
|
|
1844
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
2878
1845
|
case "ResourceNotFoundException":
|
|
2879
1846
|
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2880
|
-
|
|
2881
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2882
|
-
name: errorCode,
|
|
2883
|
-
$metadata: deserializeMetadata(output),
|
|
2884
|
-
};
|
|
2885
|
-
break;
|
|
1847
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2886
1848
|
case "ThrottlingException":
|
|
2887
1849
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2888
|
-
|
|
2889
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2890
|
-
name: errorCode,
|
|
2891
|
-
$metadata: deserializeMetadata(output),
|
|
2892
|
-
};
|
|
2893
|
-
break;
|
|
1850
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2894
1851
|
case "ValidationException":
|
|
2895
1852
|
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2896
|
-
|
|
2897
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2898
|
-
name: errorCode,
|
|
2899
|
-
$metadata: deserializeMetadata(output),
|
|
2900
|
-
};
|
|
2901
|
-
break;
|
|
1853
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2902
1854
|
default:
|
|
2903
1855
|
const parsedBody = parsedOutput.body;
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
...parsedBody,
|
|
2907
|
-
name: `${errorCode}`,
|
|
2908
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1856
|
+
response = new SSOAdminServiceException_1.SSOAdminServiceException({
|
|
1857
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2909
1858
|
$fault: "client",
|
|
2910
1859
|
$metadata: deserializeMetadata(output),
|
|
2911
|
-
};
|
|
1860
|
+
});
|
|
1861
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2912
1862
|
}
|
|
2913
|
-
const message = response.message || response.Message || errorCode;
|
|
2914
|
-
response.message = message;
|
|
2915
|
-
delete response.Message;
|
|
2916
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2917
1863
|
};
|
|
2918
1864
|
const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
2919
1865
|
const body = parsedOutput.body;
|
|
2920
1866
|
const deserialized = deserializeAws_json1_1AccessDeniedException(body, context);
|
|
2921
|
-
const
|
|
2922
|
-
name: "AccessDeniedException",
|
|
2923
|
-
$fault: "client",
|
|
1867
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
2924
1868
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2925
1869
|
...deserialized,
|
|
2926
|
-
};
|
|
2927
|
-
return
|
|
1870
|
+
});
|
|
1871
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2928
1872
|
};
|
|
2929
1873
|
const deserializeAws_json1_1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
2930
1874
|
const body = parsedOutput.body;
|
|
2931
1875
|
const deserialized = deserializeAws_json1_1ConflictException(body, context);
|
|
2932
|
-
const
|
|
2933
|
-
name: "ConflictException",
|
|
2934
|
-
$fault: "client",
|
|
1876
|
+
const exception = new models_0_1.ConflictException({
|
|
2935
1877
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2936
1878
|
...deserialized,
|
|
2937
|
-
};
|
|
2938
|
-
return
|
|
1879
|
+
});
|
|
1880
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2939
1881
|
};
|
|
2940
1882
|
const deserializeAws_json1_1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
2941
1883
|
const body = parsedOutput.body;
|
|
2942
1884
|
const deserialized = deserializeAws_json1_1InternalServerException(body, context);
|
|
2943
|
-
const
|
|
2944
|
-
name: "InternalServerException",
|
|
2945
|
-
$fault: "server",
|
|
1885
|
+
const exception = new models_0_1.InternalServerException({
|
|
2946
1886
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2947
1887
|
...deserialized,
|
|
2948
|
-
};
|
|
2949
|
-
return
|
|
1888
|
+
});
|
|
1889
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2950
1890
|
};
|
|
2951
1891
|
const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2952
1892
|
const body = parsedOutput.body;
|
|
2953
1893
|
const deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
2954
|
-
const
|
|
2955
|
-
name: "ResourceNotFoundException",
|
|
2956
|
-
$fault: "client",
|
|
1894
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
2957
1895
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2958
1896
|
...deserialized,
|
|
2959
|
-
};
|
|
2960
|
-
return
|
|
1897
|
+
});
|
|
1898
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2961
1899
|
};
|
|
2962
1900
|
const deserializeAws_json1_1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
2963
1901
|
const body = parsedOutput.body;
|
|
2964
1902
|
const deserialized = deserializeAws_json1_1ServiceQuotaExceededException(body, context);
|
|
2965
|
-
const
|
|
2966
|
-
name: "ServiceQuotaExceededException",
|
|
2967
|
-
$fault: "client",
|
|
1903
|
+
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
2968
1904
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2969
1905
|
...deserialized,
|
|
2970
|
-
};
|
|
2971
|
-
return
|
|
1906
|
+
});
|
|
1907
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2972
1908
|
};
|
|
2973
1909
|
const deserializeAws_json1_1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
2974
1910
|
const body = parsedOutput.body;
|
|
2975
1911
|
const deserialized = deserializeAws_json1_1ThrottlingException(body, context);
|
|
2976
|
-
const
|
|
2977
|
-
name: "ThrottlingException",
|
|
2978
|
-
$fault: "client",
|
|
1912
|
+
const exception = new models_0_1.ThrottlingException({
|
|
2979
1913
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2980
1914
|
...deserialized,
|
|
2981
|
-
};
|
|
2982
|
-
return
|
|
1915
|
+
});
|
|
1916
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2983
1917
|
};
|
|
2984
1918
|
const deserializeAws_json1_1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
2985
1919
|
const body = parsedOutput.body;
|
|
2986
1920
|
const deserialized = deserializeAws_json1_1ValidationException(body, context);
|
|
2987
|
-
const
|
|
2988
|
-
name: "ValidationException",
|
|
2989
|
-
$fault: "client",
|
|
1921
|
+
const exception = new models_0_1.ValidationException({
|
|
2990
1922
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2991
1923
|
...deserialized,
|
|
2992
|
-
};
|
|
2993
|
-
return
|
|
1924
|
+
});
|
|
1925
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2994
1926
|
};
|
|
2995
1927
|
const serializeAws_json1_1AccessControlAttribute = (input, context) => {
|
|
2996
1928
|
return {
|
|
@@ -3339,7 +2271,7 @@ const deserializeAws_json1_1AccessControlAttribute = (output, context) => {
|
|
|
3339
2271
|
};
|
|
3340
2272
|
};
|
|
3341
2273
|
const deserializeAws_json1_1AccessControlAttributeList = (output, context) => {
|
|
3342
|
-
|
|
2274
|
+
const retVal = (output || [])
|
|
3343
2275
|
.filter((e) => e != null)
|
|
3344
2276
|
.map((entry) => {
|
|
3345
2277
|
if (entry === null) {
|
|
@@ -3347,6 +2279,7 @@ const deserializeAws_json1_1AccessControlAttributeList = (output, context) => {
|
|
|
3347
2279
|
}
|
|
3348
2280
|
return deserializeAws_json1_1AccessControlAttribute(entry, context);
|
|
3349
2281
|
});
|
|
2282
|
+
return retVal;
|
|
3350
2283
|
};
|
|
3351
2284
|
const deserializeAws_json1_1AccessControlAttributeValue = (output, context) => {
|
|
3352
2285
|
return {
|
|
@@ -3356,7 +2289,7 @@ const deserializeAws_json1_1AccessControlAttributeValue = (output, context) => {
|
|
|
3356
2289
|
};
|
|
3357
2290
|
};
|
|
3358
2291
|
const deserializeAws_json1_1AccessControlAttributeValueSourceList = (output, context) => {
|
|
3359
|
-
|
|
2292
|
+
const retVal = (output || [])
|
|
3360
2293
|
.filter((e) => e != null)
|
|
3361
2294
|
.map((entry) => {
|
|
3362
2295
|
if (entry === null) {
|
|
@@ -3364,6 +2297,7 @@ const deserializeAws_json1_1AccessControlAttributeValueSourceList = (output, con
|
|
|
3364
2297
|
}
|
|
3365
2298
|
return smithy_client_1.expectString(entry);
|
|
3366
2299
|
});
|
|
2300
|
+
return retVal;
|
|
3367
2301
|
};
|
|
3368
2302
|
const deserializeAws_json1_1AccessDeniedException = (output, context) => {
|
|
3369
2303
|
return {
|
|
@@ -3379,7 +2313,7 @@ const deserializeAws_json1_1AccountAssignment = (output, context) => {
|
|
|
3379
2313
|
};
|
|
3380
2314
|
};
|
|
3381
2315
|
const deserializeAws_json1_1AccountAssignmentList = (output, context) => {
|
|
3382
|
-
|
|
2316
|
+
const retVal = (output || [])
|
|
3383
2317
|
.filter((e) => e != null)
|
|
3384
2318
|
.map((entry) => {
|
|
3385
2319
|
if (entry === null) {
|
|
@@ -3387,6 +2321,7 @@ const deserializeAws_json1_1AccountAssignmentList = (output, context) => {
|
|
|
3387
2321
|
}
|
|
3388
2322
|
return deserializeAws_json1_1AccountAssignment(entry, context);
|
|
3389
2323
|
});
|
|
2324
|
+
return retVal;
|
|
3390
2325
|
};
|
|
3391
2326
|
const deserializeAws_json1_1AccountAssignmentOperationStatus = (output, context) => {
|
|
3392
2327
|
return {
|
|
@@ -3404,7 +2339,7 @@ const deserializeAws_json1_1AccountAssignmentOperationStatus = (output, context)
|
|
|
3404
2339
|
};
|
|
3405
2340
|
};
|
|
3406
2341
|
const deserializeAws_json1_1AccountAssignmentOperationStatusList = (output, context) => {
|
|
3407
|
-
|
|
2342
|
+
const retVal = (output || [])
|
|
3408
2343
|
.filter((e) => e != null)
|
|
3409
2344
|
.map((entry) => {
|
|
3410
2345
|
if (entry === null) {
|
|
@@ -3412,6 +2347,7 @@ const deserializeAws_json1_1AccountAssignmentOperationStatusList = (output, cont
|
|
|
3412
2347
|
}
|
|
3413
2348
|
return deserializeAws_json1_1AccountAssignmentOperationStatusMetadata(entry, context);
|
|
3414
2349
|
});
|
|
2350
|
+
return retVal;
|
|
3415
2351
|
};
|
|
3416
2352
|
const deserializeAws_json1_1AccountAssignmentOperationStatusMetadata = (output, context) => {
|
|
3417
2353
|
return {
|
|
@@ -3423,7 +2359,7 @@ const deserializeAws_json1_1AccountAssignmentOperationStatusMetadata = (output,
|
|
|
3423
2359
|
};
|
|
3424
2360
|
};
|
|
3425
2361
|
const deserializeAws_json1_1AccountList = (output, context) => {
|
|
3426
|
-
|
|
2362
|
+
const retVal = (output || [])
|
|
3427
2363
|
.filter((e) => e != null)
|
|
3428
2364
|
.map((entry) => {
|
|
3429
2365
|
if (entry === null) {
|
|
@@ -3431,6 +2367,7 @@ const deserializeAws_json1_1AccountList = (output, context) => {
|
|
|
3431
2367
|
}
|
|
3432
2368
|
return smithy_client_1.expectString(entry);
|
|
3433
2369
|
});
|
|
2370
|
+
return retVal;
|
|
3434
2371
|
};
|
|
3435
2372
|
const deserializeAws_json1_1AttachedManagedPolicy = (output, context) => {
|
|
3436
2373
|
return {
|
|
@@ -3439,7 +2376,7 @@ const deserializeAws_json1_1AttachedManagedPolicy = (output, context) => {
|
|
|
3439
2376
|
};
|
|
3440
2377
|
};
|
|
3441
2378
|
const deserializeAws_json1_1AttachedManagedPolicyList = (output, context) => {
|
|
3442
|
-
|
|
2379
|
+
const retVal = (output || [])
|
|
3443
2380
|
.filter((e) => e != null)
|
|
3444
2381
|
.map((entry) => {
|
|
3445
2382
|
if (entry === null) {
|
|
@@ -3447,6 +2384,7 @@ const deserializeAws_json1_1AttachedManagedPolicyList = (output, context) => {
|
|
|
3447
2384
|
}
|
|
3448
2385
|
return deserializeAws_json1_1AttachedManagedPolicy(entry, context);
|
|
3449
2386
|
});
|
|
2387
|
+
return retVal;
|
|
3450
2388
|
};
|
|
3451
2389
|
const deserializeAws_json1_1AttachManagedPolicyToPermissionSetResponse = (output, context) => {
|
|
3452
2390
|
return {};
|
|
@@ -3543,7 +2481,7 @@ const deserializeAws_json1_1InstanceAccessControlAttributeConfiguration = (outpu
|
|
|
3543
2481
|
};
|
|
3544
2482
|
};
|
|
3545
2483
|
const deserializeAws_json1_1InstanceList = (output, context) => {
|
|
3546
|
-
|
|
2484
|
+
const retVal = (output || [])
|
|
3547
2485
|
.filter((e) => e != null)
|
|
3548
2486
|
.map((entry) => {
|
|
3549
2487
|
if (entry === null) {
|
|
@@ -3551,6 +2489,7 @@ const deserializeAws_json1_1InstanceList = (output, context) => {
|
|
|
3551
2489
|
}
|
|
3552
2490
|
return deserializeAws_json1_1InstanceMetadata(entry, context);
|
|
3553
2491
|
});
|
|
2492
|
+
return retVal;
|
|
3554
2493
|
};
|
|
3555
2494
|
const deserializeAws_json1_1InstanceMetadata = (output, context) => {
|
|
3556
2495
|
return {
|
|
@@ -3656,7 +2595,7 @@ const deserializeAws_json1_1PermissionSet = (output, context) => {
|
|
|
3656
2595
|
};
|
|
3657
2596
|
};
|
|
3658
2597
|
const deserializeAws_json1_1PermissionSetList = (output, context) => {
|
|
3659
|
-
|
|
2598
|
+
const retVal = (output || [])
|
|
3660
2599
|
.filter((e) => e != null)
|
|
3661
2600
|
.map((entry) => {
|
|
3662
2601
|
if (entry === null) {
|
|
@@ -3664,6 +2603,7 @@ const deserializeAws_json1_1PermissionSetList = (output, context) => {
|
|
|
3664
2603
|
}
|
|
3665
2604
|
return smithy_client_1.expectString(entry);
|
|
3666
2605
|
});
|
|
2606
|
+
return retVal;
|
|
3667
2607
|
};
|
|
3668
2608
|
const deserializeAws_json1_1PermissionSetProvisioningStatus = (output, context) => {
|
|
3669
2609
|
return {
|
|
@@ -3678,7 +2618,7 @@ const deserializeAws_json1_1PermissionSetProvisioningStatus = (output, context)
|
|
|
3678
2618
|
};
|
|
3679
2619
|
};
|
|
3680
2620
|
const deserializeAws_json1_1PermissionSetProvisioningStatusList = (output, context) => {
|
|
3681
|
-
|
|
2621
|
+
const retVal = (output || [])
|
|
3682
2622
|
.filter((e) => e != null)
|
|
3683
2623
|
.map((entry) => {
|
|
3684
2624
|
if (entry === null) {
|
|
@@ -3686,6 +2626,7 @@ const deserializeAws_json1_1PermissionSetProvisioningStatusList = (output, conte
|
|
|
3686
2626
|
}
|
|
3687
2627
|
return deserializeAws_json1_1PermissionSetProvisioningStatusMetadata(entry, context);
|
|
3688
2628
|
});
|
|
2629
|
+
return retVal;
|
|
3689
2630
|
};
|
|
3690
2631
|
const deserializeAws_json1_1PermissionSetProvisioningStatusMetadata = (output, context) => {
|
|
3691
2632
|
return {
|
|
@@ -3723,7 +2664,7 @@ const deserializeAws_json1_1Tag = (output, context) => {
|
|
|
3723
2664
|
};
|
|
3724
2665
|
};
|
|
3725
2666
|
const deserializeAws_json1_1TagList = (output, context) => {
|
|
3726
|
-
|
|
2667
|
+
const retVal = (output || [])
|
|
3727
2668
|
.filter((e) => e != null)
|
|
3728
2669
|
.map((entry) => {
|
|
3729
2670
|
if (entry === null) {
|
|
@@ -3731,6 +2672,7 @@ const deserializeAws_json1_1TagList = (output, context) => {
|
|
|
3731
2672
|
}
|
|
3732
2673
|
return deserializeAws_json1_1Tag(entry, context);
|
|
3733
2674
|
});
|
|
2675
|
+
return retVal;
|
|
3734
2676
|
};
|
|
3735
2677
|
const deserializeAws_json1_1TagResourceResponse = (output, context) => {
|
|
3736
2678
|
return {};
|