@aws-sdk/client-kinesis-video-archived-media 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 +10 -7
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -23,16 +23,19 @@ using your favorite package manager:
23
23
 
24
24
  The AWS SDK is modulized by clients and commands.
25
25
  To send a request, you only need to import the `KinesisVideoArchivedMediaClient` and
26
- the commands you need, for example `GetClipCommand`:
26
+ the commands you need, for example `ListFragmentsCommand`:
27
27
 
28
28
  ```js
29
29
  // ES5 example
30
- const { KinesisVideoArchivedMediaClient, GetClipCommand } = require("@aws-sdk/client-kinesis-video-archived-media");
30
+ const {
31
+ KinesisVideoArchivedMediaClient,
32
+ ListFragmentsCommand,
33
+ } = require("@aws-sdk/client-kinesis-video-archived-media");
31
34
  ```
32
35
 
33
36
  ```ts
34
37
  // ES6+ example
35
- import { KinesisVideoArchivedMediaClient, GetClipCommand } from "@aws-sdk/client-kinesis-video-archived-media";
38
+ import { KinesisVideoArchivedMediaClient, ListFragmentsCommand } from "@aws-sdk/client-kinesis-video-archived-media";
36
39
  ```
37
40
 
38
41
  ### Usage
@@ -51,7 +54,7 @@ const client = new KinesisVideoArchivedMediaClient({ region: "REGION" });
51
54
  const params = {
52
55
  /** input parameters */
53
56
  };
54
- const command = new GetClipCommand(params);
57
+ const command = new ListFragmentsCommand(params);
55
58
  ```
56
59
 
57
60
  #### Async/await
@@ -130,7 +133,7 @@ const client = new AWS.KinesisVideoArchivedMedia({ region: "REGION" });
130
133
 
131
134
  // async/await.
132
135
  try {
133
- const data = await client.getClip(params);
136
+ const data = await client.listFragments(params);
134
137
  // process data.
135
138
  } catch (error) {
136
139
  // error handling.
@@ -138,7 +141,7 @@ try {
138
141
 
139
142
  // Promises.
140
143
  client
141
- .getClip(params)
144
+ .listFragments(params)
142
145
  .then((data) => {
143
146
  // process data.
144
147
  })
@@ -147,7 +150,7 @@ client
147
150
  });
148
151
 
149
152
  // callbacks.
150
- client.getClip(params, (err, data) => {
153
+ client.listFragments(params, (err, data) => {
151
154
  // process err and data.
152
155
  });
153
156
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-kinesis-video-archived-media",
3
3
  "description": "AWS SDK for JavaScript Kinesis Video Archived Media 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",
@@ -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.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",