@aws-sdk/client-guardduty 3.353.0 → 3.357.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.
@@ -1516,7 +1516,7 @@ const de_AcceptAdministratorInvitationCommand = async (output, context) => {
1516
1516
  const contents = (0, smithy_client_1.map)({
1517
1517
  $metadata: deserializeMetadata(output),
1518
1518
  });
1519
- await collectBody(output.body, context);
1519
+ await (0, smithy_client_1.collectBody)(output.body, context);
1520
1520
  return contents;
1521
1521
  };
1522
1522
  exports.de_AcceptAdministratorInvitationCommand = de_AcceptAdministratorInvitationCommand;
@@ -1549,7 +1549,7 @@ const de_AcceptInvitationCommand = async (output, context) => {
1549
1549
  const contents = (0, smithy_client_1.map)({
1550
1550
  $metadata: deserializeMetadata(output),
1551
1551
  });
1552
- await collectBody(output.body, context);
1552
+ await (0, smithy_client_1.collectBody)(output.body, context);
1553
1553
  return contents;
1554
1554
  };
1555
1555
  exports.de_AcceptInvitationCommand = de_AcceptInvitationCommand;
@@ -1582,7 +1582,7 @@ const de_ArchiveFindingsCommand = async (output, context) => {
1582
1582
  const contents = (0, smithy_client_1.map)({
1583
1583
  $metadata: deserializeMetadata(output),
1584
1584
  });
1585
- await collectBody(output.body, context);
1585
+ await (0, smithy_client_1.collectBody)(output.body, context);
1586
1586
  return contents;
1587
1587
  };
1588
1588
  exports.de_ArchiveFindingsCommand = de_ArchiveFindingsCommand;
@@ -1801,7 +1801,7 @@ const de_CreateSampleFindingsCommand = async (output, context) => {
1801
1801
  const contents = (0, smithy_client_1.map)({
1802
1802
  $metadata: deserializeMetadata(output),
1803
1803
  });
1804
- await collectBody(output.body, context);
1804
+ await (0, smithy_client_1.collectBody)(output.body, context);
1805
1805
  return contents;
1806
1806
  };
1807
1807
  exports.de_CreateSampleFindingsCommand = de_CreateSampleFindingsCommand;
@@ -1908,7 +1908,7 @@ const de_DeleteDetectorCommand = async (output, context) => {
1908
1908
  const contents = (0, smithy_client_1.map)({
1909
1909
  $metadata: deserializeMetadata(output),
1910
1910
  });
1911
- await collectBody(output.body, context);
1911
+ await (0, smithy_client_1.collectBody)(output.body, context);
1912
1912
  return contents;
1913
1913
  };
1914
1914
  exports.de_DeleteDetectorCommand = de_DeleteDetectorCommand;
@@ -1941,7 +1941,7 @@ const de_DeleteFilterCommand = async (output, context) => {
1941
1941
  const contents = (0, smithy_client_1.map)({
1942
1942
  $metadata: deserializeMetadata(output),
1943
1943
  });
1944
- await collectBody(output.body, context);
1944
+ await (0, smithy_client_1.collectBody)(output.body, context);
1945
1945
  return contents;
1946
1946
  };
1947
1947
  exports.de_DeleteFilterCommand = de_DeleteFilterCommand;
@@ -2011,7 +2011,7 @@ const de_DeleteIPSetCommand = async (output, context) => {
2011
2011
  const contents = (0, smithy_client_1.map)({
2012
2012
  $metadata: deserializeMetadata(output),
2013
2013
  });
2014
- await collectBody(output.body, context);
2014
+ await (0, smithy_client_1.collectBody)(output.body, context);
2015
2015
  return contents;
2016
2016
  };
2017
2017
  exports.de_DeleteIPSetCommand = de_DeleteIPSetCommand;
@@ -2081,7 +2081,7 @@ const de_DeletePublishingDestinationCommand = async (output, context) => {
2081
2081
  const contents = (0, smithy_client_1.map)({
2082
2082
  $metadata: deserializeMetadata(output),
2083
2083
  });
2084
- await collectBody(output.body, context);
2084
+ await (0, smithy_client_1.collectBody)(output.body, context);
2085
2085
  return contents;
2086
2086
  };
2087
2087
  exports.de_DeletePublishingDestinationCommand = de_DeletePublishingDestinationCommand;
