@aws-sdk/client-macie2 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.
@@ -1686,7 +1686,7 @@ const de_AcceptInvitationCommand = async (output, context) => {
1686
1686
  const contents = (0, smithy_client_1.map)({
1687
1687
  $metadata: deserializeMetadata(output),
1688
1688
  });
1689
- await collectBody(output.body, context);
1689
+ await (0, smithy_client_1.collectBody)(output.body, context);
1690
1690
  return contents;
1691
1691
  };
1692
1692
  exports.de_AcceptInvitationCommand = de_AcceptInvitationCommand;
@@ -2106,7 +2106,7 @@ const de_CreateSampleFindingsCommand = async (output, context) => {
2106
2106
  const contents = (0, smithy_client_1.map)({
2107
2107
  $metadata: deserializeMetadata(output),
2108
2108
  });
2109
- await collectBody(output.body, context);
2109
+ await (0, smithy_client_1.collectBody)(output.body, context);
2110
2110
  return contents;
2111
2111
  };
2112
2112
  exports.de_CreateSampleFindingsCommand = de_CreateSampleFindingsCommand;
@@ -2206,7 +2206,7 @@ const de_DeleteAllowListCommand = async (output, context) => {
2206
2206
  const contents = (0, smithy_client_1.map)({
2207
2207
  $metadata: deserializeMetadata(output),
2208
2208
  });
2209
- await collectBody(output.body, context);
2209
+ await (0, smithy_client_1.collectBody)(output.body, context);
2210
2210
  return contents;
2211
2211
  };
2212
2212
  exports.de_DeleteAllowListCommand = de_DeleteAllowListCommand;
@@ -2248,7 +2248,7 @@ const de_DeleteCustomDataIdentifierCommand = async (output, context) => {
2248
2248
  const contents = (0, smithy_client_1.map)({
2249
2249
  $metadata: deserializeMetadata(output),
2250
2250
  });
2251
- await collectBody(output.body, context);
2251
+ await (0, smithy_client_1.collectBody)(output.body, context);
2252
2252
  return contents;
2253
2253
  };
2254
2254
  exports.de_DeleteCustomDataIdentifierCommand = de_DeleteCustomDataIdentifierCommand;
@@ -2296,7 +2296,7 @@ const de_DeleteFindingsFilterCommand = async (output, context) => {
2296
2296
  const contents = (0, smithy_client_1.map)({
2297
2297
  $metadata: deserializeMetadata(output),
2298
2298
  });
2299
- await collectBody(output.body, context);
2299
+ await (0, smithy_client_1.collectBody)(output.body, context);
2300
2300
  return contents;
2301
2301
  };
2302
2302
  exports.de_DeleteFindingsFilterCommand = de_DeleteFindingsFilterCommand;
@@ -2396,7 +2396,7 @@ const de_DeleteMemberCommand = async (output, context) => {
2396
2396
  const contents = (0, smithy_client_1.map)({
2397
2397
  $metadata: deserializeMetadata(output),
2398
2398
  });
2399
- await collectBody(output.body, context);
2399
+ await (0, smithy_client_1.collectBody)(output.body, context);
2400
2400
  return contents;
2401
2401
  };
2402
2402
  exports.de_DeleteMemberCommand = de_DeleteMemberCommand;
@@ -2622,7 +2622,7 @@ const de_DisableMacieCommand = async (output, context) => {
2622
2622
  const contents = (0, smithy_client_1.map)({
2623
2623
  $metadata: deserializeMetadata(output),
2624
2624
  });
2625
- await collectBody(output.body, context);
2625
+ await (0, smithy_client_1.collectBody)(output.body, context);
2626
2626
  return contents;
2627
2627
  };
2628
2628
  exports.de_DisableMacieCommand = de_DisableMacieCommand;
