@aws-sdk/client-devops-guru 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 (61) hide show
  1. package/dist-cjs/index.js +27 -67
  2. package/dist-es/protocols/Aws_restJson1.js +1 -40
  3. package/package.json +17 -17
  4. package/dist-cjs/DevOpsGuru.js +0 -1
  5. package/dist-cjs/DevOpsGuruClient.js +0 -1
  6. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
  7. package/dist-cjs/commands/AddNotificationChannelCommand.js +0 -1
  8. package/dist-cjs/commands/DeleteInsightCommand.js +0 -1
  9. package/dist-cjs/commands/DescribeAccountHealthCommand.js +0 -1
  10. package/dist-cjs/commands/DescribeAccountOverviewCommand.js +0 -1
  11. package/dist-cjs/commands/DescribeAnomalyCommand.js +0 -1
  12. package/dist-cjs/commands/DescribeEventSourcesConfigCommand.js +0 -1
  13. package/dist-cjs/commands/DescribeFeedbackCommand.js +0 -1
  14. package/dist-cjs/commands/DescribeInsightCommand.js +0 -1
  15. package/dist-cjs/commands/DescribeOrganizationHealthCommand.js +0 -1
  16. package/dist-cjs/commands/DescribeOrganizationOverviewCommand.js +0 -1
  17. package/dist-cjs/commands/DescribeOrganizationResourceCollectionHealthCommand.js +0 -1
  18. package/dist-cjs/commands/DescribeResourceCollectionHealthCommand.js +0 -1
  19. package/dist-cjs/commands/DescribeServiceIntegrationCommand.js +0 -1
  20. package/dist-cjs/commands/GetCostEstimationCommand.js +0 -1
  21. package/dist-cjs/commands/GetResourceCollectionCommand.js +0 -1
  22. package/dist-cjs/commands/ListAnomaliesForInsightCommand.js +0 -1
  23. package/dist-cjs/commands/ListAnomalousLogGroupsCommand.js +0 -1
  24. package/dist-cjs/commands/ListEventsCommand.js +0 -1
  25. package/dist-cjs/commands/ListInsightsCommand.js +0 -1
  26. package/dist-cjs/commands/ListMonitoredResourcesCommand.js +0 -1
  27. package/dist-cjs/commands/ListNotificationChannelsCommand.js +0 -1
  28. package/dist-cjs/commands/ListOrganizationInsightsCommand.js +0 -1
  29. package/dist-cjs/commands/ListRecommendationsCommand.js +0 -1
  30. package/dist-cjs/commands/PutFeedbackCommand.js +0 -1
  31. package/dist-cjs/commands/RemoveNotificationChannelCommand.js +0 -1
  32. package/dist-cjs/commands/SearchInsightsCommand.js +0 -1
  33. package/dist-cjs/commands/SearchOrganizationInsightsCommand.js +0 -1
  34. package/dist-cjs/commands/StartCostEstimationCommand.js +0 -1
  35. package/dist-cjs/commands/UpdateEventSourcesConfigCommand.js +0 -1
  36. package/dist-cjs/commands/UpdateResourceCollectionCommand.js +0 -1
  37. package/dist-cjs/commands/UpdateServiceIntegrationCommand.js +0 -1
  38. package/dist-cjs/commands/index.js +0 -1
  39. package/dist-cjs/endpoint/EndpointParameters.js +0 -1
  40. package/dist-cjs/extensionConfiguration.js +0 -1
  41. package/dist-cjs/models/DevOpsGuruServiceException.js +0 -1
  42. package/dist-cjs/models/index.js +0 -1
  43. package/dist-cjs/models/models_0.js +0 -1
  44. package/dist-cjs/pagination/DescribeOrganizationResourceCollectionHealthPaginator.js +0 -1
  45. package/dist-cjs/pagination/DescribeResourceCollectionHealthPaginator.js +0 -1
  46. package/dist-cjs/pagination/GetCostEstimationPaginator.js +0 -1
  47. package/dist-cjs/pagination/GetResourceCollectionPaginator.js +0 -1
  48. package/dist-cjs/pagination/Interfaces.js +0 -1
  49. package/dist-cjs/pagination/ListAnomaliesForInsightPaginator.js +0 -1
  50. package/dist-cjs/pagination/ListAnomalousLogGroupsPaginator.js +0 -1
  51. package/dist-cjs/pagination/ListEventsPaginator.js +0 -1
  52. package/dist-cjs/pagination/ListInsightsPaginator.js +0 -1
  53. package/dist-cjs/pagination/ListMonitoredResourcesPaginator.js +0 -1
  54. package/dist-cjs/pagination/ListNotificationChannelsPaginator.js +0 -1
  55. package/dist-cjs/pagination/ListOrganizationInsightsPaginator.js +0 -1
  56. package/dist-cjs/pagination/ListRecommendationsPaginator.js +0 -1
  57. package/dist-cjs/pagination/SearchInsightsPaginator.js +0 -1
  58. package/dist-cjs/pagination/SearchOrganizationInsightsPaginator.js +0 -1
  59. package/dist-cjs/pagination/index.js +0 -1
  60. package/dist-cjs/protocols/Aws_restJson1.js +0 -1
  61. package/dist-cjs/runtimeExtensions.js +0 -1
