@aws-sdk/client-emr-serverless 3.523.0 → 3.529.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.
Files changed (33) hide show
  1. package/dist-cjs/index.js +12 -53
  2. package/dist-es/protocols/Aws_restJson1.js +1 -41
  3. package/package.json +17 -17
  4. package/dist-cjs/EMRServerless.js +0 -1
  5. package/dist-cjs/EMRServerlessClient.js +0 -1
  6. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
  7. package/dist-cjs/commands/CancelJobRunCommand.js +0 -1
  8. package/dist-cjs/commands/CreateApplicationCommand.js +0 -1
  9. package/dist-cjs/commands/DeleteApplicationCommand.js +0 -1
  10. package/dist-cjs/commands/GetApplicationCommand.js +0 -1
  11. package/dist-cjs/commands/GetDashboardForJobRunCommand.js +0 -1
  12. package/dist-cjs/commands/GetJobRunCommand.js +0 -1
  13. package/dist-cjs/commands/ListApplicationsCommand.js +0 -1
  14. package/dist-cjs/commands/ListJobRunsCommand.js +0 -1
  15. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
  16. package/dist-cjs/commands/StartApplicationCommand.js +0 -1
  17. package/dist-cjs/commands/StartJobRunCommand.js +0 -1
  18. package/dist-cjs/commands/StopApplicationCommand.js +0 -1
  19. package/dist-cjs/commands/TagResourceCommand.js +0 -1
  20. package/dist-cjs/commands/UntagResourceCommand.js +0 -1
  21. package/dist-cjs/commands/UpdateApplicationCommand.js +0 -1
  22. package/dist-cjs/commands/index.js +0 -1
  23. package/dist-cjs/endpoint/EndpointParameters.js +0 -1
  24. package/dist-cjs/extensionConfiguration.js +0 -1
  25. package/dist-cjs/models/EMRServerlessServiceException.js +0 -1
  26. package/dist-cjs/models/index.js +0 -1
  27. package/dist-cjs/models/models_0.js +0 -1
  28. package/dist-cjs/pagination/Interfaces.js +0 -1
  29. package/dist-cjs/pagination/ListApplicationsPaginator.js +0 -1
  30. package/dist-cjs/pagination/ListJobRunsPaginator.js +0 -1
  31. package/dist-cjs/pagination/index.js +0 -1
  32. package/dist-cjs/protocols/Aws_restJson1.js +0 -1
  33. package/dist-cjs/runtimeExtensions.js +0 -1
package/dist-cjs/index.js CHANGED
@@ -658,7 +658,7 @@ var de_CancelJobRunCommand = /* @__PURE__ */ __name(async (output, context) => {
658
658
  const contents = (0, import_smithy_client.map)({
659
659
  $metadata: deserializeMetadata(output)
660
660
  });
661
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
661
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
662
662
  const doc = (0, import_smithy_client.take)(data, {
663
663
  applicationId: import_smithy_client.expectString,
664
664
  jobRunId: import_smithy_client.expectString
@@ -673,7 +673,7 @@ var de_CreateApplicationCommand = /* @__PURE__ */ __name(async (output, context)
673
673
  const contents = (0, import_smithy_client.map)({
674
674
  $metadata: deserializeMetadata(output)
675
675
  });
676
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
676
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
677
677
  const doc = (0, import_smithy_client.take)(data, {
678
678
  applicationId: import_smithy_client.expectString,
679
679
  arn: import_smithy_client.expectString,
@@ -699,7 +699,7 @@ var de_GetApplicationCommand = /* @__PURE__ */ __name(async (output, context) =>
699
699
  const contents = (0, import_smithy_client.map)({
700
700
  $metadata: deserializeMetadata(output)
701
701
  });
702
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
702
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
703
703
  const doc = (0, import_smithy_client.take)(data, {
704
704
  application: (_) => de_Application(_, context)
705
705
  });
@@ -713,7 +713,7 @@ var de_GetDashboardForJobRunCommand = /* @__PURE__ */ __name(async (output, cont
713
713
  const contents = (0, import_smithy_client.map)({
714
714
  $metadata: deserializeMetadata(output)
715
715
  });
716
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
716
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
717
717
  const doc = (0, import_smithy_client.take)(data, {
718
718
  url: import_smithy_client.expectString
719
719
  });
@@ -727,7 +727,7 @@ var de_GetJobRunCommand = /* @__PURE__ */ __name(async (output, context) => {
727
727
  const contents = (0, import_smithy_client.map)({
728
728
  $metadata: deserializeMetadata(output)
729
729
  });
730
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
730
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
731
731
  const doc = (0, import_smithy_client.take)(data, {
732
732
  jobRun: (_) => de_JobRun(_, context)
733
733
  });
@@ -741,7 +741,7 @@ var de_ListApplicationsCommand = /* @__PURE__ */ __name(async (output, context)
741
741
  const contents = (0, import_smithy_client.map)({
742
742
  $metadata: deserializeMetadata(output)
743
743
  });
744
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
744
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
745
745
  const doc = (0, import_smithy_client.take)(data, {
746
746
  applications: (_) => de_ApplicationList(_, context),
747
747
  nextToken: import_smithy_client.expectString
@@ -756,7 +756,7 @@ var de_ListJobRunsCommand = /* @__PURE__ */ __name(async (output, context) => {
756
756
  const contents = (0, import_smithy_client.map)({
757
757
  $metadata: deserializeMetadata(output)
758
758
  });
759
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
759
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
760
760
  const doc = (0, import_smithy_client.take)(data, {
761
761
  jobRuns: (_) => de_JobRuns(_, context),
762
762
  nextToken: import_smithy_client.expectString
@@ -771,7 +771,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
771
771
  const contents = (0, import_smithy_client.map)({
772
772
  $metadata: deserializeMetadata(output)
773
773
  });
774
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
774
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
775
775
  const doc = (0, import_smithy_client.take)(data, {
776
776
  tags: import_smithy_client._json
777
777
  });
@@ -795,7 +795,7 @@ var de_StartJobRunCommand = /* @__PURE__ */ __name(async (output, context) => {
795
795
  const contents = (0, import_smithy_client.map)({
796
796
  $metadata: deserializeMetadata(output)
797
797
  });
798
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
798
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
799
799
  const doc = (0, import_smithy_client.take)(data, {
800
800
  applicationId: import_smithy_client.expectString,
801
801
  arn: import_smithy_client.expectString,
@@ -841,7 +841,7 @@ var de_UpdateApplicationCommand = /* @__PURE__ */ __name(async (output, context)
841
841
  const contents = (0, import_smithy_client.map)({
842
842
  $metadata: deserializeMetadata(output)
843
843
  });
844
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
844
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
845
845
  const doc = (0, import_smithy_client.take)(data, {
846
846
  application: (_) => de_Application(_, context)
847
847
  });
@@ -851,9 +851,9 @@ var de_UpdateApplicationCommand = /* @__PURE__ */ __name(async (output, context)
851
851
  var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
852
852
  const parsedOutput = {
853
853
  ...output,
854
- body: await parseErrorBody(output.body, context)
854
+ body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
855
855
  };
856
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
856
+ const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
857
857
  switch (errorCode) {
858
858
  case "InternalServerException":
859
859
  case "com.amazonaws.emrserverless#InternalServerException":
@@ -1091,53 +1091,12 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1091
1091
  extendedRequestId: output.headers["x-amz-id-2"],
1092
1092
  cfId: output.headers["x-amz-cf-id"]
1093
1093
  }), "deserializeMetadata");
1094
- var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
1095
1094
  var _cAA = "createdAtAfter";
1096
1095
  var _cAB = "createdAtBefore";
1097
1096
  var _mR = "maxResults";
1098
1097
  var _nT = "nextToken";
1099
1098
  var _s = "states";
1100
1099
  var _tK = "tagKeys";
1101
- var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1102
- if (encoded.length) {
1103
- return JSON.parse(encoded);
1104
- }
1105
- return {};
1106
- }), "parseBody");
1107
- var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
1108
- const value = await parseBody(errorBody, context);
1109
- value.message = value.message ?? value.Message;
1110
- return value;
1111
- }, "parseErrorBody");
1112
- var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
1113
- const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
1114
- const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
1115
- let cleanValue = rawValue;
1116
- if (typeof cleanValue === "number") {
1117
- cleanValue = cleanValue.toString();
1118
- }
1119
- if (cleanValue.indexOf(",") >= 0) {
1120
- cleanValue = cleanValue.split(",")[0];
1121
- }
1122
- if (cleanValue.indexOf(":") >= 0) {
1123
- cleanValue = cleanValue.split(":")[0];
1124
- }
1125
- if (cleanValue.indexOf("#") >= 0) {
1126
- cleanValue = cleanValue.split("#")[1];
1127
- }
1128
- return cleanValue;
1129
- }, "sanitizeErrorCode");
1130
- const headerKey = findKey(output.headers, "x-amzn-errortype");
1131
- if (headerKey !== void 0) {
1132
- return sanitizeErrorCode(output.headers[headerKey]);
1133
- }
1134
- if (data.code !== void 0) {
1135
- return sanitizeErrorCode(data.code);
1136
- }
1137
- if (data["__type"] !== void 0) {
1138
- return sanitizeErrorCode(data["__type"]);
1139
- }
1140
- }, "loadRestJsonErrorCode");
1141
1100
 
1142
1101
  // src/commands/CancelJobRunCommand.ts
1143
1102
  var _CancelJobRunCommand = class _CancelJobRunCommand extends import_smithy_client.Command.classBuilder().ep({
@@ -1,4 +1,4 @@
1
- import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
1
+ import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
2
2
  import { requestBuilder as rb } from "@smithy/core";
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { v4 as generateIdempotencyToken } from "uuid";
@@ -669,43 +669,3 @@ const _mR = "maxResults";
669
669
  const _nT = "nextToken";
670
670
  const _s = "states";
671
671
  const _tK = "tagKeys";
672
- const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
673
- if (encoded.length) {
674
- return JSON.parse(encoded);
675
- }
676
- return {};
677
- });
678
- const parseErrorBody = async (errorBody, context) => {
679
- const value = await parseBody(errorBody, context);
680
- value.message = value.message ?? value.Message;
681
- return value;
682
- };
683
- const loadRestJsonErrorCode = (output, data) => {
684
- const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
685
- const sanitizeErrorCode = (rawValue) => {
686
- let cleanValue = rawValue;
687
- if (typeof cleanValue === "number") {
688
- cleanValue = cleanValue.toString();
689
- }
690
- if (cleanValue.indexOf(",") >= 0) {
691
- cleanValue = cleanValue.split(",")[0];
692
- }
693
- if (cleanValue.indexOf(":") >= 0) {
694
- cleanValue = cleanValue.split(":")[0];
695
- }
696
- if (cleanValue.indexOf("#") >= 0) {
697
- cleanValue = cleanValue.split("#")[1];
698
- }
699
- return cleanValue;
700
- };
701
- const headerKey = findKey(output.headers, "x-amzn-errortype");
702
- if (headerKey !== undefined) {
703
- return sanitizeErrorCode(output.headers[headerKey]);
704
- }
705
- if (data.code !== undefined) {
706
- return sanitizeErrorCode(data.code);
707
- }
708
- if (data["__type"] !== undefined) {
709
- return sanitizeErrorCode(data["__type"]);
710
- }
711
- };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-emr-serverless",
3
3
  "description": "AWS SDK for JavaScript Emr Serverless Client for Node.js, Browser and React Native",
4
- "version": "3.523.0",
4
+ "version": "3.529.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-emr-serverless",
@@ -20,40 +20,40 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.523.0",
24
- "@aws-sdk/core": "3.523.0",
25
- "@aws-sdk/credential-provider-node": "3.523.0",
23
+ "@aws-sdk/client-sts": "3.529.0",
24
+ "@aws-sdk/core": "3.529.0",
25
+ "@aws-sdk/credential-provider-node": "3.529.0",
26
26
  "@aws-sdk/middleware-host-header": "3.523.0",
27
27
  "@aws-sdk/middleware-logger": "3.523.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.523.0",
29
- "@aws-sdk/middleware-user-agent": "3.523.0",
30
- "@aws-sdk/region-config-resolver": "3.523.0",
29
+ "@aws-sdk/middleware-user-agent": "3.525.0",
30
+ "@aws-sdk/region-config-resolver": "3.525.0",
31
31
  "@aws-sdk/types": "3.523.0",
32
- "@aws-sdk/util-endpoints": "3.523.0",
32
+ "@aws-sdk/util-endpoints": "3.525.0",
33
33
  "@aws-sdk/util-user-agent-browser": "3.523.0",
34
- "@aws-sdk/util-user-agent-node": "3.523.0",
35
- "@smithy/config-resolver": "^2.1.3",
36
- "@smithy/core": "^1.3.4",
34
+ "@aws-sdk/util-user-agent-node": "3.525.0",
35
+ "@smithy/config-resolver": "^2.1.4",
36
+ "@smithy/core": "^1.3.5",
37
37
  "@smithy/fetch-http-handler": "^2.4.3",
38
38
  "@smithy/hash-node": "^2.1.3",
39
39
  "@smithy/invalid-dependency": "^2.1.3",
40
40
  "@smithy/middleware-content-length": "^2.1.3",
41
- "@smithy/middleware-endpoint": "^2.4.3",
42
- "@smithy/middleware-retry": "^2.1.3",
41
+ "@smithy/middleware-endpoint": "^2.4.4",
42
+ "@smithy/middleware-retry": "^2.1.4",
43
43
  "@smithy/middleware-serde": "^2.1.3",
44
44
  "@smithy/middleware-stack": "^2.1.3",
45
- "@smithy/node-config-provider": "^2.2.3",
45
+ "@smithy/node-config-provider": "^2.2.4",
46
46
  "@smithy/node-http-handler": "^2.4.1",
47
47
  "@smithy/protocol-http": "^3.2.1",
48
- "@smithy/smithy-client": "^2.4.1",
48
+ "@smithy/smithy-client": "^2.4.2",
49
49
  "@smithy/types": "^2.10.1",
50
50
  "@smithy/url-parser": "^2.1.3",
51
51
  "@smithy/util-base64": "^2.1.1",
52
52
  "@smithy/util-body-length-browser": "^2.1.1",
53
53
  "@smithy/util-body-length-node": "^2.2.1",
54
- "@smithy/util-defaults-mode-browser": "^2.1.3",
55
- "@smithy/util-defaults-mode-node": "^2.2.2",
56
- "@smithy/util-endpoints": "^1.1.3",
54
+ "@smithy/util-defaults-mode-browser": "^2.1.4",
55
+ "@smithy/util-defaults-mode-node": "^2.2.3",
56
+ "@smithy/util-endpoints": "^1.1.4",
57
57
  "@smithy/util-middleware": "^2.1.3",
58
58
  "@smithy/util-retry": "^2.1.3",
59
59
  "@smithy/util-utf8": "^2.1.1",
@@ -1 +0,0 @@
1
- module.exports = require("./index.js");
@@ -1 +0,0 @@
1
- module.exports = require("./index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("./index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("./index.js");