@@ -2670,7 +2670,7 @@ const de_DisableOrganizationAdminAccountCommand = async (output, context) => {
2670
2670
  const contents = (0, smithy_client_1.map)({
2671
2671
  $metadata: deserializeMetadata(output),
2672
2672
  });
2673
- await collectBody(output.body, context);
2673
+ await (0, smithy_client_1.collectBody)(output.body, context);
2674
2674
  return contents;
2675
2675
  };
2676
2676
  exports.de_DisableOrganizationAdminAccountCommand = de_DisableOrganizationAdminAccountCommand;
@@ -2718,7 +2718,7 @@ const de_DisassociateFromAdministratorAccountCommand = async (output, context) =
2718
2718
  const contents = (0, smithy_client_1.map)({
2719
2719
  $metadata: deserializeMetadata(output),
2720
2720
  });
2721
- await collectBody(output.body, context);
2721
+ await (0, smithy_client_1.collectBody)(output.body, context);
2722
2722
  return contents;
2723
2723
  };
2724
2724
  exports.de_DisassociateFromAdministratorAccountCommand = de_DisassociateFromAdministratorAccountCommand;
@@ -2766,7 +2766,7 @@ const de_DisassociateFromMasterAccountCommand = async (output, context) => {
2766
2766
  const contents = (0, smithy_client_1.map)({
2767
2767
  $metadata: deserializeMetadata(output),
2768
2768
  });
2769
- await collectBody(output.body, context);
2769
+ await (0, smithy_client_1.collectBody)(output.body, context);
2770
2770
  return contents;
2771
2771
  };
2772
2772
  exports.de_DisassociateFromMasterAccountCommand = de_DisassociateFromMasterAccountCommand;
@@ -2814,7 +2814,7 @@ const de_DisassociateMemberCommand = async (output, context) => {
2814
2814
  const contents = (0, smithy_client_1.map)({
2815
2815
  $metadata: deserializeMetadata(output),
2816
2816
  });
2817
- await collectBody(output.body, context);
2817
+ await (0, smithy_client_1.collectBody)(output.body, context);
2818
2818
  return contents;
2819
2819
  };
2820
2820
  exports.de_DisassociateMemberCommand = de_DisassociateMemberCommand;
@@ -2862,7 +2862,7 @@ const de_EnableMacieCommand = async (output, context) => {
2862
2862
  const contents = (0, smithy_client_1.map)({
2863
2863
  $metadata: deserializeMetadata(output),
2864
2864
  });
2865
- await collectBody(output.body, context);
2865
+ await (0, smithy_client_1.collectBody)(output.body, context);
2866
2866
  return contents;
2867
2867
  };
2868
2868
  exports.de_EnableMacieCommand = de_EnableMacieCommand;
@@ -2910,7 +2910,7 @@ const de_EnableOrganizationAdminAccountCommand = async (output, context) => {
2910
2910
  const contents = (0, smithy_client_1.map)({
2911
2911
  $metadata: deserializeMetadata(output),
2912
2912
  });
2913
- await collectBody(output.body, context);
2913
+ await (0, smithy_client_1.collectBody)(output.body, context);
2914
2914
  return contents;
2915
2915
  };
2916
2916
  exports.de_EnableOrganizationAdminAccountCommand = de_EnableOrganizationAdminAccountCommand;
@@ -4854,7 +4854,7 @@ const de_PutFindingsPublicationConfigurationCommand = async (output, context) =>
4854
4854
  const contents = (0, smithy_client_1.map)({
4855
4855
  $metadata: deserializeMetadata(output),
4856
4856
  });
4857
- await collectBody(output.body, context);
4857
+ await (0, smithy_client_1.collectBody)(output.body, context);
4858
4858
  return contents;
4859
4859
  };
4860
4860
  exports.de_PutFindingsPublicationConfigurationCommand = de_PutFindingsPublicationConfigurationCommand;
