@aws-sdk/client-securityhub 3.354.0 → 3.358.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.
@@ -1443,7 +1443,7 @@ const de_AcceptAdministratorInvitationCommand = async (output, context) => {
1443
1443
  const contents = (0, smithy_client_1.map)({
1444
1444
  $metadata: deserializeMetadata(output),
1445
1445
  });
1446
- await collectBody(output.body, context);
1446
+ await (0, smithy_client_1.collectBody)(output.body, context);
1447
1447
  return contents;
1448
1448
  };
1449
1449
  exports.de_AcceptAdministratorInvitationCommand = de_AcceptAdministratorInvitationCommand;
@@ -1485,7 +1485,7 @@ const de_AcceptInvitationCommand = async (output, context) => {
1485
1485
  const contents = (0, smithy_client_1.map)({
1486
1486
  $metadata: deserializeMetadata(output),
1487
1487
  });
1488
- await collectBody(output.body, context);
1488
+ await (0, smithy_client_1.collectBody)(output.body, context);
1489
1489
  return contents;
1490
1490
  };
1491
1491
  exports.de_AcceptInvitationCommand = de_AcceptInvitationCommand;
@@ -2296,7 +2296,7 @@ const de_DeleteFindingAggregatorCommand = 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_DeleteFindingAggregatorCommand = de_DeleteFindingAggregatorCommand;
@@ -2746,7 +2746,7 @@ const de_DisableImportFindingsForProductCommand = async (output, context) => {
2746
2746
  const contents = (0, smithy_client_1.map)({
2747
2747
  $metadata: deserializeMetadata(output),
2748
2748
  });
2749
- await collectBody(output.body, context);
2749
+ await (0, smithy_client_1.collectBody)(output.body, context);
2750
2750
  return contents;
2751
2751
  };
2752
2752
  exports.de_DisableImportFindingsForProductCommand = de_DisableImportFindingsForProductCommand;
@@ -2788,7 +2788,7 @@ const de_DisableOrganizationAdminAccountCommand = async (output, context) => {
2788
2788
  const contents = (0, smithy_client_1.map)({
2789
2789
  $metadata: deserializeMetadata(output),
2790
2790
  });
2791
- await collectBody(output.body, context);
2791
+ await (0, smithy_client_1.collectBody)(output.body, context);
2792
2792
  return contents;
2793
2793
  };
2794
2794
  exports.de_DisableOrganizationAdminAccountCommand = de_DisableOrganizationAdminAccountCommand;
@@ -2827,7 +2827,7 @@ const de_DisableSecurityHubCommand = async (output, context) => {
2827
2827
  const contents = (0, smithy_client_1.map)({
2828
2828
  $metadata: deserializeMetadata(output),
2829
2829
  });
2830
- await collectBody(output.body, context);
2830
+ await (0, smithy_client_1.collectBody)(output.body, context);
2831
2831
  return contents;
2832
2832
  };
2833
2833
  exports.de_DisableSecurityHubCommand = de_DisableSecurityHubCommand;
@@ -2866,7 +2866,7 @@ const de_DisassociateFromAdministratorAccountCommand = async (output, context) =
2866
2866
  const contents = (0, smithy_client_1.map)({
2867
2867
  $metadata: deserializeMetadata(output),
2868
2868
  });
2869
- await collectBody(output.body, context);
2869
+ await (0, smithy_client_1.collectBody)(output.body, context);
2870
2870
  return contents;
2871
2871
  };
2872
2872
  exports.de_DisassociateFromAdministratorAccountCommand = de_DisassociateFromAdministratorAccountCommand;
@@ -2908,7 +2908,7 @@ const de_DisassociateFromMasterAccountCommand = async (output, context) => {
2908
2908
  const contents = (0, smithy_client_1.map)({
2909
2909
  $metadata: deserializeMetadata(output),
2910
2910
  });
2911
- await collectBody(output.body, context);
2911
+ await (0, smithy_client_1.collectBody)(output.body, context);
2912
2912
  return contents;
2913
2913
  };
2914
2914
  exports.de_DisassociateFromMasterAccountCommand = de_DisassociateFromMasterAccountCommand;
