@aws-sdk/client-ecs 3.180.0 → 3.183.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist-cjs/protocols/Aws_json1_1.js +58 -52
- package/dist-es/ECS.js +210 -217
- package/dist-es/ECSClient.js +22 -28
- package/dist-es/commands/CreateCapacityProviderCommand.js +21 -28
- package/dist-es/commands/CreateClusterCommand.js +21 -28
- package/dist-es/commands/CreateServiceCommand.js +21 -28
- package/dist-es/commands/CreateTaskSetCommand.js +21 -28
- package/dist-es/commands/DeleteAccountSettingCommand.js +21 -28
- package/dist-es/commands/DeleteAttributesCommand.js +21 -28
- package/dist-es/commands/DeleteCapacityProviderCommand.js +21 -28
- package/dist-es/commands/DeleteClusterCommand.js +21 -28
- package/dist-es/commands/DeleteServiceCommand.js +21 -28
- package/dist-es/commands/DeleteTaskSetCommand.js +21 -28
- package/dist-es/commands/DeregisterContainerInstanceCommand.js +21 -28
- package/dist-es/commands/DeregisterTaskDefinitionCommand.js +21 -28
- package/dist-es/commands/DescribeCapacityProvidersCommand.js +21 -28
- package/dist-es/commands/DescribeClustersCommand.js +21 -28
- package/dist-es/commands/DescribeContainerInstancesCommand.js +21 -28
- package/dist-es/commands/DescribeServicesCommand.js +21 -28
- package/dist-es/commands/DescribeTaskDefinitionCommand.js +21 -28
- package/dist-es/commands/DescribeTaskSetsCommand.js +21 -28
- package/dist-es/commands/DescribeTasksCommand.js +21 -28
- package/dist-es/commands/DiscoverPollEndpointCommand.js +21 -28
- package/dist-es/commands/ExecuteCommandCommand.js +21 -28
- package/dist-es/commands/ListAccountSettingsCommand.js +21 -28
- package/dist-es/commands/ListAttributesCommand.js +21 -28
- package/dist-es/commands/ListClustersCommand.js +21 -28
- package/dist-es/commands/ListContainerInstancesCommand.js +21 -28
- package/dist-es/commands/ListServicesCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/ListTaskDefinitionFamiliesCommand.js +21 -28
- package/dist-es/commands/ListTaskDefinitionsCommand.js +21 -28
- package/dist-es/commands/ListTasksCommand.js +21 -28
- package/dist-es/commands/PutAccountSettingCommand.js +21 -28
- package/dist-es/commands/PutAccountSettingDefaultCommand.js +21 -28
- package/dist-es/commands/PutAttributesCommand.js +21 -28
- package/dist-es/commands/PutClusterCapacityProvidersCommand.js +21 -28
- package/dist-es/commands/RegisterContainerInstanceCommand.js +21 -28
- package/dist-es/commands/RegisterTaskDefinitionCommand.js +21 -28
- package/dist-es/commands/RunTaskCommand.js +21 -28
- package/dist-es/commands/StartTaskCommand.js +21 -28
- package/dist-es/commands/StopTaskCommand.js +21 -28
- package/dist-es/commands/SubmitAttachmentStateChangesCommand.js +21 -28
- package/dist-es/commands/SubmitContainerStateChangeCommand.js +21 -28
- package/dist-es/commands/SubmitTaskStateChangeCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateCapacityProviderCommand.js +21 -28
- package/dist-es/commands/UpdateClusterCommand.js +21 -28
- package/dist-es/commands/UpdateClusterSettingsCommand.js +21 -28
- package/dist-es/commands/UpdateContainerAgentCommand.js +21 -28
- package/dist-es/commands/UpdateContainerInstancesStateCommand.js +21 -28
- package/dist-es/commands/UpdateServiceCommand.js +21 -28
- package/dist-es/commands/UpdateServicePrimaryTaskSetCommand.js +21 -28
- package/dist-es/commands/UpdateTaskSetCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/ECSServiceException.js +5 -10
- package/dist-es/models/models_0.js +818 -449
- package/dist-es/pagination/ListAccountSettingsPaginator.js +25 -68
- package/dist-es/pagination/ListAttributesPaginator.js +25 -68
- package/dist-es/pagination/ListClustersPaginator.js +25 -68
- package/dist-es/pagination/ListContainerInstancesPaginator.js +25 -68
- package/dist-es/pagination/ListServicesPaginator.js +25 -68
- package/dist-es/pagination/ListTaskDefinitionFamiliesPaginator.js +25 -68
- package/dist-es/pagination/ListTaskDefinitionsPaginator.js +25 -68
- package/dist-es/pagination/ListTasksPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +4630 -5266
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/dist-es/waiters/waitForServicesInactive.js +47 -88
- package/dist-es/waiters/waitForServicesStable.js +72 -123
- package/dist-es/waiters/waitForTasksRunning.js +63 -114
- package/dist-es/waiters/waitForTasksStopped.js +36 -67
- package/package.json +34 -34
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-ecs
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-ecs
|
|
@@ -544,7 +544,7 @@ exports.deserializeAws_json1_1CreateCapacityProviderCommand = deserializeAws_jso
|
|
|
544
544
|
const deserializeAws_json1_1CreateCapacityProviderCommandError = async (output, context) => {
|
|
545
545
|
const parsedOutput = {
|
|
546
546
|
...output,
|
|
547
|
-
body: await
|
|
547
|
+
body: await parseErrorBody(output.body, context),
|
|
548
548
|
};
|
|
549
549
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
550
550
|
switch (errorCode) {
|
|
@@ -590,7 +590,7 @@ exports.deserializeAws_json1_1CreateClusterCommand = deserializeAws_json1_1Creat
|
|
|
590
590
|
const deserializeAws_json1_1CreateClusterCommandError = async (output, context) => {
|
|
591
591
|
const parsedOutput = {
|
|
592
592
|
...output,
|
|
593
|
-
body: await
|
|
593
|
+
body: await parseErrorBody(output.body, context),
|
|
594
594
|
};
|
|
595
595
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
596
596
|
switch (errorCode) {
|
|
@@ -630,7 +630,7 @@ exports.deserializeAws_json1_1CreateServiceCommand = deserializeAws_json1_1Creat
|
|
|
630
630
|
const deserializeAws_json1_1CreateServiceCommandError = async (output, context) => {
|
|
631
631
|
const parsedOutput = {
|
|
632
632
|
...output,
|
|
633
|
-
body: await
|
|
633
|
+
body: await parseErrorBody(output.body, context),
|
|
634
634
|
};
|
|
635
635
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
636
636
|
switch (errorCode) {
|
|
@@ -685,7 +685,7 @@ exports.deserializeAws_json1_1CreateTaskSetCommand = deserializeAws_json1_1Creat
|
|
|
685
685
|
const deserializeAws_json1_1CreateTaskSetCommandError = async (output, context) => {
|
|
686
686
|
const parsedOutput = {
|
|
687
687
|
...output,
|
|
688
|
-
body: await
|
|
688
|
+
body: await parseErrorBody(output.body, context),
|
|
689
689
|
};
|
|
690
690
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
691
691
|
switch (errorCode) {
|
|
@@ -746,7 +746,7 @@ exports.deserializeAws_json1_1DeleteAccountSettingCommand = deserializeAws_json1
|
|
|
746
746
|
const deserializeAws_json1_1DeleteAccountSettingCommandError = async (output, context) => {
|
|
747
747
|
const parsedOutput = {
|
|
748
748
|
...output,
|
|
749
|
-
body: await
|
|
749
|
+
body: await parseErrorBody(output.body, context),
|
|
750
750
|
};
|
|
751
751
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
752
752
|
switch (errorCode) {
|
|
@@ -786,7 +786,7 @@ exports.deserializeAws_json1_1DeleteAttributesCommand = deserializeAws_json1_1De
|
|
|
786
786
|
const deserializeAws_json1_1DeleteAttributesCommandError = async (output, context) => {
|
|
787
787
|
const parsedOutput = {
|
|
788
788
|
...output,
|
|
789
|
-
body: await
|
|
789
|
+
body: await parseErrorBody(output.body, context),
|
|
790
790
|
};
|
|
791
791
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
792
792
|
switch (errorCode) {
|
|
@@ -826,7 +826,7 @@ exports.deserializeAws_json1_1DeleteCapacityProviderCommand = deserializeAws_jso
|
|
|
826
826
|
const deserializeAws_json1_1DeleteCapacityProviderCommandError = async (output, context) => {
|
|
827
827
|
const parsedOutput = {
|
|
828
828
|
...output,
|
|
829
|
-
body: await
|
|
829
|
+
body: await parseErrorBody(output.body, context),
|
|
830
830
|
};
|
|
831
831
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
832
832
|
switch (errorCode) {
|
|
@@ -866,7 +866,7 @@ exports.deserializeAws_json1_1DeleteClusterCommand = deserializeAws_json1_1Delet
|
|
|
866
866
|
const deserializeAws_json1_1DeleteClusterCommandError = async (output, context) => {
|
|
867
867
|
const parsedOutput = {
|
|
868
868
|
...output,
|
|
869
|
-
body: await
|
|
869
|
+
body: await parseErrorBody(output.body, context),
|
|
870
870
|
};
|
|
871
871
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
872
872
|
switch (errorCode) {
|
|
@@ -921,7 +921,7 @@ exports.deserializeAws_json1_1DeleteServiceCommand = deserializeAws_json1_1Delet
|
|
|
921
921
|
const deserializeAws_json1_1DeleteServiceCommandError = async (output, context) => {
|
|
922
922
|
const parsedOutput = {
|
|
923
923
|
...output,
|
|
924
|
-
body: await
|
|
924
|
+
body: await parseErrorBody(output.body, context),
|
|
925
925
|
};
|
|
926
926
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
927
927
|
switch (errorCode) {
|
|
@@ -967,7 +967,7 @@ exports.deserializeAws_json1_1DeleteTaskSetCommand = deserializeAws_json1_1Delet
|
|
|
967
967
|
const deserializeAws_json1_1DeleteTaskSetCommandError = async (output, context) => {
|
|
968
968
|
const parsedOutput = {
|
|
969
969
|
...output,
|
|
970
|
-
body: await
|
|
970
|
+
body: await parseErrorBody(output.body, context),
|
|
971
971
|
};
|
|
972
972
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
973
973
|
switch (errorCode) {
|
|
@@ -1025,7 +1025,7 @@ exports.deserializeAws_json1_1DeregisterContainerInstanceCommand = deserializeAw
|
|
|
1025
1025
|
const deserializeAws_json1_1DeregisterContainerInstanceCommandError = async (output, context) => {
|
|
1026
1026
|
const parsedOutput = {
|
|
1027
1027
|
...output,
|
|
1028
|
-
body: await
|
|
1028
|
+
body: await parseErrorBody(output.body, context),
|
|
1029
1029
|
};
|
|
1030
1030
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1031
1031
|
switch (errorCode) {
|
|
@@ -1068,7 +1068,7 @@ exports.deserializeAws_json1_1DeregisterTaskDefinitionCommand = deserializeAws_j
|
|
|
1068
1068
|
const deserializeAws_json1_1DeregisterTaskDefinitionCommandError = async (output, context) => {
|
|
1069
1069
|
const parsedOutput = {
|
|
1070
1070
|
...output,
|
|
1071
|
-
body: await
|
|
1071
|
+
body: await parseErrorBody(output.body, context),
|
|
1072
1072
|
};
|
|
1073
1073
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1074
1074
|
switch (errorCode) {
|
|
@@ -1108,7 +1108,7 @@ exports.deserializeAws_json1_1DescribeCapacityProvidersCommand = deserializeAws_
|
|
|
1108
1108
|
const deserializeAws_json1_1DescribeCapacityProvidersCommandError = async (output, context) => {
|
|
1109
1109
|
const parsedOutput = {
|
|
1110
1110
|
...output,
|
|
1111
|
-
body: await
|
|
1111
|
+
body: await parseErrorBody(output.body, context),
|
|
1112
1112
|
};
|
|
1113
1113
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1114
1114
|
switch (errorCode) {
|
|
@@ -1148,7 +1148,7 @@ exports.deserializeAws_json1_1DescribeClustersCommand = deserializeAws_json1_1De
|
|
|
1148
1148
|
const deserializeAws_json1_1DescribeClustersCommandError = async (output, context) => {
|
|
1149
1149
|
const parsedOutput = {
|
|
1150
1150
|
...output,
|
|
1151
|
-
body: await
|
|
1151
|
+
body: await parseErrorBody(output.body, context),
|
|
1152
1152
|
};
|
|
1153
1153
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1154
1154
|
switch (errorCode) {
|
|
@@ -1188,7 +1188,7 @@ exports.deserializeAws_json1_1DescribeContainerInstancesCommand = deserializeAws
|
|
|
1188
1188
|
const deserializeAws_json1_1DescribeContainerInstancesCommandError = async (output, context) => {
|
|
1189
1189
|
const parsedOutput = {
|
|
1190
1190
|
...output,
|
|
1191
|
-
body: await
|
|
1191
|
+
body: await parseErrorBody(output.body, context),
|
|
1192
1192
|
};
|
|
1193
1193
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1194
1194
|
switch (errorCode) {
|
|
@@ -1231,7 +1231,7 @@ exports.deserializeAws_json1_1DescribeServicesCommand = deserializeAws_json1_1De
|
|
|
1231
1231
|
const deserializeAws_json1_1DescribeServicesCommandError = async (output, context) => {
|
|
1232
1232
|
const parsedOutput = {
|
|
1233
1233
|
...output,
|
|
1234
|
-
body: await
|
|
1234
|
+
body: await parseErrorBody(output.body, context),
|
|
1235
1235
|
};
|
|
1236
1236
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1237
1237
|
switch (errorCode) {
|
|
@@ -1274,7 +1274,7 @@ exports.deserializeAws_json1_1DescribeTaskDefinitionCommand = deserializeAws_jso
|
|
|
1274
1274
|
const deserializeAws_json1_1DescribeTaskDefinitionCommandError = async (output, context) => {
|
|
1275
1275
|
const parsedOutput = {
|
|
1276
1276
|
...output,
|
|
1277
|
-
body: await
|
|
1277
|
+
body: await parseErrorBody(output.body, context),
|
|
1278
1278
|
};
|
|
1279
1279
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1280
1280
|
switch (errorCode) {
|
|
@@ -1314,7 +1314,7 @@ exports.deserializeAws_json1_1DescribeTasksCommand = deserializeAws_json1_1Descr
|
|
|
1314
1314
|
const deserializeAws_json1_1DescribeTasksCommandError = async (output, context) => {
|
|
1315
1315
|
const parsedOutput = {
|
|
1316
1316
|
...output,
|
|
1317
|
-
body: await
|
|
1317
|
+
body: await parseErrorBody(output.body, context),
|
|
1318
1318
|
};
|
|
1319
1319
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1320
1320
|
switch (errorCode) {
|
|
@@ -1357,7 +1357,7 @@ exports.deserializeAws_json1_1DescribeTaskSetsCommand = deserializeAws_json1_1De
|
|
|
1357
1357
|
const deserializeAws_json1_1DescribeTaskSetsCommandError = async (output, context) => {
|
|
1358
1358
|
const parsedOutput = {
|
|
1359
1359
|
...output,
|
|
1360
|
-
body: await
|
|
1360
|
+
body: await parseErrorBody(output.body, context),
|
|
1361
1361
|
};
|
|
1362
1362
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1363
1363
|
switch (errorCode) {
|
|
@@ -1412,7 +1412,7 @@ exports.deserializeAws_json1_1DiscoverPollEndpointCommand = deserializeAws_json1
|
|
|
1412
1412
|
const deserializeAws_json1_1DiscoverPollEndpointCommandError = async (output, context) => {
|
|
1413
1413
|
const parsedOutput = {
|
|
1414
1414
|
...output,
|
|
1415
|
-
body: await
|
|
1415
|
+
body: await parseErrorBody(output.body, context),
|
|
1416
1416
|
};
|
|
1417
1417
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1418
1418
|
switch (errorCode) {
|
|
@@ -1449,7 +1449,7 @@ exports.deserializeAws_json1_1ExecuteCommandCommand = deserializeAws_json1_1Exec
|
|
|
1449
1449
|
const deserializeAws_json1_1ExecuteCommandCommandError = async (output, context) => {
|
|
1450
1450
|
const parsedOutput = {
|
|
1451
1451
|
...output,
|
|
1452
|
-
body: await
|
|
1452
|
+
body: await parseErrorBody(output.body, context),
|
|
1453
1453
|
};
|
|
1454
1454
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1455
1455
|
switch (errorCode) {
|
|
@@ -1498,7 +1498,7 @@ exports.deserializeAws_json1_1ListAccountSettingsCommand = deserializeAws_json1_
|
|
|
1498
1498
|
const deserializeAws_json1_1ListAccountSettingsCommandError = async (output, context) => {
|
|
1499
1499
|
const parsedOutput = {
|
|
1500
1500
|
...output,
|
|
1501
|
-
body: await
|
|
1501
|
+
body: await parseErrorBody(output.body, context),
|
|
1502
1502
|
};
|
|
1503
1503
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1504
1504
|
switch (errorCode) {
|
|
@@ -1538,7 +1538,7 @@ exports.deserializeAws_json1_1ListAttributesCommand = deserializeAws_json1_1List
|
|
|
1538
1538
|
const deserializeAws_json1_1ListAttributesCommandError = async (output, context) => {
|
|
1539
1539
|
const parsedOutput = {
|
|
1540
1540
|
...output,
|
|
1541
|
-
body: await
|
|
1541
|
+
body: await parseErrorBody(output.body, context),
|
|
1542
1542
|
};
|
|
1543
1543
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1544
1544
|
switch (errorCode) {
|
|
@@ -1575,7 +1575,7 @@ exports.deserializeAws_json1_1ListClustersCommand = deserializeAws_json1_1ListCl
|
|
|
1575
1575
|
const deserializeAws_json1_1ListClustersCommandError = async (output, context) => {
|
|
1576
1576
|
const parsedOutput = {
|
|
1577
1577
|
...output,
|
|
1578
|
-
body: await
|
|
1578
|
+
body: await parseErrorBody(output.body, context),
|
|
1579
1579
|
};
|
|
1580
1580
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1581
1581
|
switch (errorCode) {
|
|
@@ -1615,7 +1615,7 @@ exports.deserializeAws_json1_1ListContainerInstancesCommand = deserializeAws_jso
|
|
|
1615
1615
|
const deserializeAws_json1_1ListContainerInstancesCommandError = async (output, context) => {
|
|
1616
1616
|
const parsedOutput = {
|
|
1617
1617
|
...output,
|
|
1618
|
-
body: await
|
|
1618
|
+
body: await parseErrorBody(output.body, context),
|
|
1619
1619
|
};
|
|
1620
1620
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1621
1621
|
switch (errorCode) {
|
|
@@ -1658,7 +1658,7 @@ exports.deserializeAws_json1_1ListServicesCommand = deserializeAws_json1_1ListSe
|
|
|
1658
1658
|
const deserializeAws_json1_1ListServicesCommandError = async (output, context) => {
|
|
1659
1659
|
const parsedOutput = {
|
|
1660
1660
|
...output,
|
|
1661
|
-
body: await
|
|
1661
|
+
body: await parseErrorBody(output.body, context),
|
|
1662
1662
|
};
|
|
1663
1663
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1664
1664
|
switch (errorCode) {
|
|
@@ -1701,7 +1701,7 @@ exports.deserializeAws_json1_1ListTagsForResourceCommand = deserializeAws_json1_
|
|
|
1701
1701
|
const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
|
|
1702
1702
|
const parsedOutput = {
|
|
1703
1703
|
...output,
|
|
1704
|
-
body: await
|
|
1704
|
+
body: await parseErrorBody(output.body, context),
|
|
1705
1705
|
};
|
|
1706
1706
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1707
1707
|
switch (errorCode) {
|
|
@@ -1744,7 +1744,7 @@ exports.deserializeAws_json1_1ListTaskDefinitionFamiliesCommand = deserializeAws
|
|
|
1744
1744
|
const deserializeAws_json1_1ListTaskDefinitionFamiliesCommandError = async (output, context) => {
|
|
1745
1745
|
const parsedOutput = {
|
|
1746
1746
|
...output,
|
|
1747
|
-
body: await
|
|
1747
|
+
body: await parseErrorBody(output.body, context),
|
|
1748
1748
|
};
|
|
1749
1749
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1750
1750
|
switch (errorCode) {
|
|
@@ -1784,7 +1784,7 @@ exports.deserializeAws_json1_1ListTaskDefinitionsCommand = deserializeAws_json1_
|
|
|
1784
1784
|
const deserializeAws_json1_1ListTaskDefinitionsCommandError = async (output, context) => {
|
|
1785
1785
|
const parsedOutput = {
|
|
1786
1786
|
...output,
|
|
1787
|
-
body: await
|
|
1787
|
+
body: await parseErrorBody(output.body, context),
|
|
1788
1788
|
};
|
|
1789
1789
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1790
1790
|
switch (errorCode) {
|
|
@@ -1824,7 +1824,7 @@ exports.deserializeAws_json1_1ListTasksCommand = deserializeAws_json1_1ListTasks
|
|
|
1824
1824
|
const deserializeAws_json1_1ListTasksCommandError = async (output, context) => {
|
|
1825
1825
|
const parsedOutput = {
|
|
1826
1826
|
...output,
|
|
1827
|
-
body: await
|
|
1827
|
+
body: await parseErrorBody(output.body, context),
|
|
1828
1828
|
};
|
|
1829
1829
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1830
1830
|
switch (errorCode) {
|
|
@@ -1870,7 +1870,7 @@ exports.deserializeAws_json1_1PutAccountSettingCommand = deserializeAws_json1_1P
|
|
|
1870
1870
|
const deserializeAws_json1_1PutAccountSettingCommandError = async (output, context) => {
|
|
1871
1871
|
const parsedOutput = {
|
|
1872
1872
|
...output,
|
|
1873
|
-
body: await
|
|
1873
|
+
body: await parseErrorBody(output.body, context),
|
|
1874
1874
|
};
|
|
1875
1875
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1876
1876
|
switch (errorCode) {
|
|
@@ -1910,7 +1910,7 @@ exports.deserializeAws_json1_1PutAccountSettingDefaultCommand = deserializeAws_j
|
|
|
1910
1910
|
const deserializeAws_json1_1PutAccountSettingDefaultCommandError = async (output, context) => {
|
|
1911
1911
|
const parsedOutput = {
|
|
1912
1912
|
...output,
|
|
1913
|
-
body: await
|
|
1913
|
+
body: await parseErrorBody(output.body, context),
|
|
1914
1914
|
};
|
|
1915
1915
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1916
1916
|
switch (errorCode) {
|
|
@@ -1950,7 +1950,7 @@ exports.deserializeAws_json1_1PutAttributesCommand = deserializeAws_json1_1PutAt
|
|
|
1950
1950
|
const deserializeAws_json1_1PutAttributesCommandError = async (output, context) => {
|
|
1951
1951
|
const parsedOutput = {
|
|
1952
1952
|
...output,
|
|
1953
|
-
body: await
|
|
1953
|
+
body: await parseErrorBody(output.body, context),
|
|
1954
1954
|
};
|
|
1955
1955
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1956
1956
|
switch (errorCode) {
|
|
@@ -1993,7 +1993,7 @@ exports.deserializeAws_json1_1PutClusterCapacityProvidersCommand = deserializeAw
|
|
|
1993
1993
|
const deserializeAws_json1_1PutClusterCapacityProvidersCommandError = async (output, context) => {
|
|
1994
1994
|
const parsedOutput = {
|
|
1995
1995
|
...output,
|
|
1996
|
-
body: await
|
|
1996
|
+
body: await parseErrorBody(output.body, context),
|
|
1997
1997
|
};
|
|
1998
1998
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1999
1999
|
switch (errorCode) {
|
|
@@ -2042,7 +2042,7 @@ exports.deserializeAws_json1_1RegisterContainerInstanceCommand = deserializeAws_
|
|
|
2042
2042
|
const deserializeAws_json1_1RegisterContainerInstanceCommandError = async (output, context) => {
|
|
2043
2043
|
const parsedOutput = {
|
|
2044
2044
|
...output,
|
|
2045
|
-
body: await
|
|
2045
|
+
body: await parseErrorBody(output.body, context),
|
|
2046
2046
|
};
|
|
2047
2047
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2048
2048
|
switch (errorCode) {
|
|
@@ -2082,7 +2082,7 @@ exports.deserializeAws_json1_1RegisterTaskDefinitionCommand = deserializeAws_jso
|
|
|
2082
2082
|
const deserializeAws_json1_1RegisterTaskDefinitionCommandError = async (output, context) => {
|
|
2083
2083
|
const parsedOutput = {
|
|
2084
2084
|
...output,
|
|
2085
|
-
body: await
|
|
2085
|
+
body: await parseErrorBody(output.body, context),
|
|
2086
2086
|
};
|
|
2087
2087
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2088
2088
|
switch (errorCode) {
|
|
@@ -2122,7 +2122,7 @@ exports.deserializeAws_json1_1RunTaskCommand = deserializeAws_json1_1RunTaskComm
|
|
|
2122
2122
|
const deserializeAws_json1_1RunTaskCommandError = async (output, context) => {
|
|
2123
2123
|
const parsedOutput = {
|
|
2124
2124
|
...output,
|
|
2125
|
-
body: await
|
|
2125
|
+
body: await parseErrorBody(output.body, context),
|
|
2126
2126
|
};
|
|
2127
2127
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2128
2128
|
switch (errorCode) {
|
|
@@ -2180,7 +2180,7 @@ exports.deserializeAws_json1_1StartTaskCommand = deserializeAws_json1_1StartTask
|
|
|
2180
2180
|
const deserializeAws_json1_1StartTaskCommandError = async (output, context) => {
|
|
2181
2181
|
const parsedOutput = {
|
|
2182
2182
|
...output,
|
|
2183
|
-
body: await
|
|
2183
|
+
body: await parseErrorBody(output.body, context),
|
|
2184
2184
|
};
|
|
2185
2185
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2186
2186
|
switch (errorCode) {
|
|
@@ -2223,7 +2223,7 @@ exports.deserializeAws_json1_1StopTaskCommand = deserializeAws_json1_1StopTaskCo
|
|
|
2223
2223
|
const deserializeAws_json1_1StopTaskCommandError = async (output, context) => {
|
|
2224
2224
|
const parsedOutput = {
|
|
2225
2225
|
...output,
|
|
2226
|
-
body: await
|
|
2226
|
+
body: await parseErrorBody(output.body, context),
|
|
2227
2227
|
};
|
|
2228
2228
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2229
2229
|
switch (errorCode) {
|
|
@@ -2266,7 +2266,7 @@ exports.deserializeAws_json1_1SubmitAttachmentStateChangesCommand = deserializeA
|
|
|
2266
2266
|
const deserializeAws_json1_1SubmitAttachmentStateChangesCommandError = async (output, context) => {
|
|
2267
2267
|
const parsedOutput = {
|
|
2268
2268
|
...output,
|
|
2269
|
-
body: await
|
|
2269
|
+
body: await parseErrorBody(output.body, context),
|
|
2270
2270
|
};
|
|
2271
2271
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2272
2272
|
switch (errorCode) {
|
|
@@ -2309,7 +2309,7 @@ exports.deserializeAws_json1_1SubmitContainerStateChangeCommand = deserializeAws
|
|
|
2309
2309
|
const deserializeAws_json1_1SubmitContainerStateChangeCommandError = async (output, context) => {
|
|
2310
2310
|
const parsedOutput = {
|
|
2311
2311
|
...output,
|
|
2312
|
-
body: await
|
|
2312
|
+
body: await parseErrorBody(output.body, context),
|
|
2313
2313
|
};
|
|
2314
2314
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2315
2315
|
switch (errorCode) {
|
|
@@ -2349,7 +2349,7 @@ exports.deserializeAws_json1_1SubmitTaskStateChangeCommand = deserializeAws_json
|
|
|
2349
2349
|
const deserializeAws_json1_1SubmitTaskStateChangeCommandError = async (output, context) => {
|
|
2350
2350
|
const parsedOutput = {
|
|
2351
2351
|
...output,
|
|
2352
|
-
body: await
|
|
2352
|
+
body: await parseErrorBody(output.body, context),
|
|
2353
2353
|
};
|
|
2354
2354
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2355
2355
|
switch (errorCode) {
|
|
@@ -2392,7 +2392,7 @@ exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagReso
|
|
|
2392
2392
|
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
2393
2393
|
const parsedOutput = {
|
|
2394
2394
|
...output,
|
|
2395
|
-
body: await
|
|
2395
|
+
body: await parseErrorBody(output.body, context),
|
|
2396
2396
|
};
|
|
2397
2397
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2398
2398
|
switch (errorCode) {
|
|
@@ -2438,7 +2438,7 @@ exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1Untag
|
|
|
2438
2438
|
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
2439
2439
|
const parsedOutput = {
|
|
2440
2440
|
...output,
|
|
2441
|
-
body: await
|
|
2441
|
+
body: await parseErrorBody(output.body, context),
|
|
2442
2442
|
};
|
|
2443
2443
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2444
2444
|
switch (errorCode) {
|
|
@@ -2484,7 +2484,7 @@ exports.deserializeAws_json1_1UpdateCapacityProviderCommand = deserializeAws_jso
|
|
|
2484
2484
|
const deserializeAws_json1_1UpdateCapacityProviderCommandError = async (output, context) => {
|
|
2485
2485
|
const parsedOutput = {
|
|
2486
2486
|
...output,
|
|
2487
|
-
body: await
|
|
2487
|
+
body: await parseErrorBody(output.body, context),
|
|
2488
2488
|
};
|
|
2489
2489
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2490
2490
|
switch (errorCode) {
|
|
@@ -2524,7 +2524,7 @@ exports.deserializeAws_json1_1UpdateClusterCommand = deserializeAws_json1_1Updat
|
|
|
2524
2524
|
const deserializeAws_json1_1UpdateClusterCommandError = async (output, context) => {
|
|
2525
2525
|
const parsedOutput = {
|
|
2526
2526
|
...output,
|
|
2527
|
-
body: await
|
|
2527
|
+
body: await parseErrorBody(output.body, context),
|
|
2528
2528
|
};
|
|
2529
2529
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2530
2530
|
switch (errorCode) {
|
|
@@ -2567,7 +2567,7 @@ exports.deserializeAws_json1_1UpdateClusterSettingsCommand = deserializeAws_json
|
|
|
2567
2567
|
const deserializeAws_json1_1UpdateClusterSettingsCommandError = async (output, context) => {
|
|
2568
2568
|
const parsedOutput = {
|
|
2569
2569
|
...output,
|
|
2570
|
-
body: await
|
|
2570
|
+
body: await parseErrorBody(output.body, context),
|
|
2571
2571
|
};
|
|
2572
2572
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2573
2573
|
switch (errorCode) {
|
|
@@ -2610,7 +2610,7 @@ exports.deserializeAws_json1_1UpdateContainerAgentCommand = deserializeAws_json1
|
|
|
2610
2610
|
const deserializeAws_json1_1UpdateContainerAgentCommandError = async (output, context) => {
|
|
2611
2611
|
const parsedOutput = {
|
|
2612
2612
|
...output,
|
|
2613
|
-
body: await
|
|
2613
|
+
body: await parseErrorBody(output.body, context),
|
|
2614
2614
|
};
|
|
2615
2615
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2616
2616
|
switch (errorCode) {
|
|
@@ -2662,7 +2662,7 @@ exports.deserializeAws_json1_1UpdateContainerInstancesStateCommand = deserialize
|
|
|
2662
2662
|
const deserializeAws_json1_1UpdateContainerInstancesStateCommandError = async (output, context) => {
|
|
2663
2663
|
const parsedOutput = {
|
|
2664
2664
|
...output,
|
|
2665
|
-
body: await
|
|
2665
|
+
body: await parseErrorBody(output.body, context),
|
|
2666
2666
|
};
|
|
2667
2667
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2668
2668
|
switch (errorCode) {
|
|
@@ -2705,7 +2705,7 @@ exports.deserializeAws_json1_1UpdateServiceCommand = deserializeAws_json1_1Updat
|
|
|
2705
2705
|
const deserializeAws_json1_1UpdateServiceCommandError = async (output, context) => {
|
|
2706
2706
|
const parsedOutput = {
|
|
2707
2707
|
...output,
|
|
2708
|
-
body: await
|
|
2708
|
+
body: await parseErrorBody(output.body, context),
|
|
2709
2709
|
};
|
|
2710
2710
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2711
2711
|
switch (errorCode) {
|
|
@@ -2763,7 +2763,7 @@ exports.deserializeAws_json1_1UpdateServicePrimaryTaskSetCommand = deserializeAw
|
|
|
2763
2763
|
const deserializeAws_json1_1UpdateServicePrimaryTaskSetCommandError = async (output, context) => {
|
|
2764
2764
|
const parsedOutput = {
|
|
2765
2765
|
...output,
|
|
2766
|
-
body: await
|
|
2766
|
+
body: await parseErrorBody(output.body, context),
|
|
2767
2767
|
};
|
|
2768
2768
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2769
2769
|
switch (errorCode) {
|
|
@@ -2821,7 +2821,7 @@ exports.deserializeAws_json1_1UpdateTaskSetCommand = deserializeAws_json1_1Updat
|
|
|
2821
2821
|
const deserializeAws_json1_1UpdateTaskSetCommandError = async (output, context) => {
|
|
2822
2822
|
const parsedOutput = {
|
|
2823
2823
|
...output,
|
|
2824
|
-
body: await
|
|
2824
|
+
body: await parseErrorBody(output.body, context),
|
|
2825
2825
|
};
|
|
2826
2826
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2827
2827
|
switch (errorCode) {
|
|
@@ -6497,6 +6497,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
6497
6497
|
}
|
|
6498
6498
|
return {};
|
|
6499
6499
|
});
|
|
6500
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
6501
|
+
var _a;
|
|
6502
|
+
const value = await parseBody(errorBody, context);
|
|
6503
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
6504
|
+
return value;
|
|
6505
|
+
};
|
|
6500
6506
|
const loadRestJsonErrorCode = (output, data) => {
|
|
6501
6507
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
6502
6508
|
const sanitizeErrorCode = (rawValue) => {
|