@aws-sdk/client-guardduty 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 (99) hide show
  1. package/dist-cjs/index.js +49 -89
  2. package/dist-es/protocols/Aws_restJson1.js +1 -40
  3. package/package.json +17 -17
  4. package/dist-cjs/GuardDuty.js +0 -1
  5. package/dist-cjs/GuardDutyClient.js +0 -1
  6. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
  7. package/dist-cjs/commands/AcceptAdministratorInvitationCommand.js +0 -1
  8. package/dist-cjs/commands/AcceptInvitationCommand.js +0 -1
  9. package/dist-cjs/commands/ArchiveFindingsCommand.js +0 -1
  10. package/dist-cjs/commands/CreateDetectorCommand.js +0 -1
  11. package/dist-cjs/commands/CreateFilterCommand.js +0 -1
  12. package/dist-cjs/commands/CreateIPSetCommand.js +0 -1
  13. package/dist-cjs/commands/CreateMembersCommand.js +0 -1
  14. package/dist-cjs/commands/CreatePublishingDestinationCommand.js +0 -1
  15. package/dist-cjs/commands/CreateSampleFindingsCommand.js +0 -1
  16. package/dist-cjs/commands/CreateThreatIntelSetCommand.js +0 -1
  17. package/dist-cjs/commands/DeclineInvitationsCommand.js +0 -1
  18. package/dist-cjs/commands/DeleteDetectorCommand.js +0 -1
  19. package/dist-cjs/commands/DeleteFilterCommand.js +0 -1
  20. package/dist-cjs/commands/DeleteIPSetCommand.js +0 -1
  21. package/dist-cjs/commands/DeleteInvitationsCommand.js +0 -1
  22. package/dist-cjs/commands/DeleteMembersCommand.js +0 -1
  23. package/dist-cjs/commands/DeletePublishingDestinationCommand.js +0 -1
  24. package/dist-cjs/commands/DeleteThreatIntelSetCommand.js +0 -1
  25. package/dist-cjs/commands/DescribeMalwareScansCommand.js +0 -1
  26. package/dist-cjs/commands/DescribeOrganizationConfigurationCommand.js +0 -1
  27. package/dist-cjs/commands/DescribePublishingDestinationCommand.js +0 -1
  28. package/dist-cjs/commands/DisableOrganizationAdminAccountCommand.js +0 -1
  29. package/dist-cjs/commands/DisassociateFromAdministratorAccountCommand.js +0 -1
  30. package/dist-cjs/commands/DisassociateFromMasterAccountCommand.js +0 -1
  31. package/dist-cjs/commands/DisassociateMembersCommand.js +0 -1
  32. package/dist-cjs/commands/EnableOrganizationAdminAccountCommand.js +0 -1
  33. package/dist-cjs/commands/GetAdministratorAccountCommand.js +0 -1
  34. package/dist-cjs/commands/GetCoverageStatisticsCommand.js +0 -1
  35. package/dist-cjs/commands/GetDetectorCommand.js +0 -1
  36. package/dist-cjs/commands/GetFilterCommand.js +0 -1
  37. package/dist-cjs/commands/GetFindingsCommand.js +0 -1
  38. package/dist-cjs/commands/GetFindingsStatisticsCommand.js +0 -1
  39. package/dist-cjs/commands/GetIPSetCommand.js +0 -1
  40. package/dist-cjs/commands/GetInvitationsCountCommand.js +0 -1
  41. package/dist-cjs/commands/GetMalwareScanSettingsCommand.js +0 -1
  42. package/dist-cjs/commands/GetMasterAccountCommand.js +0 -1
  43. package/dist-cjs/commands/GetMemberDetectorsCommand.js +0 -1
  44. package/dist-cjs/commands/GetMembersCommand.js +0 -1
  45. package/dist-cjs/commands/GetOrganizationStatisticsCommand.js +0 -1
  46. package/dist-cjs/commands/GetRemainingFreeTrialDaysCommand.js +0 -1
  47. package/dist-cjs/commands/GetThreatIntelSetCommand.js +0 -1
  48. package/dist-cjs/commands/GetUsageStatisticsCommand.js +0 -1
  49. package/dist-cjs/commands/InviteMembersCommand.js +0 -1
  50. package/dist-cjs/commands/ListCoverageCommand.js +0 -1
  51. package/dist-cjs/commands/ListDetectorsCommand.js +0 -1
  52. package/dist-cjs/commands/ListFiltersCommand.js +0 -1
  53. package/dist-cjs/commands/ListFindingsCommand.js +0 -1
  54. package/dist-cjs/commands/ListIPSetsCommand.js +0 -1
  55. package/dist-cjs/commands/ListInvitationsCommand.js +0 -1
  56. package/dist-cjs/commands/ListMembersCommand.js +0 -1
  57. package/dist-cjs/commands/ListOrganizationAdminAccountsCommand.js +0 -1
  58. package/dist-cjs/commands/ListPublishingDestinationsCommand.js +0 -1
  59. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
  60. package/dist-cjs/commands/ListThreatIntelSetsCommand.js +0 -1
  61. package/dist-cjs/commands/StartMalwareScanCommand.js +0 -1
  62. package/dist-cjs/commands/StartMonitoringMembersCommand.js +0 -1
  63. package/dist-cjs/commands/StopMonitoringMembersCommand.js +0 -1
  64. package/dist-cjs/commands/TagResourceCommand.js +0 -1
  65. package/dist-cjs/commands/UnarchiveFindingsCommand.js +0 -1
  66. package/dist-cjs/commands/UntagResourceCommand.js +0 -1
  67. package/dist-cjs/commands/UpdateDetectorCommand.js +0 -1
  68. package/dist-cjs/commands/UpdateFilterCommand.js +0 -1
  69. package/dist-cjs/commands/UpdateFindingsFeedbackCommand.js +0 -1
  70. package/dist-cjs/commands/UpdateIPSetCommand.js +0 -1
  71. package/dist-cjs/commands/UpdateMalwareScanSettingsCommand.js +0 -1
  72. package/dist-cjs/commands/UpdateMemberDetectorsCommand.js +0 -1
  73. package/dist-cjs/commands/UpdateOrganizationConfigurationCommand.js +0 -1
  74. package/dist-cjs/commands/UpdatePublishingDestinationCommand.js +0 -1
  75. package/dist-cjs/commands/UpdateThreatIntelSetCommand.js +0 -1
  76. package/dist-cjs/commands/index.js +0 -1
  77. package/dist-cjs/endpoint/EndpointParameters.js +0 -1
  78. package/dist-cjs/extensionConfiguration.js +0 -1
  79. package/dist-cjs/models/GuardDutyServiceException.js +0 -1
  80. package/dist-cjs/models/index.js +0 -1
  81. package/dist-cjs/models/models_0.js +0 -1
  82. package/dist-cjs/models/models_1.js +0 -1
  83. package/dist-cjs/pagination/DescribeMalwareScansPaginator.js +0 -1
  84. package/dist-cjs/pagination/DescribeOrganizationConfigurationPaginator.js +0 -1
  85. package/dist-cjs/pagination/GetUsageStatisticsPaginator.js +0 -1
  86. package/dist-cjs/pagination/Interfaces.js +0 -1
  87. package/dist-cjs/pagination/ListCoveragePaginator.js +0 -1
  88. package/dist-cjs/pagination/ListDetectorsPaginator.js +0 -1
  89. package/dist-cjs/pagination/ListFiltersPaginator.js +0 -1
  90. package/dist-cjs/pagination/ListFindingsPaginator.js +0 -1
  91. package/dist-cjs/pagination/ListIPSetsPaginator.js +0 -1
  92. package/dist-cjs/pagination/ListInvitationsPaginator.js +0 -1
  93. package/dist-cjs/pagination/ListMembersPaginator.js +0 -1
  94. package/dist-cjs/pagination/ListOrganizationAdminAccountsPaginator.js +0 -1
  95. package/dist-cjs/pagination/ListPublishingDestinationsPaginator.js +0 -1
  96. package/dist-cjs/pagination/ListThreatIntelSetsPaginator.js +0 -1
  97. package/dist-cjs/pagination/index.js +0 -1
  98. package/dist-cjs/protocols/Aws_restJson1.js +0 -1
  99. package/dist-cjs/runtimeExtensions.js +0 -1
