@aws-sdk/client-ivs-realtime 3.418.0 → 3.423.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.
- package/README.md +7 -7
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -147,16 +147,16 @@ using your favorite package manager:
|
|
|
147
147
|
|
|
148
148
|
The AWS SDK is modulized by clients and commands.
|
|
149
149
|
To send a request, you only need to import the `IVSRealTimeClient` and
|
|
150
|
-
the commands you need, for example `
|
|
150
|
+
the commands you need, for example `ListStagesCommand`:
|
|
151
151
|
|
|
152
152
|
```js
|
|
153
153
|
// ES5 example
|
|
154
|
-
const { IVSRealTimeClient,
|
|
154
|
+
const { IVSRealTimeClient, ListStagesCommand } = require("@aws-sdk/client-ivs-realtime");
|
|
155
155
|
```
|
|
156
156
|
|
|
157
157
|
```ts
|
|
158
158
|
// ES6+ example
|
|
159
|
-
import { IVSRealTimeClient,
|
|
159
|
+
import { IVSRealTimeClient, ListStagesCommand } from "@aws-sdk/client-ivs-realtime";
|
|
160
160
|
```
|
|
161
161
|
|
|
162
162
|
### Usage
|
|
@@ -175,7 +175,7 @@ const client = new IVSRealTimeClient({ region: "REGION" });
|
|
|
175
175
|
const params = {
|
|
176
176
|
/** input parameters */
|
|
177
177
|
};
|
|
178
|
-
const command = new
|
|
178
|
+
const command = new ListStagesCommand(params);
|
|
179
179
|
```
|
|
180
180
|
|
|
181
181
|
#### Async/await
|
|
@@ -254,7 +254,7 @@ const client = new AWS.IVSRealTime({ region: "REGION" });
|
|
|
254
254
|
|
|
255
255
|
// async/await.
|
|
256
256
|
try {
|
|
257
|
-
const data = await client.
|
|
257
|
+
const data = await client.listStages(params);
|
|
258
258
|
// process data.
|
|
259
259
|
} catch (error) {
|
|
260
260
|
// error handling.
|
|
@@ -262,7 +262,7 @@ try {
|
|
|
262
262
|
|
|
263
263
|
// Promises.
|
|
264
264
|
client
|
|
265
|
-
.
|
|
265
|
+
.listStages(params)
|
|
266
266
|
.then((data) => {
|
|
267
267
|
// process data.
|
|
268
268
|
})
|
|
@@ -271,7 +271,7 @@ client
|
|
|
271
271
|
});
|
|
272
272
|
|
|
273
273
|
// callbacks.
|
|
274
|
-
client.
|
|
274
|
+
client.listStages(params, (err, data) => {
|
|
275
275
|
// process err and data.
|
|
276
276
|
});
|
|
277
277
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ivs-realtime",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ivs Realtime Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.423.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,8 +21,8 @@
|
|
|
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.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.423.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.423.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.418.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.418.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.418.0",
|