@aws-sdk/client-rekognition 3.348.0 → 3.351.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 (94) hide show
  1. package/README.md +98 -7
  2. package/dist-cjs/Rekognition.js +14 -0
  3. package/dist-cjs/commands/AssociateFacesCommand.js +46 -0
  4. package/dist-cjs/commands/CreateUserCommand.js +46 -0
  5. package/dist-cjs/commands/DeleteUserCommand.js +46 -0
  6. package/dist-cjs/commands/DisassociateFacesCommand.js +46 -0
  7. package/dist-cjs/commands/ListUsersCommand.js +46 -0
  8. package/dist-cjs/commands/SearchUsersByImageCommand.js +46 -0
  9. package/dist-cjs/commands/SearchUsersCommand.js +46 -0
  10. package/dist-cjs/commands/index.js +7 -0
  11. package/dist-cjs/models/models_0.js +159 -130
  12. package/dist-cjs/models/models_1.js +18 -1
  13. package/dist-cjs/pagination/ListUsersPaginator.js +29 -0
  14. package/dist-cjs/pagination/index.js +1 -0
  15. package/dist-cjs/protocols/Aws_json1_1.js +565 -4
  16. package/dist-es/Rekognition.js +14 -0
  17. package/dist-es/commands/AssociateFacesCommand.js +42 -0
  18. package/dist-es/commands/CreateUserCommand.js +42 -0
  19. package/dist-es/commands/DeleteUserCommand.js +42 -0
  20. package/dist-es/commands/DisassociateFacesCommand.js +42 -0
  21. package/dist-es/commands/ListUsersCommand.js +42 -0
  22. package/dist-es/commands/SearchUsersByImageCommand.js +42 -0
  23. package/dist-es/commands/SearchUsersCommand.js +42 -0
  24. package/dist-es/commands/index.js +7 -0
  25. package/dist-es/models/models_0.js +149 -120
  26. package/dist-es/models/models_1.js +16 -0
  27. package/dist-es/pagination/ListUsersPaginator.js +25 -0
  28. package/dist-es/pagination/index.js +1 -0
  29. package/dist-es/protocols/Aws_json1_1.js +548 -1
  30. package/dist-types/Rekognition.d.ts +84 -0
  31. package/dist-types/RekognitionClient.d.ts +44 -2
  32. package/dist-types/commands/AssociateFacesCommand.d.ts +158 -0
  33. package/dist-types/commands/CreateUserCommand.d.ts +114 -0
  34. package/dist-types/commands/DeleteFacesCommand.d.ts +9 -0
  35. package/dist-types/commands/DeleteUserCommand.d.ts +106 -0
  36. package/dist-types/commands/DescribeCollectionCommand.d.ts +1 -0
  37. package/dist-types/commands/DisassociateFacesCommand.d.ts +128 -0
  38. package/dist-types/commands/GetFaceSearchCommand.d.ts +1 -0
  39. package/dist-types/commands/IndexFacesCommand.d.ts +1 -0
  40. package/dist-types/commands/ListFacesCommand.d.ts +5 -0
  41. package/dist-types/commands/ListUsersCommand.d.ts +108 -0
  42. package/dist-types/commands/SearchFacesByImageCommand.d.ts +1 -0
  43. package/dist-types/commands/SearchFacesCommand.d.ts +1 -0
  44. package/dist-types/commands/SearchUsersByImageCommand.d.ts +294 -0
  45. package/dist-types/commands/SearchUsersCommand.d.ts +117 -0
  46. package/dist-types/commands/StartCelebrityRecognitionCommand.d.ts +2 -1
  47. package/dist-types/commands/StartContentModerationCommand.d.ts +1 -1
  48. package/dist-types/commands/StartFaceDetectionCommand.d.ts +1 -1
  49. package/dist-types/commands/StartFaceSearchCommand.d.ts +1 -1
  50. package/dist-types/commands/StartLabelDetectionCommand.d.ts +1 -1
  51. package/dist-types/commands/StartPersonTrackingCommand.d.ts +1 -1
  52. package/dist-types/commands/StartProjectVersionCommand.d.ts +1 -1
  53. package/dist-types/commands/StartSegmentDetectionCommand.d.ts +1 -1
  54. package/dist-types/commands/StartStreamProcessorCommand.d.ts +1 -1
  55. package/dist-types/commands/StartTextDetectionCommand.d.ts +1 -1
  56. package/dist-types/commands/StopProjectVersionCommand.d.ts +1 -1
  57. package/dist-types/commands/StopStreamProcessorCommand.d.ts +1 -1
  58. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  59. package/dist-types/commands/index.d.ts +7 -0
  60. package/dist-types/index.d.ts +35 -0
  61. package/dist-types/models/models_0.d.ts +668 -604
  62. package/dist-types/models/models_1.d.ts +562 -1
  63. package/dist-types/pagination/ListUsersPaginator.d.ts +7 -0
  64. package/dist-types/pagination/index.d.ts +1 -0
  65. package/dist-types/protocols/Aws_json1_1.d.ts +63 -0
  66. package/dist-types/ts3.4/Rekognition.d.ts +119 -0
  67. package/dist-types/ts3.4/RekognitionClient.d.ts +42 -0
  68. package/dist-types/ts3.4/commands/AssociateFacesCommand.d.ts +38 -0
  69. package/dist-types/ts3.4/commands/CreateUserCommand.d.ts +35 -0
  70. package/dist-types/ts3.4/commands/DeleteUserCommand.d.ts +35 -0
  71. package/dist-types/ts3.4/commands/DisassociateFacesCommand.d.ts +39 -0
  72. package/dist-types/ts3.4/commands/ListUsersCommand.d.ts +35 -0
  73. package/dist-types/ts3.4/commands/SearchUsersByImageCommand.d.ts +39 -0
  74. package/dist-types/ts3.4/commands/SearchUsersCommand.d.ts +35 -0
  75. package/dist-types/ts3.4/commands/StartCelebrityRecognitionCommand.d.ts +2 -4
  76. package/dist-types/ts3.4/commands/StartContentModerationCommand.d.ts +1 -1
  77. package/dist-types/ts3.4/commands/StartFaceDetectionCommand.d.ts +1 -1
  78. package/dist-types/ts3.4/commands/StartFaceSearchCommand.d.ts +1 -1
  79. package/dist-types/ts3.4/commands/StartLabelDetectionCommand.d.ts +1 -1
  80. package/dist-types/ts3.4/commands/StartPersonTrackingCommand.d.ts +1 -1
  81. package/dist-types/ts3.4/commands/StartProjectVersionCommand.d.ts +1 -1
  82. package/dist-types/ts3.4/commands/StartSegmentDetectionCommand.d.ts +1 -1
  83. package/dist-types/ts3.4/commands/StartStreamProcessorCommand.d.ts +1 -1
  84. package/dist-types/ts3.4/commands/StartTextDetectionCommand.d.ts +1 -1
  85. package/dist-types/ts3.4/commands/StopProjectVersionCommand.d.ts +1 -1
  86. package/dist-types/ts3.4/commands/StopStreamProcessorCommand.d.ts +1 -1
  87. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
  88. package/dist-types/ts3.4/commands/index.d.ts +7 -0
  89. package/dist-types/ts3.4/models/models_0.d.ts +236 -206
  90. package/dist-types/ts3.4/models/models_1.d.ts +150 -0
  91. package/dist-types/ts3.4/pagination/ListUsersPaginator.d.ts +11 -0
  92. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  93. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +84 -0
  94. package/package.json +7 -5