package/dist-cjs/index.js CHANGED
@@ -328,6 +328,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
328
328
  var import_types = require("@smithy/types");
329
329
 
330
330
  // src/protocols/Aws_restJson1.ts
331
+ var import_core2 = require("@aws-sdk/core");
331
332
 
332
333
 
333
334
  var import_uuid = require("uuid");
@@ -1833,7 +1834,7 @@ var de_CreateDetectorCommand = /* @__PURE__ */ __name(async (output, context) =>
1833
1834
  const contents = (0, import_smithy_client.map)({
1834
1835
  $metadata: deserializeMetadata(output)
1835
1836
  });
1836
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1837
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1837
1838
  const doc = (0, import_smithy_client.take)(data, {
1838
1839
  DetectorId: [, import_smithy_client.expectString, `detectorId`],
1839
1840
  UnprocessedDataSources: [, (_) => de_UnprocessedDataSourcesResult(_, context), `unprocessedDataSources`]
@@ -1848,7 +1849,7 @@ var de_CreateFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
1848
1849
  const contents = (0, import_smithy_client.map)({
1849
1850
  $metadata: deserializeMetadata(output)
1850
1851
  });
1851
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1852
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1852
1853
  const doc = (0, import_smithy_client.take)(data, {
1853
1854
  Name: [, import_smithy_client.expectString, `name`]
1854
1855
  });
@@ -1862,7 +1863,7 @@ var de_CreateIPSetCommand = /* @__PURE__ */ __name(async (output, context) => {
1862
1863
  const contents = (0, import_smithy_client.map)({
1863
1864
  $metadata: deserializeMetadata(output)
1864
1865
  });
1865
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1866
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1866
1867
  const doc = (0, import_smithy_client.take)(data, {
1867
1868
  IpSetId: [, import_smithy_client.expectString, `ipSetId`]
1868
1869
  });
@@ -1876,7 +1877,7 @@ var de_CreateMembersCommand = /* @__PURE__ */ __name(async (output, context) =>
1876
1877
  const contents = (0, import_smithy_client.map)({
1877
1878
  $metadata: deserializeMetadata(output)
1878
1879
  });
1879
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1880
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1880
1881
  const doc = (0, import_smithy_client.take)(data, {
1881
1882
  UnprocessedAccounts: [, (_) => de_UnprocessedAccounts(_, context), `unprocessedAccounts`]
1882
1883
  });
@@ -1890,7 +1891,7 @@ var de_CreatePublishingDestinationCommand = /* @__PURE__ */ __name(async (output
1890
1891
  const contents = (0, import_smithy_client.map)({
1891
1892
  $metadata: deserializeMetadata(output)
1892
1893
  });
1893
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1894
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1894
1895
  const doc = (0, import_smithy_client.take)(data, {
1895
1896
  DestinationId: [, import_smithy_client.expectString, `destinationId`]
1896
1897
  });
@@ -1914,7 +1915,7 @@ var de_CreateThreatIntelSetCommand = /* @__PURE__ */ __name(async (output, conte
1914
1915
  const contents = (0, import_smithy_client.map)({
1915
1916
  $metadata: deserializeMetadata(output)
1916
1917
  });
1917
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1918
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1918
1919
  const doc = (0, import_smithy_client.take)(data, {
1919
1920
  ThreatIntelSetId: [, import_smithy_client.expectString, `threatIntelSetId`]
1920
1921
  });
@@ -1928,7 +1929,7 @@ var de_DeclineInvitationsCommand = /* @__PURE__ */ __name(async (output, context
1928
1929
  const contents = (0, import_smithy_client.map)({
1929
1930
  $metadata: deserializeMetadata(output)
1930
1931
  });
1931
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1932
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1932
1933
  const doc = (0, import_smithy_client.take)(data, {
1933
1934
  UnprocessedAccounts: [, (_) => de_UnprocessedAccounts(_, context), `unprocessedAccounts`]
1934
1935
  });
@@ -1962,7 +1963,7 @@ var de_DeleteInvitationsCommand = /* @__PURE__ */ __name(async (output, context)
1962
1963
  const contents = (0, import_smithy_client.map)({
1963
1964
  $metadata: deserializeMetadata(output)
1964
1965
  });
1965
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1966
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1966
1967
  const doc = (0, import_smithy_client.take)(data, {
1967
1968
  UnprocessedAccounts: [, (_) => de_UnprocessedAccounts(_, context), `unprocessedAccounts`]
1968
1969
  });
@@ -1986,7 +1987,7 @@ var de_DeleteMembersCommand = /* @__PURE__ */ __name(async (output, context) =>
1986
1987
  const contents = (0, import_smithy_client.map)({
1987
1988
  $metadata: deserializeMetadata(output)
1988
1989
  });
1989
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1990
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1990
1991
  const doc = (0, import_smithy_client.take)(data, {
1991
1992
  UnprocessedAccounts: [, (_) => de_UnprocessedAccounts(_, context), `unprocessedAccounts`]
1992
1993
  });
@@ -2020,7 +2021,7 @@ var de_DescribeMalwareScansCommand = /* @__PURE__ */ __name(async (output, conte
2020
2021
  const contents = (0, import_smithy_client.map)({
2021
2022
  $metadata: deserializeMetadata(output)
2022
2023
  });
2023
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2024
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2024
2025
  const doc = (0, import_smithy_client.take)(data, {
2025
2026
  NextToken: [, import_smithy_client.expectString, `nextToken`],
2026
2027
  Scans: [, (_) => de_Scans(_, context), `scans`]
@@ -2035,7 +2036,7 @@ var de_DescribeOrganizationConfigurationCommand = /* @__PURE__ */ __name(async (
2035
2036
  const contents = (0, import_smithy_client.map)({
2036
2037
  $metadata: deserializeMetadata(output)
2037
2038
  });
2038
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2039
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2039
2040
  const doc = (0, import_smithy_client.take)(data, {
2040
2041
  AutoEnable: [, import_smithy_client.expectBoolean, `autoEnable`],
2041
2042
  AutoEnableOrganizationMembers: [, import_smithy_client.expectString, `autoEnableOrganizationMembers`],
@@ -2054,7 +2055,7 @@ var de_DescribePublishingDestinationCommand = /* @__PURE__ */ __name(async (outp
2054
2055
  const contents = (0, import_smithy_client.map)({
2055
2056
  $metadata: deserializeMetadata(output)
2056
2057
  });
2057
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2058
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2058
2059
  const doc = (0, import_smithy_client.take)(data, {
2059
2060
  DestinationId: [, import_smithy_client.expectString, `destinationId`],
2060
2061
  DestinationProperties: [, (_) => de_DestinationProperties(_, context), `destinationProperties`],
@@ -2102,7 +2103,7 @@ var de_DisassociateMembersCommand = /* @__PURE__ */ __name(async (output, contex
2102
2103
  const contents = (0, import_smithy_client.map)({
2103
2104
  $metadata: deserializeMetadata(output)
2104
2105
  });
2105
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2106
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2106
2107
  const doc = (0, import_smithy_client.take)(data, {
2107
2108
  UnprocessedAccounts: [, (_) => de_UnprocessedAccounts(_, context), `unprocessedAccounts`]
2108
2109
  });
@@ -2126,7 +2127,7 @@ var de_GetAdministratorAccountCommand = /* @__PURE__ */ __name(async (output, co
2126
2127
  const contents = (0, import_smithy_client.map)({
2127
2128
  $metadata: deserializeMetadata(output)
2128
2129
  });
2129
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2130
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2130
2131
  const doc = (0, import_smithy_client.take)(data, {
2131
2132
  Administrator: [, (_) => de_Administrator(_, context), `administrator`]
2132
2133
  });
@@ -2140,7 +2141,7 @@ var de_GetCoverageStatisticsCommand = /* @__PURE__ */ __name(async (output, cont
2140
2141
  const contents = (0, import_smithy_client.map)({
2141
2142
  $metadata: deserializeMetadata(output)
2142
2143
  });
2143
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2144
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2144
2145
  const doc = (0, import_smithy_client.take)(data, {
2145
2146
  CoverageStatistics: [, (_) => de_CoverageStatistics(_, context), `coverageStatistics`]
2146
2147
  });
@@ -2154,7 +2155,7 @@ var de_GetDetectorCommand = /* @__PURE__ */ __name(async (output, context) => {
2154
2155
  const contents = (0, import_smithy_client.map)({
2155
2156
  $metadata: deserializeMetadata(output)
2156
2157
  });
2157
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2158
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2158
2159
  const doc = (0, import_smithy_client.take)(data, {
2159
2160
  CreatedAt: [, import_smithy_client.expectString, `createdAt`],
2160
2161
  DataSources: [, (_) => de_DataSourceConfigurationsResult(_, context), `dataSources`],
@@ -2175,7 +2176,7 @@ var de_GetFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
2175
2176
  const contents = (0, import_smithy_client.map)({
2176
2177
  $metadata: deserializeMetadata(output)
2177
2178
  });
2178
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2179
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2179
2180
  const doc = (0, import_smithy_client.take)(data, {
2180
2181
  Action: [, import_smithy_client.expectString, `action`],
2181
2182
  Description: [, import_smithy_client.expectString, `description`],
@@ -2194,7 +2195,7 @@ var de_GetFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
2194
2195
  const contents = (0, import_smithy_client.map)({
2195
2196
  $metadata: deserializeMetadata(output)
2196
2197
  });
2197
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2198
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2198
2199
  const doc = (0, import_smithy_client.take)(data, {
2199
2200
  Findings: [, (_) => de_Findings(_, context), `findings`]
2200
2201
  });
@@ -2208,7 +2209,7 @@ var de_GetFindingsStatisticsCommand = /* @__PURE__ */ __name(async (output, cont
2208
2209
  const contents = (0, import_smithy_client.map)({
2209
2210
  $metadata: deserializeMetadata(output)
2210
2211
  });
2211
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2212
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2212
2213
  const doc = (0, import_smithy_client.take)(data, {
2213
2214
  FindingStatistics: [, (_) => de_FindingStatistics(_, context), `findingStatistics`]
2214
2215
  });
@@ -2222,7 +2223,7 @@ var de_GetInvitationsCountCommand = /* @__PURE__ */ __name(async (output, contex
2222
2223
  const contents = (0, import_smithy_client.map)({
2223
2224
  $metadata: deserializeMetadata(output)
2224
2225
  });
2225
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2226
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2226
2227
  const doc = (0, import_smithy_client.take)(data, {
2227
2228
  InvitationsCount: [, import_smithy_client.expectInt32, `invitationsCount`]
2228
2229
  });
@@ -2236,7 +2237,7 @@ var de_GetIPSetCommand = /* @__PURE__ */ __name(async (output, context) => {
2236
2237
  const contents = (0, import_smithy_client.map)({
2237
2238
  $metadata: deserializeMetadata(output)
2238
2239
  });
2239
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2240
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2240
2241
  const doc = (0, import_smithy_client.take)(data, {
2241
2242
  Format: [, import_smithy_client.expectString, `format`],
2242
2243
  Location: [, import_smithy_client.expectString, `location`],
@@ -2254,7 +2255,7 @@ var de_GetMalwareScanSettingsCommand = /* @__PURE__ */ __name(async (output, con
2254
2255
  const contents = (0, import_smithy_client.map)({
2255
2256
  $metadata: deserializeMetadata(output)
2256
2257
  });
2257
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2258
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2258
2259
  const doc = (0, import_smithy_client.take)(data, {
2259
2260
  EbsSnapshotPreservation: [, import_smithy_client.expectString, `ebsSnapshotPreservation`],
2260
2261
  ScanResourceCriteria: [, (_) => de_ScanResourceCriteria(_, context), `scanResourceCriteria`]
@@ -2269,7 +2270,7 @@ var de_GetMasterAccountCommand = /* @__PURE__ */ __name(async (output, context)
2269
2270
  const contents = (0, import_smithy_client.map)({
2270
2271
  $metadata: deserializeMetadata(output)
2271
2272
  });
2272
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2273
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2273
2274
  const doc = (0, import_smithy_client.take)(data, {
2274
2275
  Master: [, (_) => de_Master(_, context), `master`]
2275
2276
  });
@@ -2283,7 +2284,7 @@ var de_GetMemberDetectorsCommand = /* @__PURE__ */ __name(async (output, context
2283
2284
  const contents = (0, import_smithy_client.map)({
2284
2285
  $metadata: deserializeMetadata(output)
2285
2286
  });
2286
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2287
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2287
2288
  const doc = (0, import_smithy_client.take)(data, {
2288
2289
  MemberDataSourceConfigurations: [, (_) => de_MemberDataSourceConfigurations(_, context), `members`],
2289
2290
  UnprocessedAccounts: [, (_) => de_UnprocessedAccounts(_, context), `unprocessedAccounts`]
@@ -2298,7 +2299,7 @@ var de_GetMembersCommand = /* @__PURE__ */ __name(async (output, context) => {
2298
2299
  const contents = (0, import_smithy_client.map)({
2299
2300
  $metadata: deserializeMetadata(output)
2300
2301
  });
2301
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2302
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2302
2303
  const doc = (0, import_smithy_client.take)(data, {
2303
2304
  Members: [, (_) => de_Members(_, context), `members`],
2304
2305
  UnprocessedAccounts: [, (_) => de_UnprocessedAccounts(_, context), `unprocessedAccounts`]
@@ -2313,7 +2314,7 @@ var de_GetOrganizationStatisticsCommand = /* @__PURE__ */ __name(async (output,
2313
2314
  const contents = (0, import_smithy_client.map)({
2314
2315
  $metadata: deserializeMetadata(output)
2315
2316
  });
2316
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2317
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2317
2318
  const doc = (0, import_smithy_client.take)(data, {
2318
2319
  OrganizationDetails: [, (_) => de_OrganizationDetails(_, context), `organizationDetails`]
2319
2320
  });
@@ -2327,7 +2328,7 @@ var de_GetRemainingFreeTrialDaysCommand = /* @__PURE__ */ __name(async (output,
2327
2328
  const contents = (0, import_smithy_client.map)({
2328
2329
  $metadata: deserializeMetadata(output)
2329
2330
  });
2330
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2331
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2331
2332
  const doc = (0, import_smithy_client.take)(data, {
2332
2333
  Accounts: [, (_) => de_AccountFreeTrialInfos(_, context), `accounts`],
2333
2334
  UnprocessedAccounts: [, (_) => de_UnprocessedAccounts(_, context), `unprocessedAccounts`]
@@ -2342,7 +2343,7 @@ var de_GetThreatIntelSetCommand = /* @__PURE__ */ __name(async (output, context)
2342
2343
  const contents = (0, import_smithy_client.map)({
2343
2344
  $metadata: deserializeMetadata(output)
2344
2345
  });
2345
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2346
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2346
2347
  const doc = (0, import_smithy_client.take)(data, {
2347
2348
  Format: [, import_smithy_client.expectString, `format`],
2348
2349
  Location: [, import_smithy_client.expectString, `location`],
@@ -2360,7 +2361,7 @@ var de_GetUsageStatisticsCommand = /* @__PURE__ */ __name(async (output, context
2360
2361
  const contents = (0, import_smithy_client.map)({
2361
2362
  $metadata: deserializeMetadata(output)
2362
2363
  });
2363
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2364
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2364
2365
  const doc = (0, import_smithy_client.take)(data, {
2365
2366
  NextToken: [, import_smithy_client.expectString, `nextToken`],
2366
2367
  UsageStatistics: [, (_) => de_UsageStatistics(_, context), `usageStatistics`]
@@ -2375,7 +2376,7 @@ var de_InviteMembersCommand = /* @__PURE__ */ __name(async (output, context) =>
2375
2376
  const contents = (0, import_smithy_client.map)({
2376
2377
  $metadata: deserializeMetadata(output)
2377
2378
  });
2378
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2379
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2379
2380
  const doc = (0, import_smithy_client.take)(data, {
2380
2381
  UnprocessedAccounts: [, (_) => de_UnprocessedAccounts(_, context), `unprocessedAccounts`]
2381
2382
  });
@@ -2389,7 +2390,7 @@ var de_ListCoverageCommand = /* @__PURE__ */ __name(async (output, context) => {
2389
2390
  const contents = (0, import_smithy_client.map)({
2390
2391
  $metadata: deserializeMetadata(output)
2391
2392
  });
2392
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2393
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2393
2394
  const doc = (0, import_smithy_client.take)(data, {
2394
2395
  NextToken: [, import_smithy_client.expectString, `nextToken`],
2395
2396
  Resources: [, (_) => de_CoverageResources(_, context), `resources`]
@@ -2404,7 +2405,7 @@ var de_ListDetectorsCommand = /* @__PURE__ */ __name(async (output, context) =>
2404
2405
  const contents = (0, import_smithy_client.map)({
2405
2406
  $metadata: deserializeMetadata(output)
2406
2407
  });
2407
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2408
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2408
2409
  const doc = (0, import_smithy_client.take)(data, {
2409
2410
  DetectorIds: [, import_smithy_client._json, `detectorIds`],
2410
2411
  NextToken: [, import_smithy_client.expectString, `nextToken`]
@@ -2419,7 +2420,7 @@ var de_ListFiltersCommand = /* @__PURE__ */ __name(async (output, context) => {
2419
2420
  const contents = (0, import_smithy_client.map)({
2420
2421
  $metadata: deserializeMetadata(output)
2421
2422
  });
2422
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2423
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2423
2424
  const doc = (0, import_smithy_client.take)(data, {
2424
2425
  FilterNames: [, import_smithy_client._json, `filterNames`],
2425
2426
  NextToken: [, import_smithy_client.expectString, `nextToken`]
@@ -2434,7 +2435,7 @@ var de_ListFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
2434
2435
  const contents = (0, import_smithy_client.map)({
2435
2436
  $metadata: deserializeMetadata(output)
2436
2437
  });
2437
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2438
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2438
2439
  const doc = (0, import_smithy_client.take)(data, {
2439
2440
  FindingIds: [, import_smithy_client._json, `findingIds`],
2440
2441
  NextToken: [, import_smithy_client.expectString, `nextToken`]
@@ -2449,7 +2450,7 @@ var de_ListInvitationsCommand = /* @__PURE__ */ __name(async (output, context) =
2449
2450
  const contents = (0, import_smithy_client.map)({
2450
2451
  $metadata: deserializeMetadata(output)
2451
2452
  });
2452
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2453
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2453
2454
  const doc = (0, import_smithy_client.take)(data, {
2454
2455
  Invitations: [, (_) => de_Invitations(_, context), `invitations`],
2455
2456
  NextToken: [, import_smithy_client.expectString, `nextToken`]
@@ -2464,7 +2465,7 @@ var de_ListIPSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
2464
2465
  const contents = (0, import_smithy_client.map)({
2465
2466
  $metadata: deserializeMetadata(output)
2466
2467
  });
2467
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2468
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2468
2469
  const doc = (0, import_smithy_client.take)(data, {
2469
2470
  IpSetIds: [, import_smithy_client._json, `ipSetIds`],
2470
2471
  NextToken: [, import_smithy_client.expectString, `nextToken`]
@@ -2479,7 +2480,7 @@ var de_ListMembersCommand = /* @__PURE__ */ __name(async (output, context) => {
2479
2480
  const contents = (0, import_smithy_client.map)({
2480
2481
  $metadata: deserializeMetadata(output)
2481
2482
  });
2482
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2483
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2483
2484
  const doc = (0, import_smithy_client.take)(data, {
2484
2485
  Members: [, (_) => de_Members(_, context), `members`],
2485
2486
  NextToken: [, import_smithy_client.expectString, `nextToken`]
@@ -2494,7 +2495,7 @@ var de_ListOrganizationAdminAccountsCommand = /* @__PURE__ */ __name(async (outp
2494
2495
  const contents = (0, import_smithy_client.map)({
2495
2496
  $metadata: deserializeMetadata(output)
2496
2497
  });
2497
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2498
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2498
2499
  const doc = (0, import_smithy_client.take)(data, {
2499
2500
  AdminAccounts: [, (_) => de_AdminAccounts(_, context), `adminAccounts`],
2500
2501
  NextToken: [, import_smithy_client.expectString, `nextToken`]
@@ -2509,7 +2510,7 @@ var de_ListPublishingDestinationsCommand = /* @__PURE__ */ __name(async (output,
2509
2510
  const contents = (0, import_smithy_client.map)({
2510
2511
  $metadata: deserializeMetadata(output)
2511
2512
  });
2512
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2513
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2513
2514
  const doc = (0, import_smithy_client.take)(data, {
2514
2515
  Destinations: [, (_) => de_Destinations(_, context), `destinations`],
2515
2516
  NextToken: [, import_smithy_client.expectString, `nextToken`]
@@ -2524,7 +2525,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
2524
2525
  const contents = (0, import_smithy_client.map)({
2525
2526
  $metadata: deserializeMetadata(output)
2526
2527
  });
2527
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2528
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2528
2529
  const doc = (0, import_smithy_client.take)(data, {
2529
2530
  Tags: [, import_smithy_client._json, `tags`]
2530
2531
  });
@@ -2538,7 +2539,7 @@ var de_ListThreatIntelSetsCommand = /* @__PURE__ */ __name(async (output, contex
2538
2539
  const contents = (0, import_smithy_client.map)({
2539
2540
  $metadata: deserializeMetadata(output)
2540
2541
  });
2541
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2542
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2542
2543
  const doc = (0, import_smithy_client.take)(data, {
2543
2544
  NextToken: [, import_smithy_client.expectString, `nextToken`],
2544
2545
  ThreatIntelSetIds: [, import_smithy_client._json, `threatIntelSetIds`]
@@ -2553,7 +2554,7 @@ var de_StartMalwareScanCommand = /* @__PURE__ */ __name(async (output, context)
2553
2554
  const contents = (0, import_smithy_client.map)({
2554
2555
  $metadata: deserializeMetadata(output)
2555
2556
  });
2556
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2557
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2557
2558
  const doc = (0, import_smithy_client.take)(data, {
2558
2559
  ScanId: [, import_smithy_client.expectString, `scanId`]
2559
2560
  });
@@ -2567,7 +2568,7 @@ var de_StartMonitoringMembersCommand = /* @__PURE__ */ __name(async (output, con
2567
2568
  const contents = (0, import_smithy_client.map)({
2568
2569
  $metadata: deserializeMetadata(output)
2569
2570
  });
2570
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2571
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2571
2572
  const doc = (0, import_smithy_client.take)(data, {
2572
2573
  UnprocessedAccounts: [, (_) => de_UnprocessedAccounts(_, context), `unprocessedAccounts`]
2573
2574
  });
@@ -2581,7 +2582,7 @@ var de_StopMonitoringMembersCommand = /* @__PURE__ */ __name(async (output, cont
2581
2582
  const contents = (0, import_smithy_client.map)({
2582
2583
  $metadata: deserializeMetadata(output)
2583
2584
  });
2584
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2585
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2585
2586
  const doc = (0, import_smithy_client.take)(data, {
2586
2587
  UnprocessedAccounts: [, (_) => de_UnprocessedAccounts(_, context), `unprocessedAccounts`]
2587
2588
  });
@@ -2635,7 +2636,7 @@ var de_UpdateFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
2635
2636
  const contents = (0, import_smithy_client.map)({
2636
2637
  $metadata: deserializeMetadata(output)
2637
2638
  });
2638
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2639
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2639
2640
  const doc = (0, import_smithy_client.take)(data, {
2640
2641
  Name: [, import_smithy_client.expectString, `name`]
2641
2642
  });
@@ -2679,7 +2680,7 @@ var de_UpdateMemberDetectorsCommand = /* @__PURE__ */ __name(async (output, cont
2679
2680
  const contents = (0, import_smithy_client.map)({
2680
2681
  $metadata: deserializeMetadata(output)
2681
2682
  });
2682
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2683
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2683
2684
  const doc = (0, import_smithy_client.take)(data, {
2684
2685
  UnprocessedAccounts: [, (_) => de_UnprocessedAccounts(_, context), `unprocessedAccounts`]
2685
2686
  });
@@ -2719,9 +2720,9 @@ var de_UpdateThreatIntelSetCommand = /* @__PURE__ */ __name(async (output, conte
2719
2720
  var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
2720
2721
  const parsedOutput = {
2721
2722
  ...output,
2722
- body: await parseErrorBody(output.body, context)
2723
+ body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
2723
2724
  };
2724
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2725
+ const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
2725
2726
  switch (errorCode) {
2726
2727
  case "BadRequestException":
2727
2728
  case "com.amazonaws.guardduty#BadRequestException":
@@ -4628,7 +4629,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
4628
4629
  extendedRequestId: output.headers["x-amz-id-2"],
4629
4630
  cfId: output.headers["x-amz-cf-id"]
4630
4631
  }), "deserializeMetadata");
4631
- var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
4632
4632
  var _MR = "MaxResults";
4633
4633
  var _NT = "NextToken";
4634
4634
  var _OA = "OnlyAssociated";
@@ -4637,46 +4637,6 @@ var _mR = "maxResults";
4637
4637
  var _nT = "nextToken";
4638
4638
  var _oA = "onlyAssociated";
4639
4639
  var _tK = "tagKeys";
4640
- var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
4641
- if (encoded.length) {
4642
- return JSON.parse(encoded);
4643
- }
4644
- return {};
4645
- }), "parseBody");
4646
- var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
4647
- const value = await parseBody(errorBody, context);
4648
- value.message = value.message ?? value.Message;
4649
- return value;
4650
- }, "parseErrorBody");
4651
- var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
4652
- const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
4653
- const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
4654
- let cleanValue = rawValue;
4655
- if (typeof cleanValue === "number") {
4656
- cleanValue = cleanValue.toString();
4657
- }
4658
- if (cleanValue.indexOf(",") >= 0) {
4659
- cleanValue = cleanValue.split(",")[0];
4660
- }
4661
- if (cleanValue.indexOf(":") >= 0) {
4662
- cleanValue = cleanValue.split(":")[0];
4663
- }
4664
- if (cleanValue.indexOf("#") >= 0) {
4665
- cleanValue = cleanValue.split("#")[1];
4666
- }
4667
- return cleanValue;
4668
- }, "sanitizeErrorCode");
4669
- const headerKey = findKey(output.headers, "x-amzn-errortype");
4670
- if (headerKey !== void 0) {
4671
- return sanitizeErrorCode(output.headers[headerKey]);
4672
- }
4673
- if (data.code !== void 0) {
4674
- return sanitizeErrorCode(data.code);
4675
- }
4676
- if (data["__type"] !== void 0) {
4677
- return sanitizeErrorCode(data["__type"]);
4678
- }
4679
- }, "loadRestJsonErrorCode");
4680
4640
 
4681
4641
  // src/commands/AcceptAdministratorInvitationCommand.ts
4682
4642
  var _AcceptAdministratorInvitationCommand = class _AcceptAdministratorInvitationCommand 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, expectBoolean as __expectBoolean, 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";
3
4
  import { v4 as generateIdempotencyToken } from "uuid";
@@ -3883,43 +3884,3 @@ const _mR = "maxResults";
3883
3884
  const _nT = "nextToken";
3884
3885
  const _oA = "onlyAssociated";
3885
3886
  const _tK = "tagKeys";
3886
- const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
3887
- if (encoded.length) {
3888
- return JSON.parse(encoded);
3889
- }
3890
- return {};
3891
- });
3892
- const parseErrorBody = async (errorBody, context) => {
3893
- const value = await parseBody(errorBody, context);
3894
- value.message = value.message ?? value.Message;
3895
- return value;
3896
- };
3897
- const loadRestJsonErrorCode = (output, data) => {
3898
- const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
3899
- const sanitizeErrorCode = (rawValue) => {
3900
- let cleanValue = rawValue;
3901
- if (typeof cleanValue === "number") {
3902
- cleanValue = cleanValue.toString();
3903
- }
3904
- if (cleanValue.indexOf(",") >= 0) {
3905
- cleanValue = cleanValue.split(",")[0];
3906
- }
3907
- if (cleanValue.indexOf(":") >= 0) {
3908
- cleanValue = cleanValue.split(":")[0];
3909
- }
3910
- if (cleanValue.indexOf("#") >= 0) {
3911
- cleanValue = cleanValue.split("#")[1];
3912
- }
3913
- return cleanValue;
3914
- };
3915
- const headerKey = findKey(output.headers, "x-amzn-errortype");
3916
- if (headerKey !== undefined) {
3917
- return sanitizeErrorCode(output.headers[headerKey]);
3918
- }
3919
- if (data.code !== undefined) {
3920
- return sanitizeErrorCode(data.code);
3921
- }
3922
- if (data["__type"] !== undefined) {
3923
- return sanitizeErrorCode(data["__type"]);
3924
- }
3925
- };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-guardduty",
3
3
  "description": "AWS SDK for JavaScript Guardduty 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-guardduty",
@@ -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");
@@ -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");