@@ -2114,7 +2114,7 @@ const de_DeleteThreatIntelSetCommand = async (output, context) => {
2114
2114
  const contents = (0, smithy_client_1.map)({
2115
2115
  $metadata: deserializeMetadata(output),
2116
2116
  });
2117
- await collectBody(output.body, context);
2117
+ await (0, smithy_client_1.collectBody)(output.body, context);
2118
2118
  return contents;
2119
2119
  };
2120
2120
  exports.de_DeleteThreatIntelSetCommand = de_DeleteThreatIntelSetCommand;
@@ -2268,7 +2268,7 @@ const de_DisableOrganizationAdminAccountCommand = async (output, context) => {
2268
2268
  const contents = (0, smithy_client_1.map)({
2269
2269
  $metadata: deserializeMetadata(output),
2270
2270
  });
2271
- await collectBody(output.body, context);
2271
+ await (0, smithy_client_1.collectBody)(output.body, context);
2272
2272
  return contents;
2273
2273
  };
2274
2274
  exports.de_DisableOrganizationAdminAccountCommand = de_DisableOrganizationAdminAccountCommand;
@@ -2301,7 +2301,7 @@ const de_DisassociateFromAdministratorAccountCommand = async (output, context) =
2301
2301
  const contents = (0, smithy_client_1.map)({
2302
2302
  $metadata: deserializeMetadata(output),
2303
2303
  });
2304
- await collectBody(output.body, context);
2304
+ await (0, smithy_client_1.collectBody)(output.body, context);
2305
2305
  return contents;
2306
2306
  };
2307
2307
  exports.de_DisassociateFromAdministratorAccountCommand = de_DisassociateFromAdministratorAccountCommand;
@@ -2334,7 +2334,7 @@ const de_DisassociateFromMasterAccountCommand = async (output, context) => {
2334
2334
  const contents = (0, smithy_client_1.map)({
2335
2335
  $metadata: deserializeMetadata(output),
2336
2336
  });
2337
- await collectBody(output.body, context);
2337
+ await (0, smithy_client_1.collectBody)(output.body, context);
2338
2338
  return contents;
2339
2339
  };
2340
2340
  exports.de_DisassociateFromMasterAccountCommand = de_DisassociateFromMasterAccountCommand;
@@ -2404,7 +2404,7 @@ const de_EnableOrganizationAdminAccountCommand = async (output, context) => {
2404
2404
  const contents = (0, smithy_client_1.map)({
2405
2405
  $metadata: deserializeMetadata(output),
2406
2406
  });
2407
- await collectBody(output.body, context);
2407
+ await (0, smithy_client_1.collectBody)(output.body, context);
2408
2408
  return contents;
2409
2409
  };
2410
2410
  exports.de_EnableOrganizationAdminAccountCommand = de_EnableOrganizationAdminAccountCommand;
@@ -3588,7 +3588,7 @@ const de_TagResourceCommand = async (output, context) => {
3588
3588
  const contents = (0, smithy_client_1.map)({
3589
3589
  $metadata: deserializeMetadata(output),
3590
3590
  });
3591
- await collectBody(output.body, context);
3591
+ await (0, smithy_client_1.collectBody)(output.body, context);
3592
3592
  return contents;
3593
3593
  };
3594
3594
  exports.de_TagResourceCommand = de_TagResourceCommand;
@@ -3624,7 +3624,7 @@ const de_UnarchiveFindingsCommand = async (output, context) => {
3624
3624
  const contents = (0, smithy_client_1.map)({
3625
3625
  $metadata: deserializeMetadata(output),
3626
3626
  });
3627
- await collectBody(output.body, context);
3627
+ await (0, smithy_client_1.collectBody)(output.body, context);
3628
3628
  return contents;
3629
3629
  };
3630
3630
  exports.de_UnarchiveFindingsCommand = de_UnarchiveFindingsCommand;
@@ -3657,7 +3657,7 @@ const de_UntagResourceCommand = async (output, context) => {
3657
3657
  const contents = (0, smithy_client_1.map)({
3658
3658
  $metadata: deserializeMetadata(output),
3659
3659
  });
3660
- await collectBody(output.body, context);
3660
+ await (0, smithy_client_1.collectBody)(output.body, context);
3661
3661
  return contents;
3662
3662
  };
3663
3663
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
@@ -3693,7 +3693,7 @@ const de_UpdateDetectorCommand = async (output, context) => {
3693
3693
  const contents = (0, smithy_client_1.map)({
3694
3694
  $metadata: deserializeMetadata(output),
3695
3695
  });
3696
- await collectBody(output.body, context);
3696
+ await (0, smithy_client_1.collectBody)(output.body, context);
3697
3697
  return contents;
3698
3698
  };
