@aws-sdk/client-cleanroomsml 3.503.1 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +33 -651
- package/dist-es/protocols/Aws_restJson1.js +42 -660
- package/package.json +3 -3
|
@@ -322,7 +322,7 @@ export const se_UpdateConfiguredAudienceModelCommand = async (input, context) =>
|
|
|
322
322
|
};
|
|
323
323
|
export const de_CreateAudienceModelCommand = async (output, context) => {
|
|
324
324
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
325
|
-
return
|
|
325
|
+
return de_CommandError(output, context);
|
|
326
326
|
}
|
|
327
327
|
const contents = map({
|
|
328
328
|
$metadata: deserializeMetadata(output),
|
|
@@ -334,40 +334,9 @@ export const de_CreateAudienceModelCommand = async (output, context) => {
|
|
|
334
334
|
Object.assign(contents, doc);
|
|
335
335
|
return contents;
|
|
336
336
|
};
|
|
337
|
-
const de_CreateAudienceModelCommandError = async (output, context) => {
|
|
338
|
-
const parsedOutput = {
|
|
339
|
-
...output,
|
|
340
|
-
body: await parseErrorBody(output.body, context),
|
|
341
|
-
};
|
|
342
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
343
|
-
switch (errorCode) {
|
|
344
|
-
case "AccessDeniedException":
|
|
345
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
346
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
347
|
-
case "ConflictException":
|
|
348
|
-
case "com.amazonaws.cleanroomsml#ConflictException":
|
|
349
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
350
|
-
case "ResourceNotFoundException":
|
|
351
|
-
case "com.amazonaws.cleanroomsml#ResourceNotFoundException":
|
|
352
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
353
|
-
case "ServiceQuotaExceededException":
|
|
354
|
-
case "com.amazonaws.cleanroomsml#ServiceQuotaExceededException":
|
|
355
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
356
|
-
case "ValidationException":
|
|
357
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
358
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
359
|
-
default:
|
|
360
|
-
const parsedBody = parsedOutput.body;
|
|
361
|
-
return throwDefaultError({
|
|
362
|
-
output,
|
|
363
|
-
parsedBody,
|
|
364
|
-
errorCode,
|
|
365
|
-
});
|
|
366
|
-
}
|
|
367
|
-
};
|
|
368
337
|
export const de_CreateConfiguredAudienceModelCommand = async (output, context) => {
|
|
369
338
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
370
|
-
return
|
|
339
|
+
return de_CommandError(output, context);
|
|
371
340
|
}
|
|
372
341
|
const contents = map({
|
|
373
342
|
$metadata: deserializeMetadata(output),
|
|
@@ -379,40 +348,9 @@ export const de_CreateConfiguredAudienceModelCommand = async (output, context) =
|
|
|
379
348
|
Object.assign(contents, doc);
|
|
380
349
|
return contents;
|
|
381
350
|
};
|
|
382
|
-
const de_CreateConfiguredAudienceModelCommandError = async (output, context) => {
|
|
383
|
-
const parsedOutput = {
|
|
384
|
-
...output,
|
|
385
|
-
body: await parseErrorBody(output.body, context),
|
|
386
|
-
};
|
|
387
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
388
|
-
switch (errorCode) {
|
|
389
|
-
case "AccessDeniedException":
|
|
390
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
391
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
392
|
-
case "ConflictException":
|
|
393
|
-
case "com.amazonaws.cleanroomsml#ConflictException":
|
|
394
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
395
|
-
case "ResourceNotFoundException":
|
|
396
|
-
case "com.amazonaws.cleanroomsml#ResourceNotFoundException":
|
|
397
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
398
|
-
case "ServiceQuotaExceededException":
|
|
399
|
-
case "com.amazonaws.cleanroomsml#ServiceQuotaExceededException":
|
|
400
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
401
|
-
case "ValidationException":
|
|
402
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
403
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
404
|
-
default:
|
|
405
|
-
const parsedBody = parsedOutput.body;
|
|
406
|
-
return throwDefaultError({
|
|
407
|
-
output,
|
|
408
|
-
parsedBody,
|
|
409
|
-
errorCode,
|
|
410
|
-
});
|
|
411
|
-
}
|
|
412
|
-
};
|
|
413
351
|
export const de_CreateTrainingDatasetCommand = async (output, context) => {
|
|
414
352
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
415
|
-
return
|
|
353
|
+
return de_CommandError(output, context);
|
|
416
354
|
}
|
|
417
355
|
const contents = map({
|
|
418
356
|
$metadata: deserializeMetadata(output),
|
|
@@ -424,34 +362,9 @@ export const de_CreateTrainingDatasetCommand = async (output, context) => {
|
|
|
424
362
|
Object.assign(contents, doc);
|
|
425
363
|
return contents;
|
|
426
364
|
};
|
|
427
|
-
const de_CreateTrainingDatasetCommandError = async (output, context) => {
|
|
428
|
-
const parsedOutput = {
|
|
429
|
-
...output,
|
|
430
|
-
body: await parseErrorBody(output.body, context),
|
|
431
|
-
};
|
|
432
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
433
|
-
switch (errorCode) {
|
|
434
|
-
case "AccessDeniedException":
|
|
435
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
436
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
437
|
-
case "ConflictException":
|
|
438
|
-
case "com.amazonaws.cleanroomsml#ConflictException":
|
|
439
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
440
|
-
case "ValidationException":
|
|
441
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
442
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
443
|
-
default:
|
|
444
|
-
const parsedBody = parsedOutput.body;
|
|
445
|
-
return throwDefaultError({
|
|
446
|
-
output,
|
|
447
|
-
parsedBody,
|
|
448
|
-
errorCode,
|
|
449
|
-
});
|
|
450
|
-
}
|
|
451
|
-
};
|
|
452
365
|
export const de_DeleteAudienceGenerationJobCommand = async (output, context) => {
|
|
453
366
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
454
|
-
return
|
|
367
|
+
return de_CommandError(output, context);
|
|
455
368
|
}
|
|
456
369
|
const contents = map({
|
|
457
370
|
$metadata: deserializeMetadata(output),
|
|
@@ -459,37 +372,9 @@ export const de_DeleteAudienceGenerationJobCommand = async (output, context) =>
|
|
|
459
372
|
await collectBody(output.body, context);
|
|
460
373
|
return contents;
|
|
461
374
|
};
|
|
462
|
-
const de_DeleteAudienceGenerationJobCommandError = async (output, context) => {
|
|
463
|
-
const parsedOutput = {
|
|
464
|
-
...output,
|
|
465
|
-
body: await parseErrorBody(output.body, context),
|
|
466
|
-
};
|
|
467
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
468
|
-
switch (errorCode) {
|
|
469
|
-
case "AccessDeniedException":
|
|
470
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
471
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
472
|
-
case "ConflictException":
|
|
473
|
-
case "com.amazonaws.cleanroomsml#ConflictException":
|
|
474
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
475
|
-
case "ResourceNotFoundException":
|
|
476
|
-
case "com.amazonaws.cleanroomsml#ResourceNotFoundException":
|
|
477
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
478
|
-
case "ValidationException":
|
|
479
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
480
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
481
|
-
default:
|
|
482
|
-
const parsedBody = parsedOutput.body;
|
|
483
|
-
return throwDefaultError({
|
|
484
|
-
output,
|
|
485
|
-
parsedBody,
|
|
486
|
-
errorCode,
|
|
487
|
-
});
|
|
488
|
-
}
|
|
489
|
-
};
|
|
490
375
|
export const de_DeleteAudienceModelCommand = async (output, context) => {
|
|
491
376
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
492
|
-
return
|
|
377
|
+
return de_CommandError(output, context);
|
|
493
378
|
}
|
|
494
379
|
const contents = map({
|
|
495
380
|
$metadata: deserializeMetadata(output),
|
|
@@ -497,37 +382,9 @@ export const de_DeleteAudienceModelCommand = async (output, context) => {
|
|
|
497
382
|
await collectBody(output.body, context);
|
|
498
383
|
return contents;
|
|
499
384
|
};
|
|
500
|
-
const de_DeleteAudienceModelCommandError = async (output, context) => {
|
|
501
|
-
const parsedOutput = {
|
|
502
|
-
...output,
|
|
503
|
-
body: await parseErrorBody(output.body, context),
|
|
504
|
-
};
|
|
505
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
506
|
-
switch (errorCode) {
|
|
507
|
-
case "AccessDeniedException":
|
|
508
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
509
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
510
|
-
case "ConflictException":
|
|
511
|
-
case "com.amazonaws.cleanroomsml#ConflictException":
|
|
512
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
513
|
-
case "ResourceNotFoundException":
|
|
514
|
-
case "com.amazonaws.cleanroomsml#ResourceNotFoundException":
|
|
515
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
516
|
-
case "ValidationException":
|
|
517
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
518
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
519
|
-
default:
|
|
520
|
-
const parsedBody = parsedOutput.body;
|
|
521
|
-
return throwDefaultError({
|
|
522
|
-
output,
|
|
523
|
-
parsedBody,
|
|
524
|
-
errorCode,
|
|
525
|
-
});
|
|
526
|
-
}
|
|
527
|
-
};
|
|
528
385
|
export const de_DeleteConfiguredAudienceModelCommand = async (output, context) => {
|
|
529
386
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
530
|
-
return
|
|
387
|
+
return de_CommandError(output, context);
|
|
531
388
|
}
|
|
532
389
|
const contents = map({
|
|
533
390
|
$metadata: deserializeMetadata(output),
|
|
@@ -535,37 +392,9 @@ export const de_DeleteConfiguredAudienceModelCommand = async (output, context) =
|
|
|
535
392
|
await collectBody(output.body, context);
|
|
536
393
|
return contents;
|
|
537
394
|
};
|
|
538
|
-
const de_DeleteConfiguredAudienceModelCommandError = async (output, context) => {
|
|
539
|
-
const parsedOutput = {
|
|
540
|
-
...output,
|
|
541
|
-
body: await parseErrorBody(output.body, context),
|
|
542
|
-
};
|
|
543
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
544
|
-
switch (errorCode) {
|
|
545
|
-
case "AccessDeniedException":
|
|
546
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
547
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
548
|
-
case "ConflictException":
|
|
549
|
-
case "com.amazonaws.cleanroomsml#ConflictException":
|
|
550
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
551
|
-
case "ResourceNotFoundException":
|
|
552
|
-
case "com.amazonaws.cleanroomsml#ResourceNotFoundException":
|
|
553
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
554
|
-
case "ValidationException":
|
|
555
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
556
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
557
|
-
default:
|
|
558
|
-
const parsedBody = parsedOutput.body;
|
|
559
|
-
return throwDefaultError({
|
|
560
|
-
output,
|
|
561
|
-
parsedBody,
|
|
562
|
-
errorCode,
|
|
563
|
-
});
|
|
564
|
-
}
|
|
565
|
-
};
|
|
566
395
|
export const de_DeleteConfiguredAudienceModelPolicyCommand = async (output, context) => {
|
|
567
396
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
568
|
-
return
|
|
397
|
+
return de_CommandError(output, context);
|
|
569
398
|
}
|
|
570
399
|
const contents = map({
|
|
571
400
|
$metadata: deserializeMetadata(output),
|
|
@@ -573,34 +402,9 @@ export const de_DeleteConfiguredAudienceModelPolicyCommand = async (output, cont
|
|
|
573
402
|
await collectBody(output.body, context);
|
|
574
403
|
return contents;
|
|
575
404
|
};
|
|
576
|
-
const de_DeleteConfiguredAudienceModelPolicyCommandError = async (output, context) => {
|
|
577
|
-
const parsedOutput = {
|
|
578
|
-
...output,
|
|
579
|
-
body: await parseErrorBody(output.body, context),
|
|
580
|
-
};
|
|
581
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
582
|
-
switch (errorCode) {
|
|
583
|
-
case "AccessDeniedException":
|
|
584
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
585
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
586
|
-
case "ResourceNotFoundException":
|
|
587
|
-
case "com.amazonaws.cleanroomsml#ResourceNotFoundException":
|
|
588
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
589
|
-
case "ValidationException":
|
|
590
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
591
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
592
|
-
default:
|
|
593
|
-
const parsedBody = parsedOutput.body;
|
|
594
|
-
return throwDefaultError({
|
|
595
|
-
output,
|
|
596
|
-
parsedBody,
|
|
597
|
-
errorCode,
|
|
598
|
-
});
|
|
599
|
-
}
|
|
600
|
-
};
|
|
601
405
|
export const de_DeleteTrainingDatasetCommand = async (output, context) => {
|
|
602
406
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
603
|
-
return
|
|
407
|
+
return de_CommandError(output, context);
|
|
604
408
|
}
|
|
605
409
|
const contents = map({
|
|
606
410
|
$metadata: deserializeMetadata(output),
|
|
@@ -608,37 +412,9 @@ export const de_DeleteTrainingDatasetCommand = async (output, context) => {
|
|
|
608
412
|
await collectBody(output.body, context);
|
|
609
413
|
return contents;
|
|
610
414
|
};
|
|
611
|
-
const de_DeleteTrainingDatasetCommandError = async (output, context) => {
|
|
612
|
-
const parsedOutput = {
|
|
613
|
-
...output,
|
|
614
|
-
body: await parseErrorBody(output.body, context),
|
|
615
|
-
};
|
|
616
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
617
|
-
switch (errorCode) {
|
|
618
|
-
case "AccessDeniedException":
|
|
619
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
620
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
621
|
-
case "ConflictException":
|
|
622
|
-
case "com.amazonaws.cleanroomsml#ConflictException":
|
|
623
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
624
|
-
case "ResourceNotFoundException":
|
|
625
|
-
case "com.amazonaws.cleanroomsml#ResourceNotFoundException":
|
|
626
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
627
|
-
case "ValidationException":
|
|
628
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
629
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
630
|
-
default:
|
|
631
|
-
const parsedBody = parsedOutput.body;
|
|
632
|
-
return throwDefaultError({
|
|
633
|
-
output,
|
|
634
|
-
parsedBody,
|
|
635
|
-
errorCode,
|
|
636
|
-
});
|
|
637
|
-
}
|
|
638
|
-
};
|
|
639
415
|
export const de_GetAudienceGenerationJobCommand = async (output, context) => {
|
|
640
416
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
641
|
-
return
|
|
417
|
+
return de_CommandError(output, context);
|
|
642
418
|
}
|
|
643
419
|
const contents = map({
|
|
644
420
|
$metadata: deserializeMetadata(output),
|
|
@@ -663,34 +439,9 @@ export const de_GetAudienceGenerationJobCommand = async (output, context) => {
|
|
|
663
439
|
Object.assign(contents, doc);
|
|
664
440
|
return contents;
|
|
665
441
|
};
|
|
666
|
-
const de_GetAudienceGenerationJobCommandError = async (output, context) => {
|
|
667
|
-
const parsedOutput = {
|
|
668
|
-
...output,
|
|
669
|
-
body: await parseErrorBody(output.body, context),
|
|
670
|
-
};
|
|
671
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
672
|
-
switch (errorCode) {
|
|
673
|
-
case "AccessDeniedException":
|
|
674
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
675
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
676
|
-
case "ResourceNotFoundException":
|
|
677
|
-
case "com.amazonaws.cleanroomsml#ResourceNotFoundException":
|
|
678
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
679
|
-
case "ValidationException":
|
|
680
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
681
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
682
|
-
default:
|
|
683
|
-
const parsedBody = parsedOutput.body;
|
|
684
|
-
return throwDefaultError({
|
|
685
|
-
output,
|
|
686
|
-
parsedBody,
|
|
687
|
-
errorCode,
|
|
688
|
-
});
|
|
689
|
-
}
|
|
690
|
-
};
|
|
691
442
|
export const de_GetAudienceModelCommand = async (output, context) => {
|
|
692
443
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
693
|
-
return
|
|
444
|
+
return de_CommandError(output, context);
|
|
694
445
|
}
|
|
695
446
|
const contents = map({
|
|
696
447
|
$metadata: deserializeMetadata(output),
|
|
@@ -714,34 +465,9 @@ export const de_GetAudienceModelCommand = async (output, context) => {
|
|
|
714
465
|
Object.assign(contents, doc);
|
|
715
466
|
return contents;
|
|
716
467
|
};
|
|
717
|
-
const de_GetAudienceModelCommandError = async (output, context) => {
|
|
718
|
-
const parsedOutput = {
|
|
719
|
-
...output,
|
|
720
|
-
body: await parseErrorBody(output.body, context),
|
|
721
|
-
};
|
|
722
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
723
|
-
switch (errorCode) {
|
|
724
|
-
case "AccessDeniedException":
|
|
725
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
726
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
727
|
-
case "ResourceNotFoundException":
|
|
728
|
-
case "com.amazonaws.cleanroomsml#ResourceNotFoundException":
|
|
729
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
730
|
-
case "ValidationException":
|
|
731
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
732
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
733
|
-
default:
|
|
734
|
-
const parsedBody = parsedOutput.body;
|
|
735
|
-
return throwDefaultError({
|
|
736
|
-
output,
|
|
737
|
-
parsedBody,
|
|
738
|
-
errorCode,
|
|
739
|
-
});
|
|
740
|
-
}
|
|
741
|
-
};
|
|
742
468
|
export const de_GetConfiguredAudienceModelCommand = async (output, context) => {
|
|
743
469
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
744
|
-
return
|
|
470
|
+
return de_CommandError(output, context);
|
|
745
471
|
}
|
|
746
472
|
const contents = map({
|
|
747
473
|
$metadata: deserializeMetadata(output),
|
|
@@ -765,34 +491,9 @@ export const de_GetConfiguredAudienceModelCommand = async (output, context) => {
|
|
|
765
491
|
Object.assign(contents, doc);
|
|
766
492
|
return contents;
|
|
767
493
|
};
|
|
768
|
-
const de_GetConfiguredAudienceModelCommandError = async (output, context) => {
|
|
769
|
-
const parsedOutput = {
|
|
770
|
-
...output,
|
|
771
|
-
body: await parseErrorBody(output.body, context),
|
|
772
|
-
};
|
|
773
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
774
|
-
switch (errorCode) {
|
|
775
|
-
case "AccessDeniedException":
|
|
776
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
777
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
778
|
-
case "ResourceNotFoundException":
|
|
779
|
-
case "com.amazonaws.cleanroomsml#ResourceNotFoundException":
|
|
780
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
781
|
-
case "ValidationException":
|
|
782
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
783
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
784
|
-
default:
|
|
785
|
-
const parsedBody = parsedOutput.body;
|
|
786
|
-
return throwDefaultError({
|
|
787
|
-
output,
|
|
788
|
-
parsedBody,
|
|
789
|
-
errorCode,
|
|
790
|
-
});
|
|
791
|
-
}
|
|
792
|
-
};
|
|
793
494
|
export const de_GetConfiguredAudienceModelPolicyCommand = async (output, context) => {
|
|
794
495
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
795
|
-
return
|
|
496
|
+
return de_CommandError(output, context);
|
|
796
497
|
}
|
|
797
498
|
const contents = map({
|
|
798
499
|
$metadata: deserializeMetadata(output),
|
|
@@ -806,34 +507,9 @@ export const de_GetConfiguredAudienceModelPolicyCommand = async (output, context
|
|
|
806
507
|
Object.assign(contents, doc);
|
|
807
508
|
return contents;
|
|
808
509
|
};
|
|
809
|
-
const de_GetConfiguredAudienceModelPolicyCommandError = async (output, context) => {
|
|
810
|
-
const parsedOutput = {
|
|
811
|
-
...output,
|
|
812
|
-
body: await parseErrorBody(output.body, context),
|
|
813
|
-
};
|
|
814
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
815
|
-
switch (errorCode) {
|
|
816
|
-
case "AccessDeniedException":
|
|
817
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
818
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
819
|
-
case "ResourceNotFoundException":
|
|
820
|
-
case "com.amazonaws.cleanroomsml#ResourceNotFoundException":
|
|
821
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
822
|
-
case "ValidationException":
|
|
823
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
824
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
825
|
-
default:
|
|
826
|
-
const parsedBody = parsedOutput.body;
|
|
827
|
-
return throwDefaultError({
|
|
828
|
-
output,
|
|
829
|
-
parsedBody,
|
|
830
|
-
errorCode,
|
|
831
|
-
});
|
|
832
|
-
}
|
|
833
|
-
};
|
|
834
510
|
export const de_GetTrainingDatasetCommand = async (output, context) => {
|
|
835
511
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
836
|
-
return
|
|
512
|
+
return de_CommandError(output, context);
|
|
837
513
|
}
|
|
838
514
|
const contents = map({
|
|
839
515
|
$metadata: deserializeMetadata(output),
|
|
@@ -852,72 +528,25 @@ export const de_GetTrainingDatasetCommand = async (output, context) => {
|
|
|
852
528
|
});
|
|
853
529
|
Object.assign(contents, doc);
|
|
854
530
|
return contents;
|
|
855
|
-
};
|
|
856
|
-
const
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
body: await parseErrorBody(output.body, context),
|
|
860
|
-
};
|
|
861
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
862
|
-
switch (errorCode) {
|
|
863
|
-
case "AccessDeniedException":
|
|
864
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
865
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
866
|
-
case "ResourceNotFoundException":
|
|
867
|
-
case "com.amazonaws.cleanroomsml#ResourceNotFoundException":
|
|
868
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
869
|
-
case "ValidationException":
|
|
870
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
871
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
872
|
-
default:
|
|
873
|
-
const parsedBody = parsedOutput.body;
|
|
874
|
-
return throwDefaultError({
|
|
875
|
-
output,
|
|
876
|
-
parsedBody,
|
|
877
|
-
errorCode,
|
|
878
|
-
});
|
|
879
|
-
}
|
|
880
|
-
};
|
|
881
|
-
export const de_ListAudienceExportJobsCommand = async (output, context) => {
|
|
882
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
883
|
-
return de_ListAudienceExportJobsCommandError(output, context);
|
|
884
|
-
}
|
|
885
|
-
const contents = map({
|
|
886
|
-
$metadata: deserializeMetadata(output),
|
|
887
|
-
});
|
|
888
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
889
|
-
const doc = take(data, {
|
|
890
|
-
audienceExportJobs: (_) => de_AudienceExportJobList(_, context),
|
|
891
|
-
nextToken: __expectString,
|
|
892
|
-
});
|
|
893
|
-
Object.assign(contents, doc);
|
|
894
|
-
return contents;
|
|
895
|
-
};
|
|
896
|
-
const de_ListAudienceExportJobsCommandError = async (output, context) => {
|
|
897
|
-
const parsedOutput = {
|
|
898
|
-
...output,
|
|
899
|
-
body: await parseErrorBody(output.body, context),
|
|
900
|
-
};
|
|
901
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
902
|
-
switch (errorCode) {
|
|
903
|
-
case "AccessDeniedException":
|
|
904
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
905
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
906
|
-
case "ValidationException":
|
|
907
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
908
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
909
|
-
default:
|
|
910
|
-
const parsedBody = parsedOutput.body;
|
|
911
|
-
return throwDefaultError({
|
|
912
|
-
output,
|
|
913
|
-
parsedBody,
|
|
914
|
-
errorCode,
|
|
915
|
-
});
|
|
531
|
+
};
|
|
532
|
+
export const de_ListAudienceExportJobsCommand = async (output, context) => {
|
|
533
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
534
|
+
return de_CommandError(output, context);
|
|
916
535
|
}
|
|
536
|
+
const contents = map({
|
|
537
|
+
$metadata: deserializeMetadata(output),
|
|
538
|
+
});
|
|
539
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
540
|
+
const doc = take(data, {
|
|
541
|
+
audienceExportJobs: (_) => de_AudienceExportJobList(_, context),
|
|
542
|
+
nextToken: __expectString,
|
|
543
|
+
});
|
|
544
|
+
Object.assign(contents, doc);
|
|
545
|
+
return contents;
|
|
917
546
|
};
|
|
918
547
|
export const de_ListAudienceGenerationJobsCommand = async (output, context) => {
|
|
919
548
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
920
|
-
return
|
|
549
|
+
return de_CommandError(output, context);
|
|
921
550
|
}
|
|
922
551
|
const contents = map({
|
|
923
552
|
$metadata: deserializeMetadata(output),
|
|
@@ -930,31 +559,9 @@ export const de_ListAudienceGenerationJobsCommand = async (output, context) => {
|
|
|
930
559
|
Object.assign(contents, doc);
|
|
931
560
|
return contents;
|
|
932
561
|
};
|
|
933
|
-
const de_ListAudienceGenerationJobsCommandError = async (output, context) => {
|
|
934
|
-
const parsedOutput = {
|
|
935
|
-
...output,
|
|
936
|
-
body: await parseErrorBody(output.body, context),
|
|
937
|
-
};
|
|
938
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
939
|
-
switch (errorCode) {
|
|
940
|
-
case "AccessDeniedException":
|
|
941
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
942
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
943
|
-
case "ValidationException":
|
|
944
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
945
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
946
|
-
default:
|
|
947
|
-
const parsedBody = parsedOutput.body;
|
|
948
|
-
return throwDefaultError({
|
|
949
|
-
output,
|
|
950
|
-
parsedBody,
|
|
951
|
-
errorCode,
|
|
952
|
-
});
|
|
953
|
-
}
|
|
954
|
-
};
|
|
955
562
|
export const de_ListAudienceModelsCommand = async (output, context) => {
|
|
956
563
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
957
|
-
return
|
|
564
|
+
return de_CommandError(output, context);
|
|
958
565
|
}
|
|
959
566
|
const contents = map({
|
|
960
567
|
$metadata: deserializeMetadata(output),
|
|
@@ -967,31 +574,9 @@ export const de_ListAudienceModelsCommand = async (output, context) => {
|
|
|
967
574
|
Object.assign(contents, doc);
|
|
968
575
|
return contents;
|
|
969
576
|
};
|
|
970
|
-
const de_ListAudienceModelsCommandError = async (output, context) => {
|
|
971
|
-
const parsedOutput = {
|
|
972
|
-
...output,
|
|
973
|
-
body: await parseErrorBody(output.body, context),
|
|
974
|
-
};
|
|
975
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
976
|
-
switch (errorCode) {
|
|
977
|
-
case "AccessDeniedException":
|
|
978
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
979
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
980
|
-
case "ValidationException":
|
|
981
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
982
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
983
|
-
default:
|
|
984
|
-
const parsedBody = parsedOutput.body;
|
|
985
|
-
return throwDefaultError({
|
|
986
|
-
output,
|
|
987
|
-
parsedBody,
|
|
988
|
-
errorCode,
|
|
989
|
-
});
|
|
990
|
-
}
|
|
991
|
-
};
|
|
992
577
|
export const de_ListConfiguredAudienceModelsCommand = async (output, context) => {
|
|
993
578
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
994
|
-
return
|
|
579
|
+
return de_CommandError(output, context);
|
|
995
580
|
}
|
|
996
581
|
const contents = map({
|
|
997
582
|
$metadata: deserializeMetadata(output),
|
|
@@ -1004,31 +589,9 @@ export const de_ListConfiguredAudienceModelsCommand = async (output, context) =>
|
|
|
1004
589
|
Object.assign(contents, doc);
|
|
1005
590
|
return contents;
|
|
1006
591
|
};
|
|
1007
|
-
const de_ListConfiguredAudienceModelsCommandError = async (output, context) => {
|
|
1008
|
-
const parsedOutput = {
|
|
1009
|
-
...output,
|
|
1010
|
-
body: await parseErrorBody(output.body, context),
|
|
1011
|
-
};
|
|
1012
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1013
|
-
switch (errorCode) {
|
|
1014
|
-
case "AccessDeniedException":
|
|
1015
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
1016
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1017
|
-
case "ValidationException":
|
|
1018
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
1019
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1020
|
-
default:
|
|
1021
|
-
const parsedBody = parsedOutput.body;
|
|
1022
|
-
return throwDefaultError({
|
|
1023
|
-
output,
|
|
1024
|
-
parsedBody,
|
|
1025
|
-
errorCode,
|
|
1026
|
-
});
|
|
1027
|
-
}
|
|
1028
|
-
};
|
|
1029
592
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1030
593
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1031
|
-
return
|
|
594
|
+
return de_CommandError(output, context);
|
|
1032
595
|
}
|
|
1033
596
|
const contents = map({
|
|
1034
597
|
$metadata: deserializeMetadata(output),
|
|
@@ -1040,34 +603,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1040
603
|
Object.assign(contents, doc);
|
|
1041
604
|
return contents;
|
|
1042
605
|
};
|
|
1043
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1044
|
-
const parsedOutput = {
|
|
1045
|
-
...output,
|
|
1046
|
-
body: await parseErrorBody(output.body, context),
|
|
1047
|
-
};
|
|
1048
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1049
|
-
switch (errorCode) {
|
|
1050
|
-
case "AccessDeniedException":
|
|
1051
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
1052
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1053
|
-
case "ResourceNotFoundException":
|
|
1054
|
-
case "com.amazonaws.cleanroomsml#ResourceNotFoundException":
|
|
1055
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1056
|
-
case "ValidationException":
|
|
1057
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
1058
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1059
|
-
default:
|
|
1060
|
-
const parsedBody = parsedOutput.body;
|
|
1061
|
-
return throwDefaultError({
|
|
1062
|
-
output,
|
|
1063
|
-
parsedBody,
|
|
1064
|
-
errorCode,
|
|
1065
|
-
});
|
|
1066
|
-
}
|
|
1067
|
-
};
|
|
1068
606
|
export const de_ListTrainingDatasetsCommand = async (output, context) => {
|
|
1069
607
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1070
|
-
return
|
|
608
|
+
return de_CommandError(output, context);
|
|
1071
609
|
}
|
|
1072
610
|
const contents = map({
|
|
1073
611
|
$metadata: deserializeMetadata(output),
|
|
@@ -1080,31 +618,9 @@ export const de_ListTrainingDatasetsCommand = async (output, context) => {
|
|
|
1080
618
|
Object.assign(contents, doc);
|
|
1081
619
|
return contents;
|
|
1082
620
|
};
|
|
1083
|
-
const de_ListTrainingDatasetsCommandError = async (output, context) => {
|
|
1084
|
-
const parsedOutput = {
|
|
1085
|
-
...output,
|
|
1086
|
-
body: await parseErrorBody(output.body, context),
|
|
1087
|
-
};
|
|
1088
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1089
|
-
switch (errorCode) {
|
|
1090
|
-
case "AccessDeniedException":
|
|
1091
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
1092
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1093
|
-
case "ValidationException":
|
|
1094
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
1095
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1096
|
-
default:
|
|
1097
|
-
const parsedBody = parsedOutput.body;
|
|
1098
|
-
return throwDefaultError({
|
|
1099
|
-
output,
|
|
1100
|
-
parsedBody,
|
|
1101
|
-
errorCode,
|
|
1102
|
-
});
|
|
1103
|
-
}
|
|
1104
|
-
};
|
|
1105
621
|
export const de_PutConfiguredAudienceModelPolicyCommand = async (output, context) => {
|
|
1106
622
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1107
|
-
return
|
|
623
|
+
return de_CommandError(output, context);
|
|
1108
624
|
}
|
|
1109
625
|
const contents = map({
|
|
1110
626
|
$metadata: deserializeMetadata(output),
|
|
@@ -1117,34 +633,9 @@ export const de_PutConfiguredAudienceModelPolicyCommand = async (output, context
|
|
|
1117
633
|
Object.assign(contents, doc);
|
|
1118
634
|
return contents;
|
|
1119
635
|
};
|
|
1120
|
-
const de_PutConfiguredAudienceModelPolicyCommandError = async (output, context) => {
|
|
1121
|
-
const parsedOutput = {
|
|
1122
|
-
...output,
|
|
1123
|
-
body: await parseErrorBody(output.body, context),
|
|
1124
|
-
};
|
|
1125
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1126
|
-
switch (errorCode) {
|
|
1127
|
-
case "AccessDeniedException":
|
|
1128
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
1129
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1130
|
-
case "ResourceNotFoundException":
|
|
1131
|
-
case "com.amazonaws.cleanroomsml#ResourceNotFoundException":
|
|
1132
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1133
|
-
case "ValidationException":
|
|
1134
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
1135
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1136
|
-
default:
|
|
1137
|
-
const parsedBody = parsedOutput.body;
|
|
1138
|
-
return throwDefaultError({
|
|
1139
|
-
output,
|
|
1140
|
-
parsedBody,
|
|
1141
|
-
errorCode,
|
|
1142
|
-
});
|
|
1143
|
-
}
|
|
1144
|
-
};
|
|
1145
636
|
export const de_StartAudienceExportJobCommand = async (output, context) => {
|
|
1146
637
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1147
|
-
return
|
|
638
|
+
return de_CommandError(output, context);
|
|
1148
639
|
}
|
|
1149
640
|
const contents = map({
|
|
1150
641
|
$metadata: deserializeMetadata(output),
|
|
@@ -1152,40 +643,9 @@ export const de_StartAudienceExportJobCommand = async (output, context) => {
|
|
|
1152
643
|
await collectBody(output.body, context);
|
|
1153
644
|
return contents;
|
|
1154
645
|
};
|
|
1155
|
-
const de_StartAudienceExportJobCommandError = async (output, context) => {
|
|
1156
|
-
const parsedOutput = {
|
|
1157
|
-
...output,
|
|
1158
|
-
body: await parseErrorBody(output.body, context),
|
|
1159
|
-
};
|
|
1160
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1161
|
-
switch (errorCode) {
|
|
1162
|
-
case "AccessDeniedException":
|
|
1163
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
1164
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1165
|
-
case "ConflictException":
|
|
1166
|
-
case "com.amazonaws.cleanroomsml#ConflictException":
|
|
1167
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1168
|
-
case "ResourceNotFoundException":
|
|
1169
|
-
case "com.amazonaws.cleanroomsml#ResourceNotFoundException":
|
|
1170
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1171
|
-
case "ServiceQuotaExceededException":
|
|
1172
|
-
case "com.amazonaws.cleanroomsml#ServiceQuotaExceededException":
|
|
1173
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1174
|
-
case "ValidationException":
|
|
1175
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
1176
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1177
|
-
default:
|
|
1178
|
-
const parsedBody = parsedOutput.body;
|
|
1179
|
-
return throwDefaultError({
|
|
1180
|
-
output,
|
|
1181
|
-
parsedBody,
|
|
1182
|
-
errorCode,
|
|
1183
|
-
});
|
|
1184
|
-
}
|
|
1185
|
-
};
|
|
1186
646
|
export const de_StartAudienceGenerationJobCommand = async (output, context) => {
|
|
1187
647
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1188
|
-
return
|
|
648
|
+
return de_CommandError(output, context);
|
|
1189
649
|
}
|
|
1190
650
|
const contents = map({
|
|
1191
651
|
$metadata: deserializeMetadata(output),
|
|
@@ -1197,40 +657,9 @@ export const de_StartAudienceGenerationJobCommand = async (output, context) => {
|
|
|
1197
657
|
Object.assign(contents, doc);
|
|
1198
658
|
return contents;
|
|
1199
659
|
};
|
|
1200
|
-
const de_StartAudienceGenerationJobCommandError = async (output, context) => {
|
|
1201
|
-
const parsedOutput = {
|
|
1202
|
-
...output,
|
|
1203
|
-
body: await parseErrorBody(output.body, context),
|
|
1204
|
-
};
|
|
1205
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1206
|
-
switch (errorCode) {
|
|
1207
|
-
case "AccessDeniedException":
|
|
1208
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
1209
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1210
|
-
case "ConflictException":
|
|
1211
|
-
case "com.amazonaws.cleanroomsml#ConflictException":
|
|
1212
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1213
|
-
case "ResourceNotFoundException":
|
|
1214
|
-
case "com.amazonaws.cleanroomsml#ResourceNotFoundException":
|
|
1215
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1216
|
-
case "ServiceQuotaExceededException":
|
|
1217
|
-
case "com.amazonaws.cleanroomsml#ServiceQuotaExceededException":
|
|
1218
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1219
|
-
case "ValidationException":
|
|
1220
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
1221
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1222
|
-
default:
|
|
1223
|
-
const parsedBody = parsedOutput.body;
|
|
1224
|
-
return throwDefaultError({
|
|
1225
|
-
output,
|
|
1226
|
-
parsedBody,
|
|
1227
|
-
errorCode,
|
|
1228
|
-
});
|
|
1229
|
-
}
|
|
1230
|
-
};
|
|
1231
660
|
export const de_TagResourceCommand = async (output, context) => {
|
|
1232
661
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1233
|
-
return
|
|
662
|
+
return de_CommandError(output, context);
|
|
1234
663
|
}
|
|
1235
664
|
const contents = map({
|
|
1236
665
|
$metadata: deserializeMetadata(output),
|
|
@@ -1238,34 +667,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1238
667
|
await collectBody(output.body, context);
|
|
1239
668
|
return contents;
|
|
1240
669
|
};
|
|
1241
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1242
|
-
const parsedOutput = {
|
|
1243
|
-
...output,
|
|
1244
|
-
body: await parseErrorBody(output.body, context),
|
|
1245
|
-
};
|
|
1246
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1247
|
-
switch (errorCode) {
|
|
1248
|
-
case "AccessDeniedException":
|
|
1249
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
1250
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1251
|
-
case "ResourceNotFoundException":
|
|
1252
|
-
case "com.amazonaws.cleanroomsml#ResourceNotFoundException":
|
|
1253
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1254
|
-
case "ValidationException":
|
|
1255
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
1256
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1257
|
-
default:
|
|
1258
|
-
const parsedBody = parsedOutput.body;
|
|
1259
|
-
return throwDefaultError({
|
|
1260
|
-
output,
|
|
1261
|
-
parsedBody,
|
|
1262
|
-
errorCode,
|
|
1263
|
-
});
|
|
1264
|
-
}
|
|
1265
|
-
};
|
|
1266
670
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
1267
671
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1268
|
-
return
|
|
672
|
+
return de_CommandError(output, context);
|
|
1269
673
|
}
|
|
1270
674
|
const contents = map({
|
|
1271
675
|
$metadata: deserializeMetadata(output),
|
|
@@ -1273,34 +677,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1273
677
|
await collectBody(output.body, context);
|
|
1274
678
|
return contents;
|
|
1275
679
|
};
|
|
1276
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1277
|
-
const parsedOutput = {
|
|
1278
|
-
...output,
|
|
1279
|
-
body: await parseErrorBody(output.body, context),
|
|
1280
|
-
};
|
|
1281
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1282
|
-
switch (errorCode) {
|
|
1283
|
-
case "AccessDeniedException":
|
|
1284
|
-
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
1285
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1286
|
-
case "ResourceNotFoundException":
|
|
1287
|
-
case "com.amazonaws.cleanroomsml#ResourceNotFoundException":
|
|
1288
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1289
|
-
case "ValidationException":
|
|
1290
|
-
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
1291
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1292
|
-
default:
|
|
1293
|
-
const parsedBody = parsedOutput.body;
|
|
1294
|
-
return throwDefaultError({
|
|
1295
|
-
output,
|
|
1296
|
-
parsedBody,
|
|
1297
|
-
errorCode,
|
|
1298
|
-
});
|
|
1299
|
-
}
|
|
1300
|
-
};
|
|
1301
680
|
export const de_UpdateConfiguredAudienceModelCommand = async (output, context) => {
|
|
1302
681
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1303
|
-
return
|
|
682
|
+
return de_CommandError(output, context);
|
|
1304
683
|
}
|
|
1305
684
|
const contents = map({
|
|
1306
685
|
$metadata: deserializeMetadata(output),
|
|
@@ -1312,7 +691,7 @@ export const de_UpdateConfiguredAudienceModelCommand = async (output, context) =
|
|
|
1312
691
|
Object.assign(contents, doc);
|
|
1313
692
|
return contents;
|
|
1314
693
|
};
|
|
1315
|
-
const
|
|
694
|
+
const de_CommandError = async (output, context) => {
|
|
1316
695
|
const parsedOutput = {
|
|
1317
696
|
...output,
|
|
1318
697
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1328,6 +707,9 @@ const de_UpdateConfiguredAudienceModelCommandError = async (output, context) =>
|
|
|
1328
707
|
case "ResourceNotFoundException":
|
|
1329
708
|
case "com.amazonaws.cleanroomsml#ResourceNotFoundException":
|
|
1330
709
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
710
|
+
case "ServiceQuotaExceededException":
|
|
711
|
+
case "com.amazonaws.cleanroomsml#ServiceQuotaExceededException":
|
|
712
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1331
713
|
case "ValidationException":
|
|
1332
714
|
case "com.amazonaws.cleanroomsml#ValidationException":
|
|
1333
715
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|