@aws-sdk/client-iot-events 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 (40) hide show
  1. package/dist-cjs/index.js +23 -63
  2. package/dist-es/protocols/Aws_restJson1.js +1 -40
  3. package/package.json +17 -17
  4. package/dist-cjs/IoTEvents.js +0 -1
  5. package/dist-cjs/IoTEventsClient.js +0 -1
  6. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
  7. package/dist-cjs/commands/CreateAlarmModelCommand.js +0 -1
  8. package/dist-cjs/commands/CreateDetectorModelCommand.js +0 -1
  9. package/dist-cjs/commands/CreateInputCommand.js +0 -1
  10. package/dist-cjs/commands/DeleteAlarmModelCommand.js +0 -1
  11. package/dist-cjs/commands/DeleteDetectorModelCommand.js +0 -1
  12. package/dist-cjs/commands/DeleteInputCommand.js +0 -1
  13. package/dist-cjs/commands/DescribeAlarmModelCommand.js +0 -1
  14. package/dist-cjs/commands/DescribeDetectorModelAnalysisCommand.js +0 -1
  15. package/dist-cjs/commands/DescribeDetectorModelCommand.js +0 -1
  16. package/dist-cjs/commands/DescribeInputCommand.js +0 -1
  17. package/dist-cjs/commands/DescribeLoggingOptionsCommand.js +0 -1
  18. package/dist-cjs/commands/GetDetectorModelAnalysisResultsCommand.js +0 -1
  19. package/dist-cjs/commands/ListAlarmModelVersionsCommand.js +0 -1
  20. package/dist-cjs/commands/ListAlarmModelsCommand.js +0 -1
  21. package/dist-cjs/commands/ListDetectorModelVersionsCommand.js +0 -1
  22. package/dist-cjs/commands/ListDetectorModelsCommand.js +0 -1
  23. package/dist-cjs/commands/ListInputRoutingsCommand.js +0 -1
  24. package/dist-cjs/commands/ListInputsCommand.js +0 -1
  25. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
  26. package/dist-cjs/commands/PutLoggingOptionsCommand.js +0 -1
  27. package/dist-cjs/commands/StartDetectorModelAnalysisCommand.js +0 -1
  28. package/dist-cjs/commands/TagResourceCommand.js +0 -1
  29. package/dist-cjs/commands/UntagResourceCommand.js +0 -1
  30. package/dist-cjs/commands/UpdateAlarmModelCommand.js +0 -1
  31. package/dist-cjs/commands/UpdateDetectorModelCommand.js +0 -1
  32. package/dist-cjs/commands/UpdateInputCommand.js +0 -1
  33. package/dist-cjs/commands/index.js +0 -1
  34. package/dist-cjs/endpoint/EndpointParameters.js +0 -1
  35. package/dist-cjs/extensionConfiguration.js +0 -1
  36. package/dist-cjs/models/IoTEventsServiceException.js +0 -1
  37. package/dist-cjs/models/index.js +0 -1
  38. package/dist-cjs/models/models_0.js +0 -1
  39. package/dist-cjs/protocols/Aws_restJson1.js +0 -1
  40. package/dist-cjs/runtimeExtensions.js +0 -1
package/dist-cjs/index.js CHANGED
@@ -225,6 +225,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
225
225
  var import_types = require("@smithy/types");
226
226
 
227
227
  // src/protocols/Aws_restJson1.ts
228
+ var import_core2 = require("@aws-sdk/core");
228
229
 
229
230
 
230
231
 
