@aws-sdk/client-chime-sdk-media-pipelines 3.419.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.
Files changed (2) hide show
  1. package/README.md +7 -10
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -24,22 +24,19 @@ using your favorite package manager:
24
24
 
25
25
  The AWS SDK is modulized by clients and commands.
26
26
  To send a request, you only need to import the `ChimeSDKMediaPipelinesClient` and
27
- the commands you need, for example `CreateMediaCapturePipelineCommand`:
27
+ the commands you need, for example `ListMediaPipelinesCommand`:
28
28
 
29
29
  ```js
30
30
  // ES5 example
31
31
  const {
32
32
  ChimeSDKMediaPipelinesClient,
33
- CreateMediaCapturePipelineCommand,
33
+ ListMediaPipelinesCommand,
34
34
  } = require("@aws-sdk/client-chime-sdk-media-pipelines");
35
35
  ```
36
36
 
37
37
  ```ts
38
38
  // ES6+ example
39
- import {
40
- ChimeSDKMediaPipelinesClient,
41
- CreateMediaCapturePipelineCommand,
42
- } from "@aws-sdk/client-chime-sdk-media-pipelines";
39
+ import { ChimeSDKMediaPipelinesClient, ListMediaPipelinesCommand } from "@aws-sdk/client-chime-sdk-media-pipelines";
43
40
  ```
44
41
 
45
42
  ### Usage
@@ -58,7 +55,7 @@ const client = new ChimeSDKMediaPipelinesClient({ region: "REGION" });
58
55
  const params = {
59
56
  /** input parameters */
60
57
  };
61
- const command = new CreateMediaCapturePipelineCommand(params);
58
+ const command = new ListMediaPipelinesCommand(params);
62
59
  ```
63
60
 
64
61
  #### Async/await
@@ -137,7 +134,7 @@ const client = new AWS.ChimeSDKMediaPipelines({ region: "REGION" });
137
134
 
138
135
  // async/await.
139
136
  try {
140
- const data = await client.createMediaCapturePipeline(params);
137
+ const data = await client.listMediaPipelines(params);
141
138
  // process data.
142
139
  } catch (error) {
143
140
  // error handling.
@@ -145,7 +142,7 @@ try {
145
142
 
146
143
  // Promises.
147
144
  client
148
- .createMediaCapturePipeline(params)
145
+ .listMediaPipelines(params)
149
146
  .then((data) => {
150
147
  // process data.
151
148
  })
@@ -154,7 +151,7 @@ client
154
151
  });
155
152
 
156
153
  // callbacks.
157
- client.createMediaCapturePipeline(params, (err, data) => {
154
+ client.listMediaPipelines(params, (err, data) => {
158
155
  // process err and data.
159
156
  });
160
157
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-chime-sdk-media-pipelines",
3
3
  "description": "AWS SDK for JavaScript Chime Sdk Media Pipelines Client for Node.js, Browser and React Native",
4
- "version": "3.419.0",
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.418.0",
25
- "@aws-sdk/credential-provider-node": "3.418.0",
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",