@aws-sdk/client-frauddetector 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 +344 -483
- package/dist-es/protocols/Aws_json1_1.js +175 -314
- package/package.json +26 -26
|
@@ -5375,61 +5375,49 @@ var deserializeAws_json1_1ValidationExceptionResponse = function (parsedOutput,
|
|
|
5375
5375
|
});
|
|
5376
5376
|
}); };
|
|
5377
5377
|
var serializeAws_json1_1BatchCreateVariableRequest = function (input, context) {
|
|
5378
|
-
return __assign(__assign({}, (input.tags
|
|
5379
|
-
input.variableEntries !== null && {
|
|
5378
|
+
return __assign(__assign({}, (input.tags != null && { tags: serializeAws_json1_1tagList(input.tags, context) })), (input.variableEntries != null && {
|
|
5380
5379
|
variableEntries: serializeAws_json1_1VariableEntryList(input.variableEntries, context),
|
|
5381
5380
|
}));
|
|
5382
5381
|
};
|
|
5383
5382
|
var serializeAws_json1_1BatchGetVariableRequest = function (input, context) {
|
|
5384
|
-
return __assign({}, (input.names
|
|
5385
|
-
input.names !== null && { names: serializeAws_json1_1NameList(input.names, context) }));
|
|
5383
|
+
return __assign({}, (input.names != null && { names: serializeAws_json1_1NameList(input.names, context) }));
|
|
5386
5384
|
};
|
|
5387
5385
|
var serializeAws_json1_1CancelBatchImportJobRequest = function (input, context) {
|
|
5388
|
-
return __assign({}, (input.jobId
|
|
5386
|
+
return __assign({}, (input.jobId != null && { jobId: input.jobId }));
|
|
5389
5387
|
};
|
|
5390
5388
|
var serializeAws_json1_1CancelBatchPredictionJobRequest = function (input, context) {
|
|
5391
|
-
return __assign({}, (input.jobId
|
|
5389
|
+
return __assign({}, (input.jobId != null && { jobId: input.jobId }));
|
|
5392
5390
|
};
|
|
5393
5391
|
var serializeAws_json1_1CreateBatchImportJobRequest = function (input, context) {
|
|
5394
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.eventTypeName
|
|
5392
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.eventTypeName != null && { eventTypeName: input.eventTypeName })), (input.iamRoleArn != null && { iamRoleArn: input.iamRoleArn })), (input.inputPath != null && { inputPath: input.inputPath })), (input.jobId != null && { jobId: input.jobId })), (input.outputPath != null && { outputPath: input.outputPath })), (input.tags != null && { tags: serializeAws_json1_1tagList(input.tags, context) }));
|
|
5395
5393
|
};
|
|
5396
5394
|
var serializeAws_json1_1CreateBatchPredictionJobRequest = function (input, context) {
|
|
5397
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.detectorName
|
|
5398
|
-
input.detectorVersion !== null && { detectorVersion: input.detectorVersion })), (input.eventTypeName !== undefined && input.eventTypeName !== null && { eventTypeName: input.eventTypeName })), (input.iamRoleArn !== undefined && input.iamRoleArn !== null && { iamRoleArn: input.iamRoleArn })), (input.inputPath !== undefined && input.inputPath !== null && { inputPath: input.inputPath })), (input.jobId !== undefined && input.jobId !== null && { jobId: input.jobId })), (input.outputPath !== undefined && input.outputPath !== null && { outputPath: input.outputPath })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1tagList(input.tags, context) }));
|
|
5395
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.detectorName != null && { detectorName: input.detectorName })), (input.detectorVersion != null && { detectorVersion: input.detectorVersion })), (input.eventTypeName != null && { eventTypeName: input.eventTypeName })), (input.iamRoleArn != null && { iamRoleArn: input.iamRoleArn })), (input.inputPath != null && { inputPath: input.inputPath })), (input.jobId != null && { jobId: input.jobId })), (input.outputPath != null && { outputPath: input.outputPath })), (input.tags != null && { tags: serializeAws_json1_1tagList(input.tags, context) }));
|
|
5399
5396
|
};
|
|
5400
5397
|
var serializeAws_json1_1CreateDetectorVersionRequest = function (input, context) {
|
|
5401
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description
|
|
5402
|
-
input.externalModelEndpoints !== null && {
|
|
5398
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.detectorId != null && { detectorId: input.detectorId })), (input.externalModelEndpoints != null && {
|
|
5403
5399
|
externalModelEndpoints: serializeAws_json1_1ListOfStrings(input.externalModelEndpoints, context),
|
|
5404
|
-
})), (input.modelVersions
|
|
5405
|
-
input.modelVersions !== null && {
|
|
5400
|
+
})), (input.modelVersions != null && {
|
|
5406
5401
|
modelVersions: serializeAws_json1_1ListOfModelVersions(input.modelVersions, context),
|
|
5407
|
-
})), (input.ruleExecutionMode
|
|
5408
|
-
input.ruleExecutionMode !== null && { ruleExecutionMode: input.ruleExecutionMode })), (input.rules !== undefined &&
|
|
5409
|
-
input.rules !== null && { rules: serializeAws_json1_1RuleList(input.rules, context) })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1tagList(input.tags, context) }));
|
|
5402
|
+
})), (input.ruleExecutionMode != null && { ruleExecutionMode: input.ruleExecutionMode })), (input.rules != null && { rules: serializeAws_json1_1RuleList(input.rules, context) })), (input.tags != null && { tags: serializeAws_json1_1tagList(input.tags, context) }));
|
|
5410
5403
|
};
|
|
5411
5404
|
var serializeAws_json1_1CreateModelRequest = function (input, context) {
|
|
5412
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.description
|
|
5405
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.eventTypeName != null && { eventTypeName: input.eventTypeName })), (input.modelId != null && { modelId: input.modelId })), (input.modelType != null && { modelType: input.modelType })), (input.tags != null && { tags: serializeAws_json1_1tagList(input.tags, context) }));
|
|
5413
5406
|
};
|
|
5414
5407
|
var serializeAws_json1_1CreateModelVersionRequest = function (input, context) {
|
|
5415
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.externalEventsDetail
|
|
5416
|
-
input.externalEventsDetail !== null && {
|
|
5408
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.externalEventsDetail != null && {
|
|
5417
5409
|
externalEventsDetail: serializeAws_json1_1ExternalEventsDetail(input.externalEventsDetail, context),
|
|
5418
|
-
})), (input.ingestedEventsDetail
|
|
5419
|
-
input.ingestedEventsDetail !== null && {
|
|
5410
|
+
})), (input.ingestedEventsDetail != null && {
|
|
5420
5411
|
ingestedEventsDetail: serializeAws_json1_1IngestedEventsDetail(input.ingestedEventsDetail, context),
|
|
5421
|
-
})), (input.modelId
|
|
5422
|
-
input.trainingDataSchema !== null && {
|
|
5412
|
+
})), (input.modelId != null && { modelId: input.modelId })), (input.modelType != null && { modelType: input.modelType })), (input.tags != null && { tags: serializeAws_json1_1tagList(input.tags, context) })), (input.trainingDataSchema != null && {
|
|
5423
5413
|
trainingDataSchema: serializeAws_json1_1TrainingDataSchema(input.trainingDataSchema, context),
|
|
5424
|
-
})), (input.trainingDataSource
|
|
5425
|
-
input.trainingDataSource !== null && { trainingDataSource: input.trainingDataSource }));
|
|
5414
|
+
})), (input.trainingDataSource != null && { trainingDataSource: input.trainingDataSource }));
|
|
5426
5415
|
};
|
|
5427
5416
|
var serializeAws_json1_1CreateRuleRequest = function (input, context) {
|
|
5428
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description
|
|
5429
|
-
input.outcomes !== null && { outcomes: serializeAws_json1_1NonEmptyListOfStrings(input.outcomes, context) })), (input.ruleId !== undefined && input.ruleId !== null && { ruleId: input.ruleId })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1tagList(input.tags, context) }));
|
|
5417
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.detectorId != null && { detectorId: input.detectorId })), (input.expression != null && { expression: input.expression })), (input.language != null && { language: input.language })), (input.outcomes != null && { outcomes: serializeAws_json1_1NonEmptyListOfStrings(input.outcomes, context) })), (input.ruleId != null && { ruleId: input.ruleId })), (input.tags != null && { tags: serializeAws_json1_1tagList(input.tags, context) }));
|
|
5430
5418
|
};
|
|
5431
5419
|
var serializeAws_json1_1CreateVariableRequest = function (input, context) {
|
|
5432
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.dataSource
|
|
5420
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.dataSource != null && { dataSource: input.dataSource })), (input.dataType != null && { dataType: input.dataType })), (input.defaultValue != null && { defaultValue: input.defaultValue })), (input.description != null && { description: input.description })), (input.name != null && { name: input.name })), (input.tags != null && { tags: serializeAws_json1_1tagList(input.tags, context) })), (input.variableType != null && { variableType: input.variableType }));
|
|
5433
5421
|
};
|
|
5434
5422
|
var serializeAws_json1_1CsvIndexToVariableMap = function (input, context) {
|
|
5435
5423
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -5442,62 +5430,58 @@ var serializeAws_json1_1CsvIndexToVariableMap = function (input, context) {
|
|
|
5442
5430
|
}, {});
|
|
5443
5431
|
};
|
|
5444
5432
|
var serializeAws_json1_1DeleteBatchImportJobRequest = function (input, context) {
|
|
5445
|
-
return __assign({}, (input.jobId
|
|
5433
|
+
return __assign({}, (input.jobId != null && { jobId: input.jobId }));
|
|
5446
5434
|
};
|
|
5447
5435
|
var serializeAws_json1_1DeleteBatchPredictionJobRequest = function (input, context) {
|
|
5448
|
-
return __assign({}, (input.jobId
|
|
5436
|
+
return __assign({}, (input.jobId != null && { jobId: input.jobId }));
|
|
5449
5437
|
};
|
|
5450
5438
|
var serializeAws_json1_1DeleteDetectorRequest = function (input, context) {
|
|
5451
|
-
return __assign({}, (input.detectorId
|
|
5439
|
+
return __assign({}, (input.detectorId != null && { detectorId: input.detectorId }));
|
|
5452
5440
|
};
|
|
5453
5441
|
var serializeAws_json1_1DeleteDetectorVersionRequest = function (input, context) {
|
|
5454
|
-
return __assign(__assign({}, (input.detectorId
|
|
5455
|
-
input.detectorVersionId !== null && { detectorVersionId: input.detectorVersionId }));
|
|
5442
|
+
return __assign(__assign({}, (input.detectorId != null && { detectorId: input.detectorId })), (input.detectorVersionId != null && { detectorVersionId: input.detectorVersionId }));
|
|
5456
5443
|
};
|
|
5457
5444
|
var serializeAws_json1_1DeleteEntityTypeRequest = function (input, context) {
|
|
5458
|
-
return __assign({}, (input.name
|
|
5445
|
+
return __assign({}, (input.name != null && { name: input.name }));
|
|
5459
5446
|
};
|
|
5460
5447
|
var serializeAws_json1_1DeleteEventRequest = function (input, context) {
|
|
5461
|
-
return __assign(__assign(__assign({}, (input.deleteAuditHistory
|
|
5462
|
-
input.deleteAuditHistory !== null && { deleteAuditHistory: input.deleteAuditHistory })), (input.eventId !== undefined && input.eventId !== null && { eventId: input.eventId })), (input.eventTypeName !== undefined && input.eventTypeName !== null && { eventTypeName: input.eventTypeName }));
|
|
5448
|
+
return __assign(__assign(__assign({}, (input.deleteAuditHistory != null && { deleteAuditHistory: input.deleteAuditHistory })), (input.eventId != null && { eventId: input.eventId })), (input.eventTypeName != null && { eventTypeName: input.eventTypeName }));
|
|
5463
5449
|
};
|
|
5464
5450
|
var serializeAws_json1_1DeleteEventsByEventTypeRequest = function (input, context) {
|
|
5465
|
-
return __assign({}, (input.eventTypeName
|
|
5451
|
+
return __assign({}, (input.eventTypeName != null && { eventTypeName: input.eventTypeName }));
|
|
5466
5452
|
};
|
|
5467
5453
|
var serializeAws_json1_1DeleteEventTypeRequest = function (input, context) {
|
|
5468
|
-
return __assign({}, (input.name
|
|
5454
|
+
return __assign({}, (input.name != null && { name: input.name }));
|
|
5469
5455
|
};
|
|
5470
5456
|
var serializeAws_json1_1DeleteExternalModelRequest = function (input, context) {
|
|
5471
|
-
return __assign({}, (input.modelEndpoint
|
|
5457
|
+
return __assign({}, (input.modelEndpoint != null && { modelEndpoint: input.modelEndpoint }));
|
|
5472
5458
|
};
|
|
5473
5459
|
var serializeAws_json1_1DeleteLabelRequest = function (input, context) {
|
|
5474
|
-
return __assign({}, (input.name
|
|
5460
|
+
return __assign({}, (input.name != null && { name: input.name }));
|
|
5475
5461
|
};
|
|
5476
5462
|
var serializeAws_json1_1DeleteModelRequest = function (input, context) {
|
|
5477
|
-
return __assign(__assign({}, (input.modelId
|
|
5463
|
+
return __assign(__assign({}, (input.modelId != null && { modelId: input.modelId })), (input.modelType != null && { modelType: input.modelType }));
|
|
5478
5464
|
};
|
|
5479
5465
|
var serializeAws_json1_1DeleteModelVersionRequest = function (input, context) {
|
|
5480
|
-
return __assign(__assign(__assign({}, (input.modelId
|
|
5481
|
-
input.modelVersionNumber !== null && { modelVersionNumber: input.modelVersionNumber }));
|
|
5466
|
+
return __assign(__assign(__assign({}, (input.modelId != null && { modelId: input.modelId })), (input.modelType != null && { modelType: input.modelType })), (input.modelVersionNumber != null && { modelVersionNumber: input.modelVersionNumber }));
|
|
5482
5467
|
};
|
|
5483
5468
|
var serializeAws_json1_1DeleteOutcomeRequest = function (input, context) {
|
|
5484
|
-
return __assign({}, (input.name
|
|
5469
|
+
return __assign({}, (input.name != null && { name: input.name }));
|
|
5485
5470
|
};
|
|
5486
5471
|
var serializeAws_json1_1DeleteRuleRequest = function (input, context) {
|
|
5487
|
-
return __assign({}, (input.rule
|
|
5472
|
+
return __assign({}, (input.rule != null && { rule: serializeAws_json1_1Rule(input.rule, context) }));
|
|
5488
5473
|
};
|
|
5489
5474
|
var serializeAws_json1_1DeleteVariableRequest = function (input, context) {
|
|
5490
|
-
return __assign({}, (input.name
|
|
5475
|
+
return __assign({}, (input.name != null && { name: input.name }));
|
|
5491
5476
|
};
|
|
5492
5477
|
var serializeAws_json1_1DescribeDetectorRequest = function (input, context) {
|
|
5493
|
-
return __assign(__assign(__assign({}, (input.detectorId
|
|
5478
|
+
return __assign(__assign(__assign({}, (input.detectorId != null && { detectorId: input.detectorId })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken }));
|
|
5494
5479
|
};
|
|
5495
5480
|
var serializeAws_json1_1DescribeModelVersionsRequest = function (input, context) {
|
|
5496
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.maxResults
|
|
5497
|
-
input.modelVersionNumber !== null && { modelVersionNumber: input.modelVersionNumber })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
|
|
5481
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.modelId != null && { modelId: input.modelId })), (input.modelType != null && { modelType: input.modelType })), (input.modelVersionNumber != null && { modelVersionNumber: input.modelVersionNumber })), (input.nextToken != null && { nextToken: input.nextToken }));
|
|
5498
5482
|
};
|
|
5499
5483
|
var serializeAws_json1_1Entity = function (input, context) {
|
|
5500
|
-
return __assign(__assign({}, (input.entityId
|
|
5484
|
+
return __assign(__assign({}, (input.entityId != null && { entityId: input.entityId })), (input.entityType != null && { entityType: input.entityType }));
|
|
5501
5485
|
};
|
|
5502
5486
|
var serializeAws_json1_1EventVariableMap = function (input, context) {
|
|
5503
5487
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -5510,8 +5494,7 @@ var serializeAws_json1_1EventVariableMap = function (input, context) {
|
|
|
5510
5494
|
}, {});
|
|
5511
5495
|
};
|
|
5512
5496
|
var serializeAws_json1_1ExternalEventsDetail = function (input, context) {
|
|
5513
|
-
return __assign(__assign({}, (input.dataAccessRoleArn
|
|
5514
|
-
input.dataAccessRoleArn !== null && { dataAccessRoleArn: input.dataAccessRoleArn })), (input.dataLocation !== undefined && input.dataLocation !== null && { dataLocation: input.dataLocation }));
|
|
5497
|
+
return __assign(__assign({}, (input.dataAccessRoleArn != null && { dataAccessRoleArn: input.dataAccessRoleArn })), (input.dataLocation != null && { dataLocation: input.dataLocation }));
|
|
5515
5498
|
};
|
|
5516
5499
|
var serializeAws_json1_1ExternalModelEndpointDataBlobMap = function (input, context) {
|
|
5517
5500
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -5524,80 +5507,70 @@ var serializeAws_json1_1ExternalModelEndpointDataBlobMap = function (input, cont
|
|
|
5524
5507
|
}, {});
|
|
5525
5508
|
};
|
|
5526
5509
|
var serializeAws_json1_1FilterCondition = function (input, context) {
|
|
5527
|
-
return __assign({}, (input.value
|
|
5510
|
+
return __assign({}, (input.value != null && { value: input.value }));
|
|
5528
5511
|
};
|
|
5529
5512
|
var serializeAws_json1_1GetBatchImportJobsRequest = function (input, context) {
|
|
5530
|
-
return __assign(__assign(__assign({}, (input.jobId
|
|
5513
|
+
return __assign(__assign(__assign({}, (input.jobId != null && { jobId: input.jobId })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken }));
|
|
5531
5514
|
};
|
|
5532
5515
|
var serializeAws_json1_1GetBatchPredictionJobsRequest = function (input, context) {
|
|
5533
|
-
return __assign(__assign(__assign({}, (input.jobId
|
|
5516
|
+
return __assign(__assign(__assign({}, (input.jobId != null && { jobId: input.jobId })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken }));
|
|
5534
5517
|
};
|
|
5535
5518
|
var serializeAws_json1_1GetDeleteEventsByEventTypeStatusRequest = function (input, context) {
|
|
5536
|
-
return __assign({}, (input.eventTypeName
|
|
5519
|
+
return __assign({}, (input.eventTypeName != null && { eventTypeName: input.eventTypeName }));
|
|
5537
5520
|
};
|
|
5538
5521
|
var serializeAws_json1_1GetDetectorsRequest = function (input, context) {
|
|
5539
|
-
return __assign(__assign(__assign({}, (input.detectorId
|
|
5522
|
+
return __assign(__assign(__assign({}, (input.detectorId != null && { detectorId: input.detectorId })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken }));
|
|
5540
5523
|
};
|
|
5541
5524
|
var serializeAws_json1_1GetDetectorVersionRequest = function (input, context) {
|
|
5542
|
-
return __assign(__assign({}, (input.detectorId
|
|
5543
|
-
input.detectorVersionId !== null && { detectorVersionId: input.detectorVersionId }));
|
|
5525
|
+
return __assign(__assign({}, (input.detectorId != null && { detectorId: input.detectorId })), (input.detectorVersionId != null && { detectorVersionId: input.detectorVersionId }));
|
|
5544
5526
|
};
|
|
5545
5527
|
var serializeAws_json1_1GetEntityTypesRequest = function (input, context) {
|
|
5546
|
-
return __assign(__assign(__assign({}, (input.maxResults
|
|
5528
|
+
return __assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.name != null && { name: input.name })), (input.nextToken != null && { nextToken: input.nextToken }));
|
|
5547
5529
|
};
|
|
5548
5530
|
var serializeAws_json1_1GetEventPredictionMetadataRequest = function (input, context) {
|
|
5549
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.detectorId
|
|
5550
|
-
input.detectorVersionId !== null && { detectorVersionId: input.detectorVersionId })), (input.eventId !== undefined && input.eventId !== null && { eventId: input.eventId })), (input.eventTypeName !== undefined && input.eventTypeName !== null && { eventTypeName: input.eventTypeName })), (input.predictionTimestamp !== undefined &&
|
|
5551
|
-
input.predictionTimestamp !== null && { predictionTimestamp: input.predictionTimestamp }));
|
|
5531
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.detectorId != null && { detectorId: input.detectorId })), (input.detectorVersionId != null && { detectorVersionId: input.detectorVersionId })), (input.eventId != null && { eventId: input.eventId })), (input.eventTypeName != null && { eventTypeName: input.eventTypeName })), (input.predictionTimestamp != null && { predictionTimestamp: input.predictionTimestamp }));
|
|
5552
5532
|
};
|
|
5553
5533
|
var serializeAws_json1_1GetEventPredictionRequest = function (input, context) {
|
|
5554
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.detectorId
|
|
5555
|
-
input.detectorVersionId !== null && { detectorVersionId: input.detectorVersionId })), (input.entities !== undefined &&
|
|
5556
|
-
input.entities !== null && { entities: serializeAws_json1_1listOfEntities(input.entities, context) })), (input.eventId !== undefined && input.eventId !== null && { eventId: input.eventId })), (input.eventTimestamp !== undefined &&
|
|
5557
|
-
input.eventTimestamp !== null && { eventTimestamp: input.eventTimestamp })), (input.eventTypeName !== undefined && input.eventTypeName !== null && { eventTypeName: input.eventTypeName })), (input.eventVariables !== undefined &&
|
|
5558
|
-
input.eventVariables !== null && {
|
|
5534
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.detectorId != null && { detectorId: input.detectorId })), (input.detectorVersionId != null && { detectorVersionId: input.detectorVersionId })), (input.entities != null && { entities: serializeAws_json1_1listOfEntities(input.entities, context) })), (input.eventId != null && { eventId: input.eventId })), (input.eventTimestamp != null && { eventTimestamp: input.eventTimestamp })), (input.eventTypeName != null && { eventTypeName: input.eventTypeName })), (input.eventVariables != null && {
|
|
5559
5535
|
eventVariables: serializeAws_json1_1EventVariableMap(input.eventVariables, context),
|
|
5560
|
-
})), (input.externalModelEndpointDataBlobs
|
|
5561
|
-
input.externalModelEndpointDataBlobs !== null && {
|
|
5536
|
+
})), (input.externalModelEndpointDataBlobs != null && {
|
|
5562
5537
|
externalModelEndpointDataBlobs: serializeAws_json1_1ExternalModelEndpointDataBlobMap(input.externalModelEndpointDataBlobs, context),
|
|
5563
5538
|
}));
|
|
5564
5539
|
};
|
|
5565
5540
|
var serializeAws_json1_1GetEventRequest = function (input, context) {
|
|
5566
|
-
return __assign(__assign({}, (input.eventId
|
|
5541
|
+
return __assign(__assign({}, (input.eventId != null && { eventId: input.eventId })), (input.eventTypeName != null && { eventTypeName: input.eventTypeName }));
|
|
5567
5542
|
};
|
|
5568
5543
|
var serializeAws_json1_1GetEventTypesRequest = function (input, context) {
|
|
5569
|
-
return __assign(__assign(__assign({}, (input.maxResults
|
|
5544
|
+
return __assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.name != null && { name: input.name })), (input.nextToken != null && { nextToken: input.nextToken }));
|
|
5570
5545
|
};
|
|
5571
5546
|
var serializeAws_json1_1GetExternalModelsRequest = function (input, context) {
|
|
5572
|
-
return __assign(__assign(__assign({}, (input.maxResults
|
|
5547
|
+
return __assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.modelEndpoint != null && { modelEndpoint: input.modelEndpoint })), (input.nextToken != null && { nextToken: input.nextToken }));
|
|
5573
5548
|
};
|
|
5574
5549
|
var serializeAws_json1_1GetLabelsRequest = function (input, context) {
|
|
5575
|
-
return __assign(__assign(__assign({}, (input.maxResults
|
|
5550
|
+
return __assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.name != null && { name: input.name })), (input.nextToken != null && { nextToken: input.nextToken }));
|
|
5576
5551
|
};
|
|
5577
5552
|
var serializeAws_json1_1GetModelsRequest = function (input, context) {
|
|
5578
|
-
return __assign(__assign(__assign(__assign({}, (input.maxResults
|
|
5553
|
+
return __assign(__assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.modelId != null && { modelId: input.modelId })), (input.modelType != null && { modelType: input.modelType })), (input.nextToken != null && { nextToken: input.nextToken }));
|
|
5579
5554
|
};
|
|
5580
5555
|
var serializeAws_json1_1GetModelVersionRequest = function (input, context) {
|
|
5581
|
-
return __assign(__assign(__assign({}, (input.modelId
|
|
5582
|
-
input.modelVersionNumber !== null && { modelVersionNumber: input.modelVersionNumber }));
|
|
5556
|
+
return __assign(__assign(__assign({}, (input.modelId != null && { modelId: input.modelId })), (input.modelType != null && { modelType: input.modelType })), (input.modelVersionNumber != null && { modelVersionNumber: input.modelVersionNumber }));
|
|
5583
5557
|
};
|
|
5584
5558
|
var serializeAws_json1_1GetOutcomesRequest = function (input, context) {
|
|
5585
|
-
return __assign(__assign(__assign({}, (input.maxResults
|
|
5559
|
+
return __assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.name != null && { name: input.name })), (input.nextToken != null && { nextToken: input.nextToken }));
|
|
5586
5560
|
};
|
|
5587
5561
|
var serializeAws_json1_1GetRulesRequest = function (input, context) {
|
|
5588
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.detectorId
|
|
5562
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.detectorId != null && { detectorId: input.detectorId })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.ruleId != null && { ruleId: input.ruleId })), (input.ruleVersion != null && { ruleVersion: input.ruleVersion }));
|
|
5589
5563
|
};
|
|
5590
5564
|
var serializeAws_json1_1GetVariablesRequest = function (input, context) {
|
|
5591
|
-
return __assign(__assign(__assign({}, (input.maxResults
|
|
5565
|
+
return __assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.name != null && { name: input.name })), (input.nextToken != null && { nextToken: input.nextToken }));
|
|
5592
5566
|
};
|
|
5593
5567
|
var serializeAws_json1_1IngestedEventsDetail = function (input, context) {
|
|
5594
|
-
return __assign({}, (input.ingestedEventsTimeWindow
|
|
5595
|
-
input.ingestedEventsTimeWindow !== null && {
|
|
5568
|
+
return __assign({}, (input.ingestedEventsTimeWindow != null && {
|
|
5596
5569
|
ingestedEventsTimeWindow: serializeAws_json1_1IngestedEventsTimeWindow(input.ingestedEventsTimeWindow, context),
|
|
5597
5570
|
}));
|
|
5598
5571
|
};
|
|
5599
5572
|
var serializeAws_json1_1IngestedEventsTimeWindow = function (input, context) {
|
|
5600
|
-
return __assign(__assign({}, (input.endTime
|
|
5573
|
+
return __assign(__assign({}, (input.endTime != null && { endTime: input.endTime })), (input.startTime != null && { startTime: input.startTime }));
|
|
5601
5574
|
};
|
|
5602
5575
|
var serializeAws_json1_1JsonKeyToVariableMap = function (input, context) {
|
|
5603
5576
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -5620,19 +5593,12 @@ var serializeAws_json1_1labelMapper = function (input, context) {
|
|
|
5620
5593
|
}, {});
|
|
5621
5594
|
};
|
|
5622
5595
|
var serializeAws_json1_1LabelSchema = function (input, context) {
|
|
5623
|
-
return __assign(__assign({}, (input.labelMapper
|
|
5624
|
-
input.labelMapper !== null && { labelMapper: serializeAws_json1_1labelMapper(input.labelMapper, context) })), (input.unlabeledEventsTreatment !== undefined &&
|
|
5625
|
-
input.unlabeledEventsTreatment !== null && { unlabeledEventsTreatment: input.unlabeledEventsTreatment }));
|
|
5596
|
+
return __assign(__assign({}, (input.labelMapper != null && { labelMapper: serializeAws_json1_1labelMapper(input.labelMapper, context) })), (input.unlabeledEventsTreatment != null && { unlabeledEventsTreatment: input.unlabeledEventsTreatment }));
|
|
5626
5597
|
};
|
|
5627
5598
|
var serializeAws_json1_1ListEventPredictionsRequest = function (input, context) {
|
|
5628
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.detectorId
|
|
5629
|
-
input.detectorId !== null && { detectorId: serializeAws_json1_1FilterCondition(input.detectorId, context) })), (input.detectorVersionId !== undefined &&
|
|
5630
|
-
input.detectorVersionId !== null && {
|
|
5599
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.detectorId != null && { detectorId: serializeAws_json1_1FilterCondition(input.detectorId, context) })), (input.detectorVersionId != null && {
|
|
5631
5600
|
detectorVersionId: serializeAws_json1_1FilterCondition(input.detectorVersionId, context),
|
|
5632
|
-
})), (input.eventId
|
|
5633
|
-
input.eventId !== null && { eventId: serializeAws_json1_1FilterCondition(input.eventId, context) })), (input.eventType !== undefined &&
|
|
5634
|
-
input.eventType !== null && { eventType: serializeAws_json1_1FilterCondition(input.eventType, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.predictionTimeRange !== undefined &&
|
|
5635
|
-
input.predictionTimeRange !== null && {
|
|
5601
|
+
})), (input.eventId != null && { eventId: serializeAws_json1_1FilterCondition(input.eventId, context) })), (input.eventType != null && { eventType: serializeAws_json1_1FilterCondition(input.eventType, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.predictionTimeRange != null && {
|
|
5636
5602
|
predictionTimeRange: serializeAws_json1_1PredictionTimeRange(input.predictionTimeRange, context),
|
|
5637
5603
|
}));
|
|
5638
5604
|
};
|
|
@@ -5667,30 +5633,23 @@ var serializeAws_json1_1ListOfStrings = function (input, context) {
|
|
|
5667
5633
|
});
|
|
5668
5634
|
};
|
|
5669
5635
|
var serializeAws_json1_1ListTagsForResourceRequest = function (input, context) {
|
|
5670
|
-
return __assign(__assign(__assign({}, (input.maxResults
|
|
5636
|
+
return __assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.resourceARN != null && { resourceARN: input.resourceARN }));
|
|
5671
5637
|
};
|
|
5672
5638
|
var serializeAws_json1_1ModelEndpointDataBlob = function (input, context) {
|
|
5673
|
-
return __assign(__assign({}, (input.byteBuffer
|
|
5674
|
-
input.byteBuffer !== null && { byteBuffer: context.base64Encoder(input.byteBuffer) })), (input.contentType !== undefined && input.contentType !== null && { contentType: input.contentType }));
|
|
5639
|
+
return __assign(__assign({}, (input.byteBuffer != null && { byteBuffer: context.base64Encoder(input.byteBuffer) })), (input.contentType != null && { contentType: input.contentType }));
|
|
5675
5640
|
};
|
|
5676
5641
|
var serializeAws_json1_1ModelInputConfiguration = function (input, context) {
|
|
5677
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.csvInputTemplate
|
|
5678
|
-
input.csvInputTemplate !== null && { csvInputTemplate: input.csvInputTemplate })), (input.eventTypeName !== undefined && input.eventTypeName !== null && { eventTypeName: input.eventTypeName })), (input.format !== undefined && input.format !== null && { format: input.format })), (input.jsonInputTemplate !== undefined &&
|
|
5679
|
-
input.jsonInputTemplate !== null && { jsonInputTemplate: input.jsonInputTemplate })), (input.useEventVariables !== undefined &&
|
|
5680
|
-
input.useEventVariables !== null && { useEventVariables: input.useEventVariables }));
|
|
5642
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.csvInputTemplate != null && { csvInputTemplate: input.csvInputTemplate })), (input.eventTypeName != null && { eventTypeName: input.eventTypeName })), (input.format != null && { format: input.format })), (input.jsonInputTemplate != null && { jsonInputTemplate: input.jsonInputTemplate })), (input.useEventVariables != null && { useEventVariables: input.useEventVariables }));
|
|
5681
5643
|
};
|
|
5682
5644
|
var serializeAws_json1_1ModelOutputConfiguration = function (input, context) {
|
|
5683
|
-
return __assign(__assign(__assign({}, (input.csvIndexToVariableMap
|
|
5684
|
-
input.csvIndexToVariableMap !== null && {
|
|
5645
|
+
return __assign(__assign(__assign({}, (input.csvIndexToVariableMap != null && {
|
|
5685
5646
|
csvIndexToVariableMap: serializeAws_json1_1CsvIndexToVariableMap(input.csvIndexToVariableMap, context),
|
|
5686
|
-
})), (input.format
|
|
5687
|
-
input.jsonKeyToVariableMap !== null && {
|
|
5647
|
+
})), (input.format != null && { format: input.format })), (input.jsonKeyToVariableMap != null && {
|
|
5688
5648
|
jsonKeyToVariableMap: serializeAws_json1_1JsonKeyToVariableMap(input.jsonKeyToVariableMap, context),
|
|
5689
5649
|
}));
|
|
5690
5650
|
};
|
|
5691
5651
|
var serializeAws_json1_1ModelVersion = function (input, context) {
|
|
5692
|
-
return __assign(__assign(__assign(__assign({}, (input.arn
|
|
5693
|
-
input.modelVersionNumber !== null && { modelVersionNumber: input.modelVersionNumber }));
|
|
5652
|
+
return __assign(__assign(__assign(__assign({}, (input.arn != null && { arn: input.arn })), (input.modelId != null && { modelId: input.modelId })), (input.modelType != null && { modelType: input.modelType })), (input.modelVersionNumber != null && { modelVersionNumber: input.modelVersionNumber }));
|
|
5694
5653
|
};
|
|
5695
5654
|
var serializeAws_json1_1NameList = function (input, context) {
|
|
5696
5655
|
return input
|
|
@@ -5713,48 +5672,39 @@ var serializeAws_json1_1NonEmptyListOfStrings = function (input, context) {
|
|
|
5713
5672
|
});
|
|
5714
5673
|
};
|
|
5715
5674
|
var serializeAws_json1_1PredictionTimeRange = function (input, context) {
|
|
5716
|
-
return __assign(__assign({}, (input.endTime
|
|
5675
|
+
return __assign(__assign({}, (input.endTime != null && { endTime: input.endTime })), (input.startTime != null && { startTime: input.startTime }));
|
|
5717
5676
|
};
|
|
5718
5677
|
var serializeAws_json1_1PutDetectorRequest = function (input, context) {
|
|
5719
|
-
return __assign(__assign(__assign(__assign({}, (input.description
|
|
5678
|
+
return __assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.detectorId != null && { detectorId: input.detectorId })), (input.eventTypeName != null && { eventTypeName: input.eventTypeName })), (input.tags != null && { tags: serializeAws_json1_1tagList(input.tags, context) }));
|
|
5720
5679
|
};
|
|
5721
5680
|
var serializeAws_json1_1PutEntityTypeRequest = function (input, context) {
|
|
5722
|
-
return __assign(__assign(__assign({}, (input.description
|
|
5681
|
+
return __assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.name != null && { name: input.name })), (input.tags != null && { tags: serializeAws_json1_1tagList(input.tags, context) }));
|
|
5723
5682
|
};
|
|
5724
5683
|
var serializeAws_json1_1PutEventTypeRequest = function (input, context) {
|
|
5725
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description
|
|
5726
|
-
input.entityTypes !== null && {
|
|
5684
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.entityTypes != null && {
|
|
5727
5685
|
entityTypes: serializeAws_json1_1NonEmptyListOfStrings(input.entityTypes, context),
|
|
5728
|
-
})), (input.eventIngestion
|
|
5729
|
-
input.eventIngestion !== null && { eventIngestion: input.eventIngestion })), (input.eventVariables !== undefined &&
|
|
5730
|
-
input.eventVariables !== null && {
|
|
5686
|
+
})), (input.eventIngestion != null && { eventIngestion: input.eventIngestion })), (input.eventVariables != null && {
|
|
5731
5687
|
eventVariables: serializeAws_json1_1NonEmptyListOfStrings(input.eventVariables, context),
|
|
5732
|
-
})), (input.labels
|
|
5733
|
-
input.labels !== null && { labels: serializeAws_json1_1ListOfStrings(input.labels, context) })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1tagList(input.tags, context) }));
|
|
5688
|
+
})), (input.labels != null && { labels: serializeAws_json1_1ListOfStrings(input.labels, context) })), (input.name != null && { name: input.name })), (input.tags != null && { tags: serializeAws_json1_1tagList(input.tags, context) }));
|
|
5734
5689
|
};
|
|
5735
5690
|
var serializeAws_json1_1PutExternalModelRequest = function (input, context) {
|
|
5736
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.inputConfiguration
|
|
5737
|
-
input.inputConfiguration !== null && {
|
|
5691
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.inputConfiguration != null && {
|
|
5738
5692
|
inputConfiguration: serializeAws_json1_1ModelInputConfiguration(input.inputConfiguration, context),
|
|
5739
|
-
})), (input.invokeModelEndpointRoleArn
|
|
5740
|
-
input.invokeModelEndpointRoleArn !== null && { invokeModelEndpointRoleArn: input.invokeModelEndpointRoleArn })), (input.modelEndpoint !== undefined && input.modelEndpoint !== null && { modelEndpoint: input.modelEndpoint })), (input.modelEndpointStatus !== undefined &&
|
|
5741
|
-
input.modelEndpointStatus !== null && { modelEndpointStatus: input.modelEndpointStatus })), (input.modelSource !== undefined && input.modelSource !== null && { modelSource: input.modelSource })), (input.outputConfiguration !== undefined &&
|
|
5742
|
-
input.outputConfiguration !== null && {
|
|
5693
|
+
})), (input.invokeModelEndpointRoleArn != null && { invokeModelEndpointRoleArn: input.invokeModelEndpointRoleArn })), (input.modelEndpoint != null && { modelEndpoint: input.modelEndpoint })), (input.modelEndpointStatus != null && { modelEndpointStatus: input.modelEndpointStatus })), (input.modelSource != null && { modelSource: input.modelSource })), (input.outputConfiguration != null && {
|
|
5743
5694
|
outputConfiguration: serializeAws_json1_1ModelOutputConfiguration(input.outputConfiguration, context),
|
|
5744
|
-
})), (input.tags
|
|
5695
|
+
})), (input.tags != null && { tags: serializeAws_json1_1tagList(input.tags, context) }));
|
|
5745
5696
|
};
|
|
5746
5697
|
var serializeAws_json1_1PutKMSEncryptionKeyRequest = function (input, context) {
|
|
5747
|
-
return __assign({}, (input.kmsEncryptionKeyArn
|
|
5748
|
-
input.kmsEncryptionKeyArn !== null && { kmsEncryptionKeyArn: input.kmsEncryptionKeyArn }));
|
|
5698
|
+
return __assign({}, (input.kmsEncryptionKeyArn != null && { kmsEncryptionKeyArn: input.kmsEncryptionKeyArn }));
|
|
5749
5699
|
};
|
|
5750
5700
|
var serializeAws_json1_1PutLabelRequest = function (input, context) {
|
|
5751
|
-
return __assign(__assign(__assign({}, (input.description
|
|
5701
|
+
return __assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.name != null && { name: input.name })), (input.tags != null && { tags: serializeAws_json1_1tagList(input.tags, context) }));
|
|
5752
5702
|
};
|
|
5753
5703
|
var serializeAws_json1_1PutOutcomeRequest = function (input, context) {
|
|
5754
|
-
return __assign(__assign(__assign({}, (input.description
|
|
5704
|
+
return __assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.name != null && { name: input.name })), (input.tags != null && { tags: serializeAws_json1_1tagList(input.tags, context) }));
|
|
5755
5705
|
};
|
|
5756
5706
|
var serializeAws_json1_1Rule = function (input, context) {
|
|
5757
|
-
return __assign(__assign(__assign({}, (input.detectorId
|
|
5707
|
+
return __assign(__assign(__assign({}, (input.detectorId != null && { detectorId: input.detectorId })), (input.ruleId != null && { ruleId: input.ruleId })), (input.ruleVersion != null && { ruleVersion: input.ruleVersion }));
|
|
5758
5708
|
};
|
|
5759
5709
|
var serializeAws_json1_1RuleList = function (input, context) {
|
|
5760
5710
|
return input
|
|
@@ -5767,16 +5717,12 @@ var serializeAws_json1_1RuleList = function (input, context) {
|
|
|
5767
5717
|
});
|
|
5768
5718
|
};
|
|
5769
5719
|
var serializeAws_json1_1SendEventRequest = function (input, context) {
|
|
5770
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.assignedLabel
|
|
5771
|
-
input.entities !== null && { entities: serializeAws_json1_1listOfEntities(input.entities, context) })), (input.eventId !== undefined && input.eventId !== null && { eventId: input.eventId })), (input.eventTimestamp !== undefined &&
|
|
5772
|
-
input.eventTimestamp !== null && { eventTimestamp: input.eventTimestamp })), (input.eventTypeName !== undefined && input.eventTypeName !== null && { eventTypeName: input.eventTypeName })), (input.eventVariables !== undefined &&
|
|
5773
|
-
input.eventVariables !== null && {
|
|
5720
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.assignedLabel != null && { assignedLabel: input.assignedLabel })), (input.entities != null && { entities: serializeAws_json1_1listOfEntities(input.entities, context) })), (input.eventId != null && { eventId: input.eventId })), (input.eventTimestamp != null && { eventTimestamp: input.eventTimestamp })), (input.eventTypeName != null && { eventTypeName: input.eventTypeName })), (input.eventVariables != null && {
|
|
5774
5721
|
eventVariables: serializeAws_json1_1EventVariableMap(input.eventVariables, context),
|
|
5775
|
-
})), (input.labelTimestamp
|
|
5776
|
-
input.labelTimestamp !== null && { labelTimestamp: input.labelTimestamp }));
|
|
5722
|
+
})), (input.labelTimestamp != null && { labelTimestamp: input.labelTimestamp }));
|
|
5777
5723
|
};
|
|
5778
5724
|
var serializeAws_json1_1Tag = function (input, context) {
|
|
5779
|
-
return __assign(__assign({}, (input.key
|
|
5725
|
+
return __assign(__assign({}, (input.key != null && { key: input.key })), (input.value != null && { value: input.value }));
|
|
5780
5726
|
};
|
|
5781
5727
|
var serializeAws_json1_1tagKeyList = function (input, context) {
|
|
5782
5728
|
return input
|
|
@@ -5799,72 +5745,56 @@ var serializeAws_json1_1tagList = function (input, context) {
|
|
|
5799
5745
|
});
|
|
5800
5746
|
};
|
|
5801
5747
|
var serializeAws_json1_1TagResourceRequest = function (input, context) {
|
|
5802
|
-
return __assign(__assign({}, (input.resourceARN
|
|
5748
|
+
return __assign(__assign({}, (input.resourceARN != null && { resourceARN: input.resourceARN })), (input.tags != null && { tags: serializeAws_json1_1tagList(input.tags, context) }));
|
|
5803
5749
|
};
|
|
5804
5750
|
var serializeAws_json1_1TrainingDataSchema = function (input, context) {
|
|
5805
|
-
return __assign(__assign({}, (input.labelSchema
|
|
5806
|
-
input.labelSchema !== null && { labelSchema: serializeAws_json1_1LabelSchema(input.labelSchema, context) })), (input.modelVariables !== undefined &&
|
|
5807
|
-
input.modelVariables !== null && {
|
|
5751
|
+
return __assign(__assign({}, (input.labelSchema != null && { labelSchema: serializeAws_json1_1LabelSchema(input.labelSchema, context) })), (input.modelVariables != null && {
|
|
5808
5752
|
modelVariables: serializeAws_json1_1ListOfStrings(input.modelVariables, context),
|
|
5809
5753
|
}));
|
|
5810
5754
|
};
|
|
5811
5755
|
var serializeAws_json1_1UntagResourceRequest = function (input, context) {
|
|
5812
|
-
return __assign(__assign({}, (input.resourceARN
|
|
5813
|
-
input.tagKeys !== null && { tagKeys: serializeAws_json1_1tagKeyList(input.tagKeys, context) }));
|
|
5756
|
+
return __assign(__assign({}, (input.resourceARN != null && { resourceARN: input.resourceARN })), (input.tagKeys != null && { tagKeys: serializeAws_json1_1tagKeyList(input.tagKeys, context) }));
|
|
5814
5757
|
};
|
|
5815
5758
|
var serializeAws_json1_1UpdateDetectorVersionMetadataRequest = function (input, context) {
|
|
5816
|
-
return __assign(__assign(__assign({}, (input.description
|
|
5817
|
-
input.detectorVersionId !== null && { detectorVersionId: input.detectorVersionId }));
|
|
5759
|
+
return __assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.detectorId != null && { detectorId: input.detectorId })), (input.detectorVersionId != null && { detectorVersionId: input.detectorVersionId }));
|
|
5818
5760
|
};
|
|
5819
5761
|
var serializeAws_json1_1UpdateDetectorVersionRequest = function (input, context) {
|
|
5820
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description
|
|
5821
|
-
input.detectorVersionId !== null && { detectorVersionId: input.detectorVersionId })), (input.externalModelEndpoints !== undefined &&
|
|
5822
|
-
input.externalModelEndpoints !== null && {
|
|
5762
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.detectorId != null && { detectorId: input.detectorId })), (input.detectorVersionId != null && { detectorVersionId: input.detectorVersionId })), (input.externalModelEndpoints != null && {
|
|
5823
5763
|
externalModelEndpoints: serializeAws_json1_1ListOfStrings(input.externalModelEndpoints, context),
|
|
5824
|
-
})), (input.modelVersions
|
|
5825
|
-
input.modelVersions !== null && {
|
|
5764
|
+
})), (input.modelVersions != null && {
|
|
5826
5765
|
modelVersions: serializeAws_json1_1ListOfModelVersions(input.modelVersions, context),
|
|
5827
|
-
})), (input.ruleExecutionMode
|
|
5828
|
-
input.ruleExecutionMode !== null && { ruleExecutionMode: input.ruleExecutionMode })), (input.rules !== undefined &&
|
|
5829
|
-
input.rules !== null && { rules: serializeAws_json1_1RuleList(input.rules, context) }));
|
|
5766
|
+
})), (input.ruleExecutionMode != null && { ruleExecutionMode: input.ruleExecutionMode })), (input.rules != null && { rules: serializeAws_json1_1RuleList(input.rules, context) }));
|
|
5830
5767
|
};
|
|
5831
5768
|
var serializeAws_json1_1UpdateDetectorVersionStatusRequest = function (input, context) {
|
|
5832
|
-
return __assign(__assign(__assign({}, (input.detectorId
|
|
5833
|
-
input.detectorVersionId !== null && { detectorVersionId: input.detectorVersionId })), (input.status !== undefined && input.status !== null && { status: input.status }));
|
|
5769
|
+
return __assign(__assign(__assign({}, (input.detectorId != null && { detectorId: input.detectorId })), (input.detectorVersionId != null && { detectorVersionId: input.detectorVersionId })), (input.status != null && { status: input.status }));
|
|
5834
5770
|
};
|
|
5835
5771
|
var serializeAws_json1_1UpdateEventLabelRequest = function (input, context) {
|
|
5836
|
-
return __assign(__assign(__assign(__assign({}, (input.assignedLabel
|
|
5837
|
-
input.labelTimestamp !== null && { labelTimestamp: input.labelTimestamp }));
|
|
5772
|
+
return __assign(__assign(__assign(__assign({}, (input.assignedLabel != null && { assignedLabel: input.assignedLabel })), (input.eventId != null && { eventId: input.eventId })), (input.eventTypeName != null && { eventTypeName: input.eventTypeName })), (input.labelTimestamp != null && { labelTimestamp: input.labelTimestamp }));
|
|
5838
5773
|
};
|
|
5839
5774
|
var serializeAws_json1_1UpdateModelRequest = function (input, context) {
|
|
5840
|
-
return __assign(__assign(__assign({}, (input.description
|
|
5775
|
+
return __assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.modelId != null && { modelId: input.modelId })), (input.modelType != null && { modelType: input.modelType }));
|
|
5841
5776
|
};
|
|
5842
5777
|
var serializeAws_json1_1UpdateModelVersionRequest = function (input, context) {
|
|
5843
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.externalEventsDetail
|
|
5844
|
-
input.externalEventsDetail !== null && {
|
|
5778
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.externalEventsDetail != null && {
|
|
5845
5779
|
externalEventsDetail: serializeAws_json1_1ExternalEventsDetail(input.externalEventsDetail, context),
|
|
5846
|
-
})), (input.ingestedEventsDetail
|
|
5847
|
-
input.ingestedEventsDetail !== null && {
|
|
5780
|
+
})), (input.ingestedEventsDetail != null && {
|
|
5848
5781
|
ingestedEventsDetail: serializeAws_json1_1IngestedEventsDetail(input.ingestedEventsDetail, context),
|
|
5849
|
-
})), (input.majorVersionNumber
|
|
5850
|
-
input.majorVersionNumber !== null && { majorVersionNumber: input.majorVersionNumber })), (input.modelId !== undefined && input.modelId !== null && { modelId: input.modelId })), (input.modelType !== undefined && input.modelType !== null && { modelType: input.modelType })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1tagList(input.tags, context) }));
|
|
5782
|
+
})), (input.majorVersionNumber != null && { majorVersionNumber: input.majorVersionNumber })), (input.modelId != null && { modelId: input.modelId })), (input.modelType != null && { modelType: input.modelType })), (input.tags != null && { tags: serializeAws_json1_1tagList(input.tags, context) }));
|
|
5851
5783
|
};
|
|
5852
5784
|
var serializeAws_json1_1UpdateModelVersionStatusRequest = function (input, context) {
|
|
5853
|
-
return __assign(__assign(__assign(__assign({}, (input.modelId
|
|
5854
|
-
input.modelVersionNumber !== null && { modelVersionNumber: input.modelVersionNumber })), (input.status !== undefined && input.status !== null && { status: input.status }));
|
|
5785
|
+
return __assign(__assign(__assign(__assign({}, (input.modelId != null && { modelId: input.modelId })), (input.modelType != null && { modelType: input.modelType })), (input.modelVersionNumber != null && { modelVersionNumber: input.modelVersionNumber })), (input.status != null && { status: input.status }));
|
|
5855
5786
|
};
|
|
5856
5787
|
var serializeAws_json1_1UpdateRuleMetadataRequest = function (input, context) {
|
|
5857
|
-
return __assign(__assign({}, (input.description
|
|
5788
|
+
return __assign(__assign({}, (input.description != null && { description: input.description })), (input.rule != null && { rule: serializeAws_json1_1Rule(input.rule, context) }));
|
|
5858
5789
|
};
|
|
5859
5790
|
var serializeAws_json1_1UpdateRuleVersionRequest = function (input, context) {
|
|
5860
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.description
|
|
5861
|
-
input.outcomes !== null && { outcomes: serializeAws_json1_1NonEmptyListOfStrings(input.outcomes, context) })), (input.rule !== undefined && input.rule !== null && { rule: serializeAws_json1_1Rule(input.rule, context) })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1tagList(input.tags, context) }));
|
|
5791
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.expression != null && { expression: input.expression })), (input.language != null && { language: input.language })), (input.outcomes != null && { outcomes: serializeAws_json1_1NonEmptyListOfStrings(input.outcomes, context) })), (input.rule != null && { rule: serializeAws_json1_1Rule(input.rule, context) })), (input.tags != null && { tags: serializeAws_json1_1tagList(input.tags, context) }));
|
|
5862
5792
|
};
|
|
5863
5793
|
var serializeAws_json1_1UpdateVariableRequest = function (input, context) {
|
|
5864
|
-
return __assign(__assign(__assign(__assign({}, (input.defaultValue
|
|
5794
|
+
return __assign(__assign(__assign(__assign({}, (input.defaultValue != null && { defaultValue: input.defaultValue })), (input.description != null && { description: input.description })), (input.name != null && { name: input.name })), (input.variableType != null && { variableType: input.variableType }));
|
|
5865
5795
|
};
|
|
5866
5796
|
var serializeAws_json1_1VariableEntry = function (input, context) {
|
|
5867
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.dataSource
|
|
5797
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.dataSource != null && { dataSource: input.dataSource })), (input.dataType != null && { dataType: input.dataType })), (input.defaultValue != null && { defaultValue: input.defaultValue })), (input.description != null && { description: input.description })), (input.name != null && { name: input.name })), (input.variableType != null && { variableType: input.variableType }));
|
|
5868
5798
|
};
|
|
5869
5799
|
var serializeAws_json1_1VariableEntryList = function (input, context) {
|
|
5870
5800
|
return input
|
|
@@ -5901,9 +5831,7 @@ var deserializeAws_json1_1BatchCreateVariableErrorList = function (output, conte
|
|
|
5901
5831
|
};
|
|
5902
5832
|
var deserializeAws_json1_1BatchCreateVariableResult = function (output, context) {
|
|
5903
5833
|
return {
|
|
5904
|
-
errors: output.errors
|
|
5905
|
-
? deserializeAws_json1_1BatchCreateVariableErrorList(output.errors, context)
|
|
5906
|
-
: undefined,
|
|
5834
|
+
errors: output.errors != null ? deserializeAws_json1_1BatchCreateVariableErrorList(output.errors, context) : undefined,
|
|
5907
5835
|
};
|
|
5908
5836
|
};
|
|
5909
5837
|
var deserializeAws_json1_1BatchGetVariableError = function (output, context) {
|
|
@@ -5926,12 +5854,8 @@ var deserializeAws_json1_1BatchGetVariableErrorList = function (output, context)
|
|
|
5926
5854
|
};
|
|
5927
5855
|
var deserializeAws_json1_1BatchGetVariableResult = function (output, context) {
|
|
5928
5856
|
return {
|
|
5929
|
-
errors: output.errors
|
|
5930
|
-
|
|
5931
|
-
: undefined,
|
|
5932
|
-
variables: output.variables !== undefined && output.variables !== null
|
|
5933
|
-
? deserializeAws_json1_1VariableList(output.variables, context)
|
|
5934
|
-
: undefined,
|
|
5857
|
+
errors: output.errors != null ? deserializeAws_json1_1BatchGetVariableErrorList(output.errors, context) : undefined,
|
|
5858
|
+
variables: output.variables != null ? deserializeAws_json1_1VariableList(output.variables, context) : undefined,
|
|
5935
5859
|
};
|
|
5936
5860
|
};
|
|
5937
5861
|
var deserializeAws_json1_1BatchImport = function (output, context) {
|
|
@@ -6029,7 +5953,7 @@ var deserializeAws_json1_1CreateModelVersionResult = function (output, context)
|
|
|
6029
5953
|
};
|
|
6030
5954
|
var deserializeAws_json1_1CreateRuleResult = function (output, context) {
|
|
6031
5955
|
return {
|
|
6032
|
-
rule: output.rule
|
|
5956
|
+
rule: output.rule != null ? deserializeAws_json1_1Rule(output.rule, context) : undefined,
|
|
6033
5957
|
};
|
|
6034
5958
|
};
|
|
6035
5959
|
var deserializeAws_json1_1CreateVariableResult = function (output, context) {
|
|
@@ -6047,10 +5971,10 @@ var deserializeAws_json1_1CsvIndexToVariableMap = function (output, context) {
|
|
|
6047
5971
|
};
|
|
6048
5972
|
var deserializeAws_json1_1DataValidationMetrics = function (output, context) {
|
|
6049
5973
|
return {
|
|
6050
|
-
fieldLevelMessages: output.fieldLevelMessages
|
|
5974
|
+
fieldLevelMessages: output.fieldLevelMessages != null
|
|
6051
5975
|
? deserializeAws_json1_1fieldValidationMessageList(output.fieldLevelMessages, context)
|
|
6052
5976
|
: undefined,
|
|
6053
|
-
fileLevelMessages: output.fileLevelMessages
|
|
5977
|
+
fileLevelMessages: output.fileLevelMessages != null
|
|
6054
5978
|
? deserializeAws_json1_1fileValidationMessageList(output.fileLevelMessages, context)
|
|
6055
5979
|
: undefined,
|
|
6056
5980
|
};
|
|
@@ -6107,7 +6031,7 @@ var deserializeAws_json1_1DescribeDetectorResult = function (output, context) {
|
|
|
6107
6031
|
return {
|
|
6108
6032
|
arn: __expectString(output.arn),
|
|
6109
6033
|
detectorId: __expectString(output.detectorId),
|
|
6110
|
-
detectorVersionSummaries: output.detectorVersionSummaries
|
|
6034
|
+
detectorVersionSummaries: output.detectorVersionSummaries != null
|
|
6111
6035
|
? deserializeAws_json1_1DetectorVersionSummaryList(output.detectorVersionSummaries, context)
|
|
6112
6036
|
: undefined,
|
|
6113
6037
|
nextToken: __expectString(output.nextToken),
|
|
@@ -6115,7 +6039,7 @@ var deserializeAws_json1_1DescribeDetectorResult = function (output, context) {
|
|
|
6115
6039
|
};
|
|
6116
6040
|
var deserializeAws_json1_1DescribeModelVersionsResult = function (output, context) {
|
|
6117
6041
|
return {
|
|
6118
|
-
modelVersionDetails: output.modelVersionDetails
|
|
6042
|
+
modelVersionDetails: output.modelVersionDetails != null
|
|
6119
6043
|
? deserializeAws_json1_1modelVersionDetailList(output.modelVersionDetails, context)
|
|
6120
6044
|
: undefined,
|
|
6121
6045
|
nextToken: __expectString(output.nextToken),
|
|
@@ -6189,19 +6113,15 @@ var deserializeAws_json1_1entityTypeList = function (output, context) {
|
|
|
6189
6113
|
};
|
|
6190
6114
|
var deserializeAws_json1_1EvaluatedExternalModel = function (output, context) {
|
|
6191
6115
|
return {
|
|
6192
|
-
inputVariables: output.inputVariables
|
|
6193
|
-
? deserializeAws_json1_1MapOfStrings(output.inputVariables, context)
|
|
6194
|
-
: undefined,
|
|
6116
|
+
inputVariables: output.inputVariables != null ? deserializeAws_json1_1MapOfStrings(output.inputVariables, context) : undefined,
|
|
6195
6117
|
modelEndpoint: __expectString(output.modelEndpoint),
|
|
6196
|
-
outputVariables: output.outputVariables
|
|
6197
|
-
? deserializeAws_json1_1MapOfStrings(output.outputVariables, context)
|
|
6198
|
-
: undefined,
|
|
6118
|
+
outputVariables: output.outputVariables != null ? deserializeAws_json1_1MapOfStrings(output.outputVariables, context) : undefined,
|
|
6199
6119
|
useEventVariables: __expectBoolean(output.useEventVariables),
|
|
6200
6120
|
};
|
|
6201
6121
|
};
|
|
6202
6122
|
var deserializeAws_json1_1EvaluatedModelVersion = function (output, context) {
|
|
6203
6123
|
return {
|
|
6204
|
-
evaluations: output.evaluations
|
|
6124
|
+
evaluations: output.evaluations != null
|
|
6205
6125
|
? deserializeAws_json1_1ListOfModelVersionEvaluations(output.evaluations, context)
|
|
6206
6126
|
: undefined,
|
|
6207
6127
|
modelId: __expectString(output.modelId),
|
|
@@ -6215,9 +6135,7 @@ var deserializeAws_json1_1EvaluatedRule = function (output, context) {
|
|
|
6215
6135
|
expression: __expectString(output.expression),
|
|
6216
6136
|
expressionWithValues: __expectString(output.expressionWithValues),
|
|
6217
6137
|
matched: __expectBoolean(output.matched),
|
|
6218
|
-
outcomes: output.outcomes
|
|
6219
|
-
? deserializeAws_json1_1ListOfStrings(output.outcomes, context)
|
|
6220
|
-
: undefined,
|
|
6138
|
+
outcomes: output.outcomes != null ? deserializeAws_json1_1ListOfStrings(output.outcomes, context) : undefined,
|
|
6221
6139
|
ruleId: __expectString(output.ruleId),
|
|
6222
6140
|
ruleVersion: __expectString(output.ruleVersion),
|
|
6223
6141
|
};
|
|
@@ -6236,13 +6154,11 @@ var deserializeAws_json1_1EvaluatedRuleList = function (output, context) {
|
|
|
6236
6154
|
var deserializeAws_json1_1Event = function (output, context) {
|
|
6237
6155
|
return {
|
|
6238
6156
|
currentLabel: __expectString(output.currentLabel),
|
|
6239
|
-
entities: output.entities
|
|
6240
|
-
? deserializeAws_json1_1listOfEntities(output.entities, context)
|
|
6241
|
-
: undefined,
|
|
6157
|
+
entities: output.entities != null ? deserializeAws_json1_1listOfEntities(output.entities, context) : undefined,
|
|
6242
6158
|
eventId: __expectString(output.eventId),
|
|
6243
6159
|
eventTimestamp: __expectString(output.eventTimestamp),
|
|
6244
6160
|
eventTypeName: __expectString(output.eventTypeName),
|
|
6245
|
-
eventVariables: output.eventVariables
|
|
6161
|
+
eventVariables: output.eventVariables != null
|
|
6246
6162
|
? deserializeAws_json1_1EventAttributeMap(output.eventVariables, context)
|
|
6247
6163
|
: undefined,
|
|
6248
6164
|
labelTimestamp: __expectString(output.labelTimestamp),
|
|
@@ -6273,19 +6189,13 @@ var deserializeAws_json1_1EventType = function (output, context) {
|
|
|
6273
6189
|
arn: __expectString(output.arn),
|
|
6274
6190
|
createdTime: __expectString(output.createdTime),
|
|
6275
6191
|
description: __expectString(output.description),
|
|
6276
|
-
entityTypes: output.entityTypes
|
|
6277
|
-
? deserializeAws_json1_1NonEmptyListOfStrings(output.entityTypes, context)
|
|
6278
|
-
: undefined,
|
|
6192
|
+
entityTypes: output.entityTypes != null ? deserializeAws_json1_1NonEmptyListOfStrings(output.entityTypes, context) : undefined,
|
|
6279
6193
|
eventIngestion: __expectString(output.eventIngestion),
|
|
6280
|
-
eventVariables: output.eventVariables
|
|
6281
|
-
|
|
6282
|
-
: undefined,
|
|
6283
|
-
ingestedEventStatistics: output.ingestedEventStatistics !== undefined && output.ingestedEventStatistics !== null
|
|
6194
|
+
eventVariables: output.eventVariables != null ? deserializeAws_json1_1ListOfStrings(output.eventVariables, context) : undefined,
|
|
6195
|
+
ingestedEventStatistics: output.ingestedEventStatistics != null
|
|
6284
6196
|
? deserializeAws_json1_1IngestedEventStatistics(output.ingestedEventStatistics, context)
|
|
6285
6197
|
: undefined,
|
|
6286
|
-
labels: output.labels
|
|
6287
|
-
? deserializeAws_json1_1ListOfStrings(output.labels, context)
|
|
6288
|
-
: undefined,
|
|
6198
|
+
labels: output.labels != null ? deserializeAws_json1_1ListOfStrings(output.labels, context) : undefined,
|
|
6289
6199
|
lastUpdatedTime: __expectString(output.lastUpdatedTime),
|
|
6290
6200
|
name: __expectString(output.name),
|
|
6291
6201
|
};
|
|
@@ -6318,7 +6228,7 @@ var deserializeAws_json1_1ExternalModel = function (output, context) {
|
|
|
6318
6228
|
return {
|
|
6319
6229
|
arn: __expectString(output.arn),
|
|
6320
6230
|
createdTime: __expectString(output.createdTime),
|
|
6321
|
-
inputConfiguration: output.inputConfiguration
|
|
6231
|
+
inputConfiguration: output.inputConfiguration != null
|
|
6322
6232
|
? deserializeAws_json1_1ModelInputConfiguration(output.inputConfiguration, context)
|
|
6323
6233
|
: undefined,
|
|
6324
6234
|
invokeModelEndpointRoleArn: __expectString(output.invokeModelEndpointRoleArn),
|
|
@@ -6326,7 +6236,7 @@ var deserializeAws_json1_1ExternalModel = function (output, context) {
|
|
|
6326
6236
|
modelEndpoint: __expectString(output.modelEndpoint),
|
|
6327
6237
|
modelEndpointStatus: __expectString(output.modelEndpointStatus),
|
|
6328
6238
|
modelSource: __expectString(output.modelSource),
|
|
6329
|
-
outputConfiguration: output.outputConfiguration
|
|
6239
|
+
outputConfiguration: output.outputConfiguration != null
|
|
6330
6240
|
? deserializeAws_json1_1ModelOutputConfiguration(output.outputConfiguration, context)
|
|
6331
6241
|
: undefined,
|
|
6332
6242
|
};
|
|
@@ -6344,12 +6254,10 @@ var deserializeAws_json1_1ExternalModelList = function (output, context) {
|
|
|
6344
6254
|
};
|
|
6345
6255
|
var deserializeAws_json1_1ExternalModelOutputs = function (output, context) {
|
|
6346
6256
|
return {
|
|
6347
|
-
externalModel: output.externalModel
|
|
6257
|
+
externalModel: output.externalModel != null
|
|
6348
6258
|
? deserializeAws_json1_1ExternalModelSummary(output.externalModel, context)
|
|
6349
6259
|
: undefined,
|
|
6350
|
-
outputs: output.outputs
|
|
6351
|
-
? deserializeAws_json1_1ExternalModelPredictionMap(output.outputs, context)
|
|
6352
|
-
: undefined,
|
|
6260
|
+
outputs: output.outputs != null ? deserializeAws_json1_1ExternalModelPredictionMap(output.outputs, context) : undefined,
|
|
6353
6261
|
};
|
|
6354
6262
|
};
|
|
6355
6263
|
var deserializeAws_json1_1ExternalModelPredictionMap = function (output, context) {
|
|
@@ -6408,15 +6316,13 @@ var deserializeAws_json1_1fileValidationMessageList = function (output, context)
|
|
|
6408
6316
|
};
|
|
6409
6317
|
var deserializeAws_json1_1GetBatchImportJobsResult = function (output, context) {
|
|
6410
6318
|
return {
|
|
6411
|
-
batchImports: output.batchImports
|
|
6412
|
-
? deserializeAws_json1_1BatchImportList(output.batchImports, context)
|
|
6413
|
-
: undefined,
|
|
6319
|
+
batchImports: output.batchImports != null ? deserializeAws_json1_1BatchImportList(output.batchImports, context) : undefined,
|
|
6414
6320
|
nextToken: __expectString(output.nextToken),
|
|
6415
6321
|
};
|
|
6416
6322
|
};
|
|
6417
6323
|
var deserializeAws_json1_1GetBatchPredictionJobsResult = function (output, context) {
|
|
6418
6324
|
return {
|
|
6419
|
-
batchPredictions: output.batchPredictions
|
|
6325
|
+
batchPredictions: output.batchPredictions != null
|
|
6420
6326
|
? deserializeAws_json1_1BatchPredictionList(output.batchPredictions, context)
|
|
6421
6327
|
: undefined,
|
|
6422
6328
|
nextToken: __expectString(output.nextToken),
|
|
@@ -6430,9 +6336,7 @@ var deserializeAws_json1_1GetDeleteEventsByEventTypeStatusResult = function (out
|
|
|
6430
6336
|
};
|
|
6431
6337
|
var deserializeAws_json1_1GetDetectorsResult = function (output, context) {
|
|
6432
6338
|
return {
|
|
6433
|
-
detectors: output.detectors
|
|
6434
|
-
? deserializeAws_json1_1DetectorList(output.detectors, context)
|
|
6435
|
-
: undefined,
|
|
6339
|
+
detectors: output.detectors != null ? deserializeAws_json1_1DetectorList(output.detectors, context) : undefined,
|
|
6436
6340
|
nextToken: __expectString(output.nextToken),
|
|
6437
6341
|
};
|
|
6438
6342
|
};
|
|
@@ -6443,25 +6347,21 @@ var deserializeAws_json1_1GetDetectorVersionResult = function (output, context)
|
|
|
6443
6347
|
description: __expectString(output.description),
|
|
6444
6348
|
detectorId: __expectString(output.detectorId),
|
|
6445
6349
|
detectorVersionId: __expectString(output.detectorVersionId),
|
|
6446
|
-
externalModelEndpoints: output.externalModelEndpoints
|
|
6350
|
+
externalModelEndpoints: output.externalModelEndpoints != null
|
|
6447
6351
|
? deserializeAws_json1_1ListOfStrings(output.externalModelEndpoints, context)
|
|
6448
6352
|
: undefined,
|
|
6449
6353
|
lastUpdatedTime: __expectString(output.lastUpdatedTime),
|
|
6450
|
-
modelVersions: output.modelVersions
|
|
6354
|
+
modelVersions: output.modelVersions != null
|
|
6451
6355
|
? deserializeAws_json1_1ListOfModelVersions(output.modelVersions, context)
|
|
6452
6356
|
: undefined,
|
|
6453
6357
|
ruleExecutionMode: __expectString(output.ruleExecutionMode),
|
|
6454
|
-
rules: output.rules
|
|
6455
|
-
? deserializeAws_json1_1RuleList(output.rules, context)
|
|
6456
|
-
: undefined,
|
|
6358
|
+
rules: output.rules != null ? deserializeAws_json1_1RuleList(output.rules, context) : undefined,
|
|
6457
6359
|
status: __expectString(output.status),
|
|
6458
6360
|
};
|
|
6459
6361
|
};
|
|
6460
6362
|
var deserializeAws_json1_1GetEntityTypesResult = function (output, context) {
|
|
6461
6363
|
return {
|
|
6462
|
-
entityTypes: output.entityTypes
|
|
6463
|
-
? deserializeAws_json1_1entityTypeList(output.entityTypes, context)
|
|
6464
|
-
: undefined,
|
|
6364
|
+
entityTypes: output.entityTypes != null ? deserializeAws_json1_1entityTypeList(output.entityTypes, context) : undefined,
|
|
6465
6365
|
nextToken: __expectString(output.nextToken),
|
|
6466
6366
|
};
|
|
6467
6367
|
};
|
|
@@ -6472,59 +6372,47 @@ var deserializeAws_json1_1GetEventPredictionMetadataResult = function (output, c
|
|
|
6472
6372
|
detectorVersionStatus: __expectString(output.detectorVersionStatus),
|
|
6473
6373
|
entityId: __expectString(output.entityId),
|
|
6474
6374
|
entityType: __expectString(output.entityType),
|
|
6475
|
-
evaluatedExternalModels: output.evaluatedExternalModels
|
|
6375
|
+
evaluatedExternalModels: output.evaluatedExternalModels != null
|
|
6476
6376
|
? deserializeAws_json1_1ListOfEvaluatedExternalModels(output.evaluatedExternalModels, context)
|
|
6477
6377
|
: undefined,
|
|
6478
|
-
evaluatedModelVersions: output.evaluatedModelVersions
|
|
6378
|
+
evaluatedModelVersions: output.evaluatedModelVersions != null
|
|
6479
6379
|
? deserializeAws_json1_1ListOfEvaluatedModelVersions(output.evaluatedModelVersions, context)
|
|
6480
6380
|
: undefined,
|
|
6481
6381
|
eventId: __expectString(output.eventId),
|
|
6482
6382
|
eventTimestamp: __expectString(output.eventTimestamp),
|
|
6483
6383
|
eventTypeName: __expectString(output.eventTypeName),
|
|
6484
|
-
eventVariables: output.eventVariables
|
|
6384
|
+
eventVariables: output.eventVariables != null
|
|
6485
6385
|
? deserializeAws_json1_1ListOfEventVariableSummaries(output.eventVariables, context)
|
|
6486
6386
|
: undefined,
|
|
6487
|
-
outcomes: output.outcomes
|
|
6488
|
-
? deserializeAws_json1_1ListOfStrings(output.outcomes, context)
|
|
6489
|
-
: undefined,
|
|
6387
|
+
outcomes: output.outcomes != null ? deserializeAws_json1_1ListOfStrings(output.outcomes, context) : undefined,
|
|
6490
6388
|
predictionTimestamp: __expectString(output.predictionTimestamp),
|
|
6491
6389
|
ruleExecutionMode: __expectString(output.ruleExecutionMode),
|
|
6492
|
-
rules: output.rules
|
|
6493
|
-
? deserializeAws_json1_1EvaluatedRuleList(output.rules, context)
|
|
6494
|
-
: undefined,
|
|
6390
|
+
rules: output.rules != null ? deserializeAws_json1_1EvaluatedRuleList(output.rules, context) : undefined,
|
|
6495
6391
|
};
|
|
6496
6392
|
};
|
|
6497
6393
|
var deserializeAws_json1_1GetEventPredictionResult = function (output, context) {
|
|
6498
6394
|
return {
|
|
6499
|
-
externalModelOutputs: output.externalModelOutputs
|
|
6395
|
+
externalModelOutputs: output.externalModelOutputs != null
|
|
6500
6396
|
? deserializeAws_json1_1ListOfExternalModelOutputs(output.externalModelOutputs, context)
|
|
6501
6397
|
: undefined,
|
|
6502
|
-
modelScores: output.modelScores
|
|
6503
|
-
|
|
6504
|
-
: undefined,
|
|
6505
|
-
ruleResults: output.ruleResults !== undefined && output.ruleResults !== null
|
|
6506
|
-
? deserializeAws_json1_1ListOfRuleResults(output.ruleResults, context)
|
|
6507
|
-
: undefined,
|
|
6398
|
+
modelScores: output.modelScores != null ? deserializeAws_json1_1ListOfModelScores(output.modelScores, context) : undefined,
|
|
6399
|
+
ruleResults: output.ruleResults != null ? deserializeAws_json1_1ListOfRuleResults(output.ruleResults, context) : undefined,
|
|
6508
6400
|
};
|
|
6509
6401
|
};
|
|
6510
6402
|
var deserializeAws_json1_1GetEventResult = function (output, context) {
|
|
6511
6403
|
return {
|
|
6512
|
-
event: output.event
|
|
6513
|
-
? deserializeAws_json1_1Event(output.event, context)
|
|
6514
|
-
: undefined,
|
|
6404
|
+
event: output.event != null ? deserializeAws_json1_1Event(output.event, context) : undefined,
|
|
6515
6405
|
};
|
|
6516
6406
|
};
|
|
6517
6407
|
var deserializeAws_json1_1GetEventTypesResult = function (output, context) {
|
|
6518
6408
|
return {
|
|
6519
|
-
eventTypes: output.eventTypes
|
|
6520
|
-
? deserializeAws_json1_1eventTypeList(output.eventTypes, context)
|
|
6521
|
-
: undefined,
|
|
6409
|
+
eventTypes: output.eventTypes != null ? deserializeAws_json1_1eventTypeList(output.eventTypes, context) : undefined,
|
|
6522
6410
|
nextToken: __expectString(output.nextToken),
|
|
6523
6411
|
};
|
|
6524
6412
|
};
|
|
6525
6413
|
var deserializeAws_json1_1GetExternalModelsResult = function (output, context) {
|
|
6526
6414
|
return {
|
|
6527
|
-
externalModels: output.externalModels
|
|
6415
|
+
externalModels: output.externalModels != null
|
|
6528
6416
|
? deserializeAws_json1_1ExternalModelList(output.externalModels, context)
|
|
6529
6417
|
: undefined,
|
|
6530
6418
|
nextToken: __expectString(output.nextToken),
|
|
@@ -6532,41 +6420,35 @@ var deserializeAws_json1_1GetExternalModelsResult = function (output, context) {
|
|
|
6532
6420
|
};
|
|
6533
6421
|
var deserializeAws_json1_1GetKMSEncryptionKeyResult = function (output, context) {
|
|
6534
6422
|
return {
|
|
6535
|
-
kmsKey: output.kmsKey
|
|
6536
|
-
? deserializeAws_json1_1KMSKey(output.kmsKey, context)
|
|
6537
|
-
: undefined,
|
|
6423
|
+
kmsKey: output.kmsKey != null ? deserializeAws_json1_1KMSKey(output.kmsKey, context) : undefined,
|
|
6538
6424
|
};
|
|
6539
6425
|
};
|
|
6540
6426
|
var deserializeAws_json1_1GetLabelsResult = function (output, context) {
|
|
6541
6427
|
return {
|
|
6542
|
-
labels: output.labels
|
|
6543
|
-
? deserializeAws_json1_1labelList(output.labels, context)
|
|
6544
|
-
: undefined,
|
|
6428
|
+
labels: output.labels != null ? deserializeAws_json1_1labelList(output.labels, context) : undefined,
|
|
6545
6429
|
nextToken: __expectString(output.nextToken),
|
|
6546
6430
|
};
|
|
6547
6431
|
};
|
|
6548
6432
|
var deserializeAws_json1_1GetModelsResult = function (output, context) {
|
|
6549
6433
|
return {
|
|
6550
|
-
models: output.models
|
|
6551
|
-
? deserializeAws_json1_1modelList(output.models, context)
|
|
6552
|
-
: undefined,
|
|
6434
|
+
models: output.models != null ? deserializeAws_json1_1modelList(output.models, context) : undefined,
|
|
6553
6435
|
nextToken: __expectString(output.nextToken),
|
|
6554
6436
|
};
|
|
6555
6437
|
};
|
|
6556
6438
|
var deserializeAws_json1_1GetModelVersionResult = function (output, context) {
|
|
6557
6439
|
return {
|
|
6558
6440
|
arn: __expectString(output.arn),
|
|
6559
|
-
externalEventsDetail: output.externalEventsDetail
|
|
6441
|
+
externalEventsDetail: output.externalEventsDetail != null
|
|
6560
6442
|
? deserializeAws_json1_1ExternalEventsDetail(output.externalEventsDetail, context)
|
|
6561
6443
|
: undefined,
|
|
6562
|
-
ingestedEventsDetail: output.ingestedEventsDetail
|
|
6444
|
+
ingestedEventsDetail: output.ingestedEventsDetail != null
|
|
6563
6445
|
? deserializeAws_json1_1IngestedEventsDetail(output.ingestedEventsDetail, context)
|
|
6564
6446
|
: undefined,
|
|
6565
6447
|
modelId: __expectString(output.modelId),
|
|
6566
6448
|
modelType: __expectString(output.modelType),
|
|
6567
6449
|
modelVersionNumber: __expectString(output.modelVersionNumber),
|
|
6568
6450
|
status: __expectString(output.status),
|
|
6569
|
-
trainingDataSchema: output.trainingDataSchema
|
|
6451
|
+
trainingDataSchema: output.trainingDataSchema != null
|
|
6570
6452
|
? deserializeAws_json1_1TrainingDataSchema(output.trainingDataSchema, context)
|
|
6571
6453
|
: undefined,
|
|
6572
6454
|
trainingDataSource: __expectString(output.trainingDataSource),
|
|
@@ -6575,30 +6457,24 @@ var deserializeAws_json1_1GetModelVersionResult = function (output, context) {
|
|
|
6575
6457
|
var deserializeAws_json1_1GetOutcomesResult = function (output, context) {
|
|
6576
6458
|
return {
|
|
6577
6459
|
nextToken: __expectString(output.nextToken),
|
|
6578
|
-
outcomes: output.outcomes
|
|
6579
|
-
? deserializeAws_json1_1OutcomeList(output.outcomes, context)
|
|
6580
|
-
: undefined,
|
|
6460
|
+
outcomes: output.outcomes != null ? deserializeAws_json1_1OutcomeList(output.outcomes, context) : undefined,
|
|
6581
6461
|
};
|
|
6582
6462
|
};
|
|
6583
6463
|
var deserializeAws_json1_1GetRulesResult = function (output, context) {
|
|
6584
6464
|
return {
|
|
6585
6465
|
nextToken: __expectString(output.nextToken),
|
|
6586
|
-
ruleDetails: output.ruleDetails
|
|
6587
|
-
? deserializeAws_json1_1RuleDetailList(output.ruleDetails, context)
|
|
6588
|
-
: undefined,
|
|
6466
|
+
ruleDetails: output.ruleDetails != null ? deserializeAws_json1_1RuleDetailList(output.ruleDetails, context) : undefined,
|
|
6589
6467
|
};
|
|
6590
6468
|
};
|
|
6591
6469
|
var deserializeAws_json1_1GetVariablesResult = function (output, context) {
|
|
6592
6470
|
return {
|
|
6593
6471
|
nextToken: __expectString(output.nextToken),
|
|
6594
|
-
variables: output.variables
|
|
6595
|
-
? deserializeAws_json1_1VariableList(output.variables, context)
|
|
6596
|
-
: undefined,
|
|
6472
|
+
variables: output.variables != null ? deserializeAws_json1_1VariableList(output.variables, context) : undefined,
|
|
6597
6473
|
};
|
|
6598
6474
|
};
|
|
6599
6475
|
var deserializeAws_json1_1IngestedEventsDetail = function (output, context) {
|
|
6600
6476
|
return {
|
|
6601
|
-
ingestedEventsTimeWindow: output.ingestedEventsTimeWindow
|
|
6477
|
+
ingestedEventsTimeWindow: output.ingestedEventsTimeWindow != null
|
|
6602
6478
|
? deserializeAws_json1_1IngestedEventsTimeWindow(output.ingestedEventsTimeWindow, context)
|
|
6603
6479
|
: undefined,
|
|
6604
6480
|
};
|
|
@@ -6670,15 +6546,13 @@ var deserializeAws_json1_1labelMapper = function (output, context) {
|
|
|
6670
6546
|
};
|
|
6671
6547
|
var deserializeAws_json1_1LabelSchema = function (output, context) {
|
|
6672
6548
|
return {
|
|
6673
|
-
labelMapper: output.labelMapper
|
|
6674
|
-
? deserializeAws_json1_1labelMapper(output.labelMapper, context)
|
|
6675
|
-
: undefined,
|
|
6549
|
+
labelMapper: output.labelMapper != null ? deserializeAws_json1_1labelMapper(output.labelMapper, context) : undefined,
|
|
6676
6550
|
unlabeledEventsTreatment: __expectString(output.unlabeledEventsTreatment),
|
|
6677
6551
|
};
|
|
6678
6552
|
};
|
|
6679
6553
|
var deserializeAws_json1_1ListEventPredictionsResult = function (output, context) {
|
|
6680
6554
|
return {
|
|
6681
|
-
eventPredictionSummaries: output.eventPredictionSummaries
|
|
6555
|
+
eventPredictionSummaries: output.eventPredictionSummaries != null
|
|
6682
6556
|
? deserializeAws_json1_1ListOfEventPredictionSummaries(output.eventPredictionSummaries, context)
|
|
6683
6557
|
: undefined,
|
|
6684
6558
|
nextToken: __expectString(output.nextToken),
|
|
@@ -6830,9 +6704,7 @@ var deserializeAws_json1_1listOfVariableImpactExplanations = function (output, c
|
|
|
6830
6704
|
var deserializeAws_json1_1ListTagsForResourceResult = function (output, context) {
|
|
6831
6705
|
return {
|
|
6832
6706
|
nextToken: __expectString(output.nextToken),
|
|
6833
|
-
tags: output.tags
|
|
6834
|
-
? deserializeAws_json1_1tagList(output.tags, context)
|
|
6835
|
-
: undefined,
|
|
6707
|
+
tags: output.tags != null ? deserializeAws_json1_1tagList(output.tags, context) : undefined,
|
|
6836
6708
|
};
|
|
6837
6709
|
};
|
|
6838
6710
|
var deserializeAws_json1_1LogOddsMetric = function (output, context) {
|
|
@@ -6904,11 +6776,11 @@ var deserializeAws_json1_1modelList = function (output, context) {
|
|
|
6904
6776
|
};
|
|
6905
6777
|
var deserializeAws_json1_1ModelOutputConfiguration = function (output, context) {
|
|
6906
6778
|
return {
|
|
6907
|
-
csvIndexToVariableMap: output.csvIndexToVariableMap
|
|
6779
|
+
csvIndexToVariableMap: output.csvIndexToVariableMap != null
|
|
6908
6780
|
? deserializeAws_json1_1CsvIndexToVariableMap(output.csvIndexToVariableMap, context)
|
|
6909
6781
|
: undefined,
|
|
6910
6782
|
format: __expectString(output.format),
|
|
6911
|
-
jsonKeyToVariableMap: output.jsonKeyToVariableMap
|
|
6783
|
+
jsonKeyToVariableMap: output.jsonKeyToVariableMap != null
|
|
6912
6784
|
? deserializeAws_json1_1JsonKeyToVariableMap(output.jsonKeyToVariableMap, context)
|
|
6913
6785
|
: undefined,
|
|
6914
6786
|
};
|
|
@@ -6925,12 +6797,8 @@ var deserializeAws_json1_1ModelPredictionMap = function (output, context) {
|
|
|
6925
6797
|
};
|
|
6926
6798
|
var deserializeAws_json1_1ModelScores = function (output, context) {
|
|
6927
6799
|
return {
|
|
6928
|
-
modelVersion: output.modelVersion
|
|
6929
|
-
|
|
6930
|
-
: undefined,
|
|
6931
|
-
scores: output.scores !== undefined && output.scores !== null
|
|
6932
|
-
? deserializeAws_json1_1ModelPredictionMap(output.scores, context)
|
|
6933
|
-
: undefined,
|
|
6800
|
+
modelVersion: output.modelVersion != null ? deserializeAws_json1_1ModelVersion(output.modelVersion, context) : undefined,
|
|
6801
|
+
scores: output.scores != null ? deserializeAws_json1_1ModelPredictionMap(output.scores, context) : undefined,
|
|
6934
6802
|
};
|
|
6935
6803
|
};
|
|
6936
6804
|
var deserializeAws_json1_1ModelVersion = function (output, context) {
|
|
@@ -6945,10 +6813,10 @@ var deserializeAws_json1_1ModelVersionDetail = function (output, context) {
|
|
|
6945
6813
|
return {
|
|
6946
6814
|
arn: __expectString(output.arn),
|
|
6947
6815
|
createdTime: __expectString(output.createdTime),
|
|
6948
|
-
externalEventsDetail: output.externalEventsDetail
|
|
6816
|
+
externalEventsDetail: output.externalEventsDetail != null
|
|
6949
6817
|
? deserializeAws_json1_1ExternalEventsDetail(output.externalEventsDetail, context)
|
|
6950
6818
|
: undefined,
|
|
6951
|
-
ingestedEventsDetail: output.ingestedEventsDetail
|
|
6819
|
+
ingestedEventsDetail: output.ingestedEventsDetail != null
|
|
6952
6820
|
? deserializeAws_json1_1IngestedEventsDetail(output.ingestedEventsDetail, context)
|
|
6953
6821
|
: undefined,
|
|
6954
6822
|
lastUpdatedTime: __expectString(output.lastUpdatedTime),
|
|
@@ -6956,13 +6824,11 @@ var deserializeAws_json1_1ModelVersionDetail = function (output, context) {
|
|
|
6956
6824
|
modelType: __expectString(output.modelType),
|
|
6957
6825
|
modelVersionNumber: __expectString(output.modelVersionNumber),
|
|
6958
6826
|
status: __expectString(output.status),
|
|
6959
|
-
trainingDataSchema: output.trainingDataSchema
|
|
6827
|
+
trainingDataSchema: output.trainingDataSchema != null
|
|
6960
6828
|
? deserializeAws_json1_1TrainingDataSchema(output.trainingDataSchema, context)
|
|
6961
6829
|
: undefined,
|
|
6962
6830
|
trainingDataSource: __expectString(output.trainingDataSource),
|
|
6963
|
-
trainingResult: output.trainingResult
|
|
6964
|
-
? deserializeAws_json1_1TrainingResult(output.trainingResult, context)
|
|
6965
|
-
: undefined,
|
|
6831
|
+
trainingResult: output.trainingResult != null ? deserializeAws_json1_1TrainingResult(output.trainingResult, context) : undefined,
|
|
6966
6832
|
};
|
|
6967
6833
|
};
|
|
6968
6834
|
var deserializeAws_json1_1modelVersionDetailList = function (output, context) {
|
|
@@ -6980,7 +6846,7 @@ var deserializeAws_json1_1ModelVersionEvaluation = function (output, context) {
|
|
|
6980
6846
|
return {
|
|
6981
6847
|
evaluationScore: __expectString(output.evaluationScore),
|
|
6982
6848
|
outputVariableName: __expectString(output.outputVariableName),
|
|
6983
|
-
predictionExplanations: output.predictionExplanations
|
|
6849
|
+
predictionExplanations: output.predictionExplanations != null
|
|
6984
6850
|
? deserializeAws_json1_1PredictionExplanations(output.predictionExplanations, context)
|
|
6985
6851
|
: undefined,
|
|
6986
6852
|
};
|
|
@@ -7018,7 +6884,7 @@ var deserializeAws_json1_1OutcomeList = function (output, context) {
|
|
|
7018
6884
|
};
|
|
7019
6885
|
var deserializeAws_json1_1PredictionExplanations = function (output, context) {
|
|
7020
6886
|
return {
|
|
7021
|
-
variableImpactExplanations: output.variableImpactExplanations
|
|
6887
|
+
variableImpactExplanations: output.variableImpactExplanations != null
|
|
7022
6888
|
? deserializeAws_json1_1listOfVariableImpactExplanations(output.variableImpactExplanations, context)
|
|
7023
6889
|
: undefined,
|
|
7024
6890
|
};
|
|
@@ -7070,9 +6936,7 @@ var deserializeAws_json1_1RuleDetail = function (output, context) {
|
|
|
7070
6936
|
expression: __expectString(output.expression),
|
|
7071
6937
|
language: __expectString(output.language),
|
|
7072
6938
|
lastUpdatedTime: __expectString(output.lastUpdatedTime),
|
|
7073
|
-
outcomes: output.outcomes
|
|
7074
|
-
? deserializeAws_json1_1NonEmptyListOfStrings(output.outcomes, context)
|
|
7075
|
-
: undefined,
|
|
6939
|
+
outcomes: output.outcomes != null ? deserializeAws_json1_1NonEmptyListOfStrings(output.outcomes, context) : undefined,
|
|
7076
6940
|
ruleId: __expectString(output.ruleId),
|
|
7077
6941
|
ruleVersion: __expectString(output.ruleVersion),
|
|
7078
6942
|
};
|
|
@@ -7101,9 +6965,7 @@ var deserializeAws_json1_1RuleList = function (output, context) {
|
|
|
7101
6965
|
};
|
|
7102
6966
|
var deserializeAws_json1_1RuleResult = function (output, context) {
|
|
7103
6967
|
return {
|
|
7104
|
-
outcomes: output.outcomes
|
|
7105
|
-
? deserializeAws_json1_1ListOfStrings(output.outcomes, context)
|
|
7106
|
-
: undefined,
|
|
6968
|
+
outcomes: output.outcomes != null ? deserializeAws_json1_1ListOfStrings(output.outcomes, context) : undefined,
|
|
7107
6969
|
ruleId: __expectString(output.ruleId),
|
|
7108
6970
|
};
|
|
7109
6971
|
};
|
|
@@ -7137,31 +6999,27 @@ var deserializeAws_json1_1ThrottlingException = function (output, context) {
|
|
|
7137
6999
|
};
|
|
7138
7000
|
var deserializeAws_json1_1TrainingDataSchema = function (output, context) {
|
|
7139
7001
|
return {
|
|
7140
|
-
labelSchema: output.labelSchema
|
|
7141
|
-
|
|
7142
|
-
: undefined,
|
|
7143
|
-
modelVariables: output.modelVariables !== undefined && output.modelVariables !== null
|
|
7144
|
-
? deserializeAws_json1_1ListOfStrings(output.modelVariables, context)
|
|
7145
|
-
: undefined,
|
|
7002
|
+
labelSchema: output.labelSchema != null ? deserializeAws_json1_1LabelSchema(output.labelSchema, context) : undefined,
|
|
7003
|
+
modelVariables: output.modelVariables != null ? deserializeAws_json1_1ListOfStrings(output.modelVariables, context) : undefined,
|
|
7146
7004
|
};
|
|
7147
7005
|
};
|
|
7148
7006
|
var deserializeAws_json1_1TrainingMetrics = function (output, context) {
|
|
7149
7007
|
return {
|
|
7150
7008
|
auc: __limitedParseFloat32(output.auc),
|
|
7151
|
-
metricDataPoints: output.metricDataPoints
|
|
7009
|
+
metricDataPoints: output.metricDataPoints != null
|
|
7152
7010
|
? deserializeAws_json1_1metricDataPointsList(output.metricDataPoints, context)
|
|
7153
7011
|
: undefined,
|
|
7154
7012
|
};
|
|
7155
7013
|
};
|
|
7156
7014
|
var deserializeAws_json1_1TrainingResult = function (output, context) {
|
|
7157
7015
|
return {
|
|
7158
|
-
dataValidationMetrics: output.dataValidationMetrics
|
|
7016
|
+
dataValidationMetrics: output.dataValidationMetrics != null
|
|
7159
7017
|
? deserializeAws_json1_1DataValidationMetrics(output.dataValidationMetrics, context)
|
|
7160
7018
|
: undefined,
|
|
7161
|
-
trainingMetrics: output.trainingMetrics
|
|
7019
|
+
trainingMetrics: output.trainingMetrics != null
|
|
7162
7020
|
? deserializeAws_json1_1TrainingMetrics(output.trainingMetrics, context)
|
|
7163
7021
|
: undefined,
|
|
7164
|
-
variableImportanceMetrics: output.variableImportanceMetrics
|
|
7022
|
+
variableImportanceMetrics: output.variableImportanceMetrics != null
|
|
7165
7023
|
? deserializeAws_json1_1VariableImportanceMetrics(output.variableImportanceMetrics, context)
|
|
7166
7024
|
: undefined,
|
|
7167
7025
|
};
|
|
@@ -7200,7 +7058,7 @@ var deserializeAws_json1_1UpdateRuleMetadataResult = function (output, context)
|
|
|
7200
7058
|
};
|
|
7201
7059
|
var deserializeAws_json1_1UpdateRuleVersionResult = function (output, context) {
|
|
7202
7060
|
return {
|
|
7203
|
-
rule: output.rule
|
|
7061
|
+
rule: output.rule != null ? deserializeAws_json1_1Rule(output.rule, context) : undefined,
|
|
7204
7062
|
};
|
|
7205
7063
|
};
|
|
7206
7064
|
var deserializeAws_json1_1UpdateVariableResult = function (output, context) {
|
|
@@ -7233,7 +7091,7 @@ var deserializeAws_json1_1VariableImpactExplanation = function (output, context)
|
|
|
7233
7091
|
};
|
|
7234
7092
|
var deserializeAws_json1_1VariableImportanceMetrics = function (output, context) {
|
|
7235
7093
|
return {
|
|
7236
|
-
logOddsMetrics: output.logOddsMetrics
|
|
7094
|
+
logOddsMetrics: output.logOddsMetrics != null
|
|
7237
7095
|
? deserializeAws_json1_1ListOfLogOddsMetrics(output.logOddsMetrics, context)
|
|
7238
7096
|
: undefined,
|
|
7239
7097
|
};
|
|
@@ -7305,6 +7163,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
7305
7163
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
7306
7164
|
var sanitizeErrorCode = function (rawValue) {
|
|
7307
7165
|
var cleanValue = rawValue;
|
|
7166
|
+
if (typeof cleanValue === "number") {
|
|
7167
|
+
cleanValue = cleanValue.toString();
|
|
7168
|
+
}
|
|
7308
7169
|
if (cleanValue.indexOf(":") >= 0) {
|
|
7309
7170
|
cleanValue = cleanValue.split(":")[0];
|
|
7310
7171
|
}
|