@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
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListMediaAnalysisJobsCommand, } from "../commands/ListMediaAnalysisJobsCommand";
|
|
2
|
+
import { RekognitionClient } from "../RekognitionClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListMediaAnalysisJobsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListMediaAnalysisJobs(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.NextToken = token;
|
|
12
|
+
input["MaxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof RekognitionClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected Rekognition | RekognitionClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.NextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -13,6 +13,7 @@ export * from "./ListCollectionsPaginator";
|
|
|
13
13
|
export * from "./ListDatasetEntriesPaginator";
|
|
14
14
|
export * from "./ListDatasetLabelsPaginator";
|
|
15
15
|
export * from "./ListFacesPaginator";
|
|
16
|
+
export * from "./ListMediaAnalysisJobsPaginator";
|
|
16
17
|
export * from "./ListProjectPoliciesPaginator";
|
|
17
18
|
export * from "./ListStreamProcessorsPaginator";
|
|
18
19
|
export * from "./ListUsersPaginator";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
2
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, LazyJsonString as __LazyJsonString, limitedParseFloat32 as __limitedParseFloat32, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
|
-
import { AccessDeniedException, ConflictException, HumanLoopQuotaExceededException, IdempotentParameterMismatchException, ImageTooLargeException, InternalServerError, InvalidImageFormatException, InvalidPaginationTokenException, InvalidParameterException, InvalidPolicyRevisionIdException, InvalidS3ObjectException, LimitExceededException, MalformedPolicyDocumentException, ProvisionedThroughputExceededException, ResourceAlreadyExistsException, ResourceInUseException, ResourceNotFoundException, ResourceNotReadyException, ServiceQuotaExceededException, SessionNotFoundException, ThrottlingException, } from "../models/models_0";
|
|
4
|
+
import { AccessDeniedException, ConflictException, HumanLoopQuotaExceededException, IdempotentParameterMismatchException, ImageTooLargeException, InternalServerError, InvalidImageFormatException, InvalidManifestException, InvalidPaginationTokenException, InvalidParameterException, InvalidPolicyRevisionIdException, InvalidS3ObjectException, LimitExceededException, MalformedPolicyDocumentException, ProvisionedThroughputExceededException, ResourceAlreadyExistsException, ResourceInUseException, ResourceNotFoundException, ResourceNotReadyException, ServiceQuotaExceededException, SessionNotFoundException, ThrottlingException, } from "../models/models_0";
|
|
5
5
|
import { VideoTooLargeException, } from "../models/models_1";
|
|
6
6
|
import { RekognitionServiceException as __BaseException } from "../models/RekognitionServiceException";
|
|
7
7
|
export const se_AssociateFacesCommand = async (input, context) => {
|
|
@@ -232,6 +232,12 @@ export const se_GetLabelDetectionCommand = async (input, context) => {
|
|
|
232
232
|
body = JSON.stringify(_json(input));
|
|
233
233
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
234
234
|
};
|
|
235
|
+
export const se_GetMediaAnalysisJobCommand = async (input, context) => {
|
|
236
|
+
const headers = sharedHeaders("GetMediaAnalysisJob");
|
|
237
|
+
let body;
|
|
238
|
+
body = JSON.stringify(_json(input));
|
|
239
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
240
|
+
};
|
|
235
241
|
export const se_GetPersonTrackingCommand = async (input, context) => {
|
|
236
242
|
const headers = sharedHeaders("GetPersonTracking");
|
|
237
243
|
let body;
|
|
@@ -280,6 +286,12 @@ export const se_ListFacesCommand = async (input, context) => {
|
|
|
280
286
|
body = JSON.stringify(_json(input));
|
|
281
287
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
282
288
|
};
|
|
289
|
+
export const se_ListMediaAnalysisJobsCommand = async (input, context) => {
|
|
290
|
+
const headers = sharedHeaders("ListMediaAnalysisJobs");
|
|
291
|
+
let body;
|
|
292
|
+
body = JSON.stringify(_json(input));
|
|
293
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
294
|
+
};
|
|
283
295
|
export const se_ListProjectPoliciesCommand = async (input, context) => {
|
|
284
296
|
const headers = sharedHeaders("ListProjectPolicies");
|
|
285
297
|
let body;
|
|
@@ -370,6 +382,12 @@ export const se_StartLabelDetectionCommand = async (input, context) => {
|
|
|
370
382
|
body = JSON.stringify(se_StartLabelDetectionRequest(input, context));
|
|
371
383
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
372
384
|
};
|
|
385
|
+
export const se_StartMediaAnalysisJobCommand = async (input, context) => {
|
|
386
|
+
const headers = sharedHeaders("StartMediaAnalysisJob");
|
|
387
|
+
let body;
|
|
388
|
+
body = JSON.stringify(se_StartMediaAnalysisJobRequest(input, context));
|
|
389
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
390
|
+
};
|
|
373
391
|
export const se_StartPersonTrackingCommand = async (input, context) => {
|
|
374
392
|
const headers = sharedHeaders("StartPersonTracking");
|
|
375
393
|
let body;
|
|
@@ -2387,6 +2405,53 @@ const de_GetLabelDetectionCommandError = async (output, context) => {
|
|
|
2387
2405
|
});
|
|
2388
2406
|
}
|
|
2389
2407
|
};
|
|
2408
|
+
export const de_GetMediaAnalysisJobCommand = async (output, context) => {
|
|
2409
|
+
if (output.statusCode >= 300) {
|
|
2410
|
+
return de_GetMediaAnalysisJobCommandError(output, context);
|
|
2411
|
+
}
|
|
2412
|
+
const data = await parseBody(output.body, context);
|
|
2413
|
+
let contents = {};
|
|
2414
|
+
contents = de_GetMediaAnalysisJobResponse(data, context);
|
|
2415
|
+
const response = {
|
|
2416
|
+
$metadata: deserializeMetadata(output),
|
|
2417
|
+
...contents,
|
|
2418
|
+
};
|
|
2419
|
+
return response;
|
|
2420
|
+
};
|
|
2421
|
+
const de_GetMediaAnalysisJobCommandError = async (output, context) => {
|
|
2422
|
+
const parsedOutput = {
|
|
2423
|
+
...output,
|
|
2424
|
+
body: await parseErrorBody(output.body, context),
|
|
2425
|
+
};
|
|
2426
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2427
|
+
switch (errorCode) {
|
|
2428
|
+
case "AccessDeniedException":
|
|
2429
|
+
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
2430
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2431
|
+
case "InternalServerError":
|
|
2432
|
+
case "com.amazonaws.rekognition#InternalServerError":
|
|
2433
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2434
|
+
case "InvalidParameterException":
|
|
2435
|
+
case "com.amazonaws.rekognition#InvalidParameterException":
|
|
2436
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2437
|
+
case "ProvisionedThroughputExceededException":
|
|
2438
|
+
case "com.amazonaws.rekognition#ProvisionedThroughputExceededException":
|
|
2439
|
+
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
2440
|
+
case "ResourceNotFoundException":
|
|
2441
|
+
case "com.amazonaws.rekognition#ResourceNotFoundException":
|
|
2442
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2443
|
+
case "ThrottlingException":
|
|
2444
|
+
case "com.amazonaws.rekognition#ThrottlingException":
|
|
2445
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2446
|
+
default:
|
|
2447
|
+
const parsedBody = parsedOutput.body;
|
|
2448
|
+
return throwDefaultError({
|
|
2449
|
+
output,
|
|
2450
|
+
parsedBody,
|
|
2451
|
+
errorCode,
|
|
2452
|
+
});
|
|
2453
|
+
}
|
|
2454
|
+
};
|
|
2390
2455
|
export const de_GetPersonTrackingCommand = async (output, context) => {
|
|
2391
2456
|
if (output.statusCode >= 300) {
|
|
2392
2457
|
return de_GetPersonTrackingCommandError(output, context);
|
|
@@ -2808,6 +2873,53 @@ const de_ListFacesCommandError = async (output, context) => {
|
|
|
2808
2873
|
});
|
|
2809
2874
|
}
|
|
2810
2875
|
};
|
|
2876
|
+
export const de_ListMediaAnalysisJobsCommand = async (output, context) => {
|
|
2877
|
+
if (output.statusCode >= 300) {
|
|
2878
|
+
return de_ListMediaAnalysisJobsCommandError(output, context);
|
|
2879
|
+
}
|
|
2880
|
+
const data = await parseBody(output.body, context);
|
|
2881
|
+
let contents = {};
|
|
2882
|
+
contents = de_ListMediaAnalysisJobsResponse(data, context);
|
|
2883
|
+
const response = {
|
|
2884
|
+
$metadata: deserializeMetadata(output),
|
|
2885
|
+
...contents,
|
|
2886
|
+
};
|
|
2887
|
+
return response;
|
|
2888
|
+
};
|
|
2889
|
+
const de_ListMediaAnalysisJobsCommandError = async (output, context) => {
|
|
2890
|
+
const parsedOutput = {
|
|
2891
|
+
...output,
|
|
2892
|
+
body: await parseErrorBody(output.body, context),
|
|
2893
|
+
};
|
|
2894
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2895
|
+
switch (errorCode) {
|
|
2896
|
+
case "AccessDeniedException":
|
|
2897
|
+
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
2898
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2899
|
+
case "InternalServerError":
|
|
2900
|
+
case "com.amazonaws.rekognition#InternalServerError":
|
|
2901
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2902
|
+
case "InvalidPaginationTokenException":
|
|
2903
|
+
case "com.amazonaws.rekognition#InvalidPaginationTokenException":
|
|
2904
|
+
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
2905
|
+
case "InvalidParameterException":
|
|
2906
|
+
case "com.amazonaws.rekognition#InvalidParameterException":
|
|
2907
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2908
|
+
case "ProvisionedThroughputExceededException":
|
|
2909
|
+
case "com.amazonaws.rekognition#ProvisionedThroughputExceededException":
|
|
2910
|
+
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
2911
|
+
case "ThrottlingException":
|
|
2912
|
+
case "com.amazonaws.rekognition#ThrottlingException":
|
|
2913
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2914
|
+
default:
|
|
2915
|
+
const parsedBody = parsedOutput.body;
|
|
2916
|
+
return throwDefaultError({
|
|
2917
|
+
output,
|
|
2918
|
+
parsedBody,
|
|
2919
|
+
errorCode,
|
|
2920
|
+
});
|
|
2921
|
+
}
|
|
2922
|
+
};
|
|
2811
2923
|
export const de_ListProjectPoliciesCommand = async (output, context) => {
|
|
2812
2924
|
if (output.statusCode >= 300) {
|
|
2813
2925
|
return de_ListProjectPoliciesCommandError(output, context);
|
|
@@ -3606,6 +3718,68 @@ const de_StartLabelDetectionCommandError = async (output, context) => {
|
|
|
3606
3718
|
});
|
|
3607
3719
|
}
|
|
3608
3720
|
};
|
|
3721
|
+
export const de_StartMediaAnalysisJobCommand = async (output, context) => {
|
|
3722
|
+
if (output.statusCode >= 300) {
|
|
3723
|
+
return de_StartMediaAnalysisJobCommandError(output, context);
|
|
3724
|
+
}
|
|
3725
|
+
const data = await parseBody(output.body, context);
|
|
3726
|
+
let contents = {};
|
|
3727
|
+
contents = _json(data);
|
|
3728
|
+
const response = {
|
|
3729
|
+
$metadata: deserializeMetadata(output),
|
|
3730
|
+
...contents,
|
|
3731
|
+
};
|
|
3732
|
+
return response;
|
|
3733
|
+
};
|
|
3734
|
+
const de_StartMediaAnalysisJobCommandError = async (output, context) => {
|
|
3735
|
+
const parsedOutput = {
|
|
3736
|
+
...output,
|
|
3737
|
+
body: await parseErrorBody(output.body, context),
|
|
3738
|
+
};
|
|
3739
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3740
|
+
switch (errorCode) {
|
|
3741
|
+
case "AccessDeniedException":
|
|
3742
|
+
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
3743
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3744
|
+
case "IdempotentParameterMismatchException":
|
|
3745
|
+
case "com.amazonaws.rekognition#IdempotentParameterMismatchException":
|
|
3746
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
3747
|
+
case "InternalServerError":
|
|
3748
|
+
case "com.amazonaws.rekognition#InternalServerError":
|
|
3749
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3750
|
+
case "InvalidManifestException":
|
|
3751
|
+
case "com.amazonaws.rekognition#InvalidManifestException":
|
|
3752
|
+
throw await de_InvalidManifestExceptionRes(parsedOutput, context);
|
|
3753
|
+
case "InvalidParameterException":
|
|
3754
|
+
case "com.amazonaws.rekognition#InvalidParameterException":
|
|
3755
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3756
|
+
case "InvalidS3ObjectException":
|
|
3757
|
+
case "com.amazonaws.rekognition#InvalidS3ObjectException":
|
|
3758
|
+
throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
|
|
3759
|
+
case "LimitExceededException":
|
|
3760
|
+
case "com.amazonaws.rekognition#LimitExceededException":
|
|
3761
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3762
|
+
case "ProvisionedThroughputExceededException":
|
|
3763
|
+
case "com.amazonaws.rekognition#ProvisionedThroughputExceededException":
|
|
3764
|
+
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
3765
|
+
case "ResourceNotFoundException":
|
|
3766
|
+
case "com.amazonaws.rekognition#ResourceNotFoundException":
|
|
3767
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3768
|
+
case "ResourceNotReadyException":
|
|
3769
|
+
case "com.amazonaws.rekognition#ResourceNotReadyException":
|
|
3770
|
+
throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
|
|
3771
|
+
case "ThrottlingException":
|
|
3772
|
+
case "com.amazonaws.rekognition#ThrottlingException":
|
|
3773
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3774
|
+
default:
|
|
3775
|
+
const parsedBody = parsedOutput.body;
|
|
3776
|
+
return throwDefaultError({
|
|
3777
|
+
output,
|
|
3778
|
+
parsedBody,
|
|
3779
|
+
errorCode,
|
|
3780
|
+
});
|
|
3781
|
+
}
|
|
3782
|
+
};
|
|
3609
3783
|
export const de_StartPersonTrackingCommand = async (output, context) => {
|
|
3610
3784
|
if (output.statusCode >= 300) {
|
|
3611
3785
|
return de_StartPersonTrackingCommandError(output, context);
|
|
@@ -4240,6 +4414,15 @@ const de_InvalidImageFormatExceptionRes = async (parsedOutput, context) => {
|
|
|
4240
4414
|
});
|
|
4241
4415
|
return __decorateServiceException(exception, body);
|
|
4242
4416
|
};
|
|
4417
|
+
const de_InvalidManifestExceptionRes = async (parsedOutput, context) => {
|
|
4418
|
+
const body = parsedOutput.body;
|
|
4419
|
+
const deserialized = _json(body);
|
|
4420
|
+
const exception = new InvalidManifestException({
|
|
4421
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
4422
|
+
...deserialized,
|
|
4423
|
+
});
|
|
4424
|
+
return __decorateServiceException(exception, body);
|
|
4425
|
+
};
|
|
4243
4426
|
const de_InvalidPaginationTokenExceptionRes = async (parsedOutput, context) => {
|
|
4244
4427
|
const body = parsedOutput.body;
|
|
4245
4428
|
const deserialized = _json(body);
|
|
@@ -4560,6 +4743,17 @@ const se_IndexFacesRequest = (input, context) => {
|
|
|
4560
4743
|
QualityFilter: [],
|
|
4561
4744
|
});
|
|
4562
4745
|
};
|
|
4746
|
+
const se_MediaAnalysisDetectModerationLabelsConfig = (input, context) => {
|
|
4747
|
+
return take(input, {
|
|
4748
|
+
MinConfidence: __serializeFloat,
|
|
4749
|
+
ProjectVersion: [],
|
|
4750
|
+
});
|
|
4751
|
+
};
|
|
4752
|
+
const se_MediaAnalysisOperationsConfig = (input, context) => {
|
|
4753
|
+
return take(input, {
|
|
4754
|
+
DetectModerationLabels: (_) => se_MediaAnalysisDetectModerationLabelsConfig(_, context),
|
|
4755
|
+
});
|
|
4756
|
+
};
|
|
4563
4757
|
const se_Point = (input, context) => {
|
|
4564
4758
|
return take(input, {
|
|
4565
4759
|
X: __serializeFloat,
|
|
@@ -4662,6 +4856,16 @@ const se_StartLabelDetectionRequest = (input, context) => {
|
|
|
4662
4856
|
Video: _json,
|
|
4663
4857
|
});
|
|
4664
4858
|
};
|
|
4859
|
+
const se_StartMediaAnalysisJobRequest = (input, context) => {
|
|
4860
|
+
return take(input, {
|
|
4861
|
+
ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
4862
|
+
Input: _json,
|
|
4863
|
+
JobName: [],
|
|
4864
|
+
KmsKeyId: [],
|
|
4865
|
+
OperationsConfig: (_) => se_MediaAnalysisOperationsConfig(_, context),
|
|
4866
|
+
OutputConfig: _json,
|
|
4867
|
+
});
|
|
4868
|
+
};
|
|
4665
4869
|
const se_StartSegmentDetectionFilters = (input, context) => {
|
|
4666
4870
|
return take(input, {
|
|
4667
4871
|
ShotFilter: (_) => se_StartShotDetectionFilter(_, context),
|
|
@@ -5327,6 +5531,22 @@ const de_GetLabelDetectionResponse = (output, context) => {
|
|
|
5327
5531
|
VideoMetadata: (_) => de_VideoMetadata(_, context),
|
|
5328
5532
|
});
|
|
5329
5533
|
};
|
|
5534
|
+
const de_GetMediaAnalysisJobResponse = (output, context) => {
|
|
5535
|
+
return take(output, {
|
|
5536
|
+
CompletionTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
5537
|
+
CreationTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
5538
|
+
FailureDetails: _json,
|
|
5539
|
+
Input: _json,
|
|
5540
|
+
JobId: __expectString,
|
|
5541
|
+
JobName: __expectString,
|
|
5542
|
+
KmsKeyId: __expectString,
|
|
5543
|
+
ManifestSummary: _json,
|
|
5544
|
+
OperationsConfig: (_) => de_MediaAnalysisOperationsConfig(_, context),
|
|
5545
|
+
OutputConfig: _json,
|
|
5546
|
+
Results: _json,
|
|
5547
|
+
Status: __expectString,
|
|
5548
|
+
});
|
|
5549
|
+
};
|
|
5330
5550
|
const de_GetPersonTrackingResponse = (output, context) => {
|
|
5331
5551
|
return take(output, {
|
|
5332
5552
|
JobId: __expectString,
|
|
@@ -5459,12 +5679,53 @@ const de_ListFacesResponse = (output, context) => {
|
|
|
5459
5679
|
NextToken: __expectString,
|
|
5460
5680
|
});
|
|
5461
5681
|
};
|
|
5682
|
+
const de_ListMediaAnalysisJobsResponse = (output, context) => {
|
|
5683
|
+
return take(output, {
|
|
5684
|
+
MediaAnalysisJobs: (_) => de_MediaAnalysisJobDescriptions(_, context),
|
|
5685
|
+
NextToken: __expectString,
|
|
5686
|
+
});
|
|
5687
|
+
};
|
|
5462
5688
|
const de_ListProjectPoliciesResponse = (output, context) => {
|
|
5463
5689
|
return take(output, {
|
|
5464
5690
|
NextToken: __expectString,
|
|
5465
5691
|
ProjectPolicies: (_) => de_ProjectPolicies(_, context),
|
|
5466
5692
|
});
|
|
5467
5693
|
};
|
|
5694
|
+
const de_MediaAnalysisDetectModerationLabelsConfig = (output, context) => {
|
|
5695
|
+
return take(output, {
|
|
5696
|
+
MinConfidence: __limitedParseFloat32,
|
|
5697
|
+
ProjectVersion: __expectString,
|
|
5698
|
+
});
|
|
5699
|
+
};
|
|
5700
|
+
const de_MediaAnalysisJobDescription = (output, context) => {
|
|
5701
|
+
return take(output, {
|
|
5702
|
+
CompletionTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
5703
|
+
CreationTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
5704
|
+
FailureDetails: _json,
|
|
5705
|
+
Input: _json,
|
|
5706
|
+
JobId: __expectString,
|
|
5707
|
+
JobName: __expectString,
|
|
5708
|
+
KmsKeyId: __expectString,
|
|
5709
|
+
ManifestSummary: _json,
|
|
5710
|
+
OperationsConfig: (_) => de_MediaAnalysisOperationsConfig(_, context),
|
|
5711
|
+
OutputConfig: _json,
|
|
5712
|
+
Results: _json,
|
|
5713
|
+
Status: __expectString,
|
|
5714
|
+
});
|
|
5715
|
+
};
|
|
5716
|
+
const de_MediaAnalysisJobDescriptions = (output, context) => {
|
|
5717
|
+
const retVal = (output || [])
|
|
5718
|
+
.filter((e) => e != null)
|
|
5719
|
+
.map((entry) => {
|
|
5720
|
+
return de_MediaAnalysisJobDescription(entry, context);
|
|
5721
|
+
});
|
|
5722
|
+
return retVal;
|
|
5723
|
+
};
|
|
5724
|
+
const de_MediaAnalysisOperationsConfig = (output, context) => {
|
|
5725
|
+
return take(output, {
|
|
5726
|
+
DetectModerationLabels: (_) => de_MediaAnalysisDetectModerationLabelsConfig(_, context),
|
|
5727
|
+
});
|
|
5728
|
+
};
|
|
5468
5729
|
const de_ModerationLabel = (output, context) => {
|
|
5469
5730
|
return take(output, {
|
|
5470
5731
|
Confidence: __limitedParseFloat32,
|
|
@@ -37,6 +37,7 @@ import { GetFaceDetectionCommandInput, GetFaceDetectionCommandOutput } from "./c
|
|
|
37
37
|
import { GetFaceLivenessSessionResultsCommandInput, GetFaceLivenessSessionResultsCommandOutput } from "./commands/GetFaceLivenessSessionResultsCommand";
|
|
38
38
|
import { GetFaceSearchCommandInput, GetFaceSearchCommandOutput } from "./commands/GetFaceSearchCommand";
|
|
39
39
|
import { GetLabelDetectionCommandInput, GetLabelDetectionCommandOutput } from "./commands/GetLabelDetectionCommand";
|
|
40
|
+
import { GetMediaAnalysisJobCommandInput, GetMediaAnalysisJobCommandOutput } from "./commands/GetMediaAnalysisJobCommand";
|
|
40
41
|
import { GetPersonTrackingCommandInput, GetPersonTrackingCommandOutput } from "./commands/GetPersonTrackingCommand";
|
|
41
42
|
import { GetSegmentDetectionCommandInput, GetSegmentDetectionCommandOutput } from "./commands/GetSegmentDetectionCommand";
|
|
42
43
|
import { GetTextDetectionCommandInput, GetTextDetectionCommandOutput } from "./commands/GetTextDetectionCommand";
|
|
@@ -45,6 +46,7 @@ import { ListCollectionsCommandInput, ListCollectionsCommandOutput } from "./com
|
|
|
45
46
|
import { ListDatasetEntriesCommandInput, ListDatasetEntriesCommandOutput } from "./commands/ListDatasetEntriesCommand";
|
|
46
47
|
import { ListDatasetLabelsCommandInput, ListDatasetLabelsCommandOutput } from "./commands/ListDatasetLabelsCommand";
|
|
47
48
|
import { ListFacesCommandInput, ListFacesCommandOutput } from "./commands/ListFacesCommand";
|
|
49
|
+
import { ListMediaAnalysisJobsCommandInput, ListMediaAnalysisJobsCommandOutput } from "./commands/ListMediaAnalysisJobsCommand";
|
|
48
50
|
import { ListProjectPoliciesCommandInput, ListProjectPoliciesCommandOutput } from "./commands/ListProjectPoliciesCommand";
|
|
49
51
|
import { ListStreamProcessorsCommandInput, ListStreamProcessorsCommandOutput } from "./commands/ListStreamProcessorsCommand";
|
|
50
52
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
@@ -60,6 +62,7 @@ import { StartContentModerationCommandInput, StartContentModerationCommandOutput
|
|
|
60
62
|
import { StartFaceDetectionCommandInput, StartFaceDetectionCommandOutput } from "./commands/StartFaceDetectionCommand";
|
|
61
63
|
import { StartFaceSearchCommandInput, StartFaceSearchCommandOutput } from "./commands/StartFaceSearchCommand";
|
|
62
64
|
import { StartLabelDetectionCommandInput, StartLabelDetectionCommandOutput } from "./commands/StartLabelDetectionCommand";
|
|
65
|
+
import { StartMediaAnalysisJobCommandInput, StartMediaAnalysisJobCommandOutput } from "./commands/StartMediaAnalysisJobCommand";
|
|
63
66
|
import { StartPersonTrackingCommandInput, StartPersonTrackingCommandOutput } from "./commands/StartPersonTrackingCommand";
|
|
64
67
|
import { StartProjectVersionCommandInput, StartProjectVersionCommandOutput } from "./commands/StartProjectVersionCommand";
|
|
65
68
|
import { StartSegmentDetectionCommandInput, StartSegmentDetectionCommandOutput } from "./commands/StartSegmentDetectionCommand";
|
|
@@ -301,6 +304,12 @@ export interface Rekognition {
|
|
|
301
304
|
getLabelDetection(args: GetLabelDetectionCommandInput, options?: __HttpHandlerOptions): Promise<GetLabelDetectionCommandOutput>;
|
|
302
305
|
getLabelDetection(args: GetLabelDetectionCommandInput, cb: (err: any, data?: GetLabelDetectionCommandOutput) => void): void;
|
|
303
306
|
getLabelDetection(args: GetLabelDetectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetLabelDetectionCommandOutput) => void): void;
|
|
307
|
+
/**
|
|
308
|
+
* @see {@link GetMediaAnalysisJobCommand}
|
|
309
|
+
*/
|
|
310
|
+
getMediaAnalysisJob(args: GetMediaAnalysisJobCommandInput, options?: __HttpHandlerOptions): Promise<GetMediaAnalysisJobCommandOutput>;
|
|
311
|
+
getMediaAnalysisJob(args: GetMediaAnalysisJobCommandInput, cb: (err: any, data?: GetMediaAnalysisJobCommandOutput) => void): void;
|
|
312
|
+
getMediaAnalysisJob(args: GetMediaAnalysisJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetMediaAnalysisJobCommandOutput) => void): void;
|
|
304
313
|
/**
|
|
305
314
|
* @see {@link GetPersonTrackingCommand}
|
|
306
315
|
*/
|
|
@@ -349,6 +358,12 @@ export interface Rekognition {
|
|
|
349
358
|
listFaces(args: ListFacesCommandInput, options?: __HttpHandlerOptions): Promise<ListFacesCommandOutput>;
|
|
350
359
|
listFaces(args: ListFacesCommandInput, cb: (err: any, data?: ListFacesCommandOutput) => void): void;
|
|
351
360
|
listFaces(args: ListFacesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListFacesCommandOutput) => void): void;
|
|
361
|
+
/**
|
|
362
|
+
* @see {@link ListMediaAnalysisJobsCommand}
|
|
363
|
+
*/
|
|
364
|
+
listMediaAnalysisJobs(args: ListMediaAnalysisJobsCommandInput, options?: __HttpHandlerOptions): Promise<ListMediaAnalysisJobsCommandOutput>;
|
|
365
|
+
listMediaAnalysisJobs(args: ListMediaAnalysisJobsCommandInput, cb: (err: any, data?: ListMediaAnalysisJobsCommandOutput) => void): void;
|
|
366
|
+
listMediaAnalysisJobs(args: ListMediaAnalysisJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListMediaAnalysisJobsCommandOutput) => void): void;
|
|
352
367
|
/**
|
|
353
368
|
* @see {@link ListProjectPoliciesCommand}
|
|
354
369
|
*/
|
|
@@ -439,6 +454,12 @@ export interface Rekognition {
|
|
|
439
454
|
startLabelDetection(args: StartLabelDetectionCommandInput, options?: __HttpHandlerOptions): Promise<StartLabelDetectionCommandOutput>;
|
|
440
455
|
startLabelDetection(args: StartLabelDetectionCommandInput, cb: (err: any, data?: StartLabelDetectionCommandOutput) => void): void;
|
|
441
456
|
startLabelDetection(args: StartLabelDetectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartLabelDetectionCommandOutput) => void): void;
|
|
457
|
+
/**
|
|
458
|
+
* @see {@link StartMediaAnalysisJobCommand}
|
|
459
|
+
*/
|
|
460
|
+
startMediaAnalysisJob(args: StartMediaAnalysisJobCommandInput, options?: __HttpHandlerOptions): Promise<StartMediaAnalysisJobCommandOutput>;
|
|
461
|
+
startMediaAnalysisJob(args: StartMediaAnalysisJobCommandInput, cb: (err: any, data?: StartMediaAnalysisJobCommandOutput) => void): void;
|
|
462
|
+
startMediaAnalysisJob(args: StartMediaAnalysisJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartMediaAnalysisJobCommandOutput) => void): void;
|
|
442
463
|
/**
|
|
443
464
|
* @see {@link StartPersonTrackingCommand}
|
|
444
465
|
*/
|
|
@@ -46,6 +46,7 @@ import { GetFaceDetectionCommandInput, GetFaceDetectionCommandOutput } from "./c
|
|
|
46
46
|
import { GetFaceLivenessSessionResultsCommandInput, GetFaceLivenessSessionResultsCommandOutput } from "./commands/GetFaceLivenessSessionResultsCommand";
|
|
47
47
|
import { GetFaceSearchCommandInput, GetFaceSearchCommandOutput } from "./commands/GetFaceSearchCommand";
|
|
48
48
|
import { GetLabelDetectionCommandInput, GetLabelDetectionCommandOutput } from "./commands/GetLabelDetectionCommand";
|
|
49
|
+
import { GetMediaAnalysisJobCommandInput, GetMediaAnalysisJobCommandOutput } from "./commands/GetMediaAnalysisJobCommand";
|
|
49
50
|
import { GetPersonTrackingCommandInput, GetPersonTrackingCommandOutput } from "./commands/GetPersonTrackingCommand";
|
|
50
51
|
import { GetSegmentDetectionCommandInput, GetSegmentDetectionCommandOutput } from "./commands/GetSegmentDetectionCommand";
|
|
51
52
|
import { GetTextDetectionCommandInput, GetTextDetectionCommandOutput } from "./commands/GetTextDetectionCommand";
|
|
@@ -54,6 +55,7 @@ import { ListCollectionsCommandInput, ListCollectionsCommandOutput } from "./com
|
|
|
54
55
|
import { ListDatasetEntriesCommandInput, ListDatasetEntriesCommandOutput } from "./commands/ListDatasetEntriesCommand";
|
|
55
56
|
import { ListDatasetLabelsCommandInput, ListDatasetLabelsCommandOutput } from "./commands/ListDatasetLabelsCommand";
|
|
56
57
|
import { ListFacesCommandInput, ListFacesCommandOutput } from "./commands/ListFacesCommand";
|
|
58
|
+
import { ListMediaAnalysisJobsCommandInput, ListMediaAnalysisJobsCommandOutput } from "./commands/ListMediaAnalysisJobsCommand";
|
|
57
59
|
import { ListProjectPoliciesCommandInput, ListProjectPoliciesCommandOutput } from "./commands/ListProjectPoliciesCommand";
|
|
58
60
|
import { ListStreamProcessorsCommandInput, ListStreamProcessorsCommandOutput } from "./commands/ListStreamProcessorsCommand";
|
|
59
61
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
@@ -69,6 +71,7 @@ import { StartContentModerationCommandInput, StartContentModerationCommandOutput
|
|
|
69
71
|
import { StartFaceDetectionCommandInput, StartFaceDetectionCommandOutput } from "./commands/StartFaceDetectionCommand";
|
|
70
72
|
import { StartFaceSearchCommandInput, StartFaceSearchCommandOutput } from "./commands/StartFaceSearchCommand";
|
|
71
73
|
import { StartLabelDetectionCommandInput, StartLabelDetectionCommandOutput } from "./commands/StartLabelDetectionCommand";
|
|
74
|
+
import { StartMediaAnalysisJobCommandInput, StartMediaAnalysisJobCommandOutput } from "./commands/StartMediaAnalysisJobCommand";
|
|
72
75
|
import { StartPersonTrackingCommandInput, StartPersonTrackingCommandOutput } from "./commands/StartPersonTrackingCommand";
|
|
73
76
|
import { StartProjectVersionCommandInput, StartProjectVersionCommandOutput } from "./commands/StartProjectVersionCommand";
|
|
74
77
|
import { StartSegmentDetectionCommandInput, StartSegmentDetectionCommandOutput } from "./commands/StartSegmentDetectionCommand";
|
|
@@ -86,11 +89,11 @@ export { __Client };
|
|
|
86
89
|
/**
|
|
87
90
|
* @public
|
|
88
91
|
*/
|
|
89
|
-
export type ServiceInputTypes = AssociateFacesCommandInput | CompareFacesCommandInput | CopyProjectVersionCommandInput | CreateCollectionCommandInput | CreateDatasetCommandInput | CreateFaceLivenessSessionCommandInput | CreateProjectCommandInput | CreateProjectVersionCommandInput | CreateStreamProcessorCommandInput | CreateUserCommandInput | DeleteCollectionCommandInput | DeleteDatasetCommandInput | DeleteFacesCommandInput | DeleteProjectCommandInput | DeleteProjectPolicyCommandInput | DeleteProjectVersionCommandInput | DeleteStreamProcessorCommandInput | DeleteUserCommandInput | DescribeCollectionCommandInput | DescribeDatasetCommandInput | DescribeProjectVersionsCommandInput | DescribeProjectsCommandInput | DescribeStreamProcessorCommandInput | DetectCustomLabelsCommandInput | DetectFacesCommandInput | DetectLabelsCommandInput | DetectModerationLabelsCommandInput | DetectProtectiveEquipmentCommandInput | DetectTextCommandInput | DisassociateFacesCommandInput | DistributeDatasetEntriesCommandInput | GetCelebrityInfoCommandInput | GetCelebrityRecognitionCommandInput | GetContentModerationCommandInput | GetFaceDetectionCommandInput | GetFaceLivenessSessionResultsCommandInput | GetFaceSearchCommandInput | GetLabelDetectionCommandInput | GetPersonTrackingCommandInput | GetSegmentDetectionCommandInput | GetTextDetectionCommandInput | IndexFacesCommandInput | ListCollectionsCommandInput | ListDatasetEntriesCommandInput | ListDatasetLabelsCommandInput | ListFacesCommandInput | ListProjectPoliciesCommandInput | ListStreamProcessorsCommandInput | ListTagsForResourceCommandInput | ListUsersCommandInput | PutProjectPolicyCommandInput | RecognizeCelebritiesCommandInput | SearchFacesByImageCommandInput | SearchFacesCommandInput | SearchUsersByImageCommandInput | SearchUsersCommandInput | StartCelebrityRecognitionCommandInput | StartContentModerationCommandInput | StartFaceDetectionCommandInput | StartFaceSearchCommandInput | StartLabelDetectionCommandInput | StartPersonTrackingCommandInput | StartProjectVersionCommandInput | StartSegmentDetectionCommandInput | StartStreamProcessorCommandInput | StartTextDetectionCommandInput | StopProjectVersionCommandInput | StopStreamProcessorCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateDatasetEntriesCommandInput | UpdateStreamProcessorCommandInput;
|
|
92
|
+
export type ServiceInputTypes = AssociateFacesCommandInput | CompareFacesCommandInput | CopyProjectVersionCommandInput | CreateCollectionCommandInput | CreateDatasetCommandInput | CreateFaceLivenessSessionCommandInput | CreateProjectCommandInput | CreateProjectVersionCommandInput | CreateStreamProcessorCommandInput | CreateUserCommandInput | DeleteCollectionCommandInput | DeleteDatasetCommandInput | DeleteFacesCommandInput | DeleteProjectCommandInput | DeleteProjectPolicyCommandInput | DeleteProjectVersionCommandInput | DeleteStreamProcessorCommandInput | DeleteUserCommandInput | DescribeCollectionCommandInput | DescribeDatasetCommandInput | DescribeProjectVersionsCommandInput | DescribeProjectsCommandInput | DescribeStreamProcessorCommandInput | DetectCustomLabelsCommandInput | DetectFacesCommandInput | DetectLabelsCommandInput | DetectModerationLabelsCommandInput | DetectProtectiveEquipmentCommandInput | DetectTextCommandInput | DisassociateFacesCommandInput | DistributeDatasetEntriesCommandInput | GetCelebrityInfoCommandInput | GetCelebrityRecognitionCommandInput | GetContentModerationCommandInput | GetFaceDetectionCommandInput | GetFaceLivenessSessionResultsCommandInput | GetFaceSearchCommandInput | GetLabelDetectionCommandInput | GetMediaAnalysisJobCommandInput | GetPersonTrackingCommandInput | GetSegmentDetectionCommandInput | GetTextDetectionCommandInput | IndexFacesCommandInput | ListCollectionsCommandInput | ListDatasetEntriesCommandInput | ListDatasetLabelsCommandInput | ListFacesCommandInput | ListMediaAnalysisJobsCommandInput | ListProjectPoliciesCommandInput | ListStreamProcessorsCommandInput | ListTagsForResourceCommandInput | ListUsersCommandInput | PutProjectPolicyCommandInput | RecognizeCelebritiesCommandInput | SearchFacesByImageCommandInput | SearchFacesCommandInput | SearchUsersByImageCommandInput | SearchUsersCommandInput | StartCelebrityRecognitionCommandInput | StartContentModerationCommandInput | StartFaceDetectionCommandInput | StartFaceSearchCommandInput | StartLabelDetectionCommandInput | StartMediaAnalysisJobCommandInput | StartPersonTrackingCommandInput | StartProjectVersionCommandInput | StartSegmentDetectionCommandInput | StartStreamProcessorCommandInput | StartTextDetectionCommandInput | StopProjectVersionCommandInput | StopStreamProcessorCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateDatasetEntriesCommandInput | UpdateStreamProcessorCommandInput;
|
|
90
93
|
/**
|
|
91
94
|
* @public
|
|
92
95
|
*/
|
|
93
|
-
export type ServiceOutputTypes = AssociateFacesCommandOutput | CompareFacesCommandOutput | CopyProjectVersionCommandOutput | CreateCollectionCommandOutput | CreateDatasetCommandOutput | CreateFaceLivenessSessionCommandOutput | CreateProjectCommandOutput | CreateProjectVersionCommandOutput | CreateStreamProcessorCommandOutput | CreateUserCommandOutput | DeleteCollectionCommandOutput | DeleteDatasetCommandOutput | DeleteFacesCommandOutput | DeleteProjectCommandOutput | DeleteProjectPolicyCommandOutput | DeleteProjectVersionCommandOutput | DeleteStreamProcessorCommandOutput | DeleteUserCommandOutput | DescribeCollectionCommandOutput | DescribeDatasetCommandOutput | DescribeProjectVersionsCommandOutput | DescribeProjectsCommandOutput | DescribeStreamProcessorCommandOutput | DetectCustomLabelsCommandOutput | DetectFacesCommandOutput | DetectLabelsCommandOutput | DetectModerationLabelsCommandOutput | DetectProtectiveEquipmentCommandOutput | DetectTextCommandOutput | DisassociateFacesCommandOutput | DistributeDatasetEntriesCommandOutput | GetCelebrityInfoCommandOutput | GetCelebrityRecognitionCommandOutput | GetContentModerationCommandOutput | GetFaceDetectionCommandOutput | GetFaceLivenessSessionResultsCommandOutput | GetFaceSearchCommandOutput | GetLabelDetectionCommandOutput | GetPersonTrackingCommandOutput | GetSegmentDetectionCommandOutput | GetTextDetectionCommandOutput | IndexFacesCommandOutput | ListCollectionsCommandOutput | ListDatasetEntriesCommandOutput | ListDatasetLabelsCommandOutput | ListFacesCommandOutput | ListProjectPoliciesCommandOutput | ListStreamProcessorsCommandOutput | ListTagsForResourceCommandOutput | ListUsersCommandOutput | PutProjectPolicyCommandOutput | RecognizeCelebritiesCommandOutput | SearchFacesByImageCommandOutput | SearchFacesCommandOutput | SearchUsersByImageCommandOutput | SearchUsersCommandOutput | StartCelebrityRecognitionCommandOutput | StartContentModerationCommandOutput | StartFaceDetectionCommandOutput | StartFaceSearchCommandOutput | StartLabelDetectionCommandOutput | StartPersonTrackingCommandOutput | StartProjectVersionCommandOutput | StartSegmentDetectionCommandOutput | StartStreamProcessorCommandOutput | StartTextDetectionCommandOutput | StopProjectVersionCommandOutput | StopStreamProcessorCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateDatasetEntriesCommandOutput | UpdateStreamProcessorCommandOutput;
|
|
96
|
+
export type ServiceOutputTypes = AssociateFacesCommandOutput | CompareFacesCommandOutput | CopyProjectVersionCommandOutput | CreateCollectionCommandOutput | CreateDatasetCommandOutput | CreateFaceLivenessSessionCommandOutput | CreateProjectCommandOutput | CreateProjectVersionCommandOutput | CreateStreamProcessorCommandOutput | CreateUserCommandOutput | DeleteCollectionCommandOutput | DeleteDatasetCommandOutput | DeleteFacesCommandOutput | DeleteProjectCommandOutput | DeleteProjectPolicyCommandOutput | DeleteProjectVersionCommandOutput | DeleteStreamProcessorCommandOutput | DeleteUserCommandOutput | DescribeCollectionCommandOutput | DescribeDatasetCommandOutput | DescribeProjectVersionsCommandOutput | DescribeProjectsCommandOutput | DescribeStreamProcessorCommandOutput | DetectCustomLabelsCommandOutput | DetectFacesCommandOutput | DetectLabelsCommandOutput | DetectModerationLabelsCommandOutput | DetectProtectiveEquipmentCommandOutput | DetectTextCommandOutput | DisassociateFacesCommandOutput | DistributeDatasetEntriesCommandOutput | GetCelebrityInfoCommandOutput | GetCelebrityRecognitionCommandOutput | GetContentModerationCommandOutput | GetFaceDetectionCommandOutput | GetFaceLivenessSessionResultsCommandOutput | GetFaceSearchCommandOutput | GetLabelDetectionCommandOutput | GetMediaAnalysisJobCommandOutput | GetPersonTrackingCommandOutput | GetSegmentDetectionCommandOutput | GetTextDetectionCommandOutput | IndexFacesCommandOutput | ListCollectionsCommandOutput | ListDatasetEntriesCommandOutput | ListDatasetLabelsCommandOutput | ListFacesCommandOutput | ListMediaAnalysisJobsCommandOutput | ListProjectPoliciesCommandOutput | ListStreamProcessorsCommandOutput | ListTagsForResourceCommandOutput | ListUsersCommandOutput | PutProjectPolicyCommandOutput | RecognizeCelebritiesCommandOutput | SearchFacesByImageCommandOutput | SearchFacesCommandOutput | SearchUsersByImageCommandOutput | SearchUsersCommandOutput | StartCelebrityRecognitionCommandOutput | StartContentModerationCommandOutput | StartFaceDetectionCommandOutput | StartFaceSearchCommandOutput | StartLabelDetectionCommandOutput | StartMediaAnalysisJobCommandOutput | StartPersonTrackingCommandOutput | StartProjectVersionCommandOutput | StartSegmentDetectionCommandOutput | StartStreamProcessorCommandOutput | StartTextDetectionCommandOutput | StopProjectVersionCommandOutput | StopStreamProcessorCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateDatasetEntriesCommandOutput | UpdateStreamProcessorCommandOutput;
|
|
94
97
|
/**
|
|
95
98
|
* @public
|
|
96
99
|
*/
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { GetMediaAnalysisJobRequest, GetMediaAnalysisJobResponse } 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 GetMediaAnalysisJobCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetMediaAnalysisJobCommandInput extends GetMediaAnalysisJobRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetMediaAnalysisJobCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetMediaAnalysisJobCommandOutput extends GetMediaAnalysisJobResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Retrieves the results for a given media analysis job.
|
|
27
|
+
* Takes a <code>JobId</code> returned by StartMediaAnalysisJob.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { RekognitionClient, GetMediaAnalysisJobCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
|
|
32
|
+
* // const { RekognitionClient, GetMediaAnalysisJobCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
|
|
33
|
+
* const client = new RekognitionClient(config);
|
|
34
|
+
* const input = { // GetMediaAnalysisJobRequest
|
|
35
|
+
* JobId: "STRING_VALUE", // required
|
|
36
|
+
* };
|
|
37
|
+
* const command = new GetMediaAnalysisJobCommand(input);
|
|
38
|
+
* const response = await client.send(command);
|
|
39
|
+
* // { // GetMediaAnalysisJobResponse
|
|
40
|
+
* // JobId: "STRING_VALUE", // required
|
|
41
|
+
* // JobName: "STRING_VALUE",
|
|
42
|
+
* // OperationsConfig: { // MediaAnalysisOperationsConfig
|
|
43
|
+
* // DetectModerationLabels: { // MediaAnalysisDetectModerationLabelsConfig
|
|
44
|
+
* // MinConfidence: Number("float"),
|
|
45
|
+
* // ProjectVersion: "STRING_VALUE",
|
|
46
|
+
* // },
|
|
47
|
+
* // },
|
|
48
|
+
* // Status: "CREATED" || "QUEUED" || "IN_PROGRESS" || "SUCCEEDED" || "FAILED", // required
|
|
49
|
+
* // FailureDetails: { // MediaAnalysisJobFailureDetails
|
|
50
|
+
* // Code: "INTERNAL_ERROR" || "INVALID_S3_OBJECT" || "INVALID_MANIFEST" || "INVALID_OUTPUT_CONFIG" || "INVALID_KMS_KEY" || "ACCESS_DENIED" || "RESOURCE_NOT_FOUND" || "RESOURCE_NOT_READY" || "THROTTLED",
|
|
51
|
+
* // Message: "STRING_VALUE",
|
|
52
|
+
* // },
|
|
53
|
+
* // CreationTimestamp: new Date("TIMESTAMP"), // required
|
|
54
|
+
* // CompletionTimestamp: new Date("TIMESTAMP"),
|
|
55
|
+
* // Input: { // MediaAnalysisInput
|
|
56
|
+
* // S3Object: { // S3Object
|
|
57
|
+
* // Bucket: "STRING_VALUE",
|
|
58
|
+
* // Name: "STRING_VALUE",
|
|
59
|
+
* // Version: "STRING_VALUE",
|
|
60
|
+
* // },
|
|
61
|
+
* // },
|
|
62
|
+
* // OutputConfig: { // MediaAnalysisOutputConfig
|
|
63
|
+
* // S3Bucket: "STRING_VALUE", // required
|
|
64
|
+
* // S3KeyPrefix: "STRING_VALUE",
|
|
65
|
+
* // },
|
|
66
|
+
* // KmsKeyId: "STRING_VALUE",
|
|
67
|
+
* // Results: { // MediaAnalysisResults
|
|
68
|
+
* // S3Object: {
|
|
69
|
+
* // Bucket: "STRING_VALUE",
|
|
70
|
+
* // Name: "STRING_VALUE",
|
|
71
|
+
* // Version: "STRING_VALUE",
|
|
72
|
+
* // },
|
|
73
|
+
* // },
|
|
74
|
+
* // ManifestSummary: { // MediaAnalysisManifestSummary
|
|
75
|
+
* // S3Object: {
|
|
76
|
+
* // Bucket: "STRING_VALUE",
|
|
77
|
+
* // Name: "STRING_VALUE",
|
|
78
|
+
* // Version: "STRING_VALUE",
|
|
79
|
+
* // },
|
|
80
|
+
* // },
|
|
81
|
+
* // };
|
|
82
|
+
*
|
|
83
|
+
* ```
|
|
84
|
+
*
|
|
85
|
+
* @param GetMediaAnalysisJobCommandInput - {@link GetMediaAnalysisJobCommandInput}
|
|
86
|
+
* @returns {@link GetMediaAnalysisJobCommandOutput}
|
|
87
|
+
* @see {@link GetMediaAnalysisJobCommandInput} for command's `input` shape.
|
|
88
|
+
* @see {@link GetMediaAnalysisJobCommandOutput} for command's `response` shape.
|
|
89
|
+
* @see {@link RekognitionClientResolvedConfig | config} for RekognitionClient's `config` shape.
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
92
|
+
* <p>You are not authorized to perform the action.</p>
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link InternalServerError} (server fault)
|
|
95
|
+
* <p>Amazon Rekognition experienced a service issue. Try your call again.</p>
|
|
96
|
+
*
|
|
97
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
98
|
+
* <p>Input parameter violated a constraint. Validate your parameter before calling the API
|
|
99
|
+
* operation again.</p>
|
|
100
|
+
*
|
|
101
|
+
* @throws {@link ProvisionedThroughputExceededException} (client fault)
|
|
102
|
+
* <p>The number of requests exceeded your throughput limit. If you want to increase this
|
|
103
|
+
* limit, contact Amazon Rekognition.</p>
|
|
104
|
+
*
|
|
105
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
106
|
+
* <p>The resource specified in the request cannot be found.</p>
|
|
107
|
+
*
|
|
108
|
+
* @throws {@link ThrottlingException} (server fault)
|
|
109
|
+
* <p>Amazon Rekognition is temporarily unable to process the request. Try your call again.</p>
|
|
110
|
+
*
|
|
111
|
+
* @throws {@link RekognitionServiceException}
|
|
112
|
+
* <p>Base exception class for all service exceptions from Rekognition service.</p>
|
|
113
|
+
*
|
|
114
|
+
*/
|
|
115
|
+
export declare class GetMediaAnalysisJobCommand extends $Command<GetMediaAnalysisJobCommandInput, GetMediaAnalysisJobCommandOutput, RekognitionClientResolvedConfig> {
|
|
116
|
+
readonly input: GetMediaAnalysisJobCommandInput;
|
|
117
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
118
|
+
/**
|
|
119
|
+
* @public
|
|
120
|
+
*/
|
|
121
|
+
constructor(input: GetMediaAnalysisJobCommandInput);
|
|
122
|
+
/**
|
|
123
|
+
* @internal
|
|
124
|
+
*/
|
|
125
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetMediaAnalysisJobCommandInput, GetMediaAnalysisJobCommandOutput>;
|
|
126
|
+
/**
|
|
127
|
+
* @internal
|
|
128
|
+
*/
|
|
129
|
+
private serialize;
|
|
130
|
+
/**
|
|
131
|
+
* @internal
|
|
132
|
+
*/
|
|
133
|
+
private deserialize;
|
|
134
|
+
}
|