@aws-sdk/client-rekognition 3.75.0 → 3.79.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/CHANGELOG.md +30 -0
- package/README.md +198 -1
- package/dist-cjs/Rekognition.js +15 -0
- package/dist-cjs/commands/UpdateStreamProcessorCommand.js +36 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +89 -17
- package/dist-cjs/pagination/DescribeProjectVersionsPaginator.js +2 -1
- package/dist-cjs/pagination/DescribeProjectsPaginator.js +2 -1
- package/dist-cjs/pagination/GetCelebrityRecognitionPaginator.js +2 -1
- package/dist-cjs/pagination/GetContentModerationPaginator.js +2 -1
- package/dist-cjs/pagination/GetFaceDetectionPaginator.js +2 -1
- package/dist-cjs/pagination/GetFaceSearchPaginator.js +2 -1
- package/dist-cjs/pagination/GetLabelDetectionPaginator.js +2 -1
- package/dist-cjs/pagination/GetPersonTrackingPaginator.js +2 -1
- package/dist-cjs/pagination/GetSegmentDetectionPaginator.js +2 -1
- package/dist-cjs/pagination/GetTextDetectionPaginator.js +2 -1
- package/dist-cjs/pagination/ListCollectionsPaginator.js +2 -1
- package/dist-cjs/pagination/ListDatasetEntriesPaginator.js +2 -1
- package/dist-cjs/pagination/ListDatasetLabelsPaginator.js +2 -1
- package/dist-cjs/pagination/ListFacesPaginator.js +2 -1
- package/dist-cjs/pagination/ListStreamProcessorsPaginator.js +2 -1
- package/dist-cjs/protocols/Aws_json1_1.js +291 -3
- package/dist-es/Rekognition.js +15 -0
- package/dist-es/commands/UpdateStreamProcessorCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +58 -8
- package/dist-es/pagination/DescribeProjectVersionsPaginator.js +3 -2
- package/dist-es/pagination/DescribeProjectsPaginator.js +3 -2
- package/dist-es/pagination/GetCelebrityRecognitionPaginator.js +3 -2
- package/dist-es/pagination/GetContentModerationPaginator.js +3 -2
- package/dist-es/pagination/GetFaceDetectionPaginator.js +3 -2
- package/dist-es/pagination/GetFaceSearchPaginator.js +3 -2
- package/dist-es/pagination/GetLabelDetectionPaginator.js +3 -2
- package/dist-es/pagination/GetPersonTrackingPaginator.js +3 -2
- package/dist-es/pagination/GetSegmentDetectionPaginator.js +3 -2
- package/dist-es/pagination/GetTextDetectionPaginator.js +3 -2
- package/dist-es/pagination/ListCollectionsPaginator.js +3 -2
- package/dist-es/pagination/ListDatasetEntriesPaginator.js +3 -2
- package/dist-es/pagination/ListDatasetLabelsPaginator.js +3 -2
- package/dist-es/pagination/ListFacesPaginator.js +3 -2
- package/dist-es/pagination/ListStreamProcessorsPaginator.js +3 -2
- package/dist-es/protocols/Aws_json1_1.js +277 -9
- package/dist-types/Rekognition.d.ts +247 -24
- package/dist-types/RekognitionClient.d.ts +205 -3
- package/dist-types/commands/CreateStreamProcessorCommand.d.ts +17 -6
- package/dist-types/commands/DeleteCollectionCommand.d.ts +1 -1
- package/dist-types/commands/DetectLabelsCommand.d.ts +1 -1
- package/dist-types/commands/DetectTextCommand.d.ts +1 -1
- package/dist-types/commands/GetCelebrityInfoCommand.d.ts +1 -1
- package/dist-types/commands/GetContentModerationCommand.d.ts +1 -1
- package/dist-types/commands/GetSegmentDetectionCommand.d.ts +1 -1
- package/dist-types/commands/IndexFacesCommand.d.ts +2 -2
- package/dist-types/commands/ListCollectionsCommand.d.ts +1 -1
- package/dist-types/commands/RecognizeCelebritiesCommand.d.ts +2 -2
- package/dist-types/commands/SearchFacesCommand.d.ts +1 -1
- package/dist-types/commands/StartCelebrityRecognitionCommand.d.ts +1 -1
- package/dist-types/commands/StartContentModerationCommand.d.ts +1 -1
- package/dist-types/commands/StartFaceDetectionCommand.d.ts +1 -1
- package/dist-types/commands/StartFaceSearchCommand.d.ts +2 -1
- package/dist-types/commands/StartSegmentDetectionCommand.d.ts +1 -1
- package/dist-types/commands/StartStreamProcessorCommand.d.ts +1 -0
- package/dist-types/commands/UpdateStreamProcessorCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +450 -84
- package/dist-types/protocols/Aws_json1_1.d.ts +3 -0
- package/dist-types/ts3.4/Rekognition.d.ts +5 -0
- package/dist-types/ts3.4/RekognitionClient.d.ts +3 -2
- package/dist-types/ts3.4/commands/UpdateStreamProcessorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +165 -21
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +3 -0
- package/package.json +26 -26
|
@@ -27,8 +27,9 @@ async function* paginateListDatasetLabels(config, input, ...additionalArguments)
|
|
|
27
27
|
throw new Error("Invalid client, expected Rekognition | RekognitionClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -27,8 +27,9 @@ async function* paginateListFaces(config, input, ...additionalArguments) {
|
|
|
27
27
|
throw new Error("Invalid client, expected Rekognition | RekognitionClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -27,8 +27,9 @@ async function* paginateListStreamProcessors(config, input, ...additionalArgumen
|
|
|
27
27
|
throw new Error("Invalid client, expected Rekognition | RekognitionClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.serializeAws_json1_1StartProjectVersionCommand = exports.serializeAws_json1_1StartPersonTrackingCommand = exports.serializeAws_json1_1StartLabelDetectionCommand = exports.serializeAws_json1_1StartFaceSearchCommand = exports.serializeAws_json1_1StartFaceDetectionCommand = exports.serializeAws_json1_1StartContentModerationCommand = exports.serializeAws_json1_1StartCelebrityRecognitionCommand = exports.serializeAws_json1_1SearchFacesByImageCommand = exports.serializeAws_json1_1SearchFacesCommand = exports.serializeAws_json1_1RecognizeCelebritiesCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListStreamProcessorsCommand = exports.serializeAws_json1_1ListFacesCommand = exports.serializeAws_json1_1ListDatasetLabelsCommand = exports.serializeAws_json1_1ListDatasetEntriesCommand = exports.serializeAws_json1_1ListCollectionsCommand = exports.serializeAws_json1_1IndexFacesCommand = exports.serializeAws_json1_1GetTextDetectionCommand = exports.serializeAws_json1_1GetSegmentDetectionCommand = exports.serializeAws_json1_1GetPersonTrackingCommand = exports.serializeAws_json1_1GetLabelDetectionCommand = exports.serializeAws_json1_1GetFaceSearchCommand = exports.serializeAws_json1_1GetFaceDetectionCommand = exports.serializeAws_json1_1GetContentModerationCommand = exports.serializeAws_json1_1GetCelebrityRecognitionCommand = exports.serializeAws_json1_1GetCelebrityInfoCommand = exports.serializeAws_json1_1DistributeDatasetEntriesCommand = exports.serializeAws_json1_1DetectTextCommand = exports.serializeAws_json1_1DetectProtectiveEquipmentCommand = exports.serializeAws_json1_1DetectModerationLabelsCommand = exports.serializeAws_json1_1DetectLabelsCommand = exports.serializeAws_json1_1DetectFacesCommand = exports.serializeAws_json1_1DetectCustomLabelsCommand = exports.serializeAws_json1_1DescribeStreamProcessorCommand = exports.serializeAws_json1_1DescribeProjectVersionsCommand = exports.serializeAws_json1_1DescribeProjectsCommand = exports.serializeAws_json1_1DescribeDatasetCommand = exports.serializeAws_json1_1DescribeCollectionCommand = exports.serializeAws_json1_1DeleteStreamProcessorCommand = exports.serializeAws_json1_1DeleteProjectVersionCommand = exports.serializeAws_json1_1DeleteProjectCommand = exports.serializeAws_json1_1DeleteFacesCommand = exports.serializeAws_json1_1DeleteDatasetCommand = exports.serializeAws_json1_1DeleteCollectionCommand = exports.serializeAws_json1_1CreateStreamProcessorCommand = exports.serializeAws_json1_1CreateProjectVersionCommand = exports.serializeAws_json1_1CreateProjectCommand = exports.serializeAws_json1_1CreateDatasetCommand = exports.serializeAws_json1_1CreateCollectionCommand = exports.serializeAws_json1_1CompareFacesCommand = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.deserializeAws_json1_1UpdateDatasetEntriesCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StopStreamProcessorCommand = exports.deserializeAws_json1_1StopProjectVersionCommand = exports.deserializeAws_json1_1StartTextDetectionCommand = exports.deserializeAws_json1_1StartStreamProcessorCommand = exports.deserializeAws_json1_1StartSegmentDetectionCommand = exports.deserializeAws_json1_1StartProjectVersionCommand = exports.deserializeAws_json1_1StartPersonTrackingCommand = exports.deserializeAws_json1_1StartLabelDetectionCommand = exports.deserializeAws_json1_1StartFaceSearchCommand = exports.deserializeAws_json1_1StartFaceDetectionCommand = exports.deserializeAws_json1_1StartContentModerationCommand = exports.deserializeAws_json1_1StartCelebrityRecognitionCommand = exports.deserializeAws_json1_1SearchFacesByImageCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_1RecognizeCelebritiesCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListStreamProcessorsCommand = exports.deserializeAws_json1_1ListFacesCommand = exports.deserializeAws_json1_1ListDatasetLabelsCommand = exports.deserializeAws_json1_1ListDatasetEntriesCommand = exports.deserializeAws_json1_1ListCollectionsCommand = exports.deserializeAws_json1_1IndexFacesCommand = exports.deserializeAws_json1_1GetTextDetectionCommand = exports.deserializeAws_json1_1GetSegmentDetectionCommand = exports.deserializeAws_json1_1GetPersonTrackingCommand = exports.deserializeAws_json1_1GetLabelDetectionCommand = exports.deserializeAws_json1_1GetFaceSearchCommand = exports.deserializeAws_json1_1GetFaceDetectionCommand = exports.deserializeAws_json1_1GetContentModerationCommand = exports.deserializeAws_json1_1GetCelebrityRecognitionCommand = exports.deserializeAws_json1_1GetCelebrityInfoCommand = exports.deserializeAws_json1_1DistributeDatasetEntriesCommand = exports.deserializeAws_json1_1DetectTextCommand = exports.deserializeAws_json1_1DetectProtectiveEquipmentCommand = exports.deserializeAws_json1_1DetectModerationLabelsCommand = exports.deserializeAws_json1_1DetectLabelsCommand = exports.deserializeAws_json1_1DetectFacesCommand = exports.deserializeAws_json1_1DetectCustomLabelsCommand = exports.deserializeAws_json1_1DescribeStreamProcessorCommand = exports.deserializeAws_json1_1DescribeProjectVersionsCommand = exports.deserializeAws_json1_1DescribeProjectsCommand = exports.deserializeAws_json1_1DescribeDatasetCommand = exports.deserializeAws_json1_1DescribeCollectionCommand = exports.deserializeAws_json1_1DeleteStreamProcessorCommand = exports.deserializeAws_json1_1DeleteProjectVersionCommand = exports.deserializeAws_json1_1DeleteProjectCommand = exports.deserializeAws_json1_1DeleteFacesCommand = exports.deserializeAws_json1_1DeleteDatasetCommand = exports.deserializeAws_json1_1DeleteCollectionCommand = exports.deserializeAws_json1_1CreateStreamProcessorCommand = exports.deserializeAws_json1_1CreateProjectVersionCommand = exports.deserializeAws_json1_1CreateProjectCommand = exports.deserializeAws_json1_1CreateDatasetCommand = exports.deserializeAws_json1_1CreateCollectionCommand = exports.deserializeAws_json1_1CompareFacesCommand = exports.serializeAws_json1_1UpdateStreamProcessorCommand = exports.serializeAws_json1_1UpdateDatasetEntriesCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1StopStreamProcessorCommand = exports.serializeAws_json1_1StopProjectVersionCommand = exports.serializeAws_json1_1StartTextDetectionCommand = exports.serializeAws_json1_1StartStreamProcessorCommand = exports.serializeAws_json1_1StartSegmentDetectionCommand = void 0;
|
|
5
|
+
exports.deserializeAws_json1_1UpdateStreamProcessorCommand = exports.deserializeAws_json1_1UpdateDatasetEntriesCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StopStreamProcessorCommand = exports.deserializeAws_json1_1StopProjectVersionCommand = exports.deserializeAws_json1_1StartTextDetectionCommand = exports.deserializeAws_json1_1StartStreamProcessorCommand = exports.deserializeAws_json1_1StartSegmentDetectionCommand = exports.deserializeAws_json1_1StartProjectVersionCommand = exports.deserializeAws_json1_1StartPersonTrackingCommand = exports.deserializeAws_json1_1StartLabelDetectionCommand = exports.deserializeAws_json1_1StartFaceSearchCommand = exports.deserializeAws_json1_1StartFaceDetectionCommand = exports.deserializeAws_json1_1StartContentModerationCommand = exports.deserializeAws_json1_1StartCelebrityRecognitionCommand = exports.deserializeAws_json1_1SearchFacesByImageCommand = exports.deserializeAws_json1_1SearchFacesCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
@@ -587,6 +587,16 @@ const serializeAws_json1_1UpdateDatasetEntriesCommand = async (input, context) =
|
|
|
587
587
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
588
588
|
};
|
|
589
589
|
exports.serializeAws_json1_1UpdateDatasetEntriesCommand = serializeAws_json1_1UpdateDatasetEntriesCommand;
|
|
590
|
+
const serializeAws_json1_1UpdateStreamProcessorCommand = async (input, context) => {
|
|
591
|
+
const headers = {
|
|
592
|
+
"content-type": "application/x-amz-json-1.1",
|
|
593
|
+
"x-amz-target": "RekognitionService.UpdateStreamProcessor",
|
|
594
|
+
};
|
|
595
|
+
let body;
|
|
596
|
+
body = JSON.stringify(serializeAws_json1_1UpdateStreamProcessorRequest(input, context));
|
|
597
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
598
|
+
};
|
|
599
|
+
exports.serializeAws_json1_1UpdateStreamProcessorCommand = serializeAws_json1_1UpdateStreamProcessorCommand;
|
|
590
600
|
const deserializeAws_json1_1CompareFacesCommand = async (output, context) => {
|
|
591
601
|
if (output.statusCode >= 300) {
|
|
592
602
|
return deserializeAws_json1_1CompareFacesCommandError(output, context);
|
|
@@ -3824,6 +3834,57 @@ const deserializeAws_json1_1UpdateDatasetEntriesCommandError = async (output, co
|
|
|
3824
3834
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3825
3835
|
}
|
|
3826
3836
|
};
|
|
3837
|
+
const deserializeAws_json1_1UpdateStreamProcessorCommand = async (output, context) => {
|
|
3838
|
+
if (output.statusCode >= 300) {
|
|
3839
|
+
return deserializeAws_json1_1UpdateStreamProcessorCommandError(output, context);
|
|
3840
|
+
}
|
|
3841
|
+
const data = await parseBody(output.body, context);
|
|
3842
|
+
let contents = {};
|
|
3843
|
+
contents = deserializeAws_json1_1UpdateStreamProcessorResponse(data, context);
|
|
3844
|
+
const response = {
|
|
3845
|
+
$metadata: deserializeMetadata(output),
|
|
3846
|
+
...contents,
|
|
3847
|
+
};
|
|
3848
|
+
return Promise.resolve(response);
|
|
3849
|
+
};
|
|
3850
|
+
exports.deserializeAws_json1_1UpdateStreamProcessorCommand = deserializeAws_json1_1UpdateStreamProcessorCommand;
|
|
3851
|
+
const deserializeAws_json1_1UpdateStreamProcessorCommandError = async (output, context) => {
|
|
3852
|
+
const parsedOutput = {
|
|
3853
|
+
...output,
|
|
3854
|
+
body: await parseBody(output.body, context),
|
|
3855
|
+
};
|
|
3856
|
+
let response;
|
|
3857
|
+
let errorCode = "UnknownError";
|
|
3858
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3859
|
+
switch (errorCode) {
|
|
3860
|
+
case "AccessDeniedException":
|
|
3861
|
+
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
3862
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3863
|
+
case "InternalServerError":
|
|
3864
|
+
case "com.amazonaws.rekognition#InternalServerError":
|
|
3865
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
3866
|
+
case "InvalidParameterException":
|
|
3867
|
+
case "com.amazonaws.rekognition#InvalidParameterException":
|
|
3868
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
3869
|
+
case "ProvisionedThroughputExceededException":
|
|
3870
|
+
case "com.amazonaws.rekognition#ProvisionedThroughputExceededException":
|
|
3871
|
+
throw await deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context);
|
|
3872
|
+
case "ResourceNotFoundException":
|
|
3873
|
+
case "com.amazonaws.rekognition#ResourceNotFoundException":
|
|
3874
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3875
|
+
case "ThrottlingException":
|
|
3876
|
+
case "com.amazonaws.rekognition#ThrottlingException":
|
|
3877
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3878
|
+
default:
|
|
3879
|
+
const parsedBody = parsedOutput.body;
|
|
3880
|
+
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
3881
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3882
|
+
$fault: "client",
|
|
3883
|
+
$metadata: deserializeMetadata(output),
|
|
3884
|
+
});
|
|
3885
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3886
|
+
}
|
|
3887
|
+
};
|
|
3827
3888
|
const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
3828
3889
|
const body = parsedOutput.body;
|
|
3829
3890
|
const deserialized = deserializeAws_json1_1AccessDeniedException(body, context);
|
|
@@ -4041,6 +4102,32 @@ const serializeAws_json1_1CompareFacesRequest = (input, context) => {
|
|
|
4041
4102
|
input.TargetImage !== null && { TargetImage: serializeAws_json1_1Image(input.TargetImage, context) }),
|
|
4042
4103
|
};
|
|
4043
4104
|
};
|
|
4105
|
+
const serializeAws_json1_1ConnectedHomeLabels = (input, context) => {
|
|
4106
|
+
return input
|
|
4107
|
+
.filter((e) => e != null)
|
|
4108
|
+
.map((entry) => {
|
|
4109
|
+
if (entry === null) {
|
|
4110
|
+
return null;
|
|
4111
|
+
}
|
|
4112
|
+
return entry;
|
|
4113
|
+
});
|
|
4114
|
+
};
|
|
4115
|
+
const serializeAws_json1_1ConnectedHomeSettings = (input, context) => {
|
|
4116
|
+
return {
|
|
4117
|
+
...(input.Labels !== undefined &&
|
|
4118
|
+
input.Labels !== null && { Labels: serializeAws_json1_1ConnectedHomeLabels(input.Labels, context) }),
|
|
4119
|
+
...(input.MinConfidence !== undefined &&
|
|
4120
|
+
input.MinConfidence !== null && { MinConfidence: (0, smithy_client_1.serializeFloat)(input.MinConfidence) }),
|
|
4121
|
+
};
|
|
4122
|
+
};
|
|
4123
|
+
const serializeAws_json1_1ConnectedHomeSettingsForUpdate = (input, context) => {
|
|
4124
|
+
return {
|
|
4125
|
+
...(input.Labels !== undefined &&
|
|
4126
|
+
input.Labels !== null && { Labels: serializeAws_json1_1ConnectedHomeLabels(input.Labels, context) }),
|
|
4127
|
+
...(input.MinConfidence !== undefined &&
|
|
4128
|
+
input.MinConfidence !== null && { MinConfidence: (0, smithy_client_1.serializeFloat)(input.MinConfidence) }),
|
|
4129
|
+
};
|
|
4130
|
+
};
|
|
4044
4131
|
const serializeAws_json1_1ContentClassifiers = (input, context) => {
|
|
4045
4132
|
return input
|
|
4046
4133
|
.filter((e) => e != null)
|
|
@@ -4088,11 +4175,24 @@ const serializeAws_json1_1CreateProjectVersionRequest = (input, context) => {
|
|
|
4088
4175
|
};
|
|
4089
4176
|
const serializeAws_json1_1CreateStreamProcessorRequest = (input, context) => {
|
|
4090
4177
|
return {
|
|
4178
|
+
...(input.DataSharingPreference !== undefined &&
|
|
4179
|
+
input.DataSharingPreference !== null && {
|
|
4180
|
+
DataSharingPreference: serializeAws_json1_1StreamProcessorDataSharingPreference(input.DataSharingPreference, context),
|
|
4181
|
+
}),
|
|
4091
4182
|
...(input.Input !== undefined &&
|
|
4092
4183
|
input.Input !== null && { Input: serializeAws_json1_1StreamProcessorInput(input.Input, context) }),
|
|
4184
|
+
...(input.KmsKeyId !== undefined && input.KmsKeyId !== null && { KmsKeyId: input.KmsKeyId }),
|
|
4093
4185
|
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
4186
|
+
...(input.NotificationChannel !== undefined &&
|
|
4187
|
+
input.NotificationChannel !== null && {
|
|
4188
|
+
NotificationChannel: serializeAws_json1_1StreamProcessorNotificationChannel(input.NotificationChannel, context),
|
|
4189
|
+
}),
|
|
4094
4190
|
...(input.Output !== undefined &&
|
|
4095
4191
|
input.Output !== null && { Output: serializeAws_json1_1StreamProcessorOutput(input.Output, context) }),
|
|
4192
|
+
...(input.RegionsOfInterest !== undefined &&
|
|
4193
|
+
input.RegionsOfInterest !== null && {
|
|
4194
|
+
RegionsOfInterest: serializeAws_json1_1RegionsOfInterest(input.RegionsOfInterest, context),
|
|
4195
|
+
}),
|
|
4096
4196
|
...(input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }),
|
|
4097
4197
|
...(input.Settings !== undefined &&
|
|
4098
4198
|
input.Settings !== null && { Settings: serializeAws_json1_1StreamProcessorSettings(input.Settings, context) }),
|
|
@@ -4430,6 +4530,14 @@ const serializeAws_json1_1KinesisVideoStream = (input, context) => {
|
|
|
4430
4530
|
...(input.Arn !== undefined && input.Arn !== null && { Arn: input.Arn }),
|
|
4431
4531
|
};
|
|
4432
4532
|
};
|
|
4533
|
+
const serializeAws_json1_1KinesisVideoStreamStartSelector = (input, context) => {
|
|
4534
|
+
return {
|
|
4535
|
+
...(input.FragmentNumber !== undefined &&
|
|
4536
|
+
input.FragmentNumber !== null && { FragmentNumber: input.FragmentNumber }),
|
|
4537
|
+
...(input.ProducerTimestamp !== undefined &&
|
|
4538
|
+
input.ProducerTimestamp !== null && { ProducerTimestamp: input.ProducerTimestamp }),
|
|
4539
|
+
};
|
|
4540
|
+
};
|
|
4433
4541
|
const serializeAws_json1_1ListCollectionsRequest = (input, context) => {
|
|
4434
4542
|
return {
|
|
4435
4543
|
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
@@ -4488,6 +4596,22 @@ const serializeAws_json1_1OutputConfig = (input, context) => {
|
|
|
4488
4596
|
...(input.S3KeyPrefix !== undefined && input.S3KeyPrefix !== null && { S3KeyPrefix: input.S3KeyPrefix }),
|
|
4489
4597
|
};
|
|
4490
4598
|
};
|
|
4599
|
+
const serializeAws_json1_1Point = (input, context) => {
|
|
4600
|
+
return {
|
|
4601
|
+
...(input.X !== undefined && input.X !== null && { X: (0, smithy_client_1.serializeFloat)(input.X) }),
|
|
4602
|
+
...(input.Y !== undefined && input.Y !== null && { Y: (0, smithy_client_1.serializeFloat)(input.Y) }),
|
|
4603
|
+
};
|
|
4604
|
+
};
|
|
4605
|
+
const serializeAws_json1_1Polygon = (input, context) => {
|
|
4606
|
+
return input
|
|
4607
|
+
.filter((e) => e != null)
|
|
4608
|
+
.map((entry) => {
|
|
4609
|
+
if (entry === null) {
|
|
4610
|
+
return null;
|
|
4611
|
+
}
|
|
4612
|
+
return serializeAws_json1_1Point(entry, context);
|
|
4613
|
+
});
|
|
4614
|
+
};
|
|
4491
4615
|
const serializeAws_json1_1ProjectNames = (input, context) => {
|
|
4492
4616
|
return input
|
|
4493
4617
|
.filter((e) => e != null)
|
|
@@ -4528,6 +4652,8 @@ const serializeAws_json1_1RegionOfInterest = (input, context) => {
|
|
|
4528
4652
|
return {
|
|
4529
4653
|
...(input.BoundingBox !== undefined &&
|
|
4530
4654
|
input.BoundingBox !== null && { BoundingBox: serializeAws_json1_1BoundingBox(input.BoundingBox, context) }),
|
|
4655
|
+
...(input.Polygon !== undefined &&
|
|
4656
|
+
input.Polygon !== null && { Polygon: serializeAws_json1_1Polygon(input.Polygon, context) }),
|
|
4531
4657
|
};
|
|
4532
4658
|
};
|
|
4533
4659
|
const serializeAws_json1_1RegionsOfInterest = (input, context) => {
|
|
@@ -4540,6 +4666,12 @@ const serializeAws_json1_1RegionsOfInterest = (input, context) => {
|
|
|
4540
4666
|
return serializeAws_json1_1RegionOfInterest(entry, context);
|
|
4541
4667
|
});
|
|
4542
4668
|
};
|
|
4669
|
+
const serializeAws_json1_1S3Destination = (input, context) => {
|
|
4670
|
+
return {
|
|
4671
|
+
...(input.Bucket !== undefined && input.Bucket !== null && { Bucket: input.Bucket }),
|
|
4672
|
+
...(input.KeyPrefix !== undefined && input.KeyPrefix !== null && { KeyPrefix: input.KeyPrefix }),
|
|
4673
|
+
};
|
|
4674
|
+
};
|
|
4543
4675
|
const serializeAws_json1_1S3Object = (input, context) => {
|
|
4544
4676
|
return {
|
|
4545
4677
|
...(input.Bucket !== undefined && input.Bucket !== null && { Bucket: input.Bucket }),
|
|
@@ -4710,6 +4842,14 @@ const serializeAws_json1_1StartShotDetectionFilter = (input, context) => {
|
|
|
4710
4842
|
const serializeAws_json1_1StartStreamProcessorRequest = (input, context) => {
|
|
4711
4843
|
return {
|
|
4712
4844
|
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
4845
|
+
...(input.StartSelector !== undefined &&
|
|
4846
|
+
input.StartSelector !== null && {
|
|
4847
|
+
StartSelector: serializeAws_json1_1StreamProcessingStartSelector(input.StartSelector, context),
|
|
4848
|
+
}),
|
|
4849
|
+
...(input.StopSelector !== undefined &&
|
|
4850
|
+
input.StopSelector !== null && {
|
|
4851
|
+
StopSelector: serializeAws_json1_1StreamProcessingStopSelector(input.StopSelector, context),
|
|
4852
|
+
}),
|
|
4713
4853
|
};
|
|
4714
4854
|
};
|
|
4715
4855
|
const serializeAws_json1_1StartTechnicalCueDetectionFilter = (input, context) => {
|
|
@@ -4756,6 +4896,25 @@ const serializeAws_json1_1StopStreamProcessorRequest = (input, context) => {
|
|
|
4756
4896
|
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
4757
4897
|
};
|
|
4758
4898
|
};
|
|
4899
|
+
const serializeAws_json1_1StreamProcessingStartSelector = (input, context) => {
|
|
4900
|
+
return {
|
|
4901
|
+
...(input.KVSStreamStartSelector !== undefined &&
|
|
4902
|
+
input.KVSStreamStartSelector !== null && {
|
|
4903
|
+
KVSStreamStartSelector: serializeAws_json1_1KinesisVideoStreamStartSelector(input.KVSStreamStartSelector, context),
|
|
4904
|
+
}),
|
|
4905
|
+
};
|
|
4906
|
+
};
|
|
4907
|
+
const serializeAws_json1_1StreamProcessingStopSelector = (input, context) => {
|
|
4908
|
+
return {
|
|
4909
|
+
...(input.MaxDurationInSeconds !== undefined &&
|
|
4910
|
+
input.MaxDurationInSeconds !== null && { MaxDurationInSeconds: input.MaxDurationInSeconds }),
|
|
4911
|
+
};
|
|
4912
|
+
};
|
|
4913
|
+
const serializeAws_json1_1StreamProcessorDataSharingPreference = (input, context) => {
|
|
4914
|
+
return {
|
|
4915
|
+
...(input.OptIn !== undefined && input.OptIn !== null && { OptIn: input.OptIn }),
|
|
4916
|
+
};
|
|
4917
|
+
};
|
|
4759
4918
|
const serializeAws_json1_1StreamProcessorInput = (input, context) => {
|
|
4760
4919
|
return {
|
|
4761
4920
|
...(input.KinesisVideoStream !== undefined &&
|
|
@@ -4764,20 +4923,51 @@ const serializeAws_json1_1StreamProcessorInput = (input, context) => {
|
|
|
4764
4923
|
}),
|
|
4765
4924
|
};
|
|
4766
4925
|
};
|
|
4926
|
+
const serializeAws_json1_1StreamProcessorNotificationChannel = (input, context) => {
|
|
4927
|
+
return {
|
|
4928
|
+
...(input.SNSTopicArn !== undefined && input.SNSTopicArn !== null && { SNSTopicArn: input.SNSTopicArn }),
|
|
4929
|
+
};
|
|
4930
|
+
};
|
|
4767
4931
|
const serializeAws_json1_1StreamProcessorOutput = (input, context) => {
|
|
4768
4932
|
return {
|
|
4769
4933
|
...(input.KinesisDataStream !== undefined &&
|
|
4770
4934
|
input.KinesisDataStream !== null && {
|
|
4771
4935
|
KinesisDataStream: serializeAws_json1_1KinesisDataStream(input.KinesisDataStream, context),
|
|
4772
4936
|
}),
|
|
4937
|
+
...(input.S3Destination !== undefined &&
|
|
4938
|
+
input.S3Destination !== null && {
|
|
4939
|
+
S3Destination: serializeAws_json1_1S3Destination(input.S3Destination, context),
|
|
4940
|
+
}),
|
|
4773
4941
|
};
|
|
4774
4942
|
};
|
|
4943
|
+
const serializeAws_json1_1StreamProcessorParametersToDelete = (input, context) => {
|
|
4944
|
+
return input
|
|
4945
|
+
.filter((e) => e != null)
|
|
4946
|
+
.map((entry) => {
|
|
4947
|
+
if (entry === null) {
|
|
4948
|
+
return null;
|
|
4949
|
+
}
|
|
4950
|
+
return entry;
|
|
4951
|
+
});
|
|
4952
|
+
};
|
|
4775
4953
|
const serializeAws_json1_1StreamProcessorSettings = (input, context) => {
|
|
4776
4954
|
return {
|
|
4955
|
+
...(input.ConnectedHome !== undefined &&
|
|
4956
|
+
input.ConnectedHome !== null && {
|
|
4957
|
+
ConnectedHome: serializeAws_json1_1ConnectedHomeSettings(input.ConnectedHome, context),
|
|
4958
|
+
}),
|
|
4777
4959
|
...(input.FaceSearch !== undefined &&
|
|
4778
4960
|
input.FaceSearch !== null && { FaceSearch: serializeAws_json1_1FaceSearchSettings(input.FaceSearch, context) }),
|
|
4779
4961
|
};
|
|
4780
4962
|
};
|
|
4963
|
+
const serializeAws_json1_1StreamProcessorSettingsForUpdate = (input, context) => {
|
|
4964
|
+
return {
|
|
4965
|
+
...(input.ConnectedHomeForUpdate !== undefined &&
|
|
4966
|
+
input.ConnectedHomeForUpdate !== null && {
|
|
4967
|
+
ConnectedHomeForUpdate: serializeAws_json1_1ConnectedHomeSettingsForUpdate(input.ConnectedHomeForUpdate, context),
|
|
4968
|
+
}),
|
|
4969
|
+
};
|
|
4970
|
+
};
|
|
4781
4971
|
const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
4782
4972
|
return input
|
|
4783
4973
|
.filter((e) => e != null)
|
|
@@ -4832,6 +5022,27 @@ const serializeAws_json1_1UpdateDatasetEntriesRequest = (input, context) => {
|
|
|
4832
5022
|
...(input.DatasetArn !== undefined && input.DatasetArn !== null && { DatasetArn: input.DatasetArn }),
|
|
4833
5023
|
};
|
|
4834
5024
|
};
|
|
5025
|
+
const serializeAws_json1_1UpdateStreamProcessorRequest = (input, context) => {
|
|
5026
|
+
return {
|
|
5027
|
+
...(input.DataSharingPreferenceForUpdate !== undefined &&
|
|
5028
|
+
input.DataSharingPreferenceForUpdate !== null && {
|
|
5029
|
+
DataSharingPreferenceForUpdate: serializeAws_json1_1StreamProcessorDataSharingPreference(input.DataSharingPreferenceForUpdate, context),
|
|
5030
|
+
}),
|
|
5031
|
+
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
5032
|
+
...(input.ParametersToDelete !== undefined &&
|
|
5033
|
+
input.ParametersToDelete !== null && {
|
|
5034
|
+
ParametersToDelete: serializeAws_json1_1StreamProcessorParametersToDelete(input.ParametersToDelete, context),
|
|
5035
|
+
}),
|
|
5036
|
+
...(input.RegionsOfInterestForUpdate !== undefined &&
|
|
5037
|
+
input.RegionsOfInterestForUpdate !== null && {
|
|
5038
|
+
RegionsOfInterestForUpdate: serializeAws_json1_1RegionsOfInterest(input.RegionsOfInterestForUpdate, context),
|
|
5039
|
+
}),
|
|
5040
|
+
...(input.SettingsForUpdate !== undefined &&
|
|
5041
|
+
input.SettingsForUpdate !== null && {
|
|
5042
|
+
SettingsForUpdate: serializeAws_json1_1StreamProcessorSettingsForUpdate(input.SettingsForUpdate, context),
|
|
5043
|
+
}),
|
|
5044
|
+
};
|
|
5045
|
+
};
|
|
4835
5046
|
const serializeAws_json1_1VersionNames = (input, context) => {
|
|
4836
5047
|
return input
|
|
4837
5048
|
.filter((e) => e != null)
|
|
@@ -5080,6 +5291,25 @@ const deserializeAws_json1_1CompareFacesUnmatchList = (output, context) => {
|
|
|
5080
5291
|
});
|
|
5081
5292
|
return retVal;
|
|
5082
5293
|
};
|
|
5294
|
+
const deserializeAws_json1_1ConnectedHomeLabels = (output, context) => {
|
|
5295
|
+
const retVal = (output || [])
|
|
5296
|
+
.filter((e) => e != null)
|
|
5297
|
+
.map((entry) => {
|
|
5298
|
+
if (entry === null) {
|
|
5299
|
+
return null;
|
|
5300
|
+
}
|
|
5301
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
5302
|
+
});
|
|
5303
|
+
return retVal;
|
|
5304
|
+
};
|
|
5305
|
+
const deserializeAws_json1_1ConnectedHomeSettings = (output, context) => {
|
|
5306
|
+
return {
|
|
5307
|
+
Labels: output.Labels !== undefined && output.Labels !== null
|
|
5308
|
+
? deserializeAws_json1_1ConnectedHomeLabels(output.Labels, context)
|
|
5309
|
+
: undefined,
|
|
5310
|
+
MinConfidence: (0, smithy_client_1.limitedParseFloat32)(output.MinConfidence),
|
|
5311
|
+
};
|
|
5312
|
+
};
|
|
5083
5313
|
const deserializeAws_json1_1ContentModerationDetection = (output, context) => {
|
|
5084
5314
|
return {
|
|
5085
5315
|
ModerationLabel: output.ModerationLabel !== undefined && output.ModerationLabel !== null
|
|
@@ -5301,16 +5531,26 @@ const deserializeAws_json1_1DescribeStreamProcessorResponse = (output, context)
|
|
|
5301
5531
|
CreationTimestamp: output.CreationTimestamp !== undefined && output.CreationTimestamp !== null
|
|
5302
5532
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTimestamp)))
|
|
5303
5533
|
: undefined,
|
|
5534
|
+
DataSharingPreference: output.DataSharingPreference !== undefined && output.DataSharingPreference !== null
|
|
5535
|
+
? deserializeAws_json1_1StreamProcessorDataSharingPreference(output.DataSharingPreference, context)
|
|
5536
|
+
: undefined,
|
|
5304
5537
|
Input: output.Input !== undefined && output.Input !== null
|
|
5305
5538
|
? deserializeAws_json1_1StreamProcessorInput(output.Input, context)
|
|
5306
5539
|
: undefined,
|
|
5540
|
+
KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
|
|
5307
5541
|
LastUpdateTimestamp: output.LastUpdateTimestamp !== undefined && output.LastUpdateTimestamp !== null
|
|
5308
5542
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdateTimestamp)))
|
|
5309
5543
|
: undefined,
|
|
5310
5544
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
5545
|
+
NotificationChannel: output.NotificationChannel !== undefined && output.NotificationChannel !== null
|
|
5546
|
+
? deserializeAws_json1_1StreamProcessorNotificationChannel(output.NotificationChannel, context)
|
|
5547
|
+
: undefined,
|
|
5311
5548
|
Output: output.Output !== undefined && output.Output !== null
|
|
5312
5549
|
? deserializeAws_json1_1StreamProcessorOutput(output.Output, context)
|
|
5313
5550
|
: undefined,
|
|
5551
|
+
RegionsOfInterest: output.RegionsOfInterest !== undefined && output.RegionsOfInterest !== null
|
|
5552
|
+
? deserializeAws_json1_1RegionsOfInterest(output.RegionsOfInterest, context)
|
|
5553
|
+
: undefined,
|
|
5314
5554
|
RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
|
|
5315
5555
|
Settings: output.Settings !== undefined && output.Settings !== null
|
|
5316
5556
|
? deserializeAws_json1_1StreamProcessorSettings(output.Settings, context)
|
|
@@ -6274,6 +6514,27 @@ const deserializeAws_json1_1RecognizeCelebritiesResponse = (output, context) =>
|
|
|
6274
6514
|
: undefined,
|
|
6275
6515
|
};
|
|
6276
6516
|
};
|
|
6517
|
+
const deserializeAws_json1_1RegionOfInterest = (output, context) => {
|
|
6518
|
+
return {
|
|
6519
|
+
BoundingBox: output.BoundingBox !== undefined && output.BoundingBox !== null
|
|
6520
|
+
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
6521
|
+
: undefined,
|
|
6522
|
+
Polygon: output.Polygon !== undefined && output.Polygon !== null
|
|
6523
|
+
? deserializeAws_json1_1Polygon(output.Polygon, context)
|
|
6524
|
+
: undefined,
|
|
6525
|
+
};
|
|
6526
|
+
};
|
|
6527
|
+
const deserializeAws_json1_1RegionsOfInterest = (output, context) => {
|
|
6528
|
+
const retVal = (output || [])
|
|
6529
|
+
.filter((e) => e != null)
|
|
6530
|
+
.map((entry) => {
|
|
6531
|
+
if (entry === null) {
|
|
6532
|
+
return null;
|
|
6533
|
+
}
|
|
6534
|
+
return deserializeAws_json1_1RegionOfInterest(entry, context);
|
|
6535
|
+
});
|
|
6536
|
+
return retVal;
|
|
6537
|
+
};
|
|
6277
6538
|
const deserializeAws_json1_1ResourceAlreadyExistsException = (output, context) => {
|
|
6278
6539
|
return {
|
|
6279
6540
|
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
@@ -6302,6 +6563,12 @@ const deserializeAws_json1_1ResourceNotReadyException = (output, context) => {
|
|
|
6302
6563
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
6303
6564
|
};
|
|
6304
6565
|
};
|
|
6566
|
+
const deserializeAws_json1_1S3Destination = (output, context) => {
|
|
6567
|
+
return {
|
|
6568
|
+
Bucket: (0, smithy_client_1.expectString)(output.Bucket),
|
|
6569
|
+
KeyPrefix: (0, smithy_client_1.expectString)(output.KeyPrefix),
|
|
6570
|
+
};
|
|
6571
|
+
};
|
|
6305
6572
|
const deserializeAws_json1_1S3Object = (output, context) => {
|
|
6306
6573
|
return {
|
|
6307
6574
|
Bucket: (0, smithy_client_1.expectString)(output.Bucket),
|
|
@@ -6438,7 +6705,9 @@ const deserializeAws_json1_1StartSegmentDetectionResponse = (output, context) =>
|
|
|
6438
6705
|
};
|
|
6439
6706
|
};
|
|
6440
6707
|
const deserializeAws_json1_1StartStreamProcessorResponse = (output, context) => {
|
|
6441
|
-
return {
|
|
6708
|
+
return {
|
|
6709
|
+
SessionId: (0, smithy_client_1.expectString)(output.SessionId),
|
|
6710
|
+
};
|
|
6442
6711
|
};
|
|
6443
6712
|
const deserializeAws_json1_1StartTextDetectionResponse = (output, context) => {
|
|
6444
6713
|
return {
|
|
@@ -6459,6 +6728,11 @@ const deserializeAws_json1_1StreamProcessor = (output, context) => {
|
|
|
6459
6728
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
6460
6729
|
};
|
|
6461
6730
|
};
|
|
6731
|
+
const deserializeAws_json1_1StreamProcessorDataSharingPreference = (output, context) => {
|
|
6732
|
+
return {
|
|
6733
|
+
OptIn: (0, smithy_client_1.expectBoolean)(output.OptIn),
|
|
6734
|
+
};
|
|
6735
|
+
};
|
|
6462
6736
|
const deserializeAws_json1_1StreamProcessorInput = (output, context) => {
|
|
6463
6737
|
return {
|
|
6464
6738
|
KinesisVideoStream: output.KinesisVideoStream !== undefined && output.KinesisVideoStream !== null
|
|
@@ -6477,15 +6751,26 @@ const deserializeAws_json1_1StreamProcessorList = (output, context) => {
|
|
|
6477
6751
|
});
|
|
6478
6752
|
return retVal;
|
|
6479
6753
|
};
|
|
6754
|
+
const deserializeAws_json1_1StreamProcessorNotificationChannel = (output, context) => {
|
|
6755
|
+
return {
|
|
6756
|
+
SNSTopicArn: (0, smithy_client_1.expectString)(output.SNSTopicArn),
|
|
6757
|
+
};
|
|
6758
|
+
};
|
|
6480
6759
|
const deserializeAws_json1_1StreamProcessorOutput = (output, context) => {
|
|
6481
6760
|
return {
|
|
6482
6761
|
KinesisDataStream: output.KinesisDataStream !== undefined && output.KinesisDataStream !== null
|
|
6483
6762
|
? deserializeAws_json1_1KinesisDataStream(output.KinesisDataStream, context)
|
|
6484
6763
|
: undefined,
|
|
6764
|
+
S3Destination: output.S3Destination !== undefined && output.S3Destination !== null
|
|
6765
|
+
? deserializeAws_json1_1S3Destination(output.S3Destination, context)
|
|
6766
|
+
: undefined,
|
|
6485
6767
|
};
|
|
6486
6768
|
};
|
|
6487
6769
|
const deserializeAws_json1_1StreamProcessorSettings = (output, context) => {
|
|
6488
6770
|
return {
|
|
6771
|
+
ConnectedHome: output.ConnectedHome !== undefined && output.ConnectedHome !== null
|
|
6772
|
+
? deserializeAws_json1_1ConnectedHomeSettings(output.ConnectedHome, context)
|
|
6773
|
+
: undefined,
|
|
6489
6774
|
FaceSearch: output.FaceSearch !== undefined && output.FaceSearch !== null
|
|
6490
6775
|
? deserializeAws_json1_1FaceSearchSettings(output.FaceSearch, context)
|
|
6491
6776
|
: undefined,
|
|
@@ -6641,6 +6926,9 @@ const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
|
6641
6926
|
const deserializeAws_json1_1UpdateDatasetEntriesResponse = (output, context) => {
|
|
6642
6927
|
return {};
|
|
6643
6928
|
};
|
|
6929
|
+
const deserializeAws_json1_1UpdateStreamProcessorResponse = (output, context) => {
|
|
6930
|
+
return {};
|
|
6931
|
+
};
|
|
6644
6932
|
const deserializeAws_json1_1Urls = (output, context) => {
|
|
6645
6933
|
const retVal = (output || [])
|
|
6646
6934
|
.filter((e) => e != null)
|
package/dist-es/Rekognition.js
CHANGED
|
@@ -57,6 +57,7 @@ import { StopStreamProcessorCommand, } from "./commands/StopStreamProcessorComma
|
|
|
57
57
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
58
58
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
59
59
|
import { UpdateDatasetEntriesCommand, } from "./commands/UpdateDatasetEntriesCommand";
|
|
60
|
+
import { UpdateStreamProcessorCommand, } from "./commands/UpdateStreamProcessorCommand";
|
|
60
61
|
import { RekognitionClient } from "./RekognitionClient";
|
|
61
62
|
var Rekognition = (function (_super) {
|
|
62
63
|
__extends(Rekognition, _super);
|
|
@@ -875,6 +876,20 @@ var Rekognition = (function (_super) {
|
|
|
875
876
|
return this.send(command, optionsOrCb);
|
|
876
877
|
}
|
|
877
878
|
};
|
|
879
|
+
Rekognition.prototype.updateStreamProcessor = function (args, optionsOrCb, cb) {
|
|
880
|
+
var command = new UpdateStreamProcessorCommand(args);
|
|
881
|
+
if (typeof optionsOrCb === "function") {
|
|
882
|
+
this.send(command, optionsOrCb);
|
|
883
|
+
}
|
|
884
|
+
else if (typeof cb === "function") {
|
|
885
|
+
if (typeof optionsOrCb !== "object")
|
|
886
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
887
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
888
|
+
}
|
|
889
|
+
else {
|
|
890
|
+
return this.send(command, optionsOrCb);
|
|
891
|
+
}
|
|
892
|
+
};
|
|
878
893
|
return Rekognition;
|
|
879
894
|
}(RekognitionClient));
|
|
880
895
|
export { Rekognition };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { UpdateStreamProcessorRequest, UpdateStreamProcessorResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1UpdateStreamProcessorCommand, serializeAws_json1_1UpdateStreamProcessorCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var UpdateStreamProcessorCommand = (function (_super) {
|
|
7
|
+
__extends(UpdateStreamProcessorCommand, _super);
|
|
8
|
+
function UpdateStreamProcessorCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
UpdateStreamProcessorCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "RekognitionClient";
|
|
18
|
+
var commandName = "UpdateStreamProcessorCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: UpdateStreamProcessorRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: UpdateStreamProcessorResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
UpdateStreamProcessorCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1UpdateStreamProcessorCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
UpdateStreamProcessorCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1UpdateStreamProcessorCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return UpdateStreamProcessorCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { UpdateStreamProcessorCommand };
|