@aws-sdk/client-rekognition 3.121.0 → 3.130.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 +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +414 -749
- package/dist-es/protocols/Aws_json1_1.js +286 -621
- package/package.json +27 -27
|
@@ -5376,8 +5376,7 @@ var deserializeAws_json1_1VideoTooLargeExceptionResponse = function (parsedOutpu
|
|
|
5376
5376
|
});
|
|
5377
5377
|
}); };
|
|
5378
5378
|
var serializeAws_json1_1Asset = function (input, context) {
|
|
5379
|
-
return __assign({}, (input.GroundTruthManifest
|
|
5380
|
-
input.GroundTruthManifest !== null && {
|
|
5379
|
+
return __assign({}, (input.GroundTruthManifest != null && {
|
|
5381
5380
|
GroundTruthManifest: serializeAws_json1_1GroundTruthManifest(input.GroundTruthManifest, context),
|
|
5382
5381
|
}));
|
|
5383
5382
|
};
|
|
@@ -5402,18 +5401,15 @@ var serializeAws_json1_1Attributes = function (input, context) {
|
|
|
5402
5401
|
});
|
|
5403
5402
|
};
|
|
5404
5403
|
var serializeAws_json1_1BlackFrame = function (input, context) {
|
|
5405
|
-
return __assign(__assign({}, (input.MaxPixelThreshold
|
|
5406
|
-
|
|
5407
|
-
|
|
5404
|
+
return __assign(__assign({}, (input.MaxPixelThreshold != null && { MaxPixelThreshold: __serializeFloat(input.MaxPixelThreshold) })), (input.MinCoveragePercentage != null && {
|
|
5405
|
+
MinCoveragePercentage: __serializeFloat(input.MinCoveragePercentage),
|
|
5406
|
+
}));
|
|
5408
5407
|
};
|
|
5409
5408
|
var serializeAws_json1_1BoundingBox = function (input, context) {
|
|
5410
|
-
return __assign(__assign(__assign(__assign({}, (input.Height
|
|
5409
|
+
return __assign(__assign(__assign(__assign({}, (input.Height != null && { Height: __serializeFloat(input.Height) })), (input.Left != null && { Left: __serializeFloat(input.Left) })), (input.Top != null && { Top: __serializeFloat(input.Top) })), (input.Width != null && { Width: __serializeFloat(input.Width) }));
|
|
5411
5410
|
};
|
|
5412
5411
|
var serializeAws_json1_1CompareFacesRequest = function (input, context) {
|
|
5413
|
-
return __assign(__assign(__assign(__assign({}, (input.QualityFilter
|
|
5414
|
-
input.SimilarityThreshold !== null && { SimilarityThreshold: __serializeFloat(input.SimilarityThreshold) })), (input.SourceImage !== undefined &&
|
|
5415
|
-
input.SourceImage !== null && { SourceImage: serializeAws_json1_1Image(input.SourceImage, context) })), (input.TargetImage !== undefined &&
|
|
5416
|
-
input.TargetImage !== null && { TargetImage: serializeAws_json1_1Image(input.TargetImage, context) }));
|
|
5412
|
+
return __assign(__assign(__assign(__assign({}, (input.QualityFilter != null && { QualityFilter: input.QualityFilter })), (input.SimilarityThreshold != null && { SimilarityThreshold: __serializeFloat(input.SimilarityThreshold) })), (input.SourceImage != null && { SourceImage: serializeAws_json1_1Image(input.SourceImage, context) })), (input.TargetImage != null && { TargetImage: serializeAws_json1_1Image(input.TargetImage, context) }));
|
|
5417
5413
|
};
|
|
5418
5414
|
var serializeAws_json1_1ConnectedHomeLabels = function (input, context) {
|
|
5419
5415
|
return input
|
|
@@ -5426,14 +5422,10 @@ var serializeAws_json1_1ConnectedHomeLabels = function (input, context) {
|
|
|
5426
5422
|
});
|
|
5427
5423
|
};
|
|
5428
5424
|
var serializeAws_json1_1ConnectedHomeSettings = function (input, context) {
|
|
5429
|
-
return __assign(__assign({}, (input.Labels
|
|
5430
|
-
input.Labels !== null && { Labels: serializeAws_json1_1ConnectedHomeLabels(input.Labels, context) })), (input.MinConfidence !== undefined &&
|
|
5431
|
-
input.MinConfidence !== null && { MinConfidence: __serializeFloat(input.MinConfidence) }));
|
|
5425
|
+
return __assign(__assign({}, (input.Labels != null && { Labels: serializeAws_json1_1ConnectedHomeLabels(input.Labels, context) })), (input.MinConfidence != null && { MinConfidence: __serializeFloat(input.MinConfidence) }));
|
|
5432
5426
|
};
|
|
5433
5427
|
var serializeAws_json1_1ConnectedHomeSettingsForUpdate = function (input, context) {
|
|
5434
|
-
return __assign(__assign({}, (input.Labels
|
|
5435
|
-
input.Labels !== null && { Labels: serializeAws_json1_1ConnectedHomeLabels(input.Labels, context) })), (input.MinConfidence !== undefined &&
|
|
5436
|
-
input.MinConfidence !== null && { MinConfidence: __serializeFloat(input.MinConfidence) }));
|
|
5428
|
+
return __assign(__assign({}, (input.Labels != null && { Labels: serializeAws_json1_1ConnectedHomeLabels(input.Labels, context) })), (input.MinConfidence != null && { MinConfidence: __serializeFloat(input.MinConfidence) }));
|
|
5437
5429
|
};
|
|
5438
5430
|
var serializeAws_json1_1ContentClassifiers = function (input, context) {
|
|
5439
5431
|
return input
|
|
@@ -5446,41 +5438,30 @@ var serializeAws_json1_1ContentClassifiers = function (input, context) {
|
|
|
5446
5438
|
});
|
|
5447
5439
|
};
|
|
5448
5440
|
var serializeAws_json1_1CreateCollectionRequest = function (input, context) {
|
|
5449
|
-
return __assign(__assign({}, (input.CollectionId
|
|
5441
|
+
return __assign(__assign({}, (input.CollectionId != null && { CollectionId: input.CollectionId })), (input.Tags != null && { Tags: serializeAws_json1_1TagMap(input.Tags, context) }));
|
|
5450
5442
|
};
|
|
5451
5443
|
var serializeAws_json1_1CreateDatasetRequest = function (input, context) {
|
|
5452
|
-
return __assign(__assign(__assign({}, (input.DatasetSource
|
|
5453
|
-
input.DatasetSource !== null && {
|
|
5444
|
+
return __assign(__assign(__assign({}, (input.DatasetSource != null && {
|
|
5454
5445
|
DatasetSource: serializeAws_json1_1DatasetSource(input.DatasetSource, context),
|
|
5455
|
-
})), (input.DatasetType
|
|
5446
|
+
})), (input.DatasetType != null && { DatasetType: input.DatasetType })), (input.ProjectArn != null && { ProjectArn: input.ProjectArn }));
|
|
5456
5447
|
};
|
|
5457
5448
|
var serializeAws_json1_1CreateProjectRequest = function (input, context) {
|
|
5458
|
-
return __assign({}, (input.ProjectName
|
|
5449
|
+
return __assign({}, (input.ProjectName != null && { ProjectName: input.ProjectName }));
|
|
5459
5450
|
};
|
|
5460
5451
|
var serializeAws_json1_1CreateProjectVersionRequest = function (input, context) {
|
|
5461
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.KmsKeyId
|
|
5462
|
-
input.OutputConfig !== null && { OutputConfig: serializeAws_json1_1OutputConfig(input.OutputConfig, context) })), (input.ProjectArn !== undefined && input.ProjectArn !== null && { ProjectArn: input.ProjectArn })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagMap(input.Tags, context) })), (input.TestingData !== undefined &&
|
|
5463
|
-
input.TestingData !== null && { TestingData: serializeAws_json1_1TestingData(input.TestingData, context) })), (input.TrainingData !== undefined &&
|
|
5464
|
-
input.TrainingData !== null && { TrainingData: serializeAws_json1_1TrainingData(input.TrainingData, context) })), (input.VersionName !== undefined && input.VersionName !== null && { VersionName: input.VersionName }));
|
|
5452
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId })), (input.OutputConfig != null && { OutputConfig: serializeAws_json1_1OutputConfig(input.OutputConfig, context) })), (input.ProjectArn != null && { ProjectArn: input.ProjectArn })), (input.Tags != null && { Tags: serializeAws_json1_1TagMap(input.Tags, context) })), (input.TestingData != null && { TestingData: serializeAws_json1_1TestingData(input.TestingData, context) })), (input.TrainingData != null && { TrainingData: serializeAws_json1_1TrainingData(input.TrainingData, context) })), (input.VersionName != null && { VersionName: input.VersionName }));
|
|
5465
5453
|
};
|
|
5466
5454
|
var serializeAws_json1_1CreateStreamProcessorRequest = function (input, context) {
|
|
5467
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DataSharingPreference
|
|
5468
|
-
input.DataSharingPreference !== null && {
|
|
5455
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DataSharingPreference != null && {
|
|
5469
5456
|
DataSharingPreference: serializeAws_json1_1StreamProcessorDataSharingPreference(input.DataSharingPreference, context),
|
|
5470
|
-
})), (input.Input
|
|
5471
|
-
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 &&
|
|
5472
|
-
input.NotificationChannel !== null && {
|
|
5457
|
+
})), (input.Input != null && { Input: serializeAws_json1_1StreamProcessorInput(input.Input, context) })), (input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId })), (input.Name != null && { Name: input.Name })), (input.NotificationChannel != null && {
|
|
5473
5458
|
NotificationChannel: serializeAws_json1_1StreamProcessorNotificationChannel(input.NotificationChannel, context),
|
|
5474
|
-
})), (input.Output
|
|
5475
|
-
input.Output !== null && { Output: serializeAws_json1_1StreamProcessorOutput(input.Output, context) })), (input.RegionsOfInterest !== undefined &&
|
|
5476
|
-
input.RegionsOfInterest !== null && {
|
|
5459
|
+
})), (input.Output != null && { Output: serializeAws_json1_1StreamProcessorOutput(input.Output, context) })), (input.RegionsOfInterest != null && {
|
|
5477
5460
|
RegionsOfInterest: serializeAws_json1_1RegionsOfInterest(input.RegionsOfInterest, context),
|
|
5478
|
-
})), (input.RoleArn
|
|
5479
|
-
input.Settings !== null && { Settings: serializeAws_json1_1StreamProcessorSettings(input.Settings, context) })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagMap(input.Tags, context) }));
|
|
5461
|
+
})), (input.RoleArn != null && { RoleArn: input.RoleArn })), (input.Settings != null && { Settings: serializeAws_json1_1StreamProcessorSettings(input.Settings, context) })), (input.Tags != null && { Tags: serializeAws_json1_1TagMap(input.Tags, context) }));
|
|
5480
5462
|
};
|
|
5481
5463
|
var serializeAws_json1_1DatasetChanges = function (input, context) {
|
|
5482
|
-
return __assign({}, (input.GroundTruth
|
|
5483
|
-
input.GroundTruth !== null && { GroundTruth: context.base64Encoder(input.GroundTruth) }));
|
|
5464
|
+
return __assign({}, (input.GroundTruth != null && { GroundTruth: context.base64Encoder(input.GroundTruth) }));
|
|
5484
5465
|
};
|
|
5485
5466
|
var serializeAws_json1_1DatasetLabels = function (input, context) {
|
|
5486
5467
|
return input
|
|
@@ -5493,103 +5474,78 @@ var serializeAws_json1_1DatasetLabels = function (input, context) {
|
|
|
5493
5474
|
});
|
|
5494
5475
|
};
|
|
5495
5476
|
var serializeAws_json1_1DatasetSource = function (input, context) {
|
|
5496
|
-
return __assign(__assign({}, (input.DatasetArn
|
|
5497
|
-
input.GroundTruthManifest !== null && {
|
|
5477
|
+
return __assign(__assign({}, (input.DatasetArn != null && { DatasetArn: input.DatasetArn })), (input.GroundTruthManifest != null && {
|
|
5498
5478
|
GroundTruthManifest: serializeAws_json1_1GroundTruthManifest(input.GroundTruthManifest, context),
|
|
5499
5479
|
}));
|
|
5500
5480
|
};
|
|
5501
5481
|
var serializeAws_json1_1DeleteCollectionRequest = function (input, context) {
|
|
5502
|
-
return __assign({}, (input.CollectionId
|
|
5482
|
+
return __assign({}, (input.CollectionId != null && { CollectionId: input.CollectionId }));
|
|
5503
5483
|
};
|
|
5504
5484
|
var serializeAws_json1_1DeleteDatasetRequest = function (input, context) {
|
|
5505
|
-
return __assign({}, (input.DatasetArn
|
|
5485
|
+
return __assign({}, (input.DatasetArn != null && { DatasetArn: input.DatasetArn }));
|
|
5506
5486
|
};
|
|
5507
5487
|
var serializeAws_json1_1DeleteFacesRequest = function (input, context) {
|
|
5508
|
-
return __assign(__assign({}, (input.CollectionId
|
|
5509
|
-
input.FaceIds !== null && { FaceIds: serializeAws_json1_1FaceIdList(input.FaceIds, context) }));
|
|
5488
|
+
return __assign(__assign({}, (input.CollectionId != null && { CollectionId: input.CollectionId })), (input.FaceIds != null && { FaceIds: serializeAws_json1_1FaceIdList(input.FaceIds, context) }));
|
|
5510
5489
|
};
|
|
5511
5490
|
var serializeAws_json1_1DeleteProjectRequest = function (input, context) {
|
|
5512
|
-
return __assign({}, (input.ProjectArn
|
|
5491
|
+
return __assign({}, (input.ProjectArn != null && { ProjectArn: input.ProjectArn }));
|
|
5513
5492
|
};
|
|
5514
5493
|
var serializeAws_json1_1DeleteProjectVersionRequest = function (input, context) {
|
|
5515
|
-
return __assign({}, (input.ProjectVersionArn
|
|
5516
|
-
input.ProjectVersionArn !== null && { ProjectVersionArn: input.ProjectVersionArn }));
|
|
5494
|
+
return __assign({}, (input.ProjectVersionArn != null && { ProjectVersionArn: input.ProjectVersionArn }));
|
|
5517
5495
|
};
|
|
5518
5496
|
var serializeAws_json1_1DeleteStreamProcessorRequest = function (input, context) {
|
|
5519
|
-
return __assign({}, (input.Name
|
|
5497
|
+
return __assign({}, (input.Name != null && { Name: input.Name }));
|
|
5520
5498
|
};
|
|
5521
5499
|
var serializeAws_json1_1DescribeCollectionRequest = function (input, context) {
|
|
5522
|
-
return __assign({}, (input.CollectionId
|
|
5500
|
+
return __assign({}, (input.CollectionId != null && { CollectionId: input.CollectionId }));
|
|
5523
5501
|
};
|
|
5524
5502
|
var serializeAws_json1_1DescribeDatasetRequest = function (input, context) {
|
|
5525
|
-
return __assign({}, (input.DatasetArn
|
|
5503
|
+
return __assign({}, (input.DatasetArn != null && { DatasetArn: input.DatasetArn }));
|
|
5526
5504
|
};
|
|
5527
5505
|
var serializeAws_json1_1DescribeProjectsRequest = function (input, context) {
|
|
5528
|
-
return __assign(__assign(__assign({}, (input.MaxResults
|
|
5529
|
-
input.ProjectNames !== null && { ProjectNames: serializeAws_json1_1ProjectNames(input.ProjectNames, context) }));
|
|
5506
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ProjectNames != null && { ProjectNames: serializeAws_json1_1ProjectNames(input.ProjectNames, context) }));
|
|
5530
5507
|
};
|
|
5531
5508
|
var serializeAws_json1_1DescribeProjectVersionsRequest = function (input, context) {
|
|
5532
|
-
return __assign(__assign(__assign(__assign({}, (input.MaxResults
|
|
5533
|
-
input.VersionNames !== null && { VersionNames: serializeAws_json1_1VersionNames(input.VersionNames, context) }));
|
|
5509
|
+
return __assign(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ProjectArn != null && { ProjectArn: input.ProjectArn })), (input.VersionNames != null && { VersionNames: serializeAws_json1_1VersionNames(input.VersionNames, context) }));
|
|
5534
5510
|
};
|
|
5535
5511
|
var serializeAws_json1_1DescribeStreamProcessorRequest = function (input, context) {
|
|
5536
|
-
return __assign({}, (input.Name
|
|
5512
|
+
return __assign({}, (input.Name != null && { Name: input.Name }));
|
|
5537
5513
|
};
|
|
5538
5514
|
var serializeAws_json1_1DetectCustomLabelsRequest = function (input, context) {
|
|
5539
|
-
return __assign(__assign(__assign(__assign({}, (input.Image
|
|
5540
|
-
input.Image !== null && { Image: serializeAws_json1_1Image(input.Image, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.MinConfidence !== undefined &&
|
|
5541
|
-
input.MinConfidence !== null && { MinConfidence: __serializeFloat(input.MinConfidence) })), (input.ProjectVersionArn !== undefined &&
|
|
5542
|
-
input.ProjectVersionArn !== null && { ProjectVersionArn: input.ProjectVersionArn }));
|
|
5515
|
+
return __assign(__assign(__assign(__assign({}, (input.Image != null && { Image: serializeAws_json1_1Image(input.Image, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.MinConfidence != null && { MinConfidence: __serializeFloat(input.MinConfidence) })), (input.ProjectVersionArn != null && { ProjectVersionArn: input.ProjectVersionArn }));
|
|
5543
5516
|
};
|
|
5544
5517
|
var serializeAws_json1_1DetectFacesRequest = function (input, context) {
|
|
5545
|
-
return __assign(__assign({}, (input.Attributes
|
|
5546
|
-
input.Attributes !== null && { Attributes: serializeAws_json1_1Attributes(input.Attributes, context) })), (input.Image !== undefined &&
|
|
5547
|
-
input.Image !== null && { Image: serializeAws_json1_1Image(input.Image, context) }));
|
|
5518
|
+
return __assign(__assign({}, (input.Attributes != null && { Attributes: serializeAws_json1_1Attributes(input.Attributes, context) })), (input.Image != null && { Image: serializeAws_json1_1Image(input.Image, context) }));
|
|
5548
5519
|
};
|
|
5549
5520
|
var serializeAws_json1_1DetectionFilter = function (input, context) {
|
|
5550
|
-
return __assign(__assign(__assign({}, (input.MinBoundingBoxHeight
|
|
5551
|
-
input.MinBoundingBoxHeight !== null && { MinBoundingBoxHeight: __serializeFloat(input.MinBoundingBoxHeight) })), (input.MinBoundingBoxWidth !== undefined &&
|
|
5552
|
-
input.MinBoundingBoxWidth !== null && { MinBoundingBoxWidth: __serializeFloat(input.MinBoundingBoxWidth) })), (input.MinConfidence !== undefined &&
|
|
5553
|
-
input.MinConfidence !== null && { MinConfidence: __serializeFloat(input.MinConfidence) }));
|
|
5521
|
+
return __assign(__assign(__assign({}, (input.MinBoundingBoxHeight != null && { MinBoundingBoxHeight: __serializeFloat(input.MinBoundingBoxHeight) })), (input.MinBoundingBoxWidth != null && { MinBoundingBoxWidth: __serializeFloat(input.MinBoundingBoxWidth) })), (input.MinConfidence != null && { MinConfidence: __serializeFloat(input.MinConfidence) }));
|
|
5554
5522
|
};
|
|
5555
5523
|
var serializeAws_json1_1DetectLabelsRequest = function (input, context) {
|
|
5556
|
-
return __assign(__assign(__assign({}, (input.Image
|
|
5557
|
-
input.Image !== null && { Image: serializeAws_json1_1Image(input.Image, context) })), (input.MaxLabels !== undefined && input.MaxLabels !== null && { MaxLabels: input.MaxLabels })), (input.MinConfidence !== undefined &&
|
|
5558
|
-
input.MinConfidence !== null && { MinConfidence: __serializeFloat(input.MinConfidence) }));
|
|
5524
|
+
return __assign(__assign(__assign({}, (input.Image != null && { Image: serializeAws_json1_1Image(input.Image, context) })), (input.MaxLabels != null && { MaxLabels: input.MaxLabels })), (input.MinConfidence != null && { MinConfidence: __serializeFloat(input.MinConfidence) }));
|
|
5559
5525
|
};
|
|
5560
5526
|
var serializeAws_json1_1DetectModerationLabelsRequest = function (input, context) {
|
|
5561
|
-
return __assign(__assign(__assign({}, (input.HumanLoopConfig
|
|
5562
|
-
input.HumanLoopConfig !== null && {
|
|
5527
|
+
return __assign(__assign(__assign({}, (input.HumanLoopConfig != null && {
|
|
5563
5528
|
HumanLoopConfig: serializeAws_json1_1HumanLoopConfig(input.HumanLoopConfig, context),
|
|
5564
|
-
})), (input.Image
|
|
5565
|
-
input.Image !== null && { Image: serializeAws_json1_1Image(input.Image, context) })), (input.MinConfidence !== undefined &&
|
|
5566
|
-
input.MinConfidence !== null && { MinConfidence: __serializeFloat(input.MinConfidence) }));
|
|
5529
|
+
})), (input.Image != null && { Image: serializeAws_json1_1Image(input.Image, context) })), (input.MinConfidence != null && { MinConfidence: __serializeFloat(input.MinConfidence) }));
|
|
5567
5530
|
};
|
|
5568
5531
|
var serializeAws_json1_1DetectProtectiveEquipmentRequest = function (input, context) {
|
|
5569
|
-
return __assign(__assign({}, (input.Image
|
|
5570
|
-
input.Image !== null && { Image: serializeAws_json1_1Image(input.Image, context) })), (input.SummarizationAttributes !== undefined &&
|
|
5571
|
-
input.SummarizationAttributes !== null && {
|
|
5532
|
+
return __assign(__assign({}, (input.Image != null && { Image: serializeAws_json1_1Image(input.Image, context) })), (input.SummarizationAttributes != null && {
|
|
5572
5533
|
SummarizationAttributes: serializeAws_json1_1ProtectiveEquipmentSummarizationAttributes(input.SummarizationAttributes, context),
|
|
5573
5534
|
}));
|
|
5574
5535
|
};
|
|
5575
5536
|
var serializeAws_json1_1DetectTextFilters = function (input, context) {
|
|
5576
|
-
return __assign(__assign({}, (input.RegionsOfInterest
|
|
5577
|
-
input.RegionsOfInterest !== null && {
|
|
5537
|
+
return __assign(__assign({}, (input.RegionsOfInterest != null && {
|
|
5578
5538
|
RegionsOfInterest: serializeAws_json1_1RegionsOfInterest(input.RegionsOfInterest, context),
|
|
5579
|
-
})), (input.WordFilter
|
|
5580
|
-
input.WordFilter !== null && { WordFilter: serializeAws_json1_1DetectionFilter(input.WordFilter, context) }));
|
|
5539
|
+
})), (input.WordFilter != null && { WordFilter: serializeAws_json1_1DetectionFilter(input.WordFilter, context) }));
|
|
5581
5540
|
};
|
|
5582
5541
|
var serializeAws_json1_1DetectTextRequest = function (input, context) {
|
|
5583
|
-
return __assign(__assign({}, (input.Filters
|
|
5584
|
-
input.Filters !== null && { Filters: serializeAws_json1_1DetectTextFilters(input.Filters, context) })), (input.Image !== undefined &&
|
|
5585
|
-
input.Image !== null && { Image: serializeAws_json1_1Image(input.Image, context) }));
|
|
5542
|
+
return __assign(__assign({}, (input.Filters != null && { Filters: serializeAws_json1_1DetectTextFilters(input.Filters, context) })), (input.Image != null && { Image: serializeAws_json1_1Image(input.Image, context) }));
|
|
5586
5543
|
};
|
|
5587
5544
|
var serializeAws_json1_1DistributeDataset = function (input, context) {
|
|
5588
|
-
return __assign({}, (input.Arn
|
|
5545
|
+
return __assign({}, (input.Arn != null && { Arn: input.Arn }));
|
|
5589
5546
|
};
|
|
5590
5547
|
var serializeAws_json1_1DistributeDatasetEntriesRequest = function (input, context) {
|
|
5591
|
-
return __assign({}, (input.Datasets
|
|
5592
|
-
input.Datasets !== null && {
|
|
5548
|
+
return __assign({}, (input.Datasets != null && {
|
|
5593
5549
|
Datasets: serializeAws_json1_1DistributeDatasetMetadataList(input.Datasets, context),
|
|
5594
5550
|
}));
|
|
5595
5551
|
};
|
|
@@ -5614,106 +5570,93 @@ var serializeAws_json1_1FaceIdList = function (input, context) {
|
|
|
5614
5570
|
});
|
|
5615
5571
|
};
|
|
5616
5572
|
var serializeAws_json1_1FaceSearchSettings = function (input, context) {
|
|
5617
|
-
return __assign(__assign({}, (input.CollectionId
|
|
5618
|
-
input.FaceMatchThreshold !== null && { FaceMatchThreshold: __serializeFloat(input.FaceMatchThreshold) }));
|
|
5573
|
+
return __assign(__assign({}, (input.CollectionId != null && { CollectionId: input.CollectionId })), (input.FaceMatchThreshold != null && { FaceMatchThreshold: __serializeFloat(input.FaceMatchThreshold) }));
|
|
5619
5574
|
};
|
|
5620
5575
|
var serializeAws_json1_1GetCelebrityInfoRequest = function (input, context) {
|
|
5621
|
-
return __assign({}, (input.Id
|
|
5576
|
+
return __assign({}, (input.Id != null && { Id: input.Id }));
|
|
5622
5577
|
};
|
|
5623
5578
|
var serializeAws_json1_1GetCelebrityRecognitionRequest = function (input, context) {
|
|
5624
|
-
return __assign(__assign(__assign(__assign({}, (input.JobId
|
|
5579
|
+
return __assign(__assign(__assign(__assign({}, (input.JobId != null && { JobId: input.JobId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.SortBy != null && { SortBy: input.SortBy }));
|
|
5625
5580
|
};
|
|
5626
5581
|
var serializeAws_json1_1GetContentModerationRequest = function (input, context) {
|
|
5627
|
-
return __assign(__assign(__assign(__assign({}, (input.JobId
|
|
5582
|
+
return __assign(__assign(__assign(__assign({}, (input.JobId != null && { JobId: input.JobId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.SortBy != null && { SortBy: input.SortBy }));
|
|
5628
5583
|
};
|
|
5629
5584
|
var serializeAws_json1_1GetFaceDetectionRequest = function (input, context) {
|
|
5630
|
-
return __assign(__assign(__assign({}, (input.JobId
|
|
5585
|
+
return __assign(__assign(__assign({}, (input.JobId != null && { JobId: input.JobId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5631
5586
|
};
|
|
5632
5587
|
var serializeAws_json1_1GetFaceSearchRequest = function (input, context) {
|
|
5633
|
-
return __assign(__assign(__assign(__assign({}, (input.JobId
|
|
5588
|
+
return __assign(__assign(__assign(__assign({}, (input.JobId != null && { JobId: input.JobId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.SortBy != null && { SortBy: input.SortBy }));
|
|
5634
5589
|
};
|
|
5635
5590
|
var serializeAws_json1_1GetLabelDetectionRequest = function (input, context) {
|
|
5636
|
-
return __assign(__assign(__assign(__assign({}, (input.JobId
|
|
5591
|
+
return __assign(__assign(__assign(__assign({}, (input.JobId != null && { JobId: input.JobId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.SortBy != null && { SortBy: input.SortBy }));
|
|
5637
5592
|
};
|
|
5638
5593
|
var serializeAws_json1_1GetPersonTrackingRequest = function (input, context) {
|
|
5639
|
-
return __assign(__assign(__assign(__assign({}, (input.JobId
|
|
5594
|
+
return __assign(__assign(__assign(__assign({}, (input.JobId != null && { JobId: input.JobId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.SortBy != null && { SortBy: input.SortBy }));
|
|
5640
5595
|
};
|
|
5641
5596
|
var serializeAws_json1_1GetSegmentDetectionRequest = function (input, context) {
|
|
5642
|
-
return __assign(__assign(__assign({}, (input.JobId
|
|
5597
|
+
return __assign(__assign(__assign({}, (input.JobId != null && { JobId: input.JobId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5643
5598
|
};
|
|
5644
5599
|
var serializeAws_json1_1GetTextDetectionRequest = function (input, context) {
|
|
5645
|
-
return __assign(__assign(__assign({}, (input.JobId
|
|
5600
|
+
return __assign(__assign(__assign({}, (input.JobId != null && { JobId: input.JobId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5646
5601
|
};
|
|
5647
5602
|
var serializeAws_json1_1GroundTruthManifest = function (input, context) {
|
|
5648
|
-
return __assign({}, (input.S3Object
|
|
5649
|
-
input.S3Object !== null && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) }));
|
|
5603
|
+
return __assign({}, (input.S3Object != null && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) }));
|
|
5650
5604
|
};
|
|
5651
5605
|
var serializeAws_json1_1HumanLoopConfig = function (input, context) {
|
|
5652
|
-
return __assign(__assign(__assign({}, (input.DataAttributes
|
|
5653
|
-
input.DataAttributes !== null && {
|
|
5606
|
+
return __assign(__assign(__assign({}, (input.DataAttributes != null && {
|
|
5654
5607
|
DataAttributes: serializeAws_json1_1HumanLoopDataAttributes(input.DataAttributes, context),
|
|
5655
|
-
})), (input.FlowDefinitionArn
|
|
5656
|
-
input.FlowDefinitionArn !== null && { FlowDefinitionArn: input.FlowDefinitionArn })), (input.HumanLoopName !== undefined && input.HumanLoopName !== null && { HumanLoopName: input.HumanLoopName }));
|
|
5608
|
+
})), (input.FlowDefinitionArn != null && { FlowDefinitionArn: input.FlowDefinitionArn })), (input.HumanLoopName != null && { HumanLoopName: input.HumanLoopName }));
|
|
5657
5609
|
};
|
|
5658
5610
|
var serializeAws_json1_1HumanLoopDataAttributes = function (input, context) {
|
|
5659
|
-
return __assign({}, (input.ContentClassifiers
|
|
5660
|
-
input.ContentClassifiers !== null && {
|
|
5611
|
+
return __assign({}, (input.ContentClassifiers != null && {
|
|
5661
5612
|
ContentClassifiers: serializeAws_json1_1ContentClassifiers(input.ContentClassifiers, context),
|
|
5662
5613
|
}));
|
|
5663
5614
|
};
|
|
5664
5615
|
var serializeAws_json1_1Image = function (input, context) {
|
|
5665
|
-
return __assign(__assign({}, (input.Bytes
|
|
5666
|
-
input.S3Object !== null && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) }));
|
|
5616
|
+
return __assign(__assign({}, (input.Bytes != null && { Bytes: context.base64Encoder(input.Bytes) })), (input.S3Object != null && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) }));
|
|
5667
5617
|
};
|
|
5668
5618
|
var serializeAws_json1_1IndexFacesRequest = function (input, context) {
|
|
5669
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.CollectionId
|
|
5670
|
-
input.DetectionAttributes !== null && {
|
|
5619
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.CollectionId != null && { CollectionId: input.CollectionId })), (input.DetectionAttributes != null && {
|
|
5671
5620
|
DetectionAttributes: serializeAws_json1_1Attributes(input.DetectionAttributes, context),
|
|
5672
|
-
})), (input.ExternalImageId
|
|
5673
|
-
input.ExternalImageId !== null && { ExternalImageId: input.ExternalImageId })), (input.Image !== undefined &&
|
|
5674
|
-
input.Image !== null && { Image: serializeAws_json1_1Image(input.Image, context) })), (input.MaxFaces !== undefined && input.MaxFaces !== null && { MaxFaces: input.MaxFaces })), (input.QualityFilter !== undefined && input.QualityFilter !== null && { QualityFilter: input.QualityFilter }));
|
|
5621
|
+
})), (input.ExternalImageId != null && { ExternalImageId: input.ExternalImageId })), (input.Image != null && { Image: serializeAws_json1_1Image(input.Image, context) })), (input.MaxFaces != null && { MaxFaces: input.MaxFaces })), (input.QualityFilter != null && { QualityFilter: input.QualityFilter }));
|
|
5675
5622
|
};
|
|
5676
5623
|
var serializeAws_json1_1KinesisDataStream = function (input, context) {
|
|
5677
|
-
return __assign({}, (input.Arn
|
|
5624
|
+
return __assign({}, (input.Arn != null && { Arn: input.Arn }));
|
|
5678
5625
|
};
|
|
5679
5626
|
var serializeAws_json1_1KinesisVideoStream = function (input, context) {
|
|
5680
|
-
return __assign({}, (input.Arn
|
|
5627
|
+
return __assign({}, (input.Arn != null && { Arn: input.Arn }));
|
|
5681
5628
|
};
|
|
5682
5629
|
var serializeAws_json1_1KinesisVideoStreamStartSelector = function (input, context) {
|
|
5683
|
-
return __assign(__assign({}, (input.FragmentNumber
|
|
5684
|
-
input.FragmentNumber !== null && { FragmentNumber: input.FragmentNumber })), (input.ProducerTimestamp !== undefined &&
|
|
5685
|
-
input.ProducerTimestamp !== null && { ProducerTimestamp: input.ProducerTimestamp }));
|
|
5630
|
+
return __assign(__assign({}, (input.FragmentNumber != null && { FragmentNumber: input.FragmentNumber })), (input.ProducerTimestamp != null && { ProducerTimestamp: input.ProducerTimestamp }));
|
|
5686
5631
|
};
|
|
5687
5632
|
var serializeAws_json1_1ListCollectionsRequest = function (input, context) {
|
|
5688
|
-
return __assign(__assign({}, (input.MaxResults
|
|
5633
|
+
return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5689
5634
|
};
|
|
5690
5635
|
var serializeAws_json1_1ListDatasetEntriesRequest = function (input, context) {
|
|
5691
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ContainsLabels
|
|
5692
|
-
input.ContainsLabels !== null && {
|
|
5636
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ContainsLabels != null && {
|
|
5693
5637
|
ContainsLabels: serializeAws_json1_1DatasetLabels(input.ContainsLabels, context),
|
|
5694
|
-
})), (input.DatasetArn
|
|
5695
|
-
input.SourceRefContains !== null && { SourceRefContains: input.SourceRefContains }));
|
|
5638
|
+
})), (input.DatasetArn != null && { DatasetArn: input.DatasetArn })), (input.HasErrors != null && { HasErrors: input.HasErrors })), (input.Labeled != null && { Labeled: input.Labeled })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.SourceRefContains != null && { SourceRefContains: input.SourceRefContains }));
|
|
5696
5639
|
};
|
|
5697
5640
|
var serializeAws_json1_1ListDatasetLabelsRequest = function (input, context) {
|
|
5698
|
-
return __assign(__assign(__assign({}, (input.DatasetArn
|
|
5641
|
+
return __assign(__assign(__assign({}, (input.DatasetArn != null && { DatasetArn: input.DatasetArn })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5699
5642
|
};
|
|
5700
5643
|
var serializeAws_json1_1ListFacesRequest = function (input, context) {
|
|
5701
|
-
return __assign(__assign(__assign({}, (input.CollectionId
|
|
5644
|
+
return __assign(__assign(__assign({}, (input.CollectionId != null && { CollectionId: input.CollectionId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5702
5645
|
};
|
|
5703
5646
|
var serializeAws_json1_1ListStreamProcessorsRequest = function (input, context) {
|
|
5704
|
-
return __assign(__assign({}, (input.MaxResults
|
|
5647
|
+
return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5705
5648
|
};
|
|
5706
5649
|
var serializeAws_json1_1ListTagsForResourceRequest = function (input, context) {
|
|
5707
|
-
return __assign({}, (input.ResourceArn
|
|
5650
|
+
return __assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
|
|
5708
5651
|
};
|
|
5709
5652
|
var serializeAws_json1_1NotificationChannel = function (input, context) {
|
|
5710
|
-
return __assign(__assign({}, (input.RoleArn
|
|
5653
|
+
return __assign(__assign({}, (input.RoleArn != null && { RoleArn: input.RoleArn })), (input.SNSTopicArn != null && { SNSTopicArn: input.SNSTopicArn }));
|
|
5711
5654
|
};
|
|
5712
5655
|
var serializeAws_json1_1OutputConfig = function (input, context) {
|
|
5713
|
-
return __assign(__assign({}, (input.S3Bucket
|
|
5656
|
+
return __assign(__assign({}, (input.S3Bucket != null && { S3Bucket: input.S3Bucket })), (input.S3KeyPrefix != null && { S3KeyPrefix: input.S3KeyPrefix }));
|
|
5714
5657
|
};
|
|
5715
5658
|
var serializeAws_json1_1Point = function (input, context) {
|
|
5716
|
-
return __assign(__assign({}, (input.X
|
|
5659
|
+
return __assign(__assign({}, (input.X != null && { X: __serializeFloat(input.X) })), (input.Y != null && { Y: __serializeFloat(input.Y) }));
|
|
5717
5660
|
};
|
|
5718
5661
|
var serializeAws_json1_1Polygon = function (input, context) {
|
|
5719
5662
|
return input
|
|
@@ -5736,9 +5679,7 @@ var serializeAws_json1_1ProjectNames = function (input, context) {
|
|
|
5736
5679
|
});
|
|
5737
5680
|
};
|
|
5738
5681
|
var serializeAws_json1_1ProtectiveEquipmentSummarizationAttributes = function (input, context) {
|
|
5739
|
-
return __assign(__assign({}, (input.MinConfidence
|
|
5740
|
-
input.MinConfidence !== null && { MinConfidence: __serializeFloat(input.MinConfidence) })), (input.RequiredEquipmentTypes !== undefined &&
|
|
5741
|
-
input.RequiredEquipmentTypes !== null && {
|
|
5682
|
+
return __assign(__assign({}, (input.MinConfidence != null && { MinConfidence: __serializeFloat(input.MinConfidence) })), (input.RequiredEquipmentTypes != null && {
|
|
5742
5683
|
RequiredEquipmentTypes: serializeAws_json1_1ProtectiveEquipmentTypes(input.RequiredEquipmentTypes, context),
|
|
5743
5684
|
}));
|
|
5744
5685
|
};
|
|
@@ -5753,13 +5694,10 @@ var serializeAws_json1_1ProtectiveEquipmentTypes = function (input, context) {
|
|
|
5753
5694
|
});
|
|
5754
5695
|
};
|
|
5755
5696
|
var serializeAws_json1_1RecognizeCelebritiesRequest = function (input, context) {
|
|
5756
|
-
return __assign({}, (input.Image
|
|
5757
|
-
input.Image !== null && { Image: serializeAws_json1_1Image(input.Image, context) }));
|
|
5697
|
+
return __assign({}, (input.Image != null && { Image: serializeAws_json1_1Image(input.Image, context) }));
|
|
5758
5698
|
};
|
|
5759
5699
|
var serializeAws_json1_1RegionOfInterest = function (input, context) {
|
|
5760
|
-
return __assign(__assign({}, (input.BoundingBox
|
|
5761
|
-
input.BoundingBox !== null && { BoundingBox: serializeAws_json1_1BoundingBox(input.BoundingBox, context) })), (input.Polygon !== undefined &&
|
|
5762
|
-
input.Polygon !== null && { Polygon: serializeAws_json1_1Polygon(input.Polygon, context) }));
|
|
5700
|
+
return __assign(__assign({}, (input.BoundingBox != null && { BoundingBox: serializeAws_json1_1BoundingBox(input.BoundingBox, context) })), (input.Polygon != null && { Polygon: serializeAws_json1_1Polygon(input.Polygon, context) }));
|
|
5763
5701
|
};
|
|
5764
5702
|
var serializeAws_json1_1RegionsOfInterest = function (input, context) {
|
|
5765
5703
|
return input
|
|
@@ -5772,19 +5710,16 @@ var serializeAws_json1_1RegionsOfInterest = function (input, context) {
|
|
|
5772
5710
|
});
|
|
5773
5711
|
};
|
|
5774
5712
|
var serializeAws_json1_1S3Destination = function (input, context) {
|
|
5775
|
-
return __assign(__assign({}, (input.Bucket
|
|
5713
|
+
return __assign(__assign({}, (input.Bucket != null && { Bucket: input.Bucket })), (input.KeyPrefix != null && { KeyPrefix: input.KeyPrefix }));
|
|
5776
5714
|
};
|
|
5777
5715
|
var serializeAws_json1_1S3Object = function (input, context) {
|
|
5778
|
-
return __assign(__assign(__assign({}, (input.Bucket
|
|
5716
|
+
return __assign(__assign(__assign({}, (input.Bucket != null && { Bucket: input.Bucket })), (input.Name != null && { Name: input.Name })), (input.Version != null && { Version: input.Version }));
|
|
5779
5717
|
};
|
|
5780
5718
|
var serializeAws_json1_1SearchFacesByImageRequest = function (input, context) {
|
|
5781
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.CollectionId
|
|
5782
|
-
input.FaceMatchThreshold !== null && { FaceMatchThreshold: __serializeFloat(input.FaceMatchThreshold) })), (input.Image !== undefined &&
|
|
5783
|
-
input.Image !== null && { Image: serializeAws_json1_1Image(input.Image, context) })), (input.MaxFaces !== undefined && input.MaxFaces !== null && { MaxFaces: input.MaxFaces })), (input.QualityFilter !== undefined && input.QualityFilter !== null && { QualityFilter: input.QualityFilter }));
|
|
5719
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.CollectionId != null && { CollectionId: input.CollectionId })), (input.FaceMatchThreshold != null && { FaceMatchThreshold: __serializeFloat(input.FaceMatchThreshold) })), (input.Image != null && { Image: serializeAws_json1_1Image(input.Image, context) })), (input.MaxFaces != null && { MaxFaces: input.MaxFaces })), (input.QualityFilter != null && { QualityFilter: input.QualityFilter }));
|
|
5784
5720
|
};
|
|
5785
5721
|
var serializeAws_json1_1SearchFacesRequest = function (input, context) {
|
|
5786
|
-
return __assign(__assign(__assign(__assign({}, (input.CollectionId
|
|
5787
|
-
input.FaceMatchThreshold !== null && { FaceMatchThreshold: __serializeFloat(input.FaceMatchThreshold) })), (input.MaxFaces !== undefined && input.MaxFaces !== null && { MaxFaces: input.MaxFaces }));
|
|
5722
|
+
return __assign(__assign(__assign(__assign({}, (input.CollectionId != null && { CollectionId: input.CollectionId })), (input.FaceId != null && { FaceId: input.FaceId })), (input.FaceMatchThreshold != null && { FaceMatchThreshold: __serializeFloat(input.FaceMatchThreshold) })), (input.MaxFaces != null && { MaxFaces: input.MaxFaces }));
|
|
5788
5723
|
};
|
|
5789
5724
|
var serializeAws_json1_1SegmentTypes = function (input, context) {
|
|
5790
5725
|
return input
|
|
@@ -5797,150 +5732,102 @@ var serializeAws_json1_1SegmentTypes = function (input, context) {
|
|
|
5797
5732
|
});
|
|
5798
5733
|
};
|
|
5799
5734
|
var serializeAws_json1_1StartCelebrityRecognitionRequest = function (input, context) {
|
|
5800
|
-
return __assign(__assign(__assign(__assign({}, (input.ClientRequestToken
|
|
5801
|
-
input.ClientRequestToken !== null && { ClientRequestToken: input.ClientRequestToken })), (input.JobTag !== undefined && input.JobTag !== null && { JobTag: input.JobTag })), (input.NotificationChannel !== undefined &&
|
|
5802
|
-
input.NotificationChannel !== null && {
|
|
5735
|
+
return __assign(__assign(__assign(__assign({}, (input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken })), (input.JobTag != null && { JobTag: input.JobTag })), (input.NotificationChannel != null && {
|
|
5803
5736
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
5804
|
-
})), (input.Video
|
|
5805
|
-
input.Video !== null && { Video: serializeAws_json1_1Video(input.Video, context) }));
|
|
5737
|
+
})), (input.Video != null && { Video: serializeAws_json1_1Video(input.Video, context) }));
|
|
5806
5738
|
};
|
|
5807
5739
|
var serializeAws_json1_1StartContentModerationRequest = function (input, context) {
|
|
5808
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.ClientRequestToken
|
|
5809
|
-
input.ClientRequestToken !== null && { ClientRequestToken: input.ClientRequestToken })), (input.JobTag !== undefined && input.JobTag !== null && { JobTag: input.JobTag })), (input.MinConfidence !== undefined &&
|
|
5810
|
-
input.MinConfidence !== null && { MinConfidence: __serializeFloat(input.MinConfidence) })), (input.NotificationChannel !== undefined &&
|
|
5811
|
-
input.NotificationChannel !== null && {
|
|
5740
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken })), (input.JobTag != null && { JobTag: input.JobTag })), (input.MinConfidence != null && { MinConfidence: __serializeFloat(input.MinConfidence) })), (input.NotificationChannel != null && {
|
|
5812
5741
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
5813
|
-
})), (input.Video
|
|
5814
|
-
input.Video !== null && { Video: serializeAws_json1_1Video(input.Video, context) }));
|
|
5742
|
+
})), (input.Video != null && { Video: serializeAws_json1_1Video(input.Video, context) }));
|
|
5815
5743
|
};
|
|
5816
5744
|
var serializeAws_json1_1StartFaceDetectionRequest = function (input, context) {
|
|
5817
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.ClientRequestToken
|
|
5818
|
-
input.ClientRequestToken !== null && { ClientRequestToken: input.ClientRequestToken })), (input.FaceAttributes !== undefined &&
|
|
5819
|
-
input.FaceAttributes !== null && { FaceAttributes: input.FaceAttributes })), (input.JobTag !== undefined && input.JobTag !== null && { JobTag: input.JobTag })), (input.NotificationChannel !== undefined &&
|
|
5820
|
-
input.NotificationChannel !== null && {
|
|
5745
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken })), (input.FaceAttributes != null && { FaceAttributes: input.FaceAttributes })), (input.JobTag != null && { JobTag: input.JobTag })), (input.NotificationChannel != null && {
|
|
5821
5746
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
5822
|
-
})), (input.Video
|
|
5823
|
-
input.Video !== null && { Video: serializeAws_json1_1Video(input.Video, context) }));
|
|
5747
|
+
})), (input.Video != null && { Video: serializeAws_json1_1Video(input.Video, context) }));
|
|
5824
5748
|
};
|
|
5825
5749
|
var serializeAws_json1_1StartFaceSearchRequest = function (input, context) {
|
|
5826
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClientRequestToken
|
|
5827
|
-
input.ClientRequestToken !== null && { ClientRequestToken: input.ClientRequestToken })), (input.CollectionId !== undefined && input.CollectionId !== null && { CollectionId: input.CollectionId })), (input.FaceMatchThreshold !== undefined &&
|
|
5828
|
-
input.FaceMatchThreshold !== null && { FaceMatchThreshold: __serializeFloat(input.FaceMatchThreshold) })), (input.JobTag !== undefined && input.JobTag !== null && { JobTag: input.JobTag })), (input.NotificationChannel !== undefined &&
|
|
5829
|
-
input.NotificationChannel !== null && {
|
|
5750
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken })), (input.CollectionId != null && { CollectionId: input.CollectionId })), (input.FaceMatchThreshold != null && { FaceMatchThreshold: __serializeFloat(input.FaceMatchThreshold) })), (input.JobTag != null && { JobTag: input.JobTag })), (input.NotificationChannel != null && {
|
|
5830
5751
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
5831
|
-
})), (input.Video
|
|
5832
|
-
input.Video !== null && { Video: serializeAws_json1_1Video(input.Video, context) }));
|
|
5752
|
+
})), (input.Video != null && { Video: serializeAws_json1_1Video(input.Video, context) }));
|
|
5833
5753
|
};
|
|
5834
5754
|
var serializeAws_json1_1StartLabelDetectionRequest = function (input, context) {
|
|
5835
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.ClientRequestToken
|
|
5836
|
-
input.ClientRequestToken !== null && { ClientRequestToken: input.ClientRequestToken })), (input.JobTag !== undefined && input.JobTag !== null && { JobTag: input.JobTag })), (input.MinConfidence !== undefined &&
|
|
5837
|
-
input.MinConfidence !== null && { MinConfidence: __serializeFloat(input.MinConfidence) })), (input.NotificationChannel !== undefined &&
|
|
5838
|
-
input.NotificationChannel !== null && {
|
|
5755
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken })), (input.JobTag != null && { JobTag: input.JobTag })), (input.MinConfidence != null && { MinConfidence: __serializeFloat(input.MinConfidence) })), (input.NotificationChannel != null && {
|
|
5839
5756
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
5840
|
-
})), (input.Video
|
|
5841
|
-
input.Video !== null && { Video: serializeAws_json1_1Video(input.Video, context) }));
|
|
5757
|
+
})), (input.Video != null && { Video: serializeAws_json1_1Video(input.Video, context) }));
|
|
5842
5758
|
};
|
|
5843
5759
|
var serializeAws_json1_1StartPersonTrackingRequest = function (input, context) {
|
|
5844
|
-
return __assign(__assign(__assign(__assign({}, (input.ClientRequestToken
|
|
5845
|
-
input.ClientRequestToken !== null && { ClientRequestToken: input.ClientRequestToken })), (input.JobTag !== undefined && input.JobTag !== null && { JobTag: input.JobTag })), (input.NotificationChannel !== undefined &&
|
|
5846
|
-
input.NotificationChannel !== null && {
|
|
5760
|
+
return __assign(__assign(__assign(__assign({}, (input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken })), (input.JobTag != null && { JobTag: input.JobTag })), (input.NotificationChannel != null && {
|
|
5847
5761
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
5848
|
-
})), (input.Video
|
|
5849
|
-
input.Video !== null && { Video: serializeAws_json1_1Video(input.Video, context) }));
|
|
5762
|
+
})), (input.Video != null && { Video: serializeAws_json1_1Video(input.Video, context) }));
|
|
5850
5763
|
};
|
|
5851
5764
|
var serializeAws_json1_1StartProjectVersionRequest = function (input, context) {
|
|
5852
|
-
return __assign(__assign({}, (input.MinInferenceUnits
|
|
5853
|
-
input.MinInferenceUnits !== null && { MinInferenceUnits: input.MinInferenceUnits })), (input.ProjectVersionArn !== undefined &&
|
|
5854
|
-
input.ProjectVersionArn !== null && { ProjectVersionArn: input.ProjectVersionArn }));
|
|
5765
|
+
return __assign(__assign({}, (input.MinInferenceUnits != null && { MinInferenceUnits: input.MinInferenceUnits })), (input.ProjectVersionArn != null && { ProjectVersionArn: input.ProjectVersionArn }));
|
|
5855
5766
|
};
|
|
5856
5767
|
var serializeAws_json1_1StartSegmentDetectionFilters = function (input, context) {
|
|
5857
|
-
return __assign(__assign({}, (input.ShotFilter
|
|
5858
|
-
input.ShotFilter !== null && {
|
|
5768
|
+
return __assign(__assign({}, (input.ShotFilter != null && {
|
|
5859
5769
|
ShotFilter: serializeAws_json1_1StartShotDetectionFilter(input.ShotFilter, context),
|
|
5860
|
-
})), (input.TechnicalCueFilter
|
|
5861
|
-
input.TechnicalCueFilter !== null && {
|
|
5770
|
+
})), (input.TechnicalCueFilter != null && {
|
|
5862
5771
|
TechnicalCueFilter: serializeAws_json1_1StartTechnicalCueDetectionFilter(input.TechnicalCueFilter, context),
|
|
5863
5772
|
}));
|
|
5864
5773
|
};
|
|
5865
5774
|
var serializeAws_json1_1StartSegmentDetectionRequest = function (input, context) {
|
|
5866
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClientRequestToken
|
|
5867
|
-
input.ClientRequestToken !== null && { ClientRequestToken: input.ClientRequestToken })), (input.Filters !== undefined &&
|
|
5868
|
-
input.Filters !== null && { Filters: serializeAws_json1_1StartSegmentDetectionFilters(input.Filters, context) })), (input.JobTag !== undefined && input.JobTag !== null && { JobTag: input.JobTag })), (input.NotificationChannel !== undefined &&
|
|
5869
|
-
input.NotificationChannel !== null && {
|
|
5775
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken })), (input.Filters != null && { Filters: serializeAws_json1_1StartSegmentDetectionFilters(input.Filters, context) })), (input.JobTag != null && { JobTag: input.JobTag })), (input.NotificationChannel != null && {
|
|
5870
5776
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
5871
|
-
})), (input.SegmentTypes
|
|
5872
|
-
input.SegmentTypes !== null && { SegmentTypes: serializeAws_json1_1SegmentTypes(input.SegmentTypes, context) })), (input.Video !== undefined &&
|
|
5873
|
-
input.Video !== null && { Video: serializeAws_json1_1Video(input.Video, context) }));
|
|
5777
|
+
})), (input.SegmentTypes != null && { SegmentTypes: serializeAws_json1_1SegmentTypes(input.SegmentTypes, context) })), (input.Video != null && { Video: serializeAws_json1_1Video(input.Video, context) }));
|
|
5874
5778
|
};
|
|
5875
5779
|
var serializeAws_json1_1StartShotDetectionFilter = function (input, context) {
|
|
5876
|
-
return __assign({}, (input.MinSegmentConfidence
|
|
5877
|
-
input.MinSegmentConfidence !== null && { MinSegmentConfidence: __serializeFloat(input.MinSegmentConfidence) }));
|
|
5780
|
+
return __assign({}, (input.MinSegmentConfidence != null && { MinSegmentConfidence: __serializeFloat(input.MinSegmentConfidence) }));
|
|
5878
5781
|
};
|
|
5879
5782
|
var serializeAws_json1_1StartStreamProcessorRequest = function (input, context) {
|
|
5880
|
-
return __assign(__assign(__assign({}, (input.Name
|
|
5881
|
-
input.StartSelector !== null && {
|
|
5783
|
+
return __assign(__assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.StartSelector != null && {
|
|
5882
5784
|
StartSelector: serializeAws_json1_1StreamProcessingStartSelector(input.StartSelector, context),
|
|
5883
|
-
})), (input.StopSelector
|
|
5884
|
-
input.StopSelector !== null && {
|
|
5785
|
+
})), (input.StopSelector != null && {
|
|
5885
5786
|
StopSelector: serializeAws_json1_1StreamProcessingStopSelector(input.StopSelector, context),
|
|
5886
5787
|
}));
|
|
5887
5788
|
};
|
|
5888
5789
|
var serializeAws_json1_1StartTechnicalCueDetectionFilter = function (input, context) {
|
|
5889
|
-
return __assign(__assign({}, (input.BlackFrame
|
|
5890
|
-
input.BlackFrame !== null && { BlackFrame: serializeAws_json1_1BlackFrame(input.BlackFrame, context) })), (input.MinSegmentConfidence !== undefined &&
|
|
5891
|
-
input.MinSegmentConfidence !== null && { MinSegmentConfidence: __serializeFloat(input.MinSegmentConfidence) }));
|
|
5790
|
+
return __assign(__assign({}, (input.BlackFrame != null && { BlackFrame: serializeAws_json1_1BlackFrame(input.BlackFrame, context) })), (input.MinSegmentConfidence != null && { MinSegmentConfidence: __serializeFloat(input.MinSegmentConfidence) }));
|
|
5892
5791
|
};
|
|
5893
5792
|
var serializeAws_json1_1StartTextDetectionFilters = function (input, context) {
|
|
5894
|
-
return __assign(__assign({}, (input.RegionsOfInterest
|
|
5895
|
-
input.RegionsOfInterest !== null && {
|
|
5793
|
+
return __assign(__assign({}, (input.RegionsOfInterest != null && {
|
|
5896
5794
|
RegionsOfInterest: serializeAws_json1_1RegionsOfInterest(input.RegionsOfInterest, context),
|
|
5897
|
-
})), (input.WordFilter
|
|
5898
|
-
input.WordFilter !== null && { WordFilter: serializeAws_json1_1DetectionFilter(input.WordFilter, context) }));
|
|
5795
|
+
})), (input.WordFilter != null && { WordFilter: serializeAws_json1_1DetectionFilter(input.WordFilter, context) }));
|
|
5899
5796
|
};
|
|
5900
5797
|
var serializeAws_json1_1StartTextDetectionRequest = function (input, context) {
|
|
5901
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.ClientRequestToken
|
|
5902
|
-
input.ClientRequestToken !== null && { ClientRequestToken: input.ClientRequestToken })), (input.Filters !== undefined &&
|
|
5903
|
-
input.Filters !== null && { Filters: serializeAws_json1_1StartTextDetectionFilters(input.Filters, context) })), (input.JobTag !== undefined && input.JobTag !== null && { JobTag: input.JobTag })), (input.NotificationChannel !== undefined &&
|
|
5904
|
-
input.NotificationChannel !== null && {
|
|
5798
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken })), (input.Filters != null && { Filters: serializeAws_json1_1StartTextDetectionFilters(input.Filters, context) })), (input.JobTag != null && { JobTag: input.JobTag })), (input.NotificationChannel != null && {
|
|
5905
5799
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
5906
|
-
})), (input.Video
|
|
5907
|
-
input.Video !== null && { Video: serializeAws_json1_1Video(input.Video, context) }));
|
|
5800
|
+
})), (input.Video != null && { Video: serializeAws_json1_1Video(input.Video, context) }));
|
|
5908
5801
|
};
|
|
5909
5802
|
var serializeAws_json1_1StopProjectVersionRequest = function (input, context) {
|
|
5910
|
-
return __assign({}, (input.ProjectVersionArn
|
|
5911
|
-
input.ProjectVersionArn !== null && { ProjectVersionArn: input.ProjectVersionArn }));
|
|
5803
|
+
return __assign({}, (input.ProjectVersionArn != null && { ProjectVersionArn: input.ProjectVersionArn }));
|
|
5912
5804
|
};
|
|
5913
5805
|
var serializeAws_json1_1StopStreamProcessorRequest = function (input, context) {
|
|
5914
|
-
return __assign({}, (input.Name
|
|
5806
|
+
return __assign({}, (input.Name != null && { Name: input.Name }));
|
|
5915
5807
|
};
|
|
5916
5808
|
var serializeAws_json1_1StreamProcessingStartSelector = function (input, context) {
|
|
5917
|
-
return __assign({}, (input.KVSStreamStartSelector
|
|
5918
|
-
input.KVSStreamStartSelector !== null && {
|
|
5809
|
+
return __assign({}, (input.KVSStreamStartSelector != null && {
|
|
5919
5810
|
KVSStreamStartSelector: serializeAws_json1_1KinesisVideoStreamStartSelector(input.KVSStreamStartSelector, context),
|
|
5920
5811
|
}));
|
|
5921
5812
|
};
|
|
5922
5813
|
var serializeAws_json1_1StreamProcessingStopSelector = function (input, context) {
|
|
5923
|
-
return __assign({}, (input.MaxDurationInSeconds
|
|
5924
|
-
input.MaxDurationInSeconds !== null && { MaxDurationInSeconds: input.MaxDurationInSeconds }));
|
|
5814
|
+
return __assign({}, (input.MaxDurationInSeconds != null && { MaxDurationInSeconds: input.MaxDurationInSeconds }));
|
|
5925
5815
|
};
|
|
5926
5816
|
var serializeAws_json1_1StreamProcessorDataSharingPreference = function (input, context) {
|
|
5927
|
-
return __assign({}, (input.OptIn
|
|
5817
|
+
return __assign({}, (input.OptIn != null && { OptIn: input.OptIn }));
|
|
5928
5818
|
};
|
|
5929
5819
|
var serializeAws_json1_1StreamProcessorInput = function (input, context) {
|
|
5930
|
-
return __assign({}, (input.KinesisVideoStream
|
|
5931
|
-
input.KinesisVideoStream !== null && {
|
|
5820
|
+
return __assign({}, (input.KinesisVideoStream != null && {
|
|
5932
5821
|
KinesisVideoStream: serializeAws_json1_1KinesisVideoStream(input.KinesisVideoStream, context),
|
|
5933
5822
|
}));
|
|
5934
5823
|
};
|
|
5935
5824
|
var serializeAws_json1_1StreamProcessorNotificationChannel = function (input, context) {
|
|
5936
|
-
return __assign({}, (input.SNSTopicArn
|
|
5825
|
+
return __assign({}, (input.SNSTopicArn != null && { SNSTopicArn: input.SNSTopicArn }));
|
|
5937
5826
|
};
|
|
5938
5827
|
var serializeAws_json1_1StreamProcessorOutput = function (input, context) {
|
|
5939
|
-
return __assign(__assign({}, (input.KinesisDataStream
|
|
5940
|
-
input.KinesisDataStream !== null && {
|
|
5828
|
+
return __assign(__assign({}, (input.KinesisDataStream != null && {
|
|
5941
5829
|
KinesisDataStream: serializeAws_json1_1KinesisDataStream(input.KinesisDataStream, context),
|
|
5942
|
-
})), (input.S3Destination
|
|
5943
|
-
input.S3Destination !== null && {
|
|
5830
|
+
})), (input.S3Destination != null && {
|
|
5944
5831
|
S3Destination: serializeAws_json1_1S3Destination(input.S3Destination, context),
|
|
5945
5832
|
}));
|
|
5946
5833
|
};
|
|
@@ -5955,15 +5842,12 @@ var serializeAws_json1_1StreamProcessorParametersToDelete = function (input, con
|
|
|
5955
5842
|
});
|
|
5956
5843
|
};
|
|
5957
5844
|
var serializeAws_json1_1StreamProcessorSettings = function (input, context) {
|
|
5958
|
-
return __assign(__assign({}, (input.ConnectedHome
|
|
5959
|
-
input.ConnectedHome !== null && {
|
|
5845
|
+
return __assign(__assign({}, (input.ConnectedHome != null && {
|
|
5960
5846
|
ConnectedHome: serializeAws_json1_1ConnectedHomeSettings(input.ConnectedHome, context),
|
|
5961
|
-
})), (input.FaceSearch
|
|
5962
|
-
input.FaceSearch !== null && { FaceSearch: serializeAws_json1_1FaceSearchSettings(input.FaceSearch, context) }));
|
|
5847
|
+
})), (input.FaceSearch != null && { FaceSearch: serializeAws_json1_1FaceSearchSettings(input.FaceSearch, context) }));
|
|
5963
5848
|
};
|
|
5964
5849
|
var serializeAws_json1_1StreamProcessorSettingsForUpdate = function (input, context) {
|
|
5965
|
-
return __assign({}, (input.ConnectedHomeForUpdate
|
|
5966
|
-
input.ConnectedHomeForUpdate !== null && {
|
|
5850
|
+
return __assign({}, (input.ConnectedHomeForUpdate != null && {
|
|
5967
5851
|
ConnectedHomeForUpdate: serializeAws_json1_1ConnectedHomeSettingsForUpdate(input.ConnectedHomeForUpdate, context),
|
|
5968
5852
|
}));
|
|
5969
5853
|
};
|
|
@@ -5988,36 +5872,28 @@ var serializeAws_json1_1TagMap = function (input, context) {
|
|
|
5988
5872
|
}, {});
|
|
5989
5873
|
};
|
|
5990
5874
|
var serializeAws_json1_1TagResourceRequest = function (input, context) {
|
|
5991
|
-
return __assign(__assign({}, (input.ResourceArn
|
|
5875
|
+
return __assign(__assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn })), (input.Tags != null && { Tags: serializeAws_json1_1TagMap(input.Tags, context) }));
|
|
5992
5876
|
};
|
|
5993
5877
|
var serializeAws_json1_1TestingData = function (input, context) {
|
|
5994
|
-
return __assign(__assign({}, (input.Assets
|
|
5995
|
-
input.Assets !== null && { Assets: serializeAws_json1_1Assets(input.Assets, context) })), (input.AutoCreate !== undefined && input.AutoCreate !== null && { AutoCreate: input.AutoCreate }));
|
|
5878
|
+
return __assign(__assign({}, (input.Assets != null && { Assets: serializeAws_json1_1Assets(input.Assets, context) })), (input.AutoCreate != null && { AutoCreate: input.AutoCreate }));
|
|
5996
5879
|
};
|
|
5997
5880
|
var serializeAws_json1_1TrainingData = function (input, context) {
|
|
5998
|
-
return __assign({}, (input.Assets
|
|
5999
|
-
input.Assets !== null && { Assets: serializeAws_json1_1Assets(input.Assets, context) }));
|
|
5881
|
+
return __assign({}, (input.Assets != null && { Assets: serializeAws_json1_1Assets(input.Assets, context) }));
|
|
6000
5882
|
};
|
|
6001
5883
|
var serializeAws_json1_1UntagResourceRequest = function (input, context) {
|
|
6002
|
-
return __assign(__assign({}, (input.ResourceArn
|
|
6003
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }));
|
|
5884
|
+
return __assign(__assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn })), (input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }));
|
|
6004
5885
|
};
|
|
6005
5886
|
var serializeAws_json1_1UpdateDatasetEntriesRequest = function (input, context) {
|
|
6006
|
-
return __assign(__assign({}, (input.Changes
|
|
6007
|
-
input.Changes !== null && { Changes: serializeAws_json1_1DatasetChanges(input.Changes, context) })), (input.DatasetArn !== undefined && input.DatasetArn !== null && { DatasetArn: input.DatasetArn }));
|
|
5887
|
+
return __assign(__assign({}, (input.Changes != null && { Changes: serializeAws_json1_1DatasetChanges(input.Changes, context) })), (input.DatasetArn != null && { DatasetArn: input.DatasetArn }));
|
|
6008
5888
|
};
|
|
6009
5889
|
var serializeAws_json1_1UpdateStreamProcessorRequest = function (input, context) {
|
|
6010
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.DataSharingPreferenceForUpdate
|
|
6011
|
-
input.DataSharingPreferenceForUpdate !== null && {
|
|
5890
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.DataSharingPreferenceForUpdate != null && {
|
|
6012
5891
|
DataSharingPreferenceForUpdate: serializeAws_json1_1StreamProcessorDataSharingPreference(input.DataSharingPreferenceForUpdate, context),
|
|
6013
|
-
})), (input.Name
|
|
6014
|
-
input.ParametersToDelete !== null && {
|
|
5892
|
+
})), (input.Name != null && { Name: input.Name })), (input.ParametersToDelete != null && {
|
|
6015
5893
|
ParametersToDelete: serializeAws_json1_1StreamProcessorParametersToDelete(input.ParametersToDelete, context),
|
|
6016
|
-
})), (input.RegionsOfInterestForUpdate
|
|
6017
|
-
input.RegionsOfInterestForUpdate !== null && {
|
|
5894
|
+
})), (input.RegionsOfInterestForUpdate != null && {
|
|
6018
5895
|
RegionsOfInterestForUpdate: serializeAws_json1_1RegionsOfInterest(input.RegionsOfInterestForUpdate, context),
|
|
6019
|
-
})), (input.SettingsForUpdate
|
|
6020
|
-
input.SettingsForUpdate !== null && {
|
|
5896
|
+
})), (input.SettingsForUpdate != null && {
|
|
6021
5897
|
SettingsForUpdate: serializeAws_json1_1StreamProcessorSettingsForUpdate(input.SettingsForUpdate, context),
|
|
6022
5898
|
}));
|
|
6023
5899
|
};
|
|
@@ -6032,8 +5908,7 @@ var serializeAws_json1_1VersionNames = function (input, context) {
|
|
|
6032
5908
|
});
|
|
6033
5909
|
};
|
|
6034
5910
|
var serializeAws_json1_1Video = function (input, context) {
|
|
6035
|
-
return __assign({}, (input.S3Object
|
|
6036
|
-
input.S3Object !== null && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) }));
|
|
5911
|
+
return __assign({}, (input.S3Object != null && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) }));
|
|
6037
5912
|
};
|
|
6038
5913
|
var deserializeAws_json1_1AccessDeniedException = function (output, context) {
|
|
6039
5914
|
return {
|
|
@@ -6050,7 +5925,7 @@ var deserializeAws_json1_1AgeRange = function (output, context) {
|
|
|
6050
5925
|
};
|
|
6051
5926
|
var deserializeAws_json1_1Asset = function (output, context) {
|
|
6052
5927
|
return {
|
|
6053
|
-
GroundTruthManifest: output.GroundTruthManifest
|
|
5928
|
+
GroundTruthManifest: output.GroundTruthManifest != null
|
|
6054
5929
|
? deserializeAws_json1_1GroundTruthManifest(output.GroundTruthManifest, context)
|
|
6055
5930
|
: undefined,
|
|
6056
5931
|
};
|
|
@@ -6112,33 +5987,23 @@ var deserializeAws_json1_1BoundingBox = function (output, context) {
|
|
|
6112
5987
|
};
|
|
6113
5988
|
var deserializeAws_json1_1Celebrity = function (output, context) {
|
|
6114
5989
|
return {
|
|
6115
|
-
Face: output.Face
|
|
6116
|
-
? deserializeAws_json1_1ComparedFace(output.Face, context)
|
|
6117
|
-
: undefined,
|
|
5990
|
+
Face: output.Face != null ? deserializeAws_json1_1ComparedFace(output.Face, context) : undefined,
|
|
6118
5991
|
Id: __expectString(output.Id),
|
|
6119
|
-
KnownGender: output.KnownGender
|
|
6120
|
-
? deserializeAws_json1_1KnownGender(output.KnownGender, context)
|
|
6121
|
-
: undefined,
|
|
5992
|
+
KnownGender: output.KnownGender != null ? deserializeAws_json1_1KnownGender(output.KnownGender, context) : undefined,
|
|
6122
5993
|
MatchConfidence: __limitedParseFloat32(output.MatchConfidence),
|
|
6123
5994
|
Name: __expectString(output.Name),
|
|
6124
|
-
Urls: output.Urls
|
|
5995
|
+
Urls: output.Urls != null ? deserializeAws_json1_1Urls(output.Urls, context) : undefined,
|
|
6125
5996
|
};
|
|
6126
5997
|
};
|
|
6127
5998
|
var deserializeAws_json1_1CelebrityDetail = function (output, context) {
|
|
6128
5999
|
return {
|
|
6129
|
-
BoundingBox: output.BoundingBox
|
|
6130
|
-
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
6131
|
-
: undefined,
|
|
6000
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
6132
6001
|
Confidence: __limitedParseFloat32(output.Confidence),
|
|
6133
|
-
Face: output.Face
|
|
6134
|
-
? deserializeAws_json1_1FaceDetail(output.Face, context)
|
|
6135
|
-
: undefined,
|
|
6002
|
+
Face: output.Face != null ? deserializeAws_json1_1FaceDetail(output.Face, context) : undefined,
|
|
6136
6003
|
Id: __expectString(output.Id),
|
|
6137
|
-
KnownGender: output.KnownGender
|
|
6138
|
-
? deserializeAws_json1_1KnownGender(output.KnownGender, context)
|
|
6139
|
-
: undefined,
|
|
6004
|
+
KnownGender: output.KnownGender != null ? deserializeAws_json1_1KnownGender(output.KnownGender, context) : undefined,
|
|
6140
6005
|
Name: __expectString(output.Name),
|
|
6141
|
-
Urls: output.Urls
|
|
6006
|
+
Urls: output.Urls != null ? deserializeAws_json1_1Urls(output.Urls, context) : undefined,
|
|
6142
6007
|
};
|
|
6143
6008
|
};
|
|
6144
6009
|
var deserializeAws_json1_1CelebrityList = function (output, context) {
|
|
@@ -6154,9 +6019,7 @@ var deserializeAws_json1_1CelebrityList = function (output, context) {
|
|
|
6154
6019
|
};
|
|
6155
6020
|
var deserializeAws_json1_1CelebrityRecognition = function (output, context) {
|
|
6156
6021
|
return {
|
|
6157
|
-
Celebrity: output.Celebrity
|
|
6158
|
-
? deserializeAws_json1_1CelebrityDetail(output.Celebrity, context)
|
|
6159
|
-
: undefined,
|
|
6022
|
+
Celebrity: output.Celebrity != null ? deserializeAws_json1_1CelebrityDetail(output.Celebrity, context) : undefined,
|
|
6160
6023
|
Timestamp: __expectLong(output.Timestamp),
|
|
6161
6024
|
};
|
|
6162
6025
|
};
|
|
@@ -6184,23 +6047,13 @@ var deserializeAws_json1_1CollectionIdList = function (output, context) {
|
|
|
6184
6047
|
};
|
|
6185
6048
|
var deserializeAws_json1_1ComparedFace = function (output, context) {
|
|
6186
6049
|
return {
|
|
6187
|
-
BoundingBox: output.BoundingBox
|
|
6188
|
-
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
6189
|
-
: undefined,
|
|
6050
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
6190
6051
|
Confidence: __limitedParseFloat32(output.Confidence),
|
|
6191
|
-
Emotions: output.Emotions
|
|
6192
|
-
|
|
6193
|
-
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
: undefined,
|
|
6197
|
-
Pose: output.Pose !== undefined && output.Pose !== null ? deserializeAws_json1_1Pose(output.Pose, context) : undefined,
|
|
6198
|
-
Quality: output.Quality !== undefined && output.Quality !== null
|
|
6199
|
-
? deserializeAws_json1_1ImageQuality(output.Quality, context)
|
|
6200
|
-
: undefined,
|
|
6201
|
-
Smile: output.Smile !== undefined && output.Smile !== null
|
|
6202
|
-
? deserializeAws_json1_1Smile(output.Smile, context)
|
|
6203
|
-
: undefined,
|
|
6052
|
+
Emotions: output.Emotions != null ? deserializeAws_json1_1Emotions(output.Emotions, context) : undefined,
|
|
6053
|
+
Landmarks: output.Landmarks != null ? deserializeAws_json1_1Landmarks(output.Landmarks, context) : undefined,
|
|
6054
|
+
Pose: output.Pose != null ? deserializeAws_json1_1Pose(output.Pose, context) : undefined,
|
|
6055
|
+
Quality: output.Quality != null ? deserializeAws_json1_1ImageQuality(output.Quality, context) : undefined,
|
|
6056
|
+
Smile: output.Smile != null ? deserializeAws_json1_1Smile(output.Smile, context) : undefined,
|
|
6204
6057
|
};
|
|
6205
6058
|
};
|
|
6206
6059
|
var deserializeAws_json1_1ComparedFaceList = function (output, context) {
|
|
@@ -6216,17 +6069,13 @@ var deserializeAws_json1_1ComparedFaceList = function (output, context) {
|
|
|
6216
6069
|
};
|
|
6217
6070
|
var deserializeAws_json1_1ComparedSourceImageFace = function (output, context) {
|
|
6218
6071
|
return {
|
|
6219
|
-
BoundingBox: output.BoundingBox
|
|
6220
|
-
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
6221
|
-
: undefined,
|
|
6072
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
6222
6073
|
Confidence: __limitedParseFloat32(output.Confidence),
|
|
6223
6074
|
};
|
|
6224
6075
|
};
|
|
6225
6076
|
var deserializeAws_json1_1CompareFacesMatch = function (output, context) {
|
|
6226
6077
|
return {
|
|
6227
|
-
Face: output.Face
|
|
6228
|
-
? deserializeAws_json1_1ComparedFace(output.Face, context)
|
|
6229
|
-
: undefined,
|
|
6078
|
+
Face: output.Face != null ? deserializeAws_json1_1ComparedFace(output.Face, context) : undefined,
|
|
6230
6079
|
Similarity: __limitedParseFloat32(output.Similarity),
|
|
6231
6080
|
};
|
|
6232
6081
|
};
|
|
@@ -6243,15 +6092,13 @@ var deserializeAws_json1_1CompareFacesMatchList = function (output, context) {
|
|
|
6243
6092
|
};
|
|
6244
6093
|
var deserializeAws_json1_1CompareFacesResponse = function (output, context) {
|
|
6245
6094
|
return {
|
|
6246
|
-
FaceMatches: output.FaceMatches
|
|
6247
|
-
|
|
6248
|
-
: undefined,
|
|
6249
|
-
SourceImageFace: output.SourceImageFace !== undefined && output.SourceImageFace !== null
|
|
6095
|
+
FaceMatches: output.FaceMatches != null ? deserializeAws_json1_1CompareFacesMatchList(output.FaceMatches, context) : undefined,
|
|
6096
|
+
SourceImageFace: output.SourceImageFace != null
|
|
6250
6097
|
? deserializeAws_json1_1ComparedSourceImageFace(output.SourceImageFace, context)
|
|
6251
6098
|
: undefined,
|
|
6252
6099
|
SourceImageOrientationCorrection: __expectString(output.SourceImageOrientationCorrection),
|
|
6253
6100
|
TargetImageOrientationCorrection: __expectString(output.TargetImageOrientationCorrection),
|
|
6254
|
-
UnmatchedFaces: output.UnmatchedFaces
|
|
6101
|
+
UnmatchedFaces: output.UnmatchedFaces != null
|
|
6255
6102
|
? deserializeAws_json1_1CompareFacesUnmatchList(output.UnmatchedFaces, context)
|
|
6256
6103
|
: undefined,
|
|
6257
6104
|
};
|
|
@@ -6280,15 +6127,13 @@ var deserializeAws_json1_1ConnectedHomeLabels = function (output, context) {
|
|
|
6280
6127
|
};
|
|
6281
6128
|
var deserializeAws_json1_1ConnectedHomeSettings = function (output, context) {
|
|
6282
6129
|
return {
|
|
6283
|
-
Labels: output.Labels
|
|
6284
|
-
? deserializeAws_json1_1ConnectedHomeLabels(output.Labels, context)
|
|
6285
|
-
: undefined,
|
|
6130
|
+
Labels: output.Labels != null ? deserializeAws_json1_1ConnectedHomeLabels(output.Labels, context) : undefined,
|
|
6286
6131
|
MinConfidence: __limitedParseFloat32(output.MinConfidence),
|
|
6287
6132
|
};
|
|
6288
6133
|
};
|
|
6289
6134
|
var deserializeAws_json1_1ContentModerationDetection = function (output, context) {
|
|
6290
6135
|
return {
|
|
6291
|
-
ModerationLabel: output.ModerationLabel
|
|
6136
|
+
ModerationLabel: output.ModerationLabel != null
|
|
6292
6137
|
? deserializeAws_json1_1ModerationLabel(output.ModerationLabel, context)
|
|
6293
6138
|
: undefined,
|
|
6294
6139
|
Timestamp: __expectLong(output.Timestamp),
|
|
@@ -6341,9 +6186,7 @@ var deserializeAws_json1_1CreateStreamProcessorResponse = function (output, cont
|
|
|
6341
6186
|
var deserializeAws_json1_1CustomLabel = function (output, context) {
|
|
6342
6187
|
return {
|
|
6343
6188
|
Confidence: __limitedParseFloat32(output.Confidence),
|
|
6344
|
-
Geometry: output.Geometry
|
|
6345
|
-
? deserializeAws_json1_1Geometry(output.Geometry, context)
|
|
6346
|
-
: undefined,
|
|
6189
|
+
Geometry: output.Geometry != null ? deserializeAws_json1_1Geometry(output.Geometry, context) : undefined,
|
|
6347
6190
|
Name: __expectString(output.Name),
|
|
6348
6191
|
};
|
|
6349
6192
|
};
|
|
@@ -6360,13 +6203,11 @@ var deserializeAws_json1_1CustomLabels = function (output, context) {
|
|
|
6360
6203
|
};
|
|
6361
6204
|
var deserializeAws_json1_1DatasetDescription = function (output, context) {
|
|
6362
6205
|
return {
|
|
6363
|
-
CreationTimestamp: output.CreationTimestamp
|
|
6206
|
+
CreationTimestamp: output.CreationTimestamp != null
|
|
6364
6207
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTimestamp)))
|
|
6365
6208
|
: undefined,
|
|
6366
|
-
DatasetStats: output.DatasetStats
|
|
6367
|
-
|
|
6368
|
-
: undefined,
|
|
6369
|
-
LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
|
|
6209
|
+
DatasetStats: output.DatasetStats != null ? deserializeAws_json1_1DatasetStats(output.DatasetStats, context) : undefined,
|
|
6210
|
+
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
6370
6211
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
6371
6212
|
: undefined,
|
|
6372
6213
|
Status: __expectString(output.Status),
|
|
@@ -6388,9 +6229,7 @@ var deserializeAws_json1_1DatasetEntries = function (output, context) {
|
|
|
6388
6229
|
var deserializeAws_json1_1DatasetLabelDescription = function (output, context) {
|
|
6389
6230
|
return {
|
|
6390
6231
|
LabelName: __expectString(output.LabelName),
|
|
6391
|
-
LabelStats: output.LabelStats
|
|
6392
|
-
? deserializeAws_json1_1DatasetLabelStats(output.LabelStats, context)
|
|
6393
|
-
: undefined,
|
|
6232
|
+
LabelStats: output.LabelStats != null ? deserializeAws_json1_1DatasetLabelStats(output.LabelStats, context) : undefined,
|
|
6394
6233
|
};
|
|
6395
6234
|
};
|
|
6396
6235
|
var deserializeAws_json1_1DatasetLabelDescriptions = function (output, context) {
|
|
@@ -6412,7 +6251,7 @@ var deserializeAws_json1_1DatasetLabelStats = function (output, context) {
|
|
|
6412
6251
|
};
|
|
6413
6252
|
var deserializeAws_json1_1DatasetMetadata = function (output, context) {
|
|
6414
6253
|
return {
|
|
6415
|
-
CreationTimestamp: output.CreationTimestamp
|
|
6254
|
+
CreationTimestamp: output.CreationTimestamp != null
|
|
6416
6255
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTimestamp)))
|
|
6417
6256
|
: undefined,
|
|
6418
6257
|
DatasetArn: __expectString(output.DatasetArn),
|
|
@@ -6451,9 +6290,7 @@ var deserializeAws_json1_1DeleteDatasetResponse = function (output, context) {
|
|
|
6451
6290
|
};
|
|
6452
6291
|
var deserializeAws_json1_1DeleteFacesResponse = function (output, context) {
|
|
6453
6292
|
return {
|
|
6454
|
-
DeletedFaces: output.DeletedFaces
|
|
6455
|
-
? deserializeAws_json1_1FaceIdList(output.DeletedFaces, context)
|
|
6456
|
-
: undefined,
|
|
6293
|
+
DeletedFaces: output.DeletedFaces != null ? deserializeAws_json1_1FaceIdList(output.DeletedFaces, context) : undefined,
|
|
6457
6294
|
};
|
|
6458
6295
|
};
|
|
6459
6296
|
var deserializeAws_json1_1DeleteProjectResponse = function (output, context) {
|
|
@@ -6472,7 +6309,7 @@ var deserializeAws_json1_1DeleteStreamProcessorResponse = function (output, cont
|
|
|
6472
6309
|
var deserializeAws_json1_1DescribeCollectionResponse = function (output, context) {
|
|
6473
6310
|
return {
|
|
6474
6311
|
CollectionARN: __expectString(output.CollectionARN),
|
|
6475
|
-
CreationTimestamp: output.CreationTimestamp
|
|
6312
|
+
CreationTimestamp: output.CreationTimestamp != null
|
|
6476
6313
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTimestamp)))
|
|
6477
6314
|
: undefined,
|
|
6478
6315
|
FaceCount: __expectLong(output.FaceCount),
|
|
@@ -6481,7 +6318,7 @@ var deserializeAws_json1_1DescribeCollectionResponse = function (output, context
|
|
|
6481
6318
|
};
|
|
6482
6319
|
var deserializeAws_json1_1DescribeDatasetResponse = function (output, context) {
|
|
6483
6320
|
return {
|
|
6484
|
-
DatasetDescription: output.DatasetDescription
|
|
6321
|
+
DatasetDescription: output.DatasetDescription != null
|
|
6485
6322
|
? deserializeAws_json1_1DatasetDescription(output.DatasetDescription, context)
|
|
6486
6323
|
: undefined,
|
|
6487
6324
|
};
|
|
@@ -6489,7 +6326,7 @@ var deserializeAws_json1_1DescribeDatasetResponse = function (output, context) {
|
|
|
6489
6326
|
var deserializeAws_json1_1DescribeProjectsResponse = function (output, context) {
|
|
6490
6327
|
return {
|
|
6491
6328
|
NextToken: __expectString(output.NextToken),
|
|
6492
|
-
ProjectDescriptions: output.ProjectDescriptions
|
|
6329
|
+
ProjectDescriptions: output.ProjectDescriptions != null
|
|
6493
6330
|
? deserializeAws_json1_1ProjectDescriptions(output.ProjectDescriptions, context)
|
|
6494
6331
|
: undefined,
|
|
6495
6332
|
};
|
|
@@ -6497,40 +6334,34 @@ var deserializeAws_json1_1DescribeProjectsResponse = function (output, context)
|
|
|
6497
6334
|
var deserializeAws_json1_1DescribeProjectVersionsResponse = function (output, context) {
|
|
6498
6335
|
return {
|
|
6499
6336
|
NextToken: __expectString(output.NextToken),
|
|
6500
|
-
ProjectVersionDescriptions: output.ProjectVersionDescriptions
|
|
6337
|
+
ProjectVersionDescriptions: output.ProjectVersionDescriptions != null
|
|
6501
6338
|
? deserializeAws_json1_1ProjectVersionDescriptions(output.ProjectVersionDescriptions, context)
|
|
6502
6339
|
: undefined,
|
|
6503
6340
|
};
|
|
6504
6341
|
};
|
|
6505
6342
|
var deserializeAws_json1_1DescribeStreamProcessorResponse = function (output, context) {
|
|
6506
6343
|
return {
|
|
6507
|
-
CreationTimestamp: output.CreationTimestamp
|
|
6344
|
+
CreationTimestamp: output.CreationTimestamp != null
|
|
6508
6345
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTimestamp)))
|
|
6509
6346
|
: undefined,
|
|
6510
|
-
DataSharingPreference: output.DataSharingPreference
|
|
6347
|
+
DataSharingPreference: output.DataSharingPreference != null
|
|
6511
6348
|
? deserializeAws_json1_1StreamProcessorDataSharingPreference(output.DataSharingPreference, context)
|
|
6512
6349
|
: undefined,
|
|
6513
|
-
Input: output.Input
|
|
6514
|
-
? deserializeAws_json1_1StreamProcessorInput(output.Input, context)
|
|
6515
|
-
: undefined,
|
|
6350
|
+
Input: output.Input != null ? deserializeAws_json1_1StreamProcessorInput(output.Input, context) : undefined,
|
|
6516
6351
|
KmsKeyId: __expectString(output.KmsKeyId),
|
|
6517
|
-
LastUpdateTimestamp: output.LastUpdateTimestamp
|
|
6352
|
+
LastUpdateTimestamp: output.LastUpdateTimestamp != null
|
|
6518
6353
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdateTimestamp)))
|
|
6519
6354
|
: undefined,
|
|
6520
6355
|
Name: __expectString(output.Name),
|
|
6521
|
-
NotificationChannel: output.NotificationChannel
|
|
6356
|
+
NotificationChannel: output.NotificationChannel != null
|
|
6522
6357
|
? deserializeAws_json1_1StreamProcessorNotificationChannel(output.NotificationChannel, context)
|
|
6523
6358
|
: undefined,
|
|
6524
|
-
Output: output.Output
|
|
6525
|
-
|
|
6526
|
-
: undefined,
|
|
6527
|
-
RegionsOfInterest: output.RegionsOfInterest !== undefined && output.RegionsOfInterest !== null
|
|
6359
|
+
Output: output.Output != null ? deserializeAws_json1_1StreamProcessorOutput(output.Output, context) : undefined,
|
|
6360
|
+
RegionsOfInterest: output.RegionsOfInterest != null
|
|
6528
6361
|
? deserializeAws_json1_1RegionsOfInterest(output.RegionsOfInterest, context)
|
|
6529
6362
|
: undefined,
|
|
6530
6363
|
RoleArn: __expectString(output.RoleArn),
|
|
6531
|
-
Settings: output.Settings
|
|
6532
|
-
? deserializeAws_json1_1StreamProcessorSettings(output.Settings, context)
|
|
6533
|
-
: undefined,
|
|
6364
|
+
Settings: output.Settings != null ? deserializeAws_json1_1StreamProcessorSettings(output.Settings, context) : undefined,
|
|
6534
6365
|
Status: __expectString(output.Status),
|
|
6535
6366
|
StatusMessage: __expectString(output.StatusMessage),
|
|
6536
6367
|
StreamProcessorArn: __expectString(output.StreamProcessorArn),
|
|
@@ -6538,34 +6369,28 @@ var deserializeAws_json1_1DescribeStreamProcessorResponse = function (output, co
|
|
|
6538
6369
|
};
|
|
6539
6370
|
var deserializeAws_json1_1DetectCustomLabelsResponse = function (output, context) {
|
|
6540
6371
|
return {
|
|
6541
|
-
CustomLabels: output.CustomLabels
|
|
6542
|
-
? deserializeAws_json1_1CustomLabels(output.CustomLabels, context)
|
|
6543
|
-
: undefined,
|
|
6372
|
+
CustomLabels: output.CustomLabels != null ? deserializeAws_json1_1CustomLabels(output.CustomLabels, context) : undefined,
|
|
6544
6373
|
};
|
|
6545
6374
|
};
|
|
6546
6375
|
var deserializeAws_json1_1DetectFacesResponse = function (output, context) {
|
|
6547
6376
|
return {
|
|
6548
|
-
FaceDetails: output.FaceDetails
|
|
6549
|
-
? deserializeAws_json1_1FaceDetailList(output.FaceDetails, context)
|
|
6550
|
-
: undefined,
|
|
6377
|
+
FaceDetails: output.FaceDetails != null ? deserializeAws_json1_1FaceDetailList(output.FaceDetails, context) : undefined,
|
|
6551
6378
|
OrientationCorrection: __expectString(output.OrientationCorrection),
|
|
6552
6379
|
};
|
|
6553
6380
|
};
|
|
6554
6381
|
var deserializeAws_json1_1DetectLabelsResponse = function (output, context) {
|
|
6555
6382
|
return {
|
|
6556
6383
|
LabelModelVersion: __expectString(output.LabelModelVersion),
|
|
6557
|
-
Labels: output.Labels
|
|
6558
|
-
? deserializeAws_json1_1Labels(output.Labels, context)
|
|
6559
|
-
: undefined,
|
|
6384
|
+
Labels: output.Labels != null ? deserializeAws_json1_1Labels(output.Labels, context) : undefined,
|
|
6560
6385
|
OrientationCorrection: __expectString(output.OrientationCorrection),
|
|
6561
6386
|
};
|
|
6562
6387
|
};
|
|
6563
6388
|
var deserializeAws_json1_1DetectModerationLabelsResponse = function (output, context) {
|
|
6564
6389
|
return {
|
|
6565
|
-
HumanLoopActivationOutput: output.HumanLoopActivationOutput
|
|
6390
|
+
HumanLoopActivationOutput: output.HumanLoopActivationOutput != null
|
|
6566
6391
|
? deserializeAws_json1_1HumanLoopActivationOutput(output.HumanLoopActivationOutput, context)
|
|
6567
6392
|
: undefined,
|
|
6568
|
-
ModerationLabels: output.ModerationLabels
|
|
6393
|
+
ModerationLabels: output.ModerationLabels != null
|
|
6569
6394
|
? deserializeAws_json1_1ModerationLabels(output.ModerationLabels, context)
|
|
6570
6395
|
: undefined,
|
|
6571
6396
|
ModerationModelVersion: __expectString(output.ModerationModelVersion),
|
|
@@ -6573,18 +6398,14 @@ var deserializeAws_json1_1DetectModerationLabelsResponse = function (output, con
|
|
|
6573
6398
|
};
|
|
6574
6399
|
var deserializeAws_json1_1DetectProtectiveEquipmentResponse = function (output, context) {
|
|
6575
6400
|
return {
|
|
6576
|
-
Persons: output.Persons
|
|
6577
|
-
? deserializeAws_json1_1ProtectiveEquipmentPersons(output.Persons, context)
|
|
6578
|
-
: undefined,
|
|
6401
|
+
Persons: output.Persons != null ? deserializeAws_json1_1ProtectiveEquipmentPersons(output.Persons, context) : undefined,
|
|
6579
6402
|
ProtectiveEquipmentModelVersion: __expectString(output.ProtectiveEquipmentModelVersion),
|
|
6580
|
-
Summary: output.Summary
|
|
6581
|
-
? deserializeAws_json1_1ProtectiveEquipmentSummary(output.Summary, context)
|
|
6582
|
-
: undefined,
|
|
6403
|
+
Summary: output.Summary != null ? deserializeAws_json1_1ProtectiveEquipmentSummary(output.Summary, context) : undefined,
|
|
6583
6404
|
};
|
|
6584
6405
|
};
|
|
6585
6406
|
var deserializeAws_json1_1DetectTextResponse = function (output, context) {
|
|
6586
6407
|
return {
|
|
6587
|
-
TextDetections: output.TextDetections
|
|
6408
|
+
TextDetections: output.TextDetections != null
|
|
6588
6409
|
? deserializeAws_json1_1TextDetectionList(output.TextDetections, context)
|
|
6589
6410
|
: undefined,
|
|
6590
6411
|
TextModelVersion: __expectString(output.TextModelVersion),
|
|
@@ -6612,13 +6433,9 @@ var deserializeAws_json1_1Emotions = function (output, context) {
|
|
|
6612
6433
|
};
|
|
6613
6434
|
var deserializeAws_json1_1EquipmentDetection = function (output, context) {
|
|
6614
6435
|
return {
|
|
6615
|
-
BoundingBox: output.BoundingBox
|
|
6616
|
-
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
6617
|
-
: undefined,
|
|
6436
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
6618
6437
|
Confidence: __limitedParseFloat32(output.Confidence),
|
|
6619
|
-
CoversBodyPart: output.CoversBodyPart
|
|
6620
|
-
? deserializeAws_json1_1CoversBodyPart(output.CoversBodyPart, context)
|
|
6621
|
-
: undefined,
|
|
6438
|
+
CoversBodyPart: output.CoversBodyPart != null ? deserializeAws_json1_1CoversBodyPart(output.CoversBodyPart, context) : undefined,
|
|
6622
6439
|
Type: __expectString(output.Type),
|
|
6623
6440
|
};
|
|
6624
6441
|
};
|
|
@@ -6636,9 +6453,7 @@ var deserializeAws_json1_1EquipmentDetections = function (output, context) {
|
|
|
6636
6453
|
var deserializeAws_json1_1EvaluationResult = function (output, context) {
|
|
6637
6454
|
return {
|
|
6638
6455
|
F1Score: __limitedParseFloat32(output.F1Score),
|
|
6639
|
-
Summary: output.Summary
|
|
6640
|
-
? deserializeAws_json1_1Summary(output.Summary, context)
|
|
6641
|
-
: undefined,
|
|
6456
|
+
Summary: output.Summary != null ? deserializeAws_json1_1Summary(output.Summary, context) : undefined,
|
|
6642
6457
|
};
|
|
6643
6458
|
};
|
|
6644
6459
|
var deserializeAws_json1_1Eyeglasses = function (output, context) {
|
|
@@ -6655,9 +6470,7 @@ var deserializeAws_json1_1EyeOpen = function (output, context) {
|
|
|
6655
6470
|
};
|
|
6656
6471
|
var deserializeAws_json1_1Face = function (output, context) {
|
|
6657
6472
|
return {
|
|
6658
|
-
BoundingBox: output.BoundingBox
|
|
6659
|
-
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
6660
|
-
: undefined,
|
|
6473
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
6661
6474
|
Confidence: __limitedParseFloat32(output.Confidence),
|
|
6662
6475
|
ExternalImageId: __expectString(output.ExternalImageId),
|
|
6663
6476
|
FaceId: __expectString(output.FaceId),
|
|
@@ -6667,47 +6480,21 @@ var deserializeAws_json1_1Face = function (output, context) {
|
|
|
6667
6480
|
};
|
|
6668
6481
|
var deserializeAws_json1_1FaceDetail = function (output, context) {
|
|
6669
6482
|
return {
|
|
6670
|
-
AgeRange: output.AgeRange
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
Beard: output.Beard !== undefined && output.Beard !== null
|
|
6674
|
-
? deserializeAws_json1_1Beard(output.Beard, context)
|
|
6675
|
-
: undefined,
|
|
6676
|
-
BoundingBox: output.BoundingBox !== undefined && output.BoundingBox !== null
|
|
6677
|
-
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
6678
|
-
: undefined,
|
|
6483
|
+
AgeRange: output.AgeRange != null ? deserializeAws_json1_1AgeRange(output.AgeRange, context) : undefined,
|
|
6484
|
+
Beard: output.Beard != null ? deserializeAws_json1_1Beard(output.Beard, context) : undefined,
|
|
6485
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
6679
6486
|
Confidence: __limitedParseFloat32(output.Confidence),
|
|
6680
|
-
Emotions: output.Emotions
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
|
|
6684
|
-
|
|
6685
|
-
|
|
6686
|
-
|
|
6687
|
-
|
|
6688
|
-
|
|
6689
|
-
|
|
6690
|
-
|
|
6691
|
-
: undefined,
|
|
6692
|
-
Landmarks: output.Landmarks !== undefined && output.Landmarks !== null
|
|
6693
|
-
? deserializeAws_json1_1Landmarks(output.Landmarks, context)
|
|
6694
|
-
: undefined,
|
|
6695
|
-
MouthOpen: output.MouthOpen !== undefined && output.MouthOpen !== null
|
|
6696
|
-
? deserializeAws_json1_1MouthOpen(output.MouthOpen, context)
|
|
6697
|
-
: undefined,
|
|
6698
|
-
Mustache: output.Mustache !== undefined && output.Mustache !== null
|
|
6699
|
-
? deserializeAws_json1_1Mustache(output.Mustache, context)
|
|
6700
|
-
: undefined,
|
|
6701
|
-
Pose: output.Pose !== undefined && output.Pose !== null ? deserializeAws_json1_1Pose(output.Pose, context) : undefined,
|
|
6702
|
-
Quality: output.Quality !== undefined && output.Quality !== null
|
|
6703
|
-
? deserializeAws_json1_1ImageQuality(output.Quality, context)
|
|
6704
|
-
: undefined,
|
|
6705
|
-
Smile: output.Smile !== undefined && output.Smile !== null
|
|
6706
|
-
? deserializeAws_json1_1Smile(output.Smile, context)
|
|
6707
|
-
: undefined,
|
|
6708
|
-
Sunglasses: output.Sunglasses !== undefined && output.Sunglasses !== null
|
|
6709
|
-
? deserializeAws_json1_1Sunglasses(output.Sunglasses, context)
|
|
6710
|
-
: undefined,
|
|
6487
|
+
Emotions: output.Emotions != null ? deserializeAws_json1_1Emotions(output.Emotions, context) : undefined,
|
|
6488
|
+
Eyeglasses: output.Eyeglasses != null ? deserializeAws_json1_1Eyeglasses(output.Eyeglasses, context) : undefined,
|
|
6489
|
+
EyesOpen: output.EyesOpen != null ? deserializeAws_json1_1EyeOpen(output.EyesOpen, context) : undefined,
|
|
6490
|
+
Gender: output.Gender != null ? deserializeAws_json1_1Gender(output.Gender, context) : undefined,
|
|
6491
|
+
Landmarks: output.Landmarks != null ? deserializeAws_json1_1Landmarks(output.Landmarks, context) : undefined,
|
|
6492
|
+
MouthOpen: output.MouthOpen != null ? deserializeAws_json1_1MouthOpen(output.MouthOpen, context) : undefined,
|
|
6493
|
+
Mustache: output.Mustache != null ? deserializeAws_json1_1Mustache(output.Mustache, context) : undefined,
|
|
6494
|
+
Pose: output.Pose != null ? deserializeAws_json1_1Pose(output.Pose, context) : undefined,
|
|
6495
|
+
Quality: output.Quality != null ? deserializeAws_json1_1ImageQuality(output.Quality, context) : undefined,
|
|
6496
|
+
Smile: output.Smile != null ? deserializeAws_json1_1Smile(output.Smile, context) : undefined,
|
|
6497
|
+
Sunglasses: output.Sunglasses != null ? deserializeAws_json1_1Sunglasses(output.Sunglasses, context) : undefined,
|
|
6711
6498
|
};
|
|
6712
6499
|
};
|
|
6713
6500
|
var deserializeAws_json1_1FaceDetailList = function (output, context) {
|
|
@@ -6723,9 +6510,7 @@ var deserializeAws_json1_1FaceDetailList = function (output, context) {
|
|
|
6723
6510
|
};
|
|
6724
6511
|
var deserializeAws_json1_1FaceDetection = function (output, context) {
|
|
6725
6512
|
return {
|
|
6726
|
-
Face: output.Face
|
|
6727
|
-
? deserializeAws_json1_1FaceDetail(output.Face, context)
|
|
6728
|
-
: undefined,
|
|
6513
|
+
Face: output.Face != null ? deserializeAws_json1_1FaceDetail(output.Face, context) : undefined,
|
|
6729
6514
|
Timestamp: __expectLong(output.Timestamp),
|
|
6730
6515
|
};
|
|
6731
6516
|
};
|
|
@@ -6764,7 +6549,7 @@ var deserializeAws_json1_1FaceList = function (output, context) {
|
|
|
6764
6549
|
};
|
|
6765
6550
|
var deserializeAws_json1_1FaceMatch = function (output, context) {
|
|
6766
6551
|
return {
|
|
6767
|
-
Face: output.Face
|
|
6552
|
+
Face: output.Face != null ? deserializeAws_json1_1Face(output.Face, context) : undefined,
|
|
6768
6553
|
Similarity: __limitedParseFloat32(output.Similarity),
|
|
6769
6554
|
};
|
|
6770
6555
|
};
|
|
@@ -6792,10 +6577,8 @@ var deserializeAws_json1_1FaceModelVersionList = function (output, context) {
|
|
|
6792
6577
|
};
|
|
6793
6578
|
var deserializeAws_json1_1FaceRecord = function (output, context) {
|
|
6794
6579
|
return {
|
|
6795
|
-
Face: output.Face
|
|
6796
|
-
FaceDetail: output.FaceDetail
|
|
6797
|
-
? deserializeAws_json1_1FaceDetail(output.FaceDetail, context)
|
|
6798
|
-
: undefined,
|
|
6580
|
+
Face: output.Face != null ? deserializeAws_json1_1Face(output.Face, context) : undefined,
|
|
6581
|
+
FaceDetail: output.FaceDetail != null ? deserializeAws_json1_1FaceDetail(output.FaceDetail, context) : undefined,
|
|
6799
6582
|
};
|
|
6800
6583
|
};
|
|
6801
6584
|
var deserializeAws_json1_1FaceRecordList = function (output, context) {
|
|
@@ -6823,120 +6606,86 @@ var deserializeAws_json1_1Gender = function (output, context) {
|
|
|
6823
6606
|
};
|
|
6824
6607
|
var deserializeAws_json1_1Geometry = function (output, context) {
|
|
6825
6608
|
return {
|
|
6826
|
-
BoundingBox: output.BoundingBox
|
|
6827
|
-
|
|
6828
|
-
: undefined,
|
|
6829
|
-
Polygon: output.Polygon !== undefined && output.Polygon !== null
|
|
6830
|
-
? deserializeAws_json1_1Polygon(output.Polygon, context)
|
|
6831
|
-
: undefined,
|
|
6609
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
6610
|
+
Polygon: output.Polygon != null ? deserializeAws_json1_1Polygon(output.Polygon, context) : undefined,
|
|
6832
6611
|
};
|
|
6833
6612
|
};
|
|
6834
6613
|
var deserializeAws_json1_1GetCelebrityInfoResponse = function (output, context) {
|
|
6835
6614
|
return {
|
|
6836
|
-
KnownGender: output.KnownGender
|
|
6837
|
-
? deserializeAws_json1_1KnownGender(output.KnownGender, context)
|
|
6838
|
-
: undefined,
|
|
6615
|
+
KnownGender: output.KnownGender != null ? deserializeAws_json1_1KnownGender(output.KnownGender, context) : undefined,
|
|
6839
6616
|
Name: __expectString(output.Name),
|
|
6840
|
-
Urls: output.Urls
|
|
6617
|
+
Urls: output.Urls != null ? deserializeAws_json1_1Urls(output.Urls, context) : undefined,
|
|
6841
6618
|
};
|
|
6842
6619
|
};
|
|
6843
6620
|
var deserializeAws_json1_1GetCelebrityRecognitionResponse = function (output, context) {
|
|
6844
6621
|
return {
|
|
6845
|
-
Celebrities: output.Celebrities
|
|
6846
|
-
? deserializeAws_json1_1CelebrityRecognitions(output.Celebrities, context)
|
|
6847
|
-
: undefined,
|
|
6622
|
+
Celebrities: output.Celebrities != null ? deserializeAws_json1_1CelebrityRecognitions(output.Celebrities, context) : undefined,
|
|
6848
6623
|
JobStatus: __expectString(output.JobStatus),
|
|
6849
6624
|
NextToken: __expectString(output.NextToken),
|
|
6850
6625
|
StatusMessage: __expectString(output.StatusMessage),
|
|
6851
|
-
VideoMetadata: output.VideoMetadata
|
|
6852
|
-
? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context)
|
|
6853
|
-
: undefined,
|
|
6626
|
+
VideoMetadata: output.VideoMetadata != null ? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context) : undefined,
|
|
6854
6627
|
};
|
|
6855
6628
|
};
|
|
6856
6629
|
var deserializeAws_json1_1GetContentModerationResponse = function (output, context) {
|
|
6857
6630
|
return {
|
|
6858
6631
|
JobStatus: __expectString(output.JobStatus),
|
|
6859
|
-
ModerationLabels: output.ModerationLabels
|
|
6632
|
+
ModerationLabels: output.ModerationLabels != null
|
|
6860
6633
|
? deserializeAws_json1_1ContentModerationDetections(output.ModerationLabels, context)
|
|
6861
6634
|
: undefined,
|
|
6862
6635
|
ModerationModelVersion: __expectString(output.ModerationModelVersion),
|
|
6863
6636
|
NextToken: __expectString(output.NextToken),
|
|
6864
6637
|
StatusMessage: __expectString(output.StatusMessage),
|
|
6865
|
-
VideoMetadata: output.VideoMetadata
|
|
6866
|
-
? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context)
|
|
6867
|
-
: undefined,
|
|
6638
|
+
VideoMetadata: output.VideoMetadata != null ? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context) : undefined,
|
|
6868
6639
|
};
|
|
6869
6640
|
};
|
|
6870
6641
|
var deserializeAws_json1_1GetFaceDetectionResponse = function (output, context) {
|
|
6871
6642
|
return {
|
|
6872
|
-
Faces: output.Faces
|
|
6873
|
-
? deserializeAws_json1_1FaceDetections(output.Faces, context)
|
|
6874
|
-
: undefined,
|
|
6643
|
+
Faces: output.Faces != null ? deserializeAws_json1_1FaceDetections(output.Faces, context) : undefined,
|
|
6875
6644
|
JobStatus: __expectString(output.JobStatus),
|
|
6876
6645
|
NextToken: __expectString(output.NextToken),
|
|
6877
6646
|
StatusMessage: __expectString(output.StatusMessage),
|
|
6878
|
-
VideoMetadata: output.VideoMetadata
|
|
6879
|
-
? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context)
|
|
6880
|
-
: undefined,
|
|
6647
|
+
VideoMetadata: output.VideoMetadata != null ? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context) : undefined,
|
|
6881
6648
|
};
|
|
6882
6649
|
};
|
|
6883
6650
|
var deserializeAws_json1_1GetFaceSearchResponse = function (output, context) {
|
|
6884
6651
|
return {
|
|
6885
6652
|
JobStatus: __expectString(output.JobStatus),
|
|
6886
6653
|
NextToken: __expectString(output.NextToken),
|
|
6887
|
-
Persons: output.Persons
|
|
6888
|
-
? deserializeAws_json1_1PersonMatches(output.Persons, context)
|
|
6889
|
-
: undefined,
|
|
6654
|
+
Persons: output.Persons != null ? deserializeAws_json1_1PersonMatches(output.Persons, context) : undefined,
|
|
6890
6655
|
StatusMessage: __expectString(output.StatusMessage),
|
|
6891
|
-
VideoMetadata: output.VideoMetadata
|
|
6892
|
-
? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context)
|
|
6893
|
-
: undefined,
|
|
6656
|
+
VideoMetadata: output.VideoMetadata != null ? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context) : undefined,
|
|
6894
6657
|
};
|
|
6895
6658
|
};
|
|
6896
6659
|
var deserializeAws_json1_1GetLabelDetectionResponse = function (output, context) {
|
|
6897
6660
|
return {
|
|
6898
6661
|
JobStatus: __expectString(output.JobStatus),
|
|
6899
6662
|
LabelModelVersion: __expectString(output.LabelModelVersion),
|
|
6900
|
-
Labels: output.Labels
|
|
6901
|
-
? deserializeAws_json1_1LabelDetections(output.Labels, context)
|
|
6902
|
-
: undefined,
|
|
6663
|
+
Labels: output.Labels != null ? deserializeAws_json1_1LabelDetections(output.Labels, context) : undefined,
|
|
6903
6664
|
NextToken: __expectString(output.NextToken),
|
|
6904
6665
|
StatusMessage: __expectString(output.StatusMessage),
|
|
6905
|
-
VideoMetadata: output.VideoMetadata
|
|
6906
|
-
? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context)
|
|
6907
|
-
: undefined,
|
|
6666
|
+
VideoMetadata: output.VideoMetadata != null ? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context) : undefined,
|
|
6908
6667
|
};
|
|
6909
6668
|
};
|
|
6910
6669
|
var deserializeAws_json1_1GetPersonTrackingResponse = function (output, context) {
|
|
6911
6670
|
return {
|
|
6912
6671
|
JobStatus: __expectString(output.JobStatus),
|
|
6913
6672
|
NextToken: __expectString(output.NextToken),
|
|
6914
|
-
Persons: output.Persons
|
|
6915
|
-
? deserializeAws_json1_1PersonDetections(output.Persons, context)
|
|
6916
|
-
: undefined,
|
|
6673
|
+
Persons: output.Persons != null ? deserializeAws_json1_1PersonDetections(output.Persons, context) : undefined,
|
|
6917
6674
|
StatusMessage: __expectString(output.StatusMessage),
|
|
6918
|
-
VideoMetadata: output.VideoMetadata
|
|
6919
|
-
? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context)
|
|
6920
|
-
: undefined,
|
|
6675
|
+
VideoMetadata: output.VideoMetadata != null ? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context) : undefined,
|
|
6921
6676
|
};
|
|
6922
6677
|
};
|
|
6923
6678
|
var deserializeAws_json1_1GetSegmentDetectionResponse = function (output, context) {
|
|
6924
6679
|
return {
|
|
6925
|
-
AudioMetadata: output.AudioMetadata
|
|
6926
|
-
? deserializeAws_json1_1AudioMetadataList(output.AudioMetadata, context)
|
|
6927
|
-
: undefined,
|
|
6680
|
+
AudioMetadata: output.AudioMetadata != null ? deserializeAws_json1_1AudioMetadataList(output.AudioMetadata, context) : undefined,
|
|
6928
6681
|
JobStatus: __expectString(output.JobStatus),
|
|
6929
6682
|
NextToken: __expectString(output.NextToken),
|
|
6930
|
-
Segments: output.Segments
|
|
6931
|
-
|
|
6932
|
-
: undefined,
|
|
6933
|
-
SelectedSegmentTypes: output.SelectedSegmentTypes !== undefined && output.SelectedSegmentTypes !== null
|
|
6683
|
+
Segments: output.Segments != null ? deserializeAws_json1_1SegmentDetections(output.Segments, context) : undefined,
|
|
6684
|
+
SelectedSegmentTypes: output.SelectedSegmentTypes != null
|
|
6934
6685
|
? deserializeAws_json1_1SegmentTypesInfo(output.SelectedSegmentTypes, context)
|
|
6935
6686
|
: undefined,
|
|
6936
6687
|
StatusMessage: __expectString(output.StatusMessage),
|
|
6937
|
-
VideoMetadata: output.VideoMetadata
|
|
6938
|
-
? deserializeAws_json1_1VideoMetadataList(output.VideoMetadata, context)
|
|
6939
|
-
: undefined,
|
|
6688
|
+
VideoMetadata: output.VideoMetadata != null ? deserializeAws_json1_1VideoMetadataList(output.VideoMetadata, context) : undefined,
|
|
6940
6689
|
};
|
|
6941
6690
|
};
|
|
6942
6691
|
var deserializeAws_json1_1GetTextDetectionResponse = function (output, context) {
|
|
@@ -6944,29 +6693,24 @@ var deserializeAws_json1_1GetTextDetectionResponse = function (output, context)
|
|
|
6944
6693
|
JobStatus: __expectString(output.JobStatus),
|
|
6945
6694
|
NextToken: __expectString(output.NextToken),
|
|
6946
6695
|
StatusMessage: __expectString(output.StatusMessage),
|
|
6947
|
-
TextDetections: output.TextDetections
|
|
6696
|
+
TextDetections: output.TextDetections != null
|
|
6948
6697
|
? deserializeAws_json1_1TextDetectionResults(output.TextDetections, context)
|
|
6949
6698
|
: undefined,
|
|
6950
6699
|
TextModelVersion: __expectString(output.TextModelVersion),
|
|
6951
|
-
VideoMetadata: output.VideoMetadata
|
|
6952
|
-
? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context)
|
|
6953
|
-
: undefined,
|
|
6700
|
+
VideoMetadata: output.VideoMetadata != null ? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context) : undefined,
|
|
6954
6701
|
};
|
|
6955
6702
|
};
|
|
6956
6703
|
var deserializeAws_json1_1GroundTruthManifest = function (output, context) {
|
|
6957
6704
|
return {
|
|
6958
|
-
S3Object: output.S3Object
|
|
6959
|
-
? deserializeAws_json1_1S3Object(output.S3Object, context)
|
|
6960
|
-
: undefined,
|
|
6705
|
+
S3Object: output.S3Object != null ? deserializeAws_json1_1S3Object(output.S3Object, context) : undefined,
|
|
6961
6706
|
};
|
|
6962
6707
|
};
|
|
6963
6708
|
var deserializeAws_json1_1HumanLoopActivationOutput = function (output, context) {
|
|
6964
6709
|
return {
|
|
6965
|
-
HumanLoopActivationConditionsEvaluationResults: output.HumanLoopActivationConditionsEvaluationResults
|
|
6966
|
-
output.HumanLoopActivationConditionsEvaluationResults !== null
|
|
6710
|
+
HumanLoopActivationConditionsEvaluationResults: output.HumanLoopActivationConditionsEvaluationResults != null
|
|
6967
6711
|
? new __LazyJsonString(output.HumanLoopActivationConditionsEvaluationResults)
|
|
6968
6712
|
: undefined,
|
|
6969
|
-
HumanLoopActivationReasons: output.HumanLoopActivationReasons
|
|
6713
|
+
HumanLoopActivationReasons: output.HumanLoopActivationReasons != null
|
|
6970
6714
|
? deserializeAws_json1_1HumanLoopActivationReasons(output.HumanLoopActivationReasons, context)
|
|
6971
6715
|
: undefined,
|
|
6972
6716
|
HumanLoopArn: __expectString(output.HumanLoopArn),
|
|
@@ -7016,20 +6760,14 @@ var deserializeAws_json1_1ImageTooLargeException = function (output, context) {
|
|
|
7016
6760
|
var deserializeAws_json1_1IndexFacesResponse = function (output, context) {
|
|
7017
6761
|
return {
|
|
7018
6762
|
FaceModelVersion: __expectString(output.FaceModelVersion),
|
|
7019
|
-
FaceRecords: output.FaceRecords
|
|
7020
|
-
? deserializeAws_json1_1FaceRecordList(output.FaceRecords, context)
|
|
7021
|
-
: undefined,
|
|
6763
|
+
FaceRecords: output.FaceRecords != null ? deserializeAws_json1_1FaceRecordList(output.FaceRecords, context) : undefined,
|
|
7022
6764
|
OrientationCorrection: __expectString(output.OrientationCorrection),
|
|
7023
|
-
UnindexedFaces: output.UnindexedFaces
|
|
7024
|
-
? deserializeAws_json1_1UnindexedFaces(output.UnindexedFaces, context)
|
|
7025
|
-
: undefined,
|
|
6765
|
+
UnindexedFaces: output.UnindexedFaces != null ? deserializeAws_json1_1UnindexedFaces(output.UnindexedFaces, context) : undefined,
|
|
7026
6766
|
};
|
|
7027
6767
|
};
|
|
7028
6768
|
var deserializeAws_json1_1Instance = function (output, context) {
|
|
7029
6769
|
return {
|
|
7030
|
-
BoundingBox: output.BoundingBox
|
|
7031
|
-
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
7032
|
-
: undefined,
|
|
6770
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
7033
6771
|
Confidence: __limitedParseFloat32(output.Confidence),
|
|
7034
6772
|
};
|
|
7035
6773
|
};
|
|
@@ -7097,20 +6835,14 @@ var deserializeAws_json1_1KnownGender = function (output, context) {
|
|
|
7097
6835
|
var deserializeAws_json1_1Label = function (output, context) {
|
|
7098
6836
|
return {
|
|
7099
6837
|
Confidence: __limitedParseFloat32(output.Confidence),
|
|
7100
|
-
Instances: output.Instances
|
|
7101
|
-
? deserializeAws_json1_1Instances(output.Instances, context)
|
|
7102
|
-
: undefined,
|
|
6838
|
+
Instances: output.Instances != null ? deserializeAws_json1_1Instances(output.Instances, context) : undefined,
|
|
7103
6839
|
Name: __expectString(output.Name),
|
|
7104
|
-
Parents: output.Parents
|
|
7105
|
-
? deserializeAws_json1_1Parents(output.Parents, context)
|
|
7106
|
-
: undefined,
|
|
6840
|
+
Parents: output.Parents != null ? deserializeAws_json1_1Parents(output.Parents, context) : undefined,
|
|
7107
6841
|
};
|
|
7108
6842
|
};
|
|
7109
6843
|
var deserializeAws_json1_1LabelDetection = function (output, context) {
|
|
7110
6844
|
return {
|
|
7111
|
-
Label: output.Label
|
|
7112
|
-
? deserializeAws_json1_1Label(output.Label, context)
|
|
7113
|
-
: undefined,
|
|
6845
|
+
Label: output.Label != null ? deserializeAws_json1_1Label(output.Label, context) : undefined,
|
|
7114
6846
|
Timestamp: __expectLong(output.Timestamp),
|
|
7115
6847
|
};
|
|
7116
6848
|
};
|
|
@@ -7163,10 +6895,8 @@ var deserializeAws_json1_1LimitExceededException = function (output, context) {
|
|
|
7163
6895
|
};
|
|
7164
6896
|
var deserializeAws_json1_1ListCollectionsResponse = function (output, context) {
|
|
7165
6897
|
return {
|
|
7166
|
-
CollectionIds: output.CollectionIds
|
|
7167
|
-
|
|
7168
|
-
: undefined,
|
|
7169
|
-
FaceModelVersions: output.FaceModelVersions !== undefined && output.FaceModelVersions !== null
|
|
6898
|
+
CollectionIds: output.CollectionIds != null ? deserializeAws_json1_1CollectionIdList(output.CollectionIds, context) : undefined,
|
|
6899
|
+
FaceModelVersions: output.FaceModelVersions != null
|
|
7170
6900
|
? deserializeAws_json1_1FaceModelVersionList(output.FaceModelVersions, context)
|
|
7171
6901
|
: undefined,
|
|
7172
6902
|
NextToken: __expectString(output.NextToken),
|
|
@@ -7174,15 +6904,13 @@ var deserializeAws_json1_1ListCollectionsResponse = function (output, context) {
|
|
|
7174
6904
|
};
|
|
7175
6905
|
var deserializeAws_json1_1ListDatasetEntriesResponse = function (output, context) {
|
|
7176
6906
|
return {
|
|
7177
|
-
DatasetEntries: output.DatasetEntries
|
|
7178
|
-
? deserializeAws_json1_1DatasetEntries(output.DatasetEntries, context)
|
|
7179
|
-
: undefined,
|
|
6907
|
+
DatasetEntries: output.DatasetEntries != null ? deserializeAws_json1_1DatasetEntries(output.DatasetEntries, context) : undefined,
|
|
7180
6908
|
NextToken: __expectString(output.NextToken),
|
|
7181
6909
|
};
|
|
7182
6910
|
};
|
|
7183
6911
|
var deserializeAws_json1_1ListDatasetLabelsResponse = function (output, context) {
|
|
7184
6912
|
return {
|
|
7185
|
-
DatasetLabelDescriptions: output.DatasetLabelDescriptions
|
|
6913
|
+
DatasetLabelDescriptions: output.DatasetLabelDescriptions != null
|
|
7186
6914
|
? deserializeAws_json1_1DatasetLabelDescriptions(output.DatasetLabelDescriptions, context)
|
|
7187
6915
|
: undefined,
|
|
7188
6916
|
NextToken: __expectString(output.NextToken),
|
|
@@ -7191,25 +6919,21 @@ var deserializeAws_json1_1ListDatasetLabelsResponse = function (output, context)
|
|
|
7191
6919
|
var deserializeAws_json1_1ListFacesResponse = function (output, context) {
|
|
7192
6920
|
return {
|
|
7193
6921
|
FaceModelVersion: __expectString(output.FaceModelVersion),
|
|
7194
|
-
Faces: output.Faces
|
|
7195
|
-
? deserializeAws_json1_1FaceList(output.Faces, context)
|
|
7196
|
-
: undefined,
|
|
6922
|
+
Faces: output.Faces != null ? deserializeAws_json1_1FaceList(output.Faces, context) : undefined,
|
|
7197
6923
|
NextToken: __expectString(output.NextToken),
|
|
7198
6924
|
};
|
|
7199
6925
|
};
|
|
7200
6926
|
var deserializeAws_json1_1ListStreamProcessorsResponse = function (output, context) {
|
|
7201
6927
|
return {
|
|
7202
6928
|
NextToken: __expectString(output.NextToken),
|
|
7203
|
-
StreamProcessors: output.StreamProcessors
|
|
6929
|
+
StreamProcessors: output.StreamProcessors != null
|
|
7204
6930
|
? deserializeAws_json1_1StreamProcessorList(output.StreamProcessors, context)
|
|
7205
6931
|
: undefined,
|
|
7206
6932
|
};
|
|
7207
6933
|
};
|
|
7208
6934
|
var deserializeAws_json1_1ListTagsForResourceResponse = function (output, context) {
|
|
7209
6935
|
return {
|
|
7210
|
-
Tags: output.Tags
|
|
7211
|
-
? deserializeAws_json1_1TagMap(output.Tags, context)
|
|
7212
|
-
: undefined,
|
|
6936
|
+
Tags: output.Tags != null ? deserializeAws_json1_1TagMap(output.Tags, context) : undefined,
|
|
7213
6937
|
};
|
|
7214
6938
|
};
|
|
7215
6939
|
var deserializeAws_json1_1ModerationLabel = function (output, context) {
|
|
@@ -7266,20 +6990,14 @@ var deserializeAws_json1_1Parents = function (output, context) {
|
|
|
7266
6990
|
};
|
|
7267
6991
|
var deserializeAws_json1_1PersonDetail = function (output, context) {
|
|
7268
6992
|
return {
|
|
7269
|
-
BoundingBox: output.BoundingBox
|
|
7270
|
-
|
|
7271
|
-
: undefined,
|
|
7272
|
-
Face: output.Face !== undefined && output.Face !== null
|
|
7273
|
-
? deserializeAws_json1_1FaceDetail(output.Face, context)
|
|
7274
|
-
: undefined,
|
|
6993
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
6994
|
+
Face: output.Face != null ? deserializeAws_json1_1FaceDetail(output.Face, context) : undefined,
|
|
7275
6995
|
Index: __expectLong(output.Index),
|
|
7276
6996
|
};
|
|
7277
6997
|
};
|
|
7278
6998
|
var deserializeAws_json1_1PersonDetection = function (output, context) {
|
|
7279
6999
|
return {
|
|
7280
|
-
Person: output.Person
|
|
7281
|
-
? deserializeAws_json1_1PersonDetail(output.Person, context)
|
|
7282
|
-
: undefined,
|
|
7000
|
+
Person: output.Person != null ? deserializeAws_json1_1PersonDetail(output.Person, context) : undefined,
|
|
7283
7001
|
Timestamp: __expectLong(output.Timestamp),
|
|
7284
7002
|
};
|
|
7285
7003
|
};
|
|
@@ -7296,12 +7014,8 @@ var deserializeAws_json1_1PersonDetections = function (output, context) {
|
|
|
7296
7014
|
};
|
|
7297
7015
|
var deserializeAws_json1_1PersonMatch = function (output, context) {
|
|
7298
7016
|
return {
|
|
7299
|
-
FaceMatches: output.FaceMatches
|
|
7300
|
-
|
|
7301
|
-
: undefined,
|
|
7302
|
-
Person: output.Person !== undefined && output.Person !== null
|
|
7303
|
-
? deserializeAws_json1_1PersonDetail(output.Person, context)
|
|
7304
|
-
: undefined,
|
|
7017
|
+
FaceMatches: output.FaceMatches != null ? deserializeAws_json1_1FaceMatchList(output.FaceMatches, context) : undefined,
|
|
7018
|
+
Person: output.Person != null ? deserializeAws_json1_1PersonDetail(output.Person, context) : undefined,
|
|
7305
7019
|
Timestamp: __expectLong(output.Timestamp),
|
|
7306
7020
|
};
|
|
7307
7021
|
};
|
|
@@ -7342,12 +7056,10 @@ var deserializeAws_json1_1Pose = function (output, context) {
|
|
|
7342
7056
|
};
|
|
7343
7057
|
var deserializeAws_json1_1ProjectDescription = function (output, context) {
|
|
7344
7058
|
return {
|
|
7345
|
-
CreationTimestamp: output.CreationTimestamp
|
|
7059
|
+
CreationTimestamp: output.CreationTimestamp != null
|
|
7346
7060
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTimestamp)))
|
|
7347
7061
|
: undefined,
|
|
7348
|
-
Datasets: output.Datasets
|
|
7349
|
-
? deserializeAws_json1_1DatasetMetadataList(output.Datasets, context)
|
|
7350
|
-
: undefined,
|
|
7062
|
+
Datasets: output.Datasets != null ? deserializeAws_json1_1DatasetMetadataList(output.Datasets, context) : undefined,
|
|
7351
7063
|
ProjectArn: __expectString(output.ProjectArn),
|
|
7352
7064
|
Status: __expectString(output.Status),
|
|
7353
7065
|
};
|
|
@@ -7366,30 +7078,28 @@ var deserializeAws_json1_1ProjectDescriptions = function (output, context) {
|
|
|
7366
7078
|
var deserializeAws_json1_1ProjectVersionDescription = function (output, context) {
|
|
7367
7079
|
return {
|
|
7368
7080
|
BillableTrainingTimeInSeconds: __expectLong(output.BillableTrainingTimeInSeconds),
|
|
7369
|
-
CreationTimestamp: output.CreationTimestamp
|
|
7081
|
+
CreationTimestamp: output.CreationTimestamp != null
|
|
7370
7082
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTimestamp)))
|
|
7371
7083
|
: undefined,
|
|
7372
|
-
EvaluationResult: output.EvaluationResult
|
|
7084
|
+
EvaluationResult: output.EvaluationResult != null
|
|
7373
7085
|
? deserializeAws_json1_1EvaluationResult(output.EvaluationResult, context)
|
|
7374
7086
|
: undefined,
|
|
7375
7087
|
KmsKeyId: __expectString(output.KmsKeyId),
|
|
7376
|
-
ManifestSummary: output.ManifestSummary
|
|
7088
|
+
ManifestSummary: output.ManifestSummary != null
|
|
7377
7089
|
? deserializeAws_json1_1GroundTruthManifest(output.ManifestSummary, context)
|
|
7378
7090
|
: undefined,
|
|
7379
7091
|
MinInferenceUnits: __expectInt32(output.MinInferenceUnits),
|
|
7380
|
-
OutputConfig: output.OutputConfig
|
|
7381
|
-
? deserializeAws_json1_1OutputConfig(output.OutputConfig, context)
|
|
7382
|
-
: undefined,
|
|
7092
|
+
OutputConfig: output.OutputConfig != null ? deserializeAws_json1_1OutputConfig(output.OutputConfig, context) : undefined,
|
|
7383
7093
|
ProjectVersionArn: __expectString(output.ProjectVersionArn),
|
|
7384
7094
|
Status: __expectString(output.Status),
|
|
7385
7095
|
StatusMessage: __expectString(output.StatusMessage),
|
|
7386
|
-
TestingDataResult: output.TestingDataResult
|
|
7096
|
+
TestingDataResult: output.TestingDataResult != null
|
|
7387
7097
|
? deserializeAws_json1_1TestingDataResult(output.TestingDataResult, context)
|
|
7388
7098
|
: undefined,
|
|
7389
|
-
TrainingDataResult: output.TrainingDataResult
|
|
7099
|
+
TrainingDataResult: output.TrainingDataResult != null
|
|
7390
7100
|
? deserializeAws_json1_1TrainingDataResult(output.TrainingDataResult, context)
|
|
7391
7101
|
: undefined,
|
|
7392
|
-
TrainingEndTimestamp: output.TrainingEndTimestamp
|
|
7102
|
+
TrainingEndTimestamp: output.TrainingEndTimestamp != null
|
|
7393
7103
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.TrainingEndTimestamp)))
|
|
7394
7104
|
: undefined,
|
|
7395
7105
|
};
|
|
@@ -7408,7 +7118,7 @@ var deserializeAws_json1_1ProjectVersionDescriptions = function (output, context
|
|
|
7408
7118
|
var deserializeAws_json1_1ProtectiveEquipmentBodyPart = function (output, context) {
|
|
7409
7119
|
return {
|
|
7410
7120
|
Confidence: __limitedParseFloat32(output.Confidence),
|
|
7411
|
-
EquipmentDetections: output.EquipmentDetections
|
|
7121
|
+
EquipmentDetections: output.EquipmentDetections != null
|
|
7412
7122
|
? deserializeAws_json1_1EquipmentDetections(output.EquipmentDetections, context)
|
|
7413
7123
|
: undefined,
|
|
7414
7124
|
Name: __expectString(output.Name),
|
|
@@ -7416,12 +7126,8 @@ var deserializeAws_json1_1ProtectiveEquipmentBodyPart = function (output, contex
|
|
|
7416
7126
|
};
|
|
7417
7127
|
var deserializeAws_json1_1ProtectiveEquipmentPerson = function (output, context) {
|
|
7418
7128
|
return {
|
|
7419
|
-
BodyParts: output.BodyParts
|
|
7420
|
-
|
|
7421
|
-
: undefined,
|
|
7422
|
-
BoundingBox: output.BoundingBox !== undefined && output.BoundingBox !== null
|
|
7423
|
-
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
7424
|
-
: undefined,
|
|
7129
|
+
BodyParts: output.BodyParts != null ? deserializeAws_json1_1BodyParts(output.BodyParts, context) : undefined,
|
|
7130
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
7425
7131
|
Confidence: __limitedParseFloat32(output.Confidence),
|
|
7426
7132
|
Id: __expectInt32(output.Id),
|
|
7427
7133
|
};
|
|
@@ -7450,13 +7156,13 @@ var deserializeAws_json1_1ProtectiveEquipmentPersons = function (output, context
|
|
|
7450
7156
|
};
|
|
7451
7157
|
var deserializeAws_json1_1ProtectiveEquipmentSummary = function (output, context) {
|
|
7452
7158
|
return {
|
|
7453
|
-
PersonsIndeterminate: output.PersonsIndeterminate
|
|
7159
|
+
PersonsIndeterminate: output.PersonsIndeterminate != null
|
|
7454
7160
|
? deserializeAws_json1_1ProtectiveEquipmentPersonIds(output.PersonsIndeterminate, context)
|
|
7455
7161
|
: undefined,
|
|
7456
|
-
PersonsWithRequiredEquipment: output.PersonsWithRequiredEquipment
|
|
7162
|
+
PersonsWithRequiredEquipment: output.PersonsWithRequiredEquipment != null
|
|
7457
7163
|
? deserializeAws_json1_1ProtectiveEquipmentPersonIds(output.PersonsWithRequiredEquipment, context)
|
|
7458
7164
|
: undefined,
|
|
7459
|
-
PersonsWithoutRequiredEquipment: output.PersonsWithoutRequiredEquipment
|
|
7165
|
+
PersonsWithoutRequiredEquipment: output.PersonsWithoutRequiredEquipment != null
|
|
7460
7166
|
? deserializeAws_json1_1ProtectiveEquipmentPersonIds(output.PersonsWithoutRequiredEquipment, context)
|
|
7461
7167
|
: undefined,
|
|
7462
7168
|
};
|
|
@@ -7481,23 +7187,17 @@ var deserializeAws_json1_1Reasons = function (output, context) {
|
|
|
7481
7187
|
};
|
|
7482
7188
|
var deserializeAws_json1_1RecognizeCelebritiesResponse = function (output, context) {
|
|
7483
7189
|
return {
|
|
7484
|
-
CelebrityFaces: output.CelebrityFaces
|
|
7485
|
-
? deserializeAws_json1_1CelebrityList(output.CelebrityFaces, context)
|
|
7486
|
-
: undefined,
|
|
7190
|
+
CelebrityFaces: output.CelebrityFaces != null ? deserializeAws_json1_1CelebrityList(output.CelebrityFaces, context) : undefined,
|
|
7487
7191
|
OrientationCorrection: __expectString(output.OrientationCorrection),
|
|
7488
|
-
UnrecognizedFaces: output.UnrecognizedFaces
|
|
7192
|
+
UnrecognizedFaces: output.UnrecognizedFaces != null
|
|
7489
7193
|
? deserializeAws_json1_1ComparedFaceList(output.UnrecognizedFaces, context)
|
|
7490
7194
|
: undefined,
|
|
7491
7195
|
};
|
|
7492
7196
|
};
|
|
7493
7197
|
var deserializeAws_json1_1RegionOfInterest = function (output, context) {
|
|
7494
7198
|
return {
|
|
7495
|
-
BoundingBox: output.BoundingBox
|
|
7496
|
-
|
|
7497
|
-
: undefined,
|
|
7498
|
-
Polygon: output.Polygon !== undefined && output.Polygon !== null
|
|
7499
|
-
? deserializeAws_json1_1Polygon(output.Polygon, context)
|
|
7500
|
-
: undefined,
|
|
7199
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
7200
|
+
Polygon: output.Polygon != null ? deserializeAws_json1_1Polygon(output.Polygon, context) : undefined,
|
|
7501
7201
|
};
|
|
7502
7202
|
};
|
|
7503
7203
|
var deserializeAws_json1_1RegionsOfInterest = function (output, context) {
|
|
@@ -7554,11 +7254,9 @@ var deserializeAws_json1_1S3Object = function (output, context) {
|
|
|
7554
7254
|
};
|
|
7555
7255
|
var deserializeAws_json1_1SearchFacesByImageResponse = function (output, context) {
|
|
7556
7256
|
return {
|
|
7557
|
-
FaceMatches: output.FaceMatches
|
|
7558
|
-
? deserializeAws_json1_1FaceMatchList(output.FaceMatches, context)
|
|
7559
|
-
: undefined,
|
|
7257
|
+
FaceMatches: output.FaceMatches != null ? deserializeAws_json1_1FaceMatchList(output.FaceMatches, context) : undefined,
|
|
7560
7258
|
FaceModelVersion: __expectString(output.FaceModelVersion),
|
|
7561
|
-
SearchedFaceBoundingBox: output.SearchedFaceBoundingBox
|
|
7259
|
+
SearchedFaceBoundingBox: output.SearchedFaceBoundingBox != null
|
|
7562
7260
|
? deserializeAws_json1_1BoundingBox(output.SearchedFaceBoundingBox, context)
|
|
7563
7261
|
: undefined,
|
|
7564
7262
|
SearchedFaceConfidence: __limitedParseFloat32(output.SearchedFaceConfidence),
|
|
@@ -7566,9 +7264,7 @@ var deserializeAws_json1_1SearchFacesByImageResponse = function (output, context
|
|
|
7566
7264
|
};
|
|
7567
7265
|
var deserializeAws_json1_1SearchFacesResponse = function (output, context) {
|
|
7568
7266
|
return {
|
|
7569
|
-
FaceMatches: output.FaceMatches
|
|
7570
|
-
? deserializeAws_json1_1FaceMatchList(output.FaceMatches, context)
|
|
7571
|
-
: undefined,
|
|
7267
|
+
FaceMatches: output.FaceMatches != null ? deserializeAws_json1_1FaceMatchList(output.FaceMatches, context) : undefined,
|
|
7572
7268
|
FaceModelVersion: __expectString(output.FaceModelVersion),
|
|
7573
7269
|
SearchedFaceId: __expectString(output.SearchedFaceId),
|
|
7574
7270
|
};
|
|
@@ -7581,13 +7277,11 @@ var deserializeAws_json1_1SegmentDetection = function (output, context) {
|
|
|
7581
7277
|
EndFrameNumber: __expectLong(output.EndFrameNumber),
|
|
7582
7278
|
EndTimecodeSMPTE: __expectString(output.EndTimecodeSMPTE),
|
|
7583
7279
|
EndTimestampMillis: __expectLong(output.EndTimestampMillis),
|
|
7584
|
-
ShotSegment: output.ShotSegment
|
|
7585
|
-
? deserializeAws_json1_1ShotSegment(output.ShotSegment, context)
|
|
7586
|
-
: undefined,
|
|
7280
|
+
ShotSegment: output.ShotSegment != null ? deserializeAws_json1_1ShotSegment(output.ShotSegment, context) : undefined,
|
|
7587
7281
|
StartFrameNumber: __expectLong(output.StartFrameNumber),
|
|
7588
7282
|
StartTimecodeSMPTE: __expectString(output.StartTimecodeSMPTE),
|
|
7589
7283
|
StartTimestampMillis: __expectLong(output.StartTimestampMillis),
|
|
7590
|
-
TechnicalCueSegment: output.TechnicalCueSegment
|
|
7284
|
+
TechnicalCueSegment: output.TechnicalCueSegment != null
|
|
7591
7285
|
? deserializeAws_json1_1TechnicalCueSegment(output.TechnicalCueSegment, context)
|
|
7592
7286
|
: undefined,
|
|
7593
7287
|
Type: __expectString(output.Type),
|
|
@@ -7711,7 +7405,7 @@ var deserializeAws_json1_1StreamProcessorDataSharingPreference = function (outpu
|
|
|
7711
7405
|
};
|
|
7712
7406
|
var deserializeAws_json1_1StreamProcessorInput = function (output, context) {
|
|
7713
7407
|
return {
|
|
7714
|
-
KinesisVideoStream: output.KinesisVideoStream
|
|
7408
|
+
KinesisVideoStream: output.KinesisVideoStream != null
|
|
7715
7409
|
? deserializeAws_json1_1KinesisVideoStream(output.KinesisVideoStream, context)
|
|
7716
7410
|
: undefined,
|
|
7717
7411
|
};
|
|
@@ -7734,29 +7428,23 @@ var deserializeAws_json1_1StreamProcessorNotificationChannel = function (output,
|
|
|
7734
7428
|
};
|
|
7735
7429
|
var deserializeAws_json1_1StreamProcessorOutput = function (output, context) {
|
|
7736
7430
|
return {
|
|
7737
|
-
KinesisDataStream: output.KinesisDataStream
|
|
7431
|
+
KinesisDataStream: output.KinesisDataStream != null
|
|
7738
7432
|
? deserializeAws_json1_1KinesisDataStream(output.KinesisDataStream, context)
|
|
7739
7433
|
: undefined,
|
|
7740
|
-
S3Destination: output.S3Destination
|
|
7741
|
-
? deserializeAws_json1_1S3Destination(output.S3Destination, context)
|
|
7742
|
-
: undefined,
|
|
7434
|
+
S3Destination: output.S3Destination != null ? deserializeAws_json1_1S3Destination(output.S3Destination, context) : undefined,
|
|
7743
7435
|
};
|
|
7744
7436
|
};
|
|
7745
7437
|
var deserializeAws_json1_1StreamProcessorSettings = function (output, context) {
|
|
7746
7438
|
return {
|
|
7747
|
-
ConnectedHome: output.ConnectedHome
|
|
7439
|
+
ConnectedHome: output.ConnectedHome != null
|
|
7748
7440
|
? deserializeAws_json1_1ConnectedHomeSettings(output.ConnectedHome, context)
|
|
7749
7441
|
: undefined,
|
|
7750
|
-
FaceSearch: output.FaceSearch
|
|
7751
|
-
? deserializeAws_json1_1FaceSearchSettings(output.FaceSearch, context)
|
|
7752
|
-
: undefined,
|
|
7442
|
+
FaceSearch: output.FaceSearch != null ? deserializeAws_json1_1FaceSearchSettings(output.FaceSearch, context) : undefined,
|
|
7753
7443
|
};
|
|
7754
7444
|
};
|
|
7755
7445
|
var deserializeAws_json1_1Summary = function (output, context) {
|
|
7756
7446
|
return {
|
|
7757
|
-
S3Object: output.S3Object
|
|
7758
|
-
? deserializeAws_json1_1S3Object(output.S3Object, context)
|
|
7759
|
-
: undefined,
|
|
7447
|
+
S3Object: output.S3Object != null ? deserializeAws_json1_1S3Object(output.S3Object, context) : undefined,
|
|
7760
7448
|
};
|
|
7761
7449
|
};
|
|
7762
7450
|
var deserializeAws_json1_1Sunglasses = function (output, context) {
|
|
@@ -7786,32 +7474,22 @@ var deserializeAws_json1_1TechnicalCueSegment = function (output, context) {
|
|
|
7786
7474
|
};
|
|
7787
7475
|
var deserializeAws_json1_1TestingData = function (output, context) {
|
|
7788
7476
|
return {
|
|
7789
|
-
Assets: output.Assets
|
|
7790
|
-
? deserializeAws_json1_1Assets(output.Assets, context)
|
|
7791
|
-
: undefined,
|
|
7477
|
+
Assets: output.Assets != null ? deserializeAws_json1_1Assets(output.Assets, context) : undefined,
|
|
7792
7478
|
AutoCreate: __expectBoolean(output.AutoCreate),
|
|
7793
7479
|
};
|
|
7794
7480
|
};
|
|
7795
7481
|
var deserializeAws_json1_1TestingDataResult = function (output, context) {
|
|
7796
7482
|
return {
|
|
7797
|
-
Input: output.Input
|
|
7798
|
-
|
|
7799
|
-
|
|
7800
|
-
Output: output.Output !== undefined && output.Output !== null
|
|
7801
|
-
? deserializeAws_json1_1TestingData(output.Output, context)
|
|
7802
|
-
: undefined,
|
|
7803
|
-
Validation: output.Validation !== undefined && output.Validation !== null
|
|
7804
|
-
? deserializeAws_json1_1ValidationData(output.Validation, context)
|
|
7805
|
-
: undefined,
|
|
7483
|
+
Input: output.Input != null ? deserializeAws_json1_1TestingData(output.Input, context) : undefined,
|
|
7484
|
+
Output: output.Output != null ? deserializeAws_json1_1TestingData(output.Output, context) : undefined,
|
|
7485
|
+
Validation: output.Validation != null ? deserializeAws_json1_1ValidationData(output.Validation, context) : undefined,
|
|
7806
7486
|
};
|
|
7807
7487
|
};
|
|
7808
7488
|
var deserializeAws_json1_1TextDetection = function (output, context) {
|
|
7809
7489
|
return {
|
|
7810
7490
|
Confidence: __limitedParseFloat32(output.Confidence),
|
|
7811
7491
|
DetectedText: __expectString(output.DetectedText),
|
|
7812
|
-
Geometry: output.Geometry
|
|
7813
|
-
? deserializeAws_json1_1Geometry(output.Geometry, context)
|
|
7814
|
-
: undefined,
|
|
7492
|
+
Geometry: output.Geometry != null ? deserializeAws_json1_1Geometry(output.Geometry, context) : undefined,
|
|
7815
7493
|
Id: __expectInt32(output.Id),
|
|
7816
7494
|
ParentId: __expectInt32(output.ParentId),
|
|
7817
7495
|
Type: __expectString(output.Type),
|
|
@@ -7830,9 +7508,7 @@ var deserializeAws_json1_1TextDetectionList = function (output, context) {
|
|
|
7830
7508
|
};
|
|
7831
7509
|
var deserializeAws_json1_1TextDetectionResult = function (output, context) {
|
|
7832
7510
|
return {
|
|
7833
|
-
TextDetection: output.TextDetection
|
|
7834
|
-
? deserializeAws_json1_1TextDetection(output.TextDetection, context)
|
|
7835
|
-
: undefined,
|
|
7511
|
+
TextDetection: output.TextDetection != null ? deserializeAws_json1_1TextDetection(output.TextDetection, context) : undefined,
|
|
7836
7512
|
Timestamp: __expectLong(output.Timestamp),
|
|
7837
7513
|
};
|
|
7838
7514
|
};
|
|
@@ -7856,32 +7532,20 @@ var deserializeAws_json1_1ThrottlingException = function (output, context) {
|
|
|
7856
7532
|
};
|
|
7857
7533
|
var deserializeAws_json1_1TrainingData = function (output, context) {
|
|
7858
7534
|
return {
|
|
7859
|
-
Assets: output.Assets
|
|
7860
|
-
? deserializeAws_json1_1Assets(output.Assets, context)
|
|
7861
|
-
: undefined,
|
|
7535
|
+
Assets: output.Assets != null ? deserializeAws_json1_1Assets(output.Assets, context) : undefined,
|
|
7862
7536
|
};
|
|
7863
7537
|
};
|
|
7864
7538
|
var deserializeAws_json1_1TrainingDataResult = function (output, context) {
|
|
7865
7539
|
return {
|
|
7866
|
-
Input: output.Input
|
|
7867
|
-
|
|
7868
|
-
|
|
7869
|
-
Output: output.Output !== undefined && output.Output !== null
|
|
7870
|
-
? deserializeAws_json1_1TrainingData(output.Output, context)
|
|
7871
|
-
: undefined,
|
|
7872
|
-
Validation: output.Validation !== undefined && output.Validation !== null
|
|
7873
|
-
? deserializeAws_json1_1ValidationData(output.Validation, context)
|
|
7874
|
-
: undefined,
|
|
7540
|
+
Input: output.Input != null ? deserializeAws_json1_1TrainingData(output.Input, context) : undefined,
|
|
7541
|
+
Output: output.Output != null ? deserializeAws_json1_1TrainingData(output.Output, context) : undefined,
|
|
7542
|
+
Validation: output.Validation != null ? deserializeAws_json1_1ValidationData(output.Validation, context) : undefined,
|
|
7875
7543
|
};
|
|
7876
7544
|
};
|
|
7877
7545
|
var deserializeAws_json1_1UnindexedFace = function (output, context) {
|
|
7878
7546
|
return {
|
|
7879
|
-
FaceDetail: output.FaceDetail
|
|
7880
|
-
|
|
7881
|
-
: undefined,
|
|
7882
|
-
Reasons: output.Reasons !== undefined && output.Reasons !== null
|
|
7883
|
-
? deserializeAws_json1_1Reasons(output.Reasons, context)
|
|
7884
|
-
: undefined,
|
|
7547
|
+
FaceDetail: output.FaceDetail != null ? deserializeAws_json1_1FaceDetail(output.FaceDetail, context) : undefined,
|
|
7548
|
+
Reasons: output.Reasons != null ? deserializeAws_json1_1Reasons(output.Reasons, context) : undefined,
|
|
7885
7549
|
};
|
|
7886
7550
|
};
|
|
7887
7551
|
var deserializeAws_json1_1UnindexedFaces = function (output, context) {
|
|
@@ -7917,9 +7581,7 @@ var deserializeAws_json1_1Urls = function (output, context) {
|
|
|
7917
7581
|
};
|
|
7918
7582
|
var deserializeAws_json1_1ValidationData = function (output, context) {
|
|
7919
7583
|
return {
|
|
7920
|
-
Assets: output.Assets
|
|
7921
|
-
? deserializeAws_json1_1Assets(output.Assets, context)
|
|
7922
|
-
: undefined,
|
|
7584
|
+
Assets: output.Assets != null ? deserializeAws_json1_1Assets(output.Assets, context) : undefined,
|
|
7923
7585
|
};
|
|
7924
7586
|
};
|
|
7925
7587
|
var deserializeAws_json1_1VideoMetadata = function (output, context) {
|
|
@@ -8007,6 +7669,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
8007
7669
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
8008
7670
|
var sanitizeErrorCode = function (rawValue) {
|
|
8009
7671
|
var cleanValue = rawValue;
|
|
7672
|
+
if (typeof cleanValue === "number") {
|
|
7673
|
+
cleanValue = cleanValue.toString();
|
|
7674
|
+
}
|
|
8010
7675
|
if (cleanValue.indexOf(":") >= 0) {
|
|
8011
7676
|
cleanValue = cleanValue.split(":")[0];
|
|
8012
7677
|
}
|