@aws-sdk/client-comprehend 3.28.0 → 3.32.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 +35 -0
- package/dist/cjs/models/models_0.js +34 -5
- package/dist/cjs/models/models_0.js.map +1 -1
- package/dist/cjs/package.json +31 -31
- package/dist/cjs/protocols/Aws_json1_1.js +152 -76
- package/dist/cjs/protocols/Aws_json1_1.js.map +1 -1
- package/dist/es/endpoints.js +1 -2
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js +27 -0
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +31 -31
- package/dist/es/protocols/Aws_json1_1.js +148 -80
- package/dist/es/protocols/Aws_json1_1.js.map +1 -1
- package/dist/types/models/models_0.d.ts +90 -1
- package/dist/types/ts3.4/models/models_0.d.ts +90 -1
- package/models/models_0.ts +104 -1
- package/package.json +31 -31
- package/protocols/Aws_json1_1.ts +172 -78
package/protocols/Aws_json1_1.ts
CHANGED
|
@@ -280,6 +280,8 @@ import {
|
|
|
280
280
|
DocumentClassifierOutputDataConfig,
|
|
281
281
|
DocumentClassifierProperties,
|
|
282
282
|
DocumentLabel,
|
|
283
|
+
DocumentReadFeatureTypes,
|
|
284
|
+
DocumentReaderConfig,
|
|
283
285
|
DominantLanguage,
|
|
284
286
|
DominantLanguageDetectionJobFilter,
|
|
285
287
|
DominantLanguageDetectionJobProperties,
|
|
@@ -401,9 +403,13 @@ import {
|
|
|
401
403
|
} from "../models/models_0";
|
|
402
404
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
403
405
|
import {
|
|
404
|
-
|
|
406
|
+
expectInt32 as __expectInt32,
|
|
407
|
+
expectNonNull as __expectNonNull,
|
|
408
|
+
expectNumber as __expectNumber,
|
|
405
409
|
expectString as __expectString,
|
|
406
|
-
|
|
410
|
+
limitedParseDouble as __limitedParseDouble,
|
|
411
|
+
limitedParseFloat32 as __limitedParseFloat32,
|
|
412
|
+
parseEpochTimestamp as __parseEpochTimestamp,
|
|
407
413
|
} from "@aws-sdk/smithy-client";
|
|
408
414
|
import {
|
|
409
415
|
Endpoint as __Endpoint,
|
|
@@ -6462,11 +6468,16 @@ const serializeAws_json1_1AugmentedManifestsListItem = (
|
|
|
6462
6468
|
context: __SerdeContext
|
|
6463
6469
|
): any => {
|
|
6464
6470
|
return {
|
|
6471
|
+
...(input.AnnotationDataS3Uri !== undefined &&
|
|
6472
|
+
input.AnnotationDataS3Uri !== null && { AnnotationDataS3Uri: input.AnnotationDataS3Uri }),
|
|
6465
6473
|
...(input.AttributeNames !== undefined &&
|
|
6466
6474
|
input.AttributeNames !== null && {
|
|
6467
6475
|
AttributeNames: serializeAws_json1_1AttributeNamesList(input.AttributeNames, context),
|
|
6468
6476
|
}),
|
|
6477
|
+
...(input.DocumentType !== undefined && input.DocumentType !== null && { DocumentType: input.DocumentType }),
|
|
6469
6478
|
...(input.S3Uri !== undefined && input.S3Uri !== null && { S3Uri: input.S3Uri }),
|
|
6479
|
+
...(input.SourceDocumentsS3Uri !== undefined &&
|
|
6480
|
+
input.SourceDocumentsS3Uri !== null && { SourceDocumentsS3Uri: input.SourceDocumentsS3Uri }),
|
|
6470
6481
|
};
|
|
6471
6482
|
};
|
|
6472
6483
|
|
|
@@ -6860,6 +6871,19 @@ const serializeAws_json1_1DocumentClassifierOutputDataConfig = (
|
|
|
6860
6871
|
};
|
|
6861
6872
|
};
|
|
6862
6873
|
|
|
6874
|
+
const serializeAws_json1_1DocumentReaderConfig = (input: DocumentReaderConfig, context: __SerdeContext): any => {
|
|
6875
|
+
return {
|
|
6876
|
+
...(input.DocumentReadAction !== undefined &&
|
|
6877
|
+
input.DocumentReadAction !== null && { DocumentReadAction: input.DocumentReadAction }),
|
|
6878
|
+
...(input.DocumentReadMode !== undefined &&
|
|
6879
|
+
input.DocumentReadMode !== null && { DocumentReadMode: input.DocumentReadMode }),
|
|
6880
|
+
...(input.FeatureTypes !== undefined &&
|
|
6881
|
+
input.FeatureTypes !== null && {
|
|
6882
|
+
FeatureTypes: serializeAws_json1_1ListOfDocumentReadFeatureTypes(input.FeatureTypes, context),
|
|
6883
|
+
}),
|
|
6884
|
+
};
|
|
6885
|
+
};
|
|
6886
|
+
|
|
6863
6887
|
const serializeAws_json1_1DominantLanguageDetectionJobFilter = (
|
|
6864
6888
|
input: DominantLanguageDetectionJobFilter,
|
|
6865
6889
|
context: __SerdeContext
|
|
@@ -7015,6 +7039,10 @@ const serializeAws_json1_1EventsDetectionJobFilter = (
|
|
|
7015
7039
|
|
|
7016
7040
|
const serializeAws_json1_1InputDataConfig = (input: InputDataConfig, context: __SerdeContext): any => {
|
|
7017
7041
|
return {
|
|
7042
|
+
...(input.DocumentReaderConfig !== undefined &&
|
|
7043
|
+
input.DocumentReaderConfig !== null && {
|
|
7044
|
+
DocumentReaderConfig: serializeAws_json1_1DocumentReaderConfig(input.DocumentReaderConfig, context),
|
|
7045
|
+
}),
|
|
7018
7046
|
...(input.InputFormat !== undefined && input.InputFormat !== null && { InputFormat: input.InputFormat }),
|
|
7019
7047
|
...(input.S3Uri !== undefined && input.S3Uri !== null && { S3Uri: input.S3Uri }),
|
|
7020
7048
|
};
|
|
@@ -7129,6 +7157,20 @@ const serializeAws_json1_1ListKeyPhrasesDetectionJobsRequest = (
|
|
|
7129
7157
|
};
|
|
7130
7158
|
};
|
|
7131
7159
|
|
|
7160
|
+
const serializeAws_json1_1ListOfDocumentReadFeatureTypes = (
|
|
7161
|
+
input: (DocumentReadFeatureTypes | string)[],
|
|
7162
|
+
context: __SerdeContext
|
|
7163
|
+
): any => {
|
|
7164
|
+
return input
|
|
7165
|
+
.filter((e: any) => e != null)
|
|
7166
|
+
.map((entry) => {
|
|
7167
|
+
if (entry === null) {
|
|
7168
|
+
return null as any;
|
|
7169
|
+
}
|
|
7170
|
+
return entry;
|
|
7171
|
+
});
|
|
7172
|
+
};
|
|
7173
|
+
|
|
7132
7174
|
const serializeAws_json1_1ListOfPiiEntityTypes = (input: (PiiEntityType | string)[], context: __SerdeContext): any => {
|
|
7133
7175
|
return input
|
|
7134
7176
|
.filter((e: any) => e != null)
|
|
@@ -7643,11 +7685,14 @@ const deserializeAws_json1_1AugmentedManifestsListItem = (
|
|
|
7643
7685
|
context: __SerdeContext
|
|
7644
7686
|
): AugmentedManifestsListItem => {
|
|
7645
7687
|
return {
|
|
7688
|
+
AnnotationDataS3Uri: __expectString(output.AnnotationDataS3Uri),
|
|
7646
7689
|
AttributeNames:
|
|
7647
7690
|
output.AttributeNames !== undefined && output.AttributeNames !== null
|
|
7648
7691
|
? deserializeAws_json1_1AttributeNamesList(output.AttributeNames, context)
|
|
7649
7692
|
: undefined,
|
|
7693
|
+
DocumentType: __expectString(output.DocumentType),
|
|
7650
7694
|
S3Uri: __expectString(output.S3Uri),
|
|
7695
|
+
SourceDocumentsS3Uri: __expectString(output.SourceDocumentsS3Uri),
|
|
7651
7696
|
} as any;
|
|
7652
7697
|
};
|
|
7653
7698
|
|
|
@@ -7656,7 +7701,7 @@ const deserializeAws_json1_1BatchDetectDominantLanguageItemResult = (
|
|
|
7656
7701
|
context: __SerdeContext
|
|
7657
7702
|
): BatchDetectDominantLanguageItemResult => {
|
|
7658
7703
|
return {
|
|
7659
|
-
Index:
|
|
7704
|
+
Index: __expectInt32(output.Index),
|
|
7660
7705
|
Languages:
|
|
7661
7706
|
output.Languages !== undefined && output.Languages !== null
|
|
7662
7707
|
? deserializeAws_json1_1ListOfDominantLanguages(output.Languages, context)
|
|
@@ -7689,7 +7734,7 @@ const deserializeAws_json1_1BatchDetectEntitiesItemResult = (
|
|
|
7689
7734
|
output.Entities !== undefined && output.Entities !== null
|
|
7690
7735
|
? deserializeAws_json1_1ListOfEntities(output.Entities, context)
|
|
7691
7736
|
: undefined,
|
|
7692
|
-
Index:
|
|
7737
|
+
Index: __expectInt32(output.Index),
|
|
7693
7738
|
} as any;
|
|
7694
7739
|
};
|
|
7695
7740
|
|
|
@@ -7714,7 +7759,7 @@ const deserializeAws_json1_1BatchDetectKeyPhrasesItemResult = (
|
|
|
7714
7759
|
context: __SerdeContext
|
|
7715
7760
|
): BatchDetectKeyPhrasesItemResult => {
|
|
7716
7761
|
return {
|
|
7717
|
-
Index:
|
|
7762
|
+
Index: __expectInt32(output.Index),
|
|
7718
7763
|
KeyPhrases:
|
|
7719
7764
|
output.KeyPhrases !== undefined && output.KeyPhrases !== null
|
|
7720
7765
|
? deserializeAws_json1_1ListOfKeyPhrases(output.KeyPhrases, context)
|
|
@@ -7743,7 +7788,7 @@ const deserializeAws_json1_1BatchDetectSentimentItemResult = (
|
|
|
7743
7788
|
context: __SerdeContext
|
|
7744
7789
|
): BatchDetectSentimentItemResult => {
|
|
7745
7790
|
return {
|
|
7746
|
-
Index:
|
|
7791
|
+
Index: __expectInt32(output.Index),
|
|
7747
7792
|
Sentiment: __expectString(output.Sentiment),
|
|
7748
7793
|
SentimentScore:
|
|
7749
7794
|
output.SentimentScore !== undefined && output.SentimentScore !== null
|
|
@@ -7773,7 +7818,7 @@ const deserializeAws_json1_1BatchDetectSyntaxItemResult = (
|
|
|
7773
7818
|
context: __SerdeContext
|
|
7774
7819
|
): BatchDetectSyntaxItemResult => {
|
|
7775
7820
|
return {
|
|
7776
|
-
Index:
|
|
7821
|
+
Index: __expectInt32(output.Index),
|
|
7777
7822
|
SyntaxTokens:
|
|
7778
7823
|
output.SyntaxTokens !== undefined && output.SyntaxTokens !== null
|
|
7779
7824
|
? deserializeAws_json1_1ListOfSyntaxTokens(output.SyntaxTokens, context)
|
|
@@ -7801,7 +7846,7 @@ const deserializeAws_json1_1BatchItemError = (output: any, context: __SerdeConte
|
|
|
7801
7846
|
return {
|
|
7802
7847
|
ErrorCode: __expectString(output.ErrorCode),
|
|
7803
7848
|
ErrorMessage: __expectString(output.ErrorMessage),
|
|
7804
|
-
Index:
|
|
7849
|
+
Index: __expectInt32(output.Index),
|
|
7805
7850
|
} as any;
|
|
7806
7851
|
};
|
|
7807
7852
|
|
|
@@ -7830,14 +7875,14 @@ const deserializeAws_json1_1ClassifierEvaluationMetrics = (
|
|
|
7830
7875
|
context: __SerdeContext
|
|
7831
7876
|
): ClassifierEvaluationMetrics => {
|
|
7832
7877
|
return {
|
|
7833
|
-
Accuracy:
|
|
7834
|
-
F1Score:
|
|
7835
|
-
HammingLoss:
|
|
7836
|
-
MicroF1Score:
|
|
7837
|
-
MicroPrecision:
|
|
7838
|
-
MicroRecall:
|
|
7839
|
-
Precision:
|
|
7840
|
-
Recall:
|
|
7878
|
+
Accuracy: __limitedParseDouble(output.Accuracy),
|
|
7879
|
+
F1Score: __limitedParseDouble(output.F1Score),
|
|
7880
|
+
HammingLoss: __limitedParseDouble(output.HammingLoss),
|
|
7881
|
+
MicroF1Score: __limitedParseDouble(output.MicroF1Score),
|
|
7882
|
+
MicroPrecision: __limitedParseDouble(output.MicroPrecision),
|
|
7883
|
+
MicroRecall: __limitedParseDouble(output.MicroRecall),
|
|
7884
|
+
Precision: __limitedParseDouble(output.Precision),
|
|
7885
|
+
Recall: __limitedParseDouble(output.Recall),
|
|
7841
7886
|
} as any;
|
|
7842
7887
|
};
|
|
7843
7888
|
|
|
@@ -7847,9 +7892,9 @@ const deserializeAws_json1_1ClassifierMetadata = (output: any, context: __SerdeC
|
|
|
7847
7892
|
output.EvaluationMetrics !== undefined && output.EvaluationMetrics !== null
|
|
7848
7893
|
? deserializeAws_json1_1ClassifierEvaluationMetrics(output.EvaluationMetrics, context)
|
|
7849
7894
|
: undefined,
|
|
7850
|
-
NumberOfLabels:
|
|
7851
|
-
NumberOfTestDocuments:
|
|
7852
|
-
NumberOfTrainedDocuments:
|
|
7895
|
+
NumberOfLabels: __expectInt32(output.NumberOfLabels),
|
|
7896
|
+
NumberOfTestDocuments: __expectInt32(output.NumberOfTestDocuments),
|
|
7897
|
+
NumberOfTrainedDocuments: __expectInt32(output.NumberOfTrainedDocuments),
|
|
7853
7898
|
} as any;
|
|
7854
7899
|
};
|
|
7855
7900
|
|
|
@@ -8138,7 +8183,7 @@ const deserializeAws_json1_1DetectSyntaxResponse = (output: any, context: __Serd
|
|
|
8138
8183
|
const deserializeAws_json1_1DocumentClass = (output: any, context: __SerdeContext): DocumentClass => {
|
|
8139
8184
|
return {
|
|
8140
8185
|
Name: __expectString(output.Name),
|
|
8141
|
-
Score:
|
|
8186
|
+
Score: __limitedParseFloat32(output.Score),
|
|
8142
8187
|
} as any;
|
|
8143
8188
|
};
|
|
8144
8189
|
|
|
@@ -8150,7 +8195,9 @@ const deserializeAws_json1_1DocumentClassificationJobProperties = (
|
|
|
8150
8195
|
DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
|
|
8151
8196
|
DocumentClassifierArn: __expectString(output.DocumentClassifierArn),
|
|
8152
8197
|
EndTime:
|
|
8153
|
-
output.EndTime !== undefined && output.EndTime !== null
|
|
8198
|
+
output.EndTime !== undefined && output.EndTime !== null
|
|
8199
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
|
|
8200
|
+
: undefined,
|
|
8154
8201
|
InputDataConfig:
|
|
8155
8202
|
output.InputDataConfig !== undefined && output.InputDataConfig !== null
|
|
8156
8203
|
? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
|
|
@@ -8166,7 +8213,7 @@ const deserializeAws_json1_1DocumentClassificationJobProperties = (
|
|
|
8166
8213
|
: undefined,
|
|
8167
8214
|
SubmitTime:
|
|
8168
8215
|
output.SubmitTime !== undefined && output.SubmitTime !== null
|
|
8169
|
-
?
|
|
8216
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime)))
|
|
8170
8217
|
: undefined,
|
|
8171
8218
|
VolumeKmsKeyId: __expectString(output.VolumeKmsKeyId),
|
|
8172
8219
|
VpcConfig:
|
|
@@ -8241,7 +8288,9 @@ const deserializeAws_json1_1DocumentClassifierProperties = (
|
|
|
8241
8288
|
DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
|
|
8242
8289
|
DocumentClassifierArn: __expectString(output.DocumentClassifierArn),
|
|
8243
8290
|
EndTime:
|
|
8244
|
-
output.EndTime !== undefined && output.EndTime !== null
|
|
8291
|
+
output.EndTime !== undefined && output.EndTime !== null
|
|
8292
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
|
|
8293
|
+
: undefined,
|
|
8245
8294
|
InputDataConfig:
|
|
8246
8295
|
output.InputDataConfig !== undefined && output.InputDataConfig !== null
|
|
8247
8296
|
? deserializeAws_json1_1DocumentClassifierInputDataConfig(output.InputDataConfig, context)
|
|
@@ -8257,15 +8306,15 @@ const deserializeAws_json1_1DocumentClassifierProperties = (
|
|
|
8257
8306
|
Status: __expectString(output.Status),
|
|
8258
8307
|
SubmitTime:
|
|
8259
8308
|
output.SubmitTime !== undefined && output.SubmitTime !== null
|
|
8260
|
-
?
|
|
8309
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime)))
|
|
8261
8310
|
: undefined,
|
|
8262
8311
|
TrainingEndTime:
|
|
8263
8312
|
output.TrainingEndTime !== undefined && output.TrainingEndTime !== null
|
|
8264
|
-
?
|
|
8313
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.TrainingEndTime)))
|
|
8265
8314
|
: undefined,
|
|
8266
8315
|
TrainingStartTime:
|
|
8267
8316
|
output.TrainingStartTime !== undefined && output.TrainingStartTime !== null
|
|
8268
|
-
?
|
|
8317
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.TrainingStartTime)))
|
|
8269
8318
|
: undefined,
|
|
8270
8319
|
VolumeKmsKeyId: __expectString(output.VolumeKmsKeyId),
|
|
8271
8320
|
VpcConfig:
|
|
@@ -8292,14 +8341,25 @@ const deserializeAws_json1_1DocumentClassifierPropertiesList = (
|
|
|
8292
8341
|
const deserializeAws_json1_1DocumentLabel = (output: any, context: __SerdeContext): DocumentLabel => {
|
|
8293
8342
|
return {
|
|
8294
8343
|
Name: __expectString(output.Name),
|
|
8295
|
-
Score:
|
|
8344
|
+
Score: __limitedParseFloat32(output.Score),
|
|
8345
|
+
} as any;
|
|
8346
|
+
};
|
|
8347
|
+
|
|
8348
|
+
const deserializeAws_json1_1DocumentReaderConfig = (output: any, context: __SerdeContext): DocumentReaderConfig => {
|
|
8349
|
+
return {
|
|
8350
|
+
DocumentReadAction: __expectString(output.DocumentReadAction),
|
|
8351
|
+
DocumentReadMode: __expectString(output.DocumentReadMode),
|
|
8352
|
+
FeatureTypes:
|
|
8353
|
+
output.FeatureTypes !== undefined && output.FeatureTypes !== null
|
|
8354
|
+
? deserializeAws_json1_1ListOfDocumentReadFeatureTypes(output.FeatureTypes, context)
|
|
8355
|
+
: undefined,
|
|
8296
8356
|
} as any;
|
|
8297
8357
|
};
|
|
8298
8358
|
|
|
8299
8359
|
const deserializeAws_json1_1DominantLanguage = (output: any, context: __SerdeContext): DominantLanguage => {
|
|
8300
8360
|
return {
|
|
8301
8361
|
LanguageCode: __expectString(output.LanguageCode),
|
|
8302
|
-
Score:
|
|
8362
|
+
Score: __limitedParseFloat32(output.Score),
|
|
8303
8363
|
} as any;
|
|
8304
8364
|
};
|
|
8305
8365
|
|
|
@@ -8310,7 +8370,9 @@ const deserializeAws_json1_1DominantLanguageDetectionJobProperties = (
|
|
|
8310
8370
|
return {
|
|
8311
8371
|
DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
|
|
8312
8372
|
EndTime:
|
|
8313
|
-
output.EndTime !== undefined && output.EndTime !== null
|
|
8373
|
+
output.EndTime !== undefined && output.EndTime !== null
|
|
8374
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
|
|
8375
|
+
: undefined,
|
|
8314
8376
|
InputDataConfig:
|
|
8315
8377
|
output.InputDataConfig !== undefined && output.InputDataConfig !== null
|
|
8316
8378
|
? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
|
|
@@ -8326,7 +8388,7 @@ const deserializeAws_json1_1DominantLanguageDetectionJobProperties = (
|
|
|
8326
8388
|
: undefined,
|
|
8327
8389
|
SubmitTime:
|
|
8328
8390
|
output.SubmitTime !== undefined && output.SubmitTime !== null
|
|
8329
|
-
?
|
|
8391
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime)))
|
|
8330
8392
|
: undefined,
|
|
8331
8393
|
VolumeKmsKeyId: __expectString(output.VolumeKmsKeyId),
|
|
8332
8394
|
VpcConfig:
|
|
@@ -8354,15 +8416,15 @@ const deserializeAws_json1_1EndpointProperties = (output: any, context: __SerdeC
|
|
|
8354
8416
|
return {
|
|
8355
8417
|
CreationTime:
|
|
8356
8418
|
output.CreationTime !== undefined && output.CreationTime !== null
|
|
8357
|
-
?
|
|
8419
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
8358
8420
|
: undefined,
|
|
8359
|
-
CurrentInferenceUnits:
|
|
8421
|
+
CurrentInferenceUnits: __expectInt32(output.CurrentInferenceUnits),
|
|
8360
8422
|
DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
|
|
8361
|
-
DesiredInferenceUnits:
|
|
8423
|
+
DesiredInferenceUnits: __expectInt32(output.DesiredInferenceUnits),
|
|
8362
8424
|
EndpointArn: __expectString(output.EndpointArn),
|
|
8363
8425
|
LastModifiedTime:
|
|
8364
8426
|
output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
|
|
8365
|
-
?
|
|
8427
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
8366
8428
|
: undefined,
|
|
8367
8429
|
Message: __expectString(output.Message),
|
|
8368
8430
|
ModelArn: __expectString(output.ModelArn),
|
|
@@ -8388,7 +8450,9 @@ const deserializeAws_json1_1EntitiesDetectionJobProperties = (
|
|
|
8388
8450
|
return {
|
|
8389
8451
|
DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
|
|
8390
8452
|
EndTime:
|
|
8391
|
-
output.EndTime !== undefined && output.EndTime !== null
|
|
8453
|
+
output.EndTime !== undefined && output.EndTime !== null
|
|
8454
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
|
|
8455
|
+
: undefined,
|
|
8392
8456
|
EntityRecognizerArn: __expectString(output.EntityRecognizerArn),
|
|
8393
8457
|
InputDataConfig:
|
|
8394
8458
|
output.InputDataConfig !== undefined && output.InputDataConfig !== null
|
|
@@ -8406,7 +8470,7 @@ const deserializeAws_json1_1EntitiesDetectionJobProperties = (
|
|
|
8406
8470
|
: undefined,
|
|
8407
8471
|
SubmitTime:
|
|
8408
8472
|
output.SubmitTime !== undefined && output.SubmitTime !== null
|
|
8409
|
-
?
|
|
8473
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime)))
|
|
8410
8474
|
: undefined,
|
|
8411
8475
|
VolumeKmsKeyId: __expectString(output.VolumeKmsKeyId),
|
|
8412
8476
|
VpcConfig:
|
|
@@ -8432,9 +8496,9 @@ const deserializeAws_json1_1EntitiesDetectionJobPropertiesList = (
|
|
|
8432
8496
|
|
|
8433
8497
|
const deserializeAws_json1_1Entity = (output: any, context: __SerdeContext): Entity => {
|
|
8434
8498
|
return {
|
|
8435
|
-
BeginOffset:
|
|
8436
|
-
EndOffset:
|
|
8437
|
-
Score:
|
|
8499
|
+
BeginOffset: __expectInt32(output.BeginOffset),
|
|
8500
|
+
EndOffset: __expectInt32(output.EndOffset),
|
|
8501
|
+
Score: __limitedParseFloat32(output.Score),
|
|
8438
8502
|
Text: __expectString(output.Text),
|
|
8439
8503
|
Type: __expectString(output.Type),
|
|
8440
8504
|
} as any;
|
|
@@ -8443,7 +8507,7 @@ const deserializeAws_json1_1Entity = (output: any, context: __SerdeContext): Ent
|
|
|
8443
8507
|
const deserializeAws_json1_1EntityLabel = (output: any, context: __SerdeContext): EntityLabel => {
|
|
8444
8508
|
return {
|
|
8445
8509
|
Name: __expectString(output.Name),
|
|
8446
|
-
Score:
|
|
8510
|
+
Score: __limitedParseFloat32(output.Score),
|
|
8447
8511
|
} as any;
|
|
8448
8512
|
};
|
|
8449
8513
|
|
|
@@ -8493,9 +8557,9 @@ const deserializeAws_json1_1EntityRecognizerEvaluationMetrics = (
|
|
|
8493
8557
|
context: __SerdeContext
|
|
8494
8558
|
): EntityRecognizerEvaluationMetrics => {
|
|
8495
8559
|
return {
|
|
8496
|
-
F1Score:
|
|
8497
|
-
Precision:
|
|
8498
|
-
Recall:
|
|
8560
|
+
F1Score: __limitedParseDouble(output.F1Score),
|
|
8561
|
+
Precision: __limitedParseDouble(output.Precision),
|
|
8562
|
+
Recall: __limitedParseDouble(output.Recall),
|
|
8499
8563
|
} as any;
|
|
8500
8564
|
};
|
|
8501
8565
|
|
|
@@ -8541,8 +8605,8 @@ const deserializeAws_json1_1EntityRecognizerMetadata = (
|
|
|
8541
8605
|
output.EvaluationMetrics !== undefined && output.EvaluationMetrics !== null
|
|
8542
8606
|
? deserializeAws_json1_1EntityRecognizerEvaluationMetrics(output.EvaluationMetrics, context)
|
|
8543
8607
|
: undefined,
|
|
8544
|
-
NumberOfTestDocuments:
|
|
8545
|
-
NumberOfTrainedDocuments:
|
|
8608
|
+
NumberOfTestDocuments: __expectInt32(output.NumberOfTestDocuments),
|
|
8609
|
+
NumberOfTrainedDocuments: __expectInt32(output.NumberOfTrainedDocuments),
|
|
8546
8610
|
} as any;
|
|
8547
8611
|
};
|
|
8548
8612
|
|
|
@@ -8569,7 +8633,7 @@ const deserializeAws_json1_1EntityRecognizerMetadataEntityTypesListItem = (
|
|
|
8569
8633
|
output.EvaluationMetrics !== undefined && output.EvaluationMetrics !== null
|
|
8570
8634
|
? deserializeAws_json1_1EntityTypesEvaluationMetrics(output.EvaluationMetrics, context)
|
|
8571
8635
|
: undefined,
|
|
8572
|
-
NumberOfTrainMentions:
|
|
8636
|
+
NumberOfTrainMentions: __expectInt32(output.NumberOfTrainMentions),
|
|
8573
8637
|
Type: __expectString(output.Type),
|
|
8574
8638
|
} as any;
|
|
8575
8639
|
};
|
|
@@ -8581,7 +8645,9 @@ const deserializeAws_json1_1EntityRecognizerProperties = (
|
|
|
8581
8645
|
return {
|
|
8582
8646
|
DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
|
|
8583
8647
|
EndTime:
|
|
8584
|
-
output.EndTime !== undefined && output.EndTime !== null
|
|
8648
|
+
output.EndTime !== undefined && output.EndTime !== null
|
|
8649
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
|
|
8650
|
+
: undefined,
|
|
8585
8651
|
EntityRecognizerArn: __expectString(output.EntityRecognizerArn),
|
|
8586
8652
|
InputDataConfig:
|
|
8587
8653
|
output.InputDataConfig !== undefined && output.InputDataConfig !== null
|
|
@@ -8597,15 +8663,15 @@ const deserializeAws_json1_1EntityRecognizerProperties = (
|
|
|
8597
8663
|
Status: __expectString(output.Status),
|
|
8598
8664
|
SubmitTime:
|
|
8599
8665
|
output.SubmitTime !== undefined && output.SubmitTime !== null
|
|
8600
|
-
?
|
|
8666
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime)))
|
|
8601
8667
|
: undefined,
|
|
8602
8668
|
TrainingEndTime:
|
|
8603
8669
|
output.TrainingEndTime !== undefined && output.TrainingEndTime !== null
|
|
8604
|
-
?
|
|
8670
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.TrainingEndTime)))
|
|
8605
8671
|
: undefined,
|
|
8606
8672
|
TrainingStartTime:
|
|
8607
8673
|
output.TrainingStartTime !== undefined && output.TrainingStartTime !== null
|
|
8608
|
-
?
|
|
8674
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.TrainingStartTime)))
|
|
8609
8675
|
: undefined,
|
|
8610
8676
|
VolumeKmsKeyId: __expectString(output.VolumeKmsKeyId),
|
|
8611
8677
|
VpcConfig:
|
|
@@ -8634,9 +8700,9 @@ const deserializeAws_json1_1EntityTypesEvaluationMetrics = (
|
|
|
8634
8700
|
context: __SerdeContext
|
|
8635
8701
|
): EntityTypesEvaluationMetrics => {
|
|
8636
8702
|
return {
|
|
8637
|
-
F1Score:
|
|
8638
|
-
Precision:
|
|
8639
|
-
Recall:
|
|
8703
|
+
F1Score: __limitedParseDouble(output.F1Score),
|
|
8704
|
+
Precision: __limitedParseDouble(output.Precision),
|
|
8705
|
+
Recall: __limitedParseDouble(output.Recall),
|
|
8640
8706
|
} as any;
|
|
8641
8707
|
};
|
|
8642
8708
|
|
|
@@ -8664,7 +8730,9 @@ const deserializeAws_json1_1EventsDetectionJobProperties = (
|
|
|
8664
8730
|
return {
|
|
8665
8731
|
DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
|
|
8666
8732
|
EndTime:
|
|
8667
|
-
output.EndTime !== undefined && output.EndTime !== null
|
|
8733
|
+
output.EndTime !== undefined && output.EndTime !== null
|
|
8734
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
|
|
8735
|
+
: undefined,
|
|
8668
8736
|
InputDataConfig:
|
|
8669
8737
|
output.InputDataConfig !== undefined && output.InputDataConfig !== null
|
|
8670
8738
|
? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
|
|
@@ -8681,7 +8749,7 @@ const deserializeAws_json1_1EventsDetectionJobProperties = (
|
|
|
8681
8749
|
: undefined,
|
|
8682
8750
|
SubmitTime:
|
|
8683
8751
|
output.SubmitTime !== undefined && output.SubmitTime !== null
|
|
8684
|
-
?
|
|
8752
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime)))
|
|
8685
8753
|
: undefined,
|
|
8686
8754
|
TargetEventTypes:
|
|
8687
8755
|
output.TargetEventTypes !== undefined && output.TargetEventTypes !== null
|
|
@@ -8706,6 +8774,10 @@ const deserializeAws_json1_1EventsDetectionJobPropertiesList = (
|
|
|
8706
8774
|
|
|
8707
8775
|
const deserializeAws_json1_1InputDataConfig = (output: any, context: __SerdeContext): InputDataConfig => {
|
|
8708
8776
|
return {
|
|
8777
|
+
DocumentReaderConfig:
|
|
8778
|
+
output.DocumentReaderConfig !== undefined && output.DocumentReaderConfig !== null
|
|
8779
|
+
? deserializeAws_json1_1DocumentReaderConfig(output.DocumentReaderConfig, context)
|
|
8780
|
+
: undefined,
|
|
8709
8781
|
InputFormat: __expectString(output.InputFormat),
|
|
8710
8782
|
S3Uri: __expectString(output.S3Uri),
|
|
8711
8783
|
} as any;
|
|
@@ -8743,9 +8815,9 @@ const deserializeAws_json1_1JobNotFoundException = (output: any, context: __Serd
|
|
|
8743
8815
|
|
|
8744
8816
|
const deserializeAws_json1_1KeyPhrase = (output: any, context: __SerdeContext): KeyPhrase => {
|
|
8745
8817
|
return {
|
|
8746
|
-
BeginOffset:
|
|
8747
|
-
EndOffset:
|
|
8748
|
-
Score:
|
|
8818
|
+
BeginOffset: __expectInt32(output.BeginOffset),
|
|
8819
|
+
EndOffset: __expectInt32(output.EndOffset),
|
|
8820
|
+
Score: __limitedParseFloat32(output.Score),
|
|
8749
8821
|
Text: __expectString(output.Text),
|
|
8750
8822
|
} as any;
|
|
8751
8823
|
};
|
|
@@ -8757,7 +8829,9 @@ const deserializeAws_json1_1KeyPhrasesDetectionJobProperties = (
|
|
|
8757
8829
|
return {
|
|
8758
8830
|
DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
|
|
8759
8831
|
EndTime:
|
|
8760
|
-
output.EndTime !== undefined && output.EndTime !== null
|
|
8832
|
+
output.EndTime !== undefined && output.EndTime !== null
|
|
8833
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
|
|
8834
|
+
: undefined,
|
|
8761
8835
|
InputDataConfig:
|
|
8762
8836
|
output.InputDataConfig !== undefined && output.InputDataConfig !== null
|
|
8763
8837
|
? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
|
|
@@ -8774,7 +8848,7 @@ const deserializeAws_json1_1KeyPhrasesDetectionJobProperties = (
|
|
|
8774
8848
|
: undefined,
|
|
8775
8849
|
SubmitTime:
|
|
8776
8850
|
output.SubmitTime !== undefined && output.SubmitTime !== null
|
|
8777
|
-
?
|
|
8851
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime)))
|
|
8778
8852
|
: undefined,
|
|
8779
8853
|
VolumeKmsKeyId: __expectString(output.VolumeKmsKeyId),
|
|
8780
8854
|
VpcConfig:
|
|
@@ -9000,6 +9074,20 @@ const deserializeAws_json1_1ListOfDetectSyntaxResult = (
|
|
|
9000
9074
|
});
|
|
9001
9075
|
};
|
|
9002
9076
|
|
|
9077
|
+
const deserializeAws_json1_1ListOfDocumentReadFeatureTypes = (
|
|
9078
|
+
output: any,
|
|
9079
|
+
context: __SerdeContext
|
|
9080
|
+
): (DocumentReadFeatureTypes | string)[] => {
|
|
9081
|
+
return (output || [])
|
|
9082
|
+
.filter((e: any) => e != null)
|
|
9083
|
+
.map((entry: any) => {
|
|
9084
|
+
if (entry === null) {
|
|
9085
|
+
return null as any;
|
|
9086
|
+
}
|
|
9087
|
+
return __expectString(entry) as any;
|
|
9088
|
+
});
|
|
9089
|
+
};
|
|
9090
|
+
|
|
9003
9091
|
const deserializeAws_json1_1ListOfDominantLanguages = (output: any, context: __SerdeContext): DominantLanguage[] => {
|
|
9004
9092
|
return (output || [])
|
|
9005
9093
|
.filter((e: any) => e != null)
|
|
@@ -9156,7 +9244,7 @@ const deserializeAws_json1_1OutputDataConfig = (output: any, context: __SerdeCon
|
|
|
9156
9244
|
|
|
9157
9245
|
const deserializeAws_json1_1PartOfSpeechTag = (output: any, context: __SerdeContext): PartOfSpeechTag => {
|
|
9158
9246
|
return {
|
|
9159
|
-
Score:
|
|
9247
|
+
Score: __limitedParseFloat32(output.Score),
|
|
9160
9248
|
Tag: __expectString(output.Tag),
|
|
9161
9249
|
} as any;
|
|
9162
9250
|
};
|
|
@@ -9168,7 +9256,9 @@ const deserializeAws_json1_1PiiEntitiesDetectionJobProperties = (
|
|
|
9168
9256
|
return {
|
|
9169
9257
|
DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
|
|
9170
9258
|
EndTime:
|
|
9171
|
-
output.EndTime !== undefined && output.EndTime !== null
|
|
9259
|
+
output.EndTime !== undefined && output.EndTime !== null
|
|
9260
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
|
|
9261
|
+
: undefined,
|
|
9172
9262
|
InputDataConfig:
|
|
9173
9263
|
output.InputDataConfig !== undefined && output.InputDataConfig !== null
|
|
9174
9264
|
? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
|
|
@@ -9190,7 +9280,7 @@ const deserializeAws_json1_1PiiEntitiesDetectionJobProperties = (
|
|
|
9190
9280
|
: undefined,
|
|
9191
9281
|
SubmitTime:
|
|
9192
9282
|
output.SubmitTime !== undefined && output.SubmitTime !== null
|
|
9193
|
-
?
|
|
9283
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime)))
|
|
9194
9284
|
: undefined,
|
|
9195
9285
|
} as any;
|
|
9196
9286
|
};
|
|
@@ -9211,9 +9301,9 @@ const deserializeAws_json1_1PiiEntitiesDetectionJobPropertiesList = (
|
|
|
9211
9301
|
|
|
9212
9302
|
const deserializeAws_json1_1PiiEntity = (output: any, context: __SerdeContext): PiiEntity => {
|
|
9213
9303
|
return {
|
|
9214
|
-
BeginOffset:
|
|
9215
|
-
EndOffset:
|
|
9216
|
-
Score:
|
|
9304
|
+
BeginOffset: __expectInt32(output.BeginOffset),
|
|
9305
|
+
EndOffset: __expectInt32(output.EndOffset),
|
|
9306
|
+
Score: __limitedParseFloat32(output.Score),
|
|
9217
9307
|
Type: __expectString(output.Type),
|
|
9218
9308
|
} as any;
|
|
9219
9309
|
};
|
|
@@ -9287,7 +9377,9 @@ const deserializeAws_json1_1SentimentDetectionJobProperties = (
|
|
|
9287
9377
|
return {
|
|
9288
9378
|
DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
|
|
9289
9379
|
EndTime:
|
|
9290
|
-
output.EndTime !== undefined && output.EndTime !== null
|
|
9380
|
+
output.EndTime !== undefined && output.EndTime !== null
|
|
9381
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
|
|
9382
|
+
: undefined,
|
|
9291
9383
|
InputDataConfig:
|
|
9292
9384
|
output.InputDataConfig !== undefined && output.InputDataConfig !== null
|
|
9293
9385
|
? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
|
|
@@ -9304,7 +9396,7 @@ const deserializeAws_json1_1SentimentDetectionJobProperties = (
|
|
|
9304
9396
|
: undefined,
|
|
9305
9397
|
SubmitTime:
|
|
9306
9398
|
output.SubmitTime !== undefined && output.SubmitTime !== null
|
|
9307
|
-
?
|
|
9399
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime)))
|
|
9308
9400
|
: undefined,
|
|
9309
9401
|
VolumeKmsKeyId: __expectString(output.VolumeKmsKeyId),
|
|
9310
9402
|
VpcConfig:
|
|
@@ -9330,10 +9422,10 @@ const deserializeAws_json1_1SentimentDetectionJobPropertiesList = (
|
|
|
9330
9422
|
|
|
9331
9423
|
const deserializeAws_json1_1SentimentScore = (output: any, context: __SerdeContext): SentimentScore => {
|
|
9332
9424
|
return {
|
|
9333
|
-
Mixed:
|
|
9334
|
-
Negative:
|
|
9335
|
-
Neutral:
|
|
9336
|
-
Positive:
|
|
9425
|
+
Mixed: __limitedParseFloat32(output.Mixed),
|
|
9426
|
+
Negative: __limitedParseFloat32(output.Negative),
|
|
9427
|
+
Neutral: __limitedParseFloat32(output.Neutral),
|
|
9428
|
+
Positive: __limitedParseFloat32(output.Positive),
|
|
9337
9429
|
} as any;
|
|
9338
9430
|
};
|
|
9339
9431
|
|
|
@@ -9512,14 +9604,14 @@ const deserializeAws_json1_1Subnets = (output: any, context: __SerdeContext): st
|
|
|
9512
9604
|
|
|
9513
9605
|
const deserializeAws_json1_1SyntaxToken = (output: any, context: __SerdeContext): SyntaxToken => {
|
|
9514
9606
|
return {
|
|
9515
|
-
BeginOffset:
|
|
9516
|
-
EndOffset:
|
|
9607
|
+
BeginOffset: __expectInt32(output.BeginOffset),
|
|
9608
|
+
EndOffset: __expectInt32(output.EndOffset),
|
|
9517
9609
|
PartOfSpeech:
|
|
9518
9610
|
output.PartOfSpeech !== undefined && output.PartOfSpeech !== null
|
|
9519
9611
|
? deserializeAws_json1_1PartOfSpeechTag(output.PartOfSpeech, context)
|
|
9520
9612
|
: undefined,
|
|
9521
9613
|
Text: __expectString(output.Text),
|
|
9522
|
-
TokenId:
|
|
9614
|
+
TokenId: __expectInt32(output.TokenId),
|
|
9523
9615
|
} as any;
|
|
9524
9616
|
};
|
|
9525
9617
|
|
|
@@ -9596,7 +9688,9 @@ const deserializeAws_json1_1TopicsDetectionJobProperties = (
|
|
|
9596
9688
|
return {
|
|
9597
9689
|
DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
|
|
9598
9690
|
EndTime:
|
|
9599
|
-
output.EndTime !== undefined && output.EndTime !== null
|
|
9691
|
+
output.EndTime !== undefined && output.EndTime !== null
|
|
9692
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
|
|
9693
|
+
: undefined,
|
|
9600
9694
|
InputDataConfig:
|
|
9601
9695
|
output.InputDataConfig !== undefined && output.InputDataConfig !== null
|
|
9602
9696
|
? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
|
|
@@ -9606,14 +9700,14 @@ const deserializeAws_json1_1TopicsDetectionJobProperties = (
|
|
|
9606
9700
|
JobName: __expectString(output.JobName),
|
|
9607
9701
|
JobStatus: __expectString(output.JobStatus),
|
|
9608
9702
|
Message: __expectString(output.Message),
|
|
9609
|
-
NumberOfTopics:
|
|
9703
|
+
NumberOfTopics: __expectInt32(output.NumberOfTopics),
|
|
9610
9704
|
OutputDataConfig:
|
|
9611
9705
|
output.OutputDataConfig !== undefined && output.OutputDataConfig !== null
|
|
9612
9706
|
? deserializeAws_json1_1OutputDataConfig(output.OutputDataConfig, context)
|
|
9613
9707
|
: undefined,
|
|
9614
9708
|
SubmitTime:
|
|
9615
9709
|
output.SubmitTime !== undefined && output.SubmitTime !== null
|
|
9616
|
-
?
|
|
9710
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime)))
|
|
9617
9711
|
: undefined,
|
|
9618
9712
|
VolumeKmsKeyId: __expectString(output.VolumeKmsKeyId),
|
|
9619
9713
|
VpcConfig:
|