@@ -4955,7 +4955,7 @@ const de_TagResourceCommand = async (output, context) => {
4955
4955
  const contents = (0, smithy_client_1.map)({
4956
4956
  $metadata: deserializeMetadata(output),
4957
4957
  });
4958
- await collectBody(output.body, context);
4958
+ await (0, smithy_client_1.collectBody)(output.body, context);
4959
4959
  return contents;
4960
4960
  };
4961
4961
  exports.de_TagResourceCommand = de_TagResourceCommand;
@@ -5031,7 +5031,7 @@ const de_UntagResourceCommand = async (output, context) => {
5031
5031
  const contents = (0, smithy_client_1.map)({
5032
5032
  $metadata: deserializeMetadata(output),
5033
5033
  });
5034
- await collectBody(output.body, context);
5034
+ await (0, smithy_client_1.collectBody)(output.body, context);
5035
5035
  return contents;
5036
5036
  };
5037
5037
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
@@ -5102,7 +5102,7 @@ const de_UpdateAutomatedDiscoveryConfigurationCommand = async (output, context)
5102
5102
  const contents = (0, smithy_client_1.map)({
5103
5103
  $metadata: deserializeMetadata(output),
5104
5104
  });
5105
- await collectBody(output.body, context);
5105
+ await (0, smithy_client_1.collectBody)(output.body, context);
5106
5106
  return contents;
5107
5107
  };
5108
5108
  exports.de_UpdateAutomatedDiscoveryConfigurationCommand = de_UpdateAutomatedDiscoveryConfigurationCommand;
@@ -5141,7 +5141,7 @@ const de_UpdateClassificationJobCommand = async (output, context) => {
5141
5141
  const contents = (0, smithy_client_1.map)({
5142
5142
  $metadata: deserializeMetadata(output),
5143
5143
  });
5144
- await collectBody(output.body, context);
5144
+ await (0, smithy_client_1.collectBody)(output.body, context);
5145
5145
  return contents;
5146
5146
  };
5147
5147
  exports.de_UpdateClassificationJobCommand = de_UpdateClassificationJobCommand;
@@ -5189,7 +5189,7 @@ const de_UpdateClassificationScopeCommand = async (output, context) => {
5189
5189
  const contents = (0, smithy_client_1.map)({
5190
5190
  $metadata: deserializeMetadata(output),
5191
5191
  });
5192
- await collectBody(output.body, context);
5192
+ await (0, smithy_client_1.collectBody)(output.body, context);
5193
5193
  return contents;
5194
5194
  };
5195
5195
  exports.de_UpdateClassificationScopeCommand = de_UpdateClassificationScopeCommand;
@@ -5284,7 +5284,7 @@ const de_UpdateMacieSessionCommand = async (output, context) => {
5284
5284
  const contents = (0, smithy_client_1.map)({
5285
5285
  $metadata: deserializeMetadata(output),
5286
5286
  });
5287
- await collectBody(output.body, context);
5287
+ await (0, smithy_client_1.collectBody)(output.body, context);
5288
5288
  return contents;
5289
5289
  };
5290
5290
  exports.de_UpdateMacieSessionCommand = de_UpdateMacieSessionCommand;
@@ -5332,7 +5332,7 @@ const de_UpdateMemberSessionCommand = async (output, context) => {
5332
5332
  const contents = (0, smithy_client_1.map)({
5333
5333
  $metadata: deserializeMetadata(output),
5334
5334
  });
5335
- await collectBody(output.body, context);
5335
+ await (0, smithy_client_1.collectBody)(output.body, context);
5336
5336
  return contents;
5337
5337
  };
5338
5338
  exports.de_UpdateMemberSessionCommand = de_UpdateMemberSessionCommand;
@@ -5380,7 +5380,7 @@ const de_UpdateOrganizationConfigurationCommand = async (output, context) => {
5380
5380
  const contents = (0, smithy_client_1.map)({
5381
5381
  $metadata: deserializeMetadata(output),
5382
5382
  });
5383
- await collectBody(output.body, context);
5383
+ await (0, smithy_client_1.collectBody)(output.body, context);
5384
5384
  return contents;
5385
5385
  };