@@ -1,4 +1,5 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
+ import { AssociateFacesCommandInput, AssociateFacesCommandOutput } from "./commands/AssociateFacesCommand";
2
3
  import { CompareFacesCommandInput, CompareFacesCommandOutput } from "./commands/CompareFacesCommand";
3
4
  import { CopyProjectVersionCommandInput, CopyProjectVersionCommandOutput } from "./commands/CopyProjectVersionCommand";
4
5
  import { CreateCollectionCommandInput, CreateCollectionCommandOutput } from "./commands/CreateCollectionCommand";
@@ -7,6 +8,7 @@ import { CreateFaceLivenessSessionCommandInput, CreateFaceLivenessSessionCommand
7
8
  import { CreateProjectCommandInput, CreateProjectCommandOutput } from "./commands/CreateProjectCommand";
8
9
  import { CreateProjectVersionCommandInput, CreateProjectVersionCommandOutput } from "./commands/CreateProjectVersionCommand";
9
10
  import { CreateStreamProcessorCommandInput, CreateStreamProcessorCommandOutput } from "./commands/CreateStreamProcessorCommand";
11
+ import { CreateUserCommandInput, CreateUserCommandOutput } from "./commands/CreateUserCommand";
10
12
  import { DeleteCollectionCommandInput, DeleteCollectionCommandOutput } from "./commands/DeleteCollectionCommand";
11
13
  import { DeleteDatasetCommandInput, DeleteDatasetCommandOutput } from "./commands/DeleteDatasetCommand";
12
14
  import { DeleteFacesCommandInput, DeleteFacesCommandOutput } from "./commands/DeleteFacesCommand";
@@ -14,6 +16,7 @@ import { DeleteProjectCommandInput, DeleteProjectCommandOutput } from "./command
14
16
  import { DeleteProjectPolicyCommandInput, DeleteProjectPolicyCommandOutput } from "./commands/DeleteProjectPolicyCommand";
15
17
  import { DeleteProjectVersionCommandInput, DeleteProjectVersionCommandOutput } from "./commands/DeleteProjectVersionCommand";
16
18
  import { DeleteStreamProcessorCommandInput, DeleteStreamProcessorCommandOutput } from "./commands/DeleteStreamProcessorCommand";
19
+ import { DeleteUserCommandInput, DeleteUserCommandOutput } from "./commands/DeleteUserCommand";
17
20
  import { DescribeCollectionCommandInput, DescribeCollectionCommandOutput } from "./commands/DescribeCollectionCommand";
18
21
  import { DescribeDatasetCommandInput, DescribeDatasetCommandOutput } from "./commands/DescribeDatasetCommand";
19
22
  import { DescribeProjectsCommandInput, DescribeProjectsCommandOutput } from "./commands/DescribeProjectsCommand";
@@ -25,6 +28,7 @@ import { DetectLabelsCommandInput, DetectLabelsCommandOutput } from "./commands/
25
28
  import { DetectModerationLabelsCommandInput, DetectModerationLabelsCommandOutput } from "./commands/DetectModerationLabelsCommand";
26
29
  import { DetectProtectiveEquipmentCommandInput, DetectProtectiveEquipmentCommandOutput } from "./commands/DetectProtectiveEquipmentCommand";
27
30
  import { DetectTextCommandInput, DetectTextCommandOutput } from "./commands/DetectTextCommand";
31
+ import { DisassociateFacesCommandInput, DisassociateFacesCommandOutput } from "./commands/DisassociateFacesCommand";
28
32
  import { DistributeDatasetEntriesCommandInput, DistributeDatasetEntriesCommandOutput } from "./commands/DistributeDatasetEntriesCommand";
29
33
  import { GetCelebrityInfoCommandInput, GetCelebrityInfoCommandOutput } from "./commands/GetCelebrityInfoCommand";
30
34
  import { GetCelebrityRecognitionCommandInput, GetCelebrityRecognitionCommandOutput } from "./commands/GetCelebrityRecognitionCommand";
@@ -44,10 +48,13 @@ import { ListFacesCommandInput, ListFacesCommandOutput } from "./commands/ListFa
44
48
  import { ListProjectPoliciesCommandInput, ListProjectPoliciesCommandOutput } from "./commands/ListProjectPoliciesCommand";
45
49
  import { ListStreamProcessorsCommandInput, ListStreamProcessorsCommandOutput } from "./commands/ListStreamProcessorsCommand";
46
50
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
51
+ import { ListUsersCommandInput, ListUsersCommandOutput } from "./commands/ListUsersCommand";
47
52
  import { PutProjectPolicyCommandInput, PutProjectPolicyCommandOutput } from "./commands/PutProjectPolicyCommand";
48
53
  import { RecognizeCelebritiesCommandInput, RecognizeCelebritiesCommandOutput } from "./commands/RecognizeCelebritiesCommand";
49
54
  import { SearchFacesByImageCommandInput, SearchFacesByImageCommandOutput } from "./commands/SearchFacesByImageCommand";
50
55
  import { SearchFacesCommandInput, SearchFacesCommandOutput } from "./commands/SearchFacesCommand";
56
+ import { SearchUsersByImageCommandInput, SearchUsersByImageCommandOutput } from "./commands/SearchUsersByImageCommand";
57
+ import { SearchUsersCommandInput, SearchUsersCommandOutput } from "./commands/SearchUsersCommand";
51
58
  import { StartCelebrityRecognitionCommandInput, StartCelebrityRecognitionCommandOutput } from "./commands/StartCelebrityRecognitionCommand";
52
59
  import { StartContentModerationCommandInput, StartContentModerationCommandOutput } from "./commands/StartContentModerationCommand";
53
60
  import { StartFaceDetectionCommandInput, StartFaceDetectionCommandOutput } from "./commands/StartFaceDetectionCommand";
@@ -66,6 +73,12 @@ import { UpdateDatasetEntriesCommandInput, UpdateDatasetEntriesCommandOutput } f
66
73
  import { UpdateStreamProcessorCommandInput, UpdateStreamProcessorCommandOutput } from "./commands/UpdateStreamProcessorCommand";
67
74
  import { RekognitionClient } from "./RekognitionClient";
68
75
  export interface Rekognition {
76
+ /**
77
+ * @see {@link AssociateFacesCommand}
78
+ */
79
+ associateFaces(args: AssociateFacesCommandInput, options?: __HttpHandlerOptions): Promise<AssociateFacesCommandOutput>;
80
+ associateFaces(args: AssociateFacesCommandInput, cb: (err: any, data?: AssociateFacesCommandOutput) => void): void;
81
+ associateFaces(args: AssociateFacesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssociateFacesCommandOutput) => void): void;
69
82
  /**
70
83
  * @see {@link CompareFacesCommand}
71
84
  */
@@ -114,6 +127,12 @@ export interface Rekognition {
114
127
  createStreamProcessor(args: CreateStreamProcessorCommandInput, options?: __HttpHandlerOptions): Promise<CreateStreamProcessorCommandOutput>;
115
128
  createStreamProcessor(args: CreateStreamProcessorCommandInput, cb: (err: any, data?: CreateStreamProcessorCommandOutput) => void): void;
116
129
  createStreamProcessor(args: CreateStreamProcessorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateStreamProcessorCommandOutput) => void): void;
130
+ /**
131
+ * @see {@link CreateUserCommand}
132
+ */
133
+ createUser(args: CreateUserCommandInput, options?: __HttpHandlerOptions): Promise<CreateUserCommandOutput>;
134
+ createUser(args: CreateUserCommandInput, cb: (err: any, data?: CreateUserCommandOutput) => void): void;
135
+ createUser(args: CreateUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateUserCommandOutput) => void): void;
117
136
  /**
118
137
  * @see {@link DeleteCollectionCommand}
119
138
  */
