@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
|
@@ -0,0 +1,106 @@
|
|
|
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 { DeleteUserRequest, DeleteUserResponse } 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 DeleteUserCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DeleteUserCommandInput extends DeleteUserRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DeleteUserCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DeleteUserCommandOutput extends DeleteUserResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Deletes the specified UserID within the collection. Faces that are associated with the
|
|
27
|
+
* UserID are disassociated from the UserID before deleting the specified UserID. If the
|
|
28
|
+
* specified <code>Collection</code> or <code>UserID</code> is already deleted or not found, a
|
|
29
|
+
* <code>ResourceNotFoundException</code> will be thrown. If the action is successful with a
|
|
30
|
+
* 200 response, an empty HTTP body is returned. </p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { RekognitionClient, DeleteUserCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
|
|
35
|
+
* // const { RekognitionClient, DeleteUserCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
|
|
36
|
+
* const client = new RekognitionClient(config);
|
|
37
|
+
* const input = { // DeleteUserRequest
|
|
38
|
+
* CollectionId: "STRING_VALUE", // required
|
|
39
|
+
* UserId: "STRING_VALUE", // required
|
|
40
|
+
* ClientRequestToken: "STRING_VALUE",
|
|
41
|
+
* };
|
|
42
|
+
* const command = new DeleteUserCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // {};
|
|
45
|
+
*
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* @param DeleteUserCommandInput - {@link DeleteUserCommandInput}
|
|
49
|
+
* @returns {@link DeleteUserCommandOutput}
|
|
50
|
+
* @see {@link DeleteUserCommandInput} for command's `input` shape.
|
|
51
|
+
* @see {@link DeleteUserCommandOutput} for command's `response` shape.
|
|
52
|
+
* @see {@link RekognitionClientResolvedConfig | config} for RekognitionClient's `config` shape.
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
55
|
+
* <p>You are not authorized to perform the action.</p>
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link ConflictException} (client fault)
|
|
58
|
+
* <p>
|
|
59
|
+
* A User with the same Id already exists within the collection, or the update or deletion of the User caused an inconsistent state. **
|
|
60
|
+
* </p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link IdempotentParameterMismatchException} (client fault)
|
|
63
|
+
* <p>A <code>ClientRequestToken</code> input parameter was reused with an operation, but at least one of the other input
|
|
64
|
+
* parameters is different from the previous call to the operation.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link InternalServerError} (server fault)
|
|
67
|
+
* <p>Amazon Rekognition experienced a service issue. Try your call again.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
70
|
+
* <p>Input parameter violated a constraint. Validate your parameter before calling the API
|
|
71
|
+
* operation again.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link ProvisionedThroughputExceededException} (client fault)
|
|
74
|
+
* <p>The number of requests exceeded your throughput limit. If you want to increase this
|
|
75
|
+
* limit, contact Amazon Rekognition.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
78
|
+
* <p>The resource specified in the request cannot be found.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link ThrottlingException} (server fault)
|
|
81
|
+
* <p>Amazon Rekognition is temporarily unable to process the request. Try your call again.</p>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link RekognitionServiceException}
|
|
84
|
+
* <p>Base exception class for all service exceptions from Rekognition service.</p>
|
|
85
|
+
*
|
|
86
|
+
*/
|
|
87
|
+
export declare class DeleteUserCommand extends $Command<DeleteUserCommandInput, DeleteUserCommandOutput, RekognitionClientResolvedConfig> {
|
|
88
|
+
readonly input: DeleteUserCommandInput;
|
|
89
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
90
|
+
/**
|
|
91
|
+
* @public
|
|
92
|
+
*/
|
|
93
|
+
constructor(input: DeleteUserCommandInput);
|
|
94
|
+
/**
|
|
95
|
+
* @internal
|
|
96
|
+
*/
|
|
97
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteUserCommandInput, DeleteUserCommandOutput>;
|
|
98
|
+
/**
|
|
99
|
+
* @internal
|
|
100
|
+
*/
|
|
101
|
+
private serialize;
|
|
102
|
+
/**
|
|
103
|
+
* @internal
|
|
104
|
+
*/
|
|
105
|
+
private deserialize;
|
|
106
|
+
}
|
|
@@ -44,6 +44,7 @@ export interface DescribeCollectionCommandOutput extends DescribeCollectionRespo
|
|
|
44
44
|
* // FaceModelVersion: "STRING_VALUE",
|
|
45
45
|
* // CollectionARN: "STRING_VALUE",
|
|
46
46
|
* // CreationTimestamp: new Date("TIMESTAMP"),
|
|
47
|
+
* // UserCount: Number("long"),
|
|
47
48
|
* // };
|
|
48
49
|
*
|
|
49
50
|
* ```
|
|
@@ -0,0 +1,128 @@
|
|
|
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 { DisassociateFacesRequest, DisassociateFacesResponse } 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 DisassociateFacesCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DisassociateFacesCommandInput extends DisassociateFacesRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DisassociateFacesCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DisassociateFacesCommandOutput extends DisassociateFacesResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Removes the association between a <code>Face</code> supplied in an array of
|
|
27
|
+
* <code>FaceIds</code> and the User. If the User is not present already, then a
|
|
28
|
+
* <code>ResourceNotFound</code> exception is thrown. If successful, an array of faces that are
|
|
29
|
+
* disassociated from the User is returned. If a given face is already disassociated from the
|
|
30
|
+
* given UserID, it will be ignored and not be returned in the response. If a given face is
|
|
31
|
+
* already associated with a different User or not found in the collection it will be returned as
|
|
32
|
+
* part of <code>UnsuccessfulDisassociations</code>. You can remove 1 - 100 face IDs from a user
|
|
33
|
+
* at one time.</p>
|
|
34
|
+
* @example
|
|
35
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
36
|
+
* ```javascript
|
|
37
|
+
* import { RekognitionClient, DisassociateFacesCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
|
|
38
|
+
* // const { RekognitionClient, DisassociateFacesCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
|
|
39
|
+
* const client = new RekognitionClient(config);
|
|
40
|
+
* const input = { // DisassociateFacesRequest
|
|
41
|
+
* CollectionId: "STRING_VALUE", // required
|
|
42
|
+
* UserId: "STRING_VALUE", // required
|
|
43
|
+
* ClientRequestToken: "STRING_VALUE",
|
|
44
|
+
* FaceIds: [ // UserFaceIdList // required
|
|
45
|
+
* "STRING_VALUE",
|
|
46
|
+
* ],
|
|
47
|
+
* };
|
|
48
|
+
* const command = new DisassociateFacesCommand(input);
|
|
49
|
+
* const response = await client.send(command);
|
|
50
|
+
* // { // DisassociateFacesResponse
|
|
51
|
+
* // DisassociatedFaces: [ // DisassociatedFacesList
|
|
52
|
+
* // { // DisassociatedFace
|
|
53
|
+
* // FaceId: "STRING_VALUE",
|
|
54
|
+
* // },
|
|
55
|
+
* // ],
|
|
56
|
+
* // UnsuccessfulFaceDisassociations: [ // UnsuccessfulFaceDisassociationList
|
|
57
|
+
* // { // UnsuccessfulFaceDisassociation
|
|
58
|
+
* // FaceId: "STRING_VALUE",
|
|
59
|
+
* // UserId: "STRING_VALUE",
|
|
60
|
+
* // Reasons: [ // UnsuccessfulFaceDisassociationReasons
|
|
61
|
+
* // "FACE_NOT_FOUND" || "ASSOCIATED_TO_A_DIFFERENT_USER",
|
|
62
|
+
* // ],
|
|
63
|
+
* // },
|
|
64
|
+
* // ],
|
|
65
|
+
* // UserStatus: "ACTIVE" || "UPDATING" || "CREATING" || "CREATED",
|
|
66
|
+
* // };
|
|
67
|
+
*
|
|
68
|
+
* ```
|
|
69
|
+
*
|
|
70
|
+
* @param DisassociateFacesCommandInput - {@link DisassociateFacesCommandInput}
|
|
71
|
+
* @returns {@link DisassociateFacesCommandOutput}
|
|
72
|
+
* @see {@link DisassociateFacesCommandInput} for command's `input` shape.
|
|
73
|
+
* @see {@link DisassociateFacesCommandOutput} for command's `response` shape.
|
|
74
|
+
* @see {@link RekognitionClientResolvedConfig | config} for RekognitionClient's `config` shape.
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
77
|
+
* <p>You are not authorized to perform the action.</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link ConflictException} (client fault)
|
|
80
|
+
* <p>
|
|
81
|
+
* A User with the same Id already exists within the collection, or the update or deletion of the User caused an inconsistent state. **
|
|
82
|
+
* </p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link IdempotentParameterMismatchException} (client fault)
|
|
85
|
+
* <p>A <code>ClientRequestToken</code> input parameter was reused with an operation, but at least one of the other input
|
|
86
|
+
* parameters is different from the previous call to the operation.</p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link InternalServerError} (server fault)
|
|
89
|
+
* <p>Amazon Rekognition experienced a service issue. Try your call again.</p>
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
92
|
+
* <p>Input parameter violated a constraint. Validate your parameter before calling the API
|
|
93
|
+
* operation again.</p>
|
|
94
|
+
*
|
|
95
|
+
* @throws {@link ProvisionedThroughputExceededException} (client fault)
|
|
96
|
+
* <p>The number of requests exceeded your throughput limit. If you want to increase this
|
|
97
|
+
* limit, contact Amazon Rekognition.</p>
|
|
98
|
+
*
|
|
99
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
100
|
+
* <p>The resource specified in the request cannot be found.</p>
|
|
101
|
+
*
|
|
102
|
+
* @throws {@link ThrottlingException} (server fault)
|
|
103
|
+
* <p>Amazon Rekognition is temporarily unable to process the request. Try your call again.</p>
|
|
104
|
+
*
|
|
105
|
+
* @throws {@link RekognitionServiceException}
|
|
106
|
+
* <p>Base exception class for all service exceptions from Rekognition service.</p>
|
|
107
|
+
*
|
|
108
|
+
*/
|
|
109
|
+
export declare class DisassociateFacesCommand extends $Command<DisassociateFacesCommandInput, DisassociateFacesCommandOutput, RekognitionClientResolvedConfig> {
|
|
110
|
+
readonly input: DisassociateFacesCommandInput;
|
|
111
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
112
|
+
/**
|
|
113
|
+
* @public
|
|
114
|
+
*/
|
|
115
|
+
constructor(input: DisassociateFacesCommandInput);
|
|
116
|
+
/**
|
|
117
|
+
* @internal
|
|
118
|
+
*/
|
|
119
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DisassociateFacesCommandInput, DisassociateFacesCommandOutput>;
|
|
120
|
+
/**
|
|
121
|
+
* @internal
|
|
122
|
+
*/
|
|
123
|
+
private serialize;
|
|
124
|
+
/**
|
|
125
|
+
* @internal
|
|
126
|
+
*/
|
|
127
|
+
private deserialize;
|
|
128
|
+
}
|
|
@@ -177,6 +177,7 @@ export interface GetFaceSearchCommandOutput extends GetFaceSearchResponse, __Met
|
|
|
177
177
|
* // ExternalImageId: "STRING_VALUE",
|
|
178
178
|
* // Confidence: Number("float"),
|
|
179
179
|
* // IndexFacesModelVersion: "STRING_VALUE",
|
|
180
|
+
* // UserId: "STRING_VALUE",
|
|
180
181
|
* // },
|
|
181
182
|
* // },
|
|
182
183
|
* // ],
|
|
@@ -156,6 +156,7 @@ export interface IndexFacesCommandOutput extends IndexFacesResponse, __MetadataB
|
|
|
156
156
|
* // ExternalImageId: "STRING_VALUE",
|
|
157
157
|
* // Confidence: Number("float"),
|
|
158
158
|
* // IndexFacesModelVersion: "STRING_VALUE",
|
|
159
|
+
* // UserId: "STRING_VALUE",
|
|
159
160
|
* // },
|
|
160
161
|
* // FaceDetail: { // FaceDetail
|
|
161
162
|
* // BoundingBox: {
|
|
@@ -39,6 +39,10 @@ export interface ListFacesCommandOutput extends ListFacesResponse, __MetadataBea
|
|
|
39
39
|
* CollectionId: "STRING_VALUE", // required
|
|
40
40
|
* NextToken: "STRING_VALUE",
|
|
41
41
|
* MaxResults: Number("int"),
|
|
42
|
+
* UserId: "STRING_VALUE",
|
|
43
|
+
* FaceIds: [ // FaceIdList
|
|
44
|
+
* "STRING_VALUE",
|
|
45
|
+
* ],
|
|
42
46
|
* };
|
|
43
47
|
* const command = new ListFacesCommand(input);
|
|
44
48
|
* const response = await client.send(command);
|
|
@@ -56,6 +60,7 @@ export interface ListFacesCommandOutput extends ListFacesResponse, __MetadataBea
|
|
|
56
60
|
* // ExternalImageId: "STRING_VALUE",
|
|
57
61
|
* // Confidence: Number("float"),
|
|
58
62
|
* // IndexFacesModelVersion: "STRING_VALUE",
|
|
63
|
+
* // UserId: "STRING_VALUE",
|
|
59
64
|
* // },
|
|
60
65
|
* // ],
|
|
61
66
|
* // NextToken: "STRING_VALUE",
|
|
@@ -0,0 +1,108 @@
|
|
|
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 { ListUsersRequest, ListUsersResponse } 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 ListUsersCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListUsersCommandInput extends ListUsersRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListUsersCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListUsersCommandOutput extends ListUsersResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Returns metadata of the User such as <code>UserID</code> in the specified collection.
|
|
27
|
+
* Anonymous User (to reserve faces without any identity) is not returned as part of this
|
|
28
|
+
* request. The results are sorted by system generated primary key ID. If the response is
|
|
29
|
+
* truncated, <code>NextToken</code> is returned in the response that can be used in the
|
|
30
|
+
* subsequent request to retrieve the next set of identities.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { RekognitionClient, ListUsersCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
|
|
35
|
+
* // const { RekognitionClient, ListUsersCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
|
|
36
|
+
* const client = new RekognitionClient(config);
|
|
37
|
+
* const input = { // ListUsersRequest
|
|
38
|
+
* CollectionId: "STRING_VALUE", // required
|
|
39
|
+
* MaxResults: Number("int"),
|
|
40
|
+
* NextToken: "STRING_VALUE",
|
|
41
|
+
* };
|
|
42
|
+
* const command = new ListUsersCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // ListUsersResponse
|
|
45
|
+
* // Users: [ // UserList
|
|
46
|
+
* // { // User
|
|
47
|
+
* // UserId: "STRING_VALUE",
|
|
48
|
+
* // UserStatus: "ACTIVE" || "UPDATING" || "CREATING" || "CREATED",
|
|
49
|
+
* // },
|
|
50
|
+
* // ],
|
|
51
|
+
* // NextToken: "STRING_VALUE",
|
|
52
|
+
* // };
|
|
53
|
+
*
|
|
54
|
+
* ```
|
|
55
|
+
*
|
|
56
|
+
* @param ListUsersCommandInput - {@link ListUsersCommandInput}
|
|
57
|
+
* @returns {@link ListUsersCommandOutput}
|
|
58
|
+
* @see {@link ListUsersCommandInput} for command's `input` shape.
|
|
59
|
+
* @see {@link ListUsersCommandOutput} for command's `response` shape.
|
|
60
|
+
* @see {@link RekognitionClientResolvedConfig | config} for RekognitionClient's `config` shape.
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
63
|
+
* <p>You are not authorized to perform the action.</p>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link InternalServerError} (server fault)
|
|
66
|
+
* <p>Amazon Rekognition experienced a service issue. Try your call again.</p>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link InvalidPaginationTokenException} (client fault)
|
|
69
|
+
* <p>Pagination token in the request is not valid.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
72
|
+
* <p>Input parameter violated a constraint. Validate your parameter before calling the API
|
|
73
|
+
* operation again.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ProvisionedThroughputExceededException} (client fault)
|
|
76
|
+
* <p>The number of requests exceeded your throughput limit. If you want to increase this
|
|
77
|
+
* limit, contact Amazon Rekognition.</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
80
|
+
* <p>The resource specified in the request cannot be found.</p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link ThrottlingException} (server fault)
|
|
83
|
+
* <p>Amazon Rekognition is temporarily unable to process the request. Try your call again.</p>
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link RekognitionServiceException}
|
|
86
|
+
* <p>Base exception class for all service exceptions from Rekognition service.</p>
|
|
87
|
+
*
|
|
88
|
+
*/
|
|
89
|
+
export declare class ListUsersCommand extends $Command<ListUsersCommandInput, ListUsersCommandOutput, RekognitionClientResolvedConfig> {
|
|
90
|
+
readonly input: ListUsersCommandInput;
|
|
91
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
92
|
+
/**
|
|
93
|
+
* @public
|
|
94
|
+
*/
|
|
95
|
+
constructor(input: ListUsersCommandInput);
|
|
96
|
+
/**
|
|
97
|
+
* @internal
|
|
98
|
+
*/
|
|
99
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListUsersCommandInput, ListUsersCommandOutput>;
|
|
100
|
+
/**
|
|
101
|
+
* @internal
|
|
102
|
+
*/
|
|
103
|
+
private serialize;
|
|
104
|
+
/**
|
|
105
|
+
* @internal
|
|
106
|
+
*/
|
|
107
|
+
private deserialize;
|
|
108
|
+
}
|
|
@@ -105,6 +105,7 @@ export interface SearchFacesByImageCommandOutput extends SearchFacesByImageRespo
|
|
|
105
105
|
* // ExternalImageId: "STRING_VALUE",
|
|
106
106
|
* // Confidence: Number("float"),
|
|
107
107
|
* // IndexFacesModelVersion: "STRING_VALUE",
|
|
108
|
+
* // UserId: "STRING_VALUE",
|
|
108
109
|
* // },
|
|
109
110
|
* // },
|
|
110
111
|
* // ],
|
|
@@ -70,6 +70,7 @@ export interface SearchFacesCommandOutput extends SearchFacesResponse, __Metadat
|
|
|
70
70
|
* // ExternalImageId: "STRING_VALUE",
|
|
71
71
|
* // Confidence: Number("float"),
|
|
72
72
|
* // IndexFacesModelVersion: "STRING_VALUE",
|
|
73
|
+
* // UserId: "STRING_VALUE",
|
|
73
74
|
* // },
|
|
74
75
|
* // },
|
|
75
76
|
* // ],
|