@aws-sdk/client-ecs 3.504.0 → 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 +155 -1770
- package/dist-es/protocols/Aws_json1_1.js +272 -1887
- package/package.json +3 -3
|
@@ -341,7 +341,7 @@ export const se_UpdateTaskSetCommand = async (input, context) => {
|
|
|
341
341
|
};
|
|
342
342
|
export const de_CreateCapacityProviderCommand = async (output, context) => {
|
|
343
343
|
if (output.statusCode >= 300) {
|
|
344
|
-
return
|
|
344
|
+
return de_CommandError(output, context);
|
|
345
345
|
}
|
|
346
346
|
const data = await parseBody(output.body, context);
|
|
347
347
|
let contents = {};
|
|
@@ -352,40 +352,9 @@ export const de_CreateCapacityProviderCommand = async (output, context) => {
|
|
|
352
352
|
};
|
|
353
353
|
return response;
|
|
354
354
|
};
|
|
355
|
-
const de_CreateCapacityProviderCommandError = async (output, context) => {
|
|
356
|
-
const parsedOutput = {
|
|
357
|
-
...output,
|
|
358
|
-
body: await parseErrorBody(output.body, context),
|
|
359
|
-
};
|
|
360
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
361
|
-
switch (errorCode) {
|
|
362
|
-
case "ClientException":
|
|
363
|
-
case "com.amazonaws.ecs#ClientException":
|
|
364
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
365
|
-
case "InvalidParameterException":
|
|
366
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
367
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
368
|
-
case "LimitExceededException":
|
|
369
|
-
case "com.amazonaws.ecs#LimitExceededException":
|
|
370
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
371
|
-
case "ServerException":
|
|
372
|
-
case "com.amazonaws.ecs#ServerException":
|
|
373
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
374
|
-
case "UpdateInProgressException":
|
|
375
|
-
case "com.amazonaws.ecs#UpdateInProgressException":
|
|
376
|
-
throw await de_UpdateInProgressExceptionRes(parsedOutput, context);
|
|
377
|
-
default:
|
|
378
|
-
const parsedBody = parsedOutput.body;
|
|
379
|
-
return throwDefaultError({
|
|
380
|
-
output,
|
|
381
|
-
parsedBody,
|
|
382
|
-
errorCode,
|
|
383
|
-
});
|
|
384
|
-
}
|
|
385
|
-
};
|
|
386
355
|
export const de_CreateClusterCommand = async (output, context) => {
|
|
387
356
|
if (output.statusCode >= 300) {
|
|
388
|
-
return
|
|
357
|
+
return de_CommandError(output, context);
|
|
389
358
|
}
|
|
390
359
|
const data = await parseBody(output.body, context);
|
|
391
360
|
let contents = {};
|
|
@@ -396,37 +365,9 @@ export const de_CreateClusterCommand = async (output, context) => {
|
|
|
396
365
|
};
|
|
397
366
|
return response;
|
|
398
367
|
};
|
|
399
|
-
const de_CreateClusterCommandError = async (output, context) => {
|
|
400
|
-
const parsedOutput = {
|
|
401
|
-
...output,
|
|
402
|
-
body: await parseErrorBody(output.body, context),
|
|
403
|
-
};
|
|
404
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
405
|
-
switch (errorCode) {
|
|
406
|
-
case "ClientException":
|
|
407
|
-
case "com.amazonaws.ecs#ClientException":
|
|
408
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
409
|
-
case "InvalidParameterException":
|
|
410
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
411
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
412
|
-
case "NamespaceNotFoundException":
|
|
413
|
-
case "com.amazonaws.ecs#NamespaceNotFoundException":
|
|
414
|
-
throw await de_NamespaceNotFoundExceptionRes(parsedOutput, context);
|
|
415
|
-
case "ServerException":
|
|
416
|
-
case "com.amazonaws.ecs#ServerException":
|
|
417
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
418
|
-
default:
|
|
419
|
-
const parsedBody = parsedOutput.body;
|
|
420
|
-
return throwDefaultError({
|
|
421
|
-
output,
|
|
422
|
-
parsedBody,
|
|
423
|
-
errorCode,
|
|
424
|
-
});
|
|
425
|
-
}
|
|
426
|
-
};
|
|
427
368
|
export const de_CreateServiceCommand = async (output, context) => {
|
|
428
369
|
if (output.statusCode >= 300) {
|
|
429
|
-
return
|
|
370
|
+
return de_CommandError(output, context);
|
|
430
371
|
}
|
|
431
372
|
const data = await parseBody(output.body, context);
|
|
432
373
|
let contents = {};
|
|
@@ -437,52 +378,9 @@ export const de_CreateServiceCommand = async (output, context) => {
|
|
|
437
378
|
};
|
|
438
379
|
return response;
|
|
439
380
|
};
|
|
440
|
-
const de_CreateServiceCommandError = async (output, context) => {
|
|
441
|
-
const parsedOutput = {
|
|
442
|
-
...output,
|
|
443
|
-
body: await parseErrorBody(output.body, context),
|
|
444
|
-
};
|
|
445
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
446
|
-
switch (errorCode) {
|
|
447
|
-
case "AccessDeniedException":
|
|
448
|
-
case "com.amazonaws.ecs#AccessDeniedException":
|
|
449
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
450
|
-
case "ClientException":
|
|
451
|
-
case "com.amazonaws.ecs#ClientException":
|
|
452
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
453
|
-
case "ClusterNotFoundException":
|
|
454
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
455
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
456
|
-
case "InvalidParameterException":
|
|
457
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
458
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
459
|
-
case "NamespaceNotFoundException":
|
|
460
|
-
case "com.amazonaws.ecs#NamespaceNotFoundException":
|
|
461
|
-
throw await de_NamespaceNotFoundExceptionRes(parsedOutput, context);
|
|
462
|
-
case "PlatformTaskDefinitionIncompatibilityException":
|
|
463
|
-
case "com.amazonaws.ecs#PlatformTaskDefinitionIncompatibilityException":
|
|
464
|
-
throw await de_PlatformTaskDefinitionIncompatibilityExceptionRes(parsedOutput, context);
|
|
465
|
-
case "PlatformUnknownException":
|
|
466
|
-
case "com.amazonaws.ecs#PlatformUnknownException":
|
|
467
|
-
throw await de_PlatformUnknownExceptionRes(parsedOutput, context);
|
|
468
|
-
case "ServerException":
|
|
469
|
-
case "com.amazonaws.ecs#ServerException":
|
|
470
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
471
|
-
case "UnsupportedFeatureException":
|
|
472
|
-
case "com.amazonaws.ecs#UnsupportedFeatureException":
|
|
473
|
-
throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context);
|
|
474
|
-
default:
|
|
475
|
-
const parsedBody = parsedOutput.body;
|
|
476
|
-
return throwDefaultError({
|
|
477
|
-
output,
|
|
478
|
-
parsedBody,
|
|
479
|
-
errorCode,
|
|
480
|
-
});
|
|
481
|
-
}
|
|
482
|
-
};
|
|
483
381
|
export const de_CreateTaskSetCommand = async (output, context) => {
|
|
484
382
|
if (output.statusCode >= 300) {
|
|
485
|
-
return
|
|
383
|
+
return de_CommandError(output, context);
|
|
486
384
|
}
|
|
487
385
|
const data = await parseBody(output.body, context);
|
|
488
386
|
let contents = {};
|
|
@@ -493,58 +391,9 @@ export const de_CreateTaskSetCommand = async (output, context) => {
|
|
|
493
391
|
};
|
|
494
392
|
return response;
|
|
495
393
|
};
|
|
496
|
-
const de_CreateTaskSetCommandError = async (output, context) => {
|
|
497
|
-
const parsedOutput = {
|
|
498
|
-
...output,
|
|
499
|
-
body: await parseErrorBody(output.body, context),
|
|
500
|
-
};
|
|
501
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
502
|
-
switch (errorCode) {
|
|
503
|
-
case "AccessDeniedException":
|
|
504
|
-
case "com.amazonaws.ecs#AccessDeniedException":
|
|
505
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
506
|
-
case "ClientException":
|
|
507
|
-
case "com.amazonaws.ecs#ClientException":
|
|
508
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
509
|
-
case "ClusterNotFoundException":
|
|
510
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
511
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
512
|
-
case "InvalidParameterException":
|
|
513
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
514
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
515
|
-
case "NamespaceNotFoundException":
|
|
516
|
-
case "com.amazonaws.ecs#NamespaceNotFoundException":
|
|
517
|
-
throw await de_NamespaceNotFoundExceptionRes(parsedOutput, context);
|
|
518
|
-
case "PlatformTaskDefinitionIncompatibilityException":
|
|
519
|
-
case "com.amazonaws.ecs#PlatformTaskDefinitionIncompatibilityException":
|
|
520
|
-
throw await de_PlatformTaskDefinitionIncompatibilityExceptionRes(parsedOutput, context);
|
|
521
|
-
case "PlatformUnknownException":
|
|
522
|
-
case "com.amazonaws.ecs#PlatformUnknownException":
|
|
523
|
-
throw await de_PlatformUnknownExceptionRes(parsedOutput, context);
|
|
524
|
-
case "ServerException":
|
|
525
|
-
case "com.amazonaws.ecs#ServerException":
|
|
526
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
527
|
-
case "ServiceNotActiveException":
|
|
528
|
-
case "com.amazonaws.ecs#ServiceNotActiveException":
|
|
529
|
-
throw await de_ServiceNotActiveExceptionRes(parsedOutput, context);
|
|
530
|
-
case "ServiceNotFoundException":
|
|
531
|
-
case "com.amazonaws.ecs#ServiceNotFoundException":
|
|
532
|
-
throw await de_ServiceNotFoundExceptionRes(parsedOutput, context);
|
|
533
|
-
case "UnsupportedFeatureException":
|
|
534
|
-
case "com.amazonaws.ecs#UnsupportedFeatureException":
|
|
535
|
-
throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context);
|
|
536
|
-
default:
|
|
537
|
-
const parsedBody = parsedOutput.body;
|
|
538
|
-
return throwDefaultError({
|
|
539
|
-
output,
|
|
540
|
-
parsedBody,
|
|
541
|
-
errorCode,
|
|
542
|
-
});
|
|
543
|
-
}
|
|
544
|
-
};
|
|
545
394
|
export const de_DeleteAccountSettingCommand = async (output, context) => {
|
|
546
395
|
if (output.statusCode >= 300) {
|
|
547
|
-
return
|
|
396
|
+
return de_CommandError(output, context);
|
|
548
397
|
}
|
|
549
398
|
const data = await parseBody(output.body, context);
|
|
550
399
|
let contents = {};
|
|
@@ -555,34 +404,9 @@ export const de_DeleteAccountSettingCommand = async (output, context) => {
|
|
|
555
404
|
};
|
|
556
405
|
return response;
|
|
557
406
|
};
|
|
558
|
-
const de_DeleteAccountSettingCommandError = async (output, context) => {
|
|
559
|
-
const parsedOutput = {
|
|
560
|
-
...output,
|
|
561
|
-
body: await parseErrorBody(output.body, context),
|
|
562
|
-
};
|
|
563
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
564
|
-
switch (errorCode) {
|
|
565
|
-
case "ClientException":
|
|
566
|
-
case "com.amazonaws.ecs#ClientException":
|
|
567
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
568
|
-
case "InvalidParameterException":
|
|
569
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
570
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
571
|
-
case "ServerException":
|
|
572
|
-
case "com.amazonaws.ecs#ServerException":
|
|
573
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
574
|
-
default:
|
|
575
|
-
const parsedBody = parsedOutput.body;
|
|
576
|
-
return throwDefaultError({
|
|
577
|
-
output,
|
|
578
|
-
parsedBody,
|
|
579
|
-
errorCode,
|
|
580
|
-
});
|
|
581
|
-
}
|
|
582
|
-
};
|
|
583
407
|
export const de_DeleteAttributesCommand = async (output, context) => {
|
|
584
408
|
if (output.statusCode >= 300) {
|
|
585
|
-
return
|
|
409
|
+
return de_CommandError(output, context);
|
|
586
410
|
}
|
|
587
411
|
const data = await parseBody(output.body, context);
|
|
588
412
|
let contents = {};
|
|
@@ -593,34 +417,9 @@ export const de_DeleteAttributesCommand = async (output, context) => {
|
|
|
593
417
|
};
|
|
594
418
|
return response;
|
|
595
419
|
};
|
|
596
|
-
const de_DeleteAttributesCommandError = async (output, context) => {
|
|
597
|
-
const parsedOutput = {
|
|
598
|
-
...output,
|
|
599
|
-
body: await parseErrorBody(output.body, context),
|
|
600
|
-
};
|
|
601
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
602
|
-
switch (errorCode) {
|
|
603
|
-
case "ClusterNotFoundException":
|
|
604
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
605
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
606
|
-
case "InvalidParameterException":
|
|
607
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
608
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
609
|
-
case "TargetNotFoundException":
|
|
610
|
-
case "com.amazonaws.ecs#TargetNotFoundException":
|
|
611
|
-
throw await de_TargetNotFoundExceptionRes(parsedOutput, context);
|
|
612
|
-
default:
|
|
613
|
-
const parsedBody = parsedOutput.body;
|
|
614
|
-
return throwDefaultError({
|
|
615
|
-
output,
|
|
616
|
-
parsedBody,
|
|
617
|
-
errorCode,
|
|
618
|
-
});
|
|
619
|
-
}
|
|
620
|
-
};
|
|
621
420
|
export const de_DeleteCapacityProviderCommand = async (output, context) => {
|
|
622
421
|
if (output.statusCode >= 300) {
|
|
623
|
-
return
|
|
422
|
+
return de_CommandError(output, context);
|
|
624
423
|
}
|
|
625
424
|
const data = await parseBody(output.body, context);
|
|
626
425
|
let contents = {};
|
|
@@ -631,345 +430,178 @@ export const de_DeleteCapacityProviderCommand = async (output, context) => {
|
|
|
631
430
|
};
|
|
632
431
|
return response;
|
|
633
432
|
};
|
|
634
|
-
const
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
433
|
+
export const de_DeleteClusterCommand = async (output, context) => {
|
|
434
|
+
if (output.statusCode >= 300) {
|
|
435
|
+
return de_CommandError(output, context);
|
|
436
|
+
}
|
|
437
|
+
const data = await parseBody(output.body, context);
|
|
438
|
+
let contents = {};
|
|
439
|
+
contents = _json(data);
|
|
440
|
+
const response = {
|
|
441
|
+
$metadata: deserializeMetadata(output),
|
|
442
|
+
...contents,
|
|
638
443
|
};
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
case "InvalidParameterException":
|
|
645
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
646
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
647
|
-
case "ServerException":
|
|
648
|
-
case "com.amazonaws.ecs#ServerException":
|
|
649
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
650
|
-
default:
|
|
651
|
-
const parsedBody = parsedOutput.body;
|
|
652
|
-
return throwDefaultError({
|
|
653
|
-
output,
|
|
654
|
-
parsedBody,
|
|
655
|
-
errorCode,
|
|
656
|
-
});
|
|
444
|
+
return response;
|
|
445
|
+
};
|
|
446
|
+
export const de_DeleteServiceCommand = async (output, context) => {
|
|
447
|
+
if (output.statusCode >= 300) {
|
|
448
|
+
return de_CommandError(output, context);
|
|
657
449
|
}
|
|
450
|
+
const data = await parseBody(output.body, context);
|
|
451
|
+
let contents = {};
|
|
452
|
+
contents = de_DeleteServiceResponse(data, context);
|
|
453
|
+
const response = {
|
|
454
|
+
$metadata: deserializeMetadata(output),
|
|
455
|
+
...contents,
|
|
456
|
+
};
|
|
457
|
+
return response;
|
|
658
458
|
};
|
|
659
|
-
export const
|
|
459
|
+
export const de_DeleteTaskDefinitionsCommand = async (output, context) => {
|
|
660
460
|
if (output.statusCode >= 300) {
|
|
661
|
-
return
|
|
461
|
+
return de_CommandError(output, context);
|
|
662
462
|
}
|
|
663
463
|
const data = await parseBody(output.body, context);
|
|
664
464
|
let contents = {};
|
|
665
|
-
contents =
|
|
465
|
+
contents = de_DeleteTaskDefinitionsResponse(data, context);
|
|
666
466
|
const response = {
|
|
667
467
|
$metadata: deserializeMetadata(output),
|
|
668
468
|
...contents,
|
|
669
469
|
};
|
|
670
470
|
return response;
|
|
671
471
|
};
|
|
672
|
-
const
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
472
|
+
export const de_DeleteTaskSetCommand = async (output, context) => {
|
|
473
|
+
if (output.statusCode >= 300) {
|
|
474
|
+
return de_CommandError(output, context);
|
|
475
|
+
}
|
|
476
|
+
const data = await parseBody(output.body, context);
|
|
477
|
+
let contents = {};
|
|
478
|
+
contents = de_DeleteTaskSetResponse(data, context);
|
|
479
|
+
const response = {
|
|
480
|
+
$metadata: deserializeMetadata(output),
|
|
481
|
+
...contents,
|
|
676
482
|
};
|
|
677
|
-
|
|
678
|
-
switch (errorCode) {
|
|
679
|
-
case "ClientException":
|
|
680
|
-
case "com.amazonaws.ecs#ClientException":
|
|
681
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
682
|
-
case "ClusterContainsContainerInstancesException":
|
|
683
|
-
case "com.amazonaws.ecs#ClusterContainsContainerInstancesException":
|
|
684
|
-
throw await de_ClusterContainsContainerInstancesExceptionRes(parsedOutput, context);
|
|
685
|
-
case "ClusterContainsServicesException":
|
|
686
|
-
case "com.amazonaws.ecs#ClusterContainsServicesException":
|
|
687
|
-
throw await de_ClusterContainsServicesExceptionRes(parsedOutput, context);
|
|
688
|
-
case "ClusterContainsTasksException":
|
|
689
|
-
case "com.amazonaws.ecs#ClusterContainsTasksException":
|
|
690
|
-
throw await de_ClusterContainsTasksExceptionRes(parsedOutput, context);
|
|
691
|
-
case "ClusterNotFoundException":
|
|
692
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
693
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
694
|
-
case "InvalidParameterException":
|
|
695
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
696
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
697
|
-
case "ServerException":
|
|
698
|
-
case "com.amazonaws.ecs#ServerException":
|
|
699
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
700
|
-
case "UpdateInProgressException":
|
|
701
|
-
case "com.amazonaws.ecs#UpdateInProgressException":
|
|
702
|
-
throw await de_UpdateInProgressExceptionRes(parsedOutput, context);
|
|
703
|
-
default:
|
|
704
|
-
const parsedBody = parsedOutput.body;
|
|
705
|
-
return throwDefaultError({
|
|
706
|
-
output,
|
|
707
|
-
parsedBody,
|
|
708
|
-
errorCode,
|
|
709
|
-
});
|
|
710
|
-
}
|
|
483
|
+
return response;
|
|
711
484
|
};
|
|
712
|
-
export const
|
|
485
|
+
export const de_DeregisterContainerInstanceCommand = async (output, context) => {
|
|
713
486
|
if (output.statusCode >= 300) {
|
|
714
|
-
return
|
|
487
|
+
return de_CommandError(output, context);
|
|
715
488
|
}
|
|
716
489
|
const data = await parseBody(output.body, context);
|
|
717
490
|
let contents = {};
|
|
718
|
-
contents =
|
|
491
|
+
contents = de_DeregisterContainerInstanceResponse(data, context);
|
|
719
492
|
const response = {
|
|
720
493
|
$metadata: deserializeMetadata(output),
|
|
721
494
|
...contents,
|
|
722
495
|
};
|
|
723
496
|
return response;
|
|
724
497
|
};
|
|
725
|
-
const
|
|
726
|
-
const parsedOutput = {
|
|
727
|
-
...output,
|
|
728
|
-
body: await parseErrorBody(output.body, context),
|
|
729
|
-
};
|
|
730
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
731
|
-
switch (errorCode) {
|
|
732
|
-
case "ClientException":
|
|
733
|
-
case "com.amazonaws.ecs#ClientException":
|
|
734
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
735
|
-
case "ClusterNotFoundException":
|
|
736
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
737
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
738
|
-
case "InvalidParameterException":
|
|
739
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
740
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
741
|
-
case "ServerException":
|
|
742
|
-
case "com.amazonaws.ecs#ServerException":
|
|
743
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
744
|
-
case "ServiceNotFoundException":
|
|
745
|
-
case "com.amazonaws.ecs#ServiceNotFoundException":
|
|
746
|
-
throw await de_ServiceNotFoundExceptionRes(parsedOutput, context);
|
|
747
|
-
default:
|
|
748
|
-
const parsedBody = parsedOutput.body;
|
|
749
|
-
return throwDefaultError({
|
|
750
|
-
output,
|
|
751
|
-
parsedBody,
|
|
752
|
-
errorCode,
|
|
753
|
-
});
|
|
754
|
-
}
|
|
755
|
-
};
|
|
756
|
-
export const de_DeleteTaskDefinitionsCommand = async (output, context) => {
|
|
498
|
+
export const de_DeregisterTaskDefinitionCommand = async (output, context) => {
|
|
757
499
|
if (output.statusCode >= 300) {
|
|
758
|
-
return
|
|
500
|
+
return de_CommandError(output, context);
|
|
759
501
|
}
|
|
760
502
|
const data = await parseBody(output.body, context);
|
|
761
503
|
let contents = {};
|
|
762
|
-
contents =
|
|
504
|
+
contents = de_DeregisterTaskDefinitionResponse(data, context);
|
|
763
505
|
const response = {
|
|
764
506
|
$metadata: deserializeMetadata(output),
|
|
765
507
|
...contents,
|
|
766
508
|
};
|
|
767
509
|
return response;
|
|
768
510
|
};
|
|
769
|
-
const
|
|
770
|
-
const parsedOutput = {
|
|
771
|
-
...output,
|
|
772
|
-
body: await parseErrorBody(output.body, context),
|
|
773
|
-
};
|
|
774
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
775
|
-
switch (errorCode) {
|
|
776
|
-
case "AccessDeniedException":
|
|
777
|
-
case "com.amazonaws.ecs#AccessDeniedException":
|
|
778
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
779
|
-
case "ClientException":
|
|
780
|
-
case "com.amazonaws.ecs#ClientException":
|
|
781
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
782
|
-
case "InvalidParameterException":
|
|
783
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
784
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
785
|
-
case "ServerException":
|
|
786
|
-
case "com.amazonaws.ecs#ServerException":
|
|
787
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
788
|
-
default:
|
|
789
|
-
const parsedBody = parsedOutput.body;
|
|
790
|
-
return throwDefaultError({
|
|
791
|
-
output,
|
|
792
|
-
parsedBody,
|
|
793
|
-
errorCode,
|
|
794
|
-
});
|
|
795
|
-
}
|
|
796
|
-
};
|
|
797
|
-
export const de_DeleteTaskSetCommand = async (output, context) => {
|
|
511
|
+
export const de_DescribeCapacityProvidersCommand = async (output, context) => {
|
|
798
512
|
if (output.statusCode >= 300) {
|
|
799
|
-
return
|
|
513
|
+
return de_CommandError(output, context);
|
|
800
514
|
}
|
|
801
515
|
const data = await parseBody(output.body, context);
|
|
802
516
|
let contents = {};
|
|
803
|
-
contents =
|
|
517
|
+
contents = _json(data);
|
|
804
518
|
const response = {
|
|
805
519
|
$metadata: deserializeMetadata(output),
|
|
806
520
|
...contents,
|
|
807
521
|
};
|
|
808
522
|
return response;
|
|
809
523
|
};
|
|
810
|
-
const
|
|
811
|
-
const parsedOutput = {
|
|
812
|
-
...output,
|
|
813
|
-
body: await parseErrorBody(output.body, context),
|
|
814
|
-
};
|
|
815
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
816
|
-
switch (errorCode) {
|
|
817
|
-
case "AccessDeniedException":
|
|
818
|
-
case "com.amazonaws.ecs#AccessDeniedException":
|
|
819
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
820
|
-
case "ClientException":
|
|
821
|
-
case "com.amazonaws.ecs#ClientException":
|
|
822
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
823
|
-
case "ClusterNotFoundException":
|
|
824
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
825
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
826
|
-
case "InvalidParameterException":
|
|
827
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
828
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
829
|
-
case "ServerException":
|
|
830
|
-
case "com.amazonaws.ecs#ServerException":
|
|
831
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
832
|
-
case "ServiceNotActiveException":
|
|
833
|
-
case "com.amazonaws.ecs#ServiceNotActiveException":
|
|
834
|
-
throw await de_ServiceNotActiveExceptionRes(parsedOutput, context);
|
|
835
|
-
case "ServiceNotFoundException":
|
|
836
|
-
case "com.amazonaws.ecs#ServiceNotFoundException":
|
|
837
|
-
throw await de_ServiceNotFoundExceptionRes(parsedOutput, context);
|
|
838
|
-
case "TaskSetNotFoundException":
|
|
839
|
-
case "com.amazonaws.ecs#TaskSetNotFoundException":
|
|
840
|
-
throw await de_TaskSetNotFoundExceptionRes(parsedOutput, context);
|
|
841
|
-
case "UnsupportedFeatureException":
|
|
842
|
-
case "com.amazonaws.ecs#UnsupportedFeatureException":
|
|
843
|
-
throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context);
|
|
844
|
-
default:
|
|
845
|
-
const parsedBody = parsedOutput.body;
|
|
846
|
-
return throwDefaultError({
|
|
847
|
-
output,
|
|
848
|
-
parsedBody,
|
|
849
|
-
errorCode,
|
|
850
|
-
});
|
|
851
|
-
}
|
|
852
|
-
};
|
|
853
|
-
export const de_DeregisterContainerInstanceCommand = async (output, context) => {
|
|
524
|
+
export const de_DescribeClustersCommand = async (output, context) => {
|
|
854
525
|
if (output.statusCode >= 300) {
|
|
855
|
-
return
|
|
526
|
+
return de_CommandError(output, context);
|
|
856
527
|
}
|
|
857
528
|
const data = await parseBody(output.body, context);
|
|
858
529
|
let contents = {};
|
|
859
|
-
contents =
|
|
530
|
+
contents = _json(data);
|
|
860
531
|
const response = {
|
|
861
532
|
$metadata: deserializeMetadata(output),
|
|
862
533
|
...contents,
|
|
863
534
|
};
|
|
864
535
|
return response;
|
|
865
536
|
};
|
|
866
|
-
const
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
body: await parseErrorBody(output.body, context),
|
|
870
|
-
};
|
|
871
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
872
|
-
switch (errorCode) {
|
|
873
|
-
case "ClientException":
|
|
874
|
-
case "com.amazonaws.ecs#ClientException":
|
|
875
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
876
|
-
case "ClusterNotFoundException":
|
|
877
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
878
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
879
|
-
case "InvalidParameterException":
|
|
880
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
881
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
882
|
-
case "ServerException":
|
|
883
|
-
case "com.amazonaws.ecs#ServerException":
|
|
884
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
885
|
-
default:
|
|
886
|
-
const parsedBody = parsedOutput.body;
|
|
887
|
-
return throwDefaultError({
|
|
888
|
-
output,
|
|
889
|
-
parsedBody,
|
|
890
|
-
errorCode,
|
|
891
|
-
});
|
|
537
|
+
export const de_DescribeContainerInstancesCommand = async (output, context) => {
|
|
538
|
+
if (output.statusCode >= 300) {
|
|
539
|
+
return de_CommandError(output, context);
|
|
892
540
|
}
|
|
541
|
+
const data = await parseBody(output.body, context);
|
|
542
|
+
let contents = {};
|
|
543
|
+
contents = de_DescribeContainerInstancesResponse(data, context);
|
|
544
|
+
const response = {
|
|
545
|
+
$metadata: deserializeMetadata(output),
|
|
546
|
+
...contents,
|
|
547
|
+
};
|
|
548
|
+
return response;
|
|
893
549
|
};
|
|
894
|
-
export const
|
|
550
|
+
export const de_DescribeServicesCommand = async (output, context) => {
|
|
895
551
|
if (output.statusCode >= 300) {
|
|
896
|
-
return
|
|
552
|
+
return de_CommandError(output, context);
|
|
897
553
|
}
|
|
898
554
|
const data = await parseBody(output.body, context);
|
|
899
555
|
let contents = {};
|
|
900
|
-
contents =
|
|
556
|
+
contents = de_DescribeServicesResponse(data, context);
|
|
901
557
|
const response = {
|
|
902
558
|
$metadata: deserializeMetadata(output),
|
|
903
559
|
...contents,
|
|
904
560
|
};
|
|
905
561
|
return response;
|
|
906
562
|
};
|
|
907
|
-
const
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
body: await parseErrorBody(output.body, context),
|
|
911
|
-
};
|
|
912
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
913
|
-
switch (errorCode) {
|
|
914
|
-
case "ClientException":
|
|
915
|
-
case "com.amazonaws.ecs#ClientException":
|
|
916
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
917
|
-
case "InvalidParameterException":
|
|
918
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
919
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
920
|
-
case "ServerException":
|
|
921
|
-
case "com.amazonaws.ecs#ServerException":
|
|
922
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
923
|
-
default:
|
|
924
|
-
const parsedBody = parsedOutput.body;
|
|
925
|
-
return throwDefaultError({
|
|
926
|
-
output,
|
|
927
|
-
parsedBody,
|
|
928
|
-
errorCode,
|
|
929
|
-
});
|
|
563
|
+
export const de_DescribeTaskDefinitionCommand = async (output, context) => {
|
|
564
|
+
if (output.statusCode >= 300) {
|
|
565
|
+
return de_CommandError(output, context);
|
|
930
566
|
}
|
|
567
|
+
const data = await parseBody(output.body, context);
|
|
568
|
+
let contents = {};
|
|
569
|
+
contents = de_DescribeTaskDefinitionResponse(data, context);
|
|
570
|
+
const response = {
|
|
571
|
+
$metadata: deserializeMetadata(output),
|
|
572
|
+
...contents,
|
|
573
|
+
};
|
|
574
|
+
return response;
|
|
931
575
|
};
|
|
932
|
-
export const
|
|
576
|
+
export const de_DescribeTasksCommand = async (output, context) => {
|
|
933
577
|
if (output.statusCode >= 300) {
|
|
934
|
-
return
|
|
578
|
+
return de_CommandError(output, context);
|
|
935
579
|
}
|
|
936
580
|
const data = await parseBody(output.body, context);
|
|
937
581
|
let contents = {};
|
|
938
|
-
contents =
|
|
582
|
+
contents = de_DescribeTasksResponse(data, context);
|
|
939
583
|
const response = {
|
|
940
584
|
$metadata: deserializeMetadata(output),
|
|
941
585
|
...contents,
|
|
942
586
|
};
|
|
943
587
|
return response;
|
|
944
588
|
};
|
|
945
|
-
const
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
body: await parseErrorBody(output.body, context),
|
|
949
|
-
};
|
|
950
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
951
|
-
switch (errorCode) {
|
|
952
|
-
case "ClientException":
|
|
953
|
-
case "com.amazonaws.ecs#ClientException":
|
|
954
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
955
|
-
case "InvalidParameterException":
|
|
956
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
957
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
958
|
-
case "ServerException":
|
|
959
|
-
case "com.amazonaws.ecs#ServerException":
|
|
960
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
961
|
-
default:
|
|
962
|
-
const parsedBody = parsedOutput.body;
|
|
963
|
-
return throwDefaultError({
|
|
964
|
-
output,
|
|
965
|
-
parsedBody,
|
|
966
|
-
errorCode,
|
|
967
|
-
});
|
|
589
|
+
export const de_DescribeTaskSetsCommand = async (output, context) => {
|
|
590
|
+
if (output.statusCode >= 300) {
|
|
591
|
+
return de_CommandError(output, context);
|
|
968
592
|
}
|
|
593
|
+
const data = await parseBody(output.body, context);
|
|
594
|
+
let contents = {};
|
|
595
|
+
contents = de_DescribeTaskSetsResponse(data, context);
|
|
596
|
+
const response = {
|
|
597
|
+
$metadata: deserializeMetadata(output),
|
|
598
|
+
...contents,
|
|
599
|
+
};
|
|
600
|
+
return response;
|
|
969
601
|
};
|
|
970
|
-
export const
|
|
602
|
+
export const de_DiscoverPollEndpointCommand = async (output, context) => {
|
|
971
603
|
if (output.statusCode >= 300) {
|
|
972
|
-
return
|
|
604
|
+
return de_CommandError(output, context);
|
|
973
605
|
}
|
|
974
606
|
const data = await parseBody(output.body, context);
|
|
975
607
|
let contents = {};
|
|
@@ -980,248 +612,74 @@ export const de_DescribeClustersCommand = async (output, context) => {
|
|
|
980
612
|
};
|
|
981
613
|
return response;
|
|
982
614
|
};
|
|
983
|
-
const
|
|
984
|
-
const parsedOutput = {
|
|
985
|
-
...output,
|
|
986
|
-
body: await parseErrorBody(output.body, context),
|
|
987
|
-
};
|
|
988
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
989
|
-
switch (errorCode) {
|
|
990
|
-
case "ClientException":
|
|
991
|
-
case "com.amazonaws.ecs#ClientException":
|
|
992
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
993
|
-
case "InvalidParameterException":
|
|
994
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
995
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
996
|
-
case "ServerException":
|
|
997
|
-
case "com.amazonaws.ecs#ServerException":
|
|
998
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
999
|
-
default:
|
|
1000
|
-
const parsedBody = parsedOutput.body;
|
|
1001
|
-
return throwDefaultError({
|
|
1002
|
-
output,
|
|
1003
|
-
parsedBody,
|
|
1004
|
-
errorCode,
|
|
1005
|
-
});
|
|
1006
|
-
}
|
|
1007
|
-
};
|
|
1008
|
-
export const de_DescribeContainerInstancesCommand = async (output, context) => {
|
|
615
|
+
export const de_ExecuteCommandCommand = async (output, context) => {
|
|
1009
616
|
if (output.statusCode >= 300) {
|
|
1010
|
-
return
|
|
617
|
+
return de_CommandError(output, context);
|
|
1011
618
|
}
|
|
1012
619
|
const data = await parseBody(output.body, context);
|
|
1013
620
|
let contents = {};
|
|
1014
|
-
contents =
|
|
621
|
+
contents = _json(data);
|
|
1015
622
|
const response = {
|
|
1016
623
|
$metadata: deserializeMetadata(output),
|
|
1017
624
|
...contents,
|
|
1018
625
|
};
|
|
1019
626
|
return response;
|
|
1020
627
|
};
|
|
1021
|
-
const
|
|
1022
|
-
const parsedOutput = {
|
|
1023
|
-
...output,
|
|
1024
|
-
body: await parseErrorBody(output.body, context),
|
|
1025
|
-
};
|
|
1026
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1027
|
-
switch (errorCode) {
|
|
1028
|
-
case "ClientException":
|
|
1029
|
-
case "com.amazonaws.ecs#ClientException":
|
|
1030
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1031
|
-
case "ClusterNotFoundException":
|
|
1032
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
1033
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
1034
|
-
case "InvalidParameterException":
|
|
1035
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
1036
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1037
|
-
case "ServerException":
|
|
1038
|
-
case "com.amazonaws.ecs#ServerException":
|
|
1039
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1040
|
-
default:
|
|
1041
|
-
const parsedBody = parsedOutput.body;
|
|
1042
|
-
return throwDefaultError({
|
|
1043
|
-
output,
|
|
1044
|
-
parsedBody,
|
|
1045
|
-
errorCode,
|
|
1046
|
-
});
|
|
1047
|
-
}
|
|
1048
|
-
};
|
|
1049
|
-
export const de_DescribeServicesCommand = async (output, context) => {
|
|
628
|
+
export const de_GetTaskProtectionCommand = async (output, context) => {
|
|
1050
629
|
if (output.statusCode >= 300) {
|
|
1051
|
-
return
|
|
630
|
+
return de_CommandError(output, context);
|
|
1052
631
|
}
|
|
1053
632
|
const data = await parseBody(output.body, context);
|
|
1054
633
|
let contents = {};
|
|
1055
|
-
contents =
|
|
634
|
+
contents = de_GetTaskProtectionResponse(data, context);
|
|
1056
635
|
const response = {
|
|
1057
636
|
$metadata: deserializeMetadata(output),
|
|
1058
637
|
...contents,
|
|
1059
638
|
};
|
|
1060
639
|
return response;
|
|
1061
640
|
};
|
|
1062
|
-
const
|
|
1063
|
-
const parsedOutput = {
|
|
1064
|
-
...output,
|
|
1065
|
-
body: await parseErrorBody(output.body, context),
|
|
1066
|
-
};
|
|
1067
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1068
|
-
switch (errorCode) {
|
|
1069
|
-
case "ClientException":
|
|
1070
|
-
case "com.amazonaws.ecs#ClientException":
|
|
1071
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1072
|
-
case "ClusterNotFoundException":
|
|
1073
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
1074
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
1075
|
-
case "InvalidParameterException":
|
|
1076
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
1077
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1078
|
-
case "ServerException":
|
|
1079
|
-
case "com.amazonaws.ecs#ServerException":
|
|
1080
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1081
|
-
default:
|
|
1082
|
-
const parsedBody = parsedOutput.body;
|
|
1083
|
-
return throwDefaultError({
|
|
1084
|
-
output,
|
|
1085
|
-
parsedBody,
|
|
1086
|
-
errorCode,
|
|
1087
|
-
});
|
|
1088
|
-
}
|
|
1089
|
-
};
|
|
1090
|
-
export const de_DescribeTaskDefinitionCommand = async (output, context) => {
|
|
641
|
+
export const de_ListAccountSettingsCommand = async (output, context) => {
|
|
1091
642
|
if (output.statusCode >= 300) {
|
|
1092
|
-
return
|
|
643
|
+
return de_CommandError(output, context);
|
|
1093
644
|
}
|
|
1094
645
|
const data = await parseBody(output.body, context);
|
|
1095
646
|
let contents = {};
|
|
1096
|
-
contents =
|
|
647
|
+
contents = _json(data);
|
|
1097
648
|
const response = {
|
|
1098
649
|
$metadata: deserializeMetadata(output),
|
|
1099
650
|
...contents,
|
|
1100
651
|
};
|
|
1101
652
|
return response;
|
|
1102
653
|
};
|
|
1103
|
-
const
|
|
1104
|
-
const parsedOutput = {
|
|
1105
|
-
...output,
|
|
1106
|
-
body: await parseErrorBody(output.body, context),
|
|
1107
|
-
};
|
|
1108
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1109
|
-
switch (errorCode) {
|
|
1110
|
-
case "ClientException":
|
|
1111
|
-
case "com.amazonaws.ecs#ClientException":
|
|
1112
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1113
|
-
case "InvalidParameterException":
|
|
1114
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
1115
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1116
|
-
case "ServerException":
|
|
1117
|
-
case "com.amazonaws.ecs#ServerException":
|
|
1118
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1119
|
-
default:
|
|
1120
|
-
const parsedBody = parsedOutput.body;
|
|
1121
|
-
return throwDefaultError({
|
|
1122
|
-
output,
|
|
1123
|
-
parsedBody,
|
|
1124
|
-
errorCode,
|
|
1125
|
-
});
|
|
1126
|
-
}
|
|
1127
|
-
};
|
|
1128
|
-
export const de_DescribeTasksCommand = async (output, context) => {
|
|
654
|
+
export const de_ListAttributesCommand = async (output, context) => {
|
|
1129
655
|
if (output.statusCode >= 300) {
|
|
1130
|
-
return
|
|
656
|
+
return de_CommandError(output, context);
|
|
1131
657
|
}
|
|
1132
658
|
const data = await parseBody(output.body, context);
|
|
1133
659
|
let contents = {};
|
|
1134
|
-
contents =
|
|
660
|
+
contents = _json(data);
|
|
1135
661
|
const response = {
|
|
1136
662
|
$metadata: deserializeMetadata(output),
|
|
1137
663
|
...contents,
|
|
1138
664
|
};
|
|
1139
665
|
return response;
|
|
1140
666
|
};
|
|
1141
|
-
const
|
|
1142
|
-
const parsedOutput = {
|
|
1143
|
-
...output,
|
|
1144
|
-
body: await parseErrorBody(output.body, context),
|
|
1145
|
-
};
|
|
1146
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1147
|
-
switch (errorCode) {
|
|
1148
|
-
case "ClientException":
|
|
1149
|
-
case "com.amazonaws.ecs#ClientException":
|
|
1150
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1151
|
-
case "ClusterNotFoundException":
|
|
1152
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
1153
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
1154
|
-
case "InvalidParameterException":
|
|
1155
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
1156
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1157
|
-
case "ServerException":
|
|
1158
|
-
case "com.amazonaws.ecs#ServerException":
|
|
1159
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1160
|
-
default:
|
|
1161
|
-
const parsedBody = parsedOutput.body;
|
|
1162
|
-
return throwDefaultError({
|
|
1163
|
-
output,
|
|
1164
|
-
parsedBody,
|
|
1165
|
-
errorCode,
|
|
1166
|
-
});
|
|
1167
|
-
}
|
|
1168
|
-
};
|
|
1169
|
-
export const de_DescribeTaskSetsCommand = async (output, context) => {
|
|
667
|
+
export const de_ListClustersCommand = async (output, context) => {
|
|
1170
668
|
if (output.statusCode >= 300) {
|
|
1171
|
-
return
|
|
669
|
+
return de_CommandError(output, context);
|
|
1172
670
|
}
|
|
1173
671
|
const data = await parseBody(output.body, context);
|
|
1174
672
|
let contents = {};
|
|
1175
|
-
contents =
|
|
673
|
+
contents = _json(data);
|
|
1176
674
|
const response = {
|
|
1177
675
|
$metadata: deserializeMetadata(output),
|
|
1178
676
|
...contents,
|
|
1179
677
|
};
|
|
1180
678
|
return response;
|
|
1181
679
|
};
|
|
1182
|
-
const
|
|
1183
|
-
const parsedOutput = {
|
|
1184
|
-
...output,
|
|
1185
|
-
body: await parseErrorBody(output.body, context),
|
|
1186
|
-
};
|
|
1187
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1188
|
-
switch (errorCode) {
|
|
1189
|
-
case "AccessDeniedException":
|
|
1190
|
-
case "com.amazonaws.ecs#AccessDeniedException":
|
|
1191
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1192
|
-
case "ClientException":
|
|
1193
|
-
case "com.amazonaws.ecs#ClientException":
|
|
1194
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1195
|
-
case "ClusterNotFoundException":
|
|
1196
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
1197
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
1198
|
-
case "InvalidParameterException":
|
|
1199
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
1200
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1201
|
-
case "ServerException":
|
|
1202
|
-
case "com.amazonaws.ecs#ServerException":
|
|
1203
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1204
|
-
case "ServiceNotActiveException":
|
|
1205
|
-
case "com.amazonaws.ecs#ServiceNotActiveException":
|
|
1206
|
-
throw await de_ServiceNotActiveExceptionRes(parsedOutput, context);
|
|
1207
|
-
case "ServiceNotFoundException":
|
|
1208
|
-
case "com.amazonaws.ecs#ServiceNotFoundException":
|
|
1209
|
-
throw await de_ServiceNotFoundExceptionRes(parsedOutput, context);
|
|
1210
|
-
case "UnsupportedFeatureException":
|
|
1211
|
-
case "com.amazonaws.ecs#UnsupportedFeatureException":
|
|
1212
|
-
throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context);
|
|
1213
|
-
default:
|
|
1214
|
-
const parsedBody = parsedOutput.body;
|
|
1215
|
-
return throwDefaultError({
|
|
1216
|
-
output,
|
|
1217
|
-
parsedBody,
|
|
1218
|
-
errorCode,
|
|
1219
|
-
});
|
|
1220
|
-
}
|
|
1221
|
-
};
|
|
1222
|
-
export const de_DiscoverPollEndpointCommand = async (output, context) => {
|
|
680
|
+
export const de_ListContainerInstancesCommand = async (output, context) => {
|
|
1223
681
|
if (output.statusCode >= 300) {
|
|
1224
|
-
return
|
|
682
|
+
return de_CommandError(output, context);
|
|
1225
683
|
}
|
|
1226
684
|
const data = await parseBody(output.body, context);
|
|
1227
685
|
let contents = {};
|
|
@@ -1232,31 +690,9 @@ export const de_DiscoverPollEndpointCommand = async (output, context) => {
|
|
|
1232
690
|
};
|
|
1233
691
|
return response;
|
|
1234
692
|
};
|
|
1235
|
-
const
|
|
1236
|
-
const parsedOutput = {
|
|
1237
|
-
...output,
|
|
1238
|
-
body: await parseErrorBody(output.body, context),
|
|
1239
|
-
};
|
|
1240
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1241
|
-
switch (errorCode) {
|
|
1242
|
-
case "ClientException":
|
|
1243
|
-
case "com.amazonaws.ecs#ClientException":
|
|
1244
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1245
|
-
case "ServerException":
|
|
1246
|
-
case "com.amazonaws.ecs#ServerException":
|
|
1247
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1248
|
-
default:
|
|
1249
|
-
const parsedBody = parsedOutput.body;
|
|
1250
|
-
return throwDefaultError({
|
|
1251
|
-
output,
|
|
1252
|
-
parsedBody,
|
|
1253
|
-
errorCode,
|
|
1254
|
-
});
|
|
1255
|
-
}
|
|
1256
|
-
};
|
|
1257
|
-
export const de_ExecuteCommandCommand = async (output, context) => {
|
|
693
|
+
export const de_ListServicesCommand = async (output, context) => {
|
|
1258
694
|
if (output.statusCode >= 300) {
|
|
1259
|
-
return
|
|
695
|
+
return de_CommandError(output, context);
|
|
1260
696
|
}
|
|
1261
697
|
const data = await parseBody(output.body, context);
|
|
1262
698
|
let contents = {};
|
|
@@ -1267,93 +703,22 @@ export const de_ExecuteCommandCommand = async (output, context) => {
|
|
|
1267
703
|
};
|
|
1268
704
|
return response;
|
|
1269
705
|
};
|
|
1270
|
-
const
|
|
1271
|
-
const parsedOutput = {
|
|
1272
|
-
...output,
|
|
1273
|
-
body: await parseErrorBody(output.body, context),
|
|
1274
|
-
};
|
|
1275
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1276
|
-
switch (errorCode) {
|
|
1277
|
-
case "AccessDeniedException":
|
|
1278
|
-
case "com.amazonaws.ecs#AccessDeniedException":
|
|
1279
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1280
|
-
case "ClientException":
|
|
1281
|
-
case "com.amazonaws.ecs#ClientException":
|
|
1282
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1283
|
-
case "ClusterNotFoundException":
|
|
1284
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
1285
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
1286
|
-
case "InvalidParameterException":
|
|
1287
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
1288
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1289
|
-
case "ServerException":
|
|
1290
|
-
case "com.amazonaws.ecs#ServerException":
|
|
1291
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1292
|
-
case "TargetNotConnectedException":
|
|
1293
|
-
case "com.amazonaws.ecs#TargetNotConnectedException":
|
|
1294
|
-
throw await de_TargetNotConnectedExceptionRes(parsedOutput, context);
|
|
1295
|
-
default:
|
|
1296
|
-
const parsedBody = parsedOutput.body;
|
|
1297
|
-
return throwDefaultError({
|
|
1298
|
-
output,
|
|
1299
|
-
parsedBody,
|
|
1300
|
-
errorCode,
|
|
1301
|
-
});
|
|
1302
|
-
}
|
|
1303
|
-
};
|
|
1304
|
-
export const de_GetTaskProtectionCommand = async (output, context) => {
|
|
706
|
+
export const de_ListServicesByNamespaceCommand = async (output, context) => {
|
|
1305
707
|
if (output.statusCode >= 300) {
|
|
1306
|
-
return
|
|
708
|
+
return de_CommandError(output, context);
|
|
1307
709
|
}
|
|
1308
710
|
const data = await parseBody(output.body, context);
|
|
1309
711
|
let contents = {};
|
|
1310
|
-
contents =
|
|
712
|
+
contents = _json(data);
|
|
1311
713
|
const response = {
|
|
1312
714
|
$metadata: deserializeMetadata(output),
|
|
1313
715
|
...contents,
|
|
1314
716
|
};
|
|
1315
717
|
return response;
|
|
1316
718
|
};
|
|
1317
|
-
const
|
|
1318
|
-
const parsedOutput = {
|
|
1319
|
-
...output,
|
|
1320
|
-
body: await parseErrorBody(output.body, context),
|
|
1321
|
-
};
|
|
1322
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1323
|
-
switch (errorCode) {
|
|
1324
|
-
case "AccessDeniedException":
|
|
1325
|
-
case "com.amazonaws.ecs#AccessDeniedException":
|
|
1326
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1327
|
-
case "ClientException":
|
|
1328
|
-
case "com.amazonaws.ecs#ClientException":
|
|
1329
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1330
|
-
case "ClusterNotFoundException":
|
|
1331
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
1332
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
1333
|
-
case "InvalidParameterException":
|
|
1334
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
1335
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1336
|
-
case "ResourceNotFoundException":
|
|
1337
|
-
case "com.amazonaws.ecs#ResourceNotFoundException":
|
|
1338
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1339
|
-
case "ServerException":
|
|
1340
|
-
case "com.amazonaws.ecs#ServerException":
|
|
1341
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1342
|
-
case "UnsupportedFeatureException":
|
|
1343
|
-
case "com.amazonaws.ecs#UnsupportedFeatureException":
|
|
1344
|
-
throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context);
|
|
1345
|
-
default:
|
|
1346
|
-
const parsedBody = parsedOutput.body;
|
|
1347
|
-
return throwDefaultError({
|
|
1348
|
-
output,
|
|
1349
|
-
parsedBody,
|
|
1350
|
-
errorCode,
|
|
1351
|
-
});
|
|
1352
|
-
}
|
|
1353
|
-
};
|
|
1354
|
-
export const de_ListAccountSettingsCommand = async (output, context) => {
|
|
719
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1355
720
|
if (output.statusCode >= 300) {
|
|
1356
|
-
return
|
|
721
|
+
return de_CommandError(output, context);
|
|
1357
722
|
}
|
|
1358
723
|
const data = await parseBody(output.body, context);
|
|
1359
724
|
let contents = {};
|
|
@@ -1364,34 +729,9 @@ export const de_ListAccountSettingsCommand = async (output, context) => {
|
|
|
1364
729
|
};
|
|
1365
730
|
return response;
|
|
1366
731
|
};
|
|
1367
|
-
const
|
|
1368
|
-
const parsedOutput = {
|
|
1369
|
-
...output,
|
|
1370
|
-
body: await parseErrorBody(output.body, context),
|
|
1371
|
-
};
|
|
1372
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1373
|
-
switch (errorCode) {
|
|
1374
|
-
case "ClientException":
|
|
1375
|
-
case "com.amazonaws.ecs#ClientException":
|
|
1376
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1377
|
-
case "InvalidParameterException":
|
|
1378
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
1379
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1380
|
-
case "ServerException":
|
|
1381
|
-
case "com.amazonaws.ecs#ServerException":
|
|
1382
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1383
|
-
default:
|
|
1384
|
-
const parsedBody = parsedOutput.body;
|
|
1385
|
-
return throwDefaultError({
|
|
1386
|
-
output,
|
|
1387
|
-
parsedBody,
|
|
1388
|
-
errorCode,
|
|
1389
|
-
});
|
|
1390
|
-
}
|
|
1391
|
-
};
|
|
1392
|
-
export const de_ListAttributesCommand = async (output, context) => {
|
|
732
|
+
export const de_ListTaskDefinitionFamiliesCommand = async (output, context) => {
|
|
1393
733
|
if (output.statusCode >= 300) {
|
|
1394
|
-
return
|
|
734
|
+
return de_CommandError(output, context);
|
|
1395
735
|
}
|
|
1396
736
|
const data = await parseBody(output.body, context);
|
|
1397
737
|
let contents = {};
|
|
@@ -1402,31 +742,9 @@ export const de_ListAttributesCommand = async (output, context) => {
|
|
|
1402
742
|
};
|
|
1403
743
|
return response;
|
|
1404
744
|
};
|
|
1405
|
-
const
|
|
1406
|
-
const parsedOutput = {
|
|
1407
|
-
...output,
|
|
1408
|
-
body: await parseErrorBody(output.body, context),
|
|
1409
|
-
};
|
|
1410
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1411
|
-
switch (errorCode) {
|
|
1412
|
-
case "ClusterNotFoundException":
|
|
1413
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
1414
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
1415
|
-
case "InvalidParameterException":
|
|
1416
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
1417
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1418
|
-
default:
|
|
1419
|
-
const parsedBody = parsedOutput.body;
|
|
1420
|
-
return throwDefaultError({
|
|
1421
|
-
output,
|
|
1422
|
-
parsedBody,
|
|
1423
|
-
errorCode,
|
|
1424
|
-
});
|
|
1425
|
-
}
|
|
1426
|
-
};
|
|
1427
|
-
export const de_ListClustersCommand = async (output, context) => {
|
|
745
|
+
export const de_ListTaskDefinitionsCommand = async (output, context) => {
|
|
1428
746
|
if (output.statusCode >= 300) {
|
|
1429
|
-
return
|
|
747
|
+
return de_CommandError(output, context);
|
|
1430
748
|
}
|
|
1431
749
|
const data = await parseBody(output.body, context);
|
|
1432
750
|
let contents = {};
|
|
@@ -1437,34 +755,9 @@ export const de_ListClustersCommand = async (output, context) => {
|
|
|
1437
755
|
};
|
|
1438
756
|
return response;
|
|
1439
757
|
};
|
|
1440
|
-
const
|
|
1441
|
-
const parsedOutput = {
|
|
1442
|
-
...output,
|
|
1443
|
-
body: await parseErrorBody(output.body, context),
|
|
1444
|
-
};
|
|
1445
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1446
|
-
switch (errorCode) {
|
|
1447
|
-
case "ClientException":
|
|
1448
|
-
case "com.amazonaws.ecs#ClientException":
|
|
1449
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1450
|
-
case "InvalidParameterException":
|
|
1451
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
1452
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1453
|
-
case "ServerException":
|
|
1454
|
-
case "com.amazonaws.ecs#ServerException":
|
|
1455
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1456
|
-
default:
|
|
1457
|
-
const parsedBody = parsedOutput.body;
|
|
1458
|
-
return throwDefaultError({
|
|
1459
|
-
output,
|
|
1460
|
-
parsedBody,
|
|
1461
|
-
errorCode,
|
|
1462
|
-
});
|
|
1463
|
-
}
|
|
1464
|
-
};
|
|
1465
|
-
export const de_ListContainerInstancesCommand = async (output, context) => {
|
|
758
|
+
export const de_ListTasksCommand = async (output, context) => {
|
|
1466
759
|
if (output.statusCode >= 300) {
|
|
1467
|
-
return
|
|
760
|
+
return de_CommandError(output, context);
|
|
1468
761
|
}
|
|
1469
762
|
const data = await parseBody(output.body, context);
|
|
1470
763
|
let contents = {};
|
|
@@ -1475,37 +768,9 @@ export const de_ListContainerInstancesCommand = async (output, context) => {
|
|
|
1475
768
|
};
|
|
1476
769
|
return response;
|
|
1477
770
|
};
|
|
1478
|
-
const
|
|
1479
|
-
const parsedOutput = {
|
|
1480
|
-
...output,
|
|
1481
|
-
body: await parseErrorBody(output.body, context),
|
|
1482
|
-
};
|
|
1483
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1484
|
-
switch (errorCode) {
|
|
1485
|
-
case "ClientException":
|
|
1486
|
-
case "com.amazonaws.ecs#ClientException":
|
|
1487
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1488
|
-
case "ClusterNotFoundException":
|
|
1489
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
1490
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
1491
|
-
case "InvalidParameterException":
|
|
1492
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
1493
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1494
|
-
case "ServerException":
|
|
1495
|
-
case "com.amazonaws.ecs#ServerException":
|
|
1496
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1497
|
-
default:
|
|
1498
|
-
const parsedBody = parsedOutput.body;
|
|
1499
|
-
return throwDefaultError({
|
|
1500
|
-
output,
|
|
1501
|
-
parsedBody,
|
|
1502
|
-
errorCode,
|
|
1503
|
-
});
|
|
1504
|
-
}
|
|
1505
|
-
};
|
|
1506
|
-
export const de_ListServicesCommand = async (output, context) => {
|
|
771
|
+
export const de_PutAccountSettingCommand = async (output, context) => {
|
|
1507
772
|
if (output.statusCode >= 300) {
|
|
1508
|
-
return
|
|
773
|
+
return de_CommandError(output, context);
|
|
1509
774
|
}
|
|
1510
775
|
const data = await parseBody(output.body, context);
|
|
1511
776
|
let contents = {};
|
|
@@ -1516,37 +781,9 @@ export const de_ListServicesCommand = async (output, context) => {
|
|
|
1516
781
|
};
|
|
1517
782
|
return response;
|
|
1518
783
|
};
|
|
1519
|
-
const
|
|
1520
|
-
const parsedOutput = {
|
|
1521
|
-
...output,
|
|
1522
|
-
body: await parseErrorBody(output.body, context),
|
|
1523
|
-
};
|
|
1524
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1525
|
-
switch (errorCode) {
|
|
1526
|
-
case "ClientException":
|
|
1527
|
-
case "com.amazonaws.ecs#ClientException":
|
|
1528
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1529
|
-
case "ClusterNotFoundException":
|
|
1530
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
1531
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
1532
|
-
case "InvalidParameterException":
|
|
1533
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
1534
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1535
|
-
case "ServerException":
|
|
1536
|
-
case "com.amazonaws.ecs#ServerException":
|
|
1537
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1538
|
-
default:
|
|
1539
|
-
const parsedBody = parsedOutput.body;
|
|
1540
|
-
return throwDefaultError({
|
|
1541
|
-
output,
|
|
1542
|
-
parsedBody,
|
|
1543
|
-
errorCode,
|
|
1544
|
-
});
|
|
1545
|
-
}
|
|
1546
|
-
};
|
|
1547
|
-
export const de_ListServicesByNamespaceCommand = async (output, context) => {
|
|
784
|
+
export const de_PutAccountSettingDefaultCommand = async (output, context) => {
|
|
1548
785
|
if (output.statusCode >= 300) {
|
|
1549
|
-
return
|
|
786
|
+
return de_CommandError(output, context);
|
|
1550
787
|
}
|
|
1551
788
|
const data = await parseBody(output.body, context);
|
|
1552
789
|
let contents = {};
|
|
@@ -1557,37 +794,9 @@ export const de_ListServicesByNamespaceCommand = async (output, context) => {
|
|
|
1557
794
|
};
|
|
1558
795
|
return response;
|
|
1559
796
|
};
|
|
1560
|
-
const
|
|
1561
|
-
const parsedOutput = {
|
|
1562
|
-
...output,
|
|
1563
|
-
body: await parseErrorBody(output.body, context),
|
|
1564
|
-
};
|
|
1565
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1566
|
-
switch (errorCode) {
|
|
1567
|
-
case "ClientException":
|
|
1568
|
-
case "com.amazonaws.ecs#ClientException":
|
|
1569
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1570
|
-
case "InvalidParameterException":
|
|
1571
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
1572
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1573
|
-
case "NamespaceNotFoundException":
|
|
1574
|
-
case "com.amazonaws.ecs#NamespaceNotFoundException":
|
|
1575
|
-
throw await de_NamespaceNotFoundExceptionRes(parsedOutput, context);
|
|
1576
|
-
case "ServerException":
|
|
1577
|
-
case "com.amazonaws.ecs#ServerException":
|
|
1578
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1579
|
-
default:
|
|
1580
|
-
const parsedBody = parsedOutput.body;
|
|
1581
|
-
return throwDefaultError({
|
|
1582
|
-
output,
|
|
1583
|
-
parsedBody,
|
|
1584
|
-
errorCode,
|
|
1585
|
-
});
|
|
1586
|
-
}
|
|
1587
|
-
};
|
|
1588
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
797
|
+
export const de_PutAttributesCommand = async (output, context) => {
|
|
1589
798
|
if (output.statusCode >= 300) {
|
|
1590
|
-
return
|
|
799
|
+
return de_CommandError(output, context);
|
|
1591
800
|
}
|
|
1592
801
|
const data = await parseBody(output.body, context);
|
|
1593
802
|
let contents = {};
|
|
@@ -1598,37 +807,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1598
807
|
};
|
|
1599
808
|
return response;
|
|
1600
809
|
};
|
|
1601
|
-
const
|
|
1602
|
-
const parsedOutput = {
|
|
1603
|
-
...output,
|
|
1604
|
-
body: await parseErrorBody(output.body, context),
|
|
1605
|
-
};
|
|
1606
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1607
|
-
switch (errorCode) {
|
|
1608
|
-
case "ClientException":
|
|
1609
|
-
case "com.amazonaws.ecs#ClientException":
|
|
1610
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1611
|
-
case "ClusterNotFoundException":
|
|
1612
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
1613
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
1614
|
-
case "InvalidParameterException":
|
|
1615
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
1616
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1617
|
-
case "ServerException":
|
|
1618
|
-
case "com.amazonaws.ecs#ServerException":
|
|
1619
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1620
|
-
default:
|
|
1621
|
-
const parsedBody = parsedOutput.body;
|
|
1622
|
-
return throwDefaultError({
|
|
1623
|
-
output,
|
|
1624
|
-
parsedBody,
|
|
1625
|
-
errorCode,
|
|
1626
|
-
});
|
|
1627
|
-
}
|
|
1628
|
-
};
|
|
1629
|
-
export const de_ListTaskDefinitionFamiliesCommand = async (output, context) => {
|
|
810
|
+
export const de_PutClusterCapacityProvidersCommand = async (output, context) => {
|
|
1630
811
|
if (output.statusCode >= 300) {
|
|
1631
|
-
return
|
|
812
|
+
return de_CommandError(output, context);
|
|
1632
813
|
}
|
|
1633
814
|
const data = await parseBody(output.body, context);
|
|
1634
815
|
let contents = {};
|
|
@@ -1639,318 +820,22 @@ export const de_ListTaskDefinitionFamiliesCommand = async (output, context) => {
|
|
|
1639
820
|
};
|
|
1640
821
|
return response;
|
|
1641
822
|
};
|
|
1642
|
-
const
|
|
1643
|
-
const parsedOutput = {
|
|
1644
|
-
...output,
|
|
1645
|
-
body: await parseErrorBody(output.body, context),
|
|
1646
|
-
};
|
|
1647
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1648
|
-
switch (errorCode) {
|
|
1649
|
-
case "ClientException":
|
|
1650
|
-
case "com.amazonaws.ecs#ClientException":
|
|
1651
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1652
|
-
case "InvalidParameterException":
|
|
1653
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
1654
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1655
|
-
case "ServerException":
|
|
1656
|
-
case "com.amazonaws.ecs#ServerException":
|
|
1657
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1658
|
-
default:
|
|
1659
|
-
const parsedBody = parsedOutput.body;
|
|
1660
|
-
return throwDefaultError({
|
|
1661
|
-
output,
|
|
1662
|
-
parsedBody,
|
|
1663
|
-
errorCode,
|
|
1664
|
-
});
|
|
1665
|
-
}
|
|
1666
|
-
};
|
|
1667
|
-
export const de_ListTaskDefinitionsCommand = async (output, context) => {
|
|
823
|
+
export const de_RegisterContainerInstanceCommand = async (output, context) => {
|
|
1668
824
|
if (output.statusCode >= 300) {
|
|
1669
|
-
return
|
|
825
|
+
return de_CommandError(output, context);
|
|
1670
826
|
}
|
|
1671
827
|
const data = await parseBody(output.body, context);
|
|
1672
828
|
let contents = {};
|
|
1673
|
-
contents =
|
|
829
|
+
contents = de_RegisterContainerInstanceResponse(data, context);
|
|
1674
830
|
const response = {
|
|
1675
831
|
$metadata: deserializeMetadata(output),
|
|
1676
832
|
...contents,
|
|
1677
833
|
};
|
|
1678
834
|
return response;
|
|
1679
835
|
};
|
|
1680
|
-
const de_ListTaskDefinitionsCommandError = async (output, context) => {
|
|
1681
|
-
const parsedOutput = {
|
|
1682
|
-
...output,
|
|
1683
|
-
body: await parseErrorBody(output.body, context),
|
|
1684
|
-
};
|
|
1685
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1686
|
-
switch (errorCode) {
|
|
1687
|
-
case "ClientException":
|
|
1688
|
-
case "com.amazonaws.ecs#ClientException":
|
|
1689
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1690
|
-
case "InvalidParameterException":
|
|
1691
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
1692
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1693
|
-
case "ServerException":
|
|
1694
|
-
case "com.amazonaws.ecs#ServerException":
|
|
1695
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1696
|
-
default:
|
|
1697
|
-
const parsedBody = parsedOutput.body;
|
|
1698
|
-
return throwDefaultError({
|
|
1699
|
-
output,
|
|
1700
|
-
parsedBody,
|
|
1701
|
-
errorCode,
|
|
1702
|
-
});
|
|
1703
|
-
}
|
|
1704
|
-
};
|
|
1705
|
-
export const de_ListTasksCommand = async (output, context) => {
|
|
1706
|
-
if (output.statusCode >= 300) {
|
|
1707
|
-
return de_ListTasksCommandError(output, context);
|
|
1708
|
-
}
|
|
1709
|
-
const data = await parseBody(output.body, context);
|
|
1710
|
-
let contents = {};
|
|
1711
|
-
contents = _json(data);
|
|
1712
|
-
const response = {
|
|
1713
|
-
$metadata: deserializeMetadata(output),
|
|
1714
|
-
...contents,
|
|
1715
|
-
};
|
|
1716
|
-
return response;
|
|
1717
|
-
};
|
|
1718
|
-
const de_ListTasksCommandError = async (output, context) => {
|
|
1719
|
-
const parsedOutput = {
|
|
1720
|
-
...output,
|
|
1721
|
-
body: await parseErrorBody(output.body, context),
|
|
1722
|
-
};
|
|
1723
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1724
|
-
switch (errorCode) {
|
|
1725
|
-
case "ClientException":
|
|
1726
|
-
case "com.amazonaws.ecs#ClientException":
|
|
1727
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1728
|
-
case "ClusterNotFoundException":
|
|
1729
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
1730
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
1731
|
-
case "InvalidParameterException":
|
|
1732
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
1733
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1734
|
-
case "ServerException":
|
|
1735
|
-
case "com.amazonaws.ecs#ServerException":
|
|
1736
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1737
|
-
case "ServiceNotFoundException":
|
|
1738
|
-
case "com.amazonaws.ecs#ServiceNotFoundException":
|
|
1739
|
-
throw await de_ServiceNotFoundExceptionRes(parsedOutput, context);
|
|
1740
|
-
default:
|
|
1741
|
-
const parsedBody = parsedOutput.body;
|
|
1742
|
-
return throwDefaultError({
|
|
1743
|
-
output,
|
|
1744
|
-
parsedBody,
|
|
1745
|
-
errorCode,
|
|
1746
|
-
});
|
|
1747
|
-
}
|
|
1748
|
-
};
|
|
1749
|
-
export const de_PutAccountSettingCommand = async (output, context) => {
|
|
1750
|
-
if (output.statusCode >= 300) {
|
|
1751
|
-
return de_PutAccountSettingCommandError(output, context);
|
|
1752
|
-
}
|
|
1753
|
-
const data = await parseBody(output.body, context);
|
|
1754
|
-
let contents = {};
|
|
1755
|
-
contents = _json(data);
|
|
1756
|
-
const response = {
|
|
1757
|
-
$metadata: deserializeMetadata(output),
|
|
1758
|
-
...contents,
|
|
1759
|
-
};
|
|
1760
|
-
return response;
|
|
1761
|
-
};
|
|
1762
|
-
const de_PutAccountSettingCommandError = async (output, context) => {
|
|
1763
|
-
const parsedOutput = {
|
|
1764
|
-
...output,
|
|
1765
|
-
body: await parseErrorBody(output.body, context),
|
|
1766
|
-
};
|
|
1767
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1768
|
-
switch (errorCode) {
|
|
1769
|
-
case "ClientException":
|
|
1770
|
-
case "com.amazonaws.ecs#ClientException":
|
|
1771
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1772
|
-
case "InvalidParameterException":
|
|
1773
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
1774
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1775
|
-
case "ServerException":
|
|
1776
|
-
case "com.amazonaws.ecs#ServerException":
|
|
1777
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1778
|
-
default:
|
|
1779
|
-
const parsedBody = parsedOutput.body;
|
|
1780
|
-
return throwDefaultError({
|
|
1781
|
-
output,
|
|
1782
|
-
parsedBody,
|
|
1783
|
-
errorCode,
|
|
1784
|
-
});
|
|
1785
|
-
}
|
|
1786
|
-
};
|
|
1787
|
-
export const de_PutAccountSettingDefaultCommand = async (output, context) => {
|
|
1788
|
-
if (output.statusCode >= 300) {
|
|
1789
|
-
return de_PutAccountSettingDefaultCommandError(output, context);
|
|
1790
|
-
}
|
|
1791
|
-
const data = await parseBody(output.body, context);
|
|
1792
|
-
let contents = {};
|
|
1793
|
-
contents = _json(data);
|
|
1794
|
-
const response = {
|
|
1795
|
-
$metadata: deserializeMetadata(output),
|
|
1796
|
-
...contents,
|
|
1797
|
-
};
|
|
1798
|
-
return response;
|
|
1799
|
-
};
|
|
1800
|
-
const de_PutAccountSettingDefaultCommandError = async (output, context) => {
|
|
1801
|
-
const parsedOutput = {
|
|
1802
|
-
...output,
|
|
1803
|
-
body: await parseErrorBody(output.body, context),
|
|
1804
|
-
};
|
|
1805
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1806
|
-
switch (errorCode) {
|
|
1807
|
-
case "ClientException":
|
|
1808
|
-
case "com.amazonaws.ecs#ClientException":
|
|
1809
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1810
|
-
case "InvalidParameterException":
|
|
1811
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
1812
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1813
|
-
case "ServerException":
|
|
1814
|
-
case "com.amazonaws.ecs#ServerException":
|
|
1815
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1816
|
-
default:
|
|
1817
|
-
const parsedBody = parsedOutput.body;
|
|
1818
|
-
return throwDefaultError({
|
|
1819
|
-
output,
|
|
1820
|
-
parsedBody,
|
|
1821
|
-
errorCode,
|
|
1822
|
-
});
|
|
1823
|
-
}
|
|
1824
|
-
};
|
|
1825
|
-
export const de_PutAttributesCommand = async (output, context) => {
|
|
1826
|
-
if (output.statusCode >= 300) {
|
|
1827
|
-
return de_PutAttributesCommandError(output, context);
|
|
1828
|
-
}
|
|
1829
|
-
const data = await parseBody(output.body, context);
|
|
1830
|
-
let contents = {};
|
|
1831
|
-
contents = _json(data);
|
|
1832
|
-
const response = {
|
|
1833
|
-
$metadata: deserializeMetadata(output),
|
|
1834
|
-
...contents,
|
|
1835
|
-
};
|
|
1836
|
-
return response;
|
|
1837
|
-
};
|
|
1838
|
-
const de_PutAttributesCommandError = async (output, context) => {
|
|
1839
|
-
const parsedOutput = {
|
|
1840
|
-
...output,
|
|
1841
|
-
body: await parseErrorBody(output.body, context),
|
|
1842
|
-
};
|
|
1843
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1844
|
-
switch (errorCode) {
|
|
1845
|
-
case "AttributeLimitExceededException":
|
|
1846
|
-
case "com.amazonaws.ecs#AttributeLimitExceededException":
|
|
1847
|
-
throw await de_AttributeLimitExceededExceptionRes(parsedOutput, context);
|
|
1848
|
-
case "ClusterNotFoundException":
|
|
1849
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
1850
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
1851
|
-
case "InvalidParameterException":
|
|
1852
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
1853
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1854
|
-
case "TargetNotFoundException":
|
|
1855
|
-
case "com.amazonaws.ecs#TargetNotFoundException":
|
|
1856
|
-
throw await de_TargetNotFoundExceptionRes(parsedOutput, context);
|
|
1857
|
-
default:
|
|
1858
|
-
const parsedBody = parsedOutput.body;
|
|
1859
|
-
return throwDefaultError({
|
|
1860
|
-
output,
|
|
1861
|
-
parsedBody,
|
|
1862
|
-
errorCode,
|
|
1863
|
-
});
|
|
1864
|
-
}
|
|
1865
|
-
};
|
|
1866
|
-
export const de_PutClusterCapacityProvidersCommand = async (output, context) => {
|
|
1867
|
-
if (output.statusCode >= 300) {
|
|
1868
|
-
return de_PutClusterCapacityProvidersCommandError(output, context);
|
|
1869
|
-
}
|
|
1870
|
-
const data = await parseBody(output.body, context);
|
|
1871
|
-
let contents = {};
|
|
1872
|
-
contents = _json(data);
|
|
1873
|
-
const response = {
|
|
1874
|
-
$metadata: deserializeMetadata(output),
|
|
1875
|
-
...contents,
|
|
1876
|
-
};
|
|
1877
|
-
return response;
|
|
1878
|
-
};
|
|
1879
|
-
const de_PutClusterCapacityProvidersCommandError = async (output, context) => {
|
|
1880
|
-
const parsedOutput = {
|
|
1881
|
-
...output,
|
|
1882
|
-
body: await parseErrorBody(output.body, context),
|
|
1883
|
-
};
|
|
1884
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1885
|
-
switch (errorCode) {
|
|
1886
|
-
case "ClientException":
|
|
1887
|
-
case "com.amazonaws.ecs#ClientException":
|
|
1888
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1889
|
-
case "ClusterNotFoundException":
|
|
1890
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
1891
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
1892
|
-
case "InvalidParameterException":
|
|
1893
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
1894
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1895
|
-
case "ResourceInUseException":
|
|
1896
|
-
case "com.amazonaws.ecs#ResourceInUseException":
|
|
1897
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1898
|
-
case "ServerException":
|
|
1899
|
-
case "com.amazonaws.ecs#ServerException":
|
|
1900
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1901
|
-
case "UpdateInProgressException":
|
|
1902
|
-
case "com.amazonaws.ecs#UpdateInProgressException":
|
|
1903
|
-
throw await de_UpdateInProgressExceptionRes(parsedOutput, context);
|
|
1904
|
-
default:
|
|
1905
|
-
const parsedBody = parsedOutput.body;
|
|
1906
|
-
return throwDefaultError({
|
|
1907
|
-
output,
|
|
1908
|
-
parsedBody,
|
|
1909
|
-
errorCode,
|
|
1910
|
-
});
|
|
1911
|
-
}
|
|
1912
|
-
};
|
|
1913
|
-
export const de_RegisterContainerInstanceCommand = async (output, context) => {
|
|
1914
|
-
if (output.statusCode >= 300) {
|
|
1915
|
-
return de_RegisterContainerInstanceCommandError(output, context);
|
|
1916
|
-
}
|
|
1917
|
-
const data = await parseBody(output.body, context);
|
|
1918
|
-
let contents = {};
|
|
1919
|
-
contents = de_RegisterContainerInstanceResponse(data, context);
|
|
1920
|
-
const response = {
|
|
1921
|
-
$metadata: deserializeMetadata(output),
|
|
1922
|
-
...contents,
|
|
1923
|
-
};
|
|
1924
|
-
return response;
|
|
1925
|
-
};
|
|
1926
|
-
const de_RegisterContainerInstanceCommandError = async (output, context) => {
|
|
1927
|
-
const parsedOutput = {
|
|
1928
|
-
...output,
|
|
1929
|
-
body: await parseErrorBody(output.body, context),
|
|
1930
|
-
};
|
|
1931
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1932
|
-
switch (errorCode) {
|
|
1933
|
-
case "ClientException":
|
|
1934
|
-
case "com.amazonaws.ecs#ClientException":
|
|
1935
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1936
|
-
case "InvalidParameterException":
|
|
1937
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
1938
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1939
|
-
case "ServerException":
|
|
1940
|
-
case "com.amazonaws.ecs#ServerException":
|
|
1941
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1942
|
-
default:
|
|
1943
|
-
const parsedBody = parsedOutput.body;
|
|
1944
|
-
return throwDefaultError({
|
|
1945
|
-
output,
|
|
1946
|
-
parsedBody,
|
|
1947
|
-
errorCode,
|
|
1948
|
-
});
|
|
1949
|
-
}
|
|
1950
|
-
};
|
|
1951
836
|
export const de_RegisterTaskDefinitionCommand = async (output, context) => {
|
|
1952
837
|
if (output.statusCode >= 300) {
|
|
1953
|
-
return
|
|
838
|
+
return de_CommandError(output, context);
|
|
1954
839
|
}
|
|
1955
840
|
const data = await parseBody(output.body, context);
|
|
1956
841
|
let contents = {};
|
|
@@ -1961,342 +846,48 @@ export const de_RegisterTaskDefinitionCommand = async (output, context) => {
|
|
|
1961
846
|
};
|
|
1962
847
|
return response;
|
|
1963
848
|
};
|
|
1964
|
-
const de_RegisterTaskDefinitionCommandError = async (output, context) => {
|
|
1965
|
-
const parsedOutput = {
|
|
1966
|
-
...output,
|
|
1967
|
-
body: await parseErrorBody(output.body, context),
|
|
1968
|
-
};
|
|
1969
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1970
|
-
switch (errorCode) {
|
|
1971
|
-
case "ClientException":
|
|
1972
|
-
case "com.amazonaws.ecs#ClientException":
|
|
1973
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1974
|
-
case "InvalidParameterException":
|
|
1975
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
1976
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1977
|
-
case "ServerException":
|
|
1978
|
-
case "com.amazonaws.ecs#ServerException":
|
|
1979
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1980
|
-
default:
|
|
1981
|
-
const parsedBody = parsedOutput.body;
|
|
1982
|
-
return throwDefaultError({
|
|
1983
|
-
output,
|
|
1984
|
-
parsedBody,
|
|
1985
|
-
errorCode,
|
|
1986
|
-
});
|
|
1987
|
-
}
|
|
1988
|
-
};
|
|
1989
849
|
export const de_RunTaskCommand = async (output, context) => {
|
|
1990
850
|
if (output.statusCode >= 300) {
|
|
1991
|
-
return
|
|
1992
|
-
}
|
|
1993
|
-
const data = await parseBody(output.body, context);
|
|
1994
|
-
let contents = {};
|
|
1995
|
-
contents = de_RunTaskResponse(data, context);
|
|
1996
|
-
const response = {
|
|
1997
|
-
$metadata: deserializeMetadata(output),
|
|
1998
|
-
...contents,
|
|
1999
|
-
};
|
|
2000
|
-
return response;
|
|
2001
|
-
};
|
|
2002
|
-
const de_RunTaskCommandError = async (output, context) => {
|
|
2003
|
-
const parsedOutput = {
|
|
2004
|
-
...output,
|
|
2005
|
-
body: await parseErrorBody(output.body, context),
|
|
2006
|
-
};
|
|
2007
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2008
|
-
switch (errorCode) {
|
|
2009
|
-
case "AccessDeniedException":
|
|
2010
|
-
case "com.amazonaws.ecs#AccessDeniedException":
|
|
2011
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2012
|
-
case "BlockedException":
|
|
2013
|
-
case "com.amazonaws.ecs#BlockedException":
|
|
2014
|
-
throw await de_BlockedExceptionRes(parsedOutput, context);
|
|
2015
|
-
case "ClientException":
|
|
2016
|
-
case "com.amazonaws.ecs#ClientException":
|
|
2017
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2018
|
-
case "ClusterNotFoundException":
|
|
2019
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
2020
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
2021
|
-
case "ConflictException":
|
|
2022
|
-
case "com.amazonaws.ecs#ConflictException":
|
|
2023
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2024
|
-
case "InvalidParameterException":
|
|
2025
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2026
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2027
|
-
case "PlatformTaskDefinitionIncompatibilityException":
|
|
2028
|
-
case "com.amazonaws.ecs#PlatformTaskDefinitionIncompatibilityException":
|
|
2029
|
-
throw await de_PlatformTaskDefinitionIncompatibilityExceptionRes(parsedOutput, context);
|
|
2030
|
-
case "PlatformUnknownException":
|
|
2031
|
-
case "com.amazonaws.ecs#PlatformUnknownException":
|
|
2032
|
-
throw await de_PlatformUnknownExceptionRes(parsedOutput, context);
|
|
2033
|
-
case "ServerException":
|
|
2034
|
-
case "com.amazonaws.ecs#ServerException":
|
|
2035
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2036
|
-
case "UnsupportedFeatureException":
|
|
2037
|
-
case "com.amazonaws.ecs#UnsupportedFeatureException":
|
|
2038
|
-
throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context);
|
|
2039
|
-
default:
|
|
2040
|
-
const parsedBody = parsedOutput.body;
|
|
2041
|
-
return throwDefaultError({
|
|
2042
|
-
output,
|
|
2043
|
-
parsedBody,
|
|
2044
|
-
errorCode,
|
|
2045
|
-
});
|
|
2046
|
-
}
|
|
2047
|
-
};
|
|
2048
|
-
export const de_StartTaskCommand = async (output, context) => {
|
|
2049
|
-
if (output.statusCode >= 300) {
|
|
2050
|
-
return de_StartTaskCommandError(output, context);
|
|
2051
|
-
}
|
|
2052
|
-
const data = await parseBody(output.body, context);
|
|
2053
|
-
let contents = {};
|
|
2054
|
-
contents = de_StartTaskResponse(data, context);
|
|
2055
|
-
const response = {
|
|
2056
|
-
$metadata: deserializeMetadata(output),
|
|
2057
|
-
...contents,
|
|
2058
|
-
};
|
|
2059
|
-
return response;
|
|
2060
|
-
};
|
|
2061
|
-
const de_StartTaskCommandError = async (output, context) => {
|
|
2062
|
-
const parsedOutput = {
|
|
2063
|
-
...output,
|
|
2064
|
-
body: await parseErrorBody(output.body, context),
|
|
2065
|
-
};
|
|
2066
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2067
|
-
switch (errorCode) {
|
|
2068
|
-
case "ClientException":
|
|
2069
|
-
case "com.amazonaws.ecs#ClientException":
|
|
2070
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2071
|
-
case "ClusterNotFoundException":
|
|
2072
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
2073
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
2074
|
-
case "InvalidParameterException":
|
|
2075
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2076
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2077
|
-
case "ServerException":
|
|
2078
|
-
case "com.amazonaws.ecs#ServerException":
|
|
2079
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2080
|
-
case "UnsupportedFeatureException":
|
|
2081
|
-
case "com.amazonaws.ecs#UnsupportedFeatureException":
|
|
2082
|
-
throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context);
|
|
2083
|
-
default:
|
|
2084
|
-
const parsedBody = parsedOutput.body;
|
|
2085
|
-
return throwDefaultError({
|
|
2086
|
-
output,
|
|
2087
|
-
parsedBody,
|
|
2088
|
-
errorCode,
|
|
2089
|
-
});
|
|
2090
|
-
}
|
|
2091
|
-
};
|
|
2092
|
-
export const de_StopTaskCommand = async (output, context) => {
|
|
2093
|
-
if (output.statusCode >= 300) {
|
|
2094
|
-
return de_StopTaskCommandError(output, context);
|
|
2095
|
-
}
|
|
2096
|
-
const data = await parseBody(output.body, context);
|
|
2097
|
-
let contents = {};
|
|
2098
|
-
contents = de_StopTaskResponse(data, context);
|
|
2099
|
-
const response = {
|
|
2100
|
-
$metadata: deserializeMetadata(output),
|
|
2101
|
-
...contents,
|
|
2102
|
-
};
|
|
2103
|
-
return response;
|
|
2104
|
-
};
|
|
2105
|
-
const de_StopTaskCommandError = async (output, context) => {
|
|
2106
|
-
const parsedOutput = {
|
|
2107
|
-
...output,
|
|
2108
|
-
body: await parseErrorBody(output.body, context),
|
|
2109
|
-
};
|
|
2110
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2111
|
-
switch (errorCode) {
|
|
2112
|
-
case "ClientException":
|
|
2113
|
-
case "com.amazonaws.ecs#ClientException":
|
|
2114
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2115
|
-
case "ClusterNotFoundException":
|
|
2116
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
2117
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
2118
|
-
case "InvalidParameterException":
|
|
2119
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2120
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2121
|
-
case "ServerException":
|
|
2122
|
-
case "com.amazonaws.ecs#ServerException":
|
|
2123
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2124
|
-
default:
|
|
2125
|
-
const parsedBody = parsedOutput.body;
|
|
2126
|
-
return throwDefaultError({
|
|
2127
|
-
output,
|
|
2128
|
-
parsedBody,
|
|
2129
|
-
errorCode,
|
|
2130
|
-
});
|
|
2131
|
-
}
|
|
2132
|
-
};
|
|
2133
|
-
export const de_SubmitAttachmentStateChangesCommand = async (output, context) => {
|
|
2134
|
-
if (output.statusCode >= 300) {
|
|
2135
|
-
return de_SubmitAttachmentStateChangesCommandError(output, context);
|
|
2136
|
-
}
|
|
2137
|
-
const data = await parseBody(output.body, context);
|
|
2138
|
-
let contents = {};
|
|
2139
|
-
contents = _json(data);
|
|
2140
|
-
const response = {
|
|
2141
|
-
$metadata: deserializeMetadata(output),
|
|
2142
|
-
...contents,
|
|
2143
|
-
};
|
|
2144
|
-
return response;
|
|
2145
|
-
};
|
|
2146
|
-
const de_SubmitAttachmentStateChangesCommandError = async (output, context) => {
|
|
2147
|
-
const parsedOutput = {
|
|
2148
|
-
...output,
|
|
2149
|
-
body: await parseErrorBody(output.body, context),
|
|
2150
|
-
};
|
|
2151
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2152
|
-
switch (errorCode) {
|
|
2153
|
-
case "AccessDeniedException":
|
|
2154
|
-
case "com.amazonaws.ecs#AccessDeniedException":
|
|
2155
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2156
|
-
case "ClientException":
|
|
2157
|
-
case "com.amazonaws.ecs#ClientException":
|
|
2158
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2159
|
-
case "InvalidParameterException":
|
|
2160
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2161
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2162
|
-
case "ServerException":
|
|
2163
|
-
case "com.amazonaws.ecs#ServerException":
|
|
2164
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2165
|
-
default:
|
|
2166
|
-
const parsedBody = parsedOutput.body;
|
|
2167
|
-
return throwDefaultError({
|
|
2168
|
-
output,
|
|
2169
|
-
parsedBody,
|
|
2170
|
-
errorCode,
|
|
2171
|
-
});
|
|
2172
|
-
}
|
|
2173
|
-
};
|
|
2174
|
-
export const de_SubmitContainerStateChangeCommand = async (output, context) => {
|
|
2175
|
-
if (output.statusCode >= 300) {
|
|
2176
|
-
return de_SubmitContainerStateChangeCommandError(output, context);
|
|
851
|
+
return de_CommandError(output, context);
|
|
2177
852
|
}
|
|
2178
853
|
const data = await parseBody(output.body, context);
|
|
2179
854
|
let contents = {};
|
|
2180
|
-
contents =
|
|
855
|
+
contents = de_RunTaskResponse(data, context);
|
|
2181
856
|
const response = {
|
|
2182
857
|
$metadata: deserializeMetadata(output),
|
|
2183
858
|
...contents,
|
|
2184
859
|
};
|
|
2185
860
|
return response;
|
|
2186
861
|
};
|
|
2187
|
-
const
|
|
2188
|
-
const parsedOutput = {
|
|
2189
|
-
...output,
|
|
2190
|
-
body: await parseErrorBody(output.body, context),
|
|
2191
|
-
};
|
|
2192
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2193
|
-
switch (errorCode) {
|
|
2194
|
-
case "AccessDeniedException":
|
|
2195
|
-
case "com.amazonaws.ecs#AccessDeniedException":
|
|
2196
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2197
|
-
case "ClientException":
|
|
2198
|
-
case "com.amazonaws.ecs#ClientException":
|
|
2199
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2200
|
-
case "ServerException":
|
|
2201
|
-
case "com.amazonaws.ecs#ServerException":
|
|
2202
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2203
|
-
default:
|
|
2204
|
-
const parsedBody = parsedOutput.body;
|
|
2205
|
-
return throwDefaultError({
|
|
2206
|
-
output,
|
|
2207
|
-
parsedBody,
|
|
2208
|
-
errorCode,
|
|
2209
|
-
});
|
|
2210
|
-
}
|
|
2211
|
-
};
|
|
2212
|
-
export const de_SubmitTaskStateChangeCommand = async (output, context) => {
|
|
862
|
+
export const de_StartTaskCommand = async (output, context) => {
|
|
2213
863
|
if (output.statusCode >= 300) {
|
|
2214
|
-
return
|
|
864
|
+
return de_CommandError(output, context);
|
|
2215
865
|
}
|
|
2216
866
|
const data = await parseBody(output.body, context);
|
|
2217
867
|
let contents = {};
|
|
2218
|
-
contents =
|
|
868
|
+
contents = de_StartTaskResponse(data, context);
|
|
2219
869
|
const response = {
|
|
2220
870
|
$metadata: deserializeMetadata(output),
|
|
2221
871
|
...contents,
|
|
2222
872
|
};
|
|
2223
873
|
return response;
|
|
2224
874
|
};
|
|
2225
|
-
const
|
|
2226
|
-
const parsedOutput = {
|
|
2227
|
-
...output,
|
|
2228
|
-
body: await parseErrorBody(output.body, context),
|
|
2229
|
-
};
|
|
2230
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2231
|
-
switch (errorCode) {
|
|
2232
|
-
case "AccessDeniedException":
|
|
2233
|
-
case "com.amazonaws.ecs#AccessDeniedException":
|
|
2234
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2235
|
-
case "ClientException":
|
|
2236
|
-
case "com.amazonaws.ecs#ClientException":
|
|
2237
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2238
|
-
case "InvalidParameterException":
|
|
2239
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2240
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2241
|
-
case "ServerException":
|
|
2242
|
-
case "com.amazonaws.ecs#ServerException":
|
|
2243
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2244
|
-
default:
|
|
2245
|
-
const parsedBody = parsedOutput.body;
|
|
2246
|
-
return throwDefaultError({
|
|
2247
|
-
output,
|
|
2248
|
-
parsedBody,
|
|
2249
|
-
errorCode,
|
|
2250
|
-
});
|
|
2251
|
-
}
|
|
2252
|
-
};
|
|
2253
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
875
|
+
export const de_StopTaskCommand = async (output, context) => {
|
|
2254
876
|
if (output.statusCode >= 300) {
|
|
2255
|
-
return
|
|
877
|
+
return de_CommandError(output, context);
|
|
2256
878
|
}
|
|
2257
879
|
const data = await parseBody(output.body, context);
|
|
2258
880
|
let contents = {};
|
|
2259
|
-
contents =
|
|
881
|
+
contents = de_StopTaskResponse(data, context);
|
|
2260
882
|
const response = {
|
|
2261
883
|
$metadata: deserializeMetadata(output),
|
|
2262
884
|
...contents,
|
|
2263
885
|
};
|
|
2264
886
|
return response;
|
|
2265
887
|
};
|
|
2266
|
-
const
|
|
2267
|
-
const parsedOutput = {
|
|
2268
|
-
...output,
|
|
2269
|
-
body: await parseErrorBody(output.body, context),
|
|
2270
|
-
};
|
|
2271
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2272
|
-
switch (errorCode) {
|
|
2273
|
-
case "ClientException":
|
|
2274
|
-
case "com.amazonaws.ecs#ClientException":
|
|
2275
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2276
|
-
case "ClusterNotFoundException":
|
|
2277
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
2278
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
2279
|
-
case "InvalidParameterException":
|
|
2280
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2281
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2282
|
-
case "ResourceNotFoundException":
|
|
2283
|
-
case "com.amazonaws.ecs#ResourceNotFoundException":
|
|
2284
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2285
|
-
case "ServerException":
|
|
2286
|
-
case "com.amazonaws.ecs#ServerException":
|
|
2287
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2288
|
-
default:
|
|
2289
|
-
const parsedBody = parsedOutput.body;
|
|
2290
|
-
return throwDefaultError({
|
|
2291
|
-
output,
|
|
2292
|
-
parsedBody,
|
|
2293
|
-
errorCode,
|
|
2294
|
-
});
|
|
2295
|
-
}
|
|
2296
|
-
};
|
|
2297
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
888
|
+
export const de_SubmitAttachmentStateChangesCommand = async (output, context) => {
|
|
2298
889
|
if (output.statusCode >= 300) {
|
|
2299
|
-
return
|
|
890
|
+
return de_CommandError(output, context);
|
|
2300
891
|
}
|
|
2301
892
|
const data = await parseBody(output.body, context);
|
|
2302
893
|
let contents = {};
|
|
@@ -2307,40 +898,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
2307
898
|
};
|
|
2308
899
|
return response;
|
|
2309
900
|
};
|
|
2310
|
-
const
|
|
2311
|
-
const parsedOutput = {
|
|
2312
|
-
...output,
|
|
2313
|
-
body: await parseErrorBody(output.body, context),
|
|
2314
|
-
};
|
|
2315
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2316
|
-
switch (errorCode) {
|
|
2317
|
-
case "ClientException":
|
|
2318
|
-
case "com.amazonaws.ecs#ClientException":
|
|
2319
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2320
|
-
case "ClusterNotFoundException":
|
|
2321
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
2322
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
2323
|
-
case "InvalidParameterException":
|
|
2324
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2325
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2326
|
-
case "ResourceNotFoundException":
|
|
2327
|
-
case "com.amazonaws.ecs#ResourceNotFoundException":
|
|
2328
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2329
|
-
case "ServerException":
|
|
2330
|
-
case "com.amazonaws.ecs#ServerException":
|
|
2331
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2332
|
-
default:
|
|
2333
|
-
const parsedBody = parsedOutput.body;
|
|
2334
|
-
return throwDefaultError({
|
|
2335
|
-
output,
|
|
2336
|
-
parsedBody,
|
|
2337
|
-
errorCode,
|
|
2338
|
-
});
|
|
2339
|
-
}
|
|
2340
|
-
};
|
|
2341
|
-
export const de_UpdateCapacityProviderCommand = async (output, context) => {
|
|
901
|
+
export const de_SubmitContainerStateChangeCommand = async (output, context) => {
|
|
2342
902
|
if (output.statusCode >= 300) {
|
|
2343
|
-
return
|
|
903
|
+
return de_CommandError(output, context);
|
|
2344
904
|
}
|
|
2345
905
|
const data = await parseBody(output.body, context);
|
|
2346
906
|
let contents = {};
|
|
@@ -2351,34 +911,9 @@ export const de_UpdateCapacityProviderCommand = async (output, context) => {
|
|
|
2351
911
|
};
|
|
2352
912
|
return response;
|
|
2353
913
|
};
|
|
2354
|
-
const
|
|
2355
|
-
const parsedOutput = {
|
|
2356
|
-
...output,
|
|
2357
|
-
body: await parseErrorBody(output.body, context),
|
|
2358
|
-
};
|
|
2359
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2360
|
-
switch (errorCode) {
|
|
2361
|
-
case "ClientException":
|
|
2362
|
-
case "com.amazonaws.ecs#ClientException":
|
|
2363
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2364
|
-
case "InvalidParameterException":
|
|
2365
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2366
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2367
|
-
case "ServerException":
|
|
2368
|
-
case "com.amazonaws.ecs#ServerException":
|
|
2369
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2370
|
-
default:
|
|
2371
|
-
const parsedBody = parsedOutput.body;
|
|
2372
|
-
return throwDefaultError({
|
|
2373
|
-
output,
|
|
2374
|
-
parsedBody,
|
|
2375
|
-
errorCode,
|
|
2376
|
-
});
|
|
2377
|
-
}
|
|
2378
|
-
};
|
|
2379
|
-
export const de_UpdateClusterCommand = async (output, context) => {
|
|
914
|
+
export const de_SubmitTaskStateChangeCommand = async (output, context) => {
|
|
2380
915
|
if (output.statusCode >= 300) {
|
|
2381
|
-
return
|
|
916
|
+
return de_CommandError(output, context);
|
|
2382
917
|
}
|
|
2383
918
|
const data = await parseBody(output.body, context);
|
|
2384
919
|
let contents = {};
|
|
@@ -2389,40 +924,9 @@ export const de_UpdateClusterCommand = async (output, context) => {
|
|
|
2389
924
|
};
|
|
2390
925
|
return response;
|
|
2391
926
|
};
|
|
2392
|
-
const
|
|
2393
|
-
const parsedOutput = {
|
|
2394
|
-
...output,
|
|
2395
|
-
body: await parseErrorBody(output.body, context),
|
|
2396
|
-
};
|
|
2397
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2398
|
-
switch (errorCode) {
|
|
2399
|
-
case "ClientException":
|
|
2400
|
-
case "com.amazonaws.ecs#ClientException":
|
|
2401
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2402
|
-
case "ClusterNotFoundException":
|
|
2403
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
2404
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
2405
|
-
case "InvalidParameterException":
|
|
2406
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2407
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2408
|
-
case "NamespaceNotFoundException":
|
|
2409
|
-
case "com.amazonaws.ecs#NamespaceNotFoundException":
|
|
2410
|
-
throw await de_NamespaceNotFoundExceptionRes(parsedOutput, context);
|
|
2411
|
-
case "ServerException":
|
|
2412
|
-
case "com.amazonaws.ecs#ServerException":
|
|
2413
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2414
|
-
default:
|
|
2415
|
-
const parsedBody = parsedOutput.body;
|
|
2416
|
-
return throwDefaultError({
|
|
2417
|
-
output,
|
|
2418
|
-
parsedBody,
|
|
2419
|
-
errorCode,
|
|
2420
|
-
});
|
|
2421
|
-
}
|
|
2422
|
-
};
|
|
2423
|
-
export const de_UpdateClusterSettingsCommand = async (output, context) => {
|
|
927
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
2424
928
|
if (output.statusCode >= 300) {
|
|
2425
|
-
return
|
|
929
|
+
return de_CommandError(output, context);
|
|
2426
930
|
}
|
|
2427
931
|
const data = await parseBody(output.body, context);
|
|
2428
932
|
let contents = {};
|
|
@@ -2433,128 +937,87 @@ export const de_UpdateClusterSettingsCommand = async (output, context) => {
|
|
|
2433
937
|
};
|
|
2434
938
|
return response;
|
|
2435
939
|
};
|
|
2436
|
-
const
|
|
2437
|
-
const parsedOutput = {
|
|
2438
|
-
...output,
|
|
2439
|
-
body: await parseErrorBody(output.body, context),
|
|
2440
|
-
};
|
|
2441
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2442
|
-
switch (errorCode) {
|
|
2443
|
-
case "ClientException":
|
|
2444
|
-
case "com.amazonaws.ecs#ClientException":
|
|
2445
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2446
|
-
case "ClusterNotFoundException":
|
|
2447
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
2448
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
2449
|
-
case "InvalidParameterException":
|
|
2450
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2451
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2452
|
-
case "ServerException":
|
|
2453
|
-
case "com.amazonaws.ecs#ServerException":
|
|
2454
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2455
|
-
default:
|
|
2456
|
-
const parsedBody = parsedOutput.body;
|
|
2457
|
-
return throwDefaultError({
|
|
2458
|
-
output,
|
|
2459
|
-
parsedBody,
|
|
2460
|
-
errorCode,
|
|
2461
|
-
});
|
|
2462
|
-
}
|
|
2463
|
-
};
|
|
2464
|
-
export const de_UpdateContainerAgentCommand = async (output, context) => {
|
|
940
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
2465
941
|
if (output.statusCode >= 300) {
|
|
2466
|
-
return
|
|
942
|
+
return de_CommandError(output, context);
|
|
2467
943
|
}
|
|
2468
944
|
const data = await parseBody(output.body, context);
|
|
2469
945
|
let contents = {};
|
|
2470
|
-
contents =
|
|
946
|
+
contents = _json(data);
|
|
2471
947
|
const response = {
|
|
2472
948
|
$metadata: deserializeMetadata(output),
|
|
2473
949
|
...contents,
|
|
2474
950
|
};
|
|
2475
951
|
return response;
|
|
2476
952
|
};
|
|
2477
|
-
const
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
953
|
+
export const de_UpdateCapacityProviderCommand = async (output, context) => {
|
|
954
|
+
if (output.statusCode >= 300) {
|
|
955
|
+
return de_CommandError(output, context);
|
|
956
|
+
}
|
|
957
|
+
const data = await parseBody(output.body, context);
|
|
958
|
+
let contents = {};
|
|
959
|
+
contents = _json(data);
|
|
960
|
+
const response = {
|
|
961
|
+
$metadata: deserializeMetadata(output),
|
|
962
|
+
...contents,
|
|
2481
963
|
};
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
case "ClusterNotFoundException":
|
|
2488
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
2489
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
2490
|
-
case "InvalidParameterException":
|
|
2491
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2492
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2493
|
-
case "MissingVersionException":
|
|
2494
|
-
case "com.amazonaws.ecs#MissingVersionException":
|
|
2495
|
-
throw await de_MissingVersionExceptionRes(parsedOutput, context);
|
|
2496
|
-
case "NoUpdateAvailableException":
|
|
2497
|
-
case "com.amazonaws.ecs#NoUpdateAvailableException":
|
|
2498
|
-
throw await de_NoUpdateAvailableExceptionRes(parsedOutput, context);
|
|
2499
|
-
case "ServerException":
|
|
2500
|
-
case "com.amazonaws.ecs#ServerException":
|
|
2501
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2502
|
-
case "UpdateInProgressException":
|
|
2503
|
-
case "com.amazonaws.ecs#UpdateInProgressException":
|
|
2504
|
-
throw await de_UpdateInProgressExceptionRes(parsedOutput, context);
|
|
2505
|
-
default:
|
|
2506
|
-
const parsedBody = parsedOutput.body;
|
|
2507
|
-
return throwDefaultError({
|
|
2508
|
-
output,
|
|
2509
|
-
parsedBody,
|
|
2510
|
-
errorCode,
|
|
2511
|
-
});
|
|
964
|
+
return response;
|
|
965
|
+
};
|
|
966
|
+
export const de_UpdateClusterCommand = async (output, context) => {
|
|
967
|
+
if (output.statusCode >= 300) {
|
|
968
|
+
return de_CommandError(output, context);
|
|
2512
969
|
}
|
|
970
|
+
const data = await parseBody(output.body, context);
|
|
971
|
+
let contents = {};
|
|
972
|
+
contents = _json(data);
|
|
973
|
+
const response = {
|
|
974
|
+
$metadata: deserializeMetadata(output),
|
|
975
|
+
...contents,
|
|
976
|
+
};
|
|
977
|
+
return response;
|
|
2513
978
|
};
|
|
2514
|
-
export const
|
|
979
|
+
export const de_UpdateClusterSettingsCommand = async (output, context) => {
|
|
2515
980
|
if (output.statusCode >= 300) {
|
|
2516
|
-
return
|
|
981
|
+
return de_CommandError(output, context);
|
|
2517
982
|
}
|
|
2518
983
|
const data = await parseBody(output.body, context);
|
|
2519
984
|
let contents = {};
|
|
2520
|
-
contents =
|
|
985
|
+
contents = _json(data);
|
|
2521
986
|
const response = {
|
|
2522
987
|
$metadata: deserializeMetadata(output),
|
|
2523
988
|
...contents,
|
|
2524
989
|
};
|
|
2525
990
|
return response;
|
|
2526
991
|
};
|
|
2527
|
-
const
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
992
|
+
export const de_UpdateContainerAgentCommand = async (output, context) => {
|
|
993
|
+
if (output.statusCode >= 300) {
|
|
994
|
+
return de_CommandError(output, context);
|
|
995
|
+
}
|
|
996
|
+
const data = await parseBody(output.body, context);
|
|
997
|
+
let contents = {};
|
|
998
|
+
contents = de_UpdateContainerAgentResponse(data, context);
|
|
999
|
+
const response = {
|
|
1000
|
+
$metadata: deserializeMetadata(output),
|
|
1001
|
+
...contents,
|
|
2531
1002
|
};
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
case "ClusterNotFoundException":
|
|
2538
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
2539
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
2540
|
-
case "InvalidParameterException":
|
|
2541
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2542
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2543
|
-
case "ServerException":
|
|
2544
|
-
case "com.amazonaws.ecs#ServerException":
|
|
2545
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2546
|
-
default:
|
|
2547
|
-
const parsedBody = parsedOutput.body;
|
|
2548
|
-
return throwDefaultError({
|
|
2549
|
-
output,
|
|
2550
|
-
parsedBody,
|
|
2551
|
-
errorCode,
|
|
2552
|
-
});
|
|
1003
|
+
return response;
|
|
1004
|
+
};
|
|
1005
|
+
export const de_UpdateContainerInstancesStateCommand = async (output, context) => {
|
|
1006
|
+
if (output.statusCode >= 300) {
|
|
1007
|
+
return de_CommandError(output, context);
|
|
2553
1008
|
}
|
|
1009
|
+
const data = await parseBody(output.body, context);
|
|
1010
|
+
let contents = {};
|
|
1011
|
+
contents = de_UpdateContainerInstancesStateResponse(data, context);
|
|
1012
|
+
const response = {
|
|
1013
|
+
$metadata: deserializeMetadata(output),
|
|
1014
|
+
...contents,
|
|
1015
|
+
};
|
|
1016
|
+
return response;
|
|
2554
1017
|
};
|
|
2555
1018
|
export const de_UpdateServiceCommand = async (output, context) => {
|
|
2556
1019
|
if (output.statusCode >= 300) {
|
|
2557
|
-
return
|
|
1020
|
+
return de_CommandError(output, context);
|
|
2558
1021
|
}
|
|
2559
1022
|
const data = await parseBody(output.body, context);
|
|
2560
1023
|
let contents = {};
|
|
@@ -2565,58 +1028,9 @@ export const de_UpdateServiceCommand = async (output, context) => {
|
|
|
2565
1028
|
};
|
|
2566
1029
|
return response;
|
|
2567
1030
|
};
|
|
2568
|
-
const de_UpdateServiceCommandError = async (output, context) => {
|
|
2569
|
-
const parsedOutput = {
|
|
2570
|
-
...output,
|
|
2571
|
-
body: await parseErrorBody(output.body, context),
|
|
2572
|
-
};
|
|
2573
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2574
|
-
switch (errorCode) {
|
|
2575
|
-
case "AccessDeniedException":
|
|
2576
|
-
case "com.amazonaws.ecs#AccessDeniedException":
|
|
2577
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2578
|
-
case "ClientException":
|
|
2579
|
-
case "com.amazonaws.ecs#ClientException":
|
|
2580
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2581
|
-
case "ClusterNotFoundException":
|
|
2582
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
2583
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
2584
|
-
case "InvalidParameterException":
|
|
2585
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2586
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2587
|
-
case "NamespaceNotFoundException":
|
|
2588
|
-
case "com.amazonaws.ecs#NamespaceNotFoundException":
|
|
2589
|
-
throw await de_NamespaceNotFoundExceptionRes(parsedOutput, context);
|
|
2590
|
-
case "PlatformTaskDefinitionIncompatibilityException":
|
|
2591
|
-
case "com.amazonaws.ecs#PlatformTaskDefinitionIncompatibilityException":
|
|
2592
|
-
throw await de_PlatformTaskDefinitionIncompatibilityExceptionRes(parsedOutput, context);
|
|
2593
|
-
case "PlatformUnknownException":
|
|
2594
|
-
case "com.amazonaws.ecs#PlatformUnknownException":
|
|
2595
|
-
throw await de_PlatformUnknownExceptionRes(parsedOutput, context);
|
|
2596
|
-
case "ServerException":
|
|
2597
|
-
case "com.amazonaws.ecs#ServerException":
|
|
2598
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2599
|
-
case "ServiceNotActiveException":
|
|
2600
|
-
case "com.amazonaws.ecs#ServiceNotActiveException":
|
|
2601
|
-
throw await de_ServiceNotActiveExceptionRes(parsedOutput, context);
|
|
2602
|
-
case "ServiceNotFoundException":
|
|
2603
|
-
case "com.amazonaws.ecs#ServiceNotFoundException":
|
|
2604
|
-
throw await de_ServiceNotFoundExceptionRes(parsedOutput, context);
|
|
2605
|
-
case "UnsupportedFeatureException":
|
|
2606
|
-
case "com.amazonaws.ecs#UnsupportedFeatureException":
|
|
2607
|
-
throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context);
|
|
2608
|
-
default:
|
|
2609
|
-
const parsedBody = parsedOutput.body;
|
|
2610
|
-
return throwDefaultError({
|
|
2611
|
-
output,
|
|
2612
|
-
parsedBody,
|
|
2613
|
-
errorCode,
|
|
2614
|
-
});
|
|
2615
|
-
}
|
|
2616
|
-
};
|
|
2617
1031
|
export const de_UpdateServicePrimaryTaskSetCommand = async (output, context) => {
|
|
2618
1032
|
if (output.statusCode >= 300) {
|
|
2619
|
-
return
|
|
1033
|
+
return de_CommandError(output, context);
|
|
2620
1034
|
}
|
|
2621
1035
|
const data = await parseBody(output.body, context);
|
|
2622
1036
|
let contents = {};
|
|
@@ -2627,52 +1041,9 @@ export const de_UpdateServicePrimaryTaskSetCommand = async (output, context) =>
|
|
|
2627
1041
|
};
|
|
2628
1042
|
return response;
|
|
2629
1043
|
};
|
|
2630
|
-
const de_UpdateServicePrimaryTaskSetCommandError = async (output, context) => {
|
|
2631
|
-
const parsedOutput = {
|
|
2632
|
-
...output,
|
|
2633
|
-
body: await parseErrorBody(output.body, context),
|
|
2634
|
-
};
|
|
2635
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2636
|
-
switch (errorCode) {
|
|
2637
|
-
case "AccessDeniedException":
|
|
2638
|
-
case "com.amazonaws.ecs#AccessDeniedException":
|
|
2639
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2640
|
-
case "ClientException":
|
|
2641
|
-
case "com.amazonaws.ecs#ClientException":
|
|
2642
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2643
|
-
case "ClusterNotFoundException":
|
|
2644
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
2645
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
2646
|
-
case "InvalidParameterException":
|
|
2647
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2648
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2649
|
-
case "ServerException":
|
|
2650
|
-
case "com.amazonaws.ecs#ServerException":
|
|
2651
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2652
|
-
case "ServiceNotActiveException":
|
|
2653
|
-
case "com.amazonaws.ecs#ServiceNotActiveException":
|
|
2654
|
-
throw await de_ServiceNotActiveExceptionRes(parsedOutput, context);
|
|
2655
|
-
case "ServiceNotFoundException":
|
|
2656
|
-
case "com.amazonaws.ecs#ServiceNotFoundException":
|
|
2657
|
-
throw await de_ServiceNotFoundExceptionRes(parsedOutput, context);
|
|
2658
|
-
case "TaskSetNotFoundException":
|
|
2659
|
-
case "com.amazonaws.ecs#TaskSetNotFoundException":
|
|
2660
|
-
throw await de_TaskSetNotFoundExceptionRes(parsedOutput, context);
|
|
2661
|
-
case "UnsupportedFeatureException":
|
|
2662
|
-
case "com.amazonaws.ecs#UnsupportedFeatureException":
|
|
2663
|
-
throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context);
|
|
2664
|
-
default:
|
|
2665
|
-
const parsedBody = parsedOutput.body;
|
|
2666
|
-
return throwDefaultError({
|
|
2667
|
-
output,
|
|
2668
|
-
parsedBody,
|
|
2669
|
-
errorCode,
|
|
2670
|
-
});
|
|
2671
|
-
}
|
|
2672
|
-
};
|
|
2673
1044
|
export const de_UpdateTaskProtectionCommand = async (output, context) => {
|
|
2674
1045
|
if (output.statusCode >= 300) {
|
|
2675
|
-
return
|
|
1046
|
+
return de_CommandError(output, context);
|
|
2676
1047
|
}
|
|
2677
1048
|
const data = await parseBody(output.body, context);
|
|
2678
1049
|
let contents = {};
|
|
@@ -2683,46 +1054,9 @@ export const de_UpdateTaskProtectionCommand = async (output, context) => {
|
|
|
2683
1054
|
};
|
|
2684
1055
|
return response;
|
|
2685
1056
|
};
|
|
2686
|
-
const de_UpdateTaskProtectionCommandError = async (output, context) => {
|
|
2687
|
-
const parsedOutput = {
|
|
2688
|
-
...output,
|
|
2689
|
-
body: await parseErrorBody(output.body, context),
|
|
2690
|
-
};
|
|
2691
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2692
|
-
switch (errorCode) {
|
|
2693
|
-
case "AccessDeniedException":
|
|
2694
|
-
case "com.amazonaws.ecs#AccessDeniedException":
|
|
2695
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2696
|
-
case "ClientException":
|
|
2697
|
-
case "com.amazonaws.ecs#ClientException":
|
|
2698
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2699
|
-
case "ClusterNotFoundException":
|
|
2700
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
2701
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
2702
|
-
case "InvalidParameterException":
|
|
2703
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2704
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2705
|
-
case "ResourceNotFoundException":
|
|
2706
|
-
case "com.amazonaws.ecs#ResourceNotFoundException":
|
|
2707
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2708
|
-
case "ServerException":
|
|
2709
|
-
case "com.amazonaws.ecs#ServerException":
|
|
2710
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2711
|
-
case "UnsupportedFeatureException":
|
|
2712
|
-
case "com.amazonaws.ecs#UnsupportedFeatureException":
|
|
2713
|
-
throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context);
|
|
2714
|
-
default:
|
|
2715
|
-
const parsedBody = parsedOutput.body;
|
|
2716
|
-
return throwDefaultError({
|
|
2717
|
-
output,
|
|
2718
|
-
parsedBody,
|
|
2719
|
-
errorCode,
|
|
2720
|
-
});
|
|
2721
|
-
}
|
|
2722
|
-
};
|
|
2723
1057
|
export const de_UpdateTaskSetCommand = async (output, context) => {
|
|
2724
1058
|
if (output.statusCode >= 300) {
|
|
2725
|
-
return
|
|
1059
|
+
return de_CommandError(output, context);
|
|
2726
1060
|
}
|
|
2727
1061
|
const data = await parseBody(output.body, context);
|
|
2728
1062
|
let contents = {};
|
|
@@ -2733,40 +1067,91 @@ export const de_UpdateTaskSetCommand = async (output, context) => {
|
|
|
2733
1067
|
};
|
|
2734
1068
|
return response;
|
|
2735
1069
|
};
|
|
2736
|
-
const
|
|
1070
|
+
const de_CommandError = async (output, context) => {
|
|
2737
1071
|
const parsedOutput = {
|
|
2738
1072
|
...output,
|
|
2739
1073
|
body: await parseErrorBody(output.body, context),
|
|
2740
1074
|
};
|
|
2741
1075
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2742
1076
|
switch (errorCode) {
|
|
2743
|
-
case "AccessDeniedException":
|
|
2744
|
-
case "com.amazonaws.ecs#AccessDeniedException":
|
|
2745
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2746
1077
|
case "ClientException":
|
|
2747
1078
|
case "com.amazonaws.ecs#ClientException":
|
|
2748
1079
|
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2749
|
-
case "ClusterNotFoundException":
|
|
2750
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
2751
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
2752
1080
|
case "InvalidParameterException":
|
|
2753
1081
|
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2754
1082
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1083
|
+
case "LimitExceededException":
|
|
1084
|
+
case "com.amazonaws.ecs#LimitExceededException":
|
|
1085
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2755
1086
|
case "ServerException":
|
|
2756
1087
|
case "com.amazonaws.ecs#ServerException":
|
|
2757
1088
|
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1089
|
+
case "UpdateInProgressException":
|
|
1090
|
+
case "com.amazonaws.ecs#UpdateInProgressException":
|
|
1091
|
+
throw await de_UpdateInProgressExceptionRes(parsedOutput, context);
|
|
1092
|
+
case "NamespaceNotFoundException":
|
|
1093
|
+
case "com.amazonaws.ecs#NamespaceNotFoundException":
|
|
1094
|
+
throw await de_NamespaceNotFoundExceptionRes(parsedOutput, context);
|
|
1095
|
+
case "AccessDeniedException":
|
|
1096
|
+
case "com.amazonaws.ecs#AccessDeniedException":
|
|
1097
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1098
|
+
case "ClusterNotFoundException":
|
|
1099
|
+
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
1100
|
+
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
1101
|
+
case "PlatformTaskDefinitionIncompatibilityException":
|
|
1102
|
+
case "com.amazonaws.ecs#PlatformTaskDefinitionIncompatibilityException":
|
|
1103
|
+
throw await de_PlatformTaskDefinitionIncompatibilityExceptionRes(parsedOutput, context);
|
|
1104
|
+
case "PlatformUnknownException":
|
|
1105
|
+
case "com.amazonaws.ecs#PlatformUnknownException":
|
|
1106
|
+
throw await de_PlatformUnknownExceptionRes(parsedOutput, context);
|
|
1107
|
+
case "UnsupportedFeatureException":
|
|
1108
|
+
case "com.amazonaws.ecs#UnsupportedFeatureException":
|
|
1109
|
+
throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context);
|
|
2758
1110
|
case "ServiceNotActiveException":
|
|
2759
1111
|
case "com.amazonaws.ecs#ServiceNotActiveException":
|
|
2760
1112
|
throw await de_ServiceNotActiveExceptionRes(parsedOutput, context);
|
|
2761
1113
|
case "ServiceNotFoundException":
|
|
2762
1114
|
case "com.amazonaws.ecs#ServiceNotFoundException":
|
|
2763
1115
|
throw await de_ServiceNotFoundExceptionRes(parsedOutput, context);
|
|
1116
|
+
case "TargetNotFoundException":
|
|
1117
|
+
case "com.amazonaws.ecs#TargetNotFoundException":
|
|
1118
|
+
throw await de_TargetNotFoundExceptionRes(parsedOutput, context);
|
|
1119
|
+
case "ClusterContainsContainerInstancesException":
|
|
1120
|
+
case "com.amazonaws.ecs#ClusterContainsContainerInstancesException":
|
|
1121
|
+
throw await de_ClusterContainsContainerInstancesExceptionRes(parsedOutput, context);
|
|
1122
|
+
case "ClusterContainsServicesException":
|
|
1123
|
+
case "com.amazonaws.ecs#ClusterContainsServicesException":
|
|
1124
|
+
throw await de_ClusterContainsServicesExceptionRes(parsedOutput, context);
|
|
1125
|
+
case "ClusterContainsTasksException":
|
|
1126
|
+
case "com.amazonaws.ecs#ClusterContainsTasksException":
|
|
1127
|
+
throw await de_ClusterContainsTasksExceptionRes(parsedOutput, context);
|
|
2764
1128
|
case "TaskSetNotFoundException":
|
|
2765
1129
|
case "com.amazonaws.ecs#TaskSetNotFoundException":
|
|
2766
1130
|
throw await de_TaskSetNotFoundExceptionRes(parsedOutput, context);
|
|
2767
|
-
case "
|
|
2768
|
-
case "com.amazonaws.ecs#
|
|
2769
|
-
throw await
|
|
1131
|
+
case "TargetNotConnectedException":
|
|
1132
|
+
case "com.amazonaws.ecs#TargetNotConnectedException":
|
|
1133
|
+
throw await de_TargetNotConnectedExceptionRes(parsedOutput, context);
|
|
1134
|
+
case "ResourceNotFoundException":
|
|
1135
|
+
case "com.amazonaws.ecs#ResourceNotFoundException":
|
|
1136
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1137
|
+
case "AttributeLimitExceededException":
|
|
1138
|
+
case "com.amazonaws.ecs#AttributeLimitExceededException":
|
|
1139
|
+
throw await de_AttributeLimitExceededExceptionRes(parsedOutput, context);
|
|
1140
|
+
case "ResourceInUseException":
|
|
1141
|
+
case "com.amazonaws.ecs#ResourceInUseException":
|
|
1142
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1143
|
+
case "BlockedException":
|
|
1144
|
+
case "com.amazonaws.ecs#BlockedException":
|
|
1145
|
+
throw await de_BlockedExceptionRes(parsedOutput, context);
|
|
1146
|
+
case "ConflictException":
|
|
1147
|
+
case "com.amazonaws.ecs#ConflictException":
|
|
1148
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1149
|
+
case "MissingVersionException":
|
|
1150
|
+
case "com.amazonaws.ecs#MissingVersionException":
|
|
1151
|
+
throw await de_MissingVersionExceptionRes(parsedOutput, context);
|
|
1152
|
+
case "NoUpdateAvailableException":
|
|
1153
|
+
case "com.amazonaws.ecs#NoUpdateAvailableException":
|
|
1154
|
+
throw await de_NoUpdateAvailableExceptionRes(parsedOutput, context);
|
|
2770
1155
|
default:
|
|
2771
1156
|
const parsedBody = parsedOutput.body;
|
|
2772
1157
|
return throwDefaultError({
|