5386
5386
  exports.de_UpdateOrganizationConfigurationCommand = de_UpdateOrganizationConfigurationCommand;
@@ -5428,7 +5428,7 @@ const de_UpdateResourceProfileCommand = async (output, context) => {
5428
5428
  const contents = (0, smithy_client_1.map)({
5429
5429
  $metadata: deserializeMetadata(output),
5430
5430
  });
5431
- await collectBody(output.body, context);
5431
+ await (0, smithy_client_1.collectBody)(output.body, context);
5432
5432
  return contents;
5433
5433
  };
5434
5434
  exports.de_UpdateResourceProfileCommand = de_UpdateResourceProfileCommand;
@@ -5473,7 +5473,7 @@ const de_UpdateResourceProfileDetectionsCommand = async (output, context) => {
5473
5473
  const contents = (0, smithy_client_1.map)({
5474
5474
  $metadata: deserializeMetadata(output),
5475
5475
  });
5476
- await collectBody(output.body, context);
5476
+ await (0, smithy_client_1.collectBody)(output.body, context);
5477
5477
  return contents;
5478
5478
  };
5479
5479
  exports.de_UpdateResourceProfileDetectionsCommand = de_UpdateResourceProfileDetectionsCommand;
@@ -5561,7 +5561,7 @@ const de_UpdateSensitivityInspectionTemplateCommand = async (output, context) =>
5561
5561
  const contents = (0, smithy_client_1.map)({
5562
5562
  $metadata: deserializeMetadata(output),
5563
5563
  });
5564
- await collectBody(output.body, context);
5564
+ await (0, smithy_client_1.collectBody)(output.body, context);
5565
5565
  return contents;
5566
5566
  };
5567
5567
  exports.de_UpdateSensitivityInspectionTemplateCommand = de_UpdateSensitivityInspectionTemplateCommand;
@@ -7320,13 +7320,7 @@ const deserializeMetadata = (output) => ({
7320
7320
  extendedRequestId: output.headers["x-amz-id-2"],
7321
7321
  cfId: output.headers["x-amz-cf-id"],
7322
7322
  });
7323
- const collectBody = (streamBody = new Uint8Array(), context) => {
7324
- if (streamBody instanceof Uint8Array) {
7325
- return Promise.resolve(streamBody);
7326
- }
7327
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
7328
- };
7329
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
7323
+ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
7330
7324
  const isSerializableHeaderValue = (value) => value !== undefined &&
7331
7325
  value !== null &&
7332
7326
  value !== "" &&
@@ -1,4 +1,4 @@
1
- import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, 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, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, 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 { Macie2ServiceException as __BaseException } from "../models/Macie2ServiceException";
@@ -7156,12 +7156,6 @@ const deserializeMetadata = (output) => ({
7156
7156
  extendedRequestId: output.headers["x-amz-id-2"],
7157
7157
  cfId: output.headers["x-amz-cf-id"],
7158
7158
  });
7159
- const collectBody = (streamBody = new Uint8Array(), context) => {
7160
- if (streamBody instanceof Uint8Array) {
7161
- return Promise.resolve(streamBody);
7162
- }
7163
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
7164
- };
7165
7159
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
7166
7160
  const isSerializableHeaderValue = (value) => value !== undefined &&
7167
7161
  value !== null &&
@@ -152,7 +152,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
152
152
  */
153
153
  runtime?: string;
154
154
  /**
155
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
155
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
156
156
  * trait of an operation.
157
157
  */
158
158
  disableHostPrefix?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-macie2",
3
3
  "description": "AWS SDK for JavaScript Macie2 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,38 +21,38 @@
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
- "@aws-sdk/util-waiter": "3.347.0",
55
+ "@aws-sdk/util-waiter": "3.357.0",
56
56
  "@smithy/protocol-http": "^1.0.1",
57
57
  "@smithy/types": "^1.0.0",
58
58
  "tslib": "^2.5.0",