@aws-sdk/client-comprehend 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 +434 -681
- package/dist-es/protocols/Aws_json1_1.js +267 -514
- package/package.json +26 -26
|
@@ -5533,69 +5533,48 @@ var serializeAws_json1_1AttributeNamesList = function (input, context) {
|
|
|
5533
5533
|
});
|
|
5534
5534
|
};
|
|
5535
5535
|
var serializeAws_json1_1AugmentedManifestsListItem = function (input, context) {
|
|
5536
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AnnotationDataS3Uri
|
|
5537
|
-
input.AnnotationDataS3Uri !== null && { AnnotationDataS3Uri: input.AnnotationDataS3Uri })), (input.AttributeNames !== undefined &&
|
|
5538
|
-
input.AttributeNames !== null && {
|
|
5536
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AnnotationDataS3Uri != null && { AnnotationDataS3Uri: input.AnnotationDataS3Uri })), (input.AttributeNames != null && {
|
|
5539
5537
|
AttributeNames: serializeAws_json1_1AttributeNamesList(input.AttributeNames, context),
|
|
5540
|
-
})), (input.DocumentType
|
|
5541
|
-
input.SourceDocumentsS3Uri !== null && { SourceDocumentsS3Uri: input.SourceDocumentsS3Uri })), (input.Split !== undefined && input.Split !== null && { Split: input.Split }));
|
|
5538
|
+
})), (input.DocumentType != null && { DocumentType: input.DocumentType })), (input.S3Uri != null && { S3Uri: input.S3Uri })), (input.SourceDocumentsS3Uri != null && { SourceDocumentsS3Uri: input.SourceDocumentsS3Uri })), (input.Split != null && { Split: input.Split }));
|
|
5542
5539
|
};
|
|
5543
5540
|
var serializeAws_json1_1BatchDetectDominantLanguageRequest = function (input, context) {
|
|
5544
|
-
return __assign({}, (input.TextList
|
|
5545
|
-
input.TextList !== null && { TextList: serializeAws_json1_1CustomerInputStringList(input.TextList, context) }));
|
|
5541
|
+
return __assign({}, (input.TextList != null && { TextList: serializeAws_json1_1CustomerInputStringList(input.TextList, context) }));
|
|
5546
5542
|
};
|
|
5547
5543
|
var serializeAws_json1_1BatchDetectEntitiesRequest = function (input, context) {
|
|
5548
|
-
return __assign(__assign({}, (input.LanguageCode
|
|
5549
|
-
input.TextList !== null && { TextList: serializeAws_json1_1CustomerInputStringList(input.TextList, context) }));
|
|
5544
|
+
return __assign(__assign({}, (input.LanguageCode != null && { LanguageCode: input.LanguageCode })), (input.TextList != null && { TextList: serializeAws_json1_1CustomerInputStringList(input.TextList, context) }));
|
|
5550
5545
|
};
|
|
5551
5546
|
var serializeAws_json1_1BatchDetectKeyPhrasesRequest = function (input, context) {
|
|
5552
|
-
return __assign(__assign({}, (input.LanguageCode
|
|
5553
|
-
input.TextList !== null && { TextList: serializeAws_json1_1CustomerInputStringList(input.TextList, context) }));
|
|
5547
|
+
return __assign(__assign({}, (input.LanguageCode != null && { LanguageCode: input.LanguageCode })), (input.TextList != null && { TextList: serializeAws_json1_1CustomerInputStringList(input.TextList, context) }));
|
|
5554
5548
|
};
|
|
5555
5549
|
var serializeAws_json1_1BatchDetectSentimentRequest = function (input, context) {
|
|
5556
|
-
return __assign(__assign({}, (input.LanguageCode
|
|
5557
|
-
input.TextList !== null && { TextList: serializeAws_json1_1CustomerInputStringList(input.TextList, context) }));
|
|
5550
|
+
return __assign(__assign({}, (input.LanguageCode != null && { LanguageCode: input.LanguageCode })), (input.TextList != null && { TextList: serializeAws_json1_1CustomerInputStringList(input.TextList, context) }));
|
|
5558
5551
|
};
|
|
5559
5552
|
var serializeAws_json1_1BatchDetectSyntaxRequest = function (input, context) {
|
|
5560
|
-
return __assign(__assign({}, (input.LanguageCode
|
|
5561
|
-
input.TextList !== null && { TextList: serializeAws_json1_1CustomerInputStringList(input.TextList, context) }));
|
|
5553
|
+
return __assign(__assign({}, (input.LanguageCode != null && { LanguageCode: input.LanguageCode })), (input.TextList != null && { TextList: serializeAws_json1_1CustomerInputStringList(input.TextList, context) }));
|
|
5562
5554
|
};
|
|
5563
5555
|
var serializeAws_json1_1ClassifyDocumentRequest = function (input, context) {
|
|
5564
|
-
return __assign(__assign({}, (input.EndpointArn
|
|
5556
|
+
return __assign(__assign({}, (input.EndpointArn != null && { EndpointArn: input.EndpointArn })), (input.Text != null && { Text: input.Text }));
|
|
5565
5557
|
};
|
|
5566
5558
|
var serializeAws_json1_1ContainsPiiEntitiesRequest = function (input, context) {
|
|
5567
|
-
return __assign(__assign({}, (input.LanguageCode
|
|
5559
|
+
return __assign(__assign({}, (input.LanguageCode != null && { LanguageCode: input.LanguageCode })), (input.Text != null && { Text: input.Text }));
|
|
5568
5560
|
};
|
|
5569
5561
|
var serializeAws_json1_1CreateDocumentClassifierRequest = function (input, context) {
|
|
5570
5562
|
var _a;
|
|
5571
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DataAccessRoleArn
|
|
5572
|
-
input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.DocumentClassifierName !== undefined &&
|
|
5573
|
-
input.DocumentClassifierName !== null && { DocumentClassifierName: input.DocumentClassifierName })), (input.InputDataConfig !== undefined &&
|
|
5574
|
-
input.InputDataConfig !== null && {
|
|
5563
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.DocumentClassifierName != null && { DocumentClassifierName: input.DocumentClassifierName })), (input.InputDataConfig != null && {
|
|
5575
5564
|
InputDataConfig: serializeAws_json1_1DocumentClassifierInputDataConfig(input.InputDataConfig, context),
|
|
5576
|
-
})), (input.LanguageCode
|
|
5577
|
-
input.OutputDataConfig !== null && {
|
|
5565
|
+
})), (input.LanguageCode != null && { LanguageCode: input.LanguageCode })), (input.Mode != null && { Mode: input.Mode })), (input.ModelKmsKeyId != null && { ModelKmsKeyId: input.ModelKmsKeyId })), (input.ModelPolicy != null && { ModelPolicy: input.ModelPolicy })), (input.OutputDataConfig != null && {
|
|
5578
5566
|
OutputDataConfig: serializeAws_json1_1DocumentClassifierOutputDataConfig(input.OutputDataConfig, context),
|
|
5579
|
-
})), (input.Tags
|
|
5580
|
-
input.VolumeKmsKeyId !== null && { VolumeKmsKeyId: input.VolumeKmsKeyId })), (input.VpcConfig !== undefined &&
|
|
5581
|
-
input.VpcConfig !== null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }));
|
|
5567
|
+
})), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) })), (input.VersionName != null && { VersionName: input.VersionName })), (input.VolumeKmsKeyId != null && { VolumeKmsKeyId: input.VolumeKmsKeyId })), (input.VpcConfig != null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }));
|
|
5582
5568
|
};
|
|
5583
5569
|
var serializeAws_json1_1CreateEndpointRequest = function (input, context) {
|
|
5584
5570
|
var _a;
|
|
5585
|
-
return __assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DataAccessRoleArn
|
|
5586
|
-
input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.DesiredInferenceUnits !== undefined &&
|
|
5587
|
-
input.DesiredInferenceUnits !== null && { DesiredInferenceUnits: input.DesiredInferenceUnits })), (input.EndpointName !== undefined && input.EndpointName !== null && { EndpointName: input.EndpointName })), (input.ModelArn !== undefined && input.ModelArn !== null && { ModelArn: input.ModelArn })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
|
|
5571
|
+
return __assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.DesiredInferenceUnits != null && { DesiredInferenceUnits: input.DesiredInferenceUnits })), (input.EndpointName != null && { EndpointName: input.EndpointName })), (input.ModelArn != null && { ModelArn: input.ModelArn })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
|
|
5588
5572
|
};
|
|
5589
5573
|
var serializeAws_json1_1CreateEntityRecognizerRequest = function (input, context) {
|
|
5590
5574
|
var _a;
|
|
5591
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DataAccessRoleArn
|
|
5592
|
-
input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.InputDataConfig !== undefined &&
|
|
5593
|
-
input.InputDataConfig !== null && {
|
|
5575
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.InputDataConfig != null && {
|
|
5594
5576
|
InputDataConfig: serializeAws_json1_1EntityRecognizerInputDataConfig(input.InputDataConfig, context),
|
|
5595
|
-
})), (input.LanguageCode
|
|
5596
|
-
input.RecognizerName !== null && { RecognizerName: input.RecognizerName })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) })), (input.VersionName !== undefined && input.VersionName !== null && { VersionName: input.VersionName })), (input.VolumeKmsKeyId !== undefined &&
|
|
5597
|
-
input.VolumeKmsKeyId !== null && { VolumeKmsKeyId: input.VolumeKmsKeyId })), (input.VpcConfig !== undefined &&
|
|
5598
|
-
input.VpcConfig !== null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }));
|
|
5577
|
+
})), (input.LanguageCode != null && { LanguageCode: input.LanguageCode })), (input.ModelKmsKeyId != null && { ModelKmsKeyId: input.ModelKmsKeyId })), (input.ModelPolicy != null && { ModelPolicy: input.ModelPolicy })), (input.RecognizerName != null && { RecognizerName: input.RecognizerName })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) })), (input.VersionName != null && { VersionName: input.VersionName })), (input.VolumeKmsKeyId != null && { VolumeKmsKeyId: input.VolumeKmsKeyId })), (input.VpcConfig != null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }));
|
|
5599
5578
|
};
|
|
5600
5579
|
var serializeAws_json1_1CustomerInputStringList = function (input, context) {
|
|
5601
5580
|
return input
|
|
@@ -5608,83 +5587,76 @@ var serializeAws_json1_1CustomerInputStringList = function (input, context) {
|
|
|
5608
5587
|
});
|
|
5609
5588
|
};
|
|
5610
5589
|
var serializeAws_json1_1DeleteDocumentClassifierRequest = function (input, context) {
|
|
5611
|
-
return __assign({}, (input.DocumentClassifierArn
|
|
5612
|
-
input.DocumentClassifierArn !== null && { DocumentClassifierArn: input.DocumentClassifierArn }));
|
|
5590
|
+
return __assign({}, (input.DocumentClassifierArn != null && { DocumentClassifierArn: input.DocumentClassifierArn }));
|
|
5613
5591
|
};
|
|
5614
5592
|
var serializeAws_json1_1DeleteEndpointRequest = function (input, context) {
|
|
5615
|
-
return __assign({}, (input.EndpointArn
|
|
5593
|
+
return __assign({}, (input.EndpointArn != null && { EndpointArn: input.EndpointArn }));
|
|
5616
5594
|
};
|
|
5617
5595
|
var serializeAws_json1_1DeleteEntityRecognizerRequest = function (input, context) {
|
|
5618
|
-
return __assign({}, (input.EntityRecognizerArn
|
|
5619
|
-
input.EntityRecognizerArn !== null && { EntityRecognizerArn: input.EntityRecognizerArn }));
|
|
5596
|
+
return __assign({}, (input.EntityRecognizerArn != null && { EntityRecognizerArn: input.EntityRecognizerArn }));
|
|
5620
5597
|
};
|
|
5621
5598
|
var serializeAws_json1_1DeleteResourcePolicyRequest = function (input, context) {
|
|
5622
|
-
return __assign(__assign({}, (input.PolicyRevisionId
|
|
5623
|
-
input.PolicyRevisionId !== null && { PolicyRevisionId: input.PolicyRevisionId })), (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }));
|
|
5599
|
+
return __assign(__assign({}, (input.PolicyRevisionId != null && { PolicyRevisionId: input.PolicyRevisionId })), (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
|
|
5624
5600
|
};
|
|
5625
5601
|
var serializeAws_json1_1DescribeDocumentClassificationJobRequest = function (input, context) {
|
|
5626
|
-
return __assign({}, (input.JobId
|
|
5602
|
+
return __assign({}, (input.JobId != null && { JobId: input.JobId }));
|
|
5627
5603
|
};
|
|
5628
5604
|
var serializeAws_json1_1DescribeDocumentClassifierRequest = function (input, context) {
|
|
5629
|
-
return __assign({}, (input.DocumentClassifierArn
|
|
5630
|
-
input.DocumentClassifierArn !== null && { DocumentClassifierArn: input.DocumentClassifierArn }));
|
|
5605
|
+
return __assign({}, (input.DocumentClassifierArn != null && { DocumentClassifierArn: input.DocumentClassifierArn }));
|
|
5631
5606
|
};
|
|
5632
5607
|
var serializeAws_json1_1DescribeDominantLanguageDetectionJobRequest = function (input, context) {
|
|
5633
|
-
return __assign({}, (input.JobId
|
|
5608
|
+
return __assign({}, (input.JobId != null && { JobId: input.JobId }));
|
|
5634
5609
|
};
|
|
5635
5610
|
var serializeAws_json1_1DescribeEndpointRequest = function (input, context) {
|
|
5636
|
-
return __assign({}, (input.EndpointArn
|
|
5611
|
+
return __assign({}, (input.EndpointArn != null && { EndpointArn: input.EndpointArn }));
|
|
5637
5612
|
};
|
|
5638
5613
|
var serializeAws_json1_1DescribeEntitiesDetectionJobRequest = function (input, context) {
|
|
5639
|
-
return __assign({}, (input.JobId
|
|
5614
|
+
return __assign({}, (input.JobId != null && { JobId: input.JobId }));
|
|
5640
5615
|
};
|
|
5641
5616
|
var serializeAws_json1_1DescribeEntityRecognizerRequest = function (input, context) {
|
|
5642
|
-
return __assign({}, (input.EntityRecognizerArn
|
|
5643
|
-
input.EntityRecognizerArn !== null && { EntityRecognizerArn: input.EntityRecognizerArn }));
|
|
5617
|
+
return __assign({}, (input.EntityRecognizerArn != null && { EntityRecognizerArn: input.EntityRecognizerArn }));
|
|
5644
5618
|
};
|
|
5645
5619
|
var serializeAws_json1_1DescribeEventsDetectionJobRequest = function (input, context) {
|
|
5646
|
-
return __assign({}, (input.JobId
|
|
5620
|
+
return __assign({}, (input.JobId != null && { JobId: input.JobId }));
|
|
5647
5621
|
};
|
|
5648
5622
|
var serializeAws_json1_1DescribeKeyPhrasesDetectionJobRequest = function (input, context) {
|
|
5649
|
-
return __assign({}, (input.JobId
|
|
5623
|
+
return __assign({}, (input.JobId != null && { JobId: input.JobId }));
|
|
5650
5624
|
};
|
|
5651
5625
|
var serializeAws_json1_1DescribePiiEntitiesDetectionJobRequest = function (input, context) {
|
|
5652
|
-
return __assign({}, (input.JobId
|
|
5626
|
+
return __assign({}, (input.JobId != null && { JobId: input.JobId }));
|
|
5653
5627
|
};
|
|
5654
5628
|
var serializeAws_json1_1DescribeResourcePolicyRequest = function (input, context) {
|
|
5655
|
-
return __assign({}, (input.ResourceArn
|
|
5629
|
+
return __assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
|
|
5656
5630
|
};
|
|
5657
5631
|
var serializeAws_json1_1DescribeSentimentDetectionJobRequest = function (input, context) {
|
|
5658
|
-
return __assign({}, (input.JobId
|
|
5632
|
+
return __assign({}, (input.JobId != null && { JobId: input.JobId }));
|
|
5659
5633
|
};
|
|
5660
5634
|
var serializeAws_json1_1DescribeTargetedSentimentDetectionJobRequest = function (input, context) {
|
|
5661
|
-
return __assign({}, (input.JobId
|
|
5635
|
+
return __assign({}, (input.JobId != null && { JobId: input.JobId }));
|
|
5662
5636
|
};
|
|
5663
5637
|
var serializeAws_json1_1DescribeTopicsDetectionJobRequest = function (input, context) {
|
|
5664
|
-
return __assign({}, (input.JobId
|
|
5638
|
+
return __assign({}, (input.JobId != null && { JobId: input.JobId }));
|
|
5665
5639
|
};
|
|
5666
5640
|
var serializeAws_json1_1DetectDominantLanguageRequest = function (input, context) {
|
|
5667
|
-
return __assign({}, (input.Text
|
|
5641
|
+
return __assign({}, (input.Text != null && { Text: input.Text }));
|
|
5668
5642
|
};
|
|
5669
5643
|
var serializeAws_json1_1DetectEntitiesRequest = function (input, context) {
|
|
5670
|
-
return __assign(__assign(__assign({}, (input.EndpointArn
|
|
5644
|
+
return __assign(__assign(__assign({}, (input.EndpointArn != null && { EndpointArn: input.EndpointArn })), (input.LanguageCode != null && { LanguageCode: input.LanguageCode })), (input.Text != null && { Text: input.Text }));
|
|
5671
5645
|
};
|
|
5672
5646
|
var serializeAws_json1_1DetectKeyPhrasesRequest = function (input, context) {
|
|
5673
|
-
return __assign(__assign({}, (input.LanguageCode
|
|
5647
|
+
return __assign(__assign({}, (input.LanguageCode != null && { LanguageCode: input.LanguageCode })), (input.Text != null && { Text: input.Text }));
|
|
5674
5648
|
};
|
|
5675
5649
|
var serializeAws_json1_1DetectPiiEntitiesRequest = function (input, context) {
|
|
5676
|
-
return __assign(__assign({}, (input.LanguageCode
|
|
5650
|
+
return __assign(__assign({}, (input.LanguageCode != null && { LanguageCode: input.LanguageCode })), (input.Text != null && { Text: input.Text }));
|
|
5677
5651
|
};
|
|
5678
5652
|
var serializeAws_json1_1DetectSentimentRequest = function (input, context) {
|
|
5679
|
-
return __assign(__assign({}, (input.LanguageCode
|
|
5653
|
+
return __assign(__assign({}, (input.LanguageCode != null && { LanguageCode: input.LanguageCode })), (input.Text != null && { Text: input.Text }));
|
|
5680
5654
|
};
|
|
5681
5655
|
var serializeAws_json1_1DetectSyntaxRequest = function (input, context) {
|
|
5682
|
-
return __assign(__assign({}, (input.LanguageCode
|
|
5656
|
+
return __assign(__assign({}, (input.LanguageCode != null && { LanguageCode: input.LanguageCode })), (input.Text != null && { Text: input.Text }));
|
|
5683
5657
|
};
|
|
5684
5658
|
var serializeAws_json1_1DocumentClassificationJobFilter = function (input, context) {
|
|
5685
|
-
return __assign(__assign(__assign(__assign({}, (input.JobName
|
|
5686
|
-
input.SubmitTimeAfter !== null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) })), (input.SubmitTimeBefore !== undefined &&
|
|
5687
|
-
input.SubmitTimeBefore !== null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }));
|
|
5659
|
+
return __assign(__assign(__assign(__assign({}, (input.JobName != null && { JobName: input.JobName })), (input.JobStatus != null && { JobStatus: input.JobStatus })), (input.SubmitTimeAfter != null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) })), (input.SubmitTimeBefore != null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }));
|
|
5688
5660
|
};
|
|
5689
5661
|
var serializeAws_json1_1DocumentClassifierAugmentedManifestsList = function (input, context) {
|
|
5690
5662
|
return input
|
|
@@ -5697,48 +5669,34 @@ var serializeAws_json1_1DocumentClassifierAugmentedManifestsList = function (inp
|
|
|
5697
5669
|
});
|
|
5698
5670
|
};
|
|
5699
5671
|
var serializeAws_json1_1DocumentClassifierFilter = function (input, context) {
|
|
5700
|
-
return __assign(__assign(__assign(__assign({}, (input.DocumentClassifierName
|
|
5701
|
-
input.DocumentClassifierName !== null && { DocumentClassifierName: input.DocumentClassifierName })), (input.Status !== undefined && input.Status !== null && { Status: input.Status })), (input.SubmitTimeAfter !== undefined &&
|
|
5702
|
-
input.SubmitTimeAfter !== null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) })), (input.SubmitTimeBefore !== undefined &&
|
|
5703
|
-
input.SubmitTimeBefore !== null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }));
|
|
5672
|
+
return __assign(__assign(__assign(__assign({}, (input.DocumentClassifierName != null && { DocumentClassifierName: input.DocumentClassifierName })), (input.Status != null && { Status: input.Status })), (input.SubmitTimeAfter != null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) })), (input.SubmitTimeBefore != null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }));
|
|
5704
5673
|
};
|
|
5705
5674
|
var serializeAws_json1_1DocumentClassifierInputDataConfig = function (input, context) {
|
|
5706
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.AugmentedManifests
|
|
5707
|
-
input.AugmentedManifests !== null && {
|
|
5675
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.AugmentedManifests != null && {
|
|
5708
5676
|
AugmentedManifests: serializeAws_json1_1DocumentClassifierAugmentedManifestsList(input.AugmentedManifests, context),
|
|
5709
|
-
})), (input.DataFormat
|
|
5710
|
-
input.LabelDelimiter !== null && { LabelDelimiter: input.LabelDelimiter })), (input.S3Uri !== undefined && input.S3Uri !== null && { S3Uri: input.S3Uri })), (input.TestS3Uri !== undefined && input.TestS3Uri !== null && { TestS3Uri: input.TestS3Uri }));
|
|
5677
|
+
})), (input.DataFormat != null && { DataFormat: input.DataFormat })), (input.LabelDelimiter != null && { LabelDelimiter: input.LabelDelimiter })), (input.S3Uri != null && { S3Uri: input.S3Uri })), (input.TestS3Uri != null && { TestS3Uri: input.TestS3Uri }));
|
|
5711
5678
|
};
|
|
5712
5679
|
var serializeAws_json1_1DocumentClassifierOutputDataConfig = function (input, context) {
|
|
5713
|
-
return __assign(__assign({}, (input.KmsKeyId
|
|
5680
|
+
return __assign(__assign({}, (input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId })), (input.S3Uri != null && { S3Uri: input.S3Uri }));
|
|
5714
5681
|
};
|
|
5715
5682
|
var serializeAws_json1_1DocumentReaderConfig = function (input, context) {
|
|
5716
|
-
return __assign(__assign(__assign({}, (input.DocumentReadAction
|
|
5717
|
-
input.DocumentReadAction !== null && { DocumentReadAction: input.DocumentReadAction })), (input.DocumentReadMode !== undefined &&
|
|
5718
|
-
input.DocumentReadMode !== null && { DocumentReadMode: input.DocumentReadMode })), (input.FeatureTypes !== undefined &&
|
|
5719
|
-
input.FeatureTypes !== null && {
|
|
5683
|
+
return __assign(__assign(__assign({}, (input.DocumentReadAction != null && { DocumentReadAction: input.DocumentReadAction })), (input.DocumentReadMode != null && { DocumentReadMode: input.DocumentReadMode })), (input.FeatureTypes != null && {
|
|
5720
5684
|
FeatureTypes: serializeAws_json1_1ListOfDocumentReadFeatureTypes(input.FeatureTypes, context),
|
|
5721
5685
|
}));
|
|
5722
5686
|
};
|
|
5723
5687
|
var serializeAws_json1_1DominantLanguageDetectionJobFilter = function (input, context) {
|
|
5724
|
-
return __assign(__assign(__assign(__assign({}, (input.JobName
|
|
5725
|
-
input.SubmitTimeAfter !== null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) })), (input.SubmitTimeBefore !== undefined &&
|
|
5726
|
-
input.SubmitTimeBefore !== null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }));
|
|
5688
|
+
return __assign(__assign(__assign(__assign({}, (input.JobName != null && { JobName: input.JobName })), (input.JobStatus != null && { JobStatus: input.JobStatus })), (input.SubmitTimeAfter != null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) })), (input.SubmitTimeBefore != null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }));
|
|
5727
5689
|
};
|
|
5728
5690
|
var serializeAws_json1_1EndpointFilter = function (input, context) {
|
|
5729
|
-
return __assign(__assign(__assign(__assign({}, (input.CreationTimeAfter
|
|
5730
|
-
input.CreationTimeAfter !== null && { CreationTimeAfter: Math.round(input.CreationTimeAfter.getTime() / 1000) })), (input.CreationTimeBefore !== undefined &&
|
|
5731
|
-
input.CreationTimeBefore !== null && {
|
|
5691
|
+
return __assign(__assign(__assign(__assign({}, (input.CreationTimeAfter != null && { CreationTimeAfter: Math.round(input.CreationTimeAfter.getTime() / 1000) })), (input.CreationTimeBefore != null && {
|
|
5732
5692
|
CreationTimeBefore: Math.round(input.CreationTimeBefore.getTime() / 1000),
|
|
5733
|
-
})), (input.ModelArn
|
|
5693
|
+
})), (input.ModelArn != null && { ModelArn: input.ModelArn })), (input.Status != null && { Status: input.Status }));
|
|
5734
5694
|
};
|
|
5735
5695
|
var serializeAws_json1_1EntitiesDetectionJobFilter = function (input, context) {
|
|
5736
|
-
return __assign(__assign(__assign(__assign({}, (input.JobName
|
|
5737
|
-
input.SubmitTimeAfter !== null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) })), (input.SubmitTimeBefore !== undefined &&
|
|
5738
|
-
input.SubmitTimeBefore !== null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }));
|
|
5696
|
+
return __assign(__assign(__assign(__assign({}, (input.JobName != null && { JobName: input.JobName })), (input.JobStatus != null && { JobStatus: input.JobStatus })), (input.SubmitTimeAfter != null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) })), (input.SubmitTimeBefore != null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }));
|
|
5739
5697
|
};
|
|
5740
5698
|
var serializeAws_json1_1EntityRecognizerAnnotations = function (input, context) {
|
|
5741
|
-
return __assign(__assign({}, (input.S3Uri
|
|
5699
|
+
return __assign(__assign({}, (input.S3Uri != null && { S3Uri: input.S3Uri })), (input.TestS3Uri != null && { TestS3Uri: input.TestS3Uri }));
|
|
5742
5700
|
};
|
|
5743
5701
|
var serializeAws_json1_1EntityRecognizerAugmentedManifestsList = function (input, context) {
|
|
5744
5702
|
return input
|
|
@@ -5751,32 +5709,24 @@ var serializeAws_json1_1EntityRecognizerAugmentedManifestsList = function (input
|
|
|
5751
5709
|
});
|
|
5752
5710
|
};
|
|
5753
5711
|
var serializeAws_json1_1EntityRecognizerDocuments = function (input, context) {
|
|
5754
|
-
return __assign(__assign(__assign({}, (input.InputFormat
|
|
5712
|
+
return __assign(__assign(__assign({}, (input.InputFormat != null && { InputFormat: input.InputFormat })), (input.S3Uri != null && { S3Uri: input.S3Uri })), (input.TestS3Uri != null && { TestS3Uri: input.TestS3Uri }));
|
|
5755
5713
|
};
|
|
5756
5714
|
var serializeAws_json1_1EntityRecognizerEntityList = function (input, context) {
|
|
5757
|
-
return __assign({}, (input.S3Uri
|
|
5715
|
+
return __assign({}, (input.S3Uri != null && { S3Uri: input.S3Uri }));
|
|
5758
5716
|
};
|
|
5759
5717
|
var serializeAws_json1_1EntityRecognizerFilter = function (input, context) {
|
|
5760
|
-
return __assign(__assign(__assign(__assign({}, (input.RecognizerName
|
|
5761
|
-
input.RecognizerName !== null && { RecognizerName: input.RecognizerName })), (input.Status !== undefined && input.Status !== null && { Status: input.Status })), (input.SubmitTimeAfter !== undefined &&
|
|
5762
|
-
input.SubmitTimeAfter !== null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) })), (input.SubmitTimeBefore !== undefined &&
|
|
5763
|
-
input.SubmitTimeBefore !== null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }));
|
|
5718
|
+
return __assign(__assign(__assign(__assign({}, (input.RecognizerName != null && { RecognizerName: input.RecognizerName })), (input.Status != null && { Status: input.Status })), (input.SubmitTimeAfter != null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) })), (input.SubmitTimeBefore != null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }));
|
|
5764
5719
|
};
|
|
5765
5720
|
var serializeAws_json1_1EntityRecognizerInputDataConfig = function (input, context) {
|
|
5766
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Annotations
|
|
5767
|
-
input.Annotations !== null && {
|
|
5721
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Annotations != null && {
|
|
5768
5722
|
Annotations: serializeAws_json1_1EntityRecognizerAnnotations(input.Annotations, context),
|
|
5769
|
-
})), (input.AugmentedManifests
|
|
5770
|
-
input.AugmentedManifests !== null && {
|
|
5723
|
+
})), (input.AugmentedManifests != null && {
|
|
5771
5724
|
AugmentedManifests: serializeAws_json1_1EntityRecognizerAugmentedManifestsList(input.AugmentedManifests, context),
|
|
5772
|
-
})), (input.DataFormat
|
|
5773
|
-
input.Documents !== null && {
|
|
5725
|
+
})), (input.DataFormat != null && { DataFormat: input.DataFormat })), (input.Documents != null && {
|
|
5774
5726
|
Documents: serializeAws_json1_1EntityRecognizerDocuments(input.Documents, context),
|
|
5775
|
-
})), (input.EntityList
|
|
5776
|
-
input.EntityList !== null && {
|
|
5727
|
+
})), (input.EntityList != null && {
|
|
5777
5728
|
EntityList: serializeAws_json1_1EntityRecognizerEntityList(input.EntityList, context),
|
|
5778
|
-
})), (input.EntityTypes
|
|
5779
|
-
input.EntityTypes !== null && { EntityTypes: serializeAws_json1_1EntityTypesList(input.EntityTypes, context) }));
|
|
5729
|
+
})), (input.EntityTypes != null && { EntityTypes: serializeAws_json1_1EntityTypesList(input.EntityTypes, context) }));
|
|
5780
5730
|
};
|
|
5781
5731
|
var serializeAws_json1_1EntityTypesList = function (input, context) {
|
|
5782
5732
|
return input
|
|
@@ -5789,68 +5739,53 @@ var serializeAws_json1_1EntityTypesList = function (input, context) {
|
|
|
5789
5739
|
});
|
|
5790
5740
|
};
|
|
5791
5741
|
var serializeAws_json1_1EntityTypesListItem = function (input, context) {
|
|
5792
|
-
return __assign({}, (input.Type
|
|
5742
|
+
return __assign({}, (input.Type != null && { Type: input.Type }));
|
|
5793
5743
|
};
|
|
5794
5744
|
var serializeAws_json1_1EventsDetectionJobFilter = function (input, context) {
|
|
5795
|
-
return __assign(__assign(__assign(__assign({}, (input.JobName
|
|
5796
|
-
input.SubmitTimeAfter !== null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) })), (input.SubmitTimeBefore !== undefined &&
|
|
5797
|
-
input.SubmitTimeBefore !== null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }));
|
|
5745
|
+
return __assign(__assign(__assign(__assign({}, (input.JobName != null && { JobName: input.JobName })), (input.JobStatus != null && { JobStatus: input.JobStatus })), (input.SubmitTimeAfter != null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) })), (input.SubmitTimeBefore != null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }));
|
|
5798
5746
|
};
|
|
5799
5747
|
var serializeAws_json1_1ImportModelRequest = function (input, context) {
|
|
5800
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DataAccessRoleArn
|
|
5801
|
-
input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.ModelKmsKeyId !== undefined && input.ModelKmsKeyId !== null && { ModelKmsKeyId: input.ModelKmsKeyId })), (input.ModelName !== undefined && input.ModelName !== null && { ModelName: input.ModelName })), (input.SourceModelArn !== undefined &&
|
|
5802
|
-
input.SourceModelArn !== null && { SourceModelArn: input.SourceModelArn })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) })), (input.VersionName !== undefined && input.VersionName !== null && { VersionName: input.VersionName }));
|
|
5748
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.ModelKmsKeyId != null && { ModelKmsKeyId: input.ModelKmsKeyId })), (input.ModelName != null && { ModelName: input.ModelName })), (input.SourceModelArn != null && { SourceModelArn: input.SourceModelArn })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) })), (input.VersionName != null && { VersionName: input.VersionName }));
|
|
5803
5749
|
};
|
|
5804
5750
|
var serializeAws_json1_1InputDataConfig = function (input, context) {
|
|
5805
|
-
return __assign(__assign(__assign({}, (input.DocumentReaderConfig
|
|
5806
|
-
input.DocumentReaderConfig !== null && {
|
|
5751
|
+
return __assign(__assign(__assign({}, (input.DocumentReaderConfig != null && {
|
|
5807
5752
|
DocumentReaderConfig: serializeAws_json1_1DocumentReaderConfig(input.DocumentReaderConfig, context),
|
|
5808
|
-
})), (input.InputFormat
|
|
5753
|
+
})), (input.InputFormat != null && { InputFormat: input.InputFormat })), (input.S3Uri != null && { S3Uri: input.S3Uri }));
|
|
5809
5754
|
};
|
|
5810
5755
|
var serializeAws_json1_1KeyPhrasesDetectionJobFilter = function (input, context) {
|
|
5811
|
-
return __assign(__assign(__assign(__assign({}, (input.JobName
|
|
5812
|
-
input.SubmitTimeAfter !== null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) })), (input.SubmitTimeBefore !== undefined &&
|
|
5813
|
-
input.SubmitTimeBefore !== null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }));
|
|
5756
|
+
return __assign(__assign(__assign(__assign({}, (input.JobName != null && { JobName: input.JobName })), (input.JobStatus != null && { JobStatus: input.JobStatus })), (input.SubmitTimeAfter != null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) })), (input.SubmitTimeBefore != null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }));
|
|
5814
5757
|
};
|
|
5815
5758
|
var serializeAws_json1_1ListDocumentClassificationJobsRequest = function (input, context) {
|
|
5816
|
-
return __assign(__assign(__assign({}, (input.Filter
|
|
5817
|
-
input.Filter !== null && { Filter: serializeAws_json1_1DocumentClassificationJobFilter(input.Filter, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
|
|
5759
|
+
return __assign(__assign(__assign({}, (input.Filter != null && { Filter: serializeAws_json1_1DocumentClassificationJobFilter(input.Filter, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5818
5760
|
};
|
|
5819
5761
|
var serializeAws_json1_1ListDocumentClassifiersRequest = function (input, context) {
|
|
5820
|
-
return __assign(__assign(__assign({}, (input.Filter
|
|
5821
|
-
input.Filter !== null && { Filter: serializeAws_json1_1DocumentClassifierFilter(input.Filter, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
|
|
5762
|
+
return __assign(__assign(__assign({}, (input.Filter != null && { Filter: serializeAws_json1_1DocumentClassifierFilter(input.Filter, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5822
5763
|
};
|
|
5823
5764
|
var serializeAws_json1_1ListDocumentClassifierSummariesRequest = function (input, context) {
|
|
5824
|
-
return __assign(__assign({}, (input.MaxResults
|
|
5765
|
+
return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5825
5766
|
};
|
|
5826
5767
|
var serializeAws_json1_1ListDominantLanguageDetectionJobsRequest = function (input, context) {
|
|
5827
|
-
return __assign(__assign(__assign({}, (input.Filter
|
|
5828
|
-
input.Filter !== null && {
|
|
5768
|
+
return __assign(__assign(__assign({}, (input.Filter != null && {
|
|
5829
5769
|
Filter: serializeAws_json1_1DominantLanguageDetectionJobFilter(input.Filter, context),
|
|
5830
|
-
})), (input.MaxResults
|
|
5770
|
+
})), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5831
5771
|
};
|
|
5832
5772
|
var serializeAws_json1_1ListEndpointsRequest = function (input, context) {
|
|
5833
|
-
return __assign(__assign(__assign({}, (input.Filter
|
|
5834
|
-
input.Filter !== null && { Filter: serializeAws_json1_1EndpointFilter(input.Filter, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
|
|
5773
|
+
return __assign(__assign(__assign({}, (input.Filter != null && { Filter: serializeAws_json1_1EndpointFilter(input.Filter, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5835
5774
|
};
|
|
5836
5775
|
var serializeAws_json1_1ListEntitiesDetectionJobsRequest = function (input, context) {
|
|
5837
|
-
return __assign(__assign(__assign({}, (input.Filter
|
|
5838
|
-
input.Filter !== null && { Filter: serializeAws_json1_1EntitiesDetectionJobFilter(input.Filter, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
|
|
5776
|
+
return __assign(__assign(__assign({}, (input.Filter != null && { Filter: serializeAws_json1_1EntitiesDetectionJobFilter(input.Filter, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5839
5777
|
};
|
|
5840
5778
|
var serializeAws_json1_1ListEntityRecognizersRequest = function (input, context) {
|
|
5841
|
-
return __assign(__assign(__assign({}, (input.Filter
|
|
5842
|
-
input.Filter !== null && { Filter: serializeAws_json1_1EntityRecognizerFilter(input.Filter, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
|
|
5779
|
+
return __assign(__assign(__assign({}, (input.Filter != null && { Filter: serializeAws_json1_1EntityRecognizerFilter(input.Filter, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5843
5780
|
};
|
|
5844
5781
|
var serializeAws_json1_1ListEntityRecognizerSummariesRequest = function (input, context) {
|
|
5845
|
-
return __assign(__assign({}, (input.MaxResults
|
|
5782
|
+
return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5846
5783
|
};
|
|
5847
5784
|
var serializeAws_json1_1ListEventsDetectionJobsRequest = function (input, context) {
|
|
5848
|
-
return __assign(__assign(__assign({}, (input.Filter
|
|
5849
|
-
input.Filter !== null && { Filter: serializeAws_json1_1EventsDetectionJobFilter(input.Filter, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
|
|
5785
|
+
return __assign(__assign(__assign({}, (input.Filter != null && { Filter: serializeAws_json1_1EventsDetectionJobFilter(input.Filter, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5850
5786
|
};
|
|
5851
5787
|
var serializeAws_json1_1ListKeyPhrasesDetectionJobsRequest = function (input, context) {
|
|
5852
|
-
return __assign(__assign(__assign({}, (input.Filter
|
|
5853
|
-
input.Filter !== null && { Filter: serializeAws_json1_1KeyPhrasesDetectionJobFilter(input.Filter, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
|
|
5788
|
+
return __assign(__assign(__assign({}, (input.Filter != null && { Filter: serializeAws_json1_1KeyPhrasesDetectionJobFilter(input.Filter, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5854
5789
|
};
|
|
5855
5790
|
var serializeAws_json1_1ListOfDocumentReadFeatureTypes = function (input, context) {
|
|
5856
5791
|
return input
|
|
@@ -5873,42 +5808,33 @@ var serializeAws_json1_1ListOfPiiEntityTypes = function (input, context) {
|
|
|
5873
5808
|
});
|
|
5874
5809
|
};
|
|
5875
5810
|
var serializeAws_json1_1ListPiiEntitiesDetectionJobsRequest = function (input, context) {
|
|
5876
|
-
return __assign(__assign(__assign({}, (input.Filter
|
|
5877
|
-
input.Filter !== null && { Filter: serializeAws_json1_1PiiEntitiesDetectionJobFilter(input.Filter, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
|
|
5811
|
+
return __assign(__assign(__assign({}, (input.Filter != null && { Filter: serializeAws_json1_1PiiEntitiesDetectionJobFilter(input.Filter, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5878
5812
|
};
|
|
5879
5813
|
var serializeAws_json1_1ListSentimentDetectionJobsRequest = function (input, context) {
|
|
5880
|
-
return __assign(__assign(__assign({}, (input.Filter
|
|
5881
|
-
input.Filter !== null && { Filter: serializeAws_json1_1SentimentDetectionJobFilter(input.Filter, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
|
|
5814
|
+
return __assign(__assign(__assign({}, (input.Filter != null && { Filter: serializeAws_json1_1SentimentDetectionJobFilter(input.Filter, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5882
5815
|
};
|
|
5883
5816
|
var serializeAws_json1_1ListTagsForResourceRequest = function (input, context) {
|
|
5884
|
-
return __assign({}, (input.ResourceArn
|
|
5817
|
+
return __assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
|
|
5885
5818
|
};
|
|
5886
5819
|
var serializeAws_json1_1ListTargetedSentimentDetectionJobsRequest = function (input, context) {
|
|
5887
|
-
return __assign(__assign(__assign({}, (input.Filter
|
|
5888
|
-
input.Filter !== null && {
|
|
5820
|
+
return __assign(__assign(__assign({}, (input.Filter != null && {
|
|
5889
5821
|
Filter: serializeAws_json1_1TargetedSentimentDetectionJobFilter(input.Filter, context),
|
|
5890
|
-
})), (input.MaxResults
|
|
5822
|
+
})), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5891
5823
|
};
|
|
5892
5824
|
var serializeAws_json1_1ListTopicsDetectionJobsRequest = function (input, context) {
|
|
5893
|
-
return __assign(__assign(__assign({}, (input.Filter
|
|
5894
|
-
input.Filter !== null && { Filter: serializeAws_json1_1TopicsDetectionJobFilter(input.Filter, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
|
|
5825
|
+
return __assign(__assign(__assign({}, (input.Filter != null && { Filter: serializeAws_json1_1TopicsDetectionJobFilter(input.Filter, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5895
5826
|
};
|
|
5896
5827
|
var serializeAws_json1_1OutputDataConfig = function (input, context) {
|
|
5897
|
-
return __assign(__assign({}, (input.KmsKeyId
|
|
5828
|
+
return __assign(__assign({}, (input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId })), (input.S3Uri != null && { S3Uri: input.S3Uri }));
|
|
5898
5829
|
};
|
|
5899
5830
|
var serializeAws_json1_1PiiEntitiesDetectionJobFilter = function (input, context) {
|
|
5900
|
-
return __assign(__assign(__assign(__assign({}, (input.JobName
|
|
5901
|
-
input.SubmitTimeAfter !== null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) })), (input.SubmitTimeBefore !== undefined &&
|
|
5902
|
-
input.SubmitTimeBefore !== null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }));
|
|
5831
|
+
return __assign(__assign(__assign(__assign({}, (input.JobName != null && { JobName: input.JobName })), (input.JobStatus != null && { JobStatus: input.JobStatus })), (input.SubmitTimeAfter != null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) })), (input.SubmitTimeBefore != null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }));
|
|
5903
5832
|
};
|
|
5904
5833
|
var serializeAws_json1_1PutResourcePolicyRequest = function (input, context) {
|
|
5905
|
-
return __assign(__assign(__assign({}, (input.PolicyRevisionId
|
|
5906
|
-
input.PolicyRevisionId !== null && { PolicyRevisionId: input.PolicyRevisionId })), (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn })), (input.ResourcePolicy !== undefined &&
|
|
5907
|
-
input.ResourcePolicy !== null && { ResourcePolicy: input.ResourcePolicy }));
|
|
5834
|
+
return __assign(__assign(__assign({}, (input.PolicyRevisionId != null && { PolicyRevisionId: input.PolicyRevisionId })), (input.ResourceArn != null && { ResourceArn: input.ResourceArn })), (input.ResourcePolicy != null && { ResourcePolicy: input.ResourcePolicy }));
|
|
5908
5835
|
};
|
|
5909
5836
|
var serializeAws_json1_1RedactionConfig = function (input, context) {
|
|
5910
|
-
return __assign(__assign(__assign({}, (input.MaskCharacter
|
|
5911
|
-
input.PiiEntityTypes !== null && {
|
|
5837
|
+
return __assign(__assign(__assign({}, (input.MaskCharacter != null && { MaskCharacter: input.MaskCharacter })), (input.MaskMode != null && { MaskMode: input.MaskMode })), (input.PiiEntityTypes != null && {
|
|
5912
5838
|
PiiEntityTypes: serializeAws_json1_1ListOfPiiEntityTypes(input.PiiEntityTypes, context),
|
|
5913
5839
|
}));
|
|
5914
5840
|
};
|
|
@@ -5923,160 +5849,110 @@ var serializeAws_json1_1SecurityGroupIds = function (input, context) {
|
|
|
5923
5849
|
});
|
|
5924
5850
|
};
|
|
5925
5851
|
var serializeAws_json1_1SentimentDetectionJobFilter = function (input, context) {
|
|
5926
|
-
return __assign(__assign(__assign(__assign({}, (input.JobName
|
|
5927
|
-
input.SubmitTimeAfter !== null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) })), (input.SubmitTimeBefore !== undefined &&
|
|
5928
|
-
input.SubmitTimeBefore !== null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }));
|
|
5852
|
+
return __assign(__assign(__assign(__assign({}, (input.JobName != null && { JobName: input.JobName })), (input.JobStatus != null && { JobStatus: input.JobStatus })), (input.SubmitTimeAfter != null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) })), (input.SubmitTimeBefore != null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }));
|
|
5929
5853
|
};
|
|
5930
5854
|
var serializeAws_json1_1StartDocumentClassificationJobRequest = function (input, context) {
|
|
5931
5855
|
var _a;
|
|
5932
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DataAccessRoleArn
|
|
5933
|
-
input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.DocumentClassifierArn !== undefined &&
|
|
5934
|
-
input.DocumentClassifierArn !== null && { DocumentClassifierArn: input.DocumentClassifierArn })), (input.InputDataConfig !== undefined &&
|
|
5935
|
-
input.InputDataConfig !== null && {
|
|
5856
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.DocumentClassifierArn != null && { DocumentClassifierArn: input.DocumentClassifierArn })), (input.InputDataConfig != null && {
|
|
5936
5857
|
InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context),
|
|
5937
|
-
})), (input.JobName
|
|
5938
|
-
input.OutputDataConfig !== null && {
|
|
5858
|
+
})), (input.JobName != null && { JobName: input.JobName })), (input.OutputDataConfig != null && {
|
|
5939
5859
|
OutputDataConfig: serializeAws_json1_1OutputDataConfig(input.OutputDataConfig, context),
|
|
5940
|
-
})), (input.Tags
|
|
5941
|
-
input.VolumeKmsKeyId !== null && { VolumeKmsKeyId: input.VolumeKmsKeyId })), (input.VpcConfig !== undefined &&
|
|
5942
|
-
input.VpcConfig !== null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }));
|
|
5860
|
+
})), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) })), (input.VolumeKmsKeyId != null && { VolumeKmsKeyId: input.VolumeKmsKeyId })), (input.VpcConfig != null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }));
|
|
5943
5861
|
};
|
|
5944
5862
|
var serializeAws_json1_1StartDominantLanguageDetectionJobRequest = function (input, context) {
|
|
5945
5863
|
var _a;
|
|
5946
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DataAccessRoleArn
|
|
5947
|
-
input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.InputDataConfig !== undefined &&
|
|
5948
|
-
input.InputDataConfig !== null && {
|
|
5864
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.InputDataConfig != null && {
|
|
5949
5865
|
InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context),
|
|
5950
|
-
})), (input.JobName
|
|
5951
|
-
input.OutputDataConfig !== null && {
|
|
5866
|
+
})), (input.JobName != null && { JobName: input.JobName })), (input.OutputDataConfig != null && {
|
|
5952
5867
|
OutputDataConfig: serializeAws_json1_1OutputDataConfig(input.OutputDataConfig, context),
|
|
5953
|
-
})), (input.Tags
|
|
5954
|
-
input.VolumeKmsKeyId !== null && { VolumeKmsKeyId: input.VolumeKmsKeyId })), (input.VpcConfig !== undefined &&
|
|
5955
|
-
input.VpcConfig !== null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }));
|
|
5868
|
+
})), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) })), (input.VolumeKmsKeyId != null && { VolumeKmsKeyId: input.VolumeKmsKeyId })), (input.VpcConfig != null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }));
|
|
5956
5869
|
};
|
|
5957
5870
|
var serializeAws_json1_1StartEntitiesDetectionJobRequest = function (input, context) {
|
|
5958
5871
|
var _a;
|
|
5959
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DataAccessRoleArn
|
|
5960
|
-
input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.EntityRecognizerArn !== undefined &&
|
|
5961
|
-
input.EntityRecognizerArn !== null && { EntityRecognizerArn: input.EntityRecognizerArn })), (input.InputDataConfig !== undefined &&
|
|
5962
|
-
input.InputDataConfig !== null && {
|
|
5872
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.EntityRecognizerArn != null && { EntityRecognizerArn: input.EntityRecognizerArn })), (input.InputDataConfig != null && {
|
|
5963
5873
|
InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context),
|
|
5964
|
-
})), (input.JobName
|
|
5965
|
-
input.OutputDataConfig !== null && {
|
|
5874
|
+
})), (input.JobName != null && { JobName: input.JobName })), (input.LanguageCode != null && { LanguageCode: input.LanguageCode })), (input.OutputDataConfig != null && {
|
|
5966
5875
|
OutputDataConfig: serializeAws_json1_1OutputDataConfig(input.OutputDataConfig, context),
|
|
5967
|
-
})), (input.Tags
|
|
5968
|
-
input.VolumeKmsKeyId !== null && { VolumeKmsKeyId: input.VolumeKmsKeyId })), (input.VpcConfig !== undefined &&
|
|
5969
|
-
input.VpcConfig !== null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }));
|
|
5876
|
+
})), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) })), (input.VolumeKmsKeyId != null && { VolumeKmsKeyId: input.VolumeKmsKeyId })), (input.VpcConfig != null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }));
|
|
5970
5877
|
};
|
|
5971
5878
|
var serializeAws_json1_1StartEventsDetectionJobRequest = function (input, context) {
|
|
5972
5879
|
var _a;
|
|
5973
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DataAccessRoleArn
|
|
5974
|
-
input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.InputDataConfig !== undefined &&
|
|
5975
|
-
input.InputDataConfig !== null && {
|
|
5880
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.InputDataConfig != null && {
|
|
5976
5881
|
InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context),
|
|
5977
|
-
})), (input.JobName
|
|
5978
|
-
input.OutputDataConfig !== null && {
|
|
5882
|
+
})), (input.JobName != null && { JobName: input.JobName })), (input.LanguageCode != null && { LanguageCode: input.LanguageCode })), (input.OutputDataConfig != null && {
|
|
5979
5883
|
OutputDataConfig: serializeAws_json1_1OutputDataConfig(input.OutputDataConfig, context),
|
|
5980
|
-
})), (input.Tags
|
|
5981
|
-
input.TargetEventTypes !== null && {
|
|
5884
|
+
})), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) })), (input.TargetEventTypes != null && {
|
|
5982
5885
|
TargetEventTypes: serializeAws_json1_1TargetEventTypes(input.TargetEventTypes, context),
|
|
5983
5886
|
}));
|
|
5984
5887
|
};
|
|
5985
5888
|
var serializeAws_json1_1StartKeyPhrasesDetectionJobRequest = function (input, context) {
|
|
5986
5889
|
var _a;
|
|
5987
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DataAccessRoleArn
|
|
5988
|
-
input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.InputDataConfig !== undefined &&
|
|
5989
|
-
input.InputDataConfig !== null && {
|
|
5890
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.InputDataConfig != null && {
|
|
5990
5891
|
InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context),
|
|
5991
|
-
})), (input.JobName
|
|
5992
|
-
input.OutputDataConfig !== null && {
|
|
5892
|
+
})), (input.JobName != null && { JobName: input.JobName })), (input.LanguageCode != null && { LanguageCode: input.LanguageCode })), (input.OutputDataConfig != null && {
|
|
5993
5893
|
OutputDataConfig: serializeAws_json1_1OutputDataConfig(input.OutputDataConfig, context),
|
|
5994
|
-
})), (input.Tags
|
|
5995
|
-
input.VolumeKmsKeyId !== null && { VolumeKmsKeyId: input.VolumeKmsKeyId })), (input.VpcConfig !== undefined &&
|
|
5996
|
-
input.VpcConfig !== null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }));
|
|
5894
|
+
})), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) })), (input.VolumeKmsKeyId != null && { VolumeKmsKeyId: input.VolumeKmsKeyId })), (input.VpcConfig != null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }));
|
|
5997
5895
|
};
|
|
5998
5896
|
var serializeAws_json1_1StartPiiEntitiesDetectionJobRequest = function (input, context) {
|
|
5999
5897
|
var _a;
|
|
6000
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DataAccessRoleArn
|
|
6001
|
-
input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.InputDataConfig !== undefined &&
|
|
6002
|
-
input.InputDataConfig !== null && {
|
|
5898
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.InputDataConfig != null && {
|
|
6003
5899
|
InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context),
|
|
6004
|
-
})), (input.JobName
|
|
6005
|
-
input.OutputDataConfig !== null && {
|
|
5900
|
+
})), (input.JobName != null && { JobName: input.JobName })), (input.LanguageCode != null && { LanguageCode: input.LanguageCode })), (input.Mode != null && { Mode: input.Mode })), (input.OutputDataConfig != null && {
|
|
6006
5901
|
OutputDataConfig: serializeAws_json1_1OutputDataConfig(input.OutputDataConfig, context),
|
|
6007
|
-
})), (input.RedactionConfig
|
|
6008
|
-
input.RedactionConfig !== null && {
|
|
5902
|
+
})), (input.RedactionConfig != null && {
|
|
6009
5903
|
RedactionConfig: serializeAws_json1_1RedactionConfig(input.RedactionConfig, context),
|
|
6010
|
-
})), (input.Tags
|
|
5904
|
+
})), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
|
|
6011
5905
|
};
|
|
6012
5906
|
var serializeAws_json1_1StartSentimentDetectionJobRequest = function (input, context) {
|
|
6013
5907
|
var _a;
|
|
6014
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DataAccessRoleArn
|
|
6015
|
-
input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.InputDataConfig !== undefined &&
|
|
6016
|
-
input.InputDataConfig !== null && {
|
|
5908
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.InputDataConfig != null && {
|
|
6017
5909
|
InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context),
|
|
6018
|
-
})), (input.JobName
|
|
6019
|
-
input.OutputDataConfig !== null && {
|
|
5910
|
+
})), (input.JobName != null && { JobName: input.JobName })), (input.LanguageCode != null && { LanguageCode: input.LanguageCode })), (input.OutputDataConfig != null && {
|
|
6020
5911
|
OutputDataConfig: serializeAws_json1_1OutputDataConfig(input.OutputDataConfig, context),
|
|
6021
|
-
})), (input.Tags
|
|
6022
|
-
input.VolumeKmsKeyId !== null && { VolumeKmsKeyId: input.VolumeKmsKeyId })), (input.VpcConfig !== undefined &&
|
|
6023
|
-
input.VpcConfig !== null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }));
|
|
5912
|
+
})), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) })), (input.VolumeKmsKeyId != null && { VolumeKmsKeyId: input.VolumeKmsKeyId })), (input.VpcConfig != null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }));
|
|
6024
5913
|
};
|
|
6025
5914
|
var serializeAws_json1_1StartTargetedSentimentDetectionJobRequest = function (input, context) {
|
|
6026
5915
|
var _a;
|
|
6027
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DataAccessRoleArn
|
|
6028
|
-
input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.InputDataConfig !== undefined &&
|
|
6029
|
-
input.InputDataConfig !== null && {
|
|
5916
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.InputDataConfig != null && {
|
|
6030
5917
|
InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context),
|
|
6031
|
-
})), (input.JobName
|
|
6032
|
-
input.OutputDataConfig !== null && {
|
|
5918
|
+
})), (input.JobName != null && { JobName: input.JobName })), (input.LanguageCode != null && { LanguageCode: input.LanguageCode })), (input.OutputDataConfig != null && {
|
|
6033
5919
|
OutputDataConfig: serializeAws_json1_1OutputDataConfig(input.OutputDataConfig, context),
|
|
6034
|
-
})), (input.Tags
|
|
6035
|
-
input.VolumeKmsKeyId !== null && { VolumeKmsKeyId: input.VolumeKmsKeyId })), (input.VpcConfig !== undefined &&
|
|
6036
|
-
input.VpcConfig !== null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }));
|
|
5920
|
+
})), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) })), (input.VolumeKmsKeyId != null && { VolumeKmsKeyId: input.VolumeKmsKeyId })), (input.VpcConfig != null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }));
|
|
6037
5921
|
};
|
|
6038
5922
|
var serializeAws_json1_1StartTopicsDetectionJobRequest = function (input, context) {
|
|
6039
5923
|
var _a;
|
|
6040
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DataAccessRoleArn
|
|
6041
|
-
input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.InputDataConfig !== undefined &&
|
|
6042
|
-
input.InputDataConfig !== null && {
|
|
5924
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.InputDataConfig != null && {
|
|
6043
5925
|
InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context),
|
|
6044
|
-
})), (input.JobName
|
|
6045
|
-
input.NumberOfTopics !== null && { NumberOfTopics: input.NumberOfTopics })), (input.OutputDataConfig !== undefined &&
|
|
6046
|
-
input.OutputDataConfig !== null && {
|
|
5926
|
+
})), (input.JobName != null && { JobName: input.JobName })), (input.NumberOfTopics != null && { NumberOfTopics: input.NumberOfTopics })), (input.OutputDataConfig != null && {
|
|
6047
5927
|
OutputDataConfig: serializeAws_json1_1OutputDataConfig(input.OutputDataConfig, context),
|
|
6048
|
-
})), (input.Tags
|
|
6049
|
-
input.VolumeKmsKeyId !== null && { VolumeKmsKeyId: input.VolumeKmsKeyId })), (input.VpcConfig !== undefined &&
|
|
6050
|
-
input.VpcConfig !== null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }));
|
|
5928
|
+
})), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) })), (input.VolumeKmsKeyId != null && { VolumeKmsKeyId: input.VolumeKmsKeyId })), (input.VpcConfig != null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }));
|
|
6051
5929
|
};
|
|
6052
5930
|
var serializeAws_json1_1StopDominantLanguageDetectionJobRequest = function (input, context) {
|
|
6053
|
-
return __assign({}, (input.JobId
|
|
5931
|
+
return __assign({}, (input.JobId != null && { JobId: input.JobId }));
|
|
6054
5932
|
};
|
|
6055
5933
|
var serializeAws_json1_1StopEntitiesDetectionJobRequest = function (input, context) {
|
|
6056
|
-
return __assign({}, (input.JobId
|
|
5934
|
+
return __assign({}, (input.JobId != null && { JobId: input.JobId }));
|
|
6057
5935
|
};
|
|
6058
5936
|
var serializeAws_json1_1StopEventsDetectionJobRequest = function (input, context) {
|
|
6059
|
-
return __assign({}, (input.JobId
|
|
5937
|
+
return __assign({}, (input.JobId != null && { JobId: input.JobId }));
|
|
6060
5938
|
};
|
|
6061
5939
|
var serializeAws_json1_1StopKeyPhrasesDetectionJobRequest = function (input, context) {
|
|
6062
|
-
return __assign({}, (input.JobId
|
|
5940
|
+
return __assign({}, (input.JobId != null && { JobId: input.JobId }));
|
|
6063
5941
|
};
|
|
6064
5942
|
var serializeAws_json1_1StopPiiEntitiesDetectionJobRequest = function (input, context) {
|
|
6065
|
-
return __assign({}, (input.JobId
|
|
5943
|
+
return __assign({}, (input.JobId != null && { JobId: input.JobId }));
|
|
6066
5944
|
};
|
|
6067
5945
|
var serializeAws_json1_1StopSentimentDetectionJobRequest = function (input, context) {
|
|
6068
|
-
return __assign({}, (input.JobId
|
|
5946
|
+
return __assign({}, (input.JobId != null && { JobId: input.JobId }));
|
|
6069
5947
|
};
|
|
6070
5948
|
var serializeAws_json1_1StopTargetedSentimentDetectionJobRequest = function (input, context) {
|
|
6071
|
-
return __assign({}, (input.JobId
|
|
5949
|
+
return __assign({}, (input.JobId != null && { JobId: input.JobId }));
|
|
6072
5950
|
};
|
|
6073
5951
|
var serializeAws_json1_1StopTrainingDocumentClassifierRequest = function (input, context) {
|
|
6074
|
-
return __assign({}, (input.DocumentClassifierArn
|
|
6075
|
-
input.DocumentClassifierArn !== null && { DocumentClassifierArn: input.DocumentClassifierArn }));
|
|
5952
|
+
return __assign({}, (input.DocumentClassifierArn != null && { DocumentClassifierArn: input.DocumentClassifierArn }));
|
|
6076
5953
|
};
|
|
6077
5954
|
var serializeAws_json1_1StopTrainingEntityRecognizerRequest = function (input, context) {
|
|
6078
|
-
return __assign({}, (input.EntityRecognizerArn
|
|
6079
|
-
input.EntityRecognizerArn !== null && { EntityRecognizerArn: input.EntityRecognizerArn }));
|
|
5955
|
+
return __assign({}, (input.EntityRecognizerArn != null && { EntityRecognizerArn: input.EntityRecognizerArn }));
|
|
6080
5956
|
};
|
|
6081
5957
|
var serializeAws_json1_1Subnets = function (input, context) {
|
|
6082
5958
|
return input
|
|
@@ -6089,7 +5965,7 @@ var serializeAws_json1_1Subnets = function (input, context) {
|
|
|
6089
5965
|
});
|
|
6090
5966
|
};
|
|
6091
5967
|
var serializeAws_json1_1Tag = function (input, context) {
|
|
6092
|
-
return __assign(__assign({}, (input.Key
|
|
5968
|
+
return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
|
|
6093
5969
|
};
|
|
6094
5970
|
var serializeAws_json1_1TagKeyList = function (input, context) {
|
|
6095
5971
|
return input
|
|
@@ -6112,12 +5988,10 @@ var serializeAws_json1_1TagList = function (input, context) {
|
|
|
6112
5988
|
});
|
|
6113
5989
|
};
|
|
6114
5990
|
var serializeAws_json1_1TagResourceRequest = function (input, context) {
|
|
6115
|
-
return __assign(__assign({}, (input.ResourceArn
|
|
5991
|
+
return __assign(__assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
|
|
6116
5992
|
};
|
|
6117
5993
|
var serializeAws_json1_1TargetedSentimentDetectionJobFilter = function (input, context) {
|
|
6118
|
-
return __assign(__assign(__assign(__assign({}, (input.JobName
|
|
6119
|
-
input.SubmitTimeAfter !== null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) })), (input.SubmitTimeBefore !== undefined &&
|
|
6120
|
-
input.SubmitTimeBefore !== null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }));
|
|
5994
|
+
return __assign(__assign(__assign(__assign({}, (input.JobName != null && { JobName: input.JobName })), (input.JobStatus != null && { JobStatus: input.JobStatus })), (input.SubmitTimeAfter != null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) })), (input.SubmitTimeBefore != null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }));
|
|
6121
5995
|
};
|
|
6122
5996
|
var serializeAws_json1_1TargetEventTypes = function (input, context) {
|
|
6123
5997
|
return input
|
|
@@ -6130,26 +6004,18 @@ var serializeAws_json1_1TargetEventTypes = function (input, context) {
|
|
|
6130
6004
|
});
|
|
6131
6005
|
};
|
|
6132
6006
|
var serializeAws_json1_1TopicsDetectionJobFilter = function (input, context) {
|
|
6133
|
-
return __assign(__assign(__assign(__assign({}, (input.JobName
|
|
6134
|
-
input.SubmitTimeAfter !== null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) })), (input.SubmitTimeBefore !== undefined &&
|
|
6135
|
-
input.SubmitTimeBefore !== null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }));
|
|
6007
|
+
return __assign(__assign(__assign(__assign({}, (input.JobName != null && { JobName: input.JobName })), (input.JobStatus != null && { JobStatus: input.JobStatus })), (input.SubmitTimeAfter != null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) })), (input.SubmitTimeBefore != null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }));
|
|
6136
6008
|
};
|
|
6137
6009
|
var serializeAws_json1_1UntagResourceRequest = function (input, context) {
|
|
6138
|
-
return __assign(__assign({}, (input.ResourceArn
|
|
6139
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }));
|
|
6010
|
+
return __assign(__assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn })), (input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }));
|
|
6140
6011
|
};
|
|
6141
6012
|
var serializeAws_json1_1UpdateEndpointRequest = function (input, context) {
|
|
6142
|
-
return __assign(__assign(__assign(__assign({}, (input.DesiredDataAccessRoleArn
|
|
6143
|
-
input.DesiredDataAccessRoleArn !== null && { DesiredDataAccessRoleArn: input.DesiredDataAccessRoleArn })), (input.DesiredInferenceUnits !== undefined &&
|
|
6144
|
-
input.DesiredInferenceUnits !== null && { DesiredInferenceUnits: input.DesiredInferenceUnits })), (input.DesiredModelArn !== undefined &&
|
|
6145
|
-
input.DesiredModelArn !== null && { DesiredModelArn: input.DesiredModelArn })), (input.EndpointArn !== undefined && input.EndpointArn !== null && { EndpointArn: input.EndpointArn }));
|
|
6013
|
+
return __assign(__assign(__assign(__assign({}, (input.DesiredDataAccessRoleArn != null && { DesiredDataAccessRoleArn: input.DesiredDataAccessRoleArn })), (input.DesiredInferenceUnits != null && { DesiredInferenceUnits: input.DesiredInferenceUnits })), (input.DesiredModelArn != null && { DesiredModelArn: input.DesiredModelArn })), (input.EndpointArn != null && { EndpointArn: input.EndpointArn }));
|
|
6146
6014
|
};
|
|
6147
6015
|
var serializeAws_json1_1VpcConfig = function (input, context) {
|
|
6148
|
-
return __assign(__assign({}, (input.SecurityGroupIds
|
|
6149
|
-
input.SecurityGroupIds !== null && {
|
|
6016
|
+
return __assign(__assign({}, (input.SecurityGroupIds != null && {
|
|
6150
6017
|
SecurityGroupIds: serializeAws_json1_1SecurityGroupIds(input.SecurityGroupIds, context),
|
|
6151
|
-
})), (input.Subnets
|
|
6152
|
-
input.Subnets !== null && { Subnets: serializeAws_json1_1Subnets(input.Subnets, context) }));
|
|
6018
|
+
})), (input.Subnets != null && { Subnets: serializeAws_json1_1Subnets(input.Subnets, context) }));
|
|
6153
6019
|
};
|
|
6154
6020
|
var deserializeAws_json1_1AttributeNamesList = function (output, context) {
|
|
6155
6021
|
var retVal = (output || [])
|
|
@@ -6165,7 +6031,7 @@ var deserializeAws_json1_1AttributeNamesList = function (output, context) {
|
|
|
6165
6031
|
var deserializeAws_json1_1AugmentedManifestsListItem = function (output, context) {
|
|
6166
6032
|
return {
|
|
6167
6033
|
AnnotationDataS3Uri: __expectString(output.AnnotationDataS3Uri),
|
|
6168
|
-
AttributeNames: output.AttributeNames
|
|
6034
|
+
AttributeNames: output.AttributeNames != null
|
|
6169
6035
|
? deserializeAws_json1_1AttributeNamesList(output.AttributeNames, context)
|
|
6170
6036
|
: undefined,
|
|
6171
6037
|
DocumentType: __expectString(output.DocumentType),
|
|
@@ -6177,35 +6043,27 @@ var deserializeAws_json1_1AugmentedManifestsListItem = function (output, context
|
|
|
6177
6043
|
var deserializeAws_json1_1BatchDetectDominantLanguageItemResult = function (output, context) {
|
|
6178
6044
|
return {
|
|
6179
6045
|
Index: __expectInt32(output.Index),
|
|
6180
|
-
Languages: output.Languages
|
|
6181
|
-
? deserializeAws_json1_1ListOfDominantLanguages(output.Languages, context)
|
|
6182
|
-
: undefined,
|
|
6046
|
+
Languages: output.Languages != null ? deserializeAws_json1_1ListOfDominantLanguages(output.Languages, context) : undefined,
|
|
6183
6047
|
};
|
|
6184
6048
|
};
|
|
6185
6049
|
var deserializeAws_json1_1BatchDetectDominantLanguageResponse = function (output, context) {
|
|
6186
6050
|
return {
|
|
6187
|
-
ErrorList: output.ErrorList
|
|
6188
|
-
|
|
6189
|
-
: undefined,
|
|
6190
|
-
ResultList: output.ResultList !== undefined && output.ResultList !== null
|
|
6051
|
+
ErrorList: output.ErrorList != null ? deserializeAws_json1_1BatchItemErrorList(output.ErrorList, context) : undefined,
|
|
6052
|
+
ResultList: output.ResultList != null
|
|
6191
6053
|
? deserializeAws_json1_1ListOfDetectDominantLanguageResult(output.ResultList, context)
|
|
6192
6054
|
: undefined,
|
|
6193
6055
|
};
|
|
6194
6056
|
};
|
|
6195
6057
|
var deserializeAws_json1_1BatchDetectEntitiesItemResult = function (output, context) {
|
|
6196
6058
|
return {
|
|
6197
|
-
Entities: output.Entities
|
|
6198
|
-
? deserializeAws_json1_1ListOfEntities(output.Entities, context)
|
|
6199
|
-
: undefined,
|
|
6059
|
+
Entities: output.Entities != null ? deserializeAws_json1_1ListOfEntities(output.Entities, context) : undefined,
|
|
6200
6060
|
Index: __expectInt32(output.Index),
|
|
6201
6061
|
};
|
|
6202
6062
|
};
|
|
6203
6063
|
var deserializeAws_json1_1BatchDetectEntitiesResponse = function (output, context) {
|
|
6204
6064
|
return {
|
|
6205
|
-
ErrorList: output.ErrorList
|
|
6206
|
-
|
|
6207
|
-
: undefined,
|
|
6208
|
-
ResultList: output.ResultList !== undefined && output.ResultList !== null
|
|
6065
|
+
ErrorList: output.ErrorList != null ? deserializeAws_json1_1BatchItemErrorList(output.ErrorList, context) : undefined,
|
|
6066
|
+
ResultList: output.ResultList != null
|
|
6209
6067
|
? deserializeAws_json1_1ListOfDetectEntitiesResult(output.ResultList, context)
|
|
6210
6068
|
: undefined,
|
|
6211
6069
|
};
|
|
@@ -6213,17 +6071,13 @@ var deserializeAws_json1_1BatchDetectEntitiesResponse = function (output, contex
|
|
|
6213
6071
|
var deserializeAws_json1_1BatchDetectKeyPhrasesItemResult = function (output, context) {
|
|
6214
6072
|
return {
|
|
6215
6073
|
Index: __expectInt32(output.Index),
|
|
6216
|
-
KeyPhrases: output.KeyPhrases
|
|
6217
|
-
? deserializeAws_json1_1ListOfKeyPhrases(output.KeyPhrases, context)
|
|
6218
|
-
: undefined,
|
|
6074
|
+
KeyPhrases: output.KeyPhrases != null ? deserializeAws_json1_1ListOfKeyPhrases(output.KeyPhrases, context) : undefined,
|
|
6219
6075
|
};
|
|
6220
6076
|
};
|
|
6221
6077
|
var deserializeAws_json1_1BatchDetectKeyPhrasesResponse = function (output, context) {
|
|
6222
6078
|
return {
|
|
6223
|
-
ErrorList: output.ErrorList
|
|
6224
|
-
|
|
6225
|
-
: undefined,
|
|
6226
|
-
ResultList: output.ResultList !== undefined && output.ResultList !== null
|
|
6079
|
+
ErrorList: output.ErrorList != null ? deserializeAws_json1_1BatchItemErrorList(output.ErrorList, context) : undefined,
|
|
6080
|
+
ResultList: output.ResultList != null
|
|
6227
6081
|
? deserializeAws_json1_1ListOfDetectKeyPhrasesResult(output.ResultList, context)
|
|
6228
6082
|
: undefined,
|
|
6229
6083
|
};
|
|
@@ -6232,17 +6086,13 @@ var deserializeAws_json1_1BatchDetectSentimentItemResult = function (output, con
|
|
|
6232
6086
|
return {
|
|
6233
6087
|
Index: __expectInt32(output.Index),
|
|
6234
6088
|
Sentiment: __expectString(output.Sentiment),
|
|
6235
|
-
SentimentScore: output.SentimentScore
|
|
6236
|
-
? deserializeAws_json1_1SentimentScore(output.SentimentScore, context)
|
|
6237
|
-
: undefined,
|
|
6089
|
+
SentimentScore: output.SentimentScore != null ? deserializeAws_json1_1SentimentScore(output.SentimentScore, context) : undefined,
|
|
6238
6090
|
};
|
|
6239
6091
|
};
|
|
6240
6092
|
var deserializeAws_json1_1BatchDetectSentimentResponse = function (output, context) {
|
|
6241
6093
|
return {
|
|
6242
|
-
ErrorList: output.ErrorList
|
|
6243
|
-
|
|
6244
|
-
: undefined,
|
|
6245
|
-
ResultList: output.ResultList !== undefined && output.ResultList !== null
|
|
6094
|
+
ErrorList: output.ErrorList != null ? deserializeAws_json1_1BatchItemErrorList(output.ErrorList, context) : undefined,
|
|
6095
|
+
ResultList: output.ResultList != null
|
|
6246
6096
|
? deserializeAws_json1_1ListOfDetectSentimentResult(output.ResultList, context)
|
|
6247
6097
|
: undefined,
|
|
6248
6098
|
};
|
|
@@ -6250,17 +6100,13 @@ var deserializeAws_json1_1BatchDetectSentimentResponse = function (output, conte
|
|
|
6250
6100
|
var deserializeAws_json1_1BatchDetectSyntaxItemResult = function (output, context) {
|
|
6251
6101
|
return {
|
|
6252
6102
|
Index: __expectInt32(output.Index),
|
|
6253
|
-
SyntaxTokens: output.SyntaxTokens
|
|
6254
|
-
? deserializeAws_json1_1ListOfSyntaxTokens(output.SyntaxTokens, context)
|
|
6255
|
-
: undefined,
|
|
6103
|
+
SyntaxTokens: output.SyntaxTokens != null ? deserializeAws_json1_1ListOfSyntaxTokens(output.SyntaxTokens, context) : undefined,
|
|
6256
6104
|
};
|
|
6257
6105
|
};
|
|
6258
6106
|
var deserializeAws_json1_1BatchDetectSyntaxResponse = function (output, context) {
|
|
6259
6107
|
return {
|
|
6260
|
-
ErrorList: output.ErrorList
|
|
6261
|
-
|
|
6262
|
-
: undefined,
|
|
6263
|
-
ResultList: output.ResultList !== undefined && output.ResultList !== null
|
|
6108
|
+
ErrorList: output.ErrorList != null ? deserializeAws_json1_1BatchItemErrorList(output.ErrorList, context) : undefined,
|
|
6109
|
+
ResultList: output.ResultList != null
|
|
6264
6110
|
? deserializeAws_json1_1ListOfDetectSyntaxResult(output.ResultList, context)
|
|
6265
6111
|
: undefined,
|
|
6266
6112
|
};
|
|
@@ -6302,7 +6148,7 @@ var deserializeAws_json1_1ClassifierEvaluationMetrics = function (output, contex
|
|
|
6302
6148
|
};
|
|
6303
6149
|
var deserializeAws_json1_1ClassifierMetadata = function (output, context) {
|
|
6304
6150
|
return {
|
|
6305
|
-
EvaluationMetrics: output.EvaluationMetrics
|
|
6151
|
+
EvaluationMetrics: output.EvaluationMetrics != null
|
|
6306
6152
|
? deserializeAws_json1_1ClassifierEvaluationMetrics(output.EvaluationMetrics, context)
|
|
6307
6153
|
: undefined,
|
|
6308
6154
|
NumberOfLabels: __expectInt32(output.NumberOfLabels),
|
|
@@ -6312,12 +6158,8 @@ var deserializeAws_json1_1ClassifierMetadata = function (output, context) {
|
|
|
6312
6158
|
};
|
|
6313
6159
|
var deserializeAws_json1_1ClassifyDocumentResponse = function (output, context) {
|
|
6314
6160
|
return {
|
|
6315
|
-
Classes: output.Classes
|
|
6316
|
-
|
|
6317
|
-
: undefined,
|
|
6318
|
-
Labels: output.Labels !== undefined && output.Labels !== null
|
|
6319
|
-
? deserializeAws_json1_1ListOfLabels(output.Labels, context)
|
|
6320
|
-
: undefined,
|
|
6161
|
+
Classes: output.Classes != null ? deserializeAws_json1_1ListOfClasses(output.Classes, context) : undefined,
|
|
6162
|
+
Labels: output.Labels != null ? deserializeAws_json1_1ListOfLabels(output.Labels, context) : undefined,
|
|
6321
6163
|
};
|
|
6322
6164
|
};
|
|
6323
6165
|
var deserializeAws_json1_1ConcurrentModificationException = function (output, context) {
|
|
@@ -6327,9 +6169,7 @@ var deserializeAws_json1_1ConcurrentModificationException = function (output, co
|
|
|
6327
6169
|
};
|
|
6328
6170
|
var deserializeAws_json1_1ContainsPiiEntitiesResponse = function (output, context) {
|
|
6329
6171
|
return {
|
|
6330
|
-
Labels: output.Labels
|
|
6331
|
-
? deserializeAws_json1_1ListOfEntityLabels(output.Labels, context)
|
|
6332
|
-
: undefined,
|
|
6172
|
+
Labels: output.Labels != null ? deserializeAws_json1_1ListOfEntityLabels(output.Labels, context) : undefined,
|
|
6333
6173
|
};
|
|
6334
6174
|
};
|
|
6335
6175
|
var deserializeAws_json1_1CreateDocumentClassifierResponse = function (output, context) {
|
|
@@ -6361,74 +6201,73 @@ var deserializeAws_json1_1DeleteResourcePolicyResponse = function (output, conte
|
|
|
6361
6201
|
};
|
|
6362
6202
|
var deserializeAws_json1_1DescribeDocumentClassificationJobResponse = function (output, context) {
|
|
6363
6203
|
return {
|
|
6364
|
-
DocumentClassificationJobProperties: output.DocumentClassificationJobProperties
|
|
6204
|
+
DocumentClassificationJobProperties: output.DocumentClassificationJobProperties != null
|
|
6365
6205
|
? deserializeAws_json1_1DocumentClassificationJobProperties(output.DocumentClassificationJobProperties, context)
|
|
6366
6206
|
: undefined,
|
|
6367
6207
|
};
|
|
6368
6208
|
};
|
|
6369
6209
|
var deserializeAws_json1_1DescribeDocumentClassifierResponse = function (output, context) {
|
|
6370
6210
|
return {
|
|
6371
|
-
DocumentClassifierProperties: output.DocumentClassifierProperties
|
|
6211
|
+
DocumentClassifierProperties: output.DocumentClassifierProperties != null
|
|
6372
6212
|
? deserializeAws_json1_1DocumentClassifierProperties(output.DocumentClassifierProperties, context)
|
|
6373
6213
|
: undefined,
|
|
6374
6214
|
};
|
|
6375
6215
|
};
|
|
6376
6216
|
var deserializeAws_json1_1DescribeDominantLanguageDetectionJobResponse = function (output, context) {
|
|
6377
6217
|
return {
|
|
6378
|
-
DominantLanguageDetectionJobProperties: output.DominantLanguageDetectionJobProperties
|
|
6379
|
-
output.DominantLanguageDetectionJobProperties !== null
|
|
6218
|
+
DominantLanguageDetectionJobProperties: output.DominantLanguageDetectionJobProperties != null
|
|
6380
6219
|
? deserializeAws_json1_1DominantLanguageDetectionJobProperties(output.DominantLanguageDetectionJobProperties, context)
|
|
6381
6220
|
: undefined,
|
|
6382
6221
|
};
|
|
6383
6222
|
};
|
|
6384
6223
|
var deserializeAws_json1_1DescribeEndpointResponse = function (output, context) {
|
|
6385
6224
|
return {
|
|
6386
|
-
EndpointProperties: output.EndpointProperties
|
|
6225
|
+
EndpointProperties: output.EndpointProperties != null
|
|
6387
6226
|
? deserializeAws_json1_1EndpointProperties(output.EndpointProperties, context)
|
|
6388
6227
|
: undefined,
|
|
6389
6228
|
};
|
|
6390
6229
|
};
|
|
6391
6230
|
var deserializeAws_json1_1DescribeEntitiesDetectionJobResponse = function (output, context) {
|
|
6392
6231
|
return {
|
|
6393
|
-
EntitiesDetectionJobProperties: output.EntitiesDetectionJobProperties
|
|
6232
|
+
EntitiesDetectionJobProperties: output.EntitiesDetectionJobProperties != null
|
|
6394
6233
|
? deserializeAws_json1_1EntitiesDetectionJobProperties(output.EntitiesDetectionJobProperties, context)
|
|
6395
6234
|
: undefined,
|
|
6396
6235
|
};
|
|
6397
6236
|
};
|
|
6398
6237
|
var deserializeAws_json1_1DescribeEntityRecognizerResponse = function (output, context) {
|
|
6399
6238
|
return {
|
|
6400
|
-
EntityRecognizerProperties: output.EntityRecognizerProperties
|
|
6239
|
+
EntityRecognizerProperties: output.EntityRecognizerProperties != null
|
|
6401
6240
|
? deserializeAws_json1_1EntityRecognizerProperties(output.EntityRecognizerProperties, context)
|
|
6402
6241
|
: undefined,
|
|
6403
6242
|
};
|
|
6404
6243
|
};
|
|
6405
6244
|
var deserializeAws_json1_1DescribeEventsDetectionJobResponse = function (output, context) {
|
|
6406
6245
|
return {
|
|
6407
|
-
EventsDetectionJobProperties: output.EventsDetectionJobProperties
|
|
6246
|
+
EventsDetectionJobProperties: output.EventsDetectionJobProperties != null
|
|
6408
6247
|
? deserializeAws_json1_1EventsDetectionJobProperties(output.EventsDetectionJobProperties, context)
|
|
6409
6248
|
: undefined,
|
|
6410
6249
|
};
|
|
6411
6250
|
};
|
|
6412
6251
|
var deserializeAws_json1_1DescribeKeyPhrasesDetectionJobResponse = function (output, context) {
|
|
6413
6252
|
return {
|
|
6414
|
-
KeyPhrasesDetectionJobProperties: output.KeyPhrasesDetectionJobProperties
|
|
6253
|
+
KeyPhrasesDetectionJobProperties: output.KeyPhrasesDetectionJobProperties != null
|
|
6415
6254
|
? deserializeAws_json1_1KeyPhrasesDetectionJobProperties(output.KeyPhrasesDetectionJobProperties, context)
|
|
6416
6255
|
: undefined,
|
|
6417
6256
|
};
|
|
6418
6257
|
};
|
|
6419
6258
|
var deserializeAws_json1_1DescribePiiEntitiesDetectionJobResponse = function (output, context) {
|
|
6420
6259
|
return {
|
|
6421
|
-
PiiEntitiesDetectionJobProperties: output.PiiEntitiesDetectionJobProperties
|
|
6260
|
+
PiiEntitiesDetectionJobProperties: output.PiiEntitiesDetectionJobProperties != null
|
|
6422
6261
|
? deserializeAws_json1_1PiiEntitiesDetectionJobProperties(output.PiiEntitiesDetectionJobProperties, context)
|
|
6423
6262
|
: undefined,
|
|
6424
6263
|
};
|
|
6425
6264
|
};
|
|
6426
6265
|
var deserializeAws_json1_1DescribeResourcePolicyResponse = function (output, context) {
|
|
6427
6266
|
return {
|
|
6428
|
-
CreationTime: output.CreationTime
|
|
6267
|
+
CreationTime: output.CreationTime != null
|
|
6429
6268
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
6430
6269
|
: undefined,
|
|
6431
|
-
LastModifiedTime: output.LastModifiedTime
|
|
6270
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
6432
6271
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
6433
6272
|
: undefined,
|
|
6434
6273
|
PolicyRevisionId: __expectString(output.PolicyRevisionId),
|
|
@@ -6437,67 +6276,54 @@ var deserializeAws_json1_1DescribeResourcePolicyResponse = function (output, con
|
|
|
6437
6276
|
};
|
|
6438
6277
|
var deserializeAws_json1_1DescribeSentimentDetectionJobResponse = function (output, context) {
|
|
6439
6278
|
return {
|
|
6440
|
-
SentimentDetectionJobProperties: output.SentimentDetectionJobProperties
|
|
6279
|
+
SentimentDetectionJobProperties: output.SentimentDetectionJobProperties != null
|
|
6441
6280
|
? deserializeAws_json1_1SentimentDetectionJobProperties(output.SentimentDetectionJobProperties, context)
|
|
6442
6281
|
: undefined,
|
|
6443
6282
|
};
|
|
6444
6283
|
};
|
|
6445
6284
|
var deserializeAws_json1_1DescribeTargetedSentimentDetectionJobResponse = function (output, context) {
|
|
6446
6285
|
return {
|
|
6447
|
-
TargetedSentimentDetectionJobProperties: output.TargetedSentimentDetectionJobProperties
|
|
6448
|
-
output.TargetedSentimentDetectionJobProperties !== null
|
|
6286
|
+
TargetedSentimentDetectionJobProperties: output.TargetedSentimentDetectionJobProperties != null
|
|
6449
6287
|
? deserializeAws_json1_1TargetedSentimentDetectionJobProperties(output.TargetedSentimentDetectionJobProperties, context)
|
|
6450
6288
|
: undefined,
|
|
6451
6289
|
};
|
|
6452
6290
|
};
|
|
6453
6291
|
var deserializeAws_json1_1DescribeTopicsDetectionJobResponse = function (output, context) {
|
|
6454
6292
|
return {
|
|
6455
|
-
TopicsDetectionJobProperties: output.TopicsDetectionJobProperties
|
|
6293
|
+
TopicsDetectionJobProperties: output.TopicsDetectionJobProperties != null
|
|
6456
6294
|
? deserializeAws_json1_1TopicsDetectionJobProperties(output.TopicsDetectionJobProperties, context)
|
|
6457
6295
|
: undefined,
|
|
6458
6296
|
};
|
|
6459
6297
|
};
|
|
6460
6298
|
var deserializeAws_json1_1DetectDominantLanguageResponse = function (output, context) {
|
|
6461
6299
|
return {
|
|
6462
|
-
Languages: output.Languages
|
|
6463
|
-
? deserializeAws_json1_1ListOfDominantLanguages(output.Languages, context)
|
|
6464
|
-
: undefined,
|
|
6300
|
+
Languages: output.Languages != null ? deserializeAws_json1_1ListOfDominantLanguages(output.Languages, context) : undefined,
|
|
6465
6301
|
};
|
|
6466
6302
|
};
|
|
6467
6303
|
var deserializeAws_json1_1DetectEntitiesResponse = function (output, context) {
|
|
6468
6304
|
return {
|
|
6469
|
-
Entities: output.Entities
|
|
6470
|
-
? deserializeAws_json1_1ListOfEntities(output.Entities, context)
|
|
6471
|
-
: undefined,
|
|
6305
|
+
Entities: output.Entities != null ? deserializeAws_json1_1ListOfEntities(output.Entities, context) : undefined,
|
|
6472
6306
|
};
|
|
6473
6307
|
};
|
|
6474
6308
|
var deserializeAws_json1_1DetectKeyPhrasesResponse = function (output, context) {
|
|
6475
6309
|
return {
|
|
6476
|
-
KeyPhrases: output.KeyPhrases
|
|
6477
|
-
? deserializeAws_json1_1ListOfKeyPhrases(output.KeyPhrases, context)
|
|
6478
|
-
: undefined,
|
|
6310
|
+
KeyPhrases: output.KeyPhrases != null ? deserializeAws_json1_1ListOfKeyPhrases(output.KeyPhrases, context) : undefined,
|
|
6479
6311
|
};
|
|
6480
6312
|
};
|
|
6481
6313
|
var deserializeAws_json1_1DetectPiiEntitiesResponse = function (output, context) {
|
|
6482
6314
|
return {
|
|
6483
|
-
Entities: output.Entities
|
|
6484
|
-
? deserializeAws_json1_1ListOfPiiEntities(output.Entities, context)
|
|
6485
|
-
: undefined,
|
|
6315
|
+
Entities: output.Entities != null ? deserializeAws_json1_1ListOfPiiEntities(output.Entities, context) : undefined,
|
|
6486
6316
|
};
|
|
6487
6317
|
};
|
|
6488
6318
|
var deserializeAws_json1_1DetectSentimentResponse = function (output, context) {
|
|
6489
6319
|
return {
|
|
6490
6320
|
Sentiment: __expectString(output.Sentiment),
|
|
6491
|
-
SentimentScore: output.SentimentScore
|
|
6492
|
-
? deserializeAws_json1_1SentimentScore(output.SentimentScore, context)
|
|
6493
|
-
: undefined,
|
|
6321
|
+
SentimentScore: output.SentimentScore != null ? deserializeAws_json1_1SentimentScore(output.SentimentScore, context) : undefined,
|
|
6494
6322
|
};
|
|
6495
6323
|
};
|
|
6496
6324
|
var deserializeAws_json1_1DetectSyntaxResponse = function (output, context) {
|
|
6497
6325
|
return {
|
|
6498
|
-
SyntaxTokens: output.SyntaxTokens
|
|
6499
|
-
? deserializeAws_json1_1ListOfSyntaxTokens(output.SyntaxTokens, context)
|
|
6500
|
-
: undefined,
|
|
6326
|
+
SyntaxTokens: output.SyntaxTokens != null ? deserializeAws_json1_1ListOfSyntaxTokens(output.SyntaxTokens, context) : undefined,
|
|
6501
6327
|
};
|
|
6502
6328
|
};
|
|
6503
6329
|
var deserializeAws_json1_1DocumentClass = function (output, context) {
|
|
@@ -6510,10 +6336,8 @@ var deserializeAws_json1_1DocumentClassificationJobProperties = function (output
|
|
|
6510
6336
|
return {
|
|
6511
6337
|
DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
|
|
6512
6338
|
DocumentClassifierArn: __expectString(output.DocumentClassifierArn),
|
|
6513
|
-
EndTime: output.EndTime
|
|
6514
|
-
|
|
6515
|
-
: undefined,
|
|
6516
|
-
InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
|
|
6339
|
+
EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
|
|
6340
|
+
InputDataConfig: output.InputDataConfig != null
|
|
6517
6341
|
? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
|
|
6518
6342
|
: undefined,
|
|
6519
6343
|
JobArn: __expectString(output.JobArn),
|
|
@@ -6521,16 +6345,12 @@ var deserializeAws_json1_1DocumentClassificationJobProperties = function (output
|
|
|
6521
6345
|
JobName: __expectString(output.JobName),
|
|
6522
6346
|
JobStatus: __expectString(output.JobStatus),
|
|
6523
6347
|
Message: __expectString(output.Message),
|
|
6524
|
-
OutputDataConfig: output.OutputDataConfig
|
|
6348
|
+
OutputDataConfig: output.OutputDataConfig != null
|
|
6525
6349
|
? deserializeAws_json1_1OutputDataConfig(output.OutputDataConfig, context)
|
|
6526
6350
|
: undefined,
|
|
6527
|
-
SubmitTime: output.SubmitTime
|
|
6528
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime)))
|
|
6529
|
-
: undefined,
|
|
6351
|
+
SubmitTime: output.SubmitTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime))) : undefined,
|
|
6530
6352
|
VolumeKmsKeyId: __expectString(output.VolumeKmsKeyId),
|
|
6531
|
-
VpcConfig: output.VpcConfig
|
|
6532
|
-
? deserializeAws_json1_1VpcConfig(output.VpcConfig, context)
|
|
6533
|
-
: undefined,
|
|
6353
|
+
VpcConfig: output.VpcConfig != null ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context) : undefined,
|
|
6534
6354
|
};
|
|
6535
6355
|
};
|
|
6536
6356
|
var deserializeAws_json1_1DocumentClassificationJobPropertiesList = function (output, context) {
|
|
@@ -6557,7 +6377,7 @@ var deserializeAws_json1_1DocumentClassifierAugmentedManifestsList = function (o
|
|
|
6557
6377
|
};
|
|
6558
6378
|
var deserializeAws_json1_1DocumentClassifierInputDataConfig = function (output, context) {
|
|
6559
6379
|
return {
|
|
6560
|
-
AugmentedManifests: output.AugmentedManifests
|
|
6380
|
+
AugmentedManifests: output.AugmentedManifests != null
|
|
6561
6381
|
? deserializeAws_json1_1DocumentClassifierAugmentedManifestsList(output.AugmentedManifests, context)
|
|
6562
6382
|
: undefined,
|
|
6563
6383
|
DataFormat: __expectString(output.DataFormat),
|
|
@@ -6574,40 +6394,34 @@ var deserializeAws_json1_1DocumentClassifierOutputDataConfig = function (output,
|
|
|
6574
6394
|
};
|
|
6575
6395
|
var deserializeAws_json1_1DocumentClassifierProperties = function (output, context) {
|
|
6576
6396
|
return {
|
|
6577
|
-
ClassifierMetadata: output.ClassifierMetadata
|
|
6397
|
+
ClassifierMetadata: output.ClassifierMetadata != null
|
|
6578
6398
|
? deserializeAws_json1_1ClassifierMetadata(output.ClassifierMetadata, context)
|
|
6579
6399
|
: undefined,
|
|
6580
6400
|
DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
|
|
6581
6401
|
DocumentClassifierArn: __expectString(output.DocumentClassifierArn),
|
|
6582
|
-
EndTime: output.EndTime
|
|
6583
|
-
|
|
6584
|
-
: undefined,
|
|
6585
|
-
InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
|
|
6402
|
+
EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
|
|
6403
|
+
InputDataConfig: output.InputDataConfig != null
|
|
6586
6404
|
? deserializeAws_json1_1DocumentClassifierInputDataConfig(output.InputDataConfig, context)
|
|
6587
6405
|
: undefined,
|
|
6588
6406
|
LanguageCode: __expectString(output.LanguageCode),
|
|
6589
6407
|
Message: __expectString(output.Message),
|
|
6590
6408
|
Mode: __expectString(output.Mode),
|
|
6591
6409
|
ModelKmsKeyId: __expectString(output.ModelKmsKeyId),
|
|
6592
|
-
OutputDataConfig: output.OutputDataConfig
|
|
6410
|
+
OutputDataConfig: output.OutputDataConfig != null
|
|
6593
6411
|
? deserializeAws_json1_1DocumentClassifierOutputDataConfig(output.OutputDataConfig, context)
|
|
6594
6412
|
: undefined,
|
|
6595
6413
|
SourceModelArn: __expectString(output.SourceModelArn),
|
|
6596
6414
|
Status: __expectString(output.Status),
|
|
6597
|
-
SubmitTime: output.SubmitTime
|
|
6598
|
-
|
|
6599
|
-
: undefined,
|
|
6600
|
-
TrainingEndTime: output.TrainingEndTime !== undefined && output.TrainingEndTime !== null
|
|
6415
|
+
SubmitTime: output.SubmitTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime))) : undefined,
|
|
6416
|
+
TrainingEndTime: output.TrainingEndTime != null
|
|
6601
6417
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.TrainingEndTime)))
|
|
6602
6418
|
: undefined,
|
|
6603
|
-
TrainingStartTime: output.TrainingStartTime
|
|
6419
|
+
TrainingStartTime: output.TrainingStartTime != null
|
|
6604
6420
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.TrainingStartTime)))
|
|
6605
6421
|
: undefined,
|
|
6606
6422
|
VersionName: __expectString(output.VersionName),
|
|
6607
6423
|
VolumeKmsKeyId: __expectString(output.VolumeKmsKeyId),
|
|
6608
|
-
VpcConfig: output.VpcConfig
|
|
6609
|
-
? deserializeAws_json1_1VpcConfig(output.VpcConfig, context)
|
|
6610
|
-
: undefined,
|
|
6424
|
+
VpcConfig: output.VpcConfig != null ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context) : undefined,
|
|
6611
6425
|
};
|
|
6612
6426
|
};
|
|
6613
6427
|
var deserializeAws_json1_1DocumentClassifierPropertiesList = function (output, context) {
|
|
@@ -6635,7 +6449,7 @@ var deserializeAws_json1_1DocumentClassifierSummariesList = function (output, co
|
|
|
6635
6449
|
var deserializeAws_json1_1DocumentClassifierSummary = function (output, context) {
|
|
6636
6450
|
return {
|
|
6637
6451
|
DocumentClassifierName: __expectString(output.DocumentClassifierName),
|
|
6638
|
-
LatestVersionCreatedAt: output.LatestVersionCreatedAt
|
|
6452
|
+
LatestVersionCreatedAt: output.LatestVersionCreatedAt != null
|
|
6639
6453
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LatestVersionCreatedAt)))
|
|
6640
6454
|
: undefined,
|
|
6641
6455
|
LatestVersionName: __expectString(output.LatestVersionName),
|
|
@@ -6653,7 +6467,7 @@ var deserializeAws_json1_1DocumentReaderConfig = function (output, context) {
|
|
|
6653
6467
|
return {
|
|
6654
6468
|
DocumentReadAction: __expectString(output.DocumentReadAction),
|
|
6655
6469
|
DocumentReadMode: __expectString(output.DocumentReadMode),
|
|
6656
|
-
FeatureTypes: output.FeatureTypes
|
|
6470
|
+
FeatureTypes: output.FeatureTypes != null
|
|
6657
6471
|
? deserializeAws_json1_1ListOfDocumentReadFeatureTypes(output.FeatureTypes, context)
|
|
6658
6472
|
: undefined,
|
|
6659
6473
|
};
|
|
@@ -6667,10 +6481,8 @@ var deserializeAws_json1_1DominantLanguage = function (output, context) {
|
|
|
6667
6481
|
var deserializeAws_json1_1DominantLanguageDetectionJobProperties = function (output, context) {
|
|
6668
6482
|
return {
|
|
6669
6483
|
DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
|
|
6670
|
-
EndTime: output.EndTime
|
|
6671
|
-
|
|
6672
|
-
: undefined,
|
|
6673
|
-
InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
|
|
6484
|
+
EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
|
|
6485
|
+
InputDataConfig: output.InputDataConfig != null
|
|
6674
6486
|
? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
|
|
6675
6487
|
: undefined,
|
|
6676
6488
|
JobArn: __expectString(output.JobArn),
|
|
@@ -6678,16 +6490,12 @@ var deserializeAws_json1_1DominantLanguageDetectionJobProperties = function (out
|
|
|
6678
6490
|
JobName: __expectString(output.JobName),
|
|
6679
6491
|
JobStatus: __expectString(output.JobStatus),
|
|
6680
6492
|
Message: __expectString(output.Message),
|
|
6681
|
-
OutputDataConfig: output.OutputDataConfig
|
|
6493
|
+
OutputDataConfig: output.OutputDataConfig != null
|
|
6682
6494
|
? deserializeAws_json1_1OutputDataConfig(output.OutputDataConfig, context)
|
|
6683
6495
|
: undefined,
|
|
6684
|
-
SubmitTime: output.SubmitTime
|
|
6685
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime)))
|
|
6686
|
-
: undefined,
|
|
6496
|
+
SubmitTime: output.SubmitTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime))) : undefined,
|
|
6687
6497
|
VolumeKmsKeyId: __expectString(output.VolumeKmsKeyId),
|
|
6688
|
-
VpcConfig: output.VpcConfig
|
|
6689
|
-
? deserializeAws_json1_1VpcConfig(output.VpcConfig, context)
|
|
6690
|
-
: undefined,
|
|
6498
|
+
VpcConfig: output.VpcConfig != null ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context) : undefined,
|
|
6691
6499
|
};
|
|
6692
6500
|
};
|
|
6693
6501
|
var deserializeAws_json1_1DominantLanguageDetectionJobPropertiesList = function (output, context) {
|
|
@@ -6703,7 +6511,7 @@ var deserializeAws_json1_1DominantLanguageDetectionJobPropertiesList = function
|
|
|
6703
6511
|
};
|
|
6704
6512
|
var deserializeAws_json1_1EndpointProperties = function (output, context) {
|
|
6705
6513
|
return {
|
|
6706
|
-
CreationTime: output.CreationTime
|
|
6514
|
+
CreationTime: output.CreationTime != null
|
|
6707
6515
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
6708
6516
|
: undefined,
|
|
6709
6517
|
CurrentInferenceUnits: __expectInt32(output.CurrentInferenceUnits),
|
|
@@ -6712,7 +6520,7 @@ var deserializeAws_json1_1EndpointProperties = function (output, context) {
|
|
|
6712
6520
|
DesiredInferenceUnits: __expectInt32(output.DesiredInferenceUnits),
|
|
6713
6521
|
DesiredModelArn: __expectString(output.DesiredModelArn),
|
|
6714
6522
|
EndpointArn: __expectString(output.EndpointArn),
|
|
6715
|
-
LastModifiedTime: output.LastModifiedTime
|
|
6523
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
6716
6524
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
6717
6525
|
: undefined,
|
|
6718
6526
|
Message: __expectString(output.Message),
|
|
@@ -6734,11 +6542,9 @@ var deserializeAws_json1_1EndpointPropertiesList = function (output, context) {
|
|
|
6734
6542
|
var deserializeAws_json1_1EntitiesDetectionJobProperties = function (output, context) {
|
|
6735
6543
|
return {
|
|
6736
6544
|
DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
|
|
6737
|
-
EndTime: output.EndTime
|
|
6738
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
|
|
6739
|
-
: undefined,
|
|
6545
|
+
EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
|
|
6740
6546
|
EntityRecognizerArn: __expectString(output.EntityRecognizerArn),
|
|
6741
|
-
InputDataConfig: output.InputDataConfig
|
|
6547
|
+
InputDataConfig: output.InputDataConfig != null
|
|
6742
6548
|
? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
|
|
6743
6549
|
: undefined,
|
|
6744
6550
|
JobArn: __expectString(output.JobArn),
|
|
@@ -6747,16 +6553,12 @@ var deserializeAws_json1_1EntitiesDetectionJobProperties = function (output, con
|
|
|
6747
6553
|
JobStatus: __expectString(output.JobStatus),
|
|
6748
6554
|
LanguageCode: __expectString(output.LanguageCode),
|
|
6749
6555
|
Message: __expectString(output.Message),
|
|
6750
|
-
OutputDataConfig: output.OutputDataConfig
|
|
6556
|
+
OutputDataConfig: output.OutputDataConfig != null
|
|
6751
6557
|
? deserializeAws_json1_1OutputDataConfig(output.OutputDataConfig, context)
|
|
6752
6558
|
: undefined,
|
|
6753
|
-
SubmitTime: output.SubmitTime
|
|
6754
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime)))
|
|
6755
|
-
: undefined,
|
|
6559
|
+
SubmitTime: output.SubmitTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime))) : undefined,
|
|
6756
6560
|
VolumeKmsKeyId: __expectString(output.VolumeKmsKeyId),
|
|
6757
|
-
VpcConfig: output.VpcConfig
|
|
6758
|
-
? deserializeAws_json1_1VpcConfig(output.VpcConfig, context)
|
|
6759
|
-
: undefined,
|
|
6561
|
+
VpcConfig: output.VpcConfig != null ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context) : undefined,
|
|
6760
6562
|
};
|
|
6761
6563
|
};
|
|
6762
6564
|
var deserializeAws_json1_1EntitiesDetectionJobPropertiesList = function (output, context) {
|
|
@@ -6823,30 +6625,26 @@ var deserializeAws_json1_1EntityRecognizerEvaluationMetrics = function (output,
|
|
|
6823
6625
|
};
|
|
6824
6626
|
var deserializeAws_json1_1EntityRecognizerInputDataConfig = function (output, context) {
|
|
6825
6627
|
return {
|
|
6826
|
-
Annotations: output.Annotations
|
|
6628
|
+
Annotations: output.Annotations != null
|
|
6827
6629
|
? deserializeAws_json1_1EntityRecognizerAnnotations(output.Annotations, context)
|
|
6828
6630
|
: undefined,
|
|
6829
|
-
AugmentedManifests: output.AugmentedManifests
|
|
6631
|
+
AugmentedManifests: output.AugmentedManifests != null
|
|
6830
6632
|
? deserializeAws_json1_1EntityRecognizerAugmentedManifestsList(output.AugmentedManifests, context)
|
|
6831
6633
|
: undefined,
|
|
6832
6634
|
DataFormat: __expectString(output.DataFormat),
|
|
6833
|
-
Documents: output.Documents
|
|
6834
|
-
|
|
6835
|
-
: undefined,
|
|
6836
|
-
EntityList: output.EntityList !== undefined && output.EntityList !== null
|
|
6635
|
+
Documents: output.Documents != null ? deserializeAws_json1_1EntityRecognizerDocuments(output.Documents, context) : undefined,
|
|
6636
|
+
EntityList: output.EntityList != null
|
|
6837
6637
|
? deserializeAws_json1_1EntityRecognizerEntityList(output.EntityList, context)
|
|
6838
6638
|
: undefined,
|
|
6839
|
-
EntityTypes: output.EntityTypes
|
|
6840
|
-
? deserializeAws_json1_1EntityTypesList(output.EntityTypes, context)
|
|
6841
|
-
: undefined,
|
|
6639
|
+
EntityTypes: output.EntityTypes != null ? deserializeAws_json1_1EntityTypesList(output.EntityTypes, context) : undefined,
|
|
6842
6640
|
};
|
|
6843
6641
|
};
|
|
6844
6642
|
var deserializeAws_json1_1EntityRecognizerMetadata = function (output, context) {
|
|
6845
6643
|
return {
|
|
6846
|
-
EntityTypes: output.EntityTypes
|
|
6644
|
+
EntityTypes: output.EntityTypes != null
|
|
6847
6645
|
? deserializeAws_json1_1EntityRecognizerMetadataEntityTypesList(output.EntityTypes, context)
|
|
6848
6646
|
: undefined,
|
|
6849
|
-
EvaluationMetrics: output.EvaluationMetrics
|
|
6647
|
+
EvaluationMetrics: output.EvaluationMetrics != null
|
|
6850
6648
|
? deserializeAws_json1_1EntityRecognizerEvaluationMetrics(output.EvaluationMetrics, context)
|
|
6851
6649
|
: undefined,
|
|
6852
6650
|
NumberOfTestDocuments: __expectInt32(output.NumberOfTestDocuments),
|
|
@@ -6866,7 +6664,7 @@ var deserializeAws_json1_1EntityRecognizerMetadataEntityTypesList = function (ou
|
|
|
6866
6664
|
};
|
|
6867
6665
|
var deserializeAws_json1_1EntityRecognizerMetadataEntityTypesListItem = function (output, context) {
|
|
6868
6666
|
return {
|
|
6869
|
-
EvaluationMetrics: output.EvaluationMetrics
|
|
6667
|
+
EvaluationMetrics: output.EvaluationMetrics != null
|
|
6870
6668
|
? deserializeAws_json1_1EntityTypesEvaluationMetrics(output.EvaluationMetrics, context)
|
|
6871
6669
|
: undefined,
|
|
6872
6670
|
NumberOfTrainMentions: __expectInt32(output.NumberOfTrainMentions),
|
|
@@ -6876,35 +6674,29 @@ var deserializeAws_json1_1EntityRecognizerMetadataEntityTypesListItem = function
|
|
|
6876
6674
|
var deserializeAws_json1_1EntityRecognizerProperties = function (output, context) {
|
|
6877
6675
|
return {
|
|
6878
6676
|
DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
|
|
6879
|
-
EndTime: output.EndTime
|
|
6880
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
|
|
6881
|
-
: undefined,
|
|
6677
|
+
EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
|
|
6882
6678
|
EntityRecognizerArn: __expectString(output.EntityRecognizerArn),
|
|
6883
|
-
InputDataConfig: output.InputDataConfig
|
|
6679
|
+
InputDataConfig: output.InputDataConfig != null
|
|
6884
6680
|
? deserializeAws_json1_1EntityRecognizerInputDataConfig(output.InputDataConfig, context)
|
|
6885
6681
|
: undefined,
|
|
6886
6682
|
LanguageCode: __expectString(output.LanguageCode),
|
|
6887
6683
|
Message: __expectString(output.Message),
|
|
6888
6684
|
ModelKmsKeyId: __expectString(output.ModelKmsKeyId),
|
|
6889
|
-
RecognizerMetadata: output.RecognizerMetadata
|
|
6685
|
+
RecognizerMetadata: output.RecognizerMetadata != null
|
|
6890
6686
|
? deserializeAws_json1_1EntityRecognizerMetadata(output.RecognizerMetadata, context)
|
|
6891
6687
|
: undefined,
|
|
6892
6688
|
SourceModelArn: __expectString(output.SourceModelArn),
|
|
6893
6689
|
Status: __expectString(output.Status),
|
|
6894
|
-
SubmitTime: output.SubmitTime
|
|
6895
|
-
|
|
6896
|
-
: undefined,
|
|
6897
|
-
TrainingEndTime: output.TrainingEndTime !== undefined && output.TrainingEndTime !== null
|
|
6690
|
+
SubmitTime: output.SubmitTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime))) : undefined,
|
|
6691
|
+
TrainingEndTime: output.TrainingEndTime != null
|
|
6898
6692
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.TrainingEndTime)))
|
|
6899
6693
|
: undefined,
|
|
6900
|
-
TrainingStartTime: output.TrainingStartTime
|
|
6694
|
+
TrainingStartTime: output.TrainingStartTime != null
|
|
6901
6695
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.TrainingStartTime)))
|
|
6902
6696
|
: undefined,
|
|
6903
6697
|
VersionName: __expectString(output.VersionName),
|
|
6904
6698
|
VolumeKmsKeyId: __expectString(output.VolumeKmsKeyId),
|
|
6905
|
-
VpcConfig: output.VpcConfig
|
|
6906
|
-
? deserializeAws_json1_1VpcConfig(output.VpcConfig, context)
|
|
6907
|
-
: undefined,
|
|
6699
|
+
VpcConfig: output.VpcConfig != null ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context) : undefined,
|
|
6908
6700
|
};
|
|
6909
6701
|
};
|
|
6910
6702
|
var deserializeAws_json1_1EntityRecognizerPropertiesList = function (output, context) {
|
|
@@ -6931,7 +6723,7 @@ var deserializeAws_json1_1EntityRecognizerSummariesList = function (output, cont
|
|
|
6931
6723
|
};
|
|
6932
6724
|
var deserializeAws_json1_1EntityRecognizerSummary = function (output, context) {
|
|
6933
6725
|
return {
|
|
6934
|
-
LatestVersionCreatedAt: output.LatestVersionCreatedAt
|
|
6726
|
+
LatestVersionCreatedAt: output.LatestVersionCreatedAt != null
|
|
6935
6727
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LatestVersionCreatedAt)))
|
|
6936
6728
|
: undefined,
|
|
6937
6729
|
LatestVersionName: __expectString(output.LatestVersionName),
|
|
@@ -6966,10 +6758,8 @@ var deserializeAws_json1_1EntityTypesListItem = function (output, context) {
|
|
|
6966
6758
|
var deserializeAws_json1_1EventsDetectionJobProperties = function (output, context) {
|
|
6967
6759
|
return {
|
|
6968
6760
|
DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
|
|
6969
|
-
EndTime: output.EndTime
|
|
6970
|
-
|
|
6971
|
-
: undefined,
|
|
6972
|
-
InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
|
|
6761
|
+
EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
|
|
6762
|
+
InputDataConfig: output.InputDataConfig != null
|
|
6973
6763
|
? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
|
|
6974
6764
|
: undefined,
|
|
6975
6765
|
JobArn: __expectString(output.JobArn),
|
|
@@ -6978,13 +6768,11 @@ var deserializeAws_json1_1EventsDetectionJobProperties = function (output, conte
|
|
|
6978
6768
|
JobStatus: __expectString(output.JobStatus),
|
|
6979
6769
|
LanguageCode: __expectString(output.LanguageCode),
|
|
6980
6770
|
Message: __expectString(output.Message),
|
|
6981
|
-
OutputDataConfig: output.OutputDataConfig
|
|
6771
|
+
OutputDataConfig: output.OutputDataConfig != null
|
|
6982
6772
|
? deserializeAws_json1_1OutputDataConfig(output.OutputDataConfig, context)
|
|
6983
6773
|
: undefined,
|
|
6984
|
-
SubmitTime: output.SubmitTime
|
|
6985
|
-
|
|
6986
|
-
: undefined,
|
|
6987
|
-
TargetEventTypes: output.TargetEventTypes !== undefined && output.TargetEventTypes !== null
|
|
6774
|
+
SubmitTime: output.SubmitTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime))) : undefined,
|
|
6775
|
+
TargetEventTypes: output.TargetEventTypes != null
|
|
6988
6776
|
? deserializeAws_json1_1TargetEventTypes(output.TargetEventTypes, context)
|
|
6989
6777
|
: undefined,
|
|
6990
6778
|
};
|
|
@@ -7007,7 +6795,7 @@ var deserializeAws_json1_1ImportModelResponse = function (output, context) {
|
|
|
7007
6795
|
};
|
|
7008
6796
|
var deserializeAws_json1_1InputDataConfig = function (output, context) {
|
|
7009
6797
|
return {
|
|
7010
|
-
DocumentReaderConfig: output.DocumentReaderConfig
|
|
6798
|
+
DocumentReaderConfig: output.DocumentReaderConfig != null
|
|
7011
6799
|
? deserializeAws_json1_1DocumentReaderConfig(output.DocumentReaderConfig, context)
|
|
7012
6800
|
: undefined,
|
|
7013
6801
|
InputFormat: __expectString(output.InputFormat),
|
|
@@ -7045,10 +6833,8 @@ var deserializeAws_json1_1KeyPhrase = function (output, context) {
|
|
|
7045
6833
|
var deserializeAws_json1_1KeyPhrasesDetectionJobProperties = function (output, context) {
|
|
7046
6834
|
return {
|
|
7047
6835
|
DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
|
|
7048
|
-
EndTime: output.EndTime
|
|
7049
|
-
|
|
7050
|
-
: undefined,
|
|
7051
|
-
InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
|
|
6836
|
+
EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
|
|
6837
|
+
InputDataConfig: output.InputDataConfig != null
|
|
7052
6838
|
? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
|
|
7053
6839
|
: undefined,
|
|
7054
6840
|
JobArn: __expectString(output.JobArn),
|
|
@@ -7057,16 +6843,12 @@ var deserializeAws_json1_1KeyPhrasesDetectionJobProperties = function (output, c
|
|
|
7057
6843
|
JobStatus: __expectString(output.JobStatus),
|
|
7058
6844
|
LanguageCode: __expectString(output.LanguageCode),
|
|
7059
6845
|
Message: __expectString(output.Message),
|
|
7060
|
-
OutputDataConfig: output.OutputDataConfig
|
|
6846
|
+
OutputDataConfig: output.OutputDataConfig != null
|
|
7061
6847
|
? deserializeAws_json1_1OutputDataConfig(output.OutputDataConfig, context)
|
|
7062
6848
|
: undefined,
|
|
7063
|
-
SubmitTime: output.SubmitTime
|
|
7064
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime)))
|
|
7065
|
-
: undefined,
|
|
6849
|
+
SubmitTime: output.SubmitTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime))) : undefined,
|
|
7066
6850
|
VolumeKmsKeyId: __expectString(output.VolumeKmsKeyId),
|
|
7067
|
-
VpcConfig: output.VpcConfig
|
|
7068
|
-
? deserializeAws_json1_1VpcConfig(output.VpcConfig, context)
|
|
7069
|
-
: undefined,
|
|
6851
|
+
VpcConfig: output.VpcConfig != null ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context) : undefined,
|
|
7070
6852
|
};
|
|
7071
6853
|
};
|
|
7072
6854
|
var deserializeAws_json1_1KeyPhrasesDetectionJobPropertiesList = function (output, context) {
|
|
@@ -7087,8 +6869,7 @@ var deserializeAws_json1_1KmsKeyValidationException = function (output, context)
|
|
|
7087
6869
|
};
|
|
7088
6870
|
var deserializeAws_json1_1ListDocumentClassificationJobsResponse = function (output, context) {
|
|
7089
6871
|
return {
|
|
7090
|
-
DocumentClassificationJobPropertiesList: output.DocumentClassificationJobPropertiesList
|
|
7091
|
-
output.DocumentClassificationJobPropertiesList !== null
|
|
6872
|
+
DocumentClassificationJobPropertiesList: output.DocumentClassificationJobPropertiesList != null
|
|
7092
6873
|
? deserializeAws_json1_1DocumentClassificationJobPropertiesList(output.DocumentClassificationJobPropertiesList, context)
|
|
7093
6874
|
: undefined,
|
|
7094
6875
|
NextToken: __expectString(output.NextToken),
|
|
@@ -7096,7 +6877,7 @@ var deserializeAws_json1_1ListDocumentClassificationJobsResponse = function (out
|
|
|
7096
6877
|
};
|
|
7097
6878
|
var deserializeAws_json1_1ListDocumentClassifiersResponse = function (output, context) {
|
|
7098
6879
|
return {
|
|
7099
|
-
DocumentClassifierPropertiesList: output.DocumentClassifierPropertiesList
|
|
6880
|
+
DocumentClassifierPropertiesList: output.DocumentClassifierPropertiesList != null
|
|
7100
6881
|
? deserializeAws_json1_1DocumentClassifierPropertiesList(output.DocumentClassifierPropertiesList, context)
|
|
7101
6882
|
: undefined,
|
|
7102
6883
|
NextToken: __expectString(output.NextToken),
|
|
@@ -7104,7 +6885,7 @@ var deserializeAws_json1_1ListDocumentClassifiersResponse = function (output, co
|
|
|
7104
6885
|
};
|
|
7105
6886
|
var deserializeAws_json1_1ListDocumentClassifierSummariesResponse = function (output, context) {
|
|
7106
6887
|
return {
|
|
7107
|
-
DocumentClassifierSummariesList: output.DocumentClassifierSummariesList
|
|
6888
|
+
DocumentClassifierSummariesList: output.DocumentClassifierSummariesList != null
|
|
7108
6889
|
? deserializeAws_json1_1DocumentClassifierSummariesList(output.DocumentClassifierSummariesList, context)
|
|
7109
6890
|
: undefined,
|
|
7110
6891
|
NextToken: __expectString(output.NextToken),
|
|
@@ -7112,8 +6893,7 @@ var deserializeAws_json1_1ListDocumentClassifierSummariesResponse = function (ou
|
|
|
7112
6893
|
};
|
|
7113
6894
|
var deserializeAws_json1_1ListDominantLanguageDetectionJobsResponse = function (output, context) {
|
|
7114
6895
|
return {
|
|
7115
|
-
DominantLanguageDetectionJobPropertiesList: output.DominantLanguageDetectionJobPropertiesList
|
|
7116
|
-
output.DominantLanguageDetectionJobPropertiesList !== null
|
|
6896
|
+
DominantLanguageDetectionJobPropertiesList: output.DominantLanguageDetectionJobPropertiesList != null
|
|
7117
6897
|
? deserializeAws_json1_1DominantLanguageDetectionJobPropertiesList(output.DominantLanguageDetectionJobPropertiesList, context)
|
|
7118
6898
|
: undefined,
|
|
7119
6899
|
NextToken: __expectString(output.NextToken),
|
|
@@ -7121,7 +6901,7 @@ var deserializeAws_json1_1ListDominantLanguageDetectionJobsResponse = function (
|
|
|
7121
6901
|
};
|
|
7122
6902
|
var deserializeAws_json1_1ListEndpointsResponse = function (output, context) {
|
|
7123
6903
|
return {
|
|
7124
|
-
EndpointPropertiesList: output.EndpointPropertiesList
|
|
6904
|
+
EndpointPropertiesList: output.EndpointPropertiesList != null
|
|
7125
6905
|
? deserializeAws_json1_1EndpointPropertiesList(output.EndpointPropertiesList, context)
|
|
7126
6906
|
: undefined,
|
|
7127
6907
|
NextToken: __expectString(output.NextToken),
|
|
@@ -7129,7 +6909,7 @@ var deserializeAws_json1_1ListEndpointsResponse = function (output, context) {
|
|
|
7129
6909
|
};
|
|
7130
6910
|
var deserializeAws_json1_1ListEntitiesDetectionJobsResponse = function (output, context) {
|
|
7131
6911
|
return {
|
|
7132
|
-
EntitiesDetectionJobPropertiesList: output.EntitiesDetectionJobPropertiesList
|
|
6912
|
+
EntitiesDetectionJobPropertiesList: output.EntitiesDetectionJobPropertiesList != null
|
|
7133
6913
|
? deserializeAws_json1_1EntitiesDetectionJobPropertiesList(output.EntitiesDetectionJobPropertiesList, context)
|
|
7134
6914
|
: undefined,
|
|
7135
6915
|
NextToken: __expectString(output.NextToken),
|
|
@@ -7137,7 +6917,7 @@ var deserializeAws_json1_1ListEntitiesDetectionJobsResponse = function (output,
|
|
|
7137
6917
|
};
|
|
7138
6918
|
var deserializeAws_json1_1ListEntityRecognizersResponse = function (output, context) {
|
|
7139
6919
|
return {
|
|
7140
|
-
EntityRecognizerPropertiesList: output.EntityRecognizerPropertiesList
|
|
6920
|
+
EntityRecognizerPropertiesList: output.EntityRecognizerPropertiesList != null
|
|
7141
6921
|
? deserializeAws_json1_1EntityRecognizerPropertiesList(output.EntityRecognizerPropertiesList, context)
|
|
7142
6922
|
: undefined,
|
|
7143
6923
|
NextToken: __expectString(output.NextToken),
|
|
@@ -7145,7 +6925,7 @@ var deserializeAws_json1_1ListEntityRecognizersResponse = function (output, cont
|
|
|
7145
6925
|
};
|
|
7146
6926
|
var deserializeAws_json1_1ListEntityRecognizerSummariesResponse = function (output, context) {
|
|
7147
6927
|
return {
|
|
7148
|
-
EntityRecognizerSummariesList: output.EntityRecognizerSummariesList
|
|
6928
|
+
EntityRecognizerSummariesList: output.EntityRecognizerSummariesList != null
|
|
7149
6929
|
? deserializeAws_json1_1EntityRecognizerSummariesList(output.EntityRecognizerSummariesList, context)
|
|
7150
6930
|
: undefined,
|
|
7151
6931
|
NextToken: __expectString(output.NextToken),
|
|
@@ -7153,7 +6933,7 @@ var deserializeAws_json1_1ListEntityRecognizerSummariesResponse = function (outp
|
|
|
7153
6933
|
};
|
|
7154
6934
|
var deserializeAws_json1_1ListEventsDetectionJobsResponse = function (output, context) {
|
|
7155
6935
|
return {
|
|
7156
|
-
EventsDetectionJobPropertiesList: output.EventsDetectionJobPropertiesList
|
|
6936
|
+
EventsDetectionJobPropertiesList: output.EventsDetectionJobPropertiesList != null
|
|
7157
6937
|
? deserializeAws_json1_1EventsDetectionJobPropertiesList(output.EventsDetectionJobPropertiesList, context)
|
|
7158
6938
|
: undefined,
|
|
7159
6939
|
NextToken: __expectString(output.NextToken),
|
|
@@ -7161,7 +6941,7 @@ var deserializeAws_json1_1ListEventsDetectionJobsResponse = function (output, co
|
|
|
7161
6941
|
};
|
|
7162
6942
|
var deserializeAws_json1_1ListKeyPhrasesDetectionJobsResponse = function (output, context) {
|
|
7163
6943
|
return {
|
|
7164
|
-
KeyPhrasesDetectionJobPropertiesList: output.KeyPhrasesDetectionJobPropertiesList
|
|
6944
|
+
KeyPhrasesDetectionJobPropertiesList: output.KeyPhrasesDetectionJobPropertiesList != null
|
|
7165
6945
|
? deserializeAws_json1_1KeyPhrasesDetectionJobPropertiesList(output.KeyPhrasesDetectionJobPropertiesList, context)
|
|
7166
6946
|
: undefined,
|
|
7167
6947
|
NextToken: __expectString(output.NextToken),
|
|
@@ -7335,8 +7115,7 @@ var deserializeAws_json1_1ListOfSyntaxTokens = function (output, context) {
|
|
|
7335
7115
|
var deserializeAws_json1_1ListPiiEntitiesDetectionJobsResponse = function (output, context) {
|
|
7336
7116
|
return {
|
|
7337
7117
|
NextToken: __expectString(output.NextToken),
|
|
7338
|
-
PiiEntitiesDetectionJobPropertiesList: output.PiiEntitiesDetectionJobPropertiesList
|
|
7339
|
-
output.PiiEntitiesDetectionJobPropertiesList !== null
|
|
7118
|
+
PiiEntitiesDetectionJobPropertiesList: output.PiiEntitiesDetectionJobPropertiesList != null
|
|
7340
7119
|
? deserializeAws_json1_1PiiEntitiesDetectionJobPropertiesList(output.PiiEntitiesDetectionJobPropertiesList, context)
|
|
7341
7120
|
: undefined,
|
|
7342
7121
|
};
|
|
@@ -7344,7 +7123,7 @@ var deserializeAws_json1_1ListPiiEntitiesDetectionJobsResponse = function (outpu
|
|
|
7344
7123
|
var deserializeAws_json1_1ListSentimentDetectionJobsResponse = function (output, context) {
|
|
7345
7124
|
return {
|
|
7346
7125
|
NextToken: __expectString(output.NextToken),
|
|
7347
|
-
SentimentDetectionJobPropertiesList: output.SentimentDetectionJobPropertiesList
|
|
7126
|
+
SentimentDetectionJobPropertiesList: output.SentimentDetectionJobPropertiesList != null
|
|
7348
7127
|
? deserializeAws_json1_1SentimentDetectionJobPropertiesList(output.SentimentDetectionJobPropertiesList, context)
|
|
7349
7128
|
: undefined,
|
|
7350
7129
|
};
|
|
@@ -7352,16 +7131,13 @@ var deserializeAws_json1_1ListSentimentDetectionJobsResponse = function (output,
|
|
|
7352
7131
|
var deserializeAws_json1_1ListTagsForResourceResponse = function (output, context) {
|
|
7353
7132
|
return {
|
|
7354
7133
|
ResourceArn: __expectString(output.ResourceArn),
|
|
7355
|
-
Tags: output.Tags
|
|
7356
|
-
? deserializeAws_json1_1TagList(output.Tags, context)
|
|
7357
|
-
: undefined,
|
|
7134
|
+
Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
|
|
7358
7135
|
};
|
|
7359
7136
|
};
|
|
7360
7137
|
var deserializeAws_json1_1ListTargetedSentimentDetectionJobsResponse = function (output, context) {
|
|
7361
7138
|
return {
|
|
7362
7139
|
NextToken: __expectString(output.NextToken),
|
|
7363
|
-
TargetedSentimentDetectionJobPropertiesList: output.TargetedSentimentDetectionJobPropertiesList
|
|
7364
|
-
output.TargetedSentimentDetectionJobPropertiesList !== null
|
|
7140
|
+
TargetedSentimentDetectionJobPropertiesList: output.TargetedSentimentDetectionJobPropertiesList != null
|
|
7365
7141
|
? deserializeAws_json1_1TargetedSentimentDetectionJobPropertiesList(output.TargetedSentimentDetectionJobPropertiesList, context)
|
|
7366
7142
|
: undefined,
|
|
7367
7143
|
};
|
|
@@ -7369,7 +7145,7 @@ var deserializeAws_json1_1ListTargetedSentimentDetectionJobsResponse = function
|
|
|
7369
7145
|
var deserializeAws_json1_1ListTopicsDetectionJobsResponse = function (output, context) {
|
|
7370
7146
|
return {
|
|
7371
7147
|
NextToken: __expectString(output.NextToken),
|
|
7372
|
-
TopicsDetectionJobPropertiesList: output.TopicsDetectionJobPropertiesList
|
|
7148
|
+
TopicsDetectionJobPropertiesList: output.TopicsDetectionJobPropertiesList != null
|
|
7373
7149
|
? deserializeAws_json1_1TopicsDetectionJobPropertiesList(output.TopicsDetectionJobPropertiesList, context)
|
|
7374
7150
|
: undefined,
|
|
7375
7151
|
};
|
|
@@ -7389,10 +7165,8 @@ var deserializeAws_json1_1PartOfSpeechTag = function (output, context) {
|
|
|
7389
7165
|
var deserializeAws_json1_1PiiEntitiesDetectionJobProperties = function (output, context) {
|
|
7390
7166
|
return {
|
|
7391
7167
|
DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
|
|
7392
|
-
EndTime: output.EndTime
|
|
7393
|
-
|
|
7394
|
-
: undefined,
|
|
7395
|
-
InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
|
|
7168
|
+
EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
|
|
7169
|
+
InputDataConfig: output.InputDataConfig != null
|
|
7396
7170
|
? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
|
|
7397
7171
|
: undefined,
|
|
7398
7172
|
JobArn: __expectString(output.JobArn),
|
|
@@ -7402,15 +7176,13 @@ var deserializeAws_json1_1PiiEntitiesDetectionJobProperties = function (output,
|
|
|
7402
7176
|
LanguageCode: __expectString(output.LanguageCode),
|
|
7403
7177
|
Message: __expectString(output.Message),
|
|
7404
7178
|
Mode: __expectString(output.Mode),
|
|
7405
|
-
OutputDataConfig: output.OutputDataConfig
|
|
7179
|
+
OutputDataConfig: output.OutputDataConfig != null
|
|
7406
7180
|
? deserializeAws_json1_1PiiOutputDataConfig(output.OutputDataConfig, context)
|
|
7407
7181
|
: undefined,
|
|
7408
|
-
RedactionConfig: output.RedactionConfig
|
|
7182
|
+
RedactionConfig: output.RedactionConfig != null
|
|
7409
7183
|
? deserializeAws_json1_1RedactionConfig(output.RedactionConfig, context)
|
|
7410
7184
|
: undefined,
|
|
7411
|
-
SubmitTime: output.SubmitTime
|
|
7412
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime)))
|
|
7413
|
-
: undefined,
|
|
7185
|
+
SubmitTime: output.SubmitTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime))) : undefined,
|
|
7414
7186
|
};
|
|
7415
7187
|
};
|
|
7416
7188
|
var deserializeAws_json1_1PiiEntitiesDetectionJobPropertiesList = function (output, context) {
|
|
@@ -7447,7 +7219,7 @@ var deserializeAws_json1_1RedactionConfig = function (output, context) {
|
|
|
7447
7219
|
return {
|
|
7448
7220
|
MaskCharacter: __expectString(output.MaskCharacter),
|
|
7449
7221
|
MaskMode: __expectString(output.MaskMode),
|
|
7450
|
-
PiiEntityTypes: output.PiiEntityTypes
|
|
7222
|
+
PiiEntityTypes: output.PiiEntityTypes != null
|
|
7451
7223
|
? deserializeAws_json1_1ListOfPiiEntityTypes(output.PiiEntityTypes, context)
|
|
7452
7224
|
: undefined,
|
|
7453
7225
|
};
|
|
@@ -7486,10 +7258,8 @@ var deserializeAws_json1_1SecurityGroupIds = function (output, context) {
|
|
|
7486
7258
|
var deserializeAws_json1_1SentimentDetectionJobProperties = function (output, context) {
|
|
7487
7259
|
return {
|
|
7488
7260
|
DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
|
|
7489
|
-
EndTime: output.EndTime
|
|
7490
|
-
|
|
7491
|
-
: undefined,
|
|
7492
|
-
InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
|
|
7261
|
+
EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
|
|
7262
|
+
InputDataConfig: output.InputDataConfig != null
|
|
7493
7263
|
? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
|
|
7494
7264
|
: undefined,
|
|
7495
7265
|
JobArn: __expectString(output.JobArn),
|
|
@@ -7498,16 +7268,12 @@ var deserializeAws_json1_1SentimentDetectionJobProperties = function (output, co
|
|
|
7498
7268
|
JobStatus: __expectString(output.JobStatus),
|
|
7499
7269
|
LanguageCode: __expectString(output.LanguageCode),
|
|
7500
7270
|
Message: __expectString(output.Message),
|
|
7501
|
-
OutputDataConfig: output.OutputDataConfig
|
|
7271
|
+
OutputDataConfig: output.OutputDataConfig != null
|
|
7502
7272
|
? deserializeAws_json1_1OutputDataConfig(output.OutputDataConfig, context)
|
|
7503
7273
|
: undefined,
|
|
7504
|
-
SubmitTime: output.SubmitTime
|
|
7505
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime)))
|
|
7506
|
-
: undefined,
|
|
7274
|
+
SubmitTime: output.SubmitTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime))) : undefined,
|
|
7507
7275
|
VolumeKmsKeyId: __expectString(output.VolumeKmsKeyId),
|
|
7508
|
-
VpcConfig: output.VpcConfig
|
|
7509
|
-
? deserializeAws_json1_1VpcConfig(output.VpcConfig, context)
|
|
7510
|
-
: undefined,
|
|
7276
|
+
VpcConfig: output.VpcConfig != null ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context) : undefined,
|
|
7511
7277
|
};
|
|
7512
7278
|
};
|
|
7513
7279
|
var deserializeAws_json1_1SentimentDetectionJobPropertiesList = function (output, context) {
|
|
@@ -7655,9 +7421,7 @@ var deserializeAws_json1_1SyntaxToken = function (output, context) {
|
|
|
7655
7421
|
return {
|
|
7656
7422
|
BeginOffset: __expectInt32(output.BeginOffset),
|
|
7657
7423
|
EndOffset: __expectInt32(output.EndOffset),
|
|
7658
|
-
PartOfSpeech: output.PartOfSpeech
|
|
7659
|
-
? deserializeAws_json1_1PartOfSpeechTag(output.PartOfSpeech, context)
|
|
7660
|
-
: undefined,
|
|
7424
|
+
PartOfSpeech: output.PartOfSpeech != null ? deserializeAws_json1_1PartOfSpeechTag(output.PartOfSpeech, context) : undefined,
|
|
7661
7425
|
Text: __expectString(output.Text),
|
|
7662
7426
|
TokenId: __expectInt32(output.TokenId),
|
|
7663
7427
|
};
|
|
@@ -7685,10 +7449,8 @@ var deserializeAws_json1_1TagResourceResponse = function (output, context) {
|
|
|
7685
7449
|
var deserializeAws_json1_1TargetedSentimentDetectionJobProperties = function (output, context) {
|
|
7686
7450
|
return {
|
|
7687
7451
|
DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
|
|
7688
|
-
EndTime: output.EndTime
|
|
7689
|
-
|
|
7690
|
-
: undefined,
|
|
7691
|
-
InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
|
|
7452
|
+
EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
|
|
7453
|
+
InputDataConfig: output.InputDataConfig != null
|
|
7692
7454
|
? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
|
|
7693
7455
|
: undefined,
|
|
7694
7456
|
JobArn: __expectString(output.JobArn),
|
|
@@ -7697,16 +7459,12 @@ var deserializeAws_json1_1TargetedSentimentDetectionJobProperties = function (ou
|
|
|
7697
7459
|
JobStatus: __expectString(output.JobStatus),
|
|
7698
7460
|
LanguageCode: __expectString(output.LanguageCode),
|
|
7699
7461
|
Message: __expectString(output.Message),
|
|
7700
|
-
OutputDataConfig: output.OutputDataConfig
|
|
7462
|
+
OutputDataConfig: output.OutputDataConfig != null
|
|
7701
7463
|
? deserializeAws_json1_1OutputDataConfig(output.OutputDataConfig, context)
|
|
7702
7464
|
: undefined,
|
|
7703
|
-
SubmitTime: output.SubmitTime
|
|
7704
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime)))
|
|
7705
|
-
: undefined,
|
|
7465
|
+
SubmitTime: output.SubmitTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime))) : undefined,
|
|
7706
7466
|
VolumeKmsKeyId: __expectString(output.VolumeKmsKeyId),
|
|
7707
|
-
VpcConfig: output.VpcConfig
|
|
7708
|
-
? deserializeAws_json1_1VpcConfig(output.VpcConfig, context)
|
|
7709
|
-
: undefined,
|
|
7467
|
+
VpcConfig: output.VpcConfig != null ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context) : undefined,
|
|
7710
7468
|
};
|
|
7711
7469
|
};
|
|
7712
7470
|
var deserializeAws_json1_1TargetedSentimentDetectionJobPropertiesList = function (output, context) {
|
|
@@ -7754,10 +7512,8 @@ var deserializeAws_json1_1TooManyTagsException = function (output, context) {
|
|
|
7754
7512
|
var deserializeAws_json1_1TopicsDetectionJobProperties = function (output, context) {
|
|
7755
7513
|
return {
|
|
7756
7514
|
DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
|
|
7757
|
-
EndTime: output.EndTime
|
|
7758
|
-
|
|
7759
|
-
: undefined,
|
|
7760
|
-
InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
|
|
7515
|
+
EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
|
|
7516
|
+
InputDataConfig: output.InputDataConfig != null
|
|
7761
7517
|
? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
|
|
7762
7518
|
: undefined,
|
|
7763
7519
|
JobArn: __expectString(output.JobArn),
|
|
@@ -7766,16 +7522,12 @@ var deserializeAws_json1_1TopicsDetectionJobProperties = function (output, conte
|
|
|
7766
7522
|
JobStatus: __expectString(output.JobStatus),
|
|
7767
7523
|
Message: __expectString(output.Message),
|
|
7768
7524
|
NumberOfTopics: __expectInt32(output.NumberOfTopics),
|
|
7769
|
-
OutputDataConfig: output.OutputDataConfig
|
|
7525
|
+
OutputDataConfig: output.OutputDataConfig != null
|
|
7770
7526
|
? deserializeAws_json1_1OutputDataConfig(output.OutputDataConfig, context)
|
|
7771
7527
|
: undefined,
|
|
7772
|
-
SubmitTime: output.SubmitTime
|
|
7773
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime)))
|
|
7774
|
-
: undefined,
|
|
7528
|
+
SubmitTime: output.SubmitTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime))) : undefined,
|
|
7775
7529
|
VolumeKmsKeyId: __expectString(output.VolumeKmsKeyId),
|
|
7776
|
-
VpcConfig: output.VpcConfig
|
|
7777
|
-
? deserializeAws_json1_1VpcConfig(output.VpcConfig, context)
|
|
7778
|
-
: undefined,
|
|
7530
|
+
VpcConfig: output.VpcConfig != null ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context) : undefined,
|
|
7779
7531
|
};
|
|
7780
7532
|
};
|
|
7781
7533
|
var deserializeAws_json1_1TopicsDetectionJobPropertiesList = function (output, context) {
|
|
@@ -7802,12 +7554,10 @@ var deserializeAws_json1_1UpdateEndpointResponse = function (output, context) {
|
|
|
7802
7554
|
};
|
|
7803
7555
|
var deserializeAws_json1_1VpcConfig = function (output, context) {
|
|
7804
7556
|
return {
|
|
7805
|
-
SecurityGroupIds: output.SecurityGroupIds
|
|
7557
|
+
SecurityGroupIds: output.SecurityGroupIds != null
|
|
7806
7558
|
? deserializeAws_json1_1SecurityGroupIds(output.SecurityGroupIds, context)
|
|
7807
7559
|
: undefined,
|
|
7808
|
-
Subnets: output.Subnets
|
|
7809
|
-
? deserializeAws_json1_1Subnets(output.Subnets, context)
|
|
7810
|
-
: undefined,
|
|
7560
|
+
Subnets: output.Subnets != null ? deserializeAws_json1_1Subnets(output.Subnets, context) : undefined,
|
|
7811
7561
|
};
|
|
7812
7562
|
};
|
|
7813
7563
|
var deserializeMetadata = function (output) {
|
|
@@ -7866,6 +7616,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
7866
7616
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
7867
7617
|
var sanitizeErrorCode = function (rawValue) {
|
|
7868
7618
|
var cleanValue = rawValue;
|
|
7619
|
+
if (typeof cleanValue === "number") {
|
|
7620
|
+
cleanValue = cleanValue.toString();
|
|
7621
|
+
}
|
|
7869
7622
|
if (cleanValue.indexOf(":") >= 0) {
|
|
7870
7623
|
cleanValue = cleanValue.split(":")[0];
|
|
7871
7624
|
}
|