@@ -156,6 +175,12 @@ export interface Rekognition {
156
175
  deleteStreamProcessor(args: DeleteStreamProcessorCommandInput, options?: __HttpHandlerOptions): Promise<DeleteStreamProcessorCommandOutput>;
157
176
  deleteStreamProcessor(args: DeleteStreamProcessorCommandInput, cb: (err: any, data?: DeleteStreamProcessorCommandOutput) => void): void;
158
177
  deleteStreamProcessor(args: DeleteStreamProcessorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteStreamProcessorCommandOutput) => void): void;
178
+ /**
179
+ * @see {@link DeleteUserCommand}
180
+ */
181
+ deleteUser(args: DeleteUserCommandInput, options?: __HttpHandlerOptions): Promise<DeleteUserCommandOutput>;
182
+ deleteUser(args: DeleteUserCommandInput, cb: (err: any, data?: DeleteUserCommandOutput) => void): void;
183
+ deleteUser(args: DeleteUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteUserCommandOutput) => void): void;
159
184
  /**
160
185
  * @see {@link DescribeCollectionCommand}
161
186
  */
@@ -222,6 +247,12 @@ export interface Rekognition {
222
247
  detectText(args: DetectTextCommandInput, options?: __HttpHandlerOptions): Promise<DetectTextCommandOutput>;
223
248
  detectText(args: DetectTextCommandInput, cb: (err: any, data?: DetectTextCommandOutput) => void): void;
224
249
  detectText(args: DetectTextCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DetectTextCommandOutput) => void): void;
250
+ /**
251
+ * @see {@link DisassociateFacesCommand}
252
+ */
253
+ disassociateFaces(args: DisassociateFacesCommandInput, options?: __HttpHandlerOptions): Promise<DisassociateFacesCommandOutput>;
254
+ disassociateFaces(args: DisassociateFacesCommandInput, cb: (err: any, data?: DisassociateFacesCommandOutput) => void): void;
255
+ disassociateFaces(args: DisassociateFacesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateFacesCommandOutput) => void): void;
225
256
  /**
226
257
  * @see {@link DistributeDatasetEntriesCommand}
227
258
  */
@@ -336,6 +367,12 @@ export interface Rekognition {
336
367
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
337
368
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
338
369
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
370
+ /**
371
+ * @see {@link ListUsersCommand}
372
+ */
373
+ listUsers(args: ListUsersCommandInput, options?: __HttpHandlerOptions): Promise<ListUsersCommandOutput>;
374
+ listUsers(args: ListUsersCommandInput, cb: (err: any, data?: ListUsersCommandOutput) => void): void;
375
+ listUsers(args: ListUsersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListUsersCommandOutput) => void): void;
339
376
  /**
340
377
  * @see {@link PutProjectPolicyCommand}
341
378
  */
@@ -360,6 +397,18 @@ export interface Rekognition {
360
397
  searchFacesByImage(args: SearchFacesByImageCommandInput, options?: __HttpHandlerOptions): Promise<SearchFacesByImageCommandOutput>;
361
398
  searchFacesByImage(args: SearchFacesByImageCommandInput, cb: (err: any, data?: SearchFacesByImageCommandOutput) => void): void;
362
399
  searchFacesByImage(args: SearchFacesByImageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SearchFacesByImageCommandOutput) => void): void;
400
+ /**
401
+ * @see {@link SearchUsersCommand}
402
+ */
403
+ searchUsers(args: SearchUsersCommandInput, options?: __HttpHandlerOptions): Promise<SearchUsersCommandOutput>;
404
+ searchUsers(args: SearchUsersCommandInput, cb: (err: any, data?: SearchUsersCommandOutput) => void): void;
405
+ searchUsers(args: SearchUsersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SearchUsersCommandOutput) => void): void;
406
+ /**
407
+ * @see {@link SearchUsersByImageCommand}
408
+ */
409
+ searchUsersByImage(args: SearchUsersByImageCommandInput, options?: __HttpHandlerOptions): Promise<SearchUsersByImageCommandOutput>;
410
+ searchUsersByImage(args: SearchUsersByImageCommandInput, cb: (err: any, data?: SearchUsersByImageCommandOutput) => void): void;
411
+ searchUsersByImage(args: SearchUsersByImageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SearchUsersByImageCommandOutput) => void): void;
363
412
  /**
364
413
  * @see {@link StartCelebrityRecognitionCommand}
365
414
  */