3699
3699
  exports.de_UpdateDetectorCommand = de_UpdateDetectorCommand;
@@ -3763,7 +3763,7 @@ const de_UpdateFindingsFeedbackCommand = async (output, context) => {
3763
3763
  const contents = (0, smithy_client_1.map)({
3764
3764
  $metadata: deserializeMetadata(output),
3765
3765
  });
3766
- await collectBody(output.body, context);
3766
+ await (0, smithy_client_1.collectBody)(output.body, context);
3767
3767
  return contents;
3768
3768
  };
3769
3769
  exports.de_UpdateFindingsFeedbackCommand = de_UpdateFindingsFeedbackCommand;
@@ -3796,7 +3796,7 @@ const de_UpdateIPSetCommand = async (output, context) => {
3796
3796
  const contents = (0, smithy_client_1.map)({
3797
3797
  $metadata: deserializeMetadata(output),
3798
3798
  });
3799
- await collectBody(output.body, context);
3799
+ await (0, smithy_client_1.collectBody)(output.body, context);
3800
3800
  return contents;
3801
3801
  };
3802
3802
  exports.de_UpdateIPSetCommand = de_UpdateIPSetCommand;
@@ -3829,7 +3829,7 @@ const de_UpdateMalwareScanSettingsCommand = async (output, context) => {
3829
3829
  const contents = (0, smithy_client_1.map)({
3830
3830
  $metadata: deserializeMetadata(output),
3831
3831
  });
3832
- await collectBody(output.body, context);
3832
+ await (0, smithy_client_1.collectBody)(output.body, context);
3833
3833
  return contents;
3834
3834
  };
3835
3835
  exports.de_UpdateMalwareScanSettingsCommand = de_UpdateMalwareScanSettingsCommand;
@@ -3899,7 +3899,7 @@ const de_UpdateOrganizationConfigurationCommand = async (output, context) => {
3899
3899
  const contents = (0, smithy_client_1.map)({
3900
3900
  $metadata: deserializeMetadata(output),
3901
3901
  });
3902
- await collectBody(output.body, context);
3902
+ await (0, smithy_client_1.collectBody)(output.body, context);
3903
3903
  return contents;
3904
3904
  };
3905
3905
  exports.de_UpdateOrganizationConfigurationCommand = de_UpdateOrganizationConfigurationCommand;
@@ -3932,7 +3932,7 @@ const de_UpdatePublishingDestinationCommand = async (output, context) => {
3932
3932
  const contents = (0, smithy_client_1.map)({
3933
3933
  $metadata: deserializeMetadata(output),
3934
3934
  });
3935
- await collectBody(output.body, context);
3935
+ await (0, smithy_client_1.collectBody)(output.body, context);
3936
3936
  return contents;
3937
3937
  };
3938
3938
  exports.de_UpdatePublishingDestinationCommand = de_UpdatePublishingDestinationCommand;
@@ -3965,7 +3965,7 @@ const de_UpdateThreatIntelSetCommand = async (output, context) => {
3965
3965
  const contents = (0, smithy_client_1.map)({
3966
3966
  $metadata: deserializeMetadata(output),
3967
3967
  });
3968
- await collectBody(output.body, context);
3968
+ await (0, smithy_client_1.collectBody)(output.body, context);
3969
3969
  return contents;
3970
3970
  };
3971
3971
  exports.de_UpdateThreatIntelSetCommand = de_UpdateThreatIntelSetCommand;
@@ -5734,13 +5734,7 @@ const deserializeMetadata = (output) => ({
5734
5734
  extendedRequestId: output.headers["x-amz-id-2"],
5735
5735
  cfId: output.headers["x-amz-cf-id"],
5736
5736
  });
5737
- const collectBody = (streamBody = new Uint8Array(), context) => {
5738
- if (streamBody instanceof Uint8Array) {
5739
- return Promise.resolve(streamBody);
5740
- }
5741
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
5742
- };
5743
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
5737
+ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
5744
5738
  const isSerializableHeaderValue = (value) => value !== undefined &&
5745
5739
  value !== null &&
5746
5740
  value !== "" &&