@@ -2950,7 +2950,7 @@ const de_DisassociateMembersCommand = async (output, context) => {
2950
2950
  const contents = (0, smithy_client_1.map)({
2951
2951
  $metadata: deserializeMetadata(output),
2952
2952
  });
2953
- await collectBody(output.body, context);
2953
+ await (0, smithy_client_1.collectBody)(output.body, context);
2954
2954
  return contents;
2955
2955
  };
2956
2956
  exports.de_DisassociateMembersCommand = de_DisassociateMembersCommand;
@@ -3038,7 +3038,7 @@ const de_EnableOrganizationAdminAccountCommand = async (output, context) => {
3038
3038
  const contents = (0, smithy_client_1.map)({
3039
3039
  $metadata: deserializeMetadata(output),
3040
3040
  });
3041
- await collectBody(output.body, context);
3041
+ await (0, smithy_client_1.collectBody)(output.body, context);
3042
3042
  return contents;
3043
3043
  };
3044
3044
  exports.de_EnableOrganizationAdminAccountCommand = de_EnableOrganizationAdminAccountCommand;
@@ -3077,7 +3077,7 @@ const de_EnableSecurityHubCommand = async (output, context) => {
3077
3077
  const contents = (0, smithy_client_1.map)({
3078
3078
  $metadata: deserializeMetadata(output),
3079
3079
  });
3080
- await collectBody(output.body, context);
3080
+ await (0, smithy_client_1.collectBody)(output.body, context);
3081
3081
  return contents;
3082
3082
  };
3083
3083
  exports.de_EnableSecurityHubCommand = de_EnableSecurityHubCommand;
@@ -4019,7 +4019,7 @@ const de_TagResourceCommand = async (output, context) => {
4019
4019
  const contents = (0, smithy_client_1.map)({
4020
4020
  $metadata: deserializeMetadata(output),
4021
4021
  });
4022
- await collectBody(output.body, context);
4022
+ await (0, smithy_client_1.collectBody)(output.body, context);
4023
4023
  return contents;
4024
4024
  };
4025
4025
  exports.de_TagResourceCommand = de_TagResourceCommand;
@@ -4055,7 +4055,7 @@ const de_UntagResourceCommand = async (output, context) => {
4055
4055
  const contents = (0, smithy_client_1.map)({
4056
4056
  $metadata: deserializeMetadata(output),
4057
4057
  });
4058
- await collectBody(output.body, context);
4058
+ await (0, smithy_client_1.collectBody)(output.body, context);
4059
4059
  return contents;
4060
4060
  };
4061
4061
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
@@ -4091,7 +4091,7 @@ const de_UpdateActionTargetCommand = async (output, context) => {
4091
4091
  const contents = (0, smithy_client_1.map)({
4092
4092
  $metadata: deserializeMetadata(output),
4093
4093
  });
4094
- await collectBody(output.body, context);
4094
+ await (0, smithy_client_1.collectBody)(output.body, context);
4095
4095
  return contents;
4096
4096
  };
4097
4097
  exports.de_UpdateActionTargetCommand = de_UpdateActionTargetCommand;
@@ -4182,7 +4182,7 @@ const de_UpdateFindingsCommand = async (output, context) => {
4182
4182
  const contents = (0, smithy_client_1.map)({
4183
4183
  $metadata: deserializeMetadata(output),
4184
4184
  });
4185
- await collectBody(output.body, context);
4185
+ await (0, smithy_client_1.collectBody)(output.body, context);
4186
4186
  return contents;
4187
4187
  };
4188
4188
  exports.de_UpdateFindingsCommand = de_UpdateFindingsCommand;
@@ -4224,7 +4224,7 @@ const de_UpdateInsightCommand = async (output, context) => {
4224
4224
  const contents = (0, smithy_client_1.map)({
4225
4225
  $metadata: deserializeMetadata(output),
4226
4226
  });
4227
- await collectBody(output.body, context);
4227
+ await (0, smithy_client_1.collectBody)(output.body, context);
4228
4228
  return contents;
4229
4229
  };
4230
4230
  exports.de_UpdateInsightCommand = de_UpdateInsightCommand;