package/dist-cjs/index.js CHANGED
@@ -259,6 +259,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
259
259
  var import_types = require("@smithy/types");
260
260
 
261
261
  // src/protocols/Aws_restJson1.ts
262
+ var import_core2 = require("@aws-sdk/core");
262
263
 
263
264
 
264
265
  var import_uuid = require("uuid");
@@ -1081,7 +1082,7 @@ var de_AddNotificationChannelCommand = /* @__PURE__ */ __name(async (output, con
1081
1082
  const contents = (0, import_smithy_client.map)({
1082
1083
  $metadata: deserializeMetadata(output)
1083
1084
  });
1084
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1085
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1085
1086
  const doc = (0, import_smithy_client.take)(data, {
1086
1087
  Id: import_smithy_client.expectString
1087
1088
  });
@@ -1105,7 +1106,7 @@ var de_DescribeAccountHealthCommand = /* @__PURE__ */ __name(async (output, cont
1105
1106
  const contents = (0, import_smithy_client.map)({
1106
1107
  $metadata: deserializeMetadata(output)
1107
1108
  });
1108
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1109
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1109
1110
  const doc = (0, import_smithy_client.take)(data, {
1110
1111
  AnalyzedResourceCount: import_smithy_client.expectLong,
1111
1112
  MetricsAnalyzed: import_smithy_client.expectInt32,
@@ -1123,7 +1124,7 @@ var de_DescribeAccountOverviewCommand = /* @__PURE__ */ __name(async (output, co
1123
1124
  const contents = (0, import_smithy_client.map)({
1124
1125
  $metadata: deserializeMetadata(output)
1125
1126
  });
1126
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1127
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1127
1128
  const doc = (0, import_smithy_client.take)(data, {
1128
1129
  MeanTimeToRecoverInMilliseconds: import_smithy_client.expectLong,
1129
1130
  ProactiveInsights: import_smithy_client.expectInt32,
@@ -1139,7 +1140,7 @@ var de_DescribeAnomalyCommand = /* @__PURE__ */ __name(async (output, context) =
1139
1140
  const contents = (0, import_smithy_client.map)({
1140
1141
  $metadata: deserializeMetadata(output)
1141
1142
  });
1142
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1143
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1143
1144
  const doc = (0, import_smithy_client.take)(data, {
1144
1145
  ProactiveAnomaly: (_) => de_ProactiveAnomaly(_, context),
1145
1146
  ReactiveAnomaly: (_) => de_ReactiveAnomaly(_, context)
@@ -1154,7 +1155,7 @@ var de_DescribeEventSourcesConfigCommand = /* @__PURE__ */ __name(async (output,
1154
1155
  const contents = (0, import_smithy_client.map)({
1155
1156
  $metadata: deserializeMetadata(output)
1156
1157
  });
1157
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1158
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1158
1159
  const doc = (0, import_smithy_client.take)(data, {
1159
1160
  EventSources: import_smithy_client._json
1160
1161
  });
@@ -1168,7 +1169,7 @@ var de_DescribeFeedbackCommand = /* @__PURE__ */ __name(async (output, context)
1168
1169
  const contents = (0, import_smithy_client.map)({
1169
1170
  $metadata: deserializeMetadata(output)
1170
1171
  });
1171
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1172
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1172
1173
  const doc = (0, import_smithy_client.take)(data, {
1173
1174
  InsightFeedback: import_smithy_client._json
1174
1175
  });
@@ -1182,7 +1183,7 @@ var de_DescribeInsightCommand = /* @__PURE__ */ __name(async (output, context) =
1182
1183
  const contents = (0, import_smithy_client.map)({
1183
1184
  $metadata: deserializeMetadata(output)
1184
1185
  });
1185
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1186
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1186
1187
  const doc = (0, import_smithy_client.take)(data, {
1187
1188
  ProactiveInsight: (_) => de_ProactiveInsight(_, context),
1188
1189
  ReactiveInsight: (_) => de_ReactiveInsight(_, context)
@@ -1197,7 +1198,7 @@ var de_DescribeOrganizationHealthCommand = /* @__PURE__ */ __name(async (output,
1197
1198
  const contents = (0, import_smithy_client.map)({
1198
1199
  $metadata: deserializeMetadata(output)
1199
1200
  });
1200
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1201
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1201
1202
  const doc = (0, import_smithy_client.take)(data, {
1202
1203
  MetricsAnalyzed: import_smithy_client.expectInt32,
1203
1204
  OpenProactiveInsights: import_smithy_client.expectInt32,
@@ -1214,7 +1215,7 @@ var de_DescribeOrganizationOverviewCommand = /* @__PURE__ */ __name(async (outpu
1214
1215
  const contents = (0, import_smithy_client.map)({
1215
1216
  $metadata: deserializeMetadata(output)
1216
1217
  });
1217
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1218
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1218
1219
  const doc = (0, import_smithy_client.take)(data, {
1219
1220
  ProactiveInsights: import_smithy_client.expectInt32,
1220
1221
  ReactiveInsights: import_smithy_client.expectInt32
@@ -1229,7 +1230,7 @@ var de_DescribeOrganizationResourceCollectionHealthCommand = /* @__PURE__ */ __n
1229
1230
  const contents = (0, import_smithy_client.map)({
1230
1231
  $metadata: deserializeMetadata(output)
1231
1232
  });
1232
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1233
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1233
1234
  const doc = (0, import_smithy_client.take)(data, {
1234
1235
  Account: import_smithy_client._json,
1235
1236
  CloudFormation: import_smithy_client._json,
@@ -1247,7 +1248,7 @@ var de_DescribeResourceCollectionHealthCommand = /* @__PURE__ */ __name(async (o
1247
1248
  const contents = (0, import_smithy_client.map)({
1248
1249
  $metadata: deserializeMetadata(output)
1249
1250
  });
1250
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1251
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1251
1252
  const doc = (0, import_smithy_client.take)(data, {
1252
1253
  CloudFormation: import_smithy_client._json,
1253
1254
  NextToken: import_smithy_client.expectString,
@@ -1264,7 +1265,7 @@ var de_DescribeServiceIntegrationCommand = /* @__PURE__ */ __name(async (output,
1264
1265
  const contents = (0, import_smithy_client.map)({
1265
1266
  $metadata: deserializeMetadata(output)
1266
1267
  });
1267
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1268
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1268
1269
  const doc = (0, import_smithy_client.take)(data, {
1269
1270
  ServiceIntegration: import_smithy_client._json
1270
1271
  });
@@ -1278,7 +1279,7 @@ var de_GetCostEstimationCommand = /* @__PURE__ */ __name(async (output, context)
1278
1279
  const contents = (0, import_smithy_client.map)({
1279
1280
  $metadata: deserializeMetadata(output)
1280
1281
  });
1281
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1282
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1282
1283
  const doc = (0, import_smithy_client.take)(data, {
1283
1284
  Costs: (_) => de_ServiceResourceCosts(_, context),
1284
1285
  NextToken: import_smithy_client.expectString,
@@ -1297,7 +1298,7 @@ var de_GetResourceCollectionCommand = /* @__PURE__ */ __name(async (output, cont
1297
1298
  const contents = (0, import_smithy_client.map)({
1298
1299
  $metadata: deserializeMetadata(output)
1299
1300
  });
1300
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1301
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1301
1302
  const doc = (0, import_smithy_client.take)(data, {
1302
1303
  NextToken: import_smithy_client.expectString,
1303
1304
  ResourceCollection: import_smithy_client._json
@@ -1312,7 +1313,7 @@ var de_ListAnomaliesForInsightCommand = /* @__PURE__ */ __name(async (output, co
1312
1313
  const contents = (0, import_smithy_client.map)({
1313
1314
  $metadata: deserializeMetadata(output)
1314
1315
  });
1315
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1316
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1316
1317
  const doc = (0, import_smithy_client.take)(data, {
1317
1318
  NextToken: import_smithy_client.expectString,
1318
1319
  ProactiveAnomalies: (_) => de_ProactiveAnomalies(_, context),
@@ -1328,7 +1329,7 @@ var de_ListAnomalousLogGroupsCommand = /* @__PURE__ */ __name(async (output, con
1328
1329
  const contents = (0, import_smithy_client.map)({
1329
1330
  $metadata: deserializeMetadata(output)
1330
1331
  });
1331
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1332
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1332
1333
  const doc = (0, import_smithy_client.take)(data, {
1333
1334
  AnomalousLogGroups: (_) => de_AnomalousLogGroups(_, context),
1334
1335
  InsightId: import_smithy_client.expectString,
@@ -1344,7 +1345,7 @@ var de_ListEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
1344
1345
  const contents = (0, import_smithy_client.map)({
1345
1346
  $metadata: deserializeMetadata(output)
1346
1347
  });
1347
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1348
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1348
1349
  const doc = (0, import_smithy_client.take)(data, {
1349
1350
  Events: (_) => de_Events(_, context),
1350
1351
  NextToken: import_smithy_client.expectString
@@ -1359,7 +1360,7 @@ var de_ListInsightsCommand = /* @__PURE__ */ __name(async (output, context) => {
1359
1360
  const contents = (0, import_smithy_client.map)({
1360
1361
  $metadata: deserializeMetadata(output)
1361
1362
  });
1362
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1363
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1363
1364
  const doc = (0, import_smithy_client.take)(data, {
1364
1365
  NextToken: import_smithy_client.expectString,
1365
1366
  ProactiveInsights: (_) => de_ProactiveInsights(_, context),
@@ -1375,7 +1376,7 @@ var de_ListMonitoredResourcesCommand = /* @__PURE__ */ __name(async (output, con
1375
1376
  const contents = (0, import_smithy_client.map)({
1376
1377
  $metadata: deserializeMetadata(output)
1377
1378
  });
1378
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1379
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1379
1380
  const doc = (0, import_smithy_client.take)(data, {
1380
1381
  MonitoredResourceIdentifiers: (_) => de_MonitoredResourceIdentifiers(_, context),
1381
1382
  NextToken: import_smithy_client.expectString
@@ -1390,7 +1391,7 @@ var de_ListNotificationChannelsCommand = /* @__PURE__ */ __name(async (output, c
1390
1391
  const contents = (0, import_smithy_client.map)({
1391
1392
  $metadata: deserializeMetadata(output)
1392
1393
  });
1393
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1394
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1394
1395
  const doc = (0, import_smithy_client.take)(data, {
1395
1396
  Channels: import_smithy_client._json,
1396
1397
  NextToken: import_smithy_client.expectString
@@ -1405,7 +1406,7 @@ var de_ListOrganizationInsightsCommand = /* @__PURE__ */ __name(async (output, c
1405
1406
  const contents = (0, import_smithy_client.map)({
1406
1407
  $metadata: deserializeMetadata(output)
1407
1408
  });
1408
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1409
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1409
1410
  const doc = (0, import_smithy_client.take)(data, {
1410
1411
  NextToken: import_smithy_client.expectString,
1411
1412
  ProactiveInsights: (_) => de_ProactiveOrganizationInsights(_, context),
@@ -1421,7 +1422,7 @@ var de_ListRecommendationsCommand = /* @__PURE__ */ __name(async (output, contex
1421
1422
  const contents = (0, import_smithy_client.map)({
1422
1423
  $metadata: deserializeMetadata(output)
1423
1424
  });
1424
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1425
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1425
1426
  const doc = (0, import_smithy_client.take)(data, {
1426
1427
  NextToken: import_smithy_client.expectString,
1427
1428
  Recommendations: import_smithy_client._json
@@ -1456,7 +1457,7 @@ var de_SearchInsightsCommand = /* @__PURE__ */ __name(async (output, context) =>
1456
1457
  const contents = (0, import_smithy_client.map)({
1457
1458
  $metadata: deserializeMetadata(output)
1458
1459
  });
1459
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1460
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1460
1461
  const doc = (0, import_smithy_client.take)(data, {
1461
1462
  NextToken: import_smithy_client.expectString,
1462
1463
  ProactiveInsights: (_) => de_ProactiveInsights(_, context),
@@ -1472,7 +1473,7 @@ var de_SearchOrganizationInsightsCommand = /* @__PURE__ */ __name(async (output,
1472
1473
  const contents = (0, import_smithy_client.map)({
1473
1474
  $metadata: deserializeMetadata(output)
1474
1475
  });
1475
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1476
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1476
1477
  const doc = (0, import_smithy_client.take)(data, {
1477
1478
  NextToken: import_smithy_client.expectString,
1478
1479
  ProactiveInsights: (_) => de_ProactiveInsights(_, context),
@@ -1524,9 +1525,9 @@ var de_UpdateServiceIntegrationCommand = /* @__PURE__ */ __name(async (output, c
1524
1525
  var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1525
1526
  const parsedOutput = {
1526
1527
  ...output,
1527
- body: await parseErrorBody(output.body, context)
1528
+ body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
1528
1529
  };
1529
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1530
+ const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
1530
1531
  switch (errorCode) {
1531
1532
  case "AccessDeniedException":
1532
1533
  case "com.amazonaws.devopsguru#AccessDeniedException":
@@ -2111,51 +2112,10 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
2111
2112
  extendedRequestId: output.headers["x-amz-id-2"],
2112
2113
  cfId: output.headers["x-amz-cf-id"]
2113
2114
  }), "deserializeMetadata");
2114
- var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
2115
2115
  var _AI = "AccountId";
2116
2116
  var _NT = "NextToken";
2117
2117
  var _RAS = "RetryAfterSeconds";
2118
2118
  var _ra = "retry-after";
2119
- var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2120
- if (encoded.length) {
2121
- return JSON.parse(encoded);
2122
- }
2123
- return {};
2124
- }), "parseBody");
2125
- var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
2126
- const value = await parseBody(errorBody, context);
2127
- value.message = value.message ?? value.Message;
2128
- return value;
2129
- }, "parseErrorBody");
2130
- var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
2131
- const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
2132
- const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
2133
- let cleanValue = rawValue;
2134
- if (typeof cleanValue === "number") {
2135
- cleanValue = cleanValue.toString();
2136
- }
2137
- if (cleanValue.indexOf(",") >= 0) {
2138
- cleanValue = cleanValue.split(",")[0];
2139
- }
2140
- if (cleanValue.indexOf(":") >= 0) {
2141
- cleanValue = cleanValue.split(":")[0];
2142
- }
2143
- if (cleanValue.indexOf("#") >= 0) {
2144
- cleanValue = cleanValue.split("#")[1];
2145
- }
2146
- return cleanValue;
2147
- }, "sanitizeErrorCode");
2148
- const headerKey = findKey(output.headers, "x-amzn-errortype");
2149
- if (headerKey !== void 0) {
2150
- return sanitizeErrorCode(output.headers[headerKey]);
2151
- }
2152
- if (data.code !== void 0) {
2153
- return sanitizeErrorCode(data.code);
2154
- }
2155
- if (data["__type"] !== void 0) {
2156
- return sanitizeErrorCode(data["__type"]);
2157
- }
2158
- }, "loadRestJsonErrorCode");
2159
2119
 
2160
2120
  // src/commands/AddNotificationChannelCommand.ts
2161
2121
  var _AddNotificationChannelCommand = class _AddNotificationChannelCommand 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, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
3
4
  import { v4 as generateIdempotencyToken } from "uuid";
@@ -1508,43 +1509,3 @@ const _AI = "AccountId";
1508
1509
  const _NT = "NextToken";
1509
1510
  const _RAS = "RetryAfterSeconds";
1510
1511
  const _ra = "retry-after";
1511
- const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1512
- if (encoded.length) {
1513
- return JSON.parse(encoded);
1514
- }
1515
- return {};
1516
- });
1517
- const parseErrorBody = async (errorBody, context) => {
1518
- const value = await parseBody(errorBody, context);
1519
- value.message = value.message ?? value.Message;
1520
- return value;
1521
- };
1522
- const loadRestJsonErrorCode = (output, data) => {
1523
- const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
1524
- const sanitizeErrorCode = (rawValue) => {
1525
- let cleanValue = rawValue;
1526
- if (typeof cleanValue === "number") {
1527
- cleanValue = cleanValue.toString();
1528
- }
1529
- if (cleanValue.indexOf(",") >= 0) {
1530
- cleanValue = cleanValue.split(",")[0];
1531
- }
1532
- if (cleanValue.indexOf(":") >= 0) {
1533
- cleanValue = cleanValue.split(":")[0];
1534
- }
1535
- if (cleanValue.indexOf("#") >= 0) {
1536
- cleanValue = cleanValue.split("#")[1];
1537
- }
1538
- return cleanValue;
1539
- };
1540
- const headerKey = findKey(output.headers, "x-amzn-errortype");
1541
- if (headerKey !== undefined) {
1542
- return sanitizeErrorCode(output.headers[headerKey]);
1543
- }
1544
- if (data.code !== undefined) {
1545
- return sanitizeErrorCode(data.code);
1546
- }
1547
- if (data["__type"] !== undefined) {
1548
- return sanitizeErrorCode(data["__type"]);
1549
- }
1550
- };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-devops-guru",
3
3
  "description": "AWS SDK for JavaScript Devops Guru 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-devops-guru",
@@ -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");
@@ -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");