@aws-sdk/client-rekognition 3.431.0 → 3.434.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 +24 -0
- package/dist-cjs/Rekognition.js +6 -0
- package/dist-cjs/commands/GetMediaAnalysisJobCommand.js +51 -0
- package/dist-cjs/commands/ListMediaAnalysisJobsCommand.js +51 -0
- package/dist-cjs/commands/StartMediaAnalysisJobCommand.js +51 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +35 -1
- package/dist-cjs/pagination/ListMediaAnalysisJobsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +270 -3
- package/dist-es/Rekognition.js +6 -0
- package/dist-es/commands/GetMediaAnalysisJobCommand.js +47 -0
- package/dist-es/commands/ListMediaAnalysisJobsCommand.js +47 -0
- package/dist-es/commands/StartMediaAnalysisJobCommand.js +47 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +33 -0
- package/dist-es/pagination/ListMediaAnalysisJobsPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +262 -1
- package/dist-types/Rekognition.d.ts +21 -0
- package/dist-types/RekognitionClient.d.ts +5 -2
- package/dist-types/commands/GetMediaAnalysisJobCommand.d.ts +134 -0
- package/dist-types/commands/ListMediaAnalysisJobsCommand.d.ts +139 -0
- package/dist-types/commands/PutProjectPolicyCommand.d.ts +1 -1
- package/dist-types/commands/RecognizeCelebritiesCommand.d.ts +1 -1
- package/dist-types/commands/SearchFacesByImageCommand.d.ts +1 -1
- package/dist-types/commands/SearchFacesCommand.d.ts +1 -1
- package/dist-types/commands/SearchUsersByImageCommand.d.ts +1 -2
- package/dist-types/commands/SearchUsersCommand.d.ts +1 -1
- package/dist-types/commands/StartMediaAnalysisJobCommand.d.ts +135 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +336 -406
- package/dist-types/models/models_1.d.ts +457 -1
- package/dist-types/pagination/ListMediaAnalysisJobsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +27 -0
- package/dist-types/ts3.4/Rekognition.d.ts +51 -0
- package/dist-types/ts3.4/RekognitionClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/GetMediaAnalysisJobCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListMediaAnalysisJobsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/PutProjectPolicyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/RecognizeCelebritiesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/SearchFacesByImageCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/SearchFacesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/SearchUsersByImageCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/SearchUsersCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartMediaAnalysisJobCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +95 -74
- package/dist-types/ts3.4/models/models_1.d.ts +96 -2
- package/dist-types/ts3.4/pagination/ListMediaAnalysisJobsPaginator.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 +36 -0
- package/package.json +32 -32
package/README.md
CHANGED
|
@@ -864,6 +864,14 @@ GetLabelDetection
|
|
|
864
864
|
|
|
865
865
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/classes/getlabeldetectioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/getlabeldetectioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/getlabeldetectioncommandoutput.html)
|
|
866
866
|
|
|
867
|
+
</details>
|
|
868
|
+
<details>
|
|
869
|
+
<summary>
|
|
870
|
+
GetMediaAnalysisJob
|
|
871
|
+
</summary>
|
|
872
|
+
|
|
873
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/classes/getmediaanalysisjobcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/getmediaanalysisjobcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/getmediaanalysisjobcommandoutput.html)
|
|
874
|
+
|
|
867
875
|
</details>
|
|
868
876
|
<details>
|
|
869
877
|
<summary>
|
|
@@ -928,6 +936,14 @@ ListFaces
|
|
|
928
936
|
|
|
929
937
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/classes/listfacescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/listfacescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/listfacescommandoutput.html)
|
|
930
938
|
|
|
939
|
+
</details>
|
|
940
|
+
<details>
|
|
941
|
+
<summary>
|
|
942
|
+
ListMediaAnalysisJobs
|
|
943
|
+
</summary>
|
|
944
|
+
|
|
945
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/classes/listmediaanalysisjobscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/listmediaanalysisjobscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/listmediaanalysisjobscommandoutput.html)
|
|
946
|
+
|
|
931
947
|
</details>
|
|
932
948
|
<details>
|
|
933
949
|
<summary>
|
|
@@ -1048,6 +1064,14 @@ StartLabelDetection
|
|
|
1048
1064
|
|
|
1049
1065
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/classes/startlabeldetectioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/startlabeldetectioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/startlabeldetectioncommandoutput.html)
|
|
1050
1066
|
|
|
1067
|
+
</details>
|
|
1068
|
+
<details>
|
|
1069
|
+
<summary>
|
|
1070
|
+
StartMediaAnalysisJob
|
|
1071
|
+
</summary>
|
|
1072
|
+
|
|
1073
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/classes/startmediaanalysisjobcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/startmediaanalysisjobcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/startmediaanalysisjobcommandoutput.html)
|
|
1074
|
+
|
|
1051
1075
|
</details>
|
|
1052
1076
|
<details>
|
|
1053
1077
|
<summary>
|
package/dist-cjs/Rekognition.js
CHANGED
|
@@ -40,6 +40,7 @@ const GetFaceDetectionCommand_1 = require("./commands/GetFaceDetectionCommand");
|
|
|
40
40
|
const GetFaceLivenessSessionResultsCommand_1 = require("./commands/GetFaceLivenessSessionResultsCommand");
|
|
41
41
|
const GetFaceSearchCommand_1 = require("./commands/GetFaceSearchCommand");
|
|
42
42
|
const GetLabelDetectionCommand_1 = require("./commands/GetLabelDetectionCommand");
|
|
43
|
+
const GetMediaAnalysisJobCommand_1 = require("./commands/GetMediaAnalysisJobCommand");
|
|
43
44
|
const GetPersonTrackingCommand_1 = require("./commands/GetPersonTrackingCommand");
|
|
44
45
|
const GetSegmentDetectionCommand_1 = require("./commands/GetSegmentDetectionCommand");
|
|
45
46
|
const GetTextDetectionCommand_1 = require("./commands/GetTextDetectionCommand");
|
|
@@ -48,6 +49,7 @@ const ListCollectionsCommand_1 = require("./commands/ListCollectionsCommand");
|
|
|
48
49
|
const ListDatasetEntriesCommand_1 = require("./commands/ListDatasetEntriesCommand");
|
|
49
50
|
const ListDatasetLabelsCommand_1 = require("./commands/ListDatasetLabelsCommand");
|
|
50
51
|
const ListFacesCommand_1 = require("./commands/ListFacesCommand");
|
|
52
|
+
const ListMediaAnalysisJobsCommand_1 = require("./commands/ListMediaAnalysisJobsCommand");
|
|
51
53
|
const ListProjectPoliciesCommand_1 = require("./commands/ListProjectPoliciesCommand");
|
|
52
54
|
const ListStreamProcessorsCommand_1 = require("./commands/ListStreamProcessorsCommand");
|
|
53
55
|
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
@@ -63,6 +65,7 @@ const StartContentModerationCommand_1 = require("./commands/StartContentModerati
|
|
|
63
65
|
const StartFaceDetectionCommand_1 = require("./commands/StartFaceDetectionCommand");
|
|
64
66
|
const StartFaceSearchCommand_1 = require("./commands/StartFaceSearchCommand");
|
|
65
67
|
const StartLabelDetectionCommand_1 = require("./commands/StartLabelDetectionCommand");
|
|
68
|
+
const StartMediaAnalysisJobCommand_1 = require("./commands/StartMediaAnalysisJobCommand");
|
|
66
69
|
const StartPersonTrackingCommand_1 = require("./commands/StartPersonTrackingCommand");
|
|
67
70
|
const StartProjectVersionCommand_1 = require("./commands/StartProjectVersionCommand");
|
|
68
71
|
const StartSegmentDetectionCommand_1 = require("./commands/StartSegmentDetectionCommand");
|
|
@@ -114,6 +117,7 @@ const commands = {
|
|
|
114
117
|
GetFaceLivenessSessionResultsCommand: GetFaceLivenessSessionResultsCommand_1.GetFaceLivenessSessionResultsCommand,
|
|
115
118
|
GetFaceSearchCommand: GetFaceSearchCommand_1.GetFaceSearchCommand,
|
|
116
119
|
GetLabelDetectionCommand: GetLabelDetectionCommand_1.GetLabelDetectionCommand,
|
|
120
|
+
GetMediaAnalysisJobCommand: GetMediaAnalysisJobCommand_1.GetMediaAnalysisJobCommand,
|
|
117
121
|
GetPersonTrackingCommand: GetPersonTrackingCommand_1.GetPersonTrackingCommand,
|
|
118
122
|
GetSegmentDetectionCommand: GetSegmentDetectionCommand_1.GetSegmentDetectionCommand,
|
|
119
123
|
GetTextDetectionCommand: GetTextDetectionCommand_1.GetTextDetectionCommand,
|
|
@@ -122,6 +126,7 @@ const commands = {
|
|
|
122
126
|
ListDatasetEntriesCommand: ListDatasetEntriesCommand_1.ListDatasetEntriesCommand,
|
|
123
127
|
ListDatasetLabelsCommand: ListDatasetLabelsCommand_1.ListDatasetLabelsCommand,
|
|
124
128
|
ListFacesCommand: ListFacesCommand_1.ListFacesCommand,
|
|
129
|
+
ListMediaAnalysisJobsCommand: ListMediaAnalysisJobsCommand_1.ListMediaAnalysisJobsCommand,
|
|
125
130
|
ListProjectPoliciesCommand: ListProjectPoliciesCommand_1.ListProjectPoliciesCommand,
|
|
126
131
|
ListStreamProcessorsCommand: ListStreamProcessorsCommand_1.ListStreamProcessorsCommand,
|
|
127
132
|
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
@@ -137,6 +142,7 @@ const commands = {
|
|
|
137
142
|
StartFaceDetectionCommand: StartFaceDetectionCommand_1.StartFaceDetectionCommand,
|
|
138
143
|
StartFaceSearchCommand: StartFaceSearchCommand_1.StartFaceSearchCommand,
|
|
139
144
|
StartLabelDetectionCommand: StartLabelDetectionCommand_1.StartLabelDetectionCommand,
|
|
145
|
+
StartMediaAnalysisJobCommand: StartMediaAnalysisJobCommand_1.StartMediaAnalysisJobCommand,
|
|
140
146
|
StartPersonTrackingCommand: StartPersonTrackingCommand_1.StartPersonTrackingCommand,
|
|
141
147
|
StartProjectVersionCommand: StartProjectVersionCommand_1.StartProjectVersionCommand,
|
|
142
148
|
StartSegmentDetectionCommand: StartSegmentDetectionCommand_1.StartSegmentDetectionCommand,
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetMediaAnalysisJobCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
10
|
+
class GetMediaAnalysisJobCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetMediaAnalysisJobCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "RekognitionClient";
|
|
29
|
+
const commandName = "GetMediaAnalysisJobCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "RekognitionService",
|
|
38
|
+
operation: "GetMediaAnalysisJob",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_json1_1_1.se_GetMediaAnalysisJobCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_json1_1_1.de_GetMediaAnalysisJobCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.GetMediaAnalysisJobCommand = GetMediaAnalysisJobCommand;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListMediaAnalysisJobsCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
10
|
+
class ListMediaAnalysisJobsCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListMediaAnalysisJobsCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "RekognitionClient";
|
|
29
|
+
const commandName = "ListMediaAnalysisJobsCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "RekognitionService",
|
|
38
|
+
operation: "ListMediaAnalysisJobs",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_json1_1_1.se_ListMediaAnalysisJobsCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_json1_1_1.de_ListMediaAnalysisJobsCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.ListMediaAnalysisJobsCommand = ListMediaAnalysisJobsCommand;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StartMediaAnalysisJobCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
10
|
+
class StartMediaAnalysisJobCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StartMediaAnalysisJobCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "RekognitionClient";
|
|
29
|
+
const commandName = "StartMediaAnalysisJobCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "RekognitionService",
|
|
38
|
+
operation: "StartMediaAnalysisJob",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_json1_1_1.se_StartMediaAnalysisJobCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_json1_1_1.de_StartMediaAnalysisJobCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.StartMediaAnalysisJobCommand = StartMediaAnalysisJobCommand;
|
|
@@ -39,6 +39,7 @@ tslib_1.__exportStar(require("./GetFaceDetectionCommand"), exports);
|
|
|
39
39
|
tslib_1.__exportStar(require("./GetFaceLivenessSessionResultsCommand"), exports);
|
|
40
40
|
tslib_1.__exportStar(require("./GetFaceSearchCommand"), exports);
|
|
41
41
|
tslib_1.__exportStar(require("./GetLabelDetectionCommand"), exports);
|
|
42
|
+
tslib_1.__exportStar(require("./GetMediaAnalysisJobCommand"), exports);
|
|
42
43
|
tslib_1.__exportStar(require("./GetPersonTrackingCommand"), exports);
|
|
43
44
|
tslib_1.__exportStar(require("./GetSegmentDetectionCommand"), exports);
|
|
44
45
|
tslib_1.__exportStar(require("./GetTextDetectionCommand"), exports);
|
|
@@ -47,6 +48,7 @@ tslib_1.__exportStar(require("./ListCollectionsCommand"), exports);
|
|
|
47
48
|
tslib_1.__exportStar(require("./ListDatasetEntriesCommand"), exports);
|
|
48
49
|
tslib_1.__exportStar(require("./ListDatasetLabelsCommand"), exports);
|
|
49
50
|
tslib_1.__exportStar(require("./ListFacesCommand"), exports);
|
|
51
|
+
tslib_1.__exportStar(require("./ListMediaAnalysisJobsCommand"), exports);
|
|
50
52
|
tslib_1.__exportStar(require("./ListProjectPoliciesCommand"), exports);
|
|
51
53
|
tslib_1.__exportStar(require("./ListStreamProcessorsCommand"), exports);
|
|
52
54
|
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
@@ -62,6 +64,7 @@ tslib_1.__exportStar(require("./StartContentModerationCommand"), exports);
|
|
|
62
64
|
tslib_1.__exportStar(require("./StartFaceDetectionCommand"), exports);
|
|
63
65
|
tslib_1.__exportStar(require("./StartFaceSearchCommand"), exports);
|
|
64
66
|
tslib_1.__exportStar(require("./StartLabelDetectionCommand"), exports);
|
|
67
|
+
tslib_1.__exportStar(require("./StartMediaAnalysisJobCommand"), exports);
|
|
65
68
|
tslib_1.__exportStar(require("./StartPersonTrackingCommand"), exports);
|
|
66
69
|
tslib_1.__exportStar(require("./StartProjectVersionCommand"), exports);
|
|
67
70
|
tslib_1.__exportStar(require("./StartSegmentDetectionCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const
|
|
5
|
-
const a = "isSet",
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const s = "required", t = "fn", u = "argv", v = "ref";
|
|
5
|
+
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "String" }, i = { [s]: true, "default": false, "type": "Boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [t]: b, [u]: [j] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }, { conditions: [{ [t]: b, [u]: r }], rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [t]: c, [u]: [a, n] }, o], rules: [{ endpoint: { url: "https://rekognition-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: p, rules: [{ conditions: [{ [t]: c, [u]: [n, a] }], rules: [{ endpoint: { url: "https://rekognition-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: q, rules: [{ conditions: [o], rules: [{ endpoint: { url: "https://rekognition.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://rekognition.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VideoColorRange = exports.VideoJobStatus = exports.FaceSearchSortBy = exports.FaceAttributes = exports.UnsuccessfulFaceDisassociationReason = exports.TextTypes = exports.HumanLoopQuotaExceededException = exports.DetectLabelsFeatureName = exports.ResourceNotReadyException = exports.StreamProcessorStatus = exports.InvalidPaginationTokenException = exports.ProjectVersionStatus = exports.InvalidPolicyRevisionIdException = exports.ProjectStatus = exports.UnsuccessfulFaceDeletionReason = exports.DatasetStatusMessageCode = exports.DatasetStatus = exports.CustomizationFeature = exports.ProjectAutoUpdate = exports.DatasetType = exports.ResourceAlreadyExistsException = exports.ResourceInUseException = exports.LimitExceededException = exports.ContentModerationSortBy = exports.ContentModerationAggregateBy = exports.ContentClassifier = exports.InvalidS3ObjectException = exports.InvalidImageFormatException = exports.ImageTooLargeException = exports.OrientationCorrection = exports.QualityFilter = exports.CelebrityRecognitionSortBy = exports.GenderType = exports.KnownGenderType = exports.LandmarkType = exports.EmotionName = exports.ProtectiveEquipmentType = exports.BodyPart = exports.Attribute = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.ProvisionedThroughputExceededException = exports.InvalidParameterException = exports.InternalServerError = exports.IdempotentParameterMismatchException = exports.ConflictException = exports.UserStatus = exports.UnsuccessfulFaceAssociationReason = exports.AccessDeniedException = void 0;
|
|
4
|
-
exports.GetFaceLivenessSessionResultsResponseFilterSensitiveLog = exports.AuditImageFilterSensitiveLog = exports.MalformedPolicyDocumentException = exports.LabelDetectionFeatureName = exports.Reason = exports.SegmentType = exports.TechnicalCueType = exports.PersonTrackingSortBy = exports.LabelDetectionSortBy = exports.LabelDetectionAggregateBy = exports.SessionNotFoundException = exports.LivenessSessionStatus = void 0;
|
|
4
|
+
exports.GetFaceLivenessSessionResultsResponseFilterSensitiveLog = exports.AuditImageFilterSensitiveLog = exports.MalformedPolicyDocumentException = exports.LabelDetectionFeatureName = exports.InvalidManifestException = exports.Reason = exports.SegmentType = exports.TechnicalCueType = exports.PersonTrackingSortBy = exports.MediaAnalysisJobStatus = exports.MediaAnalysisJobFailureCode = exports.LabelDetectionSortBy = exports.LabelDetectionAggregateBy = exports.SessionNotFoundException = exports.LivenessSessionStatus = void 0;
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const RekognitionServiceException_1 = require("./RekognitionServiceException");
|
|
7
7
|
class AccessDeniedException extends RekognitionServiceException_1.RekognitionServiceException {
|
|
@@ -550,6 +550,24 @@ exports.LabelDetectionSortBy = {
|
|
|
550
550
|
NAME: "NAME",
|
|
551
551
|
TIMESTAMP: "TIMESTAMP",
|
|
552
552
|
};
|
|
553
|
+
exports.MediaAnalysisJobFailureCode = {
|
|
554
|
+
ACCESS_DENIED: "ACCESS_DENIED",
|
|
555
|
+
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
556
|
+
INVALID_KMS_KEY: "INVALID_KMS_KEY",
|
|
557
|
+
INVALID_MANIFEST: "INVALID_MANIFEST",
|
|
558
|
+
INVALID_OUTPUT_CONFIG: "INVALID_OUTPUT_CONFIG",
|
|
559
|
+
INVALID_S3_OBJECT: "INVALID_S3_OBJECT",
|
|
560
|
+
RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND",
|
|
561
|
+
RESOURCE_NOT_READY: "RESOURCE_NOT_READY",
|
|
562
|
+
THROTTLED: "THROTTLED",
|
|
563
|
+
};
|
|
564
|
+
exports.MediaAnalysisJobStatus = {
|
|
565
|
+
CREATED: "CREATED",
|
|
566
|
+
FAILED: "FAILED",
|
|
567
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
568
|
+
QUEUED: "QUEUED",
|
|
569
|
+
SUCCEEDED: "SUCCEEDED",
|
|
570
|
+
};
|
|
553
571
|
exports.PersonTrackingSortBy = {
|
|
554
572
|
INDEX: "INDEX",
|
|
555
573
|
TIMESTAMP: "TIMESTAMP",
|
|
@@ -576,6 +594,22 @@ exports.Reason = {
|
|
|
576
594
|
LOW_SHARPNESS: "LOW_SHARPNESS",
|
|
577
595
|
SMALL_BOUNDING_BOX: "SMALL_BOUNDING_BOX",
|
|
578
596
|
};
|
|
597
|
+
class InvalidManifestException extends RekognitionServiceException_1.RekognitionServiceException {
|
|
598
|
+
constructor(opts) {
|
|
599
|
+
super({
|
|
600
|
+
name: "InvalidManifestException",
|
|
601
|
+
$fault: "client",
|
|
602
|
+
...opts,
|
|
603
|
+
});
|
|
604
|
+
this.name = "InvalidManifestException";
|
|
605
|
+
this.$fault = "client";
|
|
606
|
+
Object.setPrototypeOf(this, InvalidManifestException.prototype);
|
|
607
|
+
this.Message = opts.Message;
|
|
608
|
+
this.Code = opts.Code;
|
|
609
|
+
this.Logref = opts.Logref;
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
exports.InvalidManifestException = InvalidManifestException;
|
|
579
613
|
exports.LabelDetectionFeatureName = {
|
|
580
614
|
GENERAL_LABELS: "GENERAL_LABELS",
|
|
581
615
|
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListMediaAnalysisJobs = void 0;
|
|
4
|
+
const ListMediaAnalysisJobsCommand_1 = require("../commands/ListMediaAnalysisJobsCommand");
|
|
5
|
+
const RekognitionClient_1 = require("../RekognitionClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListMediaAnalysisJobsCommand_1.ListMediaAnalysisJobsCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListMediaAnalysisJobs(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.NextToken = token;
|
|
15
|
+
input["MaxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof RekognitionClient_1.RekognitionClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected Rekognition | RekognitionClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.NextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListMediaAnalysisJobs = paginateListMediaAnalysisJobs;
|
|
@@ -16,6 +16,7 @@ tslib_1.__exportStar(require("./ListCollectionsPaginator"), exports);
|
|
|
16
16
|
tslib_1.__exportStar(require("./ListDatasetEntriesPaginator"), exports);
|
|
17
17
|
tslib_1.__exportStar(require("./ListDatasetLabelsPaginator"), exports);
|
|
18
18
|
tslib_1.__exportStar(require("./ListFacesPaginator"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./ListMediaAnalysisJobsPaginator"), exports);
|
|
19
20
|
tslib_1.__exportStar(require("./ListProjectPoliciesPaginator"), exports);
|
|
20
21
|
tslib_1.__exportStar(require("./ListStreamProcessorsPaginator"), exports);
|
|
21
22
|
tslib_1.__exportStar(require("./ListUsersPaginator"), exports);
|