@aws-sdk/client-rekognition 3.350.0 → 3.352.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 +203 -0
- package/dist-types/commands/CreateUserCommand.d.ts +126 -0
- package/dist-types/commands/DeleteFacesCommand.d.ts +9 -0
- package/dist-types/commands/DeleteUserCommand.d.ts +119 -0
- package/dist-types/commands/DescribeCollectionCommand.d.ts +1 -0
- package/dist-types/commands/DisassociateFacesCommand.d.ts +164 -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 +134 -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 +366 -0
- package/dist-types/commands/SearchUsersCommand.d.ts +148 -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 +8 -6
package/dist-es/Rekognition.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { AssociateFacesCommand, } from "./commands/AssociateFacesCommand";
|
|
2
3
|
import { CompareFacesCommand, } from "./commands/CompareFacesCommand";
|
|
3
4
|
import { CopyProjectVersionCommand, } from "./commands/CopyProjectVersionCommand";
|
|
4
5
|
import { CreateCollectionCommand, } from "./commands/CreateCollectionCommand";
|
|
@@ -7,6 +8,7 @@ import { CreateFaceLivenessSessionCommand, } from "./commands/CreateFaceLiveness
|
|
|
7
8
|
import { CreateProjectCommand, } from "./commands/CreateProjectCommand";
|
|
8
9
|
import { CreateProjectVersionCommand, } from "./commands/CreateProjectVersionCommand";
|
|
9
10
|
import { CreateStreamProcessorCommand, } from "./commands/CreateStreamProcessorCommand";
|
|
11
|
+
import { CreateUserCommand } from "./commands/CreateUserCommand";
|
|
10
12
|
import { DeleteCollectionCommand, } from "./commands/DeleteCollectionCommand";
|
|
11
13
|
import { DeleteDatasetCommand, } from "./commands/DeleteDatasetCommand";
|
|
12
14
|
import { DeleteFacesCommand } from "./commands/DeleteFacesCommand";
|
|
@@ -14,6 +16,7 @@ import { DeleteProjectCommand, } from "./commands/DeleteProjectCommand";
|
|
|
14
16
|
import { DeleteProjectPolicyCommand, } from "./commands/DeleteProjectPolicyCommand";
|
|
15
17
|
import { DeleteProjectVersionCommand, } from "./commands/DeleteProjectVersionCommand";
|
|
16
18
|
import { DeleteStreamProcessorCommand, } from "./commands/DeleteStreamProcessorCommand";
|
|
19
|
+
import { DeleteUserCommand } from "./commands/DeleteUserCommand";
|
|
17
20
|
import { DescribeCollectionCommand, } from "./commands/DescribeCollectionCommand";
|
|
18
21
|
import { DescribeDatasetCommand, } from "./commands/DescribeDatasetCommand";
|
|
19
22
|
import { DescribeProjectsCommand, } from "./commands/DescribeProjectsCommand";
|
|
@@ -25,6 +28,7 @@ import { DetectLabelsCommand, } from "./commands/DetectLabelsCommand";
|
|
|
25
28
|
import { DetectModerationLabelsCommand, } from "./commands/DetectModerationLabelsCommand";
|
|
26
29
|
import { DetectProtectiveEquipmentCommand, } from "./commands/DetectProtectiveEquipmentCommand";
|
|
27
30
|
import { DetectTextCommand } from "./commands/DetectTextCommand";
|
|
31
|
+
import { DisassociateFacesCommand, } from "./commands/DisassociateFacesCommand";
|
|
28
32
|
import { DistributeDatasetEntriesCommand, } from "./commands/DistributeDatasetEntriesCommand";
|
|
29
33
|
import { GetCelebrityInfoCommand, } from "./commands/GetCelebrityInfoCommand";
|
|
30
34
|
import { GetCelebrityRecognitionCommand, } from "./commands/GetCelebrityRecognitionCommand";
|
|
@@ -44,10 +48,13 @@ import { ListFacesCommand } from "./commands/ListFacesCommand";
|
|
|
44
48
|
import { ListProjectPoliciesCommand, } from "./commands/ListProjectPoliciesCommand";
|
|
45
49
|
import { ListStreamProcessorsCommand, } from "./commands/ListStreamProcessorsCommand";
|
|
46
50
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
51
|
+
import { ListUsersCommand } from "./commands/ListUsersCommand";
|
|
47
52
|
import { PutProjectPolicyCommand, } from "./commands/PutProjectPolicyCommand";
|
|
48
53
|
import { RecognizeCelebritiesCommand, } from "./commands/RecognizeCelebritiesCommand";
|
|
49
54
|
import { SearchFacesByImageCommand, } from "./commands/SearchFacesByImageCommand";
|
|
50
55
|
import { SearchFacesCommand } from "./commands/SearchFacesCommand";
|
|
56
|
+
import { SearchUsersByImageCommand, } from "./commands/SearchUsersByImageCommand";
|
|
57
|
+
import { SearchUsersCommand } from "./commands/SearchUsersCommand";
|
|
51
58
|
import { StartCelebrityRecognitionCommand, } from "./commands/StartCelebrityRecognitionCommand";
|
|
52
59
|
import { StartContentModerationCommand, } from "./commands/StartContentModerationCommand";
|
|
53
60
|
import { StartFaceDetectionCommand, } from "./commands/StartFaceDetectionCommand";
|
|
@@ -66,6 +73,7 @@ import { UpdateDatasetEntriesCommand, } from "./commands/UpdateDatasetEntriesCom
|
|
|
66
73
|
import { UpdateStreamProcessorCommand, } from "./commands/UpdateStreamProcessorCommand";
|
|
67
74
|
import { RekognitionClient } from "./RekognitionClient";
|
|
68
75
|
const commands = {
|
|
76
|
+
AssociateFacesCommand,
|
|
69
77
|
CompareFacesCommand,
|
|
70
78
|
CopyProjectVersionCommand,
|
|
71
79
|
CreateCollectionCommand,
|
|
@@ -74,6 +82,7 @@ const commands = {
|
|
|
74
82
|
CreateProjectCommand,
|
|
75
83
|
CreateProjectVersionCommand,
|
|
76
84
|
CreateStreamProcessorCommand,
|
|
85
|
+
CreateUserCommand,
|
|
77
86
|
DeleteCollectionCommand,
|
|
78
87
|
DeleteDatasetCommand,
|
|
79
88
|
DeleteFacesCommand,
|
|
@@ -81,6 +90,7 @@ const commands = {
|
|
|
81
90
|
DeleteProjectPolicyCommand,
|
|
82
91
|
DeleteProjectVersionCommand,
|
|
83
92
|
DeleteStreamProcessorCommand,
|
|
93
|
+
DeleteUserCommand,
|
|
84
94
|
DescribeCollectionCommand,
|
|
85
95
|
DescribeDatasetCommand,
|
|
86
96
|
DescribeProjectsCommand,
|
|
@@ -92,6 +102,7 @@ const commands = {
|
|
|
92
102
|
DetectModerationLabelsCommand,
|
|
93
103
|
DetectProtectiveEquipmentCommand,
|
|
94
104
|
DetectTextCommand,
|
|
105
|
+
DisassociateFacesCommand,
|
|
95
106
|
DistributeDatasetEntriesCommand,
|
|
96
107
|
GetCelebrityInfoCommand,
|
|
97
108
|
GetCelebrityRecognitionCommand,
|
|
@@ -111,10 +122,13 @@ const commands = {
|
|
|
111
122
|
ListProjectPoliciesCommand,
|
|
112
123
|
ListStreamProcessorsCommand,
|
|
113
124
|
ListTagsForResourceCommand,
|
|
125
|
+
ListUsersCommand,
|
|
114
126
|
PutProjectPolicyCommand,
|
|
115
127
|
RecognizeCelebritiesCommand,
|
|
116
128
|
SearchFacesCommand,
|
|
117
129
|
SearchFacesByImageCommand,
|
|
130
|
+
SearchUsersCommand,
|
|
131
|
+
SearchUsersByImageCommand,
|
|
118
132
|
StartCelebrityRecognitionCommand,
|
|
119
133
|
StartContentModerationCommand,
|
|
120
134
|
StartFaceDetectionCommand,
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { de_AssociateFacesCommand, se_AssociateFacesCommand } from "../protocols/Aws_json1_1";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class AssociateFacesCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, AssociateFacesCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "RekognitionClient";
|
|
25
|
+
const commandName = "AssociateFacesCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return se_AssociateFacesCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return de_AssociateFacesCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { de_CreateUserCommand, se_CreateUserCommand } from "../protocols/Aws_json1_1";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class CreateUserCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, CreateUserCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "RekognitionClient";
|
|
25
|
+
const commandName = "CreateUserCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return se_CreateUserCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return de_CreateUserCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { de_DeleteUserCommand, se_DeleteUserCommand } from "../protocols/Aws_json1_1";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class DeleteUserCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DeleteUserCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "RekognitionClient";
|
|
25
|
+
const commandName = "DeleteUserCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return se_DeleteUserCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return de_DeleteUserCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { de_DisassociateFacesCommand, se_DisassociateFacesCommand } from "../protocols/Aws_json1_1";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class DisassociateFacesCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DisassociateFacesCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "RekognitionClient";
|
|
25
|
+
const commandName = "DisassociateFacesCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return se_DisassociateFacesCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return de_DisassociateFacesCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { de_ListUsersCommand, se_ListUsersCommand } from "../protocols/Aws_json1_1";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class ListUsersCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListUsersCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "RekognitionClient";
|
|
25
|
+
const commandName = "ListUsersCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return se_ListUsersCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return de_ListUsersCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { de_SearchUsersByImageCommand, se_SearchUsersByImageCommand } from "../protocols/Aws_json1_1";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class SearchUsersByImageCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, SearchUsersByImageCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "RekognitionClient";
|
|
25
|
+
const commandName = "SearchUsersByImageCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return se_SearchUsersByImageCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return de_SearchUsersByImageCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { de_SearchUsersCommand, se_SearchUsersCommand } from "../protocols/Aws_json1_1";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class SearchUsersCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, SearchUsersCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "RekognitionClient";
|
|
25
|
+
const commandName = "SearchUsersCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return se_SearchUsersCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return de_SearchUsersCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from "./AssociateFacesCommand";
|
|
1
2
|
export * from "./CompareFacesCommand";
|
|
2
3
|
export * from "./CopyProjectVersionCommand";
|
|
3
4
|
export * from "./CreateCollectionCommand";
|
|
@@ -6,6 +7,7 @@ export * from "./CreateFaceLivenessSessionCommand";
|
|
|
6
7
|
export * from "./CreateProjectCommand";
|
|
7
8
|
export * from "./CreateProjectVersionCommand";
|
|
8
9
|
export * from "./CreateStreamProcessorCommand";
|
|
10
|
+
export * from "./CreateUserCommand";
|
|
9
11
|
export * from "./DeleteCollectionCommand";
|
|
10
12
|
export * from "./DeleteDatasetCommand";
|
|
11
13
|
export * from "./DeleteFacesCommand";
|
|
@@ -13,6 +15,7 @@ export * from "./DeleteProjectCommand";
|
|
|
13
15
|
export * from "./DeleteProjectPolicyCommand";
|
|
14
16
|
export * from "./DeleteProjectVersionCommand";
|
|
15
17
|
export * from "./DeleteStreamProcessorCommand";
|
|
18
|
+
export * from "./DeleteUserCommand";
|
|
16
19
|
export * from "./DescribeCollectionCommand";
|
|
17
20
|
export * from "./DescribeDatasetCommand";
|
|
18
21
|
export * from "./DescribeProjectVersionsCommand";
|
|
@@ -24,6 +27,7 @@ export * from "./DetectLabelsCommand";
|
|
|
24
27
|
export * from "./DetectModerationLabelsCommand";
|
|
25
28
|
export * from "./DetectProtectiveEquipmentCommand";
|
|
26
29
|
export * from "./DetectTextCommand";
|
|
30
|
+
export * from "./DisassociateFacesCommand";
|
|
27
31
|
export * from "./DistributeDatasetEntriesCommand";
|
|
28
32
|
export * from "./GetCelebrityInfoCommand";
|
|
29
33
|
export * from "./GetCelebrityRecognitionCommand";
|
|
@@ -43,10 +47,13 @@ export * from "./ListFacesCommand";
|
|
|
43
47
|
export * from "./ListProjectPoliciesCommand";
|
|
44
48
|
export * from "./ListStreamProcessorsCommand";
|
|
45
49
|
export * from "./ListTagsForResourceCommand";
|
|
50
|
+
export * from "./ListUsersCommand";
|
|
46
51
|
export * from "./PutProjectPolicyCommand";
|
|
47
52
|
export * from "./RecognizeCelebritiesCommand";
|
|
48
53
|
export * from "./SearchFacesByImageCommand";
|
|
49
54
|
export * from "./SearchFacesCommand";
|
|
55
|
+
export * from "./SearchUsersByImageCommand";
|
|
56
|
+
export * from "./SearchUsersCommand";
|
|
50
57
|
export * from "./StartCelebrityRecognitionCommand";
|
|
51
58
|
export * from "./StartContentModerationCommand";
|
|
52
59
|
export * from "./StartFaceDetectionCommand";
|