@@ -1,4 +1,4 @@
1
- import { _json, 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, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
1
+ 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, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { v4 as generateIdempotencyToken } from "uuid";
4
4
  import { GuardDutyServiceException as __BaseException } from "../models/GuardDutyServiceException";
@@ -5593,12 +5593,6 @@ const deserializeMetadata = (output) => ({
5593
5593
  extendedRequestId: output.headers["x-amz-id-2"],
5594
5594
  cfId: output.headers["x-amz-cf-id"],
5595
5595
  });
5596
- const collectBody = (streamBody = new Uint8Array(), context) => {
5597
- if (streamBody instanceof Uint8Array) {
5598
- return Promise.resolve(streamBody);
5599
- }
5600
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
5601
- };
5602
5596
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
5603
5597
  const isSerializableHeaderValue = (value) => value !== undefined &&
5604
5598
  value !== null &&
@@ -141,7 +141,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
141
141
  */
142
142
  runtime?: string;
143
143
  /**
144
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
144
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
145
145
  * trait of an operation.
146
146
  */
147
147
  disableHostPrefix?: boolean;
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.353.0",
4
+ "version": "3.357.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,36 +21,36 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.353.0",
25
- "@aws-sdk/config-resolver": "3.353.0",
26
- "@aws-sdk/credential-provider-node": "3.353.0",
27
- "@aws-sdk/fetch-http-handler": "3.353.0",
28
- "@aws-sdk/hash-node": "3.347.0",
29
- "@aws-sdk/invalid-dependency": "3.347.0",
30
- "@aws-sdk/middleware-content-length": "3.347.0",
31
- "@aws-sdk/middleware-endpoint": "3.347.0",
32
- "@aws-sdk/middleware-host-header": "3.347.0",
33
- "@aws-sdk/middleware-logger": "3.347.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.347.0",
35
- "@aws-sdk/middleware-retry": "3.353.0",
36
- "@aws-sdk/middleware-serde": "3.347.0",
37
- "@aws-sdk/middleware-signing": "3.353.0",
38
- "@aws-sdk/middleware-stack": "3.347.0",
39
- "@aws-sdk/middleware-user-agent": "3.352.0",
40
- "@aws-sdk/node-config-provider": "3.353.0",
41
- "@aws-sdk/node-http-handler": "3.350.0",
42
- "@aws-sdk/smithy-client": "3.347.0",
43
- "@aws-sdk/types": "3.347.0",
44
- "@aws-sdk/url-parser": "3.347.0",
24
+ "@aws-sdk/client-sts": "3.357.0",
25
+ "@aws-sdk/config-resolver": "3.357.0",
26
+ "@aws-sdk/credential-provider-node": "3.357.0",
27
+ "@aws-sdk/fetch-http-handler": "3.357.0",
28
+ "@aws-sdk/hash-node": "3.357.0",
29
+ "@aws-sdk/invalid-dependency": "3.357.0",
30
+ "@aws-sdk/middleware-content-length": "3.357.0",
31
+ "@aws-sdk/middleware-endpoint": "3.357.0",
32
+ "@aws-sdk/middleware-host-header": "3.357.0",
33
+ "@aws-sdk/middleware-logger": "3.357.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.357.0",
35
+ "@aws-sdk/middleware-retry": "3.357.0",
36
+ "@aws-sdk/middleware-serde": "3.357.0",
37
+ "@aws-sdk/middleware-signing": "3.357.0",
38
+ "@aws-sdk/middleware-stack": "3.357.0",
39
+ "@aws-sdk/middleware-user-agent": "3.357.0",
40
+ "@aws-sdk/node-config-provider": "3.357.0",
41
+ "@aws-sdk/node-http-handler": "3.357.0",
42
+ "@aws-sdk/smithy-client": "3.357.0",
43
+ "@aws-sdk/types": "3.357.0",
44
+ "@aws-sdk/url-parser": "3.357.0",
45
45
  "@aws-sdk/util-base64": "3.310.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.310.0",
47
47
  "@aws-sdk/util-body-length-node": "3.310.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.353.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.353.0",
50
- "@aws-sdk/util-endpoints": "3.352.0",
51
- "@aws-sdk/util-retry": "3.347.0",
52
- "@aws-sdk/util-user-agent-browser": "3.347.0",
53
- "@aws-sdk/util-user-agent-node": "3.353.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.357.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.357.0",
50
+ "@aws-sdk/util-endpoints": "3.357.0",
51
+ "@aws-sdk/util-retry": "3.357.0",
52
+ "@aws-sdk/util-user-agent-browser": "3.357.0",
53
+ "@aws-sdk/util-user-agent-node": "3.357.0",
54
54
  "@aws-sdk/util-utf8": "3.310.0",
55
55
  "@smithy/protocol-http": "^1.0.1",
56
56
  "@smithy/types": "^1.0.0",