@aws-sdk/client-emr 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/EMR.js +210 -217
- package/dist-es/EMRClient.js +22 -28
- package/dist-es/commands/AddInstanceFleetCommand.js +21 -28
- package/dist-es/commands/AddInstanceGroupsCommand.js +21 -28
- package/dist-es/commands/AddJobFlowStepsCommand.js +21 -28
- package/dist-es/commands/AddTagsCommand.js +21 -28
- package/dist-es/commands/CancelStepsCommand.js +21 -28
- package/dist-es/commands/CreateSecurityConfigurationCommand.js +21 -28
- package/dist-es/commands/CreateStudioCommand.js +21 -28
- package/dist-es/commands/CreateStudioSessionMappingCommand.js +22 -29
- package/dist-es/commands/DeleteSecurityConfigurationCommand.js +21 -28
- package/dist-es/commands/DeleteStudioCommand.js +22 -29
- package/dist-es/commands/DeleteStudioSessionMappingCommand.js +22 -29
- package/dist-es/commands/DescribeClusterCommand.js +21 -28
- package/dist-es/commands/DescribeJobFlowsCommand.js +21 -28
- package/dist-es/commands/DescribeNotebookExecutionCommand.js +21 -28
- package/dist-es/commands/DescribeReleaseLabelCommand.js +21 -28
- package/dist-es/commands/DescribeSecurityConfigurationCommand.js +21 -28
- package/dist-es/commands/DescribeStepCommand.js +21 -28
- package/dist-es/commands/DescribeStudioCommand.js +21 -28
- package/dist-es/commands/GetAutoTerminationPolicyCommand.js +21 -28
- package/dist-es/commands/GetBlockPublicAccessConfigurationCommand.js +21 -28
- package/dist-es/commands/GetManagedScalingPolicyCommand.js +21 -28
- package/dist-es/commands/GetStudioSessionMappingCommand.js +21 -28
- package/dist-es/commands/ListBootstrapActionsCommand.js +21 -28
- package/dist-es/commands/ListClustersCommand.js +21 -28
- package/dist-es/commands/ListInstanceFleetsCommand.js +21 -28
- package/dist-es/commands/ListInstanceGroupsCommand.js +21 -28
- package/dist-es/commands/ListInstancesCommand.js +21 -28
- package/dist-es/commands/ListNotebookExecutionsCommand.js +21 -28
- package/dist-es/commands/ListReleaseLabelsCommand.js +21 -28
- package/dist-es/commands/ListSecurityConfigurationsCommand.js +21 -28
- package/dist-es/commands/ListStepsCommand.js +21 -28
- package/dist-es/commands/ListStudioSessionMappingsCommand.js +21 -28
- package/dist-es/commands/ListStudiosCommand.js +21 -28
- package/dist-es/commands/ModifyClusterCommand.js +21 -28
- package/dist-es/commands/ModifyInstanceFleetCommand.js +22 -29
- package/dist-es/commands/ModifyInstanceGroupsCommand.js +22 -29
- package/dist-es/commands/PutAutoScalingPolicyCommand.js +21 -28
- package/dist-es/commands/PutAutoTerminationPolicyCommand.js +21 -28
- package/dist-es/commands/PutBlockPublicAccessConfigurationCommand.js +21 -28
- package/dist-es/commands/PutManagedScalingPolicyCommand.js +21 -28
- package/dist-es/commands/RemoveAutoScalingPolicyCommand.js +21 -28
- package/dist-es/commands/RemoveAutoTerminationPolicyCommand.js +21 -28
- package/dist-es/commands/RemoveManagedScalingPolicyCommand.js +21 -28
- package/dist-es/commands/RemoveTagsCommand.js +21 -28
- package/dist-es/commands/RunJobFlowCommand.js +21 -28
- package/dist-es/commands/SetTerminationProtectionCommand.js +22 -29
- package/dist-es/commands/SetVisibleToAllUsersCommand.js +22 -29
- package/dist-es/commands/StartNotebookExecutionCommand.js +21 -28
- package/dist-es/commands/StopNotebookExecutionCommand.js +22 -29
- package/dist-es/commands/TerminateJobFlowsCommand.js +22 -29
- package/dist-es/commands/UpdateStudioCommand.js +22 -29
- package/dist-es/commands/UpdateStudioSessionMappingCommand.js +22 -29
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/EMRServiceException.js +5 -10
- package/dist-es/models/models_0.js +591 -222
- package/dist-es/pagination/ListBootstrapActionsPaginator.js +24 -67
- package/dist-es/pagination/ListClustersPaginator.js +24 -67
- package/dist-es/pagination/ListInstanceFleetsPaginator.js +24 -67
- package/dist-es/pagination/ListInstanceGroupsPaginator.js +24 -67
- package/dist-es/pagination/ListInstancesPaginator.js +24 -67
- package/dist-es/pagination/ListNotebookExecutionsPaginator.js +24 -67
- package/dist-es/pagination/ListReleaseLabelsPaginator.js +25 -68
- package/dist-es/pagination/ListSecurityConfigurationsPaginator.js +24 -67
- package/dist-es/pagination/ListStepsPaginator.js +24 -67
- package/dist-es/pagination/ListStudioSessionMappingsPaginator.js +24 -67
- package/dist-es/pagination/ListStudiosPaginator.js +24 -67
- package/dist-es/protocols/Aws_json1_1.js +3396 -4075
- 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/waitForClusterRunning.js +63 -83
- package/dist-es/waiters/waitForClusterTerminated.js +36 -56
- package/dist-es/waiters/waitForStepComplete.js +45 -65
- 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-emr
|
|
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-emr
|
|
@@ -544,7 +544,7 @@ exports.deserializeAws_json1_1AddInstanceFleetCommand = deserializeAws_json1_1Ad
|
|
|
544
544
|
const deserializeAws_json1_1AddInstanceFleetCommandError = 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) {
|
|
@@ -581,7 +581,7 @@ exports.deserializeAws_json1_1AddInstanceGroupsCommand = deserializeAws_json1_1A
|
|
|
581
581
|
const deserializeAws_json1_1AddInstanceGroupsCommandError = async (output, context) => {
|
|
582
582
|
const parsedOutput = {
|
|
583
583
|
...output,
|
|
584
|
-
body: await
|
|
584
|
+
body: await parseErrorBody(output.body, context),
|
|
585
585
|
};
|
|
586
586
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
587
587
|
switch (errorCode) {
|
|
@@ -615,7 +615,7 @@ exports.deserializeAws_json1_1AddJobFlowStepsCommand = deserializeAws_json1_1Add
|
|
|
615
615
|
const deserializeAws_json1_1AddJobFlowStepsCommandError = async (output, context) => {
|
|
616
616
|
const parsedOutput = {
|
|
617
617
|
...output,
|
|
618
|
-
body: await
|
|
618
|
+
body: await parseErrorBody(output.body, context),
|
|
619
619
|
};
|
|
620
620
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
621
621
|
switch (errorCode) {
|
|
@@ -649,7 +649,7 @@ exports.deserializeAws_json1_1AddTagsCommand = deserializeAws_json1_1AddTagsComm
|
|
|
649
649
|
const deserializeAws_json1_1AddTagsCommandError = async (output, context) => {
|
|
650
650
|
const parsedOutput = {
|
|
651
651
|
...output,
|
|
652
|
-
body: await
|
|
652
|
+
body: await parseErrorBody(output.body, context),
|
|
653
653
|
};
|
|
654
654
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
655
655
|
switch (errorCode) {
|
|
@@ -686,7 +686,7 @@ exports.deserializeAws_json1_1CancelStepsCommand = deserializeAws_json1_1CancelS
|
|
|
686
686
|
const deserializeAws_json1_1CancelStepsCommandError = async (output, context) => {
|
|
687
687
|
const parsedOutput = {
|
|
688
688
|
...output,
|
|
689
|
-
body: await
|
|
689
|
+
body: await parseErrorBody(output.body, context),
|
|
690
690
|
};
|
|
691
691
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
692
692
|
switch (errorCode) {
|
|
@@ -723,7 +723,7 @@ exports.deserializeAws_json1_1CreateSecurityConfigurationCommand = deserializeAw
|
|
|
723
723
|
const deserializeAws_json1_1CreateSecurityConfigurationCommandError = async (output, context) => {
|
|
724
724
|
const parsedOutput = {
|
|
725
725
|
...output,
|
|
726
|
-
body: await
|
|
726
|
+
body: await parseErrorBody(output.body, context),
|
|
727
727
|
};
|
|
728
728
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
729
729
|
switch (errorCode) {
|
|
@@ -760,7 +760,7 @@ exports.deserializeAws_json1_1CreateStudioCommand = deserializeAws_json1_1Create
|
|
|
760
760
|
const deserializeAws_json1_1CreateStudioCommandError = async (output, context) => {
|
|
761
761
|
const parsedOutput = {
|
|
762
762
|
...output,
|
|
763
|
-
body: await
|
|
763
|
+
body: await parseErrorBody(output.body, context),
|
|
764
764
|
};
|
|
765
765
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
766
766
|
switch (errorCode) {
|
|
@@ -794,7 +794,7 @@ exports.deserializeAws_json1_1CreateStudioSessionMappingCommand = deserializeAws
|
|
|
794
794
|
const deserializeAws_json1_1CreateStudioSessionMappingCommandError = async (output, context) => {
|
|
795
795
|
const parsedOutput = {
|
|
796
796
|
...output,
|
|
797
|
-
body: await
|
|
797
|
+
body: await parseErrorBody(output.body, context),
|
|
798
798
|
};
|
|
799
799
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
800
800
|
switch (errorCode) {
|
|
@@ -831,7 +831,7 @@ exports.deserializeAws_json1_1DeleteSecurityConfigurationCommand = deserializeAw
|
|
|
831
831
|
const deserializeAws_json1_1DeleteSecurityConfigurationCommandError = async (output, context) => {
|
|
832
832
|
const parsedOutput = {
|
|
833
833
|
...output,
|
|
834
|
-
body: await
|
|
834
|
+
body: await parseErrorBody(output.body, context),
|
|
835
835
|
};
|
|
836
836
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
837
837
|
switch (errorCode) {
|
|
@@ -865,7 +865,7 @@ exports.deserializeAws_json1_1DeleteStudioCommand = deserializeAws_json1_1Delete
|
|
|
865
865
|
const deserializeAws_json1_1DeleteStudioCommandError = async (output, context) => {
|
|
866
866
|
const parsedOutput = {
|
|
867
867
|
...output,
|
|
868
|
-
body: await
|
|
868
|
+
body: await parseErrorBody(output.body, context),
|
|
869
869
|
};
|
|
870
870
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
871
871
|
switch (errorCode) {
|
|
@@ -899,7 +899,7 @@ exports.deserializeAws_json1_1DeleteStudioSessionMappingCommand = deserializeAws
|
|
|
899
899
|
const deserializeAws_json1_1DeleteStudioSessionMappingCommandError = async (output, context) => {
|
|
900
900
|
const parsedOutput = {
|
|
901
901
|
...output,
|
|
902
|
-
body: await
|
|
902
|
+
body: await parseErrorBody(output.body, context),
|
|
903
903
|
};
|
|
904
904
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
905
905
|
switch (errorCode) {
|
|
@@ -936,7 +936,7 @@ exports.deserializeAws_json1_1DescribeClusterCommand = deserializeAws_json1_1Des
|
|
|
936
936
|
const deserializeAws_json1_1DescribeClusterCommandError = async (output, context) => {
|
|
937
937
|
const parsedOutput = {
|
|
938
938
|
...output,
|
|
939
|
-
body: await
|
|
939
|
+
body: await parseErrorBody(output.body, context),
|
|
940
940
|
};
|
|
941
941
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
942
942
|
switch (errorCode) {
|
|
@@ -973,7 +973,7 @@ exports.deserializeAws_json1_1DescribeJobFlowsCommand = deserializeAws_json1_1De
|
|
|
973
973
|
const deserializeAws_json1_1DescribeJobFlowsCommandError = async (output, context) => {
|
|
974
974
|
const parsedOutput = {
|
|
975
975
|
...output,
|
|
976
|
-
body: await
|
|
976
|
+
body: await parseErrorBody(output.body, context),
|
|
977
977
|
};
|
|
978
978
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
979
979
|
switch (errorCode) {
|
|
@@ -1007,7 +1007,7 @@ exports.deserializeAws_json1_1DescribeNotebookExecutionCommand = deserializeAws_
|
|
|
1007
1007
|
const deserializeAws_json1_1DescribeNotebookExecutionCommandError = async (output, context) => {
|
|
1008
1008
|
const parsedOutput = {
|
|
1009
1009
|
...output,
|
|
1010
|
-
body: await
|
|
1010
|
+
body: await parseErrorBody(output.body, context),
|
|
1011
1011
|
};
|
|
1012
1012
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1013
1013
|
switch (errorCode) {
|
|
@@ -1044,7 +1044,7 @@ exports.deserializeAws_json1_1DescribeReleaseLabelCommand = deserializeAws_json1
|
|
|
1044
1044
|
const deserializeAws_json1_1DescribeReleaseLabelCommandError = async (output, context) => {
|
|
1045
1045
|
const parsedOutput = {
|
|
1046
1046
|
...output,
|
|
1047
|
-
body: await
|
|
1047
|
+
body: await parseErrorBody(output.body, context),
|
|
1048
1048
|
};
|
|
1049
1049
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1050
1050
|
switch (errorCode) {
|
|
@@ -1081,7 +1081,7 @@ exports.deserializeAws_json1_1DescribeSecurityConfigurationCommand = deserialize
|
|
|
1081
1081
|
const deserializeAws_json1_1DescribeSecurityConfigurationCommandError = async (output, context) => {
|
|
1082
1082
|
const parsedOutput = {
|
|
1083
1083
|
...output,
|
|
1084
|
-
body: await
|
|
1084
|
+
body: await parseErrorBody(output.body, context),
|
|
1085
1085
|
};
|
|
1086
1086
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1087
1087
|
switch (errorCode) {
|
|
@@ -1118,7 +1118,7 @@ exports.deserializeAws_json1_1DescribeStepCommand = deserializeAws_json1_1Descri
|
|
|
1118
1118
|
const deserializeAws_json1_1DescribeStepCommandError = async (output, context) => {
|
|
1119
1119
|
const parsedOutput = {
|
|
1120
1120
|
...output,
|
|
1121
|
-
body: await
|
|
1121
|
+
body: await parseErrorBody(output.body, context),
|
|
1122
1122
|
};
|
|
1123
1123
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1124
1124
|
switch (errorCode) {
|
|
@@ -1155,7 +1155,7 @@ exports.deserializeAws_json1_1DescribeStudioCommand = deserializeAws_json1_1Desc
|
|
|
1155
1155
|
const deserializeAws_json1_1DescribeStudioCommandError = async (output, context) => {
|
|
1156
1156
|
const parsedOutput = {
|
|
1157
1157
|
...output,
|
|
1158
|
-
body: await
|
|
1158
|
+
body: await parseErrorBody(output.body, context),
|
|
1159
1159
|
};
|
|
1160
1160
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1161
1161
|
switch (errorCode) {
|
|
@@ -1192,7 +1192,7 @@ exports.deserializeAws_json1_1GetAutoTerminationPolicyCommand = deserializeAws_j
|
|
|
1192
1192
|
const deserializeAws_json1_1GetAutoTerminationPolicyCommandError = async (output, context) => {
|
|
1193
1193
|
const parsedOutput = {
|
|
1194
1194
|
...output,
|
|
1195
|
-
body: await
|
|
1195
|
+
body: await parseErrorBody(output.body, context),
|
|
1196
1196
|
};
|
|
1197
1197
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1198
1198
|
const parsedBody = parsedOutput.body;
|
|
@@ -1220,7 +1220,7 @@ exports.deserializeAws_json1_1GetBlockPublicAccessConfigurationCommand = deseria
|
|
|
1220
1220
|
const deserializeAws_json1_1GetBlockPublicAccessConfigurationCommandError = async (output, context) => {
|
|
1221
1221
|
const parsedOutput = {
|
|
1222
1222
|
...output,
|
|
1223
|
-
body: await
|
|
1223
|
+
body: await parseErrorBody(output.body, context),
|
|
1224
1224
|
};
|
|
1225
1225
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1226
1226
|
switch (errorCode) {
|
|
@@ -1257,7 +1257,7 @@ exports.deserializeAws_json1_1GetManagedScalingPolicyCommand = deserializeAws_js
|
|
|
1257
1257
|
const deserializeAws_json1_1GetManagedScalingPolicyCommandError = async (output, context) => {
|
|
1258
1258
|
const parsedOutput = {
|
|
1259
1259
|
...output,
|
|
1260
|
-
body: await
|
|
1260
|
+
body: await parseErrorBody(output.body, context),
|
|
1261
1261
|
};
|
|
1262
1262
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1263
1263
|
const parsedBody = parsedOutput.body;
|
|
@@ -1285,7 +1285,7 @@ exports.deserializeAws_json1_1GetStudioSessionMappingCommand = deserializeAws_js
|
|
|
1285
1285
|
const deserializeAws_json1_1GetStudioSessionMappingCommandError = async (output, context) => {
|
|
1286
1286
|
const parsedOutput = {
|
|
1287
1287
|
...output,
|
|
1288
|
-
body: await
|
|
1288
|
+
body: await parseErrorBody(output.body, context),
|
|
1289
1289
|
};
|
|
1290
1290
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1291
1291
|
switch (errorCode) {
|
|
@@ -1322,7 +1322,7 @@ exports.deserializeAws_json1_1ListBootstrapActionsCommand = deserializeAws_json1
|
|
|
1322
1322
|
const deserializeAws_json1_1ListBootstrapActionsCommandError = async (output, context) => {
|
|
1323
1323
|
const parsedOutput = {
|
|
1324
1324
|
...output,
|
|
1325
|
-
body: await
|
|
1325
|
+
body: await parseErrorBody(output.body, context),
|
|
1326
1326
|
};
|
|
1327
1327
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1328
1328
|
switch (errorCode) {
|
|
@@ -1359,7 +1359,7 @@ exports.deserializeAws_json1_1ListClustersCommand = deserializeAws_json1_1ListCl
|
|
|
1359
1359
|
const deserializeAws_json1_1ListClustersCommandError = async (output, context) => {
|
|
1360
1360
|
const parsedOutput = {
|
|
1361
1361
|
...output,
|
|
1362
|
-
body: await
|
|
1362
|
+
body: await parseErrorBody(output.body, context),
|
|
1363
1363
|
};
|
|
1364
1364
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1365
1365
|
switch (errorCode) {
|
|
@@ -1396,7 +1396,7 @@ exports.deserializeAws_json1_1ListInstanceFleetsCommand = deserializeAws_json1_1
|
|
|
1396
1396
|
const deserializeAws_json1_1ListInstanceFleetsCommandError = async (output, context) => {
|
|
1397
1397
|
const parsedOutput = {
|
|
1398
1398
|
...output,
|
|
1399
|
-
body: await
|
|
1399
|
+
body: await parseErrorBody(output.body, context),
|
|
1400
1400
|
};
|
|
1401
1401
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1402
1402
|
switch (errorCode) {
|
|
@@ -1433,7 +1433,7 @@ exports.deserializeAws_json1_1ListInstanceGroupsCommand = deserializeAws_json1_1
|
|
|
1433
1433
|
const deserializeAws_json1_1ListInstanceGroupsCommandError = async (output, context) => {
|
|
1434
1434
|
const parsedOutput = {
|
|
1435
1435
|
...output,
|
|
1436
|
-
body: await
|
|
1436
|
+
body: await parseErrorBody(output.body, context),
|
|
1437
1437
|
};
|
|
1438
1438
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1439
1439
|
switch (errorCode) {
|
|
@@ -1470,7 +1470,7 @@ exports.deserializeAws_json1_1ListInstancesCommand = deserializeAws_json1_1ListI
|
|
|
1470
1470
|
const deserializeAws_json1_1ListInstancesCommandError = async (output, context) => {
|
|
1471
1471
|
const parsedOutput = {
|
|
1472
1472
|
...output,
|
|
1473
|
-
body: await
|
|
1473
|
+
body: await parseErrorBody(output.body, context),
|
|
1474
1474
|
};
|
|
1475
1475
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1476
1476
|
switch (errorCode) {
|
|
@@ -1507,7 +1507,7 @@ exports.deserializeAws_json1_1ListNotebookExecutionsCommand = deserializeAws_jso
|
|
|
1507
1507
|
const deserializeAws_json1_1ListNotebookExecutionsCommandError = async (output, context) => {
|
|
1508
1508
|
const parsedOutput = {
|
|
1509
1509
|
...output,
|
|
1510
|
-
body: await
|
|
1510
|
+
body: await parseErrorBody(output.body, context),
|
|
1511
1511
|
};
|
|
1512
1512
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1513
1513
|
switch (errorCode) {
|
|
@@ -1544,7 +1544,7 @@ exports.deserializeAws_json1_1ListReleaseLabelsCommand = deserializeAws_json1_1L
|
|
|
1544
1544
|
const deserializeAws_json1_1ListReleaseLabelsCommandError = async (output, context) => {
|
|
1545
1545
|
const parsedOutput = {
|
|
1546
1546
|
...output,
|
|
1547
|
-
body: await
|
|
1547
|
+
body: await parseErrorBody(output.body, context),
|
|
1548
1548
|
};
|
|
1549
1549
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1550
1550
|
switch (errorCode) {
|
|
@@ -1581,7 +1581,7 @@ exports.deserializeAws_json1_1ListSecurityConfigurationsCommand = deserializeAws
|
|
|
1581
1581
|
const deserializeAws_json1_1ListSecurityConfigurationsCommandError = async (output, context) => {
|
|
1582
1582
|
const parsedOutput = {
|
|
1583
1583
|
...output,
|
|
1584
|
-
body: await
|
|
1584
|
+
body: await parseErrorBody(output.body, context),
|
|
1585
1585
|
};
|
|
1586
1586
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1587
1587
|
switch (errorCode) {
|
|
@@ -1618,7 +1618,7 @@ exports.deserializeAws_json1_1ListStepsCommand = deserializeAws_json1_1ListSteps
|
|
|
1618
1618
|
const deserializeAws_json1_1ListStepsCommandError = async (output, context) => {
|
|
1619
1619
|
const parsedOutput = {
|
|
1620
1620
|
...output,
|
|
1621
|
-
body: await
|
|
1621
|
+
body: await parseErrorBody(output.body, context),
|
|
1622
1622
|
};
|
|
1623
1623
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1624
1624
|
switch (errorCode) {
|
|
@@ -1655,7 +1655,7 @@ exports.deserializeAws_json1_1ListStudiosCommand = deserializeAws_json1_1ListStu
|
|
|
1655
1655
|
const deserializeAws_json1_1ListStudiosCommandError = async (output, context) => {
|
|
1656
1656
|
const parsedOutput = {
|
|
1657
1657
|
...output,
|
|
1658
|
-
body: await
|
|
1658
|
+
body: await parseErrorBody(output.body, context),
|
|
1659
1659
|
};
|
|
1660
1660
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1661
1661
|
switch (errorCode) {
|
|
@@ -1692,7 +1692,7 @@ exports.deserializeAws_json1_1ListStudioSessionMappingsCommand = deserializeAws_
|
|
|
1692
1692
|
const deserializeAws_json1_1ListStudioSessionMappingsCommandError = async (output, context) => {
|
|
1693
1693
|
const parsedOutput = {
|
|
1694
1694
|
...output,
|
|
1695
|
-
body: await
|
|
1695
|
+
body: await parseErrorBody(output.body, context),
|
|
1696
1696
|
};
|
|
1697
1697
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1698
1698
|
switch (errorCode) {
|
|
@@ -1729,7 +1729,7 @@ exports.deserializeAws_json1_1ModifyClusterCommand = deserializeAws_json1_1Modif
|
|
|
1729
1729
|
const deserializeAws_json1_1ModifyClusterCommandError = async (output, context) => {
|
|
1730
1730
|
const parsedOutput = {
|
|
1731
1731
|
...output,
|
|
1732
|
-
body: await
|
|
1732
|
+
body: await parseErrorBody(output.body, context),
|
|
1733
1733
|
};
|
|
1734
1734
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1735
1735
|
switch (errorCode) {
|
|
@@ -1763,7 +1763,7 @@ exports.deserializeAws_json1_1ModifyInstanceFleetCommand = deserializeAws_json1_
|
|
|
1763
1763
|
const deserializeAws_json1_1ModifyInstanceFleetCommandError = async (output, context) => {
|
|
1764
1764
|
const parsedOutput = {
|
|
1765
1765
|
...output,
|
|
1766
|
-
body: await
|
|
1766
|
+
body: await parseErrorBody(output.body, context),
|
|
1767
1767
|
};
|
|
1768
1768
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1769
1769
|
switch (errorCode) {
|
|
@@ -1797,7 +1797,7 @@ exports.deserializeAws_json1_1ModifyInstanceGroupsCommand = deserializeAws_json1
|
|
|
1797
1797
|
const deserializeAws_json1_1ModifyInstanceGroupsCommandError = async (output, context) => {
|
|
1798
1798
|
const parsedOutput = {
|
|
1799
1799
|
...output,
|
|
1800
|
-
body: await
|
|
1800
|
+
body: await parseErrorBody(output.body, context),
|
|
1801
1801
|
};
|
|
1802
1802
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1803
1803
|
switch (errorCode) {
|
|
@@ -1831,7 +1831,7 @@ exports.deserializeAws_json1_1PutAutoScalingPolicyCommand = deserializeAws_json1
|
|
|
1831
1831
|
const deserializeAws_json1_1PutAutoScalingPolicyCommandError = async (output, context) => {
|
|
1832
1832
|
const parsedOutput = {
|
|
1833
1833
|
...output,
|
|
1834
|
-
body: await
|
|
1834
|
+
body: await parseErrorBody(output.body, context),
|
|
1835
1835
|
};
|
|
1836
1836
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1837
1837
|
const parsedBody = parsedOutput.body;
|
|
@@ -1859,7 +1859,7 @@ exports.deserializeAws_json1_1PutAutoTerminationPolicyCommand = deserializeAws_j
|
|
|
1859
1859
|
const deserializeAws_json1_1PutAutoTerminationPolicyCommandError = async (output, context) => {
|
|
1860
1860
|
const parsedOutput = {
|
|
1861
1861
|
...output,
|
|
1862
|
-
body: await
|
|
1862
|
+
body: await parseErrorBody(output.body, context),
|
|
1863
1863
|
};
|
|
1864
1864
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1865
1865
|
const parsedBody = parsedOutput.body;
|
|
@@ -1887,7 +1887,7 @@ exports.deserializeAws_json1_1PutBlockPublicAccessConfigurationCommand = deseria
|
|
|
1887
1887
|
const deserializeAws_json1_1PutBlockPublicAccessConfigurationCommandError = async (output, context) => {
|
|
1888
1888
|
const parsedOutput = {
|
|
1889
1889
|
...output,
|
|
1890
|
-
body: await
|
|
1890
|
+
body: await parseErrorBody(output.body, context),
|
|
1891
1891
|
};
|
|
1892
1892
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1893
1893
|
switch (errorCode) {
|
|
@@ -1924,7 +1924,7 @@ exports.deserializeAws_json1_1PutManagedScalingPolicyCommand = deserializeAws_js
|
|
|
1924
1924
|
const deserializeAws_json1_1PutManagedScalingPolicyCommandError = async (output, context) => {
|
|
1925
1925
|
const parsedOutput = {
|
|
1926
1926
|
...output,
|
|
1927
|
-
body: await
|
|
1927
|
+
body: await parseErrorBody(output.body, context),
|
|
1928
1928
|
};
|
|
1929
1929
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1930
1930
|
const parsedBody = parsedOutput.body;
|
|
@@ -1952,7 +1952,7 @@ exports.deserializeAws_json1_1RemoveAutoScalingPolicyCommand = deserializeAws_js
|
|
|
1952
1952
|
const deserializeAws_json1_1RemoveAutoScalingPolicyCommandError = async (output, context) => {
|
|
1953
1953
|
const parsedOutput = {
|
|
1954
1954
|
...output,
|
|
1955
|
-
body: await
|
|
1955
|
+
body: await parseErrorBody(output.body, context),
|
|
1956
1956
|
};
|
|
1957
1957
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1958
1958
|
const parsedBody = parsedOutput.body;
|
|
@@ -1980,7 +1980,7 @@ exports.deserializeAws_json1_1RemoveAutoTerminationPolicyCommand = deserializeAw
|
|
|
1980
1980
|
const deserializeAws_json1_1RemoveAutoTerminationPolicyCommandError = async (output, context) => {
|
|
1981
1981
|
const parsedOutput = {
|
|
1982
1982
|
...output,
|
|
1983
|
-
body: await
|
|
1983
|
+
body: await parseErrorBody(output.body, context),
|
|
1984
1984
|
};
|
|
1985
1985
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1986
1986
|
const parsedBody = parsedOutput.body;
|
|
@@ -2008,7 +2008,7 @@ exports.deserializeAws_json1_1RemoveManagedScalingPolicyCommand = deserializeAws
|
|
|
2008
2008
|
const deserializeAws_json1_1RemoveManagedScalingPolicyCommandError = async (output, context) => {
|
|
2009
2009
|
const parsedOutput = {
|
|
2010
2010
|
...output,
|
|
2011
|
-
body: await
|
|
2011
|
+
body: await parseErrorBody(output.body, context),
|
|
2012
2012
|
};
|
|
2013
2013
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2014
2014
|
const parsedBody = parsedOutput.body;
|
|
@@ -2036,7 +2036,7 @@ exports.deserializeAws_json1_1RemoveTagsCommand = deserializeAws_json1_1RemoveTa
|
|
|
2036
2036
|
const deserializeAws_json1_1RemoveTagsCommandError = async (output, context) => {
|
|
2037
2037
|
const parsedOutput = {
|
|
2038
2038
|
...output,
|
|
2039
|
-
body: await
|
|
2039
|
+
body: await parseErrorBody(output.body, context),
|
|
2040
2040
|
};
|
|
2041
2041
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2042
2042
|
switch (errorCode) {
|
|
@@ -2073,7 +2073,7 @@ exports.deserializeAws_json1_1RunJobFlowCommand = deserializeAws_json1_1RunJobFl
|
|
|
2073
2073
|
const deserializeAws_json1_1RunJobFlowCommandError = async (output, context) => {
|
|
2074
2074
|
const parsedOutput = {
|
|
2075
2075
|
...output,
|
|
2076
|
-
body: await
|
|
2076
|
+
body: await parseErrorBody(output.body, context),
|
|
2077
2077
|
};
|
|
2078
2078
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2079
2079
|
switch (errorCode) {
|
|
@@ -2104,7 +2104,7 @@ exports.deserializeAws_json1_1SetTerminationProtectionCommand = deserializeAws_j
|
|
|
2104
2104
|
const deserializeAws_json1_1SetTerminationProtectionCommandError = async (output, context) => {
|
|
2105
2105
|
const parsedOutput = {
|
|
2106
2106
|
...output,
|
|
2107
|
-
body: await
|
|
2107
|
+
body: await parseErrorBody(output.body, context),
|
|
2108
2108
|
};
|
|
2109
2109
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2110
2110
|
switch (errorCode) {
|
|
@@ -2135,7 +2135,7 @@ exports.deserializeAws_json1_1SetVisibleToAllUsersCommand = deserializeAws_json1
|
|
|
2135
2135
|
const deserializeAws_json1_1SetVisibleToAllUsersCommandError = async (output, context) => {
|
|
2136
2136
|
const parsedOutput = {
|
|
2137
2137
|
...output,
|
|
2138
|
-
body: await
|
|
2138
|
+
body: await parseErrorBody(output.body, context),
|
|
2139
2139
|
};
|
|
2140
2140
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2141
2141
|
switch (errorCode) {
|
|
@@ -2169,7 +2169,7 @@ exports.deserializeAws_json1_1StartNotebookExecutionCommand = deserializeAws_jso
|
|
|
2169
2169
|
const deserializeAws_json1_1StartNotebookExecutionCommandError = async (output, context) => {
|
|
2170
2170
|
const parsedOutput = {
|
|
2171
2171
|
...output,
|
|
2172
|
-
body: await
|
|
2172
|
+
body: await parseErrorBody(output.body, context),
|
|
2173
2173
|
};
|
|
2174
2174
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2175
2175
|
switch (errorCode) {
|
|
@@ -2203,7 +2203,7 @@ exports.deserializeAws_json1_1StopNotebookExecutionCommand = deserializeAws_json
|
|
|
2203
2203
|
const deserializeAws_json1_1StopNotebookExecutionCommandError = async (output, context) => {
|
|
2204
2204
|
const parsedOutput = {
|
|
2205
2205
|
...output,
|
|
2206
|
-
body: await
|
|
2206
|
+
body: await parseErrorBody(output.body, context),
|
|
2207
2207
|
};
|
|
2208
2208
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2209
2209
|
switch (errorCode) {
|
|
@@ -2237,7 +2237,7 @@ exports.deserializeAws_json1_1TerminateJobFlowsCommand = deserializeAws_json1_1T
|
|
|
2237
2237
|
const deserializeAws_json1_1TerminateJobFlowsCommandError = async (output, context) => {
|
|
2238
2238
|
const parsedOutput = {
|
|
2239
2239
|
...output,
|
|
2240
|
-
body: await
|
|
2240
|
+
body: await parseErrorBody(output.body, context),
|
|
2241
2241
|
};
|
|
2242
2242
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2243
2243
|
switch (errorCode) {
|
|
@@ -2268,7 +2268,7 @@ exports.deserializeAws_json1_1UpdateStudioCommand = deserializeAws_json1_1Update
|
|
|
2268
2268
|
const deserializeAws_json1_1UpdateStudioCommandError = async (output, context) => {
|
|
2269
2269
|
const parsedOutput = {
|
|
2270
2270
|
...output,
|
|
2271
|
-
body: await
|
|
2271
|
+
body: await parseErrorBody(output.body, context),
|
|
2272
2272
|
};
|
|
2273
2273
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2274
2274
|
switch (errorCode) {
|
|
@@ -2302,7 +2302,7 @@ exports.deserializeAws_json1_1UpdateStudioSessionMappingCommand = deserializeAws
|
|
|
2302
2302
|
const deserializeAws_json1_1UpdateStudioSessionMappingCommandError = async (output, context) => {
|
|
2303
2303
|
const parsedOutput = {
|
|
2304
2304
|
...output,
|
|
2305
|
-
body: await
|
|
2305
|
+
body: await parseErrorBody(output.body, context),
|
|
2306
2306
|
};
|
|
2307
2307
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2308
2308
|
switch (errorCode) {
|
|
@@ -4963,6 +4963,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
4963
4963
|
}
|
|
4964
4964
|
return {};
|
|
4965
4965
|
});
|
|
4966
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
4967
|
+
var _a;
|
|
4968
|
+
const value = await parseBody(errorBody, context);
|
|
4969
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
4970
|
+
return value;
|
|
4971
|
+
};
|
|
4966
4972
|
const loadRestJsonErrorCode = (output, data) => {
|
|
4967
4973
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
4968
4974
|
const sanitizeErrorCode = (rawValue) => {
|