You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(client-rekognition): This release adds support for Face Liveness APIs in Amazon Rekognition. Updates UpdateStreamProcessor to return ResourceInUseException Exception. Minor updates to API documentation.
@@ -719,6 +729,7 @@ export class Rekognition extends RekognitionClient {
719
729
* <p>Copying a model version takes a while to complete. To get the current status, call <a>DescribeProjectVersions</a> and check the value of <code>Status</code> in the
720
730
* <a>ProjectVersionDescription</a> object. The copy operation has finished when
721
731
* the value of <code>Status</code> is <code>COPYING_COMPLETED</code>.</p>
732
+
* <p>This operation requires permissions to perform the <code>rekognition:CopyProjectVersion</code> action.</p>
722
733
*/
723
734
publiccopyProjectVersion(
724
735
args: CopyProjectVersionCommandInput,
@@ -847,6 +858,45 @@ export class Rekognition extends RekognitionClient {
847
858
}
848
859
}
849
860
861
+
/**
862
+
* @public
863
+
* <p>This API operation initiates a Face Liveness session. It returns a <code>SessionId</code>,
864
+
* which you can use to start streaming Face Liveness video and get the results for a Face
865
+
* Liveness session. You can use the <code>OutputConfig</code> option in the Settings parameter
866
+
* to provide an Amazon S3 bucket location. The Amazon S3 bucket stores reference images and
867
+
* audit images. You can use <code>AuditImagesLimit</code> to limit of audit images returned.
868
+
* This number is between 0 and 4. By default, it is set to 0. The limit is best effort and based
if(typeofoptionsOrCb!=="object")thrownewError(`Expect http options but get ${typeofoptionsOrCb}`);
894
+
this.send(command,optionsOrCb||{},cb);
895
+
}else{
896
+
returnthis.send(command,optionsOrCb);
897
+
}
898
+
}
899
+
850
900
/**
851
901
* @public
852
902
* <p>Creates a new Amazon Rekognition Custom Labels project. A project is a group of resources (datasets, model versions)
@@ -950,15 +1000,25 @@ export class Rekognition extends RekognitionClient {
950
1000
* <p>Amazon Rekognition Video is a consumer of live video from Amazon Kinesis Video Streams. There are two different settings for stream processors in Amazon Rekognition: detecting faces and detecting labels.</p>
951
1001
* <ul>
952
1002
* <li>
953
-
* <p>If you are creating a stream processor for detecting faces, you provide as input a Kinesis video stream (<code>Input</code>) and a Kinesis data stream (<code>Output</code>) stream. You also specify the
954
-
* face recognition criteria in <code>Settings</code>. For example, the collection containing faces that you want to recognize. After you have finished analyzing a streaming video, use <a>StopStreamProcessor</a> to
955
-
* stop processing.</p>
1003
+
* <p>If you are creating a stream processor for detecting faces, you provide as input a Kinesis video stream
1004
+
* (<code>Input</code>) and a Kinesis data stream (<code>Output</code>) stream for receiving
1005
+
* the output. You must use the <code>FaceSearch</code> option in
1006
+
* <code>Settings</code>, specifying the collection that contains the faces you
1007
+
* want to recognize. After you have finished analyzing a streaming video, use
1008
+
* <a>StopStreamProcessor</a> to stop processing.</p>
956
1009
* </li>
957
1010
* <li>
958
-
* <p>If you are creating a stream processor to detect labels, you provide as input a Kinesis video stream (<code>Input</code>), Amazon S3 bucket information (<code>Output</code>), and an
959
-
* Amazon SNS topic ARN (<code>NotificationChannel</code>). You can also provide a KMS key ID to encrypt the data sent to your Amazon S3 bucket.
960
-
* You specify what you want to detect in <code>ConnectedHomeSettings</code>, such as people, packages and people, or pets, people, and packages. You can also specify where in the frame you want Amazon Rekognition to monitor with <code>RegionsOfInterest</code>.
961
-
* When you run the <a>StartStreamProcessor</a> operation on a label detection stream processor, you input start and stop information to determine the length of the processing time.</p>
1011
+
* <p>If you are creating a stream processor to detect labels, you provide as input a Kinesis video stream
1012
+
* (<code>Input</code>), Amazon S3 bucket information (<code>Output</code>), and an
1013
+
* Amazon SNS topic ARN (<code>NotificationChannel</code>). You can also provide a KMS
1014
+
* key ID to encrypt the data sent to your Amazon S3 bucket. You specify what you want
1015
+
* to detect by using the <code>ConnectedHome</code> option in settings, and
1016
+
* selecting one of the following: <code>PERSON</code>, <code>PET</code>,
1017
+
* <code>PACKAGE</code>, <code>ALL</code> You can also specify where in the
1018
+
* frame you want Amazon Rekognition to monitor with <code>RegionsOfInterest</code>. When
1019
+
* you run the <a>StartStreamProcessor</a> operation on a label
1020
+
* detection stream processor, you input start and stop information to determine
1021
+
* the length of the processing time.</p>
962
1022
* </li>
963
1023
* </ul>
964
1024
* <p>
@@ -1151,6 +1211,7 @@ export class Rekognition extends RekognitionClient {
1151
1211
* @public
1152
1212
* <p>Deletes an existing project policy.</p>
1153
1213
* <p>To get a list of project policies attached to a project, call <a>ListProjectPolicies</a>. To attach a project policy to a project, call <a>PutProjectPolicy</a>.</p>
1214
+
* <p>This operation requires permissions to perform the <code>rekognition:DeleteProjectPolicy</code> action.</p>
1154
1215
*/
1155
1216
publicdeleteProjectPolicy(
1156
1217
args: DeleteProjectPolicyCommandInput,
@@ -1575,7 +1636,7 @@ export class Rekognition extends RekognitionClient {
1575
1636
* <b>Response Elements</b>
1576
1637
* </p>
1577
1638
* <p> For each object, scene, and concept the API returns one or more labels. The API
1578
-
* returns the following types of information regarding labels:</p>
1639
+
* returns the following types of information about labels:</p>
1579
1640
* <ul>
1580
1641
* <li>
1581
1642
* <p> Name - The name of the detected label. </p>
@@ -1654,8 +1715,7 @@ export class Rekognition extends RekognitionClient {
1654
1715
* <p>If the object detected is a person, the operation doesn't provide the same facial
1655
1716
* details that the <a>DetectFaces</a> operation provides.</p>
1656
1717
* </note>
1657
-
* <p>This is a stateless API operation. That is, the operation does not persist any
1658
-
* data.</p>
1718
+
* <p>This is a stateless API operation that doesn't return any data.</p>
1659
1719
* <p>This operation requires permissions to perform the
if(typeofoptionsOrCb!=="object")thrownewError(`Expect http options but get ${typeofoptionsOrCb}`);
2200
+
this.send(command,optionsOrCb||{},cb);
2201
+
}else{
2202
+
returnthis.send(command,optionsOrCb);
2203
+
}
2204
+
}
2205
+
2108
2206
/**
2109
2207
* @public
2110
2208
* <p>Gets the face search results for Amazon Rekognition Video face search started by
@@ -2702,6 +2800,7 @@ export class Rekognition extends RekognitionClient {
2702
2800
* @public
2703
2801
* <p>Gets a list of the project policies attached to a project.</p>
2704
2802
* <p>To attach a project policy to a project, call <a>PutProjectPolicy</a>. To remove a project policy from a project, call <a>DeleteProjectPolicy</a>.</p>
2803
+
* <p>This operation requires permissions to perform the <code>rekognition:ListProjectPolicies</code> action.</p>
2705
2804
*/
2706
2805
publiclistProjectPolicies(
2707
2806
args: ListProjectPoliciesCommandInput,
@@ -2816,6 +2915,7 @@ export class Rekognition extends RekognitionClient {
2816
2915
* <p>To remove a project policy from a project, call <a>DeleteProjectPolicy</a>.
2817
2916
* To get a list of project policies attached to a project, call <a>ListProjectPolicies</a>. </p>
2818
2917
* <p>You copy a model version by calling <a>CopyProjectVersion</a>.</p>
2918
+
* <p>This operation requires permissions to perform the <code>rekognition:PutProjectPolicy</code> action.</p>
2819
2919
*/
2820
2920
publicputProjectPolicy(
2821
2921
args: PutProjectPolicyCommandInput,
@@ -3456,6 +3556,7 @@ export class Rekognition extends RekognitionClient {
3456
3556
* @public
3457
3557
* <p>Stops a running model. The operation might take a while to complete. To
3458
3558
* check the current status, call <a>DescribeProjectVersions</a>. </p>
3559
+
* <p>This operation requires permissions to perform the <code>rekognition:StopProjectVersion</code> action.</p>
* <p>Copying a model version takes a while to complete. To get the current status, call <a>DescribeProjectVersions</a> and check the value of <code>Status</code> in the
52
52
* <a>ProjectVersionDescription</a> object. The copy operation has finished when
53
53
* the value of <code>Status</code> is <code>COPYING_COMPLETED</code>.</p>
54
+
* <p>This operation requires permissions to perform the <code>rekognition:CopyProjectVersion</code> action.</p>
54
55
* @example
55
56
* Use a bare-bones client and the command you need to make an API call.
0 commit comments