@aws-sdk/client-rekognition 3.306.0 → 3.310.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 +16 -0
- package/dist-cjs/Rekognition.js +30 -0
- package/dist-cjs/commands/CompareFacesCommand.js +2 -2
- package/dist-cjs/commands/CopyProjectVersionCommand.js +2 -2
- package/dist-cjs/commands/CreateCollectionCommand.js +2 -2
- package/dist-cjs/commands/CreateDatasetCommand.js +2 -2
- package/dist-cjs/commands/CreateFaceLivenessSessionCommand.js +45 -0
- package/dist-cjs/commands/CreateProjectCommand.js +2 -2
- package/dist-cjs/commands/CreateProjectVersionCommand.js +2 -2
- package/dist-cjs/commands/CreateStreamProcessorCommand.js +2 -2
- package/dist-cjs/commands/DeleteCollectionCommand.js +2 -2
- package/dist-cjs/commands/DeleteDatasetCommand.js +2 -2
- package/dist-cjs/commands/DeleteFacesCommand.js +2 -2
- package/dist-cjs/commands/DeleteProjectCommand.js +2 -2
- package/dist-cjs/commands/DeleteProjectPolicyCommand.js +2 -2
- package/dist-cjs/commands/DeleteProjectVersionCommand.js +2 -2
- package/dist-cjs/commands/DeleteStreamProcessorCommand.js +2 -2
- package/dist-cjs/commands/DescribeCollectionCommand.js +2 -2
- package/dist-cjs/commands/DescribeDatasetCommand.js +2 -2
- package/dist-cjs/commands/DescribeProjectVersionsCommand.js +2 -2
- package/dist-cjs/commands/DescribeProjectsCommand.js +2 -2
- package/dist-cjs/commands/DescribeStreamProcessorCommand.js +2 -2
- package/dist-cjs/commands/DetectCustomLabelsCommand.js +2 -2
- package/dist-cjs/commands/DetectFacesCommand.js +2 -2
- package/dist-cjs/commands/DetectLabelsCommand.js +2 -2
- package/dist-cjs/commands/DetectModerationLabelsCommand.js +2 -2
- package/dist-cjs/commands/DetectProtectiveEquipmentCommand.js +2 -2
- package/dist-cjs/commands/DetectTextCommand.js +2 -2
- package/dist-cjs/commands/DistributeDatasetEntriesCommand.js +2 -2
- package/dist-cjs/commands/GetCelebrityInfoCommand.js +2 -2
- package/dist-cjs/commands/GetCelebrityRecognitionCommand.js +2 -2
- package/dist-cjs/commands/GetContentModerationCommand.js +2 -2
- package/dist-cjs/commands/GetFaceDetectionCommand.js +2 -2
- package/dist-cjs/commands/GetFaceLivenessSessionResultsCommand.js +46 -0
- package/dist-cjs/commands/GetFaceSearchCommand.js +2 -2
- package/dist-cjs/commands/GetLabelDetectionCommand.js +2 -2
- package/dist-cjs/commands/GetPersonTrackingCommand.js +2 -2
- package/dist-cjs/commands/GetSegmentDetectionCommand.js +2 -2
- package/dist-cjs/commands/GetTextDetectionCommand.js +2 -2
- package/dist-cjs/commands/IndexFacesCommand.js +2 -2
- package/dist-cjs/commands/ListCollectionsCommand.js +2 -2
- package/dist-cjs/commands/ListDatasetEntriesCommand.js +2 -2
- package/dist-cjs/commands/ListDatasetLabelsCommand.js +2 -2
- package/dist-cjs/commands/ListFacesCommand.js +2 -2
- package/dist-cjs/commands/ListProjectPoliciesCommand.js +2 -2
- package/dist-cjs/commands/ListStreamProcessorsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/PutProjectPolicyCommand.js +2 -2
- package/dist-cjs/commands/RecognizeCelebritiesCommand.js +2 -2
- package/dist-cjs/commands/SearchFacesByImageCommand.js +2 -2
- package/dist-cjs/commands/SearchFacesCommand.js +2 -2
- package/dist-cjs/commands/StartCelebrityRecognitionCommand.js +2 -2
- package/dist-cjs/commands/StartContentModerationCommand.js +2 -2
- package/dist-cjs/commands/StartFaceDetectionCommand.js +2 -2
- package/dist-cjs/commands/StartFaceSearchCommand.js +2 -2
- package/dist-cjs/commands/StartLabelDetectionCommand.js +2 -2
- package/dist-cjs/commands/StartPersonTrackingCommand.js +2 -2
- package/dist-cjs/commands/StartProjectVersionCommand.js +2 -2
- package/dist-cjs/commands/StartSegmentDetectionCommand.js +2 -2
- package/dist-cjs/commands/StartStreamProcessorCommand.js +2 -2
- package/dist-cjs/commands/StartTextDetectionCommand.js +2 -2
- package/dist-cjs/commands/StopProjectVersionCommand.js +2 -2
- package/dist-cjs/commands/StopStreamProcessorCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateDatasetEntriesCommand.js +2 -2
- package/dist-cjs/commands/UpdateStreamProcessorCommand.js +2 -2
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/index.js +1 -0
- package/dist-cjs/models/models_0.js +36 -2
- package/dist-cjs/models/models_1.js +2 -0
- package/dist-cjs/protocols/Aws_json1_1.js +1883 -1773
- package/dist-es/Rekognition.js +30 -0
- package/dist-es/commands/CompareFacesCommand.js +3 -3
- package/dist-es/commands/CopyProjectVersionCommand.js +3 -3
- package/dist-es/commands/CreateCollectionCommand.js +3 -3
- package/dist-es/commands/CreateDatasetCommand.js +3 -3
- package/dist-es/commands/CreateFaceLivenessSessionCommand.js +41 -0
- package/dist-es/commands/CreateProjectCommand.js +3 -3
- package/dist-es/commands/CreateProjectVersionCommand.js +3 -3
- package/dist-es/commands/CreateStreamProcessorCommand.js +3 -3
- package/dist-es/commands/DeleteCollectionCommand.js +3 -3
- package/dist-es/commands/DeleteDatasetCommand.js +3 -3
- package/dist-es/commands/DeleteFacesCommand.js +3 -3
- package/dist-es/commands/DeleteProjectCommand.js +3 -3
- package/dist-es/commands/DeleteProjectPolicyCommand.js +3 -3
- package/dist-es/commands/DeleteProjectVersionCommand.js +3 -3
- package/dist-es/commands/DeleteStreamProcessorCommand.js +3 -3
- package/dist-es/commands/DescribeCollectionCommand.js +3 -3
- package/dist-es/commands/DescribeDatasetCommand.js +3 -3
- package/dist-es/commands/DescribeProjectVersionsCommand.js +3 -3
- package/dist-es/commands/DescribeProjectsCommand.js +3 -3
- package/dist-es/commands/DescribeStreamProcessorCommand.js +3 -3
- package/dist-es/commands/DetectCustomLabelsCommand.js +3 -3
- package/dist-es/commands/DetectFacesCommand.js +3 -3
- package/dist-es/commands/DetectLabelsCommand.js +3 -3
- package/dist-es/commands/DetectModerationLabelsCommand.js +3 -3
- package/dist-es/commands/DetectProtectiveEquipmentCommand.js +3 -3
- package/dist-es/commands/DetectTextCommand.js +3 -3
- package/dist-es/commands/DistributeDatasetEntriesCommand.js +3 -3
- package/dist-es/commands/GetCelebrityInfoCommand.js +3 -3
- package/dist-es/commands/GetCelebrityRecognitionCommand.js +3 -3
- package/dist-es/commands/GetContentModerationCommand.js +3 -3
- package/dist-es/commands/GetFaceDetectionCommand.js +3 -3
- package/dist-es/commands/GetFaceLivenessSessionResultsCommand.js +42 -0
- package/dist-es/commands/GetFaceSearchCommand.js +3 -3
- package/dist-es/commands/GetLabelDetectionCommand.js +3 -3
- package/dist-es/commands/GetPersonTrackingCommand.js +3 -3
- package/dist-es/commands/GetSegmentDetectionCommand.js +3 -3
- package/dist-es/commands/GetTextDetectionCommand.js +3 -3
- package/dist-es/commands/IndexFacesCommand.js +3 -3
- package/dist-es/commands/ListCollectionsCommand.js +3 -3
- package/dist-es/commands/ListDatasetEntriesCommand.js +3 -3
- package/dist-es/commands/ListDatasetLabelsCommand.js +3 -3
- package/dist-es/commands/ListFacesCommand.js +3 -3
- package/dist-es/commands/ListProjectPoliciesCommand.js +3 -3
- package/dist-es/commands/ListStreamProcessorsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/PutProjectPolicyCommand.js +3 -3
- package/dist-es/commands/RecognizeCelebritiesCommand.js +3 -3
- package/dist-es/commands/SearchFacesByImageCommand.js +3 -3
- package/dist-es/commands/SearchFacesCommand.js +3 -3
- package/dist-es/commands/StartCelebrityRecognitionCommand.js +3 -3
- package/dist-es/commands/StartContentModerationCommand.js +3 -3
- package/dist-es/commands/StartFaceDetectionCommand.js +3 -3
- package/dist-es/commands/StartFaceSearchCommand.js +3 -3
- package/dist-es/commands/StartLabelDetectionCommand.js +3 -3
- package/dist-es/commands/StartPersonTrackingCommand.js +3 -3
- package/dist-es/commands/StartProjectVersionCommand.js +3 -3
- package/dist-es/commands/StartSegmentDetectionCommand.js +3 -3
- package/dist-es/commands/StartStreamProcessorCommand.js +3 -3
- package/dist-es/commands/StartTextDetectionCommand.js +3 -3
- package/dist-es/commands/StopProjectVersionCommand.js +3 -3
- package/dist-es/commands/StopStreamProcessorCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateDatasetEntriesCommand.js +3 -3
- package/dist-es/commands/UpdateStreamProcessorCommand.js +3 -3
- package/dist-es/commands/index.js +2 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +31 -0
- package/dist-es/models/models_1.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +1751 -1645
- package/dist-types/Rekognition.d.ts +51 -10
- package/dist-types/RekognitionClient.d.ts +4 -2
- package/dist-types/commands/CopyProjectVersionCommand.d.ts +1 -0
- package/dist-types/commands/CreateFaceLivenessSessionCommand.d.ts +94 -0
- package/dist-types/commands/CreateStreamProcessorCommand.d.ts +17 -7
- package/dist-types/commands/DeleteProjectPolicyCommand.d.ts +1 -0
- package/dist-types/commands/DetectLabelsCommand.d.ts +2 -3
- package/dist-types/commands/GetFaceLivenessSessionResultsCommand.d.ts +88 -0
- package/dist-types/commands/ListProjectPoliciesCommand.d.ts +1 -0
- package/dist-types/commands/PutProjectPolicyCommand.d.ts +1 -0
- package/dist-types/commands/StopProjectVersionCommand.d.ts +1 -0
- package/dist-types/commands/UpdateStreamProcessorCommand.d.ts +4 -1
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +241 -106
- package/dist-types/models/models_1.d.ts +56 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +522 -126
- package/dist-types/ts3.4/Rekognition.d.ts +34 -0
- package/dist-types/ts3.4/RekognitionClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/CreateFaceLivenessSessionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetFaceLivenessSessionResultsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateStreamProcessorCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +59 -17
- package/dist-types/ts3.4/models/models_1.d.ts +17 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +150 -126
- package/package.json +36 -36
package/README.md
CHANGED
|
@@ -560,6 +560,14 @@ CreateDataset
|
|
|
560
560
|
|
|
561
561
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/classes/createdatasetcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/createdatasetcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/createdatasetcommandoutput.html)
|
|
562
562
|
|
|
563
|
+
</details>
|
|
564
|
+
<details>
|
|
565
|
+
<summary>
|
|
566
|
+
CreateFaceLivenessSession
|
|
567
|
+
</summary>
|
|
568
|
+
|
|
569
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/classes/createfacelivenesssessioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/createfacelivenesssessioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/createfacelivenesssessioncommandoutput.html)
|
|
570
|
+
|
|
563
571
|
</details>
|
|
564
572
|
<details>
|
|
565
573
|
<summary>
|
|
@@ -768,6 +776,14 @@ GetFaceDetection
|
|
|
768
776
|
|
|
769
777
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/classes/getfacedetectioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/getfacedetectioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/getfacedetectioncommandoutput.html)
|
|
770
778
|
|
|
779
|
+
</details>
|
|
780
|
+
<details>
|
|
781
|
+
<summary>
|
|
782
|
+
GetFaceLivenessSessionResults
|
|
783
|
+
</summary>
|
|
784
|
+
|
|
785
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/classes/getfacelivenesssessionresultscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/getfacelivenesssessionresultscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/getfacelivenesssessionresultscommandoutput.html)
|
|
786
|
+
|
|
771
787
|
</details>
|
|
772
788
|
<details>
|
|
773
789
|
<summary>
|
package/dist-cjs/Rekognition.js
CHANGED
|
@@ -5,6 +5,7 @@ const CompareFacesCommand_1 = require("./commands/CompareFacesCommand");
|
|
|
5
5
|
const CopyProjectVersionCommand_1 = require("./commands/CopyProjectVersionCommand");
|
|
6
6
|
const CreateCollectionCommand_1 = require("./commands/CreateCollectionCommand");
|
|
7
7
|
const CreateDatasetCommand_1 = require("./commands/CreateDatasetCommand");
|
|
8
|
+
const CreateFaceLivenessSessionCommand_1 = require("./commands/CreateFaceLivenessSessionCommand");
|
|
8
9
|
const CreateProjectCommand_1 = require("./commands/CreateProjectCommand");
|
|
9
10
|
const CreateProjectVersionCommand_1 = require("./commands/CreateProjectVersionCommand");
|
|
10
11
|
const CreateStreamProcessorCommand_1 = require("./commands/CreateStreamProcessorCommand");
|
|
@@ -31,6 +32,7 @@ const GetCelebrityInfoCommand_1 = require("./commands/GetCelebrityInfoCommand");
|
|
|
31
32
|
const GetCelebrityRecognitionCommand_1 = require("./commands/GetCelebrityRecognitionCommand");
|
|
32
33
|
const GetContentModerationCommand_1 = require("./commands/GetContentModerationCommand");
|
|
33
34
|
const GetFaceDetectionCommand_1 = require("./commands/GetFaceDetectionCommand");
|
|
35
|
+
const GetFaceLivenessSessionResultsCommand_1 = require("./commands/GetFaceLivenessSessionResultsCommand");
|
|
34
36
|
const GetFaceSearchCommand_1 = require("./commands/GetFaceSearchCommand");
|
|
35
37
|
const GetLabelDetectionCommand_1 = require("./commands/GetLabelDetectionCommand");
|
|
36
38
|
const GetPersonTrackingCommand_1 = require("./commands/GetPersonTrackingCommand");
|
|
@@ -122,6 +124,20 @@ class Rekognition extends RekognitionClient_1.RekognitionClient {
|
|
|
122
124
|
return this.send(command, optionsOrCb);
|
|
123
125
|
}
|
|
124
126
|
}
|
|
127
|
+
createFaceLivenessSession(args, optionsOrCb, cb) {
|
|
128
|
+
const command = new CreateFaceLivenessSessionCommand_1.CreateFaceLivenessSessionCommand(args);
|
|
129
|
+
if (typeof optionsOrCb === "function") {
|
|
130
|
+
this.send(command, optionsOrCb);
|
|
131
|
+
}
|
|
132
|
+
else if (typeof cb === "function") {
|
|
133
|
+
if (typeof optionsOrCb !== "object")
|
|
134
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
135
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
return this.send(command, optionsOrCb);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
125
141
|
createProject(args, optionsOrCb, cb) {
|
|
126
142
|
const command = new CreateProjectCommand_1.CreateProjectCommand(args);
|
|
127
143
|
if (typeof optionsOrCb === "function") {
|
|
@@ -486,6 +502,20 @@ class Rekognition extends RekognitionClient_1.RekognitionClient {
|
|
|
486
502
|
return this.send(command, optionsOrCb);
|
|
487
503
|
}
|
|
488
504
|
}
|
|
505
|
+
getFaceLivenessSessionResults(args, optionsOrCb, cb) {
|
|
506
|
+
const command = new GetFaceLivenessSessionResultsCommand_1.GetFaceLivenessSessionResultsCommand(args);
|
|
507
|
+
if (typeof optionsOrCb === "function") {
|
|
508
|
+
this.send(command, optionsOrCb);
|
|
509
|
+
}
|
|
510
|
+
else if (typeof cb === "function") {
|
|
511
|
+
if (typeof optionsOrCb !== "object")
|
|
512
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
513
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
514
|
+
}
|
|
515
|
+
else {
|
|
516
|
+
return this.send(command, optionsOrCb);
|
|
517
|
+
}
|
|
518
|
+
}
|
|
489
519
|
getFaceSearch(args, optionsOrCb, cb) {
|
|
490
520
|
const command = new GetFaceSearchCommand_1.GetFaceSearchCommand(args);
|
|
491
521
|
if (typeof optionsOrCb === "function") {
|
|
@@ -36,10 +36,10 @@ class CompareFacesCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_json1_1_1.
|
|
39
|
+
return (0, Aws_json1_1_1.se_CompareFacesCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_json1_1_1.
|
|
42
|
+
return (0, Aws_json1_1_1.de_CompareFacesCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.CompareFacesCommand = CompareFacesCommand;
|
|
@@ -36,10 +36,10 @@ class CopyProjectVersionCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_json1_1_1.
|
|
39
|
+
return (0, Aws_json1_1_1.se_CopyProjectVersionCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_json1_1_1.
|
|
42
|
+
return (0, Aws_json1_1_1.de_CopyProjectVersionCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.CopyProjectVersionCommand = CopyProjectVersionCommand;
|
|
@@ -36,10 +36,10 @@ class CreateCollectionCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_json1_1_1.
|
|
39
|
+
return (0, Aws_json1_1_1.se_CreateCollectionCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_json1_1_1.
|
|
42
|
+
return (0, Aws_json1_1_1.de_CreateCollectionCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.CreateCollectionCommand = CreateCollectionCommand;
|
|
@@ -36,10 +36,10 @@ class CreateDatasetCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_json1_1_1.
|
|
39
|
+
return (0, Aws_json1_1_1.se_CreateDatasetCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_json1_1_1.
|
|
42
|
+
return (0, Aws_json1_1_1.de_CreateDatasetCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.CreateDatasetCommand = CreateDatasetCommand;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateFaceLivenessSessionCommand = 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
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class CreateFaceLivenessSessionCommand extends smithy_client_1.Command {
|
|
9
|
+
static getEndpointParameterInstructions() {
|
|
10
|
+
return {
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateFaceLivenessSessionCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "RekognitionClient";
|
|
27
|
+
const commandName = "CreateFaceLivenessSessionCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_json1_1_1.se_CreateFaceLivenessSessionCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_json1_1_1.de_CreateFaceLivenessSessionCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.CreateFaceLivenessSessionCommand = CreateFaceLivenessSessionCommand;
|
|
@@ -36,10 +36,10 @@ class CreateProjectCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_json1_1_1.
|
|
39
|
+
return (0, Aws_json1_1_1.se_CreateProjectCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_json1_1_1.
|
|
42
|
+
return (0, Aws_json1_1_1.de_CreateProjectCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.CreateProjectCommand = CreateProjectCommand;
|
|
@@ -36,10 +36,10 @@ class CreateProjectVersionCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_json1_1_1.
|
|
39
|
+
return (0, Aws_json1_1_1.se_CreateProjectVersionCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_json1_1_1.
|
|
42
|
+
return (0, Aws_json1_1_1.de_CreateProjectVersionCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.CreateProjectVersionCommand = CreateProjectVersionCommand;
|
|
@@ -36,10 +36,10 @@ class CreateStreamProcessorCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_json1_1_1.
|
|
39
|
+
return (0, Aws_json1_1_1.se_CreateStreamProcessorCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_json1_1_1.
|
|
42
|
+
return (0, Aws_json1_1_1.de_CreateStreamProcessorCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.CreateStreamProcessorCommand = CreateStreamProcessorCommand;
|
|
@@ -36,10 +36,10 @@ class DeleteCollectionCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_json1_1_1.
|
|
39
|
+
return (0, Aws_json1_1_1.se_DeleteCollectionCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_json1_1_1.
|
|
42
|
+
return (0, Aws_json1_1_1.de_DeleteCollectionCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.DeleteCollectionCommand = DeleteCollectionCommand;
|
|
@@ -36,10 +36,10 @@ class DeleteDatasetCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_json1_1_1.
|
|
39
|
+
return (0, Aws_json1_1_1.se_DeleteDatasetCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_json1_1_1.
|
|
42
|
+
return (0, Aws_json1_1_1.de_DeleteDatasetCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.DeleteDatasetCommand = DeleteDatasetCommand;
|
|
@@ -36,10 +36,10 @@ class DeleteFacesCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_json1_1_1.
|
|
39
|
+
return (0, Aws_json1_1_1.se_DeleteFacesCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_json1_1_1.
|
|
42
|
+
return (0, Aws_json1_1_1.de_DeleteFacesCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.DeleteFacesCommand = DeleteFacesCommand;
|
|
@@ -36,10 +36,10 @@ class DeleteProjectCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_json1_1_1.
|
|
39
|
+
return (0, Aws_json1_1_1.se_DeleteProjectCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_json1_1_1.
|
|
42
|
+
return (0, Aws_json1_1_1.de_DeleteProjectCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.DeleteProjectCommand = DeleteProjectCommand;
|
|
@@ -36,10 +36,10 @@ class DeleteProjectPolicyCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_json1_1_1.
|
|
39
|
+
return (0, Aws_json1_1_1.se_DeleteProjectPolicyCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_json1_1_1.
|
|
42
|
+
return (0, Aws_json1_1_1.de_DeleteProjectPolicyCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.DeleteProjectPolicyCommand = DeleteProjectPolicyCommand;
|
|
@@ -36,10 +36,10 @@ class DeleteProjectVersionCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_json1_1_1.
|
|
39
|
+
return (0, Aws_json1_1_1.se_DeleteProjectVersionCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_json1_1_1.
|
|
42
|
+
return (0, Aws_json1_1_1.de_DeleteProjectVersionCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.DeleteProjectVersionCommand = DeleteProjectVersionCommand;
|
|
@@ -36,10 +36,10 @@ class DeleteStreamProcessorCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_json1_1_1.
|
|
39
|
+
return (0, Aws_json1_1_1.se_DeleteStreamProcessorCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_json1_1_1.
|
|
42
|
+
return (0, Aws_json1_1_1.de_DeleteStreamProcessorCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.DeleteStreamProcessorCommand = DeleteStreamProcessorCommand;
|
|
@@ -36,10 +36,10 @@ class DescribeCollectionCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_json1_1_1.
|
|
39
|
+
return (0, Aws_json1_1_1.se_DescribeCollectionCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_json1_1_1.
|
|
42
|
+
return (0, Aws_json1_1_1.de_DescribeCollectionCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.DescribeCollectionCommand = DescribeCollectionCommand;
|
|
@@ -36,10 +36,10 @@ class DescribeDatasetCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_json1_1_1.
|
|
39
|
+
return (0, Aws_json1_1_1.se_DescribeDatasetCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_json1_1_1.
|
|
42
|
+
return (0, Aws_json1_1_1.de_DescribeDatasetCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.DescribeDatasetCommand = DescribeDatasetCommand;
|
|
@@ -36,10 +36,10 @@ class DescribeProjectVersionsCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_json1_1_1.
|
|
39
|
+
return (0, Aws_json1_1_1.se_DescribeProjectVersionsCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_json1_1_1.
|
|
42
|
+
return (0, Aws_json1_1_1.de_DescribeProjectVersionsCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.DescribeProjectVersionsCommand = DescribeProjectVersionsCommand;
|
|
@@ -36,10 +36,10 @@ class DescribeProjectsCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_json1_1_1.
|
|
39
|
+
return (0, Aws_json1_1_1.se_DescribeProjectsCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_json1_1_1.
|
|
42
|
+
return (0, Aws_json1_1_1.de_DescribeProjectsCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.DescribeProjectsCommand = DescribeProjectsCommand;
|
|
@@ -36,10 +36,10 @@ class DescribeStreamProcessorCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_json1_1_1.
|
|
39
|
+
return (0, Aws_json1_1_1.se_DescribeStreamProcessorCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_json1_1_1.
|
|
42
|
+
return (0, Aws_json1_1_1.de_DescribeStreamProcessorCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.DescribeStreamProcessorCommand = DescribeStreamProcessorCommand;
|
|
@@ -36,10 +36,10 @@ class DetectCustomLabelsCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_json1_1_1.
|
|
39
|
+
return (0, Aws_json1_1_1.se_DetectCustomLabelsCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_json1_1_1.
|
|
42
|
+
return (0, Aws_json1_1_1.de_DetectCustomLabelsCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.DetectCustomLabelsCommand = DetectCustomLabelsCommand;
|
|
@@ -36,10 +36,10 @@ class DetectFacesCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_json1_1_1.
|
|
39
|
+
return (0, Aws_json1_1_1.se_DetectFacesCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_json1_1_1.
|
|
42
|
+
return (0, Aws_json1_1_1.de_DetectFacesCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.DetectFacesCommand = DetectFacesCommand;
|
|
@@ -36,10 +36,10 @@ class DetectLabelsCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_json1_1_1.
|
|
39
|
+
return (0, Aws_json1_1_1.se_DetectLabelsCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_json1_1_1.
|
|
42
|
+
return (0, Aws_json1_1_1.de_DetectLabelsCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.DetectLabelsCommand = DetectLabelsCommand;
|
|
@@ -36,10 +36,10 @@ class DetectModerationLabelsCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_json1_1_1.
|
|
39
|
+
return (0, Aws_json1_1_1.se_DetectModerationLabelsCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_json1_1_1.
|
|
42
|
+
return (0, Aws_json1_1_1.de_DetectModerationLabelsCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.DetectModerationLabelsCommand = DetectModerationLabelsCommand;
|
|
@@ -36,10 +36,10 @@ class DetectProtectiveEquipmentCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_json1_1_1.
|
|
39
|
+
return (0, Aws_json1_1_1.se_DetectProtectiveEquipmentCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_json1_1_1.
|
|
42
|
+
return (0, Aws_json1_1_1.de_DetectProtectiveEquipmentCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.DetectProtectiveEquipmentCommand = DetectProtectiveEquipmentCommand;
|
|
@@ -36,10 +36,10 @@ class DetectTextCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_json1_1_1.
|
|
39
|
+
return (0, Aws_json1_1_1.se_DetectTextCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_json1_1_1.
|
|
42
|
+
return (0, Aws_json1_1_1.de_DetectTextCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.DetectTextCommand = DetectTextCommand;
|
|
@@ -36,10 +36,10 @@ class DistributeDatasetEntriesCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_json1_1_1.
|
|
39
|
+
return (0, Aws_json1_1_1.se_DistributeDatasetEntriesCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_json1_1_1.
|
|
42
|
+
return (0, Aws_json1_1_1.de_DistributeDatasetEntriesCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.DistributeDatasetEntriesCommand = DistributeDatasetEntriesCommand;
|
|
@@ -36,10 +36,10 @@ class GetCelebrityInfoCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_json1_1_1.
|
|
39
|
+
return (0, Aws_json1_1_1.se_GetCelebrityInfoCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_json1_1_1.
|
|
42
|
+
return (0, Aws_json1_1_1.de_GetCelebrityInfoCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.GetCelebrityInfoCommand = GetCelebrityInfoCommand;
|
|
@@ -36,10 +36,10 @@ class GetCelebrityRecognitionCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_json1_1_1.
|
|
39
|
+
return (0, Aws_json1_1_1.se_GetCelebrityRecognitionCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_json1_1_1.
|
|
42
|
+
return (0, Aws_json1_1_1.de_GetCelebrityRecognitionCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.GetCelebrityRecognitionCommand = GetCelebrityRecognitionCommand;
|
|
@@ -36,10 +36,10 @@ class GetContentModerationCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_json1_1_1.
|
|
39
|
+
return (0, Aws_json1_1_1.se_GetContentModerationCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_json1_1_1.
|
|
42
|
+
return (0, Aws_json1_1_1.de_GetContentModerationCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.GetContentModerationCommand = GetContentModerationCommand;
|
|
@@ -36,10 +36,10 @@ class GetFaceDetectionCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_json1_1_1.
|
|
39
|
+
return (0, Aws_json1_1_1.se_GetFaceDetectionCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_json1_1_1.
|
|
42
|
+
return (0, Aws_json1_1_1.de_GetFaceDetectionCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.GetFaceDetectionCommand = GetFaceDetectionCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetFaceLivenessSessionResultsCommand = 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
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
+
class GetFaceLivenessSessionResultsCommand 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, GetFaceLivenessSessionResultsCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "RekognitionClient";
|
|
28
|
+
const commandName = "GetFaceLivenessSessionResultsCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.GetFaceLivenessSessionResultsResponseFilterSensitiveLog,
|
|
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_GetFaceLivenessSessionResultsCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.de_GetFaceLivenessSessionResultsCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.GetFaceLivenessSessionResultsCommand = GetFaceLivenessSessionResultsCommand;
|
|
@@ -36,10 +36,10 @@ class GetFaceSearchCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_json1_1_1.
|
|
39
|
+
return (0, Aws_json1_1_1.se_GetFaceSearchCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_json1_1_1.
|
|
42
|
+
return (0, Aws_json1_1_1.de_GetFaceSearchCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.GetFaceSearchCommand = GetFaceSearchCommand;
|