@aws-sdk/client-eventbridge 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.
@@ -403,7 +403,7 @@ const de_ActivateEventSourceCommand = async (output, context) => {
403
403
  if (output.statusCode >= 300) {
404
404
  return de_ActivateEventSourceCommandError(output, context);
405
405
  }
406
- await collectBody(output.body, context);
406
+ await (0, smithy_client_1.collectBody)(output.body, context);
407
407
  const response = {
408
408
  $metadata: deserializeMetadata(output),
409
409
  };
@@ -751,7 +751,7 @@ const de_DeactivateEventSourceCommand = async (output, context) => {
751
751
  if (output.statusCode >= 300) {
752
752
  return de_DeactivateEventSourceCommandError(output, context);
753
753
  }
754
- await collectBody(output.body, context);
754
+ await (0, smithy_client_1.collectBody)(output.body, context);
755
755
  const response = {
756
756
  $metadata: deserializeMetadata(output),
757
757
  };
@@ -988,7 +988,7 @@ const de_DeleteEventBusCommand = async (output, context) => {
988
988
  if (output.statusCode >= 300) {
989
989
  return de_DeleteEventBusCommandError(output, context);
990
990
  }
991
- await collectBody(output.body, context);
991
+ await (0, smithy_client_1.collectBody)(output.body, context);
992
992
  const response = {
993
993
  $metadata: deserializeMetadata(output),
994
994
  };
@@ -1021,7 +1021,7 @@ const de_DeletePartnerEventSourceCommand = async (output, context) => {
1021
1021
  if (output.statusCode >= 300) {
1022
1022
  return de_DeletePartnerEventSourceCommandError(output, context);
1023
1023
  }
1024
- await collectBody(output.body, context);
1024
+ await (0, smithy_client_1.collectBody)(output.body, context);
1025
1025
  const response = {
1026
1026
  $metadata: deserializeMetadata(output),
1027
1027
  };
@@ -1057,7 +1057,7 @@ const de_DeleteRuleCommand = async (output, context) => {
1057
1057
  if (output.statusCode >= 300) {
1058
1058
  return de_DeleteRuleCommandError(output, context);
1059
1059
  }
1060
- await collectBody(output.body, context);
1060
+ await (0, smithy_client_1.collectBody)(output.body, context);
1061
1061
  const response = {
1062
1062
  $metadata: deserializeMetadata(output),
1063
1063
  };
@@ -1429,7 +1429,7 @@ const de_DisableRuleCommand = async (output, context) => {
1429
1429
  if (output.statusCode >= 300) {
1430
1430
  return de_DisableRuleCommandError(output, context);
1431
1431
  }
1432
- await collectBody(output.body, context);
1432
+ await (0, smithy_client_1.collectBody)(output.body, context);
1433
1433
  const response = {
1434
1434
  $metadata: deserializeMetadata(output),
1435
1435
  };
@@ -1468,7 +1468,7 @@ const de_EnableRuleCommand = async (output, context) => {
1468
1468
  if (output.statusCode >= 300) {
1469
1469
  return de_EnableRuleCommandError(output, context);
1470
1470
  }
1471
- await collectBody(output.body, context);
1471
+ await (0, smithy_client_1.collectBody)(output.body, context);
1472
1472
  const response = {
1473
1473
  $metadata: deserializeMetadata(output),
1474
1474
  };
@@ -2032,7 +2032,7 @@ const de_PutPermissionCommand = async (output, context) => {
2032
2032
  if (output.statusCode >= 300) {
2033
2033
  return de_PutPermissionCommandError(output, context);
2034
2034
  }
2035
- await collectBody(output.body, context);
2035
+ await (0, smithy_client_1.collectBody)(output.body, context);
2036
2036
  const response = {
2037
2037
  $metadata: deserializeMetadata(output),
2038
2038
  };
@@ -2167,7 +2167,7 @@ const de_RemovePermissionCommand = async (output, context) => {
2167
2167
  if (output.statusCode >= 300) {
2168
2168
  return de_RemovePermissionCommandError(output, context);
2169
2169
  }
2170
- await collectBody(output.body, context);
2170
+ await (0, smithy_client_1.collectBody)(output.body, context);
2171
2171
  const response = {
2172
2172
  $metadata: deserializeMetadata(output),
2173
2173
  };
@@ -3082,13 +3082,7 @@ const deserializeMetadata = (output) => ({
3082
3082
  extendedRequestId: output.headers["x-amz-id-2"],
3083
3083
  cfId: output.headers["x-amz-cf-id"],
3084
3084
  });
3085
- const collectBody = (streamBody = new Uint8Array(), context) => {
3086
- if (streamBody instanceof Uint8Array) {
3087
- return Promise.resolve(streamBody);
3088
- }
3089
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
3090
- };
3091
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
3085
+ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
3092
3086
  const throwDefaultError = (0, smithy_client_1.withBaseException)(EventBridgeServiceException_1.EventBridgeServiceException);
3093
3087
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
3094
3088
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
@@ -1,4 +1,4 @@
1
- import { _json, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
1
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { EventBridgeServiceException as __BaseException } from "../models/EventBridgeServiceException";
4
4
  import { ConcurrentModificationException, IllegalStatusException, InternalException, InvalidEventPatternException, InvalidStateException, LimitExceededException, ManagedRuleException, OperationDisabledException, PolicyLengthExceededException, ResourceAlreadyExistsException, ResourceNotFoundException, } from "../models/models_0";
@@ -2965,12 +2965,6 @@ const deserializeMetadata = (output) => ({
2965
2965
  extendedRequestId: output.headers["x-amz-id-2"],
2966
2966
  cfId: output.headers["x-amz-cf-id"],
2967
2967
  });
2968
- const collectBody = (streamBody = new Uint8Array(), context) => {
2969
- if (streamBody instanceof Uint8Array) {
2970
- return Promise.resolve(streamBody);
2971
- }
2972
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
2973
- };
2974
2968
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2975
2969
  const throwDefaultError = withBaseException(__BaseException);
2976
2970
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
@@ -129,7 +129,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
129
129
  */
130
130
  runtime?: string;
131
131
  /**
132
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
132
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
133
133
  * trait of an operation.
134
134
  */
135
135
  disableHostPrefix?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-eventbridge",
3
3
  "description": "AWS SDK for JavaScript Eventbridge 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",
@@ -23,37 +23,37 @@
23
23
  "dependencies": {
24
24
  "@aws-crypto/sha256-browser": "3.0.0",
25
25
  "@aws-crypto/sha256-js": "3.0.0",
26
- "@aws-sdk/client-sts": "3.353.0",
27
- "@aws-sdk/config-resolver": "3.353.0",
28
- "@aws-sdk/credential-provider-node": "3.353.0",
29
- "@aws-sdk/fetch-http-handler": "3.353.0",
30
- "@aws-sdk/hash-node": "3.347.0",
31
- "@aws-sdk/invalid-dependency": "3.347.0",
32
- "@aws-sdk/middleware-content-length": "3.347.0",
33
- "@aws-sdk/middleware-endpoint": "3.347.0",
34
- "@aws-sdk/middleware-host-header": "3.347.0",
35
- "@aws-sdk/middleware-logger": "3.347.0",
36
- "@aws-sdk/middleware-recursion-detection": "3.347.0",
37
- "@aws-sdk/middleware-retry": "3.353.0",
38
- "@aws-sdk/middleware-serde": "3.347.0",
39
- "@aws-sdk/middleware-signing": "3.353.0",
40
- "@aws-sdk/middleware-stack": "3.347.0",
41
- "@aws-sdk/middleware-user-agent": "3.352.0",
42
- "@aws-sdk/node-config-provider": "3.353.0",
43
- "@aws-sdk/node-http-handler": "3.350.0",
44
- "@aws-sdk/signature-v4-multi-region": "3.347.0",
45
- "@aws-sdk/smithy-client": "3.347.0",
46
- "@aws-sdk/types": "3.347.0",
47
- "@aws-sdk/url-parser": "3.347.0",
26
+ "@aws-sdk/client-sts": "3.357.0",
27
+ "@aws-sdk/config-resolver": "3.357.0",
28
+ "@aws-sdk/credential-provider-node": "3.357.0",
29
+ "@aws-sdk/fetch-http-handler": "3.357.0",
30
+ "@aws-sdk/hash-node": "3.357.0",
31
+ "@aws-sdk/invalid-dependency": "3.357.0",
32
+ "@aws-sdk/middleware-content-length": "3.357.0",
33
+ "@aws-sdk/middleware-endpoint": "3.357.0",
34
+ "@aws-sdk/middleware-host-header": "3.357.0",
35
+ "@aws-sdk/middleware-logger": "3.357.0",
36
+ "@aws-sdk/middleware-recursion-detection": "3.357.0",
37
+ "@aws-sdk/middleware-retry": "3.357.0",
38
+ "@aws-sdk/middleware-serde": "3.357.0",
39
+ "@aws-sdk/middleware-signing": "3.357.0",
40
+ "@aws-sdk/middleware-stack": "3.357.0",
41
+ "@aws-sdk/middleware-user-agent": "3.357.0",
42
+ "@aws-sdk/node-config-provider": "3.357.0",
43
+ "@aws-sdk/node-http-handler": "3.357.0",
44
+ "@aws-sdk/signature-v4-multi-region": "3.357.0",
45
+ "@aws-sdk/smithy-client": "3.357.0",
46
+ "@aws-sdk/types": "3.357.0",
47
+ "@aws-sdk/url-parser": "3.357.0",
48
48
  "@aws-sdk/util-base64": "3.310.0",
49
49
  "@aws-sdk/util-body-length-browser": "3.310.0",
50
50
  "@aws-sdk/util-body-length-node": "3.310.0",
51
- "@aws-sdk/util-defaults-mode-browser": "3.353.0",
52
- "@aws-sdk/util-defaults-mode-node": "3.353.0",
53
- "@aws-sdk/util-endpoints": "3.352.0",
54
- "@aws-sdk/util-retry": "3.347.0",
55
- "@aws-sdk/util-user-agent-browser": "3.347.0",
56
- "@aws-sdk/util-user-agent-node": "3.353.0",
51
+ "@aws-sdk/util-defaults-mode-browser": "3.357.0",
52
+ "@aws-sdk/util-defaults-mode-node": "3.357.0",
53
+ "@aws-sdk/util-endpoints": "3.357.0",
54
+ "@aws-sdk/util-retry": "3.357.0",
55
+ "@aws-sdk/util-user-agent-browser": "3.357.0",
56
+ "@aws-sdk/util-user-agent-node": "3.357.0",
57
57
  "@aws-sdk/util-utf8": "3.310.0",
58
58
  "@smithy/protocol-http": "^1.0.1",
59
59
  "@smithy/types": "^1.0.0",