@aws-sdk/client-rekognition 3.350.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.
- package/README.md +98 -7
- package/dist-cjs/Rekognition.js +14 -0
- package/dist-cjs/commands/AssociateFacesCommand.js +46 -0
- package/dist-cjs/commands/CreateUserCommand.js +46 -0
- package/dist-cjs/commands/DeleteUserCommand.js +46 -0
- package/dist-cjs/commands/DisassociateFacesCommand.js +46 -0
- package/dist-cjs/commands/ListUsersCommand.js +46 -0
- package/dist-cjs/commands/SearchUsersByImageCommand.js +46 -0
- package/dist-cjs/commands/SearchUsersCommand.js +46 -0
- package/dist-cjs/commands/index.js +7 -0
- package/dist-cjs/models/models_0.js +159 -130
- package/dist-cjs/models/models_1.js +18 -1
- package/dist-cjs/pagination/ListUsersPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +565 -4
- package/dist-es/Rekognition.js +14 -0
- package/dist-es/commands/AssociateFacesCommand.js +42 -0
- package/dist-es/commands/CreateUserCommand.js +42 -0
- package/dist-es/commands/DeleteUserCommand.js +42 -0
- package/dist-es/commands/DisassociateFacesCommand.js +42 -0
- package/dist-es/commands/ListUsersCommand.js +42 -0
- package/dist-es/commands/SearchUsersByImageCommand.js +42 -0
- package/dist-es/commands/SearchUsersCommand.js +42 -0
- package/dist-es/commands/index.js +7 -0
- package/dist-es/models/models_0.js +149 -120
- package/dist-es/models/models_1.js +16 -0
- package/dist-es/pagination/ListUsersPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +548 -1
- package/dist-types/Rekognition.d.ts +84 -0
- package/dist-types/RekognitionClient.d.ts +44 -2
- package/dist-types/commands/AssociateFacesCommand.d.ts +158 -0
- package/dist-types/commands/CreateUserCommand.d.ts +114 -0
- package/dist-types/commands/DeleteFacesCommand.d.ts +9 -0
- package/dist-types/commands/DeleteUserCommand.d.ts +106 -0
- package/dist-types/commands/DescribeCollectionCommand.d.ts +1 -0
- package/dist-types/commands/DisassociateFacesCommand.d.ts +128 -0
- package/dist-types/commands/GetFaceSearchCommand.d.ts +1 -0
- package/dist-types/commands/IndexFacesCommand.d.ts +1 -0
- package/dist-types/commands/ListFacesCommand.d.ts +5 -0
- package/dist-types/commands/ListUsersCommand.d.ts +108 -0
- package/dist-types/commands/SearchFacesByImageCommand.d.ts +1 -0
- package/dist-types/commands/SearchFacesCommand.d.ts +1 -0
- package/dist-types/commands/SearchUsersByImageCommand.d.ts +294 -0
- package/dist-types/commands/SearchUsersCommand.d.ts +117 -0
- package/dist-types/commands/StartCelebrityRecognitionCommand.d.ts +2 -1
- package/dist-types/commands/StartContentModerationCommand.d.ts +1 -1
- package/dist-types/commands/StartFaceDetectionCommand.d.ts +1 -1
- package/dist-types/commands/StartFaceSearchCommand.d.ts +1 -1
- package/dist-types/commands/StartLabelDetectionCommand.d.ts +1 -1
- package/dist-types/commands/StartPersonTrackingCommand.d.ts +1 -1
- package/dist-types/commands/StartProjectVersionCommand.d.ts +1 -1
- package/dist-types/commands/StartSegmentDetectionCommand.d.ts +1 -1
- package/dist-types/commands/StartStreamProcessorCommand.d.ts +1 -1
- package/dist-types/commands/StartTextDetectionCommand.d.ts +1 -1
- package/dist-types/commands/StopProjectVersionCommand.d.ts +1 -1
- package/dist-types/commands/StopStreamProcessorCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +7 -0
- package/dist-types/index.d.ts +35 -0
- package/dist-types/models/models_0.d.ts +668 -604
- package/dist-types/models/models_1.d.ts +562 -1
- package/dist-types/pagination/ListUsersPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +63 -0
- package/dist-types/ts3.4/Rekognition.d.ts +119 -0
- package/dist-types/ts3.4/RekognitionClient.d.ts +42 -0
- package/dist-types/ts3.4/commands/AssociateFacesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateUserCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DeleteUserCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DisassociateFacesCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListUsersCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/SearchUsersByImageCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/SearchUsersCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/StartCelebrityRecognitionCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/StartContentModerationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartFaceDetectionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartFaceSearchCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartLabelDetectionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartPersonTrackingCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartProjectVersionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartSegmentDetectionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartStreamProcessorCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartTextDetectionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StopProjectVersionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StopStreamProcessorCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +7 -0
- package/dist-types/ts3.4/models/models_0.d.ts +236 -206
- package/dist-types/ts3.4/models/models_1.d.ts +150 -0
- package/dist-types/ts3.4/pagination/ListUsersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +84 -0
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -16,6 +16,11 @@ parameters, and common errors.</p>
|
|
|
16
16
|
<ul>
|
|
17
17
|
<li>
|
|
18
18
|
<p>
|
|
19
|
+
<a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_AssociateFaces.html">AssociateFaces</a>
|
|
20
|
+
</p>
|
|
21
|
+
</li>
|
|
22
|
+
<li>
|
|
23
|
+
<p>
|
|
19
24
|
<a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_CompareFaces.html">CompareFaces</a>
|
|
20
25
|
</p>
|
|
21
26
|
</li>
|
|
@@ -26,6 +31,11 @@ parameters, and common errors.</p>
|
|
|
26
31
|
</li>
|
|
27
32
|
<li>
|
|
28
33
|
<p>
|
|
34
|
+
<a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_CreateUser.html">CreateUser</a>
|
|
35
|
+
</p>
|
|
36
|
+
</li>
|
|
37
|
+
<li>
|
|
38
|
+
<p>
|
|
29
39
|
<a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DeleteCollection.html">DeleteCollection</a>
|
|
30
40
|
</p>
|
|
31
41
|
</li>
|
|
@@ -36,6 +46,11 @@ parameters, and common errors.</p>
|
|
|
36
46
|
</li>
|
|
37
47
|
<li>
|
|
38
48
|
<p>
|
|
49
|
+
<a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DeleteUser.html">DeleteUser</a>
|
|
50
|
+
</p>
|
|
51
|
+
</li>
|
|
52
|
+
<li>
|
|
53
|
+
<p>
|
|
39
54
|
<a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DescribeCollection.html">DescribeCollection</a>
|
|
40
55
|
</p>
|
|
41
56
|
</li>
|
|
@@ -66,6 +81,11 @@ parameters, and common errors.</p>
|
|
|
66
81
|
</li>
|
|
67
82
|
<li>
|
|
68
83
|
<p>
|
|
84
|
+
<a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DisassociateFaces.html">DisassociateFaces</a>
|
|
85
|
+
</p>
|
|
86
|
+
</li>
|
|
87
|
+
<li>
|
|
88
|
+
<p>
|
|
69
89
|
<a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_GetCelebrityInfo.html">GetCelebrityInfo</a>
|
|
70
90
|
</p>
|
|
71
91
|
</li>
|
|
@@ -86,6 +106,11 @@ parameters, and common errors.</p>
|
|
|
86
106
|
</li>
|
|
87
107
|
<li>
|
|
88
108
|
<p>
|
|
109
|
+
<a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_ListFaces.html">ListUsers</a>
|
|
110
|
+
</p>
|
|
111
|
+
</li>
|
|
112
|
+
<li>
|
|
113
|
+
<p>
|
|
89
114
|
<a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_RecognizeCelebrities.html">RecognizeCelebrities</a>
|
|
90
115
|
</p>
|
|
91
116
|
</li>
|
|
@@ -99,6 +124,16 @@ parameters, and common errors.</p>
|
|
|
99
124
|
<a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_SearchFacesByImage.html">SearchFacesByImage</a>
|
|
100
125
|
</p>
|
|
101
126
|
</li>
|
|
127
|
+
<li>
|
|
128
|
+
<p>
|
|
129
|
+
<a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_SearchUsers.html">SearchUsers</a>
|
|
130
|
+
</p>
|
|
131
|
+
</li>
|
|
132
|
+
<li>
|
|
133
|
+
<p>
|
|
134
|
+
<a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_SearchUsersByImage.html">SearchUsersByImage</a>
|
|
135
|
+
</p>
|
|
136
|
+
</li>
|
|
102
137
|
</ul>
|
|
103
138
|
<p>
|
|
104
139
|
<b>Amazon Rekognition Custom Labels</b>
|
|
@@ -346,16 +381,16 @@ using your favorite package manager:
|
|
|
346
381
|
|
|
347
382
|
The AWS SDK is modulized by clients and commands.
|
|
348
383
|
To send a request, you only need to import the `RekognitionClient` and
|
|
349
|
-
the commands you need, for example `
|
|
384
|
+
the commands you need, for example `AssociateFacesCommand`:
|
|
350
385
|
|
|
351
386
|
```js
|
|
352
387
|
// ES5 example
|
|
353
|
-
const { RekognitionClient,
|
|
388
|
+
const { RekognitionClient, AssociateFacesCommand } = require("@aws-sdk/client-rekognition");
|
|
354
389
|
```
|
|
355
390
|
|
|
356
391
|
```ts
|
|
357
392
|
// ES6+ example
|
|
358
|
-
import { RekognitionClient,
|
|
393
|
+
import { RekognitionClient, AssociateFacesCommand } from "@aws-sdk/client-rekognition";
|
|
359
394
|
```
|
|
360
395
|
|
|
361
396
|
### Usage
|
|
@@ -374,7 +409,7 @@ const client = new RekognitionClient({ region: "REGION" });
|
|
|
374
409
|
const params = {
|
|
375
410
|
/** input parameters */
|
|
376
411
|
};
|
|
377
|
-
const command = new
|
|
412
|
+
const command = new AssociateFacesCommand(params);
|
|
378
413
|
```
|
|
379
414
|
|
|
380
415
|
#### Async/await
|
|
@@ -453,7 +488,7 @@ const client = new AWS.Rekognition({ region: "REGION" });
|
|
|
453
488
|
|
|
454
489
|
// async/await.
|
|
455
490
|
try {
|
|
456
|
-
const data = await client.
|
|
491
|
+
const data = await client.associateFaces(params);
|
|
457
492
|
// process data.
|
|
458
493
|
} catch (error) {
|
|
459
494
|
// error handling.
|
|
@@ -461,7 +496,7 @@ try {
|
|
|
461
496
|
|
|
462
497
|
// Promises.
|
|
463
498
|
client
|
|
464
|
-
.
|
|
499
|
+
.associateFaces(params)
|
|
465
500
|
.then((data) => {
|
|
466
501
|
// process data.
|
|
467
502
|
})
|
|
@@ -470,7 +505,7 @@ client
|
|
|
470
505
|
});
|
|
471
506
|
|
|
472
507
|
// callbacks.
|
|
473
|
-
client.
|
|
508
|
+
client.associateFaces(params, (err, data) => {
|
|
474
509
|
// process err and data.
|
|
475
510
|
});
|
|
476
511
|
```
|
|
@@ -526,6 +561,14 @@ see LICENSE for more information.
|
|
|
526
561
|
|
|
527
562
|
## Client Commands (Operations List)
|
|
528
563
|
|
|
564
|
+
<details>
|
|
565
|
+
<summary>
|
|
566
|
+
AssociateFaces
|
|
567
|
+
</summary>
|
|
568
|
+
|
|
569
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/classes/associatefacescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/associatefacescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/associatefacescommandoutput.html)
|
|
570
|
+
|
|
571
|
+
</details>
|
|
529
572
|
<details>
|
|
530
573
|
<summary>
|
|
531
574
|
CompareFaces
|
|
@@ -589,6 +632,14 @@ CreateStreamProcessor
|
|
|
589
632
|
|
|
590
633
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/classes/createstreamprocessorcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/createstreamprocessorcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/createstreamprocessorcommandoutput.html)
|
|
591
634
|
|
|
635
|
+
</details>
|
|
636
|
+
<details>
|
|
637
|
+
<summary>
|
|
638
|
+
CreateUser
|
|
639
|
+
</summary>
|
|
640
|
+
|
|
641
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/classes/createusercommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/createusercommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/createusercommandoutput.html)
|
|
642
|
+
|
|
592
643
|
</details>
|
|
593
644
|
<details>
|
|
594
645
|
<summary>
|
|
@@ -645,6 +696,14 @@ DeleteStreamProcessor
|
|
|
645
696
|
|
|
646
697
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/classes/deletestreamprocessorcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/deletestreamprocessorcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/deletestreamprocessorcommandoutput.html)
|
|
647
698
|
|
|
699
|
+
</details>
|
|
700
|
+
<details>
|
|
701
|
+
<summary>
|
|
702
|
+
DeleteUser
|
|
703
|
+
</summary>
|
|
704
|
+
|
|
705
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/classes/deleteusercommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/deleteusercommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/deleteusercommandoutput.html)
|
|
706
|
+
|
|
648
707
|
</details>
|
|
649
708
|
<details>
|
|
650
709
|
<summary>
|
|
@@ -733,6 +792,14 @@ DetectText
|
|
|
733
792
|
|
|
734
793
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/classes/detecttextcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/detecttextcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/detecttextcommandoutput.html)
|
|
735
794
|
|
|
795
|
+
</details>
|
|
796
|
+
<details>
|
|
797
|
+
<summary>
|
|
798
|
+
DisassociateFaces
|
|
799
|
+
</summary>
|
|
800
|
+
|
|
801
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/classes/disassociatefacescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/disassociatefacescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/disassociatefacescommandoutput.html)
|
|
802
|
+
|
|
736
803
|
</details>
|
|
737
804
|
<details>
|
|
738
805
|
<summary>
|
|
@@ -885,6 +952,14 @@ ListTagsForResource
|
|
|
885
952
|
|
|
886
953
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/classes/listtagsforresourcecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/listtagsforresourcecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/listtagsforresourcecommandoutput.html)
|
|
887
954
|
|
|
955
|
+
</details>
|
|
956
|
+
<details>
|
|
957
|
+
<summary>
|
|
958
|
+
ListUsers
|
|
959
|
+
</summary>
|
|
960
|
+
|
|
961
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/classes/listuserscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/listuserscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/listuserscommandoutput.html)
|
|
962
|
+
|
|
888
963
|
</details>
|
|
889
964
|
<details>
|
|
890
965
|
<summary>
|
|
@@ -917,6 +992,22 @@ SearchFacesByImage
|
|
|
917
992
|
|
|
918
993
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/classes/searchfacesbyimagecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/searchfacesbyimagecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/searchfacesbyimagecommandoutput.html)
|
|
919
994
|
|
|
995
|
+
</details>
|
|
996
|
+
<details>
|
|
997
|
+
<summary>
|
|
998
|
+
SearchUsers
|
|
999
|
+
</summary>
|
|
1000
|
+
|
|
1001
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/classes/searchuserscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/searchuserscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/searchuserscommandoutput.html)
|
|
1002
|
+
|
|
1003
|
+
</details>
|
|
1004
|
+
<details>
|
|
1005
|
+
<summary>
|
|
1006
|
+
SearchUsersByImage
|
|
1007
|
+
</summary>
|
|
1008
|
+
|
|
1009
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/classes/searchusersbyimagecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/searchusersbyimagecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/searchusersbyimagecommandoutput.html)
|
|
1010
|
+
|
|
920
1011
|
</details>
|
|
921
1012
|
<details>
|
|
922
1013
|
<summary>
|
package/dist-cjs/Rekognition.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Rekognition = void 0;
|
|
4
4
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
const AssociateFacesCommand_1 = require("./commands/AssociateFacesCommand");
|
|
5
6
|
const CompareFacesCommand_1 = require("./commands/CompareFacesCommand");
|
|
6
7
|
const CopyProjectVersionCommand_1 = require("./commands/CopyProjectVersionCommand");
|
|
7
8
|
const CreateCollectionCommand_1 = require("./commands/CreateCollectionCommand");
|
|
@@ -10,6 +11,7 @@ const CreateFaceLivenessSessionCommand_1 = require("./commands/CreateFaceLivenes
|
|
|
10
11
|
const CreateProjectCommand_1 = require("./commands/CreateProjectCommand");
|
|
11
12
|
const CreateProjectVersionCommand_1 = require("./commands/CreateProjectVersionCommand");
|
|
12
13
|
const CreateStreamProcessorCommand_1 = require("./commands/CreateStreamProcessorCommand");
|
|
14
|
+
const CreateUserCommand_1 = require("./commands/CreateUserCommand");
|
|
13
15
|
const DeleteCollectionCommand_1 = require("./commands/DeleteCollectionCommand");
|
|
14
16
|
const DeleteDatasetCommand_1 = require("./commands/DeleteDatasetCommand");
|
|
15
17
|
const DeleteFacesCommand_1 = require("./commands/DeleteFacesCommand");
|
|
@@ -17,6 +19,7 @@ const DeleteProjectCommand_1 = require("./commands/DeleteProjectCommand");
|
|
|
17
19
|
const DeleteProjectPolicyCommand_1 = require("./commands/DeleteProjectPolicyCommand");
|
|
18
20
|
const DeleteProjectVersionCommand_1 = require("./commands/DeleteProjectVersionCommand");
|
|
19
21
|
const DeleteStreamProcessorCommand_1 = require("./commands/DeleteStreamProcessorCommand");
|
|
22
|
+
const DeleteUserCommand_1 = require("./commands/DeleteUserCommand");
|
|
20
23
|
const DescribeCollectionCommand_1 = require("./commands/DescribeCollectionCommand");
|
|
21
24
|
const DescribeDatasetCommand_1 = require("./commands/DescribeDatasetCommand");
|
|
22
25
|
const DescribeProjectsCommand_1 = require("./commands/DescribeProjectsCommand");
|
|
@@ -28,6 +31,7 @@ const DetectLabelsCommand_1 = require("./commands/DetectLabelsCommand");
|
|
|
28
31
|
const DetectModerationLabelsCommand_1 = require("./commands/DetectModerationLabelsCommand");
|
|
29
32
|
const DetectProtectiveEquipmentCommand_1 = require("./commands/DetectProtectiveEquipmentCommand");
|
|
30
33
|
const DetectTextCommand_1 = require("./commands/DetectTextCommand");
|
|
34
|
+
const DisassociateFacesCommand_1 = require("./commands/DisassociateFacesCommand");
|
|
31
35
|
const DistributeDatasetEntriesCommand_1 = require("./commands/DistributeDatasetEntriesCommand");
|
|
32
36
|
const GetCelebrityInfoCommand_1 = require("./commands/GetCelebrityInfoCommand");
|
|
33
37
|
const GetCelebrityRecognitionCommand_1 = require("./commands/GetCelebrityRecognitionCommand");
|
|
@@ -47,10 +51,13 @@ const ListFacesCommand_1 = require("./commands/ListFacesCommand");
|
|
|
47
51
|
const ListProjectPoliciesCommand_1 = require("./commands/ListProjectPoliciesCommand");
|
|
48
52
|
const ListStreamProcessorsCommand_1 = require("./commands/ListStreamProcessorsCommand");
|
|
49
53
|
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
54
|
+
const ListUsersCommand_1 = require("./commands/ListUsersCommand");
|
|
50
55
|
const PutProjectPolicyCommand_1 = require("./commands/PutProjectPolicyCommand");
|
|
51
56
|
const RecognizeCelebritiesCommand_1 = require("./commands/RecognizeCelebritiesCommand");
|
|
52
57
|
const SearchFacesByImageCommand_1 = require("./commands/SearchFacesByImageCommand");
|
|
53
58
|
const SearchFacesCommand_1 = require("./commands/SearchFacesCommand");
|
|
59
|
+
const SearchUsersByImageCommand_1 = require("./commands/SearchUsersByImageCommand");
|
|
60
|
+
const SearchUsersCommand_1 = require("./commands/SearchUsersCommand");
|
|
54
61
|
const StartCelebrityRecognitionCommand_1 = require("./commands/StartCelebrityRecognitionCommand");
|
|
55
62
|
const StartContentModerationCommand_1 = require("./commands/StartContentModerationCommand");
|
|
56
63
|
const StartFaceDetectionCommand_1 = require("./commands/StartFaceDetectionCommand");
|
|
@@ -69,6 +76,7 @@ const UpdateDatasetEntriesCommand_1 = require("./commands/UpdateDatasetEntriesCo
|
|
|
69
76
|
const UpdateStreamProcessorCommand_1 = require("./commands/UpdateStreamProcessorCommand");
|
|
70
77
|
const RekognitionClient_1 = require("./RekognitionClient");
|
|
71
78
|
const commands = {
|
|
79
|
+
AssociateFacesCommand: AssociateFacesCommand_1.AssociateFacesCommand,
|
|
72
80
|
CompareFacesCommand: CompareFacesCommand_1.CompareFacesCommand,
|
|
73
81
|
CopyProjectVersionCommand: CopyProjectVersionCommand_1.CopyProjectVersionCommand,
|
|
74
82
|
CreateCollectionCommand: CreateCollectionCommand_1.CreateCollectionCommand,
|
|
@@ -77,6 +85,7 @@ const commands = {
|
|
|
77
85
|
CreateProjectCommand: CreateProjectCommand_1.CreateProjectCommand,
|
|
78
86
|
CreateProjectVersionCommand: CreateProjectVersionCommand_1.CreateProjectVersionCommand,
|
|
79
87
|
CreateStreamProcessorCommand: CreateStreamProcessorCommand_1.CreateStreamProcessorCommand,
|
|
88
|
+
CreateUserCommand: CreateUserCommand_1.CreateUserCommand,
|
|
80
89
|
DeleteCollectionCommand: DeleteCollectionCommand_1.DeleteCollectionCommand,
|
|
81
90
|
DeleteDatasetCommand: DeleteDatasetCommand_1.DeleteDatasetCommand,
|
|
82
91
|
DeleteFacesCommand: DeleteFacesCommand_1.DeleteFacesCommand,
|
|
@@ -84,6 +93,7 @@ const commands = {
|
|
|
84
93
|
DeleteProjectPolicyCommand: DeleteProjectPolicyCommand_1.DeleteProjectPolicyCommand,
|
|
85
94
|
DeleteProjectVersionCommand: DeleteProjectVersionCommand_1.DeleteProjectVersionCommand,
|
|
86
95
|
DeleteStreamProcessorCommand: DeleteStreamProcessorCommand_1.DeleteStreamProcessorCommand,
|
|
96
|
+
DeleteUserCommand: DeleteUserCommand_1.DeleteUserCommand,
|
|
87
97
|
DescribeCollectionCommand: DescribeCollectionCommand_1.DescribeCollectionCommand,
|
|
88
98
|
DescribeDatasetCommand: DescribeDatasetCommand_1.DescribeDatasetCommand,
|
|
89
99
|
DescribeProjectsCommand: DescribeProjectsCommand_1.DescribeProjectsCommand,
|
|
@@ -95,6 +105,7 @@ const commands = {
|
|
|
95
105
|
DetectModerationLabelsCommand: DetectModerationLabelsCommand_1.DetectModerationLabelsCommand,
|
|
96
106
|
DetectProtectiveEquipmentCommand: DetectProtectiveEquipmentCommand_1.DetectProtectiveEquipmentCommand,
|
|
97
107
|
DetectTextCommand: DetectTextCommand_1.DetectTextCommand,
|
|
108
|
+
DisassociateFacesCommand: DisassociateFacesCommand_1.DisassociateFacesCommand,
|
|
98
109
|
DistributeDatasetEntriesCommand: DistributeDatasetEntriesCommand_1.DistributeDatasetEntriesCommand,
|
|
99
110
|
GetCelebrityInfoCommand: GetCelebrityInfoCommand_1.GetCelebrityInfoCommand,
|
|
100
111
|
GetCelebrityRecognitionCommand: GetCelebrityRecognitionCommand_1.GetCelebrityRecognitionCommand,
|
|
@@ -114,10 +125,13 @@ const commands = {
|
|
|
114
125
|
ListProjectPoliciesCommand: ListProjectPoliciesCommand_1.ListProjectPoliciesCommand,
|
|
115
126
|
ListStreamProcessorsCommand: ListStreamProcessorsCommand_1.ListStreamProcessorsCommand,
|
|
116
127
|
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
128
|
+
ListUsersCommand: ListUsersCommand_1.ListUsersCommand,
|
|
117
129
|
PutProjectPolicyCommand: PutProjectPolicyCommand_1.PutProjectPolicyCommand,
|
|
118
130
|
RecognizeCelebritiesCommand: RecognizeCelebritiesCommand_1.RecognizeCelebritiesCommand,
|
|
119
131
|
SearchFacesCommand: SearchFacesCommand_1.SearchFacesCommand,
|
|
120
132
|
SearchFacesByImageCommand: SearchFacesByImageCommand_1.SearchFacesByImageCommand,
|
|
133
|
+
SearchUsersCommand: SearchUsersCommand_1.SearchUsersCommand,
|
|
134
|
+
SearchUsersByImageCommand: SearchUsersByImageCommand_1.SearchUsersByImageCommand,
|
|
121
135
|
StartCelebrityRecognitionCommand: StartCelebrityRecognitionCommand_1.StartCelebrityRecognitionCommand,
|
|
122
136
|
StartContentModerationCommand: StartContentModerationCommand_1.StartContentModerationCommand,
|
|
123
137
|
StartFaceDetectionCommand: StartFaceDetectionCommand_1.StartFaceDetectionCommand,
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AssociateFacesCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
+
class AssociateFacesCommand extends smithy_client_1.Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, AssociateFacesCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "RekognitionClient";
|
|
28
|
+
const commandName = "AssociateFacesCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_1_1.se_AssociateFacesCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.de_AssociateFacesCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.AssociateFacesCommand = AssociateFacesCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateUserCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
+
class CreateUserCommand extends smithy_client_1.Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateUserCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "RekognitionClient";
|
|
28
|
+
const commandName = "CreateUserCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_1_1.se_CreateUserCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.de_CreateUserCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.CreateUserCommand = CreateUserCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteUserCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
+
class DeleteUserCommand extends smithy_client_1.Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteUserCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "RekognitionClient";
|
|
28
|
+
const commandName = "DeleteUserCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_1_1.se_DeleteUserCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.de_DeleteUserCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.DeleteUserCommand = DeleteUserCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DisassociateFacesCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
+
class DisassociateFacesCommand extends smithy_client_1.Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DisassociateFacesCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "RekognitionClient";
|
|
28
|
+
const commandName = "DisassociateFacesCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_1_1.se_DisassociateFacesCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.de_DisassociateFacesCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.DisassociateFacesCommand = DisassociateFacesCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListUsersCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
+
class ListUsersCommand extends smithy_client_1.Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListUsersCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "RekognitionClient";
|
|
28
|
+
const commandName = "ListUsersCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_1_1.se_ListUsersCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.de_ListUsersCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.ListUsersCommand = ListUsersCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SearchUsersByImageCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
+
class SearchUsersByImageCommand extends smithy_client_1.Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, SearchUsersByImageCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "RekognitionClient";
|
|
28
|
+
const commandName = "SearchUsersByImageCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_1_1.se_SearchUsersByImageCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.de_SearchUsersByImageCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.SearchUsersByImageCommand = SearchUsersByImageCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SearchUsersCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
+
class SearchUsersCommand extends smithy_client_1.Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, SearchUsersCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "RekognitionClient";
|
|
28
|
+
const commandName = "SearchUsersCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_1_1.se_SearchUsersCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.de_SearchUsersCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.SearchUsersCommand = SearchUsersCommand;
|