@aws-sdk/client-eventbridge 3.418.0 → 3.421.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.
Files changed (2) hide show
  1. package/README.md +7 -7
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -43,16 +43,16 @@ using your favorite package manager:
43
43
 
44
44
  The AWS SDK is modulized by clients and commands.
45
45
  To send a request, you only need to import the `EventBridgeClient` and
46
- the commands you need, for example `ActivateEventSourceCommand`:
46
+ the commands you need, for example `ListReplaysCommand`:
47
47
 
48
48
  ```js
49
49
  // ES5 example
50
- const { EventBridgeClient, ActivateEventSourceCommand } = require("@aws-sdk/client-eventbridge");
50
+ const { EventBridgeClient, ListReplaysCommand } = require("@aws-sdk/client-eventbridge");
51
51
  ```
52
52
 
53
53
  ```ts
54
54
  // ES6+ example
55
- import { EventBridgeClient, ActivateEventSourceCommand } from "@aws-sdk/client-eventbridge";
55
+ import { EventBridgeClient, ListReplaysCommand } from "@aws-sdk/client-eventbridge";
56
56
  ```
57
57
 
58
58
  ### Usage
@@ -71,7 +71,7 @@ const client = new EventBridgeClient({ region: "REGION" });
71
71
  const params = {
72
72
  /** input parameters */
73
73
  };
74
- const command = new ActivateEventSourceCommand(params);
74
+ const command = new ListReplaysCommand(params);
75
75
  ```
76
76
 
77
77
  #### Async/await
@@ -150,7 +150,7 @@ const client = new AWS.EventBridge({ region: "REGION" });
150
150
 
151
151
  // async/await.
152
152
  try {
153
- const data = await client.activateEventSource(params);
153
+ const data = await client.listReplays(params);
154
154
  // process data.
155
155
  } catch (error) {
156
156
  // error handling.
@@ -158,7 +158,7 @@ try {
158
158
 
159
159
  // Promises.
160
160
  client
161
- .activateEventSource(params)
161
+ .listReplays(params)
162
162
  .then((data) => {
163
163
  // process data.
164
164
  })
@@ -167,7 +167,7 @@ client
167
167
  });
168
168
 
169
169
  // callbacks.
170
- client.activateEventSource(params, (err, data) => {
170
+ client.listReplays(params, (err, data) => {
171
171
  // process err and data.
172
172
  });
173
173
  ```
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.418.0",
4
+ "version": "3.421.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,8 +23,8 @@
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.418.0",
27
- "@aws-sdk/credential-provider-node": "3.418.0",
26
+ "@aws-sdk/client-sts": "3.421.0",
27
+ "@aws-sdk/credential-provider-node": "3.421.0",
28
28
  "@aws-sdk/middleware-host-header": "3.418.0",
29
29
  "@aws-sdk/middleware-logger": "3.418.0",
30
30
  "@aws-sdk/middleware-recursion-detection": "3.418.0",