@aws-sdk/client-rekognition 3.434.0 → 3.435.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.
|
@@ -111,6 +111,54 @@ export interface GetMediaAnalysisJobCommandOutput extends GetMediaAnalysisJobRes
|
|
|
111
111
|
* @throws {@link RekognitionServiceException}
|
|
112
112
|
* <p>Base exception class for all service exceptions from Rekognition service.</p>
|
|
113
113
|
*
|
|
114
|
+
* @example GetMediaAnalysisJob
|
|
115
|
+
* ```javascript
|
|
116
|
+
* // Retrieves the results for a given media analysis job.
|
|
117
|
+
* const input = {
|
|
118
|
+
* "JobId": "861a0645d98ef88efb75477628c011c04942d9d5f58faf2703c393c8cf8c1537"
|
|
119
|
+
* };
|
|
120
|
+
* const command = new GetMediaAnalysisJobCommand(input);
|
|
121
|
+
* const response = await client.send(command);
|
|
122
|
+
* /* response ==
|
|
123
|
+
* {
|
|
124
|
+
* "CompletionTimestamp": "2023-07-28T08:05:51.958000-07:00",
|
|
125
|
+
* "CreationTimestamp": "2023-07-28T08:05:51.958000-06:00",
|
|
126
|
+
* "Input": {
|
|
127
|
+
* "S3Object": {
|
|
128
|
+
* "Bucket": "input-bucket",
|
|
129
|
+
* "Name": "input-manifest.json"
|
|
130
|
+
* }
|
|
131
|
+
* },
|
|
132
|
+
* "JobId": "861a0645d98ef88efb75477628c011c04942d9d5f58faf2703c393c8cf8c1537",
|
|
133
|
+
* "JobName": "job-name",
|
|
134
|
+
* "ManifestSummary": {
|
|
135
|
+
* "S3Object": {
|
|
136
|
+
* "Bucket": "output-bucket",
|
|
137
|
+
* "Name": "output-location/861a0645d98ef88efb75477628c011c04942d9d5f58faf2703c393c8cf8c1537-manifest-summary.json"
|
|
138
|
+
* }
|
|
139
|
+
* },
|
|
140
|
+
* "OperationsConfig": {
|
|
141
|
+
* "DetectModerationLabels": {
|
|
142
|
+
* "MinConfidence": 50,
|
|
143
|
+
* "ProjectVersion": "arn:aws:rekognition:us-east-1:111122223333:project/my-project/version/1/1690556751958"
|
|
144
|
+
* }
|
|
145
|
+
* },
|
|
146
|
+
* "OutputConfig": {
|
|
147
|
+
* "S3Bucket": "output-bucket",
|
|
148
|
+
* "S3KeyPrefix": "output-location"
|
|
149
|
+
* },
|
|
150
|
+
* "Results": {
|
|
151
|
+
* "S3Object": {
|
|
152
|
+
* "Bucket": "output-bucket",
|
|
153
|
+
* "Name": "output-location/861a0645d98ef88efb75477628c011c04942d9d5f58faf2703c393c8cf8c1537-results.jsonl"
|
|
154
|
+
* }
|
|
155
|
+
* },
|
|
156
|
+
* "Status": "SUCCEEDED"
|
|
157
|
+
* }
|
|
158
|
+
* *\/
|
|
159
|
+
* // example id: getmediaanalysisjob-1697650068124
|
|
160
|
+
* ```
|
|
161
|
+
*
|
|
114
162
|
*/
|
|
115
163
|
export declare class GetMediaAnalysisJobCommand extends $Command<GetMediaAnalysisJobCommandInput, GetMediaAnalysisJobCommandOutput, RekognitionClientResolvedConfig> {
|
|
116
164
|
readonly input: GetMediaAnalysisJobCommandInput;
|
|
@@ -116,6 +116,58 @@ export interface ListMediaAnalysisJobsCommandOutput extends ListMediaAnalysisJob
|
|
|
116
116
|
* @throws {@link RekognitionServiceException}
|
|
117
117
|
* <p>Base exception class for all service exceptions from Rekognition service.</p>
|
|
118
118
|
*
|
|
119
|
+
* @example ListMediaAnalysisJobs
|
|
120
|
+
* ```javascript
|
|
121
|
+
* // Returns a list of media analysis jobs.
|
|
122
|
+
* const input = {
|
|
123
|
+
* "MaxResults": 10
|
|
124
|
+
* };
|
|
125
|
+
* const command = new ListMediaAnalysisJobsCommand(input);
|
|
126
|
+
* const response = await client.send(command);
|
|
127
|
+
* /* response ==
|
|
128
|
+
* {
|
|
129
|
+
* "MediaAnalysisJobs": [
|
|
130
|
+
* {
|
|
131
|
+
* "CompletionTimestamp": "2023-07-28T08:05:51.958000-07:00",
|
|
132
|
+
* "CreationTimestamp": "2023-07-28T08:05:51.958000-06:00",
|
|
133
|
+
* "Input": {
|
|
134
|
+
* "S3Object": {
|
|
135
|
+
* "Bucket": "input-bucket",
|
|
136
|
+
* "Name": "input-manifest.json"
|
|
137
|
+
* }
|
|
138
|
+
* },
|
|
139
|
+
* "JobId": "861a0645d98ef88efb75477628c011c04942d9d5f58faf2703c393c8cf8c1537",
|
|
140
|
+
* "JobName": "job-name",
|
|
141
|
+
* "ManifestSummary": {
|
|
142
|
+
* "S3Object": {
|
|
143
|
+
* "Bucket": "output-bucket",
|
|
144
|
+
* "Name": "output-location/861a0645d98ef88efb75477628c011c04942d9d5f58faf2703c393c8cf8c1537-manifest-summary.json"
|
|
145
|
+
* }
|
|
146
|
+
* },
|
|
147
|
+
* "OperationsConfig": {
|
|
148
|
+
* "DetectModerationLabels": {
|
|
149
|
+
* "MinConfidence": 50,
|
|
150
|
+
* "ProjectVersion": "arn:aws:rekognition:us-east-1:111122223333:project/my-project/version/1/1690556751958"
|
|
151
|
+
* }
|
|
152
|
+
* },
|
|
153
|
+
* "OutputConfig": {
|
|
154
|
+
* "S3Bucket": "output-bucket",
|
|
155
|
+
* "S3KeyPrefix": "output-location"
|
|
156
|
+
* },
|
|
157
|
+
* "Results": {
|
|
158
|
+
* "S3Object": {
|
|
159
|
+
* "Bucket": "output-bucket",
|
|
160
|
+
* "Name": "output-location/861a0645d98ef88efb75477628c011c04942d9d5f58faf2703c393c8cf8c1537-results.jsonl"
|
|
161
|
+
* }
|
|
162
|
+
* },
|
|
163
|
+
* "Status": "SUCCEEDED"
|
|
164
|
+
* }
|
|
165
|
+
* ]
|
|
166
|
+
* }
|
|
167
|
+
* *\/
|
|
168
|
+
* // example id: listmediaanalysisjobs-1697650653077
|
|
169
|
+
* ```
|
|
170
|
+
*
|
|
119
171
|
*/
|
|
120
172
|
export declare class ListMediaAnalysisJobsCommand extends $Command<ListMediaAnalysisJobsCommandInput, ListMediaAnalysisJobsCommandOutput, RekognitionClientResolvedConfig> {
|
|
121
173
|
readonly input: ListMediaAnalysisJobsCommandInput;
|
|
@@ -112,6 +112,38 @@ export interface StartMediaAnalysisJobCommandOutput extends StartMediaAnalysisJo
|
|
|
112
112
|
* @throws {@link RekognitionServiceException}
|
|
113
113
|
* <p>Base exception class for all service exceptions from Rekognition service.</p>
|
|
114
114
|
*
|
|
115
|
+
* @example StartMediaAnalysisJob
|
|
116
|
+
* ```javascript
|
|
117
|
+
* // Initiates a new media analysis job.
|
|
118
|
+
* const input = {
|
|
119
|
+
* "Input": {
|
|
120
|
+
* "S3Object": {
|
|
121
|
+
* "Bucket": "input-bucket",
|
|
122
|
+
* "Name": "input-manifest.json"
|
|
123
|
+
* }
|
|
124
|
+
* },
|
|
125
|
+
* "JobName": "job-name",
|
|
126
|
+
* "OperationsConfig": {
|
|
127
|
+
* "DetectModerationLabels": {
|
|
128
|
+
* "MinConfidence": 50,
|
|
129
|
+
* "ProjectVersion": "arn:aws:rekognition:us-east-1:111122223333:project/my-project/version/1/1690556751958"
|
|
130
|
+
* }
|
|
131
|
+
* },
|
|
132
|
+
* "OutputConfig": {
|
|
133
|
+
* "S3Bucket": "output-bucket",
|
|
134
|
+
* "S3KeyPrefix": "output-location"
|
|
135
|
+
* }
|
|
136
|
+
* };
|
|
137
|
+
* const command = new StartMediaAnalysisJobCommand(input);
|
|
138
|
+
* const response = await client.send(command);
|
|
139
|
+
* /* response ==
|
|
140
|
+
* {
|
|
141
|
+
* "JobId": "861a0645d98ef88efb75477628c011c04942d9d5f58faf2703c393c8cf8c1537"
|
|
142
|
+
* }
|
|
143
|
+
* *\/
|
|
144
|
+
* // example id: startmediaanalysisjob-1697651090922
|
|
145
|
+
* ```
|
|
146
|
+
*
|
|
115
147
|
*/
|
|
116
148
|
export declare class StartMediaAnalysisJobCommand extends $Command<StartMediaAnalysisJobCommandInput, StartMediaAnalysisJobCommandOutput, RekognitionClientResolvedConfig> {
|
|
117
149
|
readonly input: StartMediaAnalysisJobCommandInput;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-rekognition",
|
|
3
3
|
"description": "AWS SDK for JavaScript Rekognition Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.435.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.435.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.435.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.433.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.433.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.433.0",
|