@@ -469,6 +518,11 @@ export interface Rekognition {
469
518
  * <ul>
470
519
  * <li>
471
520
  * <p>
521
+ * <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_AssociateFaces.html">AssociateFaces</a>
522
+ * </p>
523
+ * </li>
524
+ * <li>
525
+ * <p>
472
526
  * <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_CompareFaces.html">CompareFaces</a>
473
527
  * </p>
474
528
  * </li>
@@ -479,6 +533,11 @@ export interface Rekognition {
479
533
  * </li>
480
534
  * <li>
481
535
  * <p>
536
+ * <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_CreateUser.html">CreateUser</a>
537
+ * </p>
538
+ * </li>
539
+ * <li>
540
+ * <p>
482
541
  * <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DeleteCollection.html">DeleteCollection</a>
483
542
  * </p>
484
543
  * </li>
@@ -489,6 +548,11 @@ export interface Rekognition {
489
548
  * </li>
490
549
  * <li>
491
550
  * <p>
551
+ * <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DeleteUser.html">DeleteUser</a>
552
+ * </p>
553
+ * </li>
554
+ * <li>
555
+ * <p>
492
556
  * <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DescribeCollection.html">DescribeCollection</a>
493
557
  * </p>
494
558
  * </li>
@@ -519,6 +583,11 @@ export interface Rekognition {
519
583
  * </li>
520
584
  * <li>
521
585
  * <p>
586
+ * <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DisassociateFaces.html">DisassociateFaces</a>
587
+ * </p>
588
+ * </li>
589
+ * <li>
590
+ * <p>
522
591
  * <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_GetCelebrityInfo.html">GetCelebrityInfo</a>
523
592
  * </p>
524
593
  * </li>
@@ -539,6 +608,11 @@ export interface Rekognition {
539
608
  * </li>
540
609
  * <li>
541
610
  * <p>
611
+ * <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_ListFaces.html">ListUsers</a>
612
+ * </p>
613
+ * </li>
614
+ * <li>
615
+ * <p>
542
616
  * <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_RecognizeCelebrities.html">RecognizeCelebrities</a>
543
617
  * </p>
544
618
  * </li>
@@ -552,6 +626,16 @@ export interface Rekognition {
552
626
  * <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_SearchFacesByImage.html">SearchFacesByImage</a>
553
627
  * </p>
554
628
  * </li>
629
+ * <li>
630
+ * <p>
631
+ * <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_SearchUsers.html">SearchUsers</a>
632
+ * </p>
633
+ * </li>
634
+ * <li>
635
+ * <p>
636
+ * <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_SearchUsersByImage.html">SearchUsersByImage</a>
637
+ * </p>
638
+ * </li>
555
639
  * </ul>
556
640
  * <p>
557
641
  * <b>Amazon Rekognition Custom Labels</b>
@@ -8,6 +8,7 @@ import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration
8
8
  import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as __ChecksumConstructor, Credentials as __Credentials, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
10
10
  import { Decoder as __Decoder, Encoder as __Encoder, Provider as __Provider, StreamCollector as __StreamCollector } from "@smithy/types";
11
+ import { AssociateFacesCommandInput, AssociateFacesCommandOutput } from "./commands/AssociateFacesCommand";
11
12
  import { CompareFacesCommandInput, CompareFacesCommandOutput } from "./commands/CompareFacesCommand";
12
13
  import { CopyProjectVersionCommandInput, CopyProjectVersionCommandOutput } from "./commands/CopyProjectVersionCommand";
13
14
  import { CreateCollectionCommandInput, CreateCollectionCommandOutput } from "./commands/CreateCollectionCommand";
@@ -16,6 +17,7 @@ import { CreateFaceLivenessSessionCommandInput, CreateFaceLivenessSessionCommand
16
17
  import { CreateProjectCommandInput, CreateProjectCommandOutput } from "./commands/CreateProjectCommand";
17
18
  import { CreateProjectVersionCommandInput, CreateProjectVersionCommandOutput } from "./commands/CreateProjectVersionCommand";
18
19
  import { CreateStreamProcessorCommandInput, CreateStreamProcessorCommandOutput } from "./commands/CreateStreamProcessorCommand";
20
+ import { CreateUserCommandInput, CreateUserCommandOutput } from "./commands/CreateUserCommand";
19
21
  import { DeleteCollectionCommandInput, DeleteCollectionCommandOutput } from "./commands/DeleteCollectionCommand";
20
22
  import { DeleteDatasetCommandInput, DeleteDatasetCommandOutput } from "./commands/DeleteDatasetCommand";
21
23
  import { DeleteFacesCommandInput, DeleteFacesCommandOutput } from "./commands/DeleteFacesCommand";
@@ -23,6 +25,7 @@ import { DeleteProjectCommandInput, DeleteProjectCommandOutput } from "./command
23
25
  import { DeleteProjectPolicyCommandInput, DeleteProjectPolicyCommandOutput } from "./commands/DeleteProjectPolicyCommand";
24
26
  import { DeleteProjectVersionCommandInput, DeleteProjectVersionCommandOutput } from "./commands/DeleteProjectVersionCommand";
25
27
  import { DeleteStreamProcessorCommandInput, DeleteStreamProcessorCommandOutput } from "./commands/DeleteStreamProcessorCommand";
28
+ import { DeleteUserCommandInput, DeleteUserCommandOutput } from "./commands/DeleteUserCommand";
26
29
  import { DescribeCollectionCommandInput, DescribeCollectionCommandOutput } from "./commands/DescribeCollectionCommand";
27
30
  import { DescribeDatasetCommandInput, DescribeDatasetCommandOutput } from "./commands/DescribeDatasetCommand";
28
31
  import { DescribeProjectsCommandInput, DescribeProjectsCommandOutput } from "./commands/DescribeProjectsCommand";
@@ -34,6 +37,7 @@ import { DetectLabelsCommandInput, DetectLabelsCommandOutput } from "./commands/
34
37
  import { DetectModerationLabelsCommandInput, DetectModerationLabelsCommandOutput } from "./commands/DetectModerationLabelsCommand";
35
38
  import { DetectProtectiveEquipmentCommandInput, DetectProtectiveEquipmentCommandOutput } from "./commands/DetectProtectiveEquipmentCommand";
36
39
  import { DetectTextCommandInput, DetectTextCommandOutput } from "./commands/DetectTextCommand";
40
+ import { DisassociateFacesCommandInput, DisassociateFacesCommandOutput } from "./commands/DisassociateFacesCommand";
37
41
  import { DistributeDatasetEntriesCommandInput, DistributeDatasetEntriesCommandOutput } from "./commands/DistributeDatasetEntriesCommand";
38
42
  import { GetCelebrityInfoCommandInput, GetCelebrityInfoCommandOutput } from "./commands/GetCelebrityInfoCommand";
39
43
  import { GetCelebrityRecognitionCommandInput, GetCelebrityRecognitionCommandOutput } from "./commands/GetCelebrityRecognitionCommand";
@@ -53,10 +57,13 @@ import { ListFacesCommandInput, ListFacesCommandOutput } from "./commands/ListFa
53
57
  import { ListProjectPoliciesCommandInput, ListProjectPoliciesCommandOutput } from "./commands/ListProjectPoliciesCommand";
54
58
  import { ListStreamProcessorsCommandInput, ListStreamProcessorsCommandOutput } from "./commands/ListStreamProcessorsCommand";
55
59
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
60
+ import { ListUsersCommandInput, ListUsersCommandOutput } from "./commands/ListUsersCommand";
56
61
  import { PutProjectPolicyCommandInput, PutProjectPolicyCommandOutput } from "./commands/PutProjectPolicyCommand";
57
62
  import { RecognizeCelebritiesCommandInput, RecognizeCelebritiesCommandOutput } from "./commands/RecognizeCelebritiesCommand";
58
63
  import { SearchFacesByImageCommandInput, SearchFacesByImageCommandOutput } from "./commands/SearchFacesByImageCommand";
59
64
  import { SearchFacesCommandInput, SearchFacesCommandOutput } from "./commands/SearchFacesCommand";
65
+ import { SearchUsersByImageCommandInput, SearchUsersByImageCommandOutput } from "./commands/SearchUsersByImageCommand";
66
+ import { SearchUsersCommandInput, SearchUsersCommandOutput } from "./commands/SearchUsersCommand";
60
67
  import { StartCelebrityRecognitionCommandInput, StartCelebrityRecognitionCommandOutput } from "./commands/StartCelebrityRecognitionCommand";
61
68
  import { StartContentModerationCommandInput, StartContentModerationCommandOutput } from "./commands/StartContentModerationCommand";
62
69
  import { StartFaceDetectionCommandInput, StartFaceDetectionCommandOutput } from "./commands/StartFaceDetectionCommand";
@@ -78,11 +85,11 @@ export { __Client };
78
85
  /**
79
86
  * @public
80
87
  */
81
- export type ServiceInputTypes = CompareFacesCommandInput | CopyProjectVersionCommandInput | CreateCollectionCommandInput | CreateDatasetCommandInput | CreateFaceLivenessSessionCommandInput | CreateProjectCommandInput | CreateProjectVersionCommandInput | CreateStreamProcessorCommandInput | DeleteCollectionCommandInput | DeleteDatasetCommandInput | DeleteFacesCommandInput | DeleteProjectCommandInput | DeleteProjectPolicyCommandInput | DeleteProjectVersionCommandInput | DeleteStreamProcessorCommandInput | DescribeCollectionCommandInput | DescribeDatasetCommandInput | DescribeProjectVersionsCommandInput | DescribeProjectsCommandInput | DescribeStreamProcessorCommandInput | DetectCustomLabelsCommandInput | DetectFacesCommandInput | DetectLabelsCommandInput | DetectModerationLabelsCommandInput | DetectProtectiveEquipmentCommandInput | DetectTextCommandInput | DistributeDatasetEntriesCommandInput | GetCelebrityInfoCommandInput | GetCelebrityRecognitionCommandInput | GetContentModerationCommandInput | GetFaceDetectionCommandInput | GetFaceLivenessSessionResultsCommandInput | GetFaceSearchCommandInput | GetLabelDetectionCommandInput | GetPersonTrackingCommandInput | GetSegmentDetectionCommandInput | GetTextDetectionCommandInput | IndexFacesCommandInput | ListCollectionsCommandInput | ListDatasetEntriesCommandInput | ListDatasetLabelsCommandInput | ListFacesCommandInput | ListProjectPoliciesCommandInput | ListStreamProcessorsCommandInput | ListTagsForResourceCommandInput | PutProjectPolicyCommandInput | RecognizeCelebritiesCommandInput | SearchFacesByImageCommandInput | SearchFacesCommandInput | StartCelebrityRecognitionCommandInput | StartContentModerationCommandInput | StartFaceDetectionCommandInput | StartFaceSearchCommandInput | StartLabelDetectionCommandInput | StartPersonTrackingCommandInput | StartProjectVersionCommandInput | StartSegmentDetectionCommandInput | StartStreamProcessorCommandInput | StartTextDetectionCommandInput | StopProjectVersionCommandInput | StopStreamProcessorCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateDatasetEntriesCommandInput | UpdateStreamProcessorCommandInput;
88
+ export type ServiceInputTypes = AssociateFacesCommandInput | CompareFacesCommandInput | CopyProjectVersionCommandInput | CreateCollectionCommandInput | CreateDatasetCommandInput | CreateFaceLivenessSessionCommandInput | CreateProjectCommandInput | CreateProjectVersionCommandInput | CreateStreamProcessorCommandInput | CreateUserCommandInput | DeleteCollectionCommandInput | DeleteDatasetCommandInput | DeleteFacesCommandInput | DeleteProjectCommandInput | DeleteProjectPolicyCommandInput | DeleteProjectVersionCommandInput | DeleteStreamProcessorCommandInput | DeleteUserCommandInput | DescribeCollectionCommandInput | DescribeDatasetCommandInput | DescribeProjectVersionsCommandInput | DescribeProjectsCommandInput | DescribeStreamProcessorCommandInput | DetectCustomLabelsCommandInput | DetectFacesCommandInput | DetectLabelsCommandInput | DetectModerationLabelsCommandInput | DetectProtectiveEquipmentCommandInput | DetectTextCommandInput | DisassociateFacesCommandInput | DistributeDatasetEntriesCommandInput | GetCelebrityInfoCommandInput | GetCelebrityRecognitionCommandInput | GetContentModerationCommandInput | GetFaceDetectionCommandInput | GetFaceLivenessSessionResultsCommandInput | GetFaceSearchCommandInput | GetLabelDetectionCommandInput | GetPersonTrackingCommandInput | GetSegmentDetectionCommandInput | GetTextDetectionCommandInput | IndexFacesCommandInput | ListCollectionsCommandInput | ListDatasetEntriesCommandInput | ListDatasetLabelsCommandInput | ListFacesCommandInput | ListProjectPoliciesCommandInput | ListStreamProcessorsCommandInput | ListTagsForResourceCommandInput | ListUsersCommandInput | PutProjectPolicyCommandInput | RecognizeCelebritiesCommandInput | SearchFacesByImageCommandInput | SearchFacesCommandInput | SearchUsersByImageCommandInput | SearchUsersCommandInput | StartCelebrityRecognitionCommandInput | StartContentModerationCommandInput | StartFaceDetectionCommandInput | StartFaceSearchCommandInput | StartLabelDetectionCommandInput | StartPersonTrackingCommandInput | StartProjectVersionCommandInput | StartSegmentDetectionCommandInput | StartStreamProcessorCommandInput | StartTextDetectionCommandInput | StopProjectVersionCommandInput | StopStreamProcessorCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateDatasetEntriesCommandInput | UpdateStreamProcessorCommandInput;
82
89
  /**
83
90
  * @public
84
91
  */
85
- export type ServiceOutputTypes = CompareFacesCommandOutput | CopyProjectVersionCommandOutput | CreateCollectionCommandOutput | CreateDatasetCommandOutput | CreateFaceLivenessSessionCommandOutput | CreateProjectCommandOutput | CreateProjectVersionCommandOutput | CreateStreamProcessorCommandOutput | DeleteCollectionCommandOutput | DeleteDatasetCommandOutput | DeleteFacesCommandOutput | DeleteProjectCommandOutput | DeleteProjectPolicyCommandOutput | DeleteProjectVersionCommandOutput | DeleteStreamProcessorCommandOutput | DescribeCollectionCommandOutput | DescribeDatasetCommandOutput | DescribeProjectVersionsCommandOutput | DescribeProjectsCommandOutput | DescribeStreamProcessorCommandOutput | DetectCustomLabelsCommandOutput | DetectFacesCommandOutput | DetectLabelsCommandOutput | DetectModerationLabelsCommandOutput | DetectProtectiveEquipmentCommandOutput | DetectTextCommandOutput | DistributeDatasetEntriesCommandOutput | GetCelebrityInfoCommandOutput | GetCelebrityRecognitionCommandOutput | GetContentModerationCommandOutput | GetFaceDetectionCommandOutput | GetFaceLivenessSessionResultsCommandOutput | GetFaceSearchCommandOutput | GetLabelDetectionCommandOutput | GetPersonTrackingCommandOutput | GetSegmentDetectionCommandOutput | GetTextDetectionCommandOutput | IndexFacesCommandOutput | ListCollectionsCommandOutput | ListDatasetEntriesCommandOutput | ListDatasetLabelsCommandOutput | ListFacesCommandOutput | ListProjectPoliciesCommandOutput | ListStreamProcessorsCommandOutput | ListTagsForResourceCommandOutput | PutProjectPolicyCommandOutput | RecognizeCelebritiesCommandOutput | SearchFacesByImageCommandOutput | SearchFacesCommandOutput | StartCelebrityRecognitionCommandOutput | StartContentModerationCommandOutput | StartFaceDetectionCommandOutput | StartFaceSearchCommandOutput | StartLabelDetectionCommandOutput | StartPersonTrackingCommandOutput | StartProjectVersionCommandOutput | StartSegmentDetectionCommandOutput | StartStreamProcessorCommandOutput | StartTextDetectionCommandOutput | StopProjectVersionCommandOutput | StopStreamProcessorCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateDatasetEntriesCommandOutput | UpdateStreamProcessorCommandOutput;
92
+ export type ServiceOutputTypes = AssociateFacesCommandOutput | CompareFacesCommandOutput | CopyProjectVersionCommandOutput | CreateCollectionCommandOutput | CreateDatasetCommandOutput | CreateFaceLivenessSessionCommandOutput | CreateProjectCommandOutput | CreateProjectVersionCommandOutput | CreateStreamProcessorCommandOutput | CreateUserCommandOutput | DeleteCollectionCommandOutput | DeleteDatasetCommandOutput | DeleteFacesCommandOutput | DeleteProjectCommandOutput | DeleteProjectPolicyCommandOutput | DeleteProjectVersionCommandOutput | DeleteStreamProcessorCommandOutput | DeleteUserCommandOutput | DescribeCollectionCommandOutput | DescribeDatasetCommandOutput | DescribeProjectVersionsCommandOutput | DescribeProjectsCommandOutput | DescribeStreamProcessorCommandOutput | DetectCustomLabelsCommandOutput | DetectFacesCommandOutput | DetectLabelsCommandOutput | DetectModerationLabelsCommandOutput | DetectProtectiveEquipmentCommandOutput | DetectTextCommandOutput | DisassociateFacesCommandOutput | DistributeDatasetEntriesCommandOutput | GetCelebrityInfoCommandOutput | GetCelebrityRecognitionCommandOutput | GetContentModerationCommandOutput | GetFaceDetectionCommandOutput | GetFaceLivenessSessionResultsCommandOutput | GetFaceSearchCommandOutput | GetLabelDetectionCommandOutput | GetPersonTrackingCommandOutput | GetSegmentDetectionCommandOutput | GetTextDetectionCommandOutput | IndexFacesCommandOutput | ListCollectionsCommandOutput | ListDatasetEntriesCommandOutput | ListDatasetLabelsCommandOutput | ListFacesCommandOutput | ListProjectPoliciesCommandOutput | ListStreamProcessorsCommandOutput | ListTagsForResourceCommandOutput | ListUsersCommandOutput | PutProjectPolicyCommandOutput | RecognizeCelebritiesCommandOutput | SearchFacesByImageCommandOutput | SearchFacesCommandOutput | SearchUsersByImageCommandOutput | SearchUsersCommandOutput | StartCelebrityRecognitionCommandOutput | StartContentModerationCommandOutput | StartFaceDetectionCommandOutput | StartFaceSearchCommandOutput | StartLabelDetectionCommandOutput | StartPersonTrackingCommandOutput | StartProjectVersionCommandOutput | StartSegmentDetectionCommandOutput | StartStreamProcessorCommandOutput | StartTextDetectionCommandOutput | StopProjectVersionCommandOutput | StopStreamProcessorCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateDatasetEntriesCommandOutput | UpdateStreamProcessorCommandOutput;
86
93
  /**
87
94
  * @public
88
95
  */
@@ -220,6 +227,11 @@ export interface RekognitionClientResolvedConfig extends RekognitionClientResolv
220
227
  * <ul>
221
228
  * <li>
222
229
  * <p>
230
+ * <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_AssociateFaces.html">AssociateFaces</a>
231
+ * </p>
232
+ * </li>
233
+ * <li>
234
+ * <p>
223
235
  * <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_CompareFaces.html">CompareFaces</a>
224
236
  * </p>
225
237
  * </li>
@@ -230,6 +242,11 @@ export interface RekognitionClientResolvedConfig extends RekognitionClientResolv
230
242
  * </li>
231
243
  * <li>
232
244
  * <p>
245
+ * <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_CreateUser.html">CreateUser</a>
246
+ * </p>
247
+ * </li>
248
+ * <li>
249
+ * <p>
233
250
  * <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DeleteCollection.html">DeleteCollection</a>
234
251
  * </p>
235
252
  * </li>
@@ -240,6 +257,11 @@ export interface RekognitionClientResolvedConfig extends RekognitionClientResolv
240
257
  * </li>
241
258
  * <li>
242
259
  * <p>
260
+ * <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DeleteUser.html">DeleteUser</a>
261
+ * </p>
262
+ * </li>
263
+ * <li>
264
+ * <p>
243
265
  * <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DescribeCollection.html">DescribeCollection</a>
244
266
  * </p>
245
267
  * </li>
@@ -270,6 +292,11 @@ export interface RekognitionClientResolvedConfig extends RekognitionClientResolv
270
292
  * </li>
271
293
  * <li>
272
294
  * <p>
295
+ * <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DisassociateFaces.html">DisassociateFaces</a>
296
+ * </p>
297
+ * </li>
298
+ * <li>
299
+ * <p>
273
300
  * <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_GetCelebrityInfo.html">GetCelebrityInfo</a>
274
301
  * </p>
275
302
  * </li>
@@ -290,6 +317,11 @@ export interface RekognitionClientResolvedConfig extends RekognitionClientResolv
290
317
  * </li>
291
318
  * <li>
292
319
  * <p>
320
+ * <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_ListFaces.html">ListUsers</a>
321
+ * </p>
322
+ * </li>
323
+ * <li>
324
+ * <p>
293
325
  * <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_RecognizeCelebrities.html">RecognizeCelebrities</a>
294
326
  * </p>
295
327
  * </li>
@@ -303,6 +335,16 @@ export interface RekognitionClientResolvedConfig extends RekognitionClientResolv
303
335
  * <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_SearchFacesByImage.html">SearchFacesByImage</a>
304
336
  * </p>
305
337
  * </li>
338
+ * <li>
339
+ * <p>
340
+ * <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_SearchUsers.html">SearchUsers</a>
341
+ * </p>
342
+ * </li>
343
+ * <li>
344
+ * <p>
345
+ * <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_SearchUsersByImage.html">SearchUsersByImage</a>
346
+ * </p>
347
+ * </li>
306
348
  * </ul>
307
349
  * <p>
308
350
  * <b>Amazon Rekognition Custom Labels</b>
@@ -0,0 +1,158 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { AssociateFacesRequest, AssociateFacesResponse } from "../models/models_0";
5
+ import { RekognitionClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RekognitionClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link AssociateFacesCommand}.
14
+ */
15
+ export interface AssociateFacesCommandInput extends AssociateFacesRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link AssociateFacesCommand}.
21
+ */
22
+ export interface AssociateFacesCommandOutput extends AssociateFacesResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Associates one or more faces with an existing UserID. Takes an array of
27
+ * <code>FaceIds</code>. Each <code>FaceId</code> that are present in the <code>FaceIds</code>
28
+ * list is associated with the provided UserID. The maximum number of total <code>FaceIds</code>
29
+ * per UserID is 100. </p>
30
+ * <p>The <code>UserMatchThreshold</code> parameter specifies the minimum user match confidence
31
+ * required for the face to be associated with a UserID that has at least one <code>FaceID</code>
32
+ * already associated. This ensures that the <code>FaceIds</code> are associated with the right
33
+ * UserID. The value ranges from 0-100 and default value is 75. </p>
34
+ * <p>If successful, an array of <code>AssociatedFace</code> objects containing the associated
35
+ * <code>FaceIds</code> is returned. If a given face is already associated with the given
36
+ * <code>UserID</code>, it will be ignored and will not be returned in the response. If a given
37
+ * face is already associated to a different <code>UserID</code>, isn't found in the collection,
38
+ * doesn’t meet the <code>UserMatchThreshold</code>, or there are already 100 faces associated
39
+ * with the <code>UserID</code>, it will be returned as part of an array of
40
+ * <code>UnsuccessfulFaceAssociations.</code>
41
+ * </p>
42
+ * <p>The <code>UserStatus</code> reflects the status of an operation which updates a UserID
43
+ * representation with a list of given faces. The <code>UserStatus</code> can be: </p>
44
+ * <ul>
45
+ * <li>
46
+ * <p>ACTIVE - All associations or disassociations of FaceID(s) for a UserID are
47
+ * complete.</p>
48
+ * </li>
49
+ * <li>
50
+ * <p>CREATED - A UserID has been created, but has no FaceID(s) associated with it.</p>
51
+ * </li>
52
+ * <li>
53
+ * <p>UPDATING - A UserID is being updated and there are current associations or
54
+ * disassociations of FaceID(s) taking place.</p>
55
+ * </li>
56
+ * </ul>
57
+ * @example
58
+ * Use a bare-bones client and the command you need to make an API call.
59
+ * ```javascript
60
+ * import { RekognitionClient, AssociateFacesCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
61
+ * // const { RekognitionClient, AssociateFacesCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
62
+ * const client = new RekognitionClient(config);
63
+ * const input = { // AssociateFacesRequest
64
+ * CollectionId: "STRING_VALUE", // required
65
+ * UserId: "STRING_VALUE", // required
66
+ * FaceIds: [ // UserFaceIdList // required
67
+ * "STRING_VALUE",
68
+ * ],
69
+ * UserMatchThreshold: Number("float"),
70
+ * ClientRequestToken: "STRING_VALUE",
71
+ * };
72
+ * const command = new AssociateFacesCommand(input);
73
+ * const response = await client.send(command);
74
+ * // { // AssociateFacesResponse
75
+ * // AssociatedFaces: [ // AssociatedFacesList
76
+ * // { // AssociatedFace
77
+ * // FaceId: "STRING_VALUE",
78
+ * // },
79
+ * // ],
80
+ * // UnsuccessfulFaceAssociations: [ // UnsuccessfulFaceAssociationList
81
+ * // { // UnsuccessfulFaceAssociation
82
+ * // FaceId: "STRING_VALUE",
83
+ * // UserId: "STRING_VALUE",
84
+ * // Confidence: Number("float"),
85
+ * // Reasons: [ // UnsuccessfulFaceAssociationReasons
86
+ * // "FACE_NOT_FOUND" || "ASSOCIATED_TO_A_DIFFERENT_USER" || "LOW_MATCH_CONFIDENCE",
87
+ * // ],
88
+ * // },
89
+ * // ],
90
+ * // UserStatus: "ACTIVE" || "UPDATING" || "CREATING" || "CREATED",
91
+ * // };
92
+ *
93
+ * ```
94
+ *
95
+ * @param AssociateFacesCommandInput - {@link AssociateFacesCommandInput}
96
+ * @returns {@link AssociateFacesCommandOutput}
97
+ * @see {@link AssociateFacesCommandInput} for command's `input` shape.
98
+ * @see {@link AssociateFacesCommandOutput} for command's `response` shape.
99
+ * @see {@link RekognitionClientResolvedConfig | config} for RekognitionClient's `config` shape.
100
+ *
101
+ * @throws {@link AccessDeniedException} (client fault)
102
+ * <p>You are not authorized to perform the action.</p>
103
+ *
104
+ * @throws {@link ConflictException} (client fault)
105
+ * <p>
106
+ * A User with the same Id already exists within the collection, or the update or deletion of the User caused an inconsistent state. **
107
+ * </p>
108
+ *
109
+ * @throws {@link IdempotentParameterMismatchException} (client fault)
110
+ * <p>A <code>ClientRequestToken</code> input parameter was reused with an operation, but at least one of the other input
111
+ * parameters is different from the previous call to the operation.</p>
112
+ *
113
+ * @throws {@link InternalServerError} (server fault)
114
+ * <p>Amazon Rekognition experienced a service issue. Try your call again.</p>
115
+ *
116
+ * @throws {@link InvalidParameterException} (client fault)
117
+ * <p>Input parameter violated a constraint. Validate your parameter before calling the API
118
+ * operation again.</p>
119
+ *
120
+ * @throws {@link ProvisionedThroughputExceededException} (client fault)
121
+ * <p>The number of requests exceeded your throughput limit. If you want to increase this
122
+ * limit, contact Amazon Rekognition.</p>
123
+ *
124
+ * @throws {@link ResourceNotFoundException} (client fault)
125
+ * <p>The resource specified in the request cannot be found.</p>
126
+ *
127
+ * @throws {@link ServiceQuotaExceededException} (client fault)
128
+ * <p></p>
129
+ * <p>The size of the collection exceeds the allowed limit. For more information,
130
+ * see Guidelines and quotas in Amazon Rekognition in the Amazon Rekognition Developer Guide. </p>
131
+ *
132
+ * @throws {@link ThrottlingException} (server fault)
133
+ * <p>Amazon Rekognition is temporarily unable to process the request. Try your call again.</p>
134
+ *
135
+ * @throws {@link RekognitionServiceException}
136
+ * <p>Base exception class for all service exceptions from Rekognition service.</p>
137
+ *
138
+ */
139
+ export declare class AssociateFacesCommand extends $Command<AssociateFacesCommandInput, AssociateFacesCommandOutput, RekognitionClientResolvedConfig> {
140
+ readonly input: AssociateFacesCommandInput;
141
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
142
+ /**
143
+ * @public
144
+ */
145
+ constructor(input: AssociateFacesCommandInput);
146
+ /**
147
+ * @internal
148
+ */
149
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AssociateFacesCommandInput, AssociateFacesCommandOutput>;
150
+ /**
151
+ * @internal
152
+ */
153
+ private serialize;
154
+ /**
155
+ * @internal
156
+ */
157
+ private deserialize;
158
+ }
@@ -0,0 +1,114 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { CreateUserRequest, CreateUserResponse } from "../models/models_0";
5
+ import { RekognitionClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RekognitionClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateUserCommand}.
14
+ */
15
+ export interface CreateUserCommandInput extends CreateUserRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateUserCommand}.
21
+ */
22
+ export interface CreateUserCommandOutput extends CreateUserResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Creates a new User within a collection specified by <code>CollectionId</code>. Takes
27
+ * <code>UserId</code> as a parameter, which is a user provided ID which should be unique
28
+ * within the collection. The provided <code>UserId</code> will alias the system generated
29
+ * UUID to make the <code>UserId</code> more user friendly. </p>
30
+ * <p>Uses a <code>ClientToken</code>, an idempotency token that ensures a call to
31
+ * <code>CreateUser</code> completes only once. If the value is not supplied, the AWS SDK
32
+ * generates an idempotency token for the requests. This prevents retries after a network
33
+ * error results from making multiple <code>CreateUser</code> calls. </p>
34
+ * @example
35
+ * Use a bare-bones client and the command you need to make an API call.
36
+ * ```javascript
37
+ * import { RekognitionClient, CreateUserCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
38
+ * // const { RekognitionClient, CreateUserCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
39
+ * const client = new RekognitionClient(config);
40
+ * const input = { // CreateUserRequest
41
+ * CollectionId: "STRING_VALUE", // required
42
+ * UserId: "STRING_VALUE", // required
43
+ * ClientRequestToken: "STRING_VALUE",
44
+ * };
45
+ * const command = new CreateUserCommand(input);
46
+ * const response = await client.send(command);
47
+ * // {};
48
+ *
49
+ * ```
50
+ *
51
+ * @param CreateUserCommandInput - {@link CreateUserCommandInput}
52
+ * @returns {@link CreateUserCommandOutput}
53
+ * @see {@link CreateUserCommandInput} for command's `input` shape.
54
+ * @see {@link CreateUserCommandOutput} for command's `response` shape.
55
+ * @see {@link RekognitionClientResolvedConfig | config} for RekognitionClient's `config` shape.
56
+ *
57
+ * @throws {@link AccessDeniedException} (client fault)
58
+ * <p>You are not authorized to perform the action.</p>
59
+ *
60
+ * @throws {@link ConflictException} (client fault)
61
+ * <p>
62
+ * A User with the same Id already exists within the collection, or the update or deletion of the User caused an inconsistent state. **
63
+ * </p>
64
+ *
65
+ * @throws {@link IdempotentParameterMismatchException} (client fault)
66
+ * <p>A <code>ClientRequestToken</code> input parameter was reused with an operation, but at least one of the other input
67
+ * parameters is different from the previous call to the operation.</p>
68
+ *
69
+ * @throws {@link InternalServerError} (server fault)
70
+ * <p>Amazon Rekognition experienced a service issue. Try your call again.</p>
71
+ *
72
+ * @throws {@link InvalidParameterException} (client fault)
73
+ * <p>Input parameter violated a constraint. Validate your parameter before calling the API
74
+ * operation again.</p>
75
+ *
76
+ * @throws {@link ProvisionedThroughputExceededException} (client fault)
77
+ * <p>The number of requests exceeded your throughput limit. If you want to increase this
78
+ * limit, contact Amazon Rekognition.</p>
79
+ *
80
+ * @throws {@link ResourceNotFoundException} (client fault)
81
+ * <p>The resource specified in the request cannot be found.</p>
82
+ *
83
+ * @throws {@link ServiceQuotaExceededException} (client fault)
84
+ * <p></p>
85
+ * <p>The size of the collection exceeds the allowed limit. For more information,
86
+ * see Guidelines and quotas in Amazon Rekognition in the Amazon Rekognition Developer Guide. </p>
87
+ *
88
+ * @throws {@link ThrottlingException} (server fault)
89
+ * <p>Amazon Rekognition is temporarily unable to process the request. Try your call again.</p>
90
+ *
91
+ * @throws {@link RekognitionServiceException}
92
+ * <p>Base exception class for all service exceptions from Rekognition service.</p>
93
+ *
94
+ */
95
+ export declare class CreateUserCommand extends $Command<CreateUserCommandInput, CreateUserCommandOutput, RekognitionClientResolvedConfig> {
96
+ readonly input: CreateUserCommandInput;
97
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
98
+ /**
99
+ * @public
100
+ */
101
+ constructor(input: CreateUserCommandInput);
102
+ /**
103
+ * @internal
104
+ */
105
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateUserCommandInput, CreateUserCommandOutput>;
106
+ /**
107
+ * @internal
108
+ */
109
+ private serialize;
110
+ /**
111
+ * @internal
112
+ */
113
+ private deserialize;
114
+ }
@@ -45,6 +45,15 @@ export interface DeleteFacesCommandOutput extends DeleteFacesResponse, __Metadat
45
45
  * // DeletedFaces: [ // FaceIdList
46
46
  * // "STRING_VALUE",
47
47
  * // ],
48
+ * // UnsuccessfulFaceDeletions: [ // UnsuccessfulFaceDeletionsList
49
+ * // { // UnsuccessfulFaceDeletion
50
+ * // FaceId: "STRING_VALUE",
51
+ * // UserId: "STRING_VALUE",
52
+ * // Reasons: [ // UnsuccessfulFaceDeletionReasons
53
+ * // "ASSOCIATED_TO_AN_EXISTING_USER" || "FACE_NOT_FOUND",
54
+ * // ],
55
+ * // },
56
+ * // ],
48
57
  * // };
49
58
  *
50
59
  * ```