@@ -4266,7 +4266,7 @@ const de_UpdateOrganizationConfigurationCommand = async (output, context) => {
4266
4266
  const contents = (0, smithy_client_1.map)({
4267
4267
  $metadata: deserializeMetadata(output),
4268
4268
  });
4269
- await collectBody(output.body, context);
4269
+ await (0, smithy_client_1.collectBody)(output.body, context);
4270
4270
  return contents;
4271
4271
  };
4272
4272
  exports.de_UpdateOrganizationConfigurationCommand = de_UpdateOrganizationConfigurationCommand;
@@ -4305,7 +4305,7 @@ const de_UpdateSecurityHubConfigurationCommand = async (output, context) => {
4305
4305
  const contents = (0, smithy_client_1.map)({
4306
4306
  $metadata: deserializeMetadata(output),
4307
4307
  });
4308
- await collectBody(output.body, context);
4308
+ await (0, smithy_client_1.collectBody)(output.body, context);
4309
4309
  return contents;
4310
4310
  };
4311
4311
  exports.de_UpdateSecurityHubConfigurationCommand = de_UpdateSecurityHubConfigurationCommand;
@@ -4347,7 +4347,7 @@ const de_UpdateStandardsControlCommand = async (output, context) => {
4347
4347
  const contents = (0, smithy_client_1.map)({
4348
4348
  $metadata: deserializeMetadata(output),
4349
4349
  });
4350
- await collectBody(output.body, context);
4350
+ await (0, smithy_client_1.collectBody)(output.body, context);
4351
4351
  return contents;
4352
4352
  };
4353
4353
  exports.de_UpdateStandardsControlCommand = de_UpdateStandardsControlCommand;
@@ -6135,13 +6135,7 @@ const deserializeMetadata = (output) => ({
6135
6135
  extendedRequestId: output.headers["x-amz-id-2"],
6136
6136
  cfId: output.headers["x-amz-cf-id"],
6137
6137
  });
6138
- const collectBody = (streamBody = new Uint8Array(), context) => {
6139
- if (streamBody instanceof Uint8Array) {
6140
- return Promise.resolve(streamBody);
6141
- }
6142
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
6143
- };
6144
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
6138
+ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
6145
6139
  const isSerializableHeaderValue = (value) => value !== undefined &&
6146
6140
  value !== null &&
6147
6141
  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, serializeFloat as __serializeFloat, 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, serializeFloat as __serializeFloat, take, withBaseException, } from "@aws-sdk/smithy-client";
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { AccessDeniedException, InternalException, InvalidAccessException, InvalidInputException, LimitExceededException, ResourceNotFoundException, } from "../models/models_0";
4
4
  import { ResourceConflictException, } from "../models/models_2";
@@ -5996,12 +5996,6 @@ const deserializeMetadata = (output) => ({
5996
5996
  extendedRequestId: output.headers["x-amz-id-2"],
5997
5997
  cfId: output.headers["x-amz-cf-id"],
5998
5998
  });
5999
- const collectBody = (streamBody = new Uint8Array(), context) => {
6000
- if (streamBody instanceof Uint8Array) {
6001
- return Promise.resolve(streamBody);
6002
- }
6003
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
6004
- };
6005
5999
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
6006
6000
  const isSerializableHeaderValue = (value) => value !== undefined &&
6007
6001
  value !== null &&
@@ -140,7 +140,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
140
140
  */
141
141
  runtime?: string;
142
142
  /**
143
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
143
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
144
144
  * trait of an operation.
145
145
  */
146
146
  disableHostPrefix?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-securityhub",
3
3
  "description": "AWS SDK for JavaScript Securityhub Client for Node.js, Browser and React Native",
4
- "version": "3.354.0",
4
+ "version": "3.358.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.354.0",
25
- "@aws-sdk/config-resolver": "3.354.0",
26
- "@aws-sdk/credential-provider-node": "3.354.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.354.0",
36
- "@aws-sdk/middleware-serde": "3.347.0",
37
- "@aws-sdk/middleware-signing": "3.354.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.354.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.358.0",
25
+ "@aws-sdk/config-resolver": "3.357.0",
26
+ "@aws-sdk/credential-provider-node": "3.358.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.358.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.354.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.354.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.358.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.358.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",