@aws-sdk/client-rekognition 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
@@ -381,16 +381,16 @@ using your favorite package manager:
381
381
 
382
382
  The AWS SDK is modulized by clients and commands.
383
383
  To send a request, you only need to import the `RekognitionClient` and
384
- the commands you need, for example `AssociateFacesCommand`:
384
+ the commands you need, for example `ListCollectionsCommand`:
385
385
 
386
386
  ```js
387
387
  // ES5 example
388
- const { RekognitionClient, AssociateFacesCommand } = require("@aws-sdk/client-rekognition");
388
+ const { RekognitionClient, ListCollectionsCommand } = require("@aws-sdk/client-rekognition");
389
389
  ```
390
390
 
391
391
  ```ts
392
392
  // ES6+ example
393
- import { RekognitionClient, AssociateFacesCommand } from "@aws-sdk/client-rekognition";
393
+ import { RekognitionClient, ListCollectionsCommand } from "@aws-sdk/client-rekognition";
394
394
  ```
395
395
 
396
396
  ### Usage
@@ -409,7 +409,7 @@ const client = new RekognitionClient({ region: "REGION" });
409
409
  const params = {
410
410
  /** input parameters */
411
411
  };
412
- const command = new AssociateFacesCommand(params);
412
+ const command = new ListCollectionsCommand(params);
413
413
  ```
414
414
 
415
415
  #### Async/await
@@ -488,7 +488,7 @@ const client = new AWS.Rekognition({ region: "REGION" });
488
488
 
489
489
  // async/await.
490
490
  try {
491
- const data = await client.associateFaces(params);
491
+ const data = await client.listCollections(params);
492
492
  // process data.
493
493
  } catch (error) {
494
494
  // error handling.
@@ -496,7 +496,7 @@ try {
496
496
 
497
497
  // Promises.
498
498
  client
499
- .associateFaces(params)
499
+ .listCollections(params)
500
500
  .then((data) => {
501
501
  // process data.
502
502
  })
@@ -505,7 +505,7 @@ client
505
505
  });
506
506
 
507
507
  // callbacks.
508
- client.associateFaces(params, (err, data) => {
508
+ client.listCollections(params, (err, data) => {
509
509
  // process err and data.
510
510
  });
511
511
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-rekognition",
3
3
  "description": "AWS SDK for JavaScript Rekognition 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",