@aws-sdk/client-ivs 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.
- package/README.md +7 -7
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -361,16 +361,16 @@ using your favorite package manager:
|
|
|
361
361
|
|
|
362
362
|
The AWS SDK is modulized by clients and commands.
|
|
363
363
|
To send a request, you only need to import the `IvsClient` and
|
|
364
|
-
the commands you need, for example `
|
|
364
|
+
the commands you need, for example `ListStreamsCommand`:
|
|
365
365
|
|
|
366
366
|
```js
|
|
367
367
|
// ES5 example
|
|
368
|
-
const { IvsClient,
|
|
368
|
+
const { IvsClient, ListStreamsCommand } = require("@aws-sdk/client-ivs");
|
|
369
369
|
```
|
|
370
370
|
|
|
371
371
|
```ts
|
|
372
372
|
// ES6+ example
|
|
373
|
-
import { IvsClient,
|
|
373
|
+
import { IvsClient, ListStreamsCommand } from "@aws-sdk/client-ivs";
|
|
374
374
|
```
|
|
375
375
|
|
|
376
376
|
### Usage
|
|
@@ -389,7 +389,7 @@ const client = new IvsClient({ region: "REGION" });
|
|
|
389
389
|
const params = {
|
|
390
390
|
/** input parameters */
|
|
391
391
|
};
|
|
392
|
-
const command = new
|
|
392
|
+
const command = new ListStreamsCommand(params);
|
|
393
393
|
```
|
|
394
394
|
|
|
395
395
|
#### Async/await
|
|
@@ -468,7 +468,7 @@ const client = new AWS.Ivs({ region: "REGION" });
|
|
|
468
468
|
|
|
469
469
|
// async/await.
|
|
470
470
|
try {
|
|
471
|
-
const data = await client.
|
|
471
|
+
const data = await client.listStreams(params);
|
|
472
472
|
// process data.
|
|
473
473
|
} catch (error) {
|
|
474
474
|
// error handling.
|
|
@@ -476,7 +476,7 @@ try {
|
|
|
476
476
|
|
|
477
477
|
// Promises.
|
|
478
478
|
client
|
|
479
|
-
.
|
|
479
|
+
.listStreams(params)
|
|
480
480
|
.then((data) => {
|
|
481
481
|
// process data.
|
|
482
482
|
})
|
|
@@ -485,7 +485,7 @@ client
|
|
|
485
485
|
});
|
|
486
486
|
|
|
487
487
|
// callbacks.
|
|
488
|
-
client.
|
|
488
|
+
client.listStreams(params, (err, data) => {
|
|
489
489
|
// process err and data.
|
|
490
490
|
});
|
|
491
491
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ivs",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ivs Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
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",
|
|
@@ -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.421.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.421.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",
|