@@ -826,7 +827,7 @@ var de_CreateAlarmModelCommand = /* @__PURE__ */ __name(async (output, context)
826
827
  const contents = (0, import_smithy_client.map)({
827
828
  $metadata: deserializeMetadata(output)
828
829
  });
829
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
830
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
830
831
  const doc = (0, import_smithy_client.take)(data, {
831
832
  alarmModelArn: import_smithy_client.expectString,
832
833
  alarmModelVersion: import_smithy_client.expectString,
@@ -844,7 +845,7 @@ var de_CreateDetectorModelCommand = /* @__PURE__ */ __name(async (output, contex
844
845
  const contents = (0, import_smithy_client.map)({
845
846
  $metadata: deserializeMetadata(output)
846
847
  });
847
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
848
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
848
849
  const doc = (0, import_smithy_client.take)(data, {
849
850
  detectorModelConfiguration: (_) => de_DetectorModelConfiguration(_, context)
850
851
  });
@@ -858,7 +859,7 @@ var de_CreateInputCommand = /* @__PURE__ */ __name(async (output, context) => {
858
859
  const contents = (0, import_smithy_client.map)({
859
860
  $metadata: deserializeMetadata(output)
860
861
  });
861
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
862
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
862
863
  const doc = (0, import_smithy_client.take)(data, {
863
864
  inputConfiguration: (_) => de_InputConfiguration(_, context)
864
865
  });
@@ -902,7 +903,7 @@ var de_DescribeAlarmModelCommand = /* @__PURE__ */ __name(async (output, context
902
903
  const contents = (0, import_smithy_client.map)({
903
904
  $metadata: deserializeMetadata(output)
904
905
  });
905
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
906
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
906
907
  const doc = (0, import_smithy_client.take)(data, {
907
908
  alarmCapabilities: import_smithy_client._json,
908
909
  alarmEventActions: import_smithy_client._json,
@@ -930,7 +931,7 @@ var de_DescribeDetectorModelCommand = /* @__PURE__ */ __name(async (output, cont
930
931
  const contents = (0, import_smithy_client.map)({
931
932
  $metadata: deserializeMetadata(output)
932
933
  });
933
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
934
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
934
935
  const doc = (0, import_smithy_client.take)(data, {
935
936
  detectorModel: (_) => de_DetectorModel(_, context)
936
937
  });
@@ -944,7 +945,7 @@ var de_DescribeDetectorModelAnalysisCommand = /* @__PURE__ */ __name(async (outp
944
945
  const contents = (0, import_smithy_client.map)({
945
946
  $metadata: deserializeMetadata(output)
946
947
  });
947
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
948
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
948
949
  const doc = (0, import_smithy_client.take)(data, {
949
950
  status: import_smithy_client.expectString
950
951
  });
@@ -958,7 +959,7 @@ var de_DescribeInputCommand = /* @__PURE__ */ __name(async (output, context) =>
958
959
  const contents = (0, import_smithy_client.map)({
959
960
  $metadata: deserializeMetadata(output)
960
961
  });
961
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
962
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
962
963
  const doc = (0, import_smithy_client.take)(data, {
963
964
  input: (_) => de_Input(_, context)
964
965
  });
@@ -972,7 +973,7 @@ var de_DescribeLoggingOptionsCommand = /* @__PURE__ */ __name(async (output, con
972
973
  const contents = (0, import_smithy_client.map)({
973
974
  $metadata: deserializeMetadata(output)
974
975
  });
975
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
976
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
976
977
  const doc = (0, import_smithy_client.take)(data, {
977
978
  loggingOptions: import_smithy_client._json
978
979
  });
@@ -986,7 +987,7 @@ var de_GetDetectorModelAnalysisResultsCommand = /* @__PURE__ */ __name(async (ou
986
987
  const contents = (0, import_smithy_client.map)({
987
988
  $metadata: deserializeMetadata(output)
988
989
  });
989
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
990
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
990
991
  const doc = (0, import_smithy_client.take)(data, {
991
992
  analysisResults: import_smithy_client._json,
992
993
  nextToken: import_smithy_client.expectString
@@ -1001,7 +1002,7 @@ var de_ListAlarmModelsCommand = /* @__PURE__ */ __name(async (output, context) =
1001
1002
  const contents = (0, import_smithy_client.map)({
1002
1003
  $metadata: deserializeMetadata(output)
1003
1004
  });
1004
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1005
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1005
1006
  const doc = (0, import_smithy_client.take)(data, {
1006
1007
  alarmModelSummaries: (_) => de_AlarmModelSummaries(_, context),
1007
1008
  nextToken: import_smithy_client.expectString
@@ -1016,7 +1017,7 @@ var de_ListAlarmModelVersionsCommand = /* @__PURE__ */ __name(async (output, con
1016
1017
  const contents = (0, import_smithy_client.map)({
1017
1018
  $metadata: deserializeMetadata(output)
1018
1019
  });
1019
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1020
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1020
1021
  const doc = (0, import_smithy_client.take)(data, {
1021
1022
  alarmModelVersionSummaries: (_) => de_AlarmModelVersionSummaries(_, context),
1022
1023
  nextToken: import_smithy_client.expectString
@@ -1031,7 +1032,7 @@ var de_ListDetectorModelsCommand = /* @__PURE__ */ __name(async (output, context
1031
1032
  const contents = (0, import_smithy_client.map)({
1032
1033
  $metadata: deserializeMetadata(output)
1033
1034
  });
1034
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1035
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1035
1036
  const doc = (0, import_smithy_client.take)(data, {
1036
1037
  detectorModelSummaries: (_) => de_DetectorModelSummaries(_, context),
1037
1038
  nextToken: import_smithy_client.expectString
@@ -1046,7 +1047,7 @@ var de_ListDetectorModelVersionsCommand = /* @__PURE__ */ __name(async (output,
1046
1047
  const contents = (0, import_smithy_client.map)({
1047
1048
  $metadata: deserializeMetadata(output)
1048
1049
  });
1049
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1050
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1050
1051
  const doc = (0, import_smithy_client.take)(data, {
1051
1052
  detectorModelVersionSummaries: (_) => de_DetectorModelVersionSummaries(_, context),
1052
1053
  nextToken: import_smithy_client.expectString
@@ -1061,7 +1062,7 @@ var de_ListInputRoutingsCommand = /* @__PURE__ */ __name(async (output, context)
1061
1062
  const contents = (0, import_smithy_client.map)({
1062
1063
  $metadata: deserializeMetadata(output)
1063
1064
  });
1064
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1065
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1065
1066
  const doc = (0, import_smithy_client.take)(data, {
1066
1067
  nextToken: import_smithy_client.expectString,
1067
1068
  routedResources: import_smithy_client._json
@@ -1076,7 +1077,7 @@ var de_ListInputsCommand = /* @__PURE__ */ __name(async (output, context) => {
1076
1077
  const contents = (0, import_smithy_client.map)({
1077
1078
  $metadata: deserializeMetadata(output)
1078
1079
  });
1079
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1080
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1080
1081
  const doc = (0, import_smithy_client.take)(data, {
1081
1082
  inputSummaries: (_) => de_InputSummaries(_, context),
1082
1083
  nextToken: import_smithy_client.expectString
@@ -1091,7 +1092,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
1091
1092
  const contents = (0, import_smithy_client.map)({
1092
1093
  $metadata: deserializeMetadata(output)
1093
1094
  });
1094
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1095
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1095
1096
  const doc = (0, import_smithy_client.take)(data, {
1096
1097
  tags: import_smithy_client._json
1097
1098
  });
@@ -1115,7 +1116,7 @@ var de_StartDetectorModelAnalysisCommand = /* @__PURE__ */ __name(async (output,
1115
1116
  const contents = (0, import_smithy_client.map)({
1116
1117
  $metadata: deserializeMetadata(output)
1117
1118
  });
1118
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1119
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1119
1120
  const doc = (0, import_smithy_client.take)(data, {
1120
1121
  analysisId: import_smithy_client.expectString
1121
1122
  });
@@ -1149,7 +1150,7 @@ var de_UpdateAlarmModelCommand = /* @__PURE__ */ __name(async (output, context)
1149
1150
  const contents = (0, import_smithy_client.map)({
1150
1151
  $metadata: deserializeMetadata(output)
1151
1152
  });
1152
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1153
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1153
1154
  const doc = (0, import_smithy_client.take)(data, {
1154
1155
  alarmModelArn: import_smithy_client.expectString,
1155
1156
  alarmModelVersion: import_smithy_client.expectString,
@@ -1167,7 +1168,7 @@ var de_UpdateDetectorModelCommand = /* @__PURE__ */ __name(async (output, contex
1167
1168
  const contents = (0, import_smithy_client.map)({
1168
1169
  $metadata: deserializeMetadata(output)
1169
1170
  });
1170
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1171
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1171
1172
  const doc = (0, import_smithy_client.take)(data, {
1172
1173
  detectorModelConfiguration: (_) => de_DetectorModelConfiguration(_, context)
1173
1174
  });
@@ -1181,7 +1182,7 @@ var de_UpdateInputCommand = /* @__PURE__ */ __name(async (output, context) => {
1181
1182
  const contents = (0, import_smithy_client.map)({
1182
1183
  $metadata: deserializeMetadata(output)
1183
1184
  });
1184
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1185
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1185
1186
  const doc = (0, import_smithy_client.take)(data, {
1186
1187
  inputConfiguration: (_) => de_InputConfiguration(_, context)
1187
1188
  });
@@ -1191,9 +1192,9 @@ var de_UpdateInputCommand = /* @__PURE__ */ __name(async (output, context) => {
1191
1192
  var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1192
1193
  const parsedOutput = {
1193
1194
  ...output,
1194
- body: await parseErrorBody(output.body, context)
1195
+ body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
1195
1196
  };
1196
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1197
+ const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
1197
1198
  switch (errorCode) {
1198
1199
  case "InternalFailureException":
1199
1200
  case "com.amazonaws.iotevents#InternalFailureException":
@@ -1483,7 +1484,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1483
1484
  extendedRequestId: output.headers["x-amz-id-2"],
1484
1485
  cfId: output.headers["x-amz-cf-id"]
1485
1486
  }), "deserializeMetadata");
1486
- var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
1487
1487
  var _aMV = "alarmModelVersion";
1488
1488
  var _dMV = "detectorModelVersion";
1489
1489
  var _mR = "maxResults";
@@ -1491,46 +1491,6 @@ var _nT = "nextToken";
1491
1491
  var _rA = "resourceArn";
1492
1492
  var _tK = "tagKeys";
1493
1493
  var _v = "version";
1494
- var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1495
- if (encoded.length) {
1496
- return JSON.parse(encoded);
1497
- }
1498
- return {};
1499
- }), "parseBody");
1500
- var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
1501
- const value = await parseBody(errorBody, context);
1502
- value.message = value.message ?? value.Message;
1503
- return value;
1504
- }, "parseErrorBody");
1505
- var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
1506
- const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
1507
- const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
1508
- let cleanValue = rawValue;
1509
- if (typeof cleanValue === "number") {
1510
- cleanValue = cleanValue.toString();
1511
- }
1512
- if (cleanValue.indexOf(",") >= 0) {
1513
- cleanValue = cleanValue.split(",")[0];
1514
- }
1515
- if (cleanValue.indexOf(":") >= 0) {
1516
- cleanValue = cleanValue.split(":")[0];
1517
- }
1518
- if (cleanValue.indexOf("#") >= 0) {
1519
- cleanValue = cleanValue.split("#")[1];
1520
- }
1521
- return cleanValue;
1522
- }, "sanitizeErrorCode");
1523
- const headerKey = findKey(output.headers, "x-amzn-errortype");
1524
- if (headerKey !== void 0) {
1525
- return sanitizeErrorCode(output.headers[headerKey]);
1526
- }
1527
- if (data.code !== void 0) {
1528
- return sanitizeErrorCode(data.code);
1529
- }
1530
- if (data["__type"] !== void 0) {
1531
- return sanitizeErrorCode(data["__type"]);
1532
- }
1533
- }, "loadRestJsonErrorCode");
1534
1494
 
1535
1495
  // src/commands/CreateAlarmModelCommand.ts
1536
1496
  var _CreateAlarmModelCommand = class _CreateAlarmModelCommand extends import_smithy_client.Command.classBuilder().ep({
@@ -1,3 +1,4 @@
1
+ import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
1
2
  import { requestBuilder as rb } from "@smithy/core";
2
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
3
4
  import { IoTEventsServiceException as __BaseException } from "../models/IoTEventsServiceException";
@@ -1036,43 +1037,3 @@ const _nT = "nextToken";
1036
1037
  const _rA = "resourceArn";
1037
1038
  const _tK = "tagKeys";
1038
1039
  const _v = "version";
1039
- const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1040
- if (encoded.length) {
1041
- return JSON.parse(encoded);
1042
- }
1043
- return {};
1044
- });
1045
- const parseErrorBody = async (errorBody, context) => {
1046
- const value = await parseBody(errorBody, context);
1047
- value.message = value.message ?? value.Message;
1048
- return value;
1049
- };
1050
- const loadRestJsonErrorCode = (output, data) => {
1051
- const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
1052
- const sanitizeErrorCode = (rawValue) => {
1053
- let cleanValue = rawValue;
1054
- if (typeof cleanValue === "number") {
1055
- cleanValue = cleanValue.toString();
1056
- }
1057
- if (cleanValue.indexOf(",") >= 0) {
1058
- cleanValue = cleanValue.split(",")[0];
1059
- }
1060
- if (cleanValue.indexOf(":") >= 0) {
1061
- cleanValue = cleanValue.split(":")[0];
1062
- }
1063
- if (cleanValue.indexOf("#") >= 0) {
1064
- cleanValue = cleanValue.split("#")[1];
1065
- }
1066
- return cleanValue;
1067
- };
1068
- const headerKey = findKey(output.headers, "x-amzn-errortype");
1069
- if (headerKey !== undefined) {
1070
- return sanitizeErrorCode(output.headers[headerKey]);
1071
- }
1072
- if (data.code !== undefined) {
1073
- return sanitizeErrorCode(data.code);
1074
- }
1075
- if (data["__type"] !== undefined) {
1076
- return sanitizeErrorCode(data["__type"]);
1077
- }
1078
- };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-iot-events",
3
3
  "description": "AWS SDK for JavaScript Iot Events 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-iot-events",
@@ -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");
@@ -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");