@aws-sdk/client-rekognition 3.78.0 → 3.81.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.
Files changed (42) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +198 -1
  3. package/dist-cjs/Rekognition.js +15 -0
  4. package/dist-cjs/commands/UpdateStreamProcessorCommand.js +36 -0
  5. package/dist-cjs/commands/index.js +1 -0
  6. package/dist-cjs/models/models_0.js +89 -17
  7. package/dist-cjs/protocols/Aws_json1_1.js +291 -3
  8. package/dist-es/Rekognition.js +15 -0
  9. package/dist-es/commands/UpdateStreamProcessorCommand.js +39 -0
  10. package/dist-es/commands/index.js +1 -0
  11. package/dist-es/models/models_0.js +58 -8
  12. package/dist-es/protocols/Aws_json1_1.js +277 -9
  13. package/dist-types/Rekognition.d.ts +247 -24
  14. package/dist-types/RekognitionClient.d.ts +205 -3
  15. package/dist-types/commands/CreateStreamProcessorCommand.d.ts +17 -6
  16. package/dist-types/commands/DeleteCollectionCommand.d.ts +1 -1
  17. package/dist-types/commands/DetectLabelsCommand.d.ts +1 -1
  18. package/dist-types/commands/DetectTextCommand.d.ts +1 -1
  19. package/dist-types/commands/GetCelebrityInfoCommand.d.ts +1 -1
  20. package/dist-types/commands/GetContentModerationCommand.d.ts +1 -1
  21. package/dist-types/commands/GetSegmentDetectionCommand.d.ts +1 -1
  22. package/dist-types/commands/IndexFacesCommand.d.ts +2 -2
  23. package/dist-types/commands/ListCollectionsCommand.d.ts +1 -1
  24. package/dist-types/commands/RecognizeCelebritiesCommand.d.ts +2 -2
  25. package/dist-types/commands/SearchFacesCommand.d.ts +1 -1
  26. package/dist-types/commands/StartCelebrityRecognitionCommand.d.ts +1 -1
  27. package/dist-types/commands/StartContentModerationCommand.d.ts +1 -1
  28. package/dist-types/commands/StartFaceDetectionCommand.d.ts +1 -1
  29. package/dist-types/commands/StartFaceSearchCommand.d.ts +2 -1
  30. package/dist-types/commands/StartSegmentDetectionCommand.d.ts +1 -1
  31. package/dist-types/commands/StartStreamProcessorCommand.d.ts +1 -0
  32. package/dist-types/commands/UpdateStreamProcessorCommand.d.ts +37 -0
  33. package/dist-types/commands/index.d.ts +1 -0
  34. package/dist-types/models/models_0.d.ts +450 -84
  35. package/dist-types/protocols/Aws_json1_1.d.ts +3 -0
  36. package/dist-types/ts3.4/Rekognition.d.ts +5 -0
  37. package/dist-types/ts3.4/RekognitionClient.d.ts +3 -2
  38. package/dist-types/ts3.4/commands/UpdateStreamProcessorCommand.d.ts +17 -0
  39. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  40. package/dist-types/ts3.4/models/models_0.d.ts +165 -21
  41. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +3 -0
  42. package/package.json +8 -8
@@ -335,6 +335,14 @@ var ThrottlingException = (function (_super) {
335
335
  return ThrottlingException;
336
336
  }(__BaseException));
337
337
  export { ThrottlingException };
338
+ export var ConnectedHomeSettings;
339
+ (function (ConnectedHomeSettings) {
340
+ ConnectedHomeSettings.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
341
+ })(ConnectedHomeSettings || (ConnectedHomeSettings = {}));
342
+ export var ConnectedHomeSettingsForUpdate;
343
+ (function (ConnectedHomeSettingsForUpdate) {
344
+ ConnectedHomeSettingsForUpdate.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
345
+ })(ConnectedHomeSettingsForUpdate || (ConnectedHomeSettingsForUpdate = {}));
338
346
  export var ContentClassifier;
339
347
  (function (ContentClassifier) {
340
348
  ContentClassifier["FREE_OF_ADULT_CONTENT"] = "FreeOfAdultContent";
@@ -481,6 +489,10 @@ export var CreateProjectVersionResponse;
481
489
  (function (CreateProjectVersionResponse) {
482
490
  CreateProjectVersionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
483
491
  })(CreateProjectVersionResponse || (CreateProjectVersionResponse = {}));
492
+ export var StreamProcessorDataSharingPreference;
493
+ (function (StreamProcessorDataSharingPreference) {
494
+ StreamProcessorDataSharingPreference.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
495
+ })(StreamProcessorDataSharingPreference || (StreamProcessorDataSharingPreference = {}));
484
496
  export var KinesisVideoStream;
485
497
  (function (KinesisVideoStream) {
486
498
  KinesisVideoStream.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -489,14 +501,30 @@ export var StreamProcessorInput;
489
501
  (function (StreamProcessorInput) {
490
502
  StreamProcessorInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
491
503
  })(StreamProcessorInput || (StreamProcessorInput = {}));
504
+ export var StreamProcessorNotificationChannel;
505
+ (function (StreamProcessorNotificationChannel) {
506
+ StreamProcessorNotificationChannel.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
507
+ })(StreamProcessorNotificationChannel || (StreamProcessorNotificationChannel = {}));
492
508
  export var KinesisDataStream;
493
509
  (function (KinesisDataStream) {
494
510
  KinesisDataStream.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
495
511
  })(KinesisDataStream || (KinesisDataStream = {}));
512
+ export var S3Destination;
513
+ (function (S3Destination) {
514
+ S3Destination.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
515
+ })(S3Destination || (S3Destination = {}));
496
516
  export var StreamProcessorOutput;
497
517
  (function (StreamProcessorOutput) {
498
518
  StreamProcessorOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
499
519
  })(StreamProcessorOutput || (StreamProcessorOutput = {}));
520
+ export var Point;
521
+ (function (Point) {
522
+ Point.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
523
+ })(Point || (Point = {}));
524
+ export var RegionOfInterest;
525
+ (function (RegionOfInterest) {
526
+ RegionOfInterest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
527
+ })(RegionOfInterest || (RegionOfInterest = {}));
500
528
  export var FaceSearchSettings;
501
529
  (function (FaceSearchSettings) {
502
530
  FaceSearchSettings.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -513,10 +541,6 @@ export var CreateStreamProcessorResponse;
513
541
  (function (CreateStreamProcessorResponse) {
514
542
  CreateStreamProcessorResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
515
543
  })(CreateStreamProcessorResponse || (CreateStreamProcessorResponse = {}));
516
- export var Point;
517
- (function (Point) {
518
- Point.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
519
- })(Point || (Point = {}));
520
544
  export var Geometry;
521
545
  (function (Geometry) {
522
546
  Geometry.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -717,6 +741,7 @@ export var StreamProcessorStatus;
717
741
  StreamProcessorStatus["STARTING"] = "STARTING";
718
742
  StreamProcessorStatus["STOPPED"] = "STOPPED";
719
743
  StreamProcessorStatus["STOPPING"] = "STOPPING";
744
+ StreamProcessorStatus["UPDATING"] = "UPDATING";
720
745
  })(StreamProcessorStatus || (StreamProcessorStatus = {}));
721
746
  export var DescribeStreamProcessorResponse;
722
747
  (function (DescribeStreamProcessorResponse) {
@@ -835,10 +860,6 @@ export var DetectProtectiveEquipmentResponse;
835
860
  (function (DetectProtectiveEquipmentResponse) {
836
861
  DetectProtectiveEquipmentResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
837
862
  })(DetectProtectiveEquipmentResponse || (DetectProtectiveEquipmentResponse = {}));
838
- export var RegionOfInterest;
839
- (function (RegionOfInterest) {
840
- RegionOfInterest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
841
- })(RegionOfInterest || (RegionOfInterest = {}));
842
863
  export var DetectTextFilters;
843
864
  (function (DetectTextFilters) {
844
865
  DetectTextFilters.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1083,6 +1104,10 @@ export var IndexFacesResponse;
1083
1104
  (function (IndexFacesResponse) {
1084
1105
  IndexFacesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1085
1106
  })(IndexFacesResponse || (IndexFacesResponse = {}));
1107
+ export var KinesisVideoStreamStartSelector;
1108
+ (function (KinesisVideoStreamStartSelector) {
1109
+ KinesisVideoStreamStartSelector.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1110
+ })(KinesisVideoStreamStartSelector || (KinesisVideoStreamStartSelector = {}));
1086
1111
  export var ListCollectionsRequest;
1087
1112
  (function (ListCollectionsRequest) {
1088
1113
  ListCollectionsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1258,6 +1283,14 @@ export var StartSegmentDetectionResponse;
1258
1283
  (function (StartSegmentDetectionResponse) {
1259
1284
  StartSegmentDetectionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1260
1285
  })(StartSegmentDetectionResponse || (StartSegmentDetectionResponse = {}));
1286
+ export var StreamProcessingStartSelector;
1287
+ (function (StreamProcessingStartSelector) {
1288
+ StreamProcessingStartSelector.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1289
+ })(StreamProcessingStartSelector || (StreamProcessingStartSelector = {}));
1290
+ export var StreamProcessingStopSelector;
1291
+ (function (StreamProcessingStopSelector) {
1292
+ StreamProcessingStopSelector.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1293
+ })(StreamProcessingStopSelector || (StreamProcessingStopSelector = {}));
1261
1294
  export var StartStreamProcessorRequest;
1262
1295
  (function (StartStreamProcessorRequest) {
1263
1296
  StartStreamProcessorRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1318,3 +1351,20 @@ export var UpdateDatasetEntriesResponse;
1318
1351
  (function (UpdateDatasetEntriesResponse) {
1319
1352
  UpdateDatasetEntriesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1320
1353
  })(UpdateDatasetEntriesResponse || (UpdateDatasetEntriesResponse = {}));
1354
+ export var StreamProcessorParameterToDelete;
1355
+ (function (StreamProcessorParameterToDelete) {
1356
+ StreamProcessorParameterToDelete["ConnectedHomeMinConfidence"] = "ConnectedHomeMinConfidence";
1357
+ StreamProcessorParameterToDelete["RegionsOfInterest"] = "RegionsOfInterest";
1358
+ })(StreamProcessorParameterToDelete || (StreamProcessorParameterToDelete = {}));
1359
+ export var StreamProcessorSettingsForUpdate;
1360
+ (function (StreamProcessorSettingsForUpdate) {
1361
+ StreamProcessorSettingsForUpdate.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1362
+ })(StreamProcessorSettingsForUpdate || (StreamProcessorSettingsForUpdate = {}));
1363
+ export var UpdateStreamProcessorRequest;
1364
+ (function (UpdateStreamProcessorRequest) {
1365
+ UpdateStreamProcessorRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1366
+ })(UpdateStreamProcessorRequest || (UpdateStreamProcessorRequest = {}));
1367
+ export var UpdateStreamProcessorResponse;
1368
+ (function (UpdateStreamProcessorResponse) {
1369
+ UpdateStreamProcessorResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1370
+ })(UpdateStreamProcessorResponse || (UpdateStreamProcessorResponse = {}));
@@ -641,6 +641,17 @@ export var serializeAws_json1_1UpdateDatasetEntriesCommand = function (input, co
641
641
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
642
642
  });
643
643
  }); };
644
+ export var serializeAws_json1_1UpdateStreamProcessorCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
645
+ var headers, body;
646
+ return __generator(this, function (_a) {
647
+ headers = {
648
+ "content-type": "application/x-amz-json-1.1",
649
+ "x-amz-target": "RekognitionService.UpdateStreamProcessor",
650
+ };
651
+ body = JSON.stringify(serializeAws_json1_1UpdateStreamProcessorRequest(input, context));
652
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
653
+ });
654
+ }); };
644
655
  export var deserializeAws_json1_1CompareFacesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
645
656
  var data, contents, response;
646
657
  return __generator(this, function (_a) {
@@ -5073,6 +5084,76 @@ var deserializeAws_json1_1UpdateDatasetEntriesCommandError = function (output, c
5073
5084
  }
5074
5085
  });
5075
5086
  }); };
5087
+ export var deserializeAws_json1_1UpdateStreamProcessorCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5088
+ var data, contents, response;
5089
+ return __generator(this, function (_a) {
5090
+ switch (_a.label) {
5091
+ case 0:
5092
+ if (output.statusCode >= 300) {
5093
+ return [2, deserializeAws_json1_1UpdateStreamProcessorCommandError(output, context)];
5094
+ }
5095
+ return [4, parseBody(output.body, context)];
5096
+ case 1:
5097
+ data = _a.sent();
5098
+ contents = {};
5099
+ contents = deserializeAws_json1_1UpdateStreamProcessorResponse(data, context);
5100
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
5101
+ return [2, Promise.resolve(response)];
5102
+ }
5103
+ });
5104
+ }); };
5105
+ var deserializeAws_json1_1UpdateStreamProcessorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5106
+ var parsedOutput, _a, response, errorCode, _b, parsedBody;
5107
+ var _c;
5108
+ return __generator(this, function (_d) {
5109
+ switch (_d.label) {
5110
+ case 0:
5111
+ _a = [__assign({}, output)];
5112
+ _c = {};
5113
+ return [4, parseBody(output.body, context)];
5114
+ case 1:
5115
+ parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5116
+ errorCode = "UnknownError";
5117
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5118
+ _b = errorCode;
5119
+ switch (_b) {
5120
+ case "AccessDeniedException": return [3, 2];
5121
+ case "com.amazonaws.rekognition#AccessDeniedException": return [3, 2];
5122
+ case "InternalServerError": return [3, 4];
5123
+ case "com.amazonaws.rekognition#InternalServerError": return [3, 4];
5124
+ case "InvalidParameterException": return [3, 6];
5125
+ case "com.amazonaws.rekognition#InvalidParameterException": return [3, 6];
5126
+ case "ProvisionedThroughputExceededException": return [3, 8];
5127
+ case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3, 8];
5128
+ case "ResourceNotFoundException": return [3, 10];
5129
+ case "com.amazonaws.rekognition#ResourceNotFoundException": return [3, 10];
5130
+ case "ThrottlingException": return [3, 12];
5131
+ case "com.amazonaws.rekognition#ThrottlingException": return [3, 12];
5132
+ }
5133
+ return [3, 14];
5134
+ case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
5135
+ case 3: throw _d.sent();
5136
+ case 4: return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
5137
+ case 5: throw _d.sent();
5138
+ case 6: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
5139
+ case 7: throw _d.sent();
5140
+ case 8: return [4, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)];
5141
+ case 9: throw _d.sent();
5142
+ case 10: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
5143
+ case 11: throw _d.sent();
5144
+ case 12: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
5145
+ case 13: throw _d.sent();
5146
+ case 14:
5147
+ parsedBody = parsedOutput.body;
5148
+ response = new __BaseException({
5149
+ name: parsedBody.code || parsedBody.Code || errorCode,
5150
+ $fault: "client",
5151
+ $metadata: deserializeMetadata(output),
5152
+ });
5153
+ throw __decorateServiceException(response, parsedBody);
5154
+ }
5155
+ });
5156
+ }); };
5076
5157
  var deserializeAws_json1_1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
5077
5158
  var body, deserialized, exception;
5078
5159
  return __generator(this, function (_a) {
@@ -5275,6 +5356,26 @@ var serializeAws_json1_1CompareFacesRequest = function (input, context) {
5275
5356
  input.SourceImage !== null && { SourceImage: serializeAws_json1_1Image(input.SourceImage, context) })), (input.TargetImage !== undefined &&
5276
5357
  input.TargetImage !== null && { TargetImage: serializeAws_json1_1Image(input.TargetImage, context) }));
5277
5358
  };
5359
+ var serializeAws_json1_1ConnectedHomeLabels = function (input, context) {
5360
+ return input
5361
+ .filter(function (e) { return e != null; })
5362
+ .map(function (entry) {
5363
+ if (entry === null) {
5364
+ return null;
5365
+ }
5366
+ return entry;
5367
+ });
5368
+ };
5369
+ var serializeAws_json1_1ConnectedHomeSettings = function (input, context) {
5370
+ return __assign(__assign({}, (input.Labels !== undefined &&
5371
+ input.Labels !== null && { Labels: serializeAws_json1_1ConnectedHomeLabels(input.Labels, context) })), (input.MinConfidence !== undefined &&
5372
+ input.MinConfidence !== null && { MinConfidence: __serializeFloat(input.MinConfidence) }));
5373
+ };
5374
+ var serializeAws_json1_1ConnectedHomeSettingsForUpdate = function (input, context) {
5375
+ return __assign(__assign({}, (input.Labels !== undefined &&
5376
+ input.Labels !== null && { Labels: serializeAws_json1_1ConnectedHomeLabels(input.Labels, context) })), (input.MinConfidence !== undefined &&
5377
+ input.MinConfidence !== null && { MinConfidence: __serializeFloat(input.MinConfidence) }));
5378
+ };
5278
5379
  var serializeAws_json1_1ContentClassifiers = function (input, context) {
5279
5380
  return input
5280
5381
  .filter(function (e) { return e != null; })
@@ -5304,9 +5405,18 @@ var serializeAws_json1_1CreateProjectVersionRequest = function (input, context)
5304
5405
  input.TrainingData !== null && { TrainingData: serializeAws_json1_1TrainingData(input.TrainingData, context) })), (input.VersionName !== undefined && input.VersionName !== null && { VersionName: input.VersionName }));
5305
5406
  };
5306
5407
  var serializeAws_json1_1CreateStreamProcessorRequest = function (input, context) {
5307
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Input !== undefined &&
5308
- input.Input !== null && { Input: serializeAws_json1_1StreamProcessorInput(input.Input, context) })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Output !== undefined &&
5309
- input.Output !== null && { Output: serializeAws_json1_1StreamProcessorOutput(input.Output, context) })), (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn })), (input.Settings !== undefined &&
5408
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DataSharingPreference !== undefined &&
5409
+ input.DataSharingPreference !== null && {
5410
+ DataSharingPreference: serializeAws_json1_1StreamProcessorDataSharingPreference(input.DataSharingPreference, context),
5411
+ })), (input.Input !== undefined &&
5412
+ input.Input !== null && { Input: serializeAws_json1_1StreamProcessorInput(input.Input, context) })), (input.KmsKeyId !== undefined && input.KmsKeyId !== null && { KmsKeyId: input.KmsKeyId })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.NotificationChannel !== undefined &&
5413
+ input.NotificationChannel !== null && {
5414
+ NotificationChannel: serializeAws_json1_1StreamProcessorNotificationChannel(input.NotificationChannel, context),
5415
+ })), (input.Output !== undefined &&
5416
+ input.Output !== null && { Output: serializeAws_json1_1StreamProcessorOutput(input.Output, context) })), (input.RegionsOfInterest !== undefined &&
5417
+ input.RegionsOfInterest !== null && {
5418
+ RegionsOfInterest: serializeAws_json1_1RegionsOfInterest(input.RegionsOfInterest, context),
5419
+ })), (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn })), (input.Settings !== undefined &&
5310
5420
  input.Settings !== null && { Settings: serializeAws_json1_1StreamProcessorSettings(input.Settings, context) })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagMap(input.Tags, context) }));
5311
5421
  };
5312
5422
  var serializeAws_json1_1DatasetChanges = function (input, context) {
@@ -5510,6 +5620,11 @@ var serializeAws_json1_1KinesisDataStream = function (input, context) {
5510
5620
  var serializeAws_json1_1KinesisVideoStream = function (input, context) {
5511
5621
  return __assign({}, (input.Arn !== undefined && input.Arn !== null && { Arn: input.Arn }));
5512
5622
  };
5623
+ var serializeAws_json1_1KinesisVideoStreamStartSelector = function (input, context) {
5624
+ return __assign(__assign({}, (input.FragmentNumber !== undefined &&
5625
+ input.FragmentNumber !== null && { FragmentNumber: input.FragmentNumber })), (input.ProducerTimestamp !== undefined &&
5626
+ input.ProducerTimestamp !== null && { ProducerTimestamp: input.ProducerTimestamp }));
5627
+ };
5513
5628
  var serializeAws_json1_1ListCollectionsRequest = function (input, context) {
5514
5629
  return __assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
5515
5630
  };
@@ -5538,6 +5653,19 @@ var serializeAws_json1_1NotificationChannel = function (input, context) {
5538
5653
  var serializeAws_json1_1OutputConfig = function (input, context) {
5539
5654
  return __assign(__assign({}, (input.S3Bucket !== undefined && input.S3Bucket !== null && { S3Bucket: input.S3Bucket })), (input.S3KeyPrefix !== undefined && input.S3KeyPrefix !== null && { S3KeyPrefix: input.S3KeyPrefix }));
5540
5655
  };
5656
+ var serializeAws_json1_1Point = function (input, context) {
5657
+ return __assign(__assign({}, (input.X !== undefined && input.X !== null && { X: __serializeFloat(input.X) })), (input.Y !== undefined && input.Y !== null && { Y: __serializeFloat(input.Y) }));
5658
+ };
5659
+ var serializeAws_json1_1Polygon = function (input, context) {
5660
+ return input
5661
+ .filter(function (e) { return e != null; })
5662
+ .map(function (entry) {
5663
+ if (entry === null) {
5664
+ return null;
5665
+ }
5666
+ return serializeAws_json1_1Point(entry, context);
5667
+ });
5668
+ };
5541
5669
  var serializeAws_json1_1ProjectNames = function (input, context) {
5542
5670
  return input
5543
5671
  .filter(function (e) { return e != null; })
@@ -5570,8 +5698,9 @@ var serializeAws_json1_1RecognizeCelebritiesRequest = function (input, context)
5570
5698
  input.Image !== null && { Image: serializeAws_json1_1Image(input.Image, context) }));
5571
5699
  };
5572
5700
  var serializeAws_json1_1RegionOfInterest = function (input, context) {
5573
- return __assign({}, (input.BoundingBox !== undefined &&
5574
- input.BoundingBox !== null && { BoundingBox: serializeAws_json1_1BoundingBox(input.BoundingBox, context) }));
5701
+ return __assign(__assign({}, (input.BoundingBox !== undefined &&
5702
+ input.BoundingBox !== null && { BoundingBox: serializeAws_json1_1BoundingBox(input.BoundingBox, context) })), (input.Polygon !== undefined &&
5703
+ input.Polygon !== null && { Polygon: serializeAws_json1_1Polygon(input.Polygon, context) }));
5575
5704
  };
5576
5705
  var serializeAws_json1_1RegionsOfInterest = function (input, context) {
5577
5706
  return input
@@ -5583,6 +5712,9 @@ var serializeAws_json1_1RegionsOfInterest = function (input, context) {
5583
5712
  return serializeAws_json1_1RegionOfInterest(entry, context);
5584
5713
  });
5585
5714
  };
5715
+ var serializeAws_json1_1S3Destination = function (input, context) {
5716
+ return __assign(__assign({}, (input.Bucket !== undefined && input.Bucket !== null && { Bucket: input.Bucket })), (input.KeyPrefix !== undefined && input.KeyPrefix !== null && { KeyPrefix: input.KeyPrefix }));
5717
+ };
5586
5718
  var serializeAws_json1_1S3Object = function (input, context) {
5587
5719
  return __assign(__assign(__assign({}, (input.Bucket !== undefined && input.Bucket !== null && { Bucket: input.Bucket })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Version !== undefined && input.Version !== null && { Version: input.Version }));
5588
5720
  };
@@ -5686,7 +5818,13 @@ var serializeAws_json1_1StartShotDetectionFilter = function (input, context) {
5686
5818
  input.MinSegmentConfidence !== null && { MinSegmentConfidence: __serializeFloat(input.MinSegmentConfidence) }));
5687
5819
  };
5688
5820
  var serializeAws_json1_1StartStreamProcessorRequest = function (input, context) {
5689
- return __assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
5821
+ return __assign(__assign(__assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.StartSelector !== undefined &&
5822
+ input.StartSelector !== null && {
5823
+ StartSelector: serializeAws_json1_1StreamProcessingStartSelector(input.StartSelector, context),
5824
+ })), (input.StopSelector !== undefined &&
5825
+ input.StopSelector !== null && {
5826
+ StopSelector: serializeAws_json1_1StreamProcessingStopSelector(input.StopSelector, context),
5827
+ }));
5690
5828
  };
5691
5829
  var serializeAws_json1_1StartTechnicalCueDetectionFilter = function (input, context) {
5692
5830
  return __assign(__assign({}, (input.BlackFrame !== undefined &&
@@ -5716,22 +5854,60 @@ var serializeAws_json1_1StopProjectVersionRequest = function (input, context) {
5716
5854
  var serializeAws_json1_1StopStreamProcessorRequest = function (input, context) {
5717
5855
  return __assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
5718
5856
  };
5857
+ var serializeAws_json1_1StreamProcessingStartSelector = function (input, context) {
5858
+ return __assign({}, (input.KVSStreamStartSelector !== undefined &&
5859
+ input.KVSStreamStartSelector !== null && {
5860
+ KVSStreamStartSelector: serializeAws_json1_1KinesisVideoStreamStartSelector(input.KVSStreamStartSelector, context),
5861
+ }));
5862
+ };
5863
+ var serializeAws_json1_1StreamProcessingStopSelector = function (input, context) {
5864
+ return __assign({}, (input.MaxDurationInSeconds !== undefined &&
5865
+ input.MaxDurationInSeconds !== null && { MaxDurationInSeconds: input.MaxDurationInSeconds }));
5866
+ };
5867
+ var serializeAws_json1_1StreamProcessorDataSharingPreference = function (input, context) {
5868
+ return __assign({}, (input.OptIn !== undefined && input.OptIn !== null && { OptIn: input.OptIn }));
5869
+ };
5719
5870
  var serializeAws_json1_1StreamProcessorInput = function (input, context) {
5720
5871
  return __assign({}, (input.KinesisVideoStream !== undefined &&
5721
5872
  input.KinesisVideoStream !== null && {
5722
5873
  KinesisVideoStream: serializeAws_json1_1KinesisVideoStream(input.KinesisVideoStream, context),
5723
5874
  }));
5724
5875
  };
5876
+ var serializeAws_json1_1StreamProcessorNotificationChannel = function (input, context) {
5877
+ return __assign({}, (input.SNSTopicArn !== undefined && input.SNSTopicArn !== null && { SNSTopicArn: input.SNSTopicArn }));
5878
+ };
5725
5879
  var serializeAws_json1_1StreamProcessorOutput = function (input, context) {
5726
- return __assign({}, (input.KinesisDataStream !== undefined &&
5880
+ return __assign(__assign({}, (input.KinesisDataStream !== undefined &&
5727
5881
  input.KinesisDataStream !== null && {
5728
5882
  KinesisDataStream: serializeAws_json1_1KinesisDataStream(input.KinesisDataStream, context),
5883
+ })), (input.S3Destination !== undefined &&
5884
+ input.S3Destination !== null && {
5885
+ S3Destination: serializeAws_json1_1S3Destination(input.S3Destination, context),
5729
5886
  }));
5730
5887
  };
5888
+ var serializeAws_json1_1StreamProcessorParametersToDelete = function (input, context) {
5889
+ return input
5890
+ .filter(function (e) { return e != null; })
5891
+ .map(function (entry) {
5892
+ if (entry === null) {
5893
+ return null;
5894
+ }
5895
+ return entry;
5896
+ });
5897
+ };
5731
5898
  var serializeAws_json1_1StreamProcessorSettings = function (input, context) {
5732
- return __assign({}, (input.FaceSearch !== undefined &&
5899
+ return __assign(__assign({}, (input.ConnectedHome !== undefined &&
5900
+ input.ConnectedHome !== null && {
5901
+ ConnectedHome: serializeAws_json1_1ConnectedHomeSettings(input.ConnectedHome, context),
5902
+ })), (input.FaceSearch !== undefined &&
5733
5903
  input.FaceSearch !== null && { FaceSearch: serializeAws_json1_1FaceSearchSettings(input.FaceSearch, context) }));
5734
5904
  };
5905
+ var serializeAws_json1_1StreamProcessorSettingsForUpdate = function (input, context) {
5906
+ return __assign({}, (input.ConnectedHomeForUpdate !== undefined &&
5907
+ input.ConnectedHomeForUpdate !== null && {
5908
+ ConnectedHomeForUpdate: serializeAws_json1_1ConnectedHomeSettingsForUpdate(input.ConnectedHomeForUpdate, context),
5909
+ }));
5910
+ };
5735
5911
  var serializeAws_json1_1TagKeyList = function (input, context) {
5736
5912
  return input
5737
5913
  .filter(function (e) { return e != null; })
@@ -5771,6 +5947,21 @@ var serializeAws_json1_1UpdateDatasetEntriesRequest = function (input, context)
5771
5947
  return __assign(__assign({}, (input.Changes !== undefined &&
5772
5948
  input.Changes !== null && { Changes: serializeAws_json1_1DatasetChanges(input.Changes, context) })), (input.DatasetArn !== undefined && input.DatasetArn !== null && { DatasetArn: input.DatasetArn }));
5773
5949
  };
5950
+ var serializeAws_json1_1UpdateStreamProcessorRequest = function (input, context) {
5951
+ return __assign(__assign(__assign(__assign(__assign({}, (input.DataSharingPreferenceForUpdate !== undefined &&
5952
+ input.DataSharingPreferenceForUpdate !== null && {
5953
+ DataSharingPreferenceForUpdate: serializeAws_json1_1StreamProcessorDataSharingPreference(input.DataSharingPreferenceForUpdate, context),
5954
+ })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.ParametersToDelete !== undefined &&
5955
+ input.ParametersToDelete !== null && {
5956
+ ParametersToDelete: serializeAws_json1_1StreamProcessorParametersToDelete(input.ParametersToDelete, context),
5957
+ })), (input.RegionsOfInterestForUpdate !== undefined &&
5958
+ input.RegionsOfInterestForUpdate !== null && {
5959
+ RegionsOfInterestForUpdate: serializeAws_json1_1RegionsOfInterest(input.RegionsOfInterestForUpdate, context),
5960
+ })), (input.SettingsForUpdate !== undefined &&
5961
+ input.SettingsForUpdate !== null && {
5962
+ SettingsForUpdate: serializeAws_json1_1StreamProcessorSettingsForUpdate(input.SettingsForUpdate, context),
5963
+ }));
5964
+ };
5774
5965
  var serializeAws_json1_1VersionNames = function (input, context) {
5775
5966
  return input
5776
5967
  .filter(function (e) { return e != null; })
@@ -6017,6 +6208,25 @@ var deserializeAws_json1_1CompareFacesUnmatchList = function (output, context) {
6017
6208
  });
6018
6209
  return retVal;
6019
6210
  };
6211
+ var deserializeAws_json1_1ConnectedHomeLabels = function (output, context) {
6212
+ var retVal = (output || [])
6213
+ .filter(function (e) { return e != null; })
6214
+ .map(function (entry) {
6215
+ if (entry === null) {
6216
+ return null;
6217
+ }
6218
+ return __expectString(entry);
6219
+ });
6220
+ return retVal;
6221
+ };
6222
+ var deserializeAws_json1_1ConnectedHomeSettings = function (output, context) {
6223
+ return {
6224
+ Labels: output.Labels !== undefined && output.Labels !== null
6225
+ ? deserializeAws_json1_1ConnectedHomeLabels(output.Labels, context)
6226
+ : undefined,
6227
+ MinConfidence: __limitedParseFloat32(output.MinConfidence),
6228
+ };
6229
+ };
6020
6230
  var deserializeAws_json1_1ContentModerationDetection = function (output, context) {
6021
6231
  return {
6022
6232
  ModerationLabel: output.ModerationLabel !== undefined && output.ModerationLabel !== null
@@ -6238,16 +6448,26 @@ var deserializeAws_json1_1DescribeStreamProcessorResponse = function (output, co
6238
6448
  CreationTimestamp: output.CreationTimestamp !== undefined && output.CreationTimestamp !== null
6239
6449
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTimestamp)))
6240
6450
  : undefined,
6451
+ DataSharingPreference: output.DataSharingPreference !== undefined && output.DataSharingPreference !== null
6452
+ ? deserializeAws_json1_1StreamProcessorDataSharingPreference(output.DataSharingPreference, context)
6453
+ : undefined,
6241
6454
  Input: output.Input !== undefined && output.Input !== null
6242
6455
  ? deserializeAws_json1_1StreamProcessorInput(output.Input, context)
6243
6456
  : undefined,
6457
+ KmsKeyId: __expectString(output.KmsKeyId),
6244
6458
  LastUpdateTimestamp: output.LastUpdateTimestamp !== undefined && output.LastUpdateTimestamp !== null
6245
6459
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdateTimestamp)))
6246
6460
  : undefined,
6247
6461
  Name: __expectString(output.Name),
6462
+ NotificationChannel: output.NotificationChannel !== undefined && output.NotificationChannel !== null
6463
+ ? deserializeAws_json1_1StreamProcessorNotificationChannel(output.NotificationChannel, context)
6464
+ : undefined,
6248
6465
  Output: output.Output !== undefined && output.Output !== null
6249
6466
  ? deserializeAws_json1_1StreamProcessorOutput(output.Output, context)
6250
6467
  : undefined,
6468
+ RegionsOfInterest: output.RegionsOfInterest !== undefined && output.RegionsOfInterest !== null
6469
+ ? deserializeAws_json1_1RegionsOfInterest(output.RegionsOfInterest, context)
6470
+ : undefined,
6251
6471
  RoleArn: __expectString(output.RoleArn),
6252
6472
  Settings: output.Settings !== undefined && output.Settings !== null
6253
6473
  ? deserializeAws_json1_1StreamProcessorSettings(output.Settings, context)
@@ -7211,6 +7431,27 @@ var deserializeAws_json1_1RecognizeCelebritiesResponse = function (output, conte
7211
7431
  : undefined,
7212
7432
  };
7213
7433
  };
7434
+ var deserializeAws_json1_1RegionOfInterest = function (output, context) {
7435
+ return {
7436
+ BoundingBox: output.BoundingBox !== undefined && output.BoundingBox !== null
7437
+ ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
7438
+ : undefined,
7439
+ Polygon: output.Polygon !== undefined && output.Polygon !== null
7440
+ ? deserializeAws_json1_1Polygon(output.Polygon, context)
7441
+ : undefined,
7442
+ };
7443
+ };
7444
+ var deserializeAws_json1_1RegionsOfInterest = function (output, context) {
7445
+ var retVal = (output || [])
7446
+ .filter(function (e) { return e != null; })
7447
+ .map(function (entry) {
7448
+ if (entry === null) {
7449
+ return null;
7450
+ }
7451
+ return deserializeAws_json1_1RegionOfInterest(entry, context);
7452
+ });
7453
+ return retVal;
7454
+ };
7214
7455
  var deserializeAws_json1_1ResourceAlreadyExistsException = function (output, context) {
7215
7456
  return {
7216
7457
  Code: __expectString(output.Code),
@@ -7239,6 +7480,12 @@ var deserializeAws_json1_1ResourceNotReadyException = function (output, context)
7239
7480
  Message: __expectString(output.Message),
7240
7481
  };
7241
7482
  };
7483
+ var deserializeAws_json1_1S3Destination = function (output, context) {
7484
+ return {
7485
+ Bucket: __expectString(output.Bucket),
7486
+ KeyPrefix: __expectString(output.KeyPrefix),
7487
+ };
7488
+ };
7242
7489
  var deserializeAws_json1_1S3Object = function (output, context) {
7243
7490
  return {
7244
7491
  Bucket: __expectString(output.Bucket),
@@ -7375,7 +7622,9 @@ var deserializeAws_json1_1StartSegmentDetectionResponse = function (output, cont
7375
7622
  };
7376
7623
  };
7377
7624
  var deserializeAws_json1_1StartStreamProcessorResponse = function (output, context) {
7378
- return {};
7625
+ return {
7626
+ SessionId: __expectString(output.SessionId),
7627
+ };
7379
7628
  };
7380
7629
  var deserializeAws_json1_1StartTextDetectionResponse = function (output, context) {
7381
7630
  return {
@@ -7396,6 +7645,11 @@ var deserializeAws_json1_1StreamProcessor = function (output, context) {
7396
7645
  Status: __expectString(output.Status),
7397
7646
  };
7398
7647
  };
7648
+ var deserializeAws_json1_1StreamProcessorDataSharingPreference = function (output, context) {
7649
+ return {
7650
+ OptIn: __expectBoolean(output.OptIn),
7651
+ };
7652
+ };
7399
7653
  var deserializeAws_json1_1StreamProcessorInput = function (output, context) {
7400
7654
  return {
7401
7655
  KinesisVideoStream: output.KinesisVideoStream !== undefined && output.KinesisVideoStream !== null
@@ -7414,15 +7668,26 @@ var deserializeAws_json1_1StreamProcessorList = function (output, context) {
7414
7668
  });
7415
7669
  return retVal;
7416
7670
  };
7671
+ var deserializeAws_json1_1StreamProcessorNotificationChannel = function (output, context) {
7672
+ return {
7673
+ SNSTopicArn: __expectString(output.SNSTopicArn),
7674
+ };
7675
+ };
7417
7676
  var deserializeAws_json1_1StreamProcessorOutput = function (output, context) {
7418
7677
  return {
7419
7678
  KinesisDataStream: output.KinesisDataStream !== undefined && output.KinesisDataStream !== null
7420
7679
  ? deserializeAws_json1_1KinesisDataStream(output.KinesisDataStream, context)
7421
7680
  : undefined,
7681
+ S3Destination: output.S3Destination !== undefined && output.S3Destination !== null
7682
+ ? deserializeAws_json1_1S3Destination(output.S3Destination, context)
7683
+ : undefined,
7422
7684
  };
7423
7685
  };
7424
7686
  var deserializeAws_json1_1StreamProcessorSettings = function (output, context) {
7425
7687
  return {
7688
+ ConnectedHome: output.ConnectedHome !== undefined && output.ConnectedHome !== null
7689
+ ? deserializeAws_json1_1ConnectedHomeSettings(output.ConnectedHome, context)
7690
+ : undefined,
7426
7691
  FaceSearch: output.FaceSearch !== undefined && output.FaceSearch !== null
7427
7692
  ? deserializeAws_json1_1FaceSearchSettings(output.FaceSearch, context)
7428
7693
  : undefined,
@@ -7577,6 +7842,9 @@ var deserializeAws_json1_1UntagResourceResponse = function (output, context) {
7577
7842
  var deserializeAws_json1_1UpdateDatasetEntriesResponse = function (output, context) {
7578
7843
  return {};
7579
7844
  };
7845
+ var deserializeAws_json1_1UpdateStreamProcessorResponse = function (output, context) {
7846
+ return {};
7847
+ };
7580
7848
  var deserializeAws_json1_1Urls = function (output, context) {
7581
7849
  var retVal = (output || [])
7582
7850
  .filter(function (e) { return e != null; })