@aws-sdk/client-eventbridge 3.252.0 → 3.254.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.
@@ -3478,7 +3478,7 @@ const serializeAws_json1_1PutEventsRequestEntry = (input, context) => {
3478
3478
  ...(input.EventBusName != null && { EventBusName: input.EventBusName }),
3479
3479
  ...(input.Resources != null && { Resources: serializeAws_json1_1EventResourceList(input.Resources, context) }),
3480
3480
  ...(input.Source != null && { Source: input.Source }),
3481
- ...(input.Time != null && { Time: Math.round(input.Time.getTime() / 1000).toString() }),
3481
+ ...(input.Time != null && { Time: Math.round(input.Time.getTime() / 1000) }),
3482
3482
  ...(input.TraceHeader != null && { TraceHeader: input.TraceHeader }),
3483
3483
  };
3484
3484
  };
@@ -3502,7 +3502,7 @@ const serializeAws_json1_1PutPartnerEventsRequestEntry = (input, context) => {
3502
3502
  ...(input.DetailType != null && { DetailType: input.DetailType }),
3503
3503
  ...(input.Resources != null && { Resources: serializeAws_json1_1EventResourceList(input.Resources, context) }),
3504
3504
  ...(input.Source != null && { Source: input.Source }),
3505
- ...(input.Time != null && { Time: Math.round(input.Time.getTime() / 1000).toString() }),
3505
+ ...(input.Time != null && { Time: Math.round(input.Time.getTime() / 1000) }),
3506
3506
  };
3507
3507
  };
3508
3508
  const serializeAws_json1_1PutPartnerEventsRequestEntryList = (input, context) => {
@@ -3671,11 +3671,9 @@ const serializeAws_json1_1StartReplayRequest = (input, context) => {
3671
3671
  ...(input.Destination != null && {
3672
3672
  Destination: serializeAws_json1_1ReplayDestination(input.Destination, context),
3673
3673
  }),
3674
- ...(input.EventEndTime != null && { EventEndTime: Math.round(input.EventEndTime.getTime() / 1000).toString() }),
3674
+ ...(input.EventEndTime != null && { EventEndTime: Math.round(input.EventEndTime.getTime() / 1000) }),
3675
3675
  ...(input.EventSourceArn != null && { EventSourceArn: input.EventSourceArn }),
3676
- ...(input.EventStartTime != null && {
3677
- EventStartTime: Math.round(input.EventStartTime.getTime() / 1000).toString(),
3678
- }),
3676
+ ...(input.EventStartTime != null && { EventStartTime: Math.round(input.EventStartTime.getTime() / 1000) }),
3679
3677
  ...(input.ReplayName != null && { ReplayName: input.ReplayName }),
3680
3678
  };
3681
3679
  };
@@ -3361,7 +3361,7 @@ const serializeAws_json1_1PutEventsRequestEntry = (input, context) => {
3361
3361
  ...(input.EventBusName != null && { EventBusName: input.EventBusName }),
3362
3362
  ...(input.Resources != null && { Resources: serializeAws_json1_1EventResourceList(input.Resources, context) }),
3363
3363
  ...(input.Source != null && { Source: input.Source }),
3364
- ...(input.Time != null && { Time: Math.round(input.Time.getTime() / 1000).toString() }),
3364
+ ...(input.Time != null && { Time: Math.round(input.Time.getTime() / 1000) }),
3365
3365
  ...(input.TraceHeader != null && { TraceHeader: input.TraceHeader }),
3366
3366
  };
3367
3367
  };
@@ -3385,7 +3385,7 @@ const serializeAws_json1_1PutPartnerEventsRequestEntry = (input, context) => {
3385
3385
  ...(input.DetailType != null && { DetailType: input.DetailType }),
3386
3386
  ...(input.Resources != null && { Resources: serializeAws_json1_1EventResourceList(input.Resources, context) }),
3387
3387
  ...(input.Source != null && { Source: input.Source }),
3388
- ...(input.Time != null && { Time: Math.round(input.Time.getTime() / 1000).toString() }),
3388
+ ...(input.Time != null && { Time: Math.round(input.Time.getTime() / 1000) }),
3389
3389
  };
3390
3390
  };
3391
3391
  const serializeAws_json1_1PutPartnerEventsRequestEntryList = (input, context) => {
@@ -3554,11 +3554,9 @@ const serializeAws_json1_1StartReplayRequest = (input, context) => {
3554
3554
  ...(input.Destination != null && {
3555
3555
  Destination: serializeAws_json1_1ReplayDestination(input.Destination, context),
3556
3556
  }),
3557
- ...(input.EventEndTime != null && { EventEndTime: Math.round(input.EventEndTime.getTime() / 1000).toString() }),
3557
+ ...(input.EventEndTime != null && { EventEndTime: Math.round(input.EventEndTime.getTime() / 1000) }),
3558
3558
  ...(input.EventSourceArn != null && { EventSourceArn: input.EventSourceArn }),
3559
- ...(input.EventStartTime != null && {
3560
- EventStartTime: Math.round(input.EventStartTime.getTime() / 1000).toString(),
3561
- }),
3559
+ ...(input.EventStartTime != null && { EventStartTime: Math.round(input.EventStartTime.getTime() / 1000) }),
3562
3560
  ...(input.ReplayName != null && { ReplayName: input.ReplayName }),
3563
3561
  };
3564
3562
  };
@@ -6,7 +6,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
6
6
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
7
7
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
8
8
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
9
- import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
+ import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as __ChecksumConstructor, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
10
10
  import { ActivateEventSourceCommandInput, ActivateEventSourceCommandOutput } from "./commands/ActivateEventSourceCommand";
11
11
  import { CancelReplayCommandInput, CancelReplayCommandOutput } from "./commands/CancelReplayCommand";
12
12
  import { CreateApiDestinationCommandInput, CreateApiDestinationCommandOutput } from "./commands/CreateApiDestinationCommand";
@@ -72,11 +72,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
72
72
  */
73
73
  requestHandler?: __HttpHandler;
74
74
  /**
75
- * A constructor for a class implementing the {@link __Hash} interface
75
+ * A constructor for a class implementing the {@link __Checksum} interface
76
76
  * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
77
77
  * @internal
78
78
  */
79
- sha256?: __HashConstructor;
79
+ sha256?: __ChecksumConstructor | __HashConstructor;
80
80
  /**
81
81
  * The function that will be used to convert strings into HTTP endpoints.
82
82
  * @internal
@@ -31,6 +31,7 @@ import {
31
31
  } from "@aws-sdk/smithy-client";
32
32
  import {
33
33
  BodyLengthCalculator as __BodyLengthCalculator,
34
+ ChecksumConstructor as __ChecksumConstructor,
34
35
  Credentials as __Credentials,
35
36
  Decoder as __Decoder,
36
37
  Encoder as __Encoder,
@@ -389,7 +390,7 @@ export declare type ServiceOutputTypes =
389
390
  export interface ClientDefaults
390
391
  extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
391
392
  requestHandler?: __HttpHandler;
392
- sha256?: __HashConstructor;
393
+ sha256?: __ChecksumConstructor | __HashConstructor;
393
394
  urlParser?: __UrlParser;
394
395
  bodyLengthChecker?: __BodyLengthCalculator;
395
396
  streamCollector?: __StreamCollector;
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.252.0",
4
+ "version": "3.254.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",
@@ -20,40 +20,40 @@
20
20
  "module": "./dist-es/index.js",
21
21
  "sideEffects": false,
22
22
  "dependencies": {
23
- "@aws-crypto/sha256-browser": "2.0.0",
24
- "@aws-crypto/sha256-js": "2.0.0",
25
- "@aws-sdk/client-sts": "3.252.0",
26
- "@aws-sdk/config-resolver": "3.234.0",
27
- "@aws-sdk/credential-provider-node": "3.252.0",
28
- "@aws-sdk/fetch-http-handler": "3.226.0",
29
- "@aws-sdk/hash-node": "3.226.0",
30
- "@aws-sdk/invalid-dependency": "3.226.0",
31
- "@aws-sdk/middleware-content-length": "3.226.0",
32
- "@aws-sdk/middleware-endpoint": "3.226.0",
33
- "@aws-sdk/middleware-host-header": "3.226.0",
34
- "@aws-sdk/middleware-logger": "3.226.0",
35
- "@aws-sdk/middleware-recursion-detection": "3.226.0",
36
- "@aws-sdk/middleware-retry": "3.235.0",
37
- "@aws-sdk/middleware-serde": "3.226.0",
38
- "@aws-sdk/middleware-signing": "3.226.0",
39
- "@aws-sdk/middleware-stack": "3.226.0",
40
- "@aws-sdk/middleware-user-agent": "3.226.0",
41
- "@aws-sdk/node-config-provider": "3.226.0",
42
- "@aws-sdk/node-http-handler": "3.226.0",
43
- "@aws-sdk/protocol-http": "3.226.0",
44
- "@aws-sdk/signature-v4-multi-region": "3.226.0",
45
- "@aws-sdk/smithy-client": "3.234.0",
46
- "@aws-sdk/types": "3.226.0",
47
- "@aws-sdk/url-parser": "3.226.0",
23
+ "@aws-crypto/sha256-browser": "3.0.0",
24
+ "@aws-crypto/sha256-js": "3.0.0",
25
+ "@aws-sdk/client-sts": "3.254.0",
26
+ "@aws-sdk/config-resolver": "3.254.0",
27
+ "@aws-sdk/credential-provider-node": "3.254.0",
28
+ "@aws-sdk/fetch-http-handler": "3.254.0",
29
+ "@aws-sdk/hash-node": "3.254.0",
30
+ "@aws-sdk/invalid-dependency": "3.254.0",
31
+ "@aws-sdk/middleware-content-length": "3.254.0",
32
+ "@aws-sdk/middleware-endpoint": "3.254.0",
33
+ "@aws-sdk/middleware-host-header": "3.254.0",
34
+ "@aws-sdk/middleware-logger": "3.254.0",
35
+ "@aws-sdk/middleware-recursion-detection": "3.254.0",
36
+ "@aws-sdk/middleware-retry": "3.254.0",
37
+ "@aws-sdk/middleware-serde": "3.254.0",
38
+ "@aws-sdk/middleware-signing": "3.254.0",
39
+ "@aws-sdk/middleware-stack": "3.254.0",
40
+ "@aws-sdk/middleware-user-agent": "3.254.0",
41
+ "@aws-sdk/node-config-provider": "3.254.0",
42
+ "@aws-sdk/node-http-handler": "3.254.0",
43
+ "@aws-sdk/protocol-http": "3.254.0",
44
+ "@aws-sdk/signature-v4-multi-region": "3.254.0",
45
+ "@aws-sdk/smithy-client": "3.254.0",
46
+ "@aws-sdk/types": "3.254.0",
47
+ "@aws-sdk/url-parser": "3.254.0",
48
48
  "@aws-sdk/util-base64": "3.208.0",
49
49
  "@aws-sdk/util-body-length-browser": "3.188.0",
50
50
  "@aws-sdk/util-body-length-node": "3.208.0",
51
- "@aws-sdk/util-defaults-mode-browser": "3.234.0",
52
- "@aws-sdk/util-defaults-mode-node": "3.234.0",
53
- "@aws-sdk/util-endpoints": "3.245.0",
54
- "@aws-sdk/util-retry": "3.229.0",
55
- "@aws-sdk/util-user-agent-browser": "3.226.0",
56
- "@aws-sdk/util-user-agent-node": "3.226.0",
51
+ "@aws-sdk/util-defaults-mode-browser": "3.254.0",
52
+ "@aws-sdk/util-defaults-mode-node": "3.254.0",
53
+ "@aws-sdk/util-endpoints": "3.254.0",
54
+ "@aws-sdk/util-retry": "3.254.0",
55
+ "@aws-sdk/util-user-agent-browser": "3.254.0",
56
+ "@aws-sdk/util-user-agent-node": "3.254.0",
57
57
  "@aws-sdk/util-utf8-browser": "3.188.0",
58
58
  "@aws-sdk/util-utf8-node": "3.208.0",
59
59
  "tslib": "^2.3.1"