@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
|
@@ -4086,122 +4086,110 @@ const deserializeAws_json1_1ValidationExceptionResponse = async (parsedOutput, c
|
|
|
4086
4086
|
};
|
|
4087
4087
|
const serializeAws_json1_1BatchCreateVariableRequest = (input, context) => {
|
|
4088
4088
|
return {
|
|
4089
|
-
...(input.tags
|
|
4090
|
-
...(input.variableEntries
|
|
4091
|
-
input.variableEntries !== null && {
|
|
4089
|
+
...(input.tags != null && { tags: serializeAws_json1_1tagList(input.tags, context) }),
|
|
4090
|
+
...(input.variableEntries != null && {
|
|
4092
4091
|
variableEntries: serializeAws_json1_1VariableEntryList(input.variableEntries, context),
|
|
4093
4092
|
}),
|
|
4094
4093
|
};
|
|
4095
4094
|
};
|
|
4096
4095
|
const serializeAws_json1_1BatchGetVariableRequest = (input, context) => {
|
|
4097
4096
|
return {
|
|
4098
|
-
...(input.names
|
|
4099
|
-
input.names !== null && { names: serializeAws_json1_1NameList(input.names, context) }),
|
|
4097
|
+
...(input.names != null && { names: serializeAws_json1_1NameList(input.names, context) }),
|
|
4100
4098
|
};
|
|
4101
4099
|
};
|
|
4102
4100
|
const serializeAws_json1_1CancelBatchImportJobRequest = (input, context) => {
|
|
4103
4101
|
return {
|
|
4104
|
-
...(input.jobId
|
|
4102
|
+
...(input.jobId != null && { jobId: input.jobId }),
|
|
4105
4103
|
};
|
|
4106
4104
|
};
|
|
4107
4105
|
const serializeAws_json1_1CancelBatchPredictionJobRequest = (input, context) => {
|
|
4108
4106
|
return {
|
|
4109
|
-
...(input.jobId
|
|
4107
|
+
...(input.jobId != null && { jobId: input.jobId }),
|
|
4110
4108
|
};
|
|
4111
4109
|
};
|
|
4112
4110
|
const serializeAws_json1_1CreateBatchImportJobRequest = (input, context) => {
|
|
4113
4111
|
return {
|
|
4114
|
-
...(input.eventTypeName
|
|
4115
|
-
...(input.iamRoleArn
|
|
4116
|
-
...(input.inputPath
|
|
4117
|
-
...(input.jobId
|
|
4118
|
-
...(input.outputPath
|
|
4119
|
-
...(input.tags
|
|
4112
|
+
...(input.eventTypeName != null && { eventTypeName: input.eventTypeName }),
|
|
4113
|
+
...(input.iamRoleArn != null && { iamRoleArn: input.iamRoleArn }),
|
|
4114
|
+
...(input.inputPath != null && { inputPath: input.inputPath }),
|
|
4115
|
+
...(input.jobId != null && { jobId: input.jobId }),
|
|
4116
|
+
...(input.outputPath != null && { outputPath: input.outputPath }),
|
|
4117
|
+
...(input.tags != null && { tags: serializeAws_json1_1tagList(input.tags, context) }),
|
|
4120
4118
|
};
|
|
4121
4119
|
};
|
|
4122
4120
|
const serializeAws_json1_1CreateBatchPredictionJobRequest = (input, context) => {
|
|
4123
4121
|
return {
|
|
4124
|
-
...(input.detectorName
|
|
4125
|
-
...(input.detectorVersion
|
|
4126
|
-
|
|
4127
|
-
...(input.
|
|
4128
|
-
...(input.
|
|
4129
|
-
...(input.
|
|
4130
|
-
...(input.
|
|
4131
|
-
...(input.
|
|
4132
|
-
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1tagList(input.tags, context) }),
|
|
4122
|
+
...(input.detectorName != null && { detectorName: input.detectorName }),
|
|
4123
|
+
...(input.detectorVersion != null && { detectorVersion: input.detectorVersion }),
|
|
4124
|
+
...(input.eventTypeName != null && { eventTypeName: input.eventTypeName }),
|
|
4125
|
+
...(input.iamRoleArn != null && { iamRoleArn: input.iamRoleArn }),
|
|
4126
|
+
...(input.inputPath != null && { inputPath: input.inputPath }),
|
|
4127
|
+
...(input.jobId != null && { jobId: input.jobId }),
|
|
4128
|
+
...(input.outputPath != null && { outputPath: input.outputPath }),
|
|
4129
|
+
...(input.tags != null && { tags: serializeAws_json1_1tagList(input.tags, context) }),
|
|
4133
4130
|
};
|
|
4134
4131
|
};
|
|
4135
4132
|
const serializeAws_json1_1CreateDetectorVersionRequest = (input, context) => {
|
|
4136
4133
|
return {
|
|
4137
|
-
...(input.description
|
|
4138
|
-
...(input.detectorId
|
|
4139
|
-
...(input.externalModelEndpoints
|
|
4140
|
-
input.externalModelEndpoints !== null && {
|
|
4134
|
+
...(input.description != null && { description: input.description }),
|
|
4135
|
+
...(input.detectorId != null && { detectorId: input.detectorId }),
|
|
4136
|
+
...(input.externalModelEndpoints != null && {
|
|
4141
4137
|
externalModelEndpoints: serializeAws_json1_1ListOfStrings(input.externalModelEndpoints, context),
|
|
4142
4138
|
}),
|
|
4143
|
-
...(input.modelVersions
|
|
4144
|
-
input.modelVersions !== null && {
|
|
4139
|
+
...(input.modelVersions != null && {
|
|
4145
4140
|
modelVersions: serializeAws_json1_1ListOfModelVersions(input.modelVersions, context),
|
|
4146
4141
|
}),
|
|
4147
|
-
...(input.ruleExecutionMode
|
|
4148
|
-
|
|
4149
|
-
...(input.
|
|
4150
|
-
input.rules !== null && { rules: serializeAws_json1_1RuleList(input.rules, context) }),
|
|
4151
|
-
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1tagList(input.tags, context) }),
|
|
4142
|
+
...(input.ruleExecutionMode != null && { ruleExecutionMode: input.ruleExecutionMode }),
|
|
4143
|
+
...(input.rules != null && { rules: serializeAws_json1_1RuleList(input.rules, context) }),
|
|
4144
|
+
...(input.tags != null && { tags: serializeAws_json1_1tagList(input.tags, context) }),
|
|
4152
4145
|
};
|
|
4153
4146
|
};
|
|
4154
4147
|
const serializeAws_json1_1CreateModelRequest = (input, context) => {
|
|
4155
4148
|
return {
|
|
4156
|
-
...(input.description
|
|
4157
|
-
...(input.eventTypeName
|
|
4158
|
-
...(input.modelId
|
|
4159
|
-
...(input.modelType
|
|
4160
|
-
...(input.tags
|
|
4149
|
+
...(input.description != null && { description: input.description }),
|
|
4150
|
+
...(input.eventTypeName != null && { eventTypeName: input.eventTypeName }),
|
|
4151
|
+
...(input.modelId != null && { modelId: input.modelId }),
|
|
4152
|
+
...(input.modelType != null && { modelType: input.modelType }),
|
|
4153
|
+
...(input.tags != null && { tags: serializeAws_json1_1tagList(input.tags, context) }),
|
|
4161
4154
|
};
|
|
4162
4155
|
};
|
|
4163
4156
|
const serializeAws_json1_1CreateModelVersionRequest = (input, context) => {
|
|
4164
4157
|
return {
|
|
4165
|
-
...(input.externalEventsDetail
|
|
4166
|
-
input.externalEventsDetail !== null && {
|
|
4158
|
+
...(input.externalEventsDetail != null && {
|
|
4167
4159
|
externalEventsDetail: serializeAws_json1_1ExternalEventsDetail(input.externalEventsDetail, context),
|
|
4168
4160
|
}),
|
|
4169
|
-
...(input.ingestedEventsDetail
|
|
4170
|
-
input.ingestedEventsDetail !== null && {
|
|
4161
|
+
...(input.ingestedEventsDetail != null && {
|
|
4171
4162
|
ingestedEventsDetail: serializeAws_json1_1IngestedEventsDetail(input.ingestedEventsDetail, context),
|
|
4172
4163
|
}),
|
|
4173
|
-
...(input.modelId
|
|
4174
|
-
...(input.modelType
|
|
4175
|
-
...(input.tags
|
|
4176
|
-
...(input.trainingDataSchema
|
|
4177
|
-
input.trainingDataSchema !== null && {
|
|
4164
|
+
...(input.modelId != null && { modelId: input.modelId }),
|
|
4165
|
+
...(input.modelType != null && { modelType: input.modelType }),
|
|
4166
|
+
...(input.tags != null && { tags: serializeAws_json1_1tagList(input.tags, context) }),
|
|
4167
|
+
...(input.trainingDataSchema != null && {
|
|
4178
4168
|
trainingDataSchema: serializeAws_json1_1TrainingDataSchema(input.trainingDataSchema, context),
|
|
4179
4169
|
}),
|
|
4180
|
-
...(input.trainingDataSource
|
|
4181
|
-
input.trainingDataSource !== null && { trainingDataSource: input.trainingDataSource }),
|
|
4170
|
+
...(input.trainingDataSource != null && { trainingDataSource: input.trainingDataSource }),
|
|
4182
4171
|
};
|
|
4183
4172
|
};
|
|
4184
4173
|
const serializeAws_json1_1CreateRuleRequest = (input, context) => {
|
|
4185
4174
|
return {
|
|
4186
|
-
...(input.description
|
|
4187
|
-
...(input.detectorId
|
|
4188
|
-
...(input.expression
|
|
4189
|
-
...(input.language
|
|
4190
|
-
...(input.outcomes
|
|
4191
|
-
|
|
4192
|
-
...(input.
|
|
4193
|
-
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1tagList(input.tags, context) }),
|
|
4175
|
+
...(input.description != null && { description: input.description }),
|
|
4176
|
+
...(input.detectorId != null && { detectorId: input.detectorId }),
|
|
4177
|
+
...(input.expression != null && { expression: input.expression }),
|
|
4178
|
+
...(input.language != null && { language: input.language }),
|
|
4179
|
+
...(input.outcomes != null && { outcomes: serializeAws_json1_1NonEmptyListOfStrings(input.outcomes, context) }),
|
|
4180
|
+
...(input.ruleId != null && { ruleId: input.ruleId }),
|
|
4181
|
+
...(input.tags != null && { tags: serializeAws_json1_1tagList(input.tags, context) }),
|
|
4194
4182
|
};
|
|
4195
4183
|
};
|
|
4196
4184
|
const serializeAws_json1_1CreateVariableRequest = (input, context) => {
|
|
4197
4185
|
return {
|
|
4198
|
-
...(input.dataSource
|
|
4199
|
-
...(input.dataType
|
|
4200
|
-
...(input.defaultValue
|
|
4201
|
-
...(input.description
|
|
4202
|
-
...(input.name
|
|
4203
|
-
...(input.tags
|
|
4204
|
-
...(input.variableType
|
|
4186
|
+
...(input.dataSource != null && { dataSource: input.dataSource }),
|
|
4187
|
+
...(input.dataType != null && { dataType: input.dataType }),
|
|
4188
|
+
...(input.defaultValue != null && { defaultValue: input.defaultValue }),
|
|
4189
|
+
...(input.description != null && { description: input.description }),
|
|
4190
|
+
...(input.name != null && { name: input.name }),
|
|
4191
|
+
...(input.tags != null && { tags: serializeAws_json1_1tagList(input.tags, context) }),
|
|
4192
|
+
...(input.variableType != null && { variableType: input.variableType }),
|
|
4205
4193
|
};
|
|
4206
4194
|
};
|
|
4207
4195
|
const serializeAws_json1_1CsvIndexToVariableMap = (input, context) => {
|
|
@@ -4217,109 +4205,105 @@ const serializeAws_json1_1CsvIndexToVariableMap = (input, context) => {
|
|
|
4217
4205
|
};
|
|
4218
4206
|
const serializeAws_json1_1DeleteBatchImportJobRequest = (input, context) => {
|
|
4219
4207
|
return {
|
|
4220
|
-
...(input.jobId
|
|
4208
|
+
...(input.jobId != null && { jobId: input.jobId }),
|
|
4221
4209
|
};
|
|
4222
4210
|
};
|
|
4223
4211
|
const serializeAws_json1_1DeleteBatchPredictionJobRequest = (input, context) => {
|
|
4224
4212
|
return {
|
|
4225
|
-
...(input.jobId
|
|
4213
|
+
...(input.jobId != null && { jobId: input.jobId }),
|
|
4226
4214
|
};
|
|
4227
4215
|
};
|
|
4228
4216
|
const serializeAws_json1_1DeleteDetectorRequest = (input, context) => {
|
|
4229
4217
|
return {
|
|
4230
|
-
...(input.detectorId
|
|
4218
|
+
...(input.detectorId != null && { detectorId: input.detectorId }),
|
|
4231
4219
|
};
|
|
4232
4220
|
};
|
|
4233
4221
|
const serializeAws_json1_1DeleteDetectorVersionRequest = (input, context) => {
|
|
4234
4222
|
return {
|
|
4235
|
-
...(input.detectorId
|
|
4236
|
-
...(input.detectorVersionId
|
|
4237
|
-
input.detectorVersionId !== null && { detectorVersionId: input.detectorVersionId }),
|
|
4223
|
+
...(input.detectorId != null && { detectorId: input.detectorId }),
|
|
4224
|
+
...(input.detectorVersionId != null && { detectorVersionId: input.detectorVersionId }),
|
|
4238
4225
|
};
|
|
4239
4226
|
};
|
|
4240
4227
|
const serializeAws_json1_1DeleteEntityTypeRequest = (input, context) => {
|
|
4241
4228
|
return {
|
|
4242
|
-
...(input.name
|
|
4229
|
+
...(input.name != null && { name: input.name }),
|
|
4243
4230
|
};
|
|
4244
4231
|
};
|
|
4245
4232
|
const serializeAws_json1_1DeleteEventRequest = (input, context) => {
|
|
4246
4233
|
return {
|
|
4247
|
-
...(input.deleteAuditHistory
|
|
4248
|
-
|
|
4249
|
-
...(input.
|
|
4250
|
-
...(input.eventTypeName !== undefined && input.eventTypeName !== null && { eventTypeName: input.eventTypeName }),
|
|
4234
|
+
...(input.deleteAuditHistory != null && { deleteAuditHistory: input.deleteAuditHistory }),
|
|
4235
|
+
...(input.eventId != null && { eventId: input.eventId }),
|
|
4236
|
+
...(input.eventTypeName != null && { eventTypeName: input.eventTypeName }),
|
|
4251
4237
|
};
|
|
4252
4238
|
};
|
|
4253
4239
|
const serializeAws_json1_1DeleteEventsByEventTypeRequest = (input, context) => {
|
|
4254
4240
|
return {
|
|
4255
|
-
...(input.eventTypeName
|
|
4241
|
+
...(input.eventTypeName != null && { eventTypeName: input.eventTypeName }),
|
|
4256
4242
|
};
|
|
4257
4243
|
};
|
|
4258
4244
|
const serializeAws_json1_1DeleteEventTypeRequest = (input, context) => {
|
|
4259
4245
|
return {
|
|
4260
|
-
...(input.name
|
|
4246
|
+
...(input.name != null && { name: input.name }),
|
|
4261
4247
|
};
|
|
4262
4248
|
};
|
|
4263
4249
|
const serializeAws_json1_1DeleteExternalModelRequest = (input, context) => {
|
|
4264
4250
|
return {
|
|
4265
|
-
...(input.modelEndpoint
|
|
4251
|
+
...(input.modelEndpoint != null && { modelEndpoint: input.modelEndpoint }),
|
|
4266
4252
|
};
|
|
4267
4253
|
};
|
|
4268
4254
|
const serializeAws_json1_1DeleteLabelRequest = (input, context) => {
|
|
4269
4255
|
return {
|
|
4270
|
-
...(input.name
|
|
4256
|
+
...(input.name != null && { name: input.name }),
|
|
4271
4257
|
};
|
|
4272
4258
|
};
|
|
4273
4259
|
const serializeAws_json1_1DeleteModelRequest = (input, context) => {
|
|
4274
4260
|
return {
|
|
4275
|
-
...(input.modelId
|
|
4276
|
-
...(input.modelType
|
|
4261
|
+
...(input.modelId != null && { modelId: input.modelId }),
|
|
4262
|
+
...(input.modelType != null && { modelType: input.modelType }),
|
|
4277
4263
|
};
|
|
4278
4264
|
};
|
|
4279
4265
|
const serializeAws_json1_1DeleteModelVersionRequest = (input, context) => {
|
|
4280
4266
|
return {
|
|
4281
|
-
...(input.modelId
|
|
4282
|
-
...(input.modelType
|
|
4283
|
-
...(input.modelVersionNumber
|
|
4284
|
-
input.modelVersionNumber !== null && { modelVersionNumber: input.modelVersionNumber }),
|
|
4267
|
+
...(input.modelId != null && { modelId: input.modelId }),
|
|
4268
|
+
...(input.modelType != null && { modelType: input.modelType }),
|
|
4269
|
+
...(input.modelVersionNumber != null && { modelVersionNumber: input.modelVersionNumber }),
|
|
4285
4270
|
};
|
|
4286
4271
|
};
|
|
4287
4272
|
const serializeAws_json1_1DeleteOutcomeRequest = (input, context) => {
|
|
4288
4273
|
return {
|
|
4289
|
-
...(input.name
|
|
4274
|
+
...(input.name != null && { name: input.name }),
|
|
4290
4275
|
};
|
|
4291
4276
|
};
|
|
4292
4277
|
const serializeAws_json1_1DeleteRuleRequest = (input, context) => {
|
|
4293
4278
|
return {
|
|
4294
|
-
...(input.rule
|
|
4279
|
+
...(input.rule != null && { rule: serializeAws_json1_1Rule(input.rule, context) }),
|
|
4295
4280
|
};
|
|
4296
4281
|
};
|
|
4297
4282
|
const serializeAws_json1_1DeleteVariableRequest = (input, context) => {
|
|
4298
4283
|
return {
|
|
4299
|
-
...(input.name
|
|
4284
|
+
...(input.name != null && { name: input.name }),
|
|
4300
4285
|
};
|
|
4301
4286
|
};
|
|
4302
4287
|
const serializeAws_json1_1DescribeDetectorRequest = (input, context) => {
|
|
4303
4288
|
return {
|
|
4304
|
-
...(input.detectorId
|
|
4305
|
-
...(input.maxResults
|
|
4306
|
-
...(input.nextToken
|
|
4289
|
+
...(input.detectorId != null && { detectorId: input.detectorId }),
|
|
4290
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
4291
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
4307
4292
|
};
|
|
4308
4293
|
};
|
|
4309
4294
|
const serializeAws_json1_1DescribeModelVersionsRequest = (input, context) => {
|
|
4310
4295
|
return {
|
|
4311
|
-
...(input.maxResults
|
|
4312
|
-
...(input.modelId
|
|
4313
|
-
...(input.modelType
|
|
4314
|
-
...(input.modelVersionNumber
|
|
4315
|
-
|
|
4316
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
4296
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
4297
|
+
...(input.modelId != null && { modelId: input.modelId }),
|
|
4298
|
+
...(input.modelType != null && { modelType: input.modelType }),
|
|
4299
|
+
...(input.modelVersionNumber != null && { modelVersionNumber: input.modelVersionNumber }),
|
|
4300
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
4317
4301
|
};
|
|
4318
4302
|
};
|
|
4319
4303
|
const serializeAws_json1_1Entity = (input, context) => {
|
|
4320
4304
|
return {
|
|
4321
|
-
...(input.entityId
|
|
4322
|
-
...(input.entityType
|
|
4305
|
+
...(input.entityId != null && { entityId: input.entityId }),
|
|
4306
|
+
...(input.entityType != null && { entityType: input.entityType }),
|
|
4323
4307
|
};
|
|
4324
4308
|
};
|
|
4325
4309
|
const serializeAws_json1_1EventVariableMap = (input, context) => {
|
|
@@ -4335,9 +4319,8 @@ const serializeAws_json1_1EventVariableMap = (input, context) => {
|
|
|
4335
4319
|
};
|
|
4336
4320
|
const serializeAws_json1_1ExternalEventsDetail = (input, context) => {
|
|
4337
4321
|
return {
|
|
4338
|
-
...(input.dataAccessRoleArn
|
|
4339
|
-
|
|
4340
|
-
...(input.dataLocation !== undefined && input.dataLocation !== null && { dataLocation: input.dataLocation }),
|
|
4322
|
+
...(input.dataAccessRoleArn != null && { dataAccessRoleArn: input.dataAccessRoleArn }),
|
|
4323
|
+
...(input.dataLocation != null && { dataLocation: input.dataLocation }),
|
|
4341
4324
|
};
|
|
4342
4325
|
};
|
|
4343
4326
|
const serializeAws_json1_1ExternalModelEndpointDataBlobMap = (input, context) => {
|
|
@@ -4353,159 +4336,149 @@ const serializeAws_json1_1ExternalModelEndpointDataBlobMap = (input, context) =>
|
|
|
4353
4336
|
};
|
|
4354
4337
|
const serializeAws_json1_1FilterCondition = (input, context) => {
|
|
4355
4338
|
return {
|
|
4356
|
-
...(input.value
|
|
4339
|
+
...(input.value != null && { value: input.value }),
|
|
4357
4340
|
};
|
|
4358
4341
|
};
|
|
4359
4342
|
const serializeAws_json1_1GetBatchImportJobsRequest = (input, context) => {
|
|
4360
4343
|
return {
|
|
4361
|
-
...(input.jobId
|
|
4362
|
-
...(input.maxResults
|
|
4363
|
-
...(input.nextToken
|
|
4344
|
+
...(input.jobId != null && { jobId: input.jobId }),
|
|
4345
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
4346
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
4364
4347
|
};
|
|
4365
4348
|
};
|
|
4366
4349
|
const serializeAws_json1_1GetBatchPredictionJobsRequest = (input, context) => {
|
|
4367
4350
|
return {
|
|
4368
|
-
...(input.jobId
|
|
4369
|
-
...(input.maxResults
|
|
4370
|
-
...(input.nextToken
|
|
4351
|
+
...(input.jobId != null && { jobId: input.jobId }),
|
|
4352
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
4353
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
4371
4354
|
};
|
|
4372
4355
|
};
|
|
4373
4356
|
const serializeAws_json1_1GetDeleteEventsByEventTypeStatusRequest = (input, context) => {
|
|
4374
4357
|
return {
|
|
4375
|
-
...(input.eventTypeName
|
|
4358
|
+
...(input.eventTypeName != null && { eventTypeName: input.eventTypeName }),
|
|
4376
4359
|
};
|
|
4377
4360
|
};
|
|
4378
4361
|
const serializeAws_json1_1GetDetectorsRequest = (input, context) => {
|
|
4379
4362
|
return {
|
|
4380
|
-
...(input.detectorId
|
|
4381
|
-
...(input.maxResults
|
|
4382
|
-
...(input.nextToken
|
|
4363
|
+
...(input.detectorId != null && { detectorId: input.detectorId }),
|
|
4364
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
4365
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
4383
4366
|
};
|
|
4384
4367
|
};
|
|
4385
4368
|
const serializeAws_json1_1GetDetectorVersionRequest = (input, context) => {
|
|
4386
4369
|
return {
|
|
4387
|
-
...(input.detectorId
|
|
4388
|
-
...(input.detectorVersionId
|
|
4389
|
-
input.detectorVersionId !== null && { detectorVersionId: input.detectorVersionId }),
|
|
4370
|
+
...(input.detectorId != null && { detectorId: input.detectorId }),
|
|
4371
|
+
...(input.detectorVersionId != null && { detectorVersionId: input.detectorVersionId }),
|
|
4390
4372
|
};
|
|
4391
4373
|
};
|
|
4392
4374
|
const serializeAws_json1_1GetEntityTypesRequest = (input, context) => {
|
|
4393
4375
|
return {
|
|
4394
|
-
...(input.maxResults
|
|
4395
|
-
...(input.name
|
|
4396
|
-
...(input.nextToken
|
|
4376
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
4377
|
+
...(input.name != null && { name: input.name }),
|
|
4378
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
4397
4379
|
};
|
|
4398
4380
|
};
|
|
4399
4381
|
const serializeAws_json1_1GetEventPredictionMetadataRequest = (input, context) => {
|
|
4400
4382
|
return {
|
|
4401
|
-
...(input.detectorId
|
|
4402
|
-
...(input.detectorVersionId
|
|
4403
|
-
|
|
4404
|
-
...(input.
|
|
4405
|
-
...(input.
|
|
4406
|
-
...(input.predictionTimestamp !== undefined &&
|
|
4407
|
-
input.predictionTimestamp !== null && { predictionTimestamp: input.predictionTimestamp }),
|
|
4383
|
+
...(input.detectorId != null && { detectorId: input.detectorId }),
|
|
4384
|
+
...(input.detectorVersionId != null && { detectorVersionId: input.detectorVersionId }),
|
|
4385
|
+
...(input.eventId != null && { eventId: input.eventId }),
|
|
4386
|
+
...(input.eventTypeName != null && { eventTypeName: input.eventTypeName }),
|
|
4387
|
+
...(input.predictionTimestamp != null && { predictionTimestamp: input.predictionTimestamp }),
|
|
4408
4388
|
};
|
|
4409
4389
|
};
|
|
4410
4390
|
const serializeAws_json1_1GetEventPredictionRequest = (input, context) => {
|
|
4411
4391
|
return {
|
|
4412
|
-
...(input.detectorId
|
|
4413
|
-
...(input.detectorVersionId
|
|
4414
|
-
|
|
4415
|
-
...(input.
|
|
4416
|
-
|
|
4417
|
-
...(input.
|
|
4418
|
-
...(input.
|
|
4419
|
-
input.eventTimestamp !== null && { eventTimestamp: input.eventTimestamp }),
|
|
4420
|
-
...(input.eventTypeName !== undefined && input.eventTypeName !== null && { eventTypeName: input.eventTypeName }),
|
|
4421
|
-
...(input.eventVariables !== undefined &&
|
|
4422
|
-
input.eventVariables !== null && {
|
|
4392
|
+
...(input.detectorId != null && { detectorId: input.detectorId }),
|
|
4393
|
+
...(input.detectorVersionId != null && { detectorVersionId: input.detectorVersionId }),
|
|
4394
|
+
...(input.entities != null && { entities: serializeAws_json1_1listOfEntities(input.entities, context) }),
|
|
4395
|
+
...(input.eventId != null && { eventId: input.eventId }),
|
|
4396
|
+
...(input.eventTimestamp != null && { eventTimestamp: input.eventTimestamp }),
|
|
4397
|
+
...(input.eventTypeName != null && { eventTypeName: input.eventTypeName }),
|
|
4398
|
+
...(input.eventVariables != null && {
|
|
4423
4399
|
eventVariables: serializeAws_json1_1EventVariableMap(input.eventVariables, context),
|
|
4424
4400
|
}),
|
|
4425
|
-
...(input.externalModelEndpointDataBlobs
|
|
4426
|
-
input.externalModelEndpointDataBlobs !== null && {
|
|
4401
|
+
...(input.externalModelEndpointDataBlobs != null && {
|
|
4427
4402
|
externalModelEndpointDataBlobs: serializeAws_json1_1ExternalModelEndpointDataBlobMap(input.externalModelEndpointDataBlobs, context),
|
|
4428
4403
|
}),
|
|
4429
4404
|
};
|
|
4430
4405
|
};
|
|
4431
4406
|
const serializeAws_json1_1GetEventRequest = (input, context) => {
|
|
4432
4407
|
return {
|
|
4433
|
-
...(input.eventId
|
|
4434
|
-
...(input.eventTypeName
|
|
4408
|
+
...(input.eventId != null && { eventId: input.eventId }),
|
|
4409
|
+
...(input.eventTypeName != null && { eventTypeName: input.eventTypeName }),
|
|
4435
4410
|
};
|
|
4436
4411
|
};
|
|
4437
4412
|
const serializeAws_json1_1GetEventTypesRequest = (input, context) => {
|
|
4438
4413
|
return {
|
|
4439
|
-
...(input.maxResults
|
|
4440
|
-
...(input.name
|
|
4441
|
-
...(input.nextToken
|
|
4414
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
4415
|
+
...(input.name != null && { name: input.name }),
|
|
4416
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
4442
4417
|
};
|
|
4443
4418
|
};
|
|
4444
4419
|
const serializeAws_json1_1GetExternalModelsRequest = (input, context) => {
|
|
4445
4420
|
return {
|
|
4446
|
-
...(input.maxResults
|
|
4447
|
-
...(input.modelEndpoint
|
|
4448
|
-
...(input.nextToken
|
|
4421
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
4422
|
+
...(input.modelEndpoint != null && { modelEndpoint: input.modelEndpoint }),
|
|
4423
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
4449
4424
|
};
|
|
4450
4425
|
};
|
|
4451
4426
|
const serializeAws_json1_1GetLabelsRequest = (input, context) => {
|
|
4452
4427
|
return {
|
|
4453
|
-
...(input.maxResults
|
|
4454
|
-
...(input.name
|
|
4455
|
-
...(input.nextToken
|
|
4428
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
4429
|
+
...(input.name != null && { name: input.name }),
|
|
4430
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
4456
4431
|
};
|
|
4457
4432
|
};
|
|
4458
4433
|
const serializeAws_json1_1GetModelsRequest = (input, context) => {
|
|
4459
4434
|
return {
|
|
4460
|
-
...(input.maxResults
|
|
4461
|
-
...(input.modelId
|
|
4462
|
-
...(input.modelType
|
|
4463
|
-
...(input.nextToken
|
|
4435
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
4436
|
+
...(input.modelId != null && { modelId: input.modelId }),
|
|
4437
|
+
...(input.modelType != null && { modelType: input.modelType }),
|
|
4438
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
4464
4439
|
};
|
|
4465
4440
|
};
|
|
4466
4441
|
const serializeAws_json1_1GetModelVersionRequest = (input, context) => {
|
|
4467
4442
|
return {
|
|
4468
|
-
...(input.modelId
|
|
4469
|
-
...(input.modelType
|
|
4470
|
-
...(input.modelVersionNumber
|
|
4471
|
-
input.modelVersionNumber !== null && { modelVersionNumber: input.modelVersionNumber }),
|
|
4443
|
+
...(input.modelId != null && { modelId: input.modelId }),
|
|
4444
|
+
...(input.modelType != null && { modelType: input.modelType }),
|
|
4445
|
+
...(input.modelVersionNumber != null && { modelVersionNumber: input.modelVersionNumber }),
|
|
4472
4446
|
};
|
|
4473
4447
|
};
|
|
4474
4448
|
const serializeAws_json1_1GetOutcomesRequest = (input, context) => {
|
|
4475
4449
|
return {
|
|
4476
|
-
...(input.maxResults
|
|
4477
|
-
...(input.name
|
|
4478
|
-
...(input.nextToken
|
|
4450
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
4451
|
+
...(input.name != null && { name: input.name }),
|
|
4452
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
4479
4453
|
};
|
|
4480
4454
|
};
|
|
4481
4455
|
const serializeAws_json1_1GetRulesRequest = (input, context) => {
|
|
4482
4456
|
return {
|
|
4483
|
-
...(input.detectorId
|
|
4484
|
-
...(input.maxResults
|
|
4485
|
-
...(input.nextToken
|
|
4486
|
-
...(input.ruleId
|
|
4487
|
-
...(input.ruleVersion
|
|
4457
|
+
...(input.detectorId != null && { detectorId: input.detectorId }),
|
|
4458
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
4459
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
4460
|
+
...(input.ruleId != null && { ruleId: input.ruleId }),
|
|
4461
|
+
...(input.ruleVersion != null && { ruleVersion: input.ruleVersion }),
|
|
4488
4462
|
};
|
|
4489
4463
|
};
|
|
4490
4464
|
const serializeAws_json1_1GetVariablesRequest = (input, context) => {
|
|
4491
4465
|
return {
|
|
4492
|
-
...(input.maxResults
|
|
4493
|
-
...(input.name
|
|
4494
|
-
...(input.nextToken
|
|
4466
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
4467
|
+
...(input.name != null && { name: input.name }),
|
|
4468
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
4495
4469
|
};
|
|
4496
4470
|
};
|
|
4497
4471
|
const serializeAws_json1_1IngestedEventsDetail = (input, context) => {
|
|
4498
4472
|
return {
|
|
4499
|
-
...(input.ingestedEventsTimeWindow
|
|
4500
|
-
input.ingestedEventsTimeWindow !== null && {
|
|
4473
|
+
...(input.ingestedEventsTimeWindow != null && {
|
|
4501
4474
|
ingestedEventsTimeWindow: serializeAws_json1_1IngestedEventsTimeWindow(input.ingestedEventsTimeWindow, context),
|
|
4502
4475
|
}),
|
|
4503
4476
|
};
|
|
4504
4477
|
};
|
|
4505
4478
|
const serializeAws_json1_1IngestedEventsTimeWindow = (input, context) => {
|
|
4506
4479
|
return {
|
|
4507
|
-
...(input.endTime
|
|
4508
|
-
...(input.startTime
|
|
4480
|
+
...(input.endTime != null && { endTime: input.endTime }),
|
|
4481
|
+
...(input.startTime != null && { startTime: input.startTime }),
|
|
4509
4482
|
};
|
|
4510
4483
|
};
|
|
4511
4484
|
const serializeAws_json1_1JsonKeyToVariableMap = (input, context) => {
|
|
@@ -4532,28 +4505,21 @@ const serializeAws_json1_1labelMapper = (input, context) => {
|
|
|
4532
4505
|
};
|
|
4533
4506
|
const serializeAws_json1_1LabelSchema = (input, context) => {
|
|
4534
4507
|
return {
|
|
4535
|
-
...(input.labelMapper
|
|
4536
|
-
|
|
4537
|
-
...(input.unlabeledEventsTreatment !== undefined &&
|
|
4538
|
-
input.unlabeledEventsTreatment !== null && { unlabeledEventsTreatment: input.unlabeledEventsTreatment }),
|
|
4508
|
+
...(input.labelMapper != null && { labelMapper: serializeAws_json1_1labelMapper(input.labelMapper, context) }),
|
|
4509
|
+
...(input.unlabeledEventsTreatment != null && { unlabeledEventsTreatment: input.unlabeledEventsTreatment }),
|
|
4539
4510
|
};
|
|
4540
4511
|
};
|
|
4541
4512
|
const serializeAws_json1_1ListEventPredictionsRequest = (input, context) => {
|
|
4542
4513
|
return {
|
|
4543
|
-
...(input.detectorId
|
|
4544
|
-
|
|
4545
|
-
...(input.detectorVersionId !== undefined &&
|
|
4546
|
-
input.detectorVersionId !== null && {
|
|
4514
|
+
...(input.detectorId != null && { detectorId: serializeAws_json1_1FilterCondition(input.detectorId, context) }),
|
|
4515
|
+
...(input.detectorVersionId != null && {
|
|
4547
4516
|
detectorVersionId: serializeAws_json1_1FilterCondition(input.detectorVersionId, context),
|
|
4548
4517
|
}),
|
|
4549
|
-
...(input.eventId
|
|
4550
|
-
|
|
4551
|
-
...(input.
|
|
4552
|
-
|
|
4553
|
-
...(input.
|
|
4554
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
4555
|
-
...(input.predictionTimeRange !== undefined &&
|
|
4556
|
-
input.predictionTimeRange !== null && {
|
|
4518
|
+
...(input.eventId != null && { eventId: serializeAws_json1_1FilterCondition(input.eventId, context) }),
|
|
4519
|
+
...(input.eventType != null && { eventType: serializeAws_json1_1FilterCondition(input.eventType, context) }),
|
|
4520
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
4521
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
4522
|
+
...(input.predictionTimeRange != null && {
|
|
4557
4523
|
predictionTimeRange: serializeAws_json1_1PredictionTimeRange(input.predictionTimeRange, context),
|
|
4558
4524
|
}),
|
|
4559
4525
|
};
|
|
@@ -4590,50 +4556,43 @@ const serializeAws_json1_1ListOfStrings = (input, context) => {
|
|
|
4590
4556
|
};
|
|
4591
4557
|
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
4592
4558
|
return {
|
|
4593
|
-
...(input.maxResults
|
|
4594
|
-
...(input.nextToken
|
|
4595
|
-
...(input.resourceARN
|
|
4559
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
4560
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
4561
|
+
...(input.resourceARN != null && { resourceARN: input.resourceARN }),
|
|
4596
4562
|
};
|
|
4597
4563
|
};
|
|
4598
4564
|
const serializeAws_json1_1ModelEndpointDataBlob = (input, context) => {
|
|
4599
4565
|
return {
|
|
4600
|
-
...(input.byteBuffer
|
|
4601
|
-
|
|
4602
|
-
...(input.contentType !== undefined && input.contentType !== null && { contentType: input.contentType }),
|
|
4566
|
+
...(input.byteBuffer != null && { byteBuffer: context.base64Encoder(input.byteBuffer) }),
|
|
4567
|
+
...(input.contentType != null && { contentType: input.contentType }),
|
|
4603
4568
|
};
|
|
4604
4569
|
};
|
|
4605
4570
|
const serializeAws_json1_1ModelInputConfiguration = (input, context) => {
|
|
4606
4571
|
return {
|
|
4607
|
-
...(input.csvInputTemplate
|
|
4608
|
-
|
|
4609
|
-
...(input.
|
|
4610
|
-
...(input.
|
|
4611
|
-
...(input.
|
|
4612
|
-
input.jsonInputTemplate !== null && { jsonInputTemplate: input.jsonInputTemplate }),
|
|
4613
|
-
...(input.useEventVariables !== undefined &&
|
|
4614
|
-
input.useEventVariables !== null && { useEventVariables: input.useEventVariables }),
|
|
4572
|
+
...(input.csvInputTemplate != null && { csvInputTemplate: input.csvInputTemplate }),
|
|
4573
|
+
...(input.eventTypeName != null && { eventTypeName: input.eventTypeName }),
|
|
4574
|
+
...(input.format != null && { format: input.format }),
|
|
4575
|
+
...(input.jsonInputTemplate != null && { jsonInputTemplate: input.jsonInputTemplate }),
|
|
4576
|
+
...(input.useEventVariables != null && { useEventVariables: input.useEventVariables }),
|
|
4615
4577
|
};
|
|
4616
4578
|
};
|
|
4617
4579
|
const serializeAws_json1_1ModelOutputConfiguration = (input, context) => {
|
|
4618
4580
|
return {
|
|
4619
|
-
...(input.csvIndexToVariableMap
|
|
4620
|
-
input.csvIndexToVariableMap !== null && {
|
|
4581
|
+
...(input.csvIndexToVariableMap != null && {
|
|
4621
4582
|
csvIndexToVariableMap: serializeAws_json1_1CsvIndexToVariableMap(input.csvIndexToVariableMap, context),
|
|
4622
4583
|
}),
|
|
4623
|
-
...(input.format
|
|
4624
|
-
...(input.jsonKeyToVariableMap
|
|
4625
|
-
input.jsonKeyToVariableMap !== null && {
|
|
4584
|
+
...(input.format != null && { format: input.format }),
|
|
4585
|
+
...(input.jsonKeyToVariableMap != null && {
|
|
4626
4586
|
jsonKeyToVariableMap: serializeAws_json1_1JsonKeyToVariableMap(input.jsonKeyToVariableMap, context),
|
|
4627
4587
|
}),
|
|
4628
4588
|
};
|
|
4629
4589
|
};
|
|
4630
4590
|
const serializeAws_json1_1ModelVersion = (input, context) => {
|
|
4631
4591
|
return {
|
|
4632
|
-
...(input.arn
|
|
4633
|
-
...(input.modelId
|
|
4634
|
-
...(input.modelType
|
|
4635
|
-
...(input.modelVersionNumber
|
|
4636
|
-
input.modelVersionNumber !== null && { modelVersionNumber: input.modelVersionNumber }),
|
|
4592
|
+
...(input.arn != null && { arn: input.arn }),
|
|
4593
|
+
...(input.modelId != null && { modelId: input.modelId }),
|
|
4594
|
+
...(input.modelType != null && { modelType: input.modelType }),
|
|
4595
|
+
...(input.modelVersionNumber != null && { modelVersionNumber: input.modelVersionNumber }),
|
|
4637
4596
|
};
|
|
4638
4597
|
};
|
|
4639
4598
|
const serializeAws_json1_1NameList = (input, context) => {
|
|
@@ -4658,88 +4617,79 @@ const serializeAws_json1_1NonEmptyListOfStrings = (input, context) => {
|
|
|
4658
4617
|
};
|
|
4659
4618
|
const serializeAws_json1_1PredictionTimeRange = (input, context) => {
|
|
4660
4619
|
return {
|
|
4661
|
-
...(input.endTime
|
|
4662
|
-
...(input.startTime
|
|
4620
|
+
...(input.endTime != null && { endTime: input.endTime }),
|
|
4621
|
+
...(input.startTime != null && { startTime: input.startTime }),
|
|
4663
4622
|
};
|
|
4664
4623
|
};
|
|
4665
4624
|
const serializeAws_json1_1PutDetectorRequest = (input, context) => {
|
|
4666
4625
|
return {
|
|
4667
|
-
...(input.description
|
|
4668
|
-
...(input.detectorId
|
|
4669
|
-
...(input.eventTypeName
|
|
4670
|
-
...(input.tags
|
|
4626
|
+
...(input.description != null && { description: input.description }),
|
|
4627
|
+
...(input.detectorId != null && { detectorId: input.detectorId }),
|
|
4628
|
+
...(input.eventTypeName != null && { eventTypeName: input.eventTypeName }),
|
|
4629
|
+
...(input.tags != null && { tags: serializeAws_json1_1tagList(input.tags, context) }),
|
|
4671
4630
|
};
|
|
4672
4631
|
};
|
|
4673
4632
|
const serializeAws_json1_1PutEntityTypeRequest = (input, context) => {
|
|
4674
4633
|
return {
|
|
4675
|
-
...(input.description
|
|
4676
|
-
...(input.name
|
|
4677
|
-
...(input.tags
|
|
4634
|
+
...(input.description != null && { description: input.description }),
|
|
4635
|
+
...(input.name != null && { name: input.name }),
|
|
4636
|
+
...(input.tags != null && { tags: serializeAws_json1_1tagList(input.tags, context) }),
|
|
4678
4637
|
};
|
|
4679
4638
|
};
|
|
4680
4639
|
const serializeAws_json1_1PutEventTypeRequest = (input, context) => {
|
|
4681
4640
|
return {
|
|
4682
|
-
...(input.description
|
|
4683
|
-
...(input.entityTypes
|
|
4684
|
-
input.entityTypes !== null && {
|
|
4641
|
+
...(input.description != null && { description: input.description }),
|
|
4642
|
+
...(input.entityTypes != null && {
|
|
4685
4643
|
entityTypes: serializeAws_json1_1NonEmptyListOfStrings(input.entityTypes, context),
|
|
4686
4644
|
}),
|
|
4687
|
-
...(input.eventIngestion
|
|
4688
|
-
|
|
4689
|
-
...(input.eventVariables !== undefined &&
|
|
4690
|
-
input.eventVariables !== null && {
|
|
4645
|
+
...(input.eventIngestion != null && { eventIngestion: input.eventIngestion }),
|
|
4646
|
+
...(input.eventVariables != null && {
|
|
4691
4647
|
eventVariables: serializeAws_json1_1NonEmptyListOfStrings(input.eventVariables, context),
|
|
4692
4648
|
}),
|
|
4693
|
-
...(input.labels
|
|
4694
|
-
|
|
4695
|
-
...(input.
|
|
4696
|
-
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1tagList(input.tags, context) }),
|
|
4649
|
+
...(input.labels != null && { labels: serializeAws_json1_1ListOfStrings(input.labels, context) }),
|
|
4650
|
+
...(input.name != null && { name: input.name }),
|
|
4651
|
+
...(input.tags != null && { tags: serializeAws_json1_1tagList(input.tags, context) }),
|
|
4697
4652
|
};
|
|
4698
4653
|
};
|
|
4699
4654
|
const serializeAws_json1_1PutExternalModelRequest = (input, context) => {
|
|
4700
4655
|
return {
|
|
4701
|
-
...(input.inputConfiguration
|
|
4702
|
-
input.inputConfiguration !== null && {
|
|
4656
|
+
...(input.inputConfiguration != null && {
|
|
4703
4657
|
inputConfiguration: serializeAws_json1_1ModelInputConfiguration(input.inputConfiguration, context),
|
|
4704
4658
|
}),
|
|
4705
|
-
...(input.invokeModelEndpointRoleArn
|
|
4706
|
-
|
|
4707
|
-
...(input.
|
|
4708
|
-
...(input.
|
|
4709
|
-
|
|
4710
|
-
...(input.modelSource !== undefined && input.modelSource !== null && { modelSource: input.modelSource }),
|
|
4711
|
-
...(input.outputConfiguration !== undefined &&
|
|
4712
|
-
input.outputConfiguration !== null && {
|
|
4659
|
+
...(input.invokeModelEndpointRoleArn != null && { invokeModelEndpointRoleArn: input.invokeModelEndpointRoleArn }),
|
|
4660
|
+
...(input.modelEndpoint != null && { modelEndpoint: input.modelEndpoint }),
|
|
4661
|
+
...(input.modelEndpointStatus != null && { modelEndpointStatus: input.modelEndpointStatus }),
|
|
4662
|
+
...(input.modelSource != null && { modelSource: input.modelSource }),
|
|
4663
|
+
...(input.outputConfiguration != null && {
|
|
4713
4664
|
outputConfiguration: serializeAws_json1_1ModelOutputConfiguration(input.outputConfiguration, context),
|
|
4714
4665
|
}),
|
|
4715
|
-
...(input.tags
|
|
4666
|
+
...(input.tags != null && { tags: serializeAws_json1_1tagList(input.tags, context) }),
|
|
4716
4667
|
};
|
|
4717
4668
|
};
|
|
4718
4669
|
const serializeAws_json1_1PutKMSEncryptionKeyRequest = (input, context) => {
|
|
4719
4670
|
return {
|
|
4720
|
-
...(input.kmsEncryptionKeyArn
|
|
4721
|
-
input.kmsEncryptionKeyArn !== null && { kmsEncryptionKeyArn: input.kmsEncryptionKeyArn }),
|
|
4671
|
+
...(input.kmsEncryptionKeyArn != null && { kmsEncryptionKeyArn: input.kmsEncryptionKeyArn }),
|
|
4722
4672
|
};
|
|
4723
4673
|
};
|
|
4724
4674
|
const serializeAws_json1_1PutLabelRequest = (input, context) => {
|
|
4725
4675
|
return {
|
|
4726
|
-
...(input.description
|
|
4727
|
-
...(input.name
|
|
4728
|
-
...(input.tags
|
|
4676
|
+
...(input.description != null && { description: input.description }),
|
|
4677
|
+
...(input.name != null && { name: input.name }),
|
|
4678
|
+
...(input.tags != null && { tags: serializeAws_json1_1tagList(input.tags, context) }),
|
|
4729
4679
|
};
|
|
4730
4680
|
};
|
|
4731
4681
|
const serializeAws_json1_1PutOutcomeRequest = (input, context) => {
|
|
4732
4682
|
return {
|
|
4733
|
-
...(input.description
|
|
4734
|
-
...(input.name
|
|
4735
|
-
...(input.tags
|
|
4683
|
+
...(input.description != null && { description: input.description }),
|
|
4684
|
+
...(input.name != null && { name: input.name }),
|
|
4685
|
+
...(input.tags != null && { tags: serializeAws_json1_1tagList(input.tags, context) }),
|
|
4736
4686
|
};
|
|
4737
4687
|
};
|
|
4738
4688
|
const serializeAws_json1_1Rule = (input, context) => {
|
|
4739
4689
|
return {
|
|
4740
|
-
...(input.detectorId
|
|
4741
|
-
...(input.ruleId
|
|
4742
|
-
...(input.ruleVersion
|
|
4690
|
+
...(input.detectorId != null && { detectorId: input.detectorId }),
|
|
4691
|
+
...(input.ruleId != null && { ruleId: input.ruleId }),
|
|
4692
|
+
...(input.ruleVersion != null && { ruleVersion: input.ruleVersion }),
|
|
4743
4693
|
};
|
|
4744
4694
|
};
|
|
4745
4695
|
const serializeAws_json1_1RuleList = (input, context) => {
|
|
@@ -4754,25 +4704,21 @@ const serializeAws_json1_1RuleList = (input, context) => {
|
|
|
4754
4704
|
};
|
|
4755
4705
|
const serializeAws_json1_1SendEventRequest = (input, context) => {
|
|
4756
4706
|
return {
|
|
4757
|
-
...(input.assignedLabel
|
|
4758
|
-
...(input.entities
|
|
4759
|
-
|
|
4760
|
-
...(input.
|
|
4761
|
-
...(input.
|
|
4762
|
-
|
|
4763
|
-
...(input.eventTypeName !== undefined && input.eventTypeName !== null && { eventTypeName: input.eventTypeName }),
|
|
4764
|
-
...(input.eventVariables !== undefined &&
|
|
4765
|
-
input.eventVariables !== null && {
|
|
4707
|
+
...(input.assignedLabel != null && { assignedLabel: input.assignedLabel }),
|
|
4708
|
+
...(input.entities != null && { entities: serializeAws_json1_1listOfEntities(input.entities, context) }),
|
|
4709
|
+
...(input.eventId != null && { eventId: input.eventId }),
|
|
4710
|
+
...(input.eventTimestamp != null && { eventTimestamp: input.eventTimestamp }),
|
|
4711
|
+
...(input.eventTypeName != null && { eventTypeName: input.eventTypeName }),
|
|
4712
|
+
...(input.eventVariables != null && {
|
|
4766
4713
|
eventVariables: serializeAws_json1_1EventVariableMap(input.eventVariables, context),
|
|
4767
4714
|
}),
|
|
4768
|
-
...(input.labelTimestamp
|
|
4769
|
-
input.labelTimestamp !== null && { labelTimestamp: input.labelTimestamp }),
|
|
4715
|
+
...(input.labelTimestamp != null && { labelTimestamp: input.labelTimestamp }),
|
|
4770
4716
|
};
|
|
4771
4717
|
};
|
|
4772
4718
|
const serializeAws_json1_1Tag = (input, context) => {
|
|
4773
4719
|
return {
|
|
4774
|
-
...(input.key
|
|
4775
|
-
...(input.value
|
|
4720
|
+
...(input.key != null && { key: input.key }),
|
|
4721
|
+
...(input.value != null && { value: input.value }),
|
|
4776
4722
|
};
|
|
4777
4723
|
};
|
|
4778
4724
|
const serializeAws_json1_1tagKeyList = (input, context) => {
|
|
@@ -4797,138 +4743,122 @@ const serializeAws_json1_1tagList = (input, context) => {
|
|
|
4797
4743
|
};
|
|
4798
4744
|
const serializeAws_json1_1TagResourceRequest = (input, context) => {
|
|
4799
4745
|
return {
|
|
4800
|
-
...(input.resourceARN
|
|
4801
|
-
...(input.tags
|
|
4746
|
+
...(input.resourceARN != null && { resourceARN: input.resourceARN }),
|
|
4747
|
+
...(input.tags != null && { tags: serializeAws_json1_1tagList(input.tags, context) }),
|
|
4802
4748
|
};
|
|
4803
4749
|
};
|
|
4804
4750
|
const serializeAws_json1_1TrainingDataSchema = (input, context) => {
|
|
4805
4751
|
return {
|
|
4806
|
-
...(input.labelSchema
|
|
4807
|
-
|
|
4808
|
-
...(input.modelVariables !== undefined &&
|
|
4809
|
-
input.modelVariables !== null && {
|
|
4752
|
+
...(input.labelSchema != null && { labelSchema: serializeAws_json1_1LabelSchema(input.labelSchema, context) }),
|
|
4753
|
+
...(input.modelVariables != null && {
|
|
4810
4754
|
modelVariables: serializeAws_json1_1ListOfStrings(input.modelVariables, context),
|
|
4811
4755
|
}),
|
|
4812
4756
|
};
|
|
4813
4757
|
};
|
|
4814
4758
|
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
4815
4759
|
return {
|
|
4816
|
-
...(input.resourceARN
|
|
4817
|
-
...(input.tagKeys
|
|
4818
|
-
input.tagKeys !== null && { tagKeys: serializeAws_json1_1tagKeyList(input.tagKeys, context) }),
|
|
4760
|
+
...(input.resourceARN != null && { resourceARN: input.resourceARN }),
|
|
4761
|
+
...(input.tagKeys != null && { tagKeys: serializeAws_json1_1tagKeyList(input.tagKeys, context) }),
|
|
4819
4762
|
};
|
|
4820
4763
|
};
|
|
4821
4764
|
const serializeAws_json1_1UpdateDetectorVersionMetadataRequest = (input, context) => {
|
|
4822
4765
|
return {
|
|
4823
|
-
...(input.description
|
|
4824
|
-
...(input.detectorId
|
|
4825
|
-
...(input.detectorVersionId
|
|
4826
|
-
input.detectorVersionId !== null && { detectorVersionId: input.detectorVersionId }),
|
|
4766
|
+
...(input.description != null && { description: input.description }),
|
|
4767
|
+
...(input.detectorId != null && { detectorId: input.detectorId }),
|
|
4768
|
+
...(input.detectorVersionId != null && { detectorVersionId: input.detectorVersionId }),
|
|
4827
4769
|
};
|
|
4828
4770
|
};
|
|
4829
4771
|
const serializeAws_json1_1UpdateDetectorVersionRequest = (input, context) => {
|
|
4830
4772
|
return {
|
|
4831
|
-
...(input.description
|
|
4832
|
-
...(input.detectorId
|
|
4833
|
-
...(input.detectorVersionId
|
|
4834
|
-
|
|
4835
|
-
...(input.externalModelEndpoints !== undefined &&
|
|
4836
|
-
input.externalModelEndpoints !== null && {
|
|
4773
|
+
...(input.description != null && { description: input.description }),
|
|
4774
|
+
...(input.detectorId != null && { detectorId: input.detectorId }),
|
|
4775
|
+
...(input.detectorVersionId != null && { detectorVersionId: input.detectorVersionId }),
|
|
4776
|
+
...(input.externalModelEndpoints != null && {
|
|
4837
4777
|
externalModelEndpoints: serializeAws_json1_1ListOfStrings(input.externalModelEndpoints, context),
|
|
4838
4778
|
}),
|
|
4839
|
-
...(input.modelVersions
|
|
4840
|
-
input.modelVersions !== null && {
|
|
4779
|
+
...(input.modelVersions != null && {
|
|
4841
4780
|
modelVersions: serializeAws_json1_1ListOfModelVersions(input.modelVersions, context),
|
|
4842
4781
|
}),
|
|
4843
|
-
...(input.ruleExecutionMode
|
|
4844
|
-
|
|
4845
|
-
...(input.rules !== undefined &&
|
|
4846
|
-
input.rules !== null && { rules: serializeAws_json1_1RuleList(input.rules, context) }),
|
|
4782
|
+
...(input.ruleExecutionMode != null && { ruleExecutionMode: input.ruleExecutionMode }),
|
|
4783
|
+
...(input.rules != null && { rules: serializeAws_json1_1RuleList(input.rules, context) }),
|
|
4847
4784
|
};
|
|
4848
4785
|
};
|
|
4849
4786
|
const serializeAws_json1_1UpdateDetectorVersionStatusRequest = (input, context) => {
|
|
4850
4787
|
return {
|
|
4851
|
-
...(input.detectorId
|
|
4852
|
-
...(input.detectorVersionId
|
|
4853
|
-
|
|
4854
|
-
...(input.status !== undefined && input.status !== null && { status: input.status }),
|
|
4788
|
+
...(input.detectorId != null && { detectorId: input.detectorId }),
|
|
4789
|
+
...(input.detectorVersionId != null && { detectorVersionId: input.detectorVersionId }),
|
|
4790
|
+
...(input.status != null && { status: input.status }),
|
|
4855
4791
|
};
|
|
4856
4792
|
};
|
|
4857
4793
|
const serializeAws_json1_1UpdateEventLabelRequest = (input, context) => {
|
|
4858
4794
|
return {
|
|
4859
|
-
...(input.assignedLabel
|
|
4860
|
-
...(input.eventId
|
|
4861
|
-
...(input.eventTypeName
|
|
4862
|
-
...(input.labelTimestamp
|
|
4863
|
-
input.labelTimestamp !== null && { labelTimestamp: input.labelTimestamp }),
|
|
4795
|
+
...(input.assignedLabel != null && { assignedLabel: input.assignedLabel }),
|
|
4796
|
+
...(input.eventId != null && { eventId: input.eventId }),
|
|
4797
|
+
...(input.eventTypeName != null && { eventTypeName: input.eventTypeName }),
|
|
4798
|
+
...(input.labelTimestamp != null && { labelTimestamp: input.labelTimestamp }),
|
|
4864
4799
|
};
|
|
4865
4800
|
};
|
|
4866
4801
|
const serializeAws_json1_1UpdateModelRequest = (input, context) => {
|
|
4867
4802
|
return {
|
|
4868
|
-
...(input.description
|
|
4869
|
-
...(input.modelId
|
|
4870
|
-
...(input.modelType
|
|
4803
|
+
...(input.description != null && { description: input.description }),
|
|
4804
|
+
...(input.modelId != null && { modelId: input.modelId }),
|
|
4805
|
+
...(input.modelType != null && { modelType: input.modelType }),
|
|
4871
4806
|
};
|
|
4872
4807
|
};
|
|
4873
4808
|
const serializeAws_json1_1UpdateModelVersionRequest = (input, context) => {
|
|
4874
4809
|
return {
|
|
4875
|
-
...(input.externalEventsDetail
|
|
4876
|
-
input.externalEventsDetail !== null && {
|
|
4810
|
+
...(input.externalEventsDetail != null && {
|
|
4877
4811
|
externalEventsDetail: serializeAws_json1_1ExternalEventsDetail(input.externalEventsDetail, context),
|
|
4878
4812
|
}),
|
|
4879
|
-
...(input.ingestedEventsDetail
|
|
4880
|
-
input.ingestedEventsDetail !== null && {
|
|
4813
|
+
...(input.ingestedEventsDetail != null && {
|
|
4881
4814
|
ingestedEventsDetail: serializeAws_json1_1IngestedEventsDetail(input.ingestedEventsDetail, context),
|
|
4882
4815
|
}),
|
|
4883
|
-
...(input.majorVersionNumber
|
|
4884
|
-
|
|
4885
|
-
...(input.
|
|
4886
|
-
...(input.
|
|
4887
|
-
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1tagList(input.tags, context) }),
|
|
4816
|
+
...(input.majorVersionNumber != null && { majorVersionNumber: input.majorVersionNumber }),
|
|
4817
|
+
...(input.modelId != null && { modelId: input.modelId }),
|
|
4818
|
+
...(input.modelType != null && { modelType: input.modelType }),
|
|
4819
|
+
...(input.tags != null && { tags: serializeAws_json1_1tagList(input.tags, context) }),
|
|
4888
4820
|
};
|
|
4889
4821
|
};
|
|
4890
4822
|
const serializeAws_json1_1UpdateModelVersionStatusRequest = (input, context) => {
|
|
4891
4823
|
return {
|
|
4892
|
-
...(input.modelId
|
|
4893
|
-
...(input.modelType
|
|
4894
|
-
...(input.modelVersionNumber
|
|
4895
|
-
|
|
4896
|
-
...(input.status !== undefined && input.status !== null && { status: input.status }),
|
|
4824
|
+
...(input.modelId != null && { modelId: input.modelId }),
|
|
4825
|
+
...(input.modelType != null && { modelType: input.modelType }),
|
|
4826
|
+
...(input.modelVersionNumber != null && { modelVersionNumber: input.modelVersionNumber }),
|
|
4827
|
+
...(input.status != null && { status: input.status }),
|
|
4897
4828
|
};
|
|
4898
4829
|
};
|
|
4899
4830
|
const serializeAws_json1_1UpdateRuleMetadataRequest = (input, context) => {
|
|
4900
4831
|
return {
|
|
4901
|
-
...(input.description
|
|
4902
|
-
...(input.rule
|
|
4832
|
+
...(input.description != null && { description: input.description }),
|
|
4833
|
+
...(input.rule != null && { rule: serializeAws_json1_1Rule(input.rule, context) }),
|
|
4903
4834
|
};
|
|
4904
4835
|
};
|
|
4905
4836
|
const serializeAws_json1_1UpdateRuleVersionRequest = (input, context) => {
|
|
4906
4837
|
return {
|
|
4907
|
-
...(input.description
|
|
4908
|
-
...(input.expression
|
|
4909
|
-
...(input.language
|
|
4910
|
-
...(input.outcomes
|
|
4911
|
-
|
|
4912
|
-
...(input.
|
|
4913
|
-
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1tagList(input.tags, context) }),
|
|
4838
|
+
...(input.description != null && { description: input.description }),
|
|
4839
|
+
...(input.expression != null && { expression: input.expression }),
|
|
4840
|
+
...(input.language != null && { language: input.language }),
|
|
4841
|
+
...(input.outcomes != null && { outcomes: serializeAws_json1_1NonEmptyListOfStrings(input.outcomes, context) }),
|
|
4842
|
+
...(input.rule != null && { rule: serializeAws_json1_1Rule(input.rule, context) }),
|
|
4843
|
+
...(input.tags != null && { tags: serializeAws_json1_1tagList(input.tags, context) }),
|
|
4914
4844
|
};
|
|
4915
4845
|
};
|
|
4916
4846
|
const serializeAws_json1_1UpdateVariableRequest = (input, context) => {
|
|
4917
4847
|
return {
|
|
4918
|
-
...(input.defaultValue
|
|
4919
|
-
...(input.description
|
|
4920
|
-
...(input.name
|
|
4921
|
-
...(input.variableType
|
|
4848
|
+
...(input.defaultValue != null && { defaultValue: input.defaultValue }),
|
|
4849
|
+
...(input.description != null && { description: input.description }),
|
|
4850
|
+
...(input.name != null && { name: input.name }),
|
|
4851
|
+
...(input.variableType != null && { variableType: input.variableType }),
|
|
4922
4852
|
};
|
|
4923
4853
|
};
|
|
4924
4854
|
const serializeAws_json1_1VariableEntry = (input, context) => {
|
|
4925
4855
|
return {
|
|
4926
|
-
...(input.dataSource
|
|
4927
|
-
...(input.dataType
|
|
4928
|
-
...(input.defaultValue
|
|
4929
|
-
...(input.description
|
|
4930
|
-
...(input.name
|
|
4931
|
-
...(input.variableType
|
|
4856
|
+
...(input.dataSource != null && { dataSource: input.dataSource }),
|
|
4857
|
+
...(input.dataType != null && { dataType: input.dataType }),
|
|
4858
|
+
...(input.defaultValue != null && { defaultValue: input.defaultValue }),
|
|
4859
|
+
...(input.description != null && { description: input.description }),
|
|
4860
|
+
...(input.name != null && { name: input.name }),
|
|
4861
|
+
...(input.variableType != null && { variableType: input.variableType }),
|
|
4932
4862
|
};
|
|
4933
4863
|
};
|
|
4934
4864
|
const serializeAws_json1_1VariableEntryList = (input, context) => {
|
|
@@ -4966,9 +4896,7 @@ const deserializeAws_json1_1BatchCreateVariableErrorList = (output, context) =>
|
|
|
4966
4896
|
};
|
|
4967
4897
|
const deserializeAws_json1_1BatchCreateVariableResult = (output, context) => {
|
|
4968
4898
|
return {
|
|
4969
|
-
errors: output.errors
|
|
4970
|
-
? deserializeAws_json1_1BatchCreateVariableErrorList(output.errors, context)
|
|
4971
|
-
: undefined,
|
|
4899
|
+
errors: output.errors != null ? deserializeAws_json1_1BatchCreateVariableErrorList(output.errors, context) : undefined,
|
|
4972
4900
|
};
|
|
4973
4901
|
};
|
|
4974
4902
|
const deserializeAws_json1_1BatchGetVariableError = (output, context) => {
|
|
@@ -4991,12 +4919,8 @@ const deserializeAws_json1_1BatchGetVariableErrorList = (output, context) => {
|
|
|
4991
4919
|
};
|
|
4992
4920
|
const deserializeAws_json1_1BatchGetVariableResult = (output, context) => {
|
|
4993
4921
|
return {
|
|
4994
|
-
errors: output.errors
|
|
4995
|
-
|
|
4996
|
-
: undefined,
|
|
4997
|
-
variables: output.variables !== undefined && output.variables !== null
|
|
4998
|
-
? deserializeAws_json1_1VariableList(output.variables, context)
|
|
4999
|
-
: undefined,
|
|
4922
|
+
errors: output.errors != null ? deserializeAws_json1_1BatchGetVariableErrorList(output.errors, context) : undefined,
|
|
4923
|
+
variables: output.variables != null ? deserializeAws_json1_1VariableList(output.variables, context) : undefined,
|
|
5000
4924
|
};
|
|
5001
4925
|
};
|
|
5002
4926
|
const deserializeAws_json1_1BatchImport = (output, context) => {
|
|
@@ -5094,7 +5018,7 @@ const deserializeAws_json1_1CreateModelVersionResult = (output, context) => {
|
|
|
5094
5018
|
};
|
|
5095
5019
|
const deserializeAws_json1_1CreateRuleResult = (output, context) => {
|
|
5096
5020
|
return {
|
|
5097
|
-
rule: output.rule
|
|
5021
|
+
rule: output.rule != null ? deserializeAws_json1_1Rule(output.rule, context) : undefined,
|
|
5098
5022
|
};
|
|
5099
5023
|
};
|
|
5100
5024
|
const deserializeAws_json1_1CreateVariableResult = (output, context) => {
|
|
@@ -5113,10 +5037,10 @@ const deserializeAws_json1_1CsvIndexToVariableMap = (output, context) => {
|
|
|
5113
5037
|
};
|
|
5114
5038
|
const deserializeAws_json1_1DataValidationMetrics = (output, context) => {
|
|
5115
5039
|
return {
|
|
5116
|
-
fieldLevelMessages: output.fieldLevelMessages
|
|
5040
|
+
fieldLevelMessages: output.fieldLevelMessages != null
|
|
5117
5041
|
? deserializeAws_json1_1fieldValidationMessageList(output.fieldLevelMessages, context)
|
|
5118
5042
|
: undefined,
|
|
5119
|
-
fileLevelMessages: output.fileLevelMessages
|
|
5043
|
+
fileLevelMessages: output.fileLevelMessages != null
|
|
5120
5044
|
? deserializeAws_json1_1fileValidationMessageList(output.fileLevelMessages, context)
|
|
5121
5045
|
: undefined,
|
|
5122
5046
|
};
|
|
@@ -5173,7 +5097,7 @@ const deserializeAws_json1_1DescribeDetectorResult = (output, context) => {
|
|
|
5173
5097
|
return {
|
|
5174
5098
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
5175
5099
|
detectorId: (0, smithy_client_1.expectString)(output.detectorId),
|
|
5176
|
-
detectorVersionSummaries: output.detectorVersionSummaries
|
|
5100
|
+
detectorVersionSummaries: output.detectorVersionSummaries != null
|
|
5177
5101
|
? deserializeAws_json1_1DetectorVersionSummaryList(output.detectorVersionSummaries, context)
|
|
5178
5102
|
: undefined,
|
|
5179
5103
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
@@ -5181,7 +5105,7 @@ const deserializeAws_json1_1DescribeDetectorResult = (output, context) => {
|
|
|
5181
5105
|
};
|
|
5182
5106
|
const deserializeAws_json1_1DescribeModelVersionsResult = (output, context) => {
|
|
5183
5107
|
return {
|
|
5184
|
-
modelVersionDetails: output.modelVersionDetails
|
|
5108
|
+
modelVersionDetails: output.modelVersionDetails != null
|
|
5185
5109
|
? deserializeAws_json1_1modelVersionDetailList(output.modelVersionDetails, context)
|
|
5186
5110
|
: undefined,
|
|
5187
5111
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
@@ -5255,19 +5179,15 @@ const deserializeAws_json1_1entityTypeList = (output, context) => {
|
|
|
5255
5179
|
};
|
|
5256
5180
|
const deserializeAws_json1_1EvaluatedExternalModel = (output, context) => {
|
|
5257
5181
|
return {
|
|
5258
|
-
inputVariables: output.inputVariables
|
|
5259
|
-
? deserializeAws_json1_1MapOfStrings(output.inputVariables, context)
|
|
5260
|
-
: undefined,
|
|
5182
|
+
inputVariables: output.inputVariables != null ? deserializeAws_json1_1MapOfStrings(output.inputVariables, context) : undefined,
|
|
5261
5183
|
modelEndpoint: (0, smithy_client_1.expectString)(output.modelEndpoint),
|
|
5262
|
-
outputVariables: output.outputVariables
|
|
5263
|
-
? deserializeAws_json1_1MapOfStrings(output.outputVariables, context)
|
|
5264
|
-
: undefined,
|
|
5184
|
+
outputVariables: output.outputVariables != null ? deserializeAws_json1_1MapOfStrings(output.outputVariables, context) : undefined,
|
|
5265
5185
|
useEventVariables: (0, smithy_client_1.expectBoolean)(output.useEventVariables),
|
|
5266
5186
|
};
|
|
5267
5187
|
};
|
|
5268
5188
|
const deserializeAws_json1_1EvaluatedModelVersion = (output, context) => {
|
|
5269
5189
|
return {
|
|
5270
|
-
evaluations: output.evaluations
|
|
5190
|
+
evaluations: output.evaluations != null
|
|
5271
5191
|
? deserializeAws_json1_1ListOfModelVersionEvaluations(output.evaluations, context)
|
|
5272
5192
|
: undefined,
|
|
5273
5193
|
modelId: (0, smithy_client_1.expectString)(output.modelId),
|
|
@@ -5281,9 +5201,7 @@ const deserializeAws_json1_1EvaluatedRule = (output, context) => {
|
|
|
5281
5201
|
expression: (0, smithy_client_1.expectString)(output.expression),
|
|
5282
5202
|
expressionWithValues: (0, smithy_client_1.expectString)(output.expressionWithValues),
|
|
5283
5203
|
matched: (0, smithy_client_1.expectBoolean)(output.matched),
|
|
5284
|
-
outcomes: output.outcomes
|
|
5285
|
-
? deserializeAws_json1_1ListOfStrings(output.outcomes, context)
|
|
5286
|
-
: undefined,
|
|
5204
|
+
outcomes: output.outcomes != null ? deserializeAws_json1_1ListOfStrings(output.outcomes, context) : undefined,
|
|
5287
5205
|
ruleId: (0, smithy_client_1.expectString)(output.ruleId),
|
|
5288
5206
|
ruleVersion: (0, smithy_client_1.expectString)(output.ruleVersion),
|
|
5289
5207
|
};
|
|
@@ -5302,13 +5220,11 @@ const deserializeAws_json1_1EvaluatedRuleList = (output, context) => {
|
|
|
5302
5220
|
const deserializeAws_json1_1Event = (output, context) => {
|
|
5303
5221
|
return {
|
|
5304
5222
|
currentLabel: (0, smithy_client_1.expectString)(output.currentLabel),
|
|
5305
|
-
entities: output.entities
|
|
5306
|
-
? deserializeAws_json1_1listOfEntities(output.entities, context)
|
|
5307
|
-
: undefined,
|
|
5223
|
+
entities: output.entities != null ? deserializeAws_json1_1listOfEntities(output.entities, context) : undefined,
|
|
5308
5224
|
eventId: (0, smithy_client_1.expectString)(output.eventId),
|
|
5309
5225
|
eventTimestamp: (0, smithy_client_1.expectString)(output.eventTimestamp),
|
|
5310
5226
|
eventTypeName: (0, smithy_client_1.expectString)(output.eventTypeName),
|
|
5311
|
-
eventVariables: output.eventVariables
|
|
5227
|
+
eventVariables: output.eventVariables != null
|
|
5312
5228
|
? deserializeAws_json1_1EventAttributeMap(output.eventVariables, context)
|
|
5313
5229
|
: undefined,
|
|
5314
5230
|
labelTimestamp: (0, smithy_client_1.expectString)(output.labelTimestamp),
|
|
@@ -5340,19 +5256,13 @@ const deserializeAws_json1_1EventType = (output, context) => {
|
|
|
5340
5256
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
5341
5257
|
createdTime: (0, smithy_client_1.expectString)(output.createdTime),
|
|
5342
5258
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
5343
|
-
entityTypes: output.entityTypes
|
|
5344
|
-
? deserializeAws_json1_1NonEmptyListOfStrings(output.entityTypes, context)
|
|
5345
|
-
: undefined,
|
|
5259
|
+
entityTypes: output.entityTypes != null ? deserializeAws_json1_1NonEmptyListOfStrings(output.entityTypes, context) : undefined,
|
|
5346
5260
|
eventIngestion: (0, smithy_client_1.expectString)(output.eventIngestion),
|
|
5347
|
-
eventVariables: output.eventVariables
|
|
5348
|
-
|
|
5349
|
-
: undefined,
|
|
5350
|
-
ingestedEventStatistics: output.ingestedEventStatistics !== undefined && output.ingestedEventStatistics !== null
|
|
5261
|
+
eventVariables: output.eventVariables != null ? deserializeAws_json1_1ListOfStrings(output.eventVariables, context) : undefined,
|
|
5262
|
+
ingestedEventStatistics: output.ingestedEventStatistics != null
|
|
5351
5263
|
? deserializeAws_json1_1IngestedEventStatistics(output.ingestedEventStatistics, context)
|
|
5352
5264
|
: undefined,
|
|
5353
|
-
labels: output.labels
|
|
5354
|
-
? deserializeAws_json1_1ListOfStrings(output.labels, context)
|
|
5355
|
-
: undefined,
|
|
5265
|
+
labels: output.labels != null ? deserializeAws_json1_1ListOfStrings(output.labels, context) : undefined,
|
|
5356
5266
|
lastUpdatedTime: (0, smithy_client_1.expectString)(output.lastUpdatedTime),
|
|
5357
5267
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
5358
5268
|
};
|
|
@@ -5385,7 +5295,7 @@ const deserializeAws_json1_1ExternalModel = (output, context) => {
|
|
|
5385
5295
|
return {
|
|
5386
5296
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
5387
5297
|
createdTime: (0, smithy_client_1.expectString)(output.createdTime),
|
|
5388
|
-
inputConfiguration: output.inputConfiguration
|
|
5298
|
+
inputConfiguration: output.inputConfiguration != null
|
|
5389
5299
|
? deserializeAws_json1_1ModelInputConfiguration(output.inputConfiguration, context)
|
|
5390
5300
|
: undefined,
|
|
5391
5301
|
invokeModelEndpointRoleArn: (0, smithy_client_1.expectString)(output.invokeModelEndpointRoleArn),
|
|
@@ -5393,7 +5303,7 @@ const deserializeAws_json1_1ExternalModel = (output, context) => {
|
|
|
5393
5303
|
modelEndpoint: (0, smithy_client_1.expectString)(output.modelEndpoint),
|
|
5394
5304
|
modelEndpointStatus: (0, smithy_client_1.expectString)(output.modelEndpointStatus),
|
|
5395
5305
|
modelSource: (0, smithy_client_1.expectString)(output.modelSource),
|
|
5396
|
-
outputConfiguration: output.outputConfiguration
|
|
5306
|
+
outputConfiguration: output.outputConfiguration != null
|
|
5397
5307
|
? deserializeAws_json1_1ModelOutputConfiguration(output.outputConfiguration, context)
|
|
5398
5308
|
: undefined,
|
|
5399
5309
|
};
|
|
@@ -5411,12 +5321,10 @@ const deserializeAws_json1_1ExternalModelList = (output, context) => {
|
|
|
5411
5321
|
};
|
|
5412
5322
|
const deserializeAws_json1_1ExternalModelOutputs = (output, context) => {
|
|
5413
5323
|
return {
|
|
5414
|
-
externalModel: output.externalModel
|
|
5324
|
+
externalModel: output.externalModel != null
|
|
5415
5325
|
? deserializeAws_json1_1ExternalModelSummary(output.externalModel, context)
|
|
5416
5326
|
: undefined,
|
|
5417
|
-
outputs: output.outputs
|
|
5418
|
-
? deserializeAws_json1_1ExternalModelPredictionMap(output.outputs, context)
|
|
5419
|
-
: undefined,
|
|
5327
|
+
outputs: output.outputs != null ? deserializeAws_json1_1ExternalModelPredictionMap(output.outputs, context) : undefined,
|
|
5420
5328
|
};
|
|
5421
5329
|
};
|
|
5422
5330
|
const deserializeAws_json1_1ExternalModelPredictionMap = (output, context) => {
|
|
@@ -5476,15 +5384,13 @@ const deserializeAws_json1_1fileValidationMessageList = (output, context) => {
|
|
|
5476
5384
|
};
|
|
5477
5385
|
const deserializeAws_json1_1GetBatchImportJobsResult = (output, context) => {
|
|
5478
5386
|
return {
|
|
5479
|
-
batchImports: output.batchImports
|
|
5480
|
-
? deserializeAws_json1_1BatchImportList(output.batchImports, context)
|
|
5481
|
-
: undefined,
|
|
5387
|
+
batchImports: output.batchImports != null ? deserializeAws_json1_1BatchImportList(output.batchImports, context) : undefined,
|
|
5482
5388
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
5483
5389
|
};
|
|
5484
5390
|
};
|
|
5485
5391
|
const deserializeAws_json1_1GetBatchPredictionJobsResult = (output, context) => {
|
|
5486
5392
|
return {
|
|
5487
|
-
batchPredictions: output.batchPredictions
|
|
5393
|
+
batchPredictions: output.batchPredictions != null
|
|
5488
5394
|
? deserializeAws_json1_1BatchPredictionList(output.batchPredictions, context)
|
|
5489
5395
|
: undefined,
|
|
5490
5396
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
@@ -5498,9 +5404,7 @@ const deserializeAws_json1_1GetDeleteEventsByEventTypeStatusResult = (output, co
|
|
|
5498
5404
|
};
|
|
5499
5405
|
const deserializeAws_json1_1GetDetectorsResult = (output, context) => {
|
|
5500
5406
|
return {
|
|
5501
|
-
detectors: output.detectors
|
|
5502
|
-
? deserializeAws_json1_1DetectorList(output.detectors, context)
|
|
5503
|
-
: undefined,
|
|
5407
|
+
detectors: output.detectors != null ? deserializeAws_json1_1DetectorList(output.detectors, context) : undefined,
|
|
5504
5408
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
5505
5409
|
};
|
|
5506
5410
|
};
|
|
@@ -5511,25 +5415,21 @@ const deserializeAws_json1_1GetDetectorVersionResult = (output, context) => {
|
|
|
5511
5415
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
5512
5416
|
detectorId: (0, smithy_client_1.expectString)(output.detectorId),
|
|
5513
5417
|
detectorVersionId: (0, smithy_client_1.expectString)(output.detectorVersionId),
|
|
5514
|
-
externalModelEndpoints: output.externalModelEndpoints
|
|
5418
|
+
externalModelEndpoints: output.externalModelEndpoints != null
|
|
5515
5419
|
? deserializeAws_json1_1ListOfStrings(output.externalModelEndpoints, context)
|
|
5516
5420
|
: undefined,
|
|
5517
5421
|
lastUpdatedTime: (0, smithy_client_1.expectString)(output.lastUpdatedTime),
|
|
5518
|
-
modelVersions: output.modelVersions
|
|
5422
|
+
modelVersions: output.modelVersions != null
|
|
5519
5423
|
? deserializeAws_json1_1ListOfModelVersions(output.modelVersions, context)
|
|
5520
5424
|
: undefined,
|
|
5521
5425
|
ruleExecutionMode: (0, smithy_client_1.expectString)(output.ruleExecutionMode),
|
|
5522
|
-
rules: output.rules
|
|
5523
|
-
? deserializeAws_json1_1RuleList(output.rules, context)
|
|
5524
|
-
: undefined,
|
|
5426
|
+
rules: output.rules != null ? deserializeAws_json1_1RuleList(output.rules, context) : undefined,
|
|
5525
5427
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
5526
5428
|
};
|
|
5527
5429
|
};
|
|
5528
5430
|
const deserializeAws_json1_1GetEntityTypesResult = (output, context) => {
|
|
5529
5431
|
return {
|
|
5530
|
-
entityTypes: output.entityTypes
|
|
5531
|
-
? deserializeAws_json1_1entityTypeList(output.entityTypes, context)
|
|
5532
|
-
: undefined,
|
|
5432
|
+
entityTypes: output.entityTypes != null ? deserializeAws_json1_1entityTypeList(output.entityTypes, context) : undefined,
|
|
5533
5433
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
5534
5434
|
};
|
|
5535
5435
|
};
|
|
@@ -5540,59 +5440,47 @@ const deserializeAws_json1_1GetEventPredictionMetadataResult = (output, context)
|
|
|
5540
5440
|
detectorVersionStatus: (0, smithy_client_1.expectString)(output.detectorVersionStatus),
|
|
5541
5441
|
entityId: (0, smithy_client_1.expectString)(output.entityId),
|
|
5542
5442
|
entityType: (0, smithy_client_1.expectString)(output.entityType),
|
|
5543
|
-
evaluatedExternalModels: output.evaluatedExternalModels
|
|
5443
|
+
evaluatedExternalModels: output.evaluatedExternalModels != null
|
|
5544
5444
|
? deserializeAws_json1_1ListOfEvaluatedExternalModels(output.evaluatedExternalModels, context)
|
|
5545
5445
|
: undefined,
|
|
5546
|
-
evaluatedModelVersions: output.evaluatedModelVersions
|
|
5446
|
+
evaluatedModelVersions: output.evaluatedModelVersions != null
|
|
5547
5447
|
? deserializeAws_json1_1ListOfEvaluatedModelVersions(output.evaluatedModelVersions, context)
|
|
5548
5448
|
: undefined,
|
|
5549
5449
|
eventId: (0, smithy_client_1.expectString)(output.eventId),
|
|
5550
5450
|
eventTimestamp: (0, smithy_client_1.expectString)(output.eventTimestamp),
|
|
5551
5451
|
eventTypeName: (0, smithy_client_1.expectString)(output.eventTypeName),
|
|
5552
|
-
eventVariables: output.eventVariables
|
|
5452
|
+
eventVariables: output.eventVariables != null
|
|
5553
5453
|
? deserializeAws_json1_1ListOfEventVariableSummaries(output.eventVariables, context)
|
|
5554
5454
|
: undefined,
|
|
5555
|
-
outcomes: output.outcomes
|
|
5556
|
-
? deserializeAws_json1_1ListOfStrings(output.outcomes, context)
|
|
5557
|
-
: undefined,
|
|
5455
|
+
outcomes: output.outcomes != null ? deserializeAws_json1_1ListOfStrings(output.outcomes, context) : undefined,
|
|
5558
5456
|
predictionTimestamp: (0, smithy_client_1.expectString)(output.predictionTimestamp),
|
|
5559
5457
|
ruleExecutionMode: (0, smithy_client_1.expectString)(output.ruleExecutionMode),
|
|
5560
|
-
rules: output.rules
|
|
5561
|
-
? deserializeAws_json1_1EvaluatedRuleList(output.rules, context)
|
|
5562
|
-
: undefined,
|
|
5458
|
+
rules: output.rules != null ? deserializeAws_json1_1EvaluatedRuleList(output.rules, context) : undefined,
|
|
5563
5459
|
};
|
|
5564
5460
|
};
|
|
5565
5461
|
const deserializeAws_json1_1GetEventPredictionResult = (output, context) => {
|
|
5566
5462
|
return {
|
|
5567
|
-
externalModelOutputs: output.externalModelOutputs
|
|
5463
|
+
externalModelOutputs: output.externalModelOutputs != null
|
|
5568
5464
|
? deserializeAws_json1_1ListOfExternalModelOutputs(output.externalModelOutputs, context)
|
|
5569
5465
|
: undefined,
|
|
5570
|
-
modelScores: output.modelScores
|
|
5571
|
-
|
|
5572
|
-
: undefined,
|
|
5573
|
-
ruleResults: output.ruleResults !== undefined && output.ruleResults !== null
|
|
5574
|
-
? deserializeAws_json1_1ListOfRuleResults(output.ruleResults, context)
|
|
5575
|
-
: undefined,
|
|
5466
|
+
modelScores: output.modelScores != null ? deserializeAws_json1_1ListOfModelScores(output.modelScores, context) : undefined,
|
|
5467
|
+
ruleResults: output.ruleResults != null ? deserializeAws_json1_1ListOfRuleResults(output.ruleResults, context) : undefined,
|
|
5576
5468
|
};
|
|
5577
5469
|
};
|
|
5578
5470
|
const deserializeAws_json1_1GetEventResult = (output, context) => {
|
|
5579
5471
|
return {
|
|
5580
|
-
event: output.event
|
|
5581
|
-
? deserializeAws_json1_1Event(output.event, context)
|
|
5582
|
-
: undefined,
|
|
5472
|
+
event: output.event != null ? deserializeAws_json1_1Event(output.event, context) : undefined,
|
|
5583
5473
|
};
|
|
5584
5474
|
};
|
|
5585
5475
|
const deserializeAws_json1_1GetEventTypesResult = (output, context) => {
|
|
5586
5476
|
return {
|
|
5587
|
-
eventTypes: output.eventTypes
|
|
5588
|
-
? deserializeAws_json1_1eventTypeList(output.eventTypes, context)
|
|
5589
|
-
: undefined,
|
|
5477
|
+
eventTypes: output.eventTypes != null ? deserializeAws_json1_1eventTypeList(output.eventTypes, context) : undefined,
|
|
5590
5478
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
5591
5479
|
};
|
|
5592
5480
|
};
|
|
5593
5481
|
const deserializeAws_json1_1GetExternalModelsResult = (output, context) => {
|
|
5594
5482
|
return {
|
|
5595
|
-
externalModels: output.externalModels
|
|
5483
|
+
externalModels: output.externalModels != null
|
|
5596
5484
|
? deserializeAws_json1_1ExternalModelList(output.externalModels, context)
|
|
5597
5485
|
: undefined,
|
|
5598
5486
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
@@ -5600,41 +5488,35 @@ const deserializeAws_json1_1GetExternalModelsResult = (output, context) => {
|
|
|
5600
5488
|
};
|
|
5601
5489
|
const deserializeAws_json1_1GetKMSEncryptionKeyResult = (output, context) => {
|
|
5602
5490
|
return {
|
|
5603
|
-
kmsKey: output.kmsKey
|
|
5604
|
-
? deserializeAws_json1_1KMSKey(output.kmsKey, context)
|
|
5605
|
-
: undefined,
|
|
5491
|
+
kmsKey: output.kmsKey != null ? deserializeAws_json1_1KMSKey(output.kmsKey, context) : undefined,
|
|
5606
5492
|
};
|
|
5607
5493
|
};
|
|
5608
5494
|
const deserializeAws_json1_1GetLabelsResult = (output, context) => {
|
|
5609
5495
|
return {
|
|
5610
|
-
labels: output.labels
|
|
5611
|
-
? deserializeAws_json1_1labelList(output.labels, context)
|
|
5612
|
-
: undefined,
|
|
5496
|
+
labels: output.labels != null ? deserializeAws_json1_1labelList(output.labels, context) : undefined,
|
|
5613
5497
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
5614
5498
|
};
|
|
5615
5499
|
};
|
|
5616
5500
|
const deserializeAws_json1_1GetModelsResult = (output, context) => {
|
|
5617
5501
|
return {
|
|
5618
|
-
models: output.models
|
|
5619
|
-
? deserializeAws_json1_1modelList(output.models, context)
|
|
5620
|
-
: undefined,
|
|
5502
|
+
models: output.models != null ? deserializeAws_json1_1modelList(output.models, context) : undefined,
|
|
5621
5503
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
5622
5504
|
};
|
|
5623
5505
|
};
|
|
5624
5506
|
const deserializeAws_json1_1GetModelVersionResult = (output, context) => {
|
|
5625
5507
|
return {
|
|
5626
5508
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
5627
|
-
externalEventsDetail: output.externalEventsDetail
|
|
5509
|
+
externalEventsDetail: output.externalEventsDetail != null
|
|
5628
5510
|
? deserializeAws_json1_1ExternalEventsDetail(output.externalEventsDetail, context)
|
|
5629
5511
|
: undefined,
|
|
5630
|
-
ingestedEventsDetail: output.ingestedEventsDetail
|
|
5512
|
+
ingestedEventsDetail: output.ingestedEventsDetail != null
|
|
5631
5513
|
? deserializeAws_json1_1IngestedEventsDetail(output.ingestedEventsDetail, context)
|
|
5632
5514
|
: undefined,
|
|
5633
5515
|
modelId: (0, smithy_client_1.expectString)(output.modelId),
|
|
5634
5516
|
modelType: (0, smithy_client_1.expectString)(output.modelType),
|
|
5635
5517
|
modelVersionNumber: (0, smithy_client_1.expectString)(output.modelVersionNumber),
|
|
5636
5518
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
5637
|
-
trainingDataSchema: output.trainingDataSchema
|
|
5519
|
+
trainingDataSchema: output.trainingDataSchema != null
|
|
5638
5520
|
? deserializeAws_json1_1TrainingDataSchema(output.trainingDataSchema, context)
|
|
5639
5521
|
: undefined,
|
|
5640
5522
|
trainingDataSource: (0, smithy_client_1.expectString)(output.trainingDataSource),
|
|
@@ -5643,30 +5525,24 @@ const deserializeAws_json1_1GetModelVersionResult = (output, context) => {
|
|
|
5643
5525
|
const deserializeAws_json1_1GetOutcomesResult = (output, context) => {
|
|
5644
5526
|
return {
|
|
5645
5527
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
5646
|
-
outcomes: output.outcomes
|
|
5647
|
-
? deserializeAws_json1_1OutcomeList(output.outcomes, context)
|
|
5648
|
-
: undefined,
|
|
5528
|
+
outcomes: output.outcomes != null ? deserializeAws_json1_1OutcomeList(output.outcomes, context) : undefined,
|
|
5649
5529
|
};
|
|
5650
5530
|
};
|
|
5651
5531
|
const deserializeAws_json1_1GetRulesResult = (output, context) => {
|
|
5652
5532
|
return {
|
|
5653
5533
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
5654
|
-
ruleDetails: output.ruleDetails
|
|
5655
|
-
? deserializeAws_json1_1RuleDetailList(output.ruleDetails, context)
|
|
5656
|
-
: undefined,
|
|
5534
|
+
ruleDetails: output.ruleDetails != null ? deserializeAws_json1_1RuleDetailList(output.ruleDetails, context) : undefined,
|
|
5657
5535
|
};
|
|
5658
5536
|
};
|
|
5659
5537
|
const deserializeAws_json1_1GetVariablesResult = (output, context) => {
|
|
5660
5538
|
return {
|
|
5661
5539
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
5662
|
-
variables: output.variables
|
|
5663
|
-
? deserializeAws_json1_1VariableList(output.variables, context)
|
|
5664
|
-
: undefined,
|
|
5540
|
+
variables: output.variables != null ? deserializeAws_json1_1VariableList(output.variables, context) : undefined,
|
|
5665
5541
|
};
|
|
5666
5542
|
};
|
|
5667
5543
|
const deserializeAws_json1_1IngestedEventsDetail = (output, context) => {
|
|
5668
5544
|
return {
|
|
5669
|
-
ingestedEventsTimeWindow: output.ingestedEventsTimeWindow
|
|
5545
|
+
ingestedEventsTimeWindow: output.ingestedEventsTimeWindow != null
|
|
5670
5546
|
? deserializeAws_json1_1IngestedEventsTimeWindow(output.ingestedEventsTimeWindow, context)
|
|
5671
5547
|
: undefined,
|
|
5672
5548
|
};
|
|
@@ -5740,15 +5616,13 @@ const deserializeAws_json1_1labelMapper = (output, context) => {
|
|
|
5740
5616
|
};
|
|
5741
5617
|
const deserializeAws_json1_1LabelSchema = (output, context) => {
|
|
5742
5618
|
return {
|
|
5743
|
-
labelMapper: output.labelMapper
|
|
5744
|
-
? deserializeAws_json1_1labelMapper(output.labelMapper, context)
|
|
5745
|
-
: undefined,
|
|
5619
|
+
labelMapper: output.labelMapper != null ? deserializeAws_json1_1labelMapper(output.labelMapper, context) : undefined,
|
|
5746
5620
|
unlabeledEventsTreatment: (0, smithy_client_1.expectString)(output.unlabeledEventsTreatment),
|
|
5747
5621
|
};
|
|
5748
5622
|
};
|
|
5749
5623
|
const deserializeAws_json1_1ListEventPredictionsResult = (output, context) => {
|
|
5750
5624
|
return {
|
|
5751
|
-
eventPredictionSummaries: output.eventPredictionSummaries
|
|
5625
|
+
eventPredictionSummaries: output.eventPredictionSummaries != null
|
|
5752
5626
|
? deserializeAws_json1_1ListOfEventPredictionSummaries(output.eventPredictionSummaries, context)
|
|
5753
5627
|
: undefined,
|
|
5754
5628
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
@@ -5900,9 +5774,7 @@ const deserializeAws_json1_1listOfVariableImpactExplanations = (output, context)
|
|
|
5900
5774
|
const deserializeAws_json1_1ListTagsForResourceResult = (output, context) => {
|
|
5901
5775
|
return {
|
|
5902
5776
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
5903
|
-
tags: output.tags
|
|
5904
|
-
? deserializeAws_json1_1tagList(output.tags, context)
|
|
5905
|
-
: undefined,
|
|
5777
|
+
tags: output.tags != null ? deserializeAws_json1_1tagList(output.tags, context) : undefined,
|
|
5906
5778
|
};
|
|
5907
5779
|
};
|
|
5908
5780
|
const deserializeAws_json1_1LogOddsMetric = (output, context) => {
|
|
@@ -5975,11 +5847,11 @@ const deserializeAws_json1_1modelList = (output, context) => {
|
|
|
5975
5847
|
};
|
|
5976
5848
|
const deserializeAws_json1_1ModelOutputConfiguration = (output, context) => {
|
|
5977
5849
|
return {
|
|
5978
|
-
csvIndexToVariableMap: output.csvIndexToVariableMap
|
|
5850
|
+
csvIndexToVariableMap: output.csvIndexToVariableMap != null
|
|
5979
5851
|
? deserializeAws_json1_1CsvIndexToVariableMap(output.csvIndexToVariableMap, context)
|
|
5980
5852
|
: undefined,
|
|
5981
5853
|
format: (0, smithy_client_1.expectString)(output.format),
|
|
5982
|
-
jsonKeyToVariableMap: output.jsonKeyToVariableMap
|
|
5854
|
+
jsonKeyToVariableMap: output.jsonKeyToVariableMap != null
|
|
5983
5855
|
? deserializeAws_json1_1JsonKeyToVariableMap(output.jsonKeyToVariableMap, context)
|
|
5984
5856
|
: undefined,
|
|
5985
5857
|
};
|
|
@@ -5997,12 +5869,8 @@ const deserializeAws_json1_1ModelPredictionMap = (output, context) => {
|
|
|
5997
5869
|
};
|
|
5998
5870
|
const deserializeAws_json1_1ModelScores = (output, context) => {
|
|
5999
5871
|
return {
|
|
6000
|
-
modelVersion: output.modelVersion
|
|
6001
|
-
|
|
6002
|
-
: undefined,
|
|
6003
|
-
scores: output.scores !== undefined && output.scores !== null
|
|
6004
|
-
? deserializeAws_json1_1ModelPredictionMap(output.scores, context)
|
|
6005
|
-
: undefined,
|
|
5872
|
+
modelVersion: output.modelVersion != null ? deserializeAws_json1_1ModelVersion(output.modelVersion, context) : undefined,
|
|
5873
|
+
scores: output.scores != null ? deserializeAws_json1_1ModelPredictionMap(output.scores, context) : undefined,
|
|
6006
5874
|
};
|
|
6007
5875
|
};
|
|
6008
5876
|
const deserializeAws_json1_1ModelVersion = (output, context) => {
|
|
@@ -6017,10 +5885,10 @@ const deserializeAws_json1_1ModelVersionDetail = (output, context) => {
|
|
|
6017
5885
|
return {
|
|
6018
5886
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
6019
5887
|
createdTime: (0, smithy_client_1.expectString)(output.createdTime),
|
|
6020
|
-
externalEventsDetail: output.externalEventsDetail
|
|
5888
|
+
externalEventsDetail: output.externalEventsDetail != null
|
|
6021
5889
|
? deserializeAws_json1_1ExternalEventsDetail(output.externalEventsDetail, context)
|
|
6022
5890
|
: undefined,
|
|
6023
|
-
ingestedEventsDetail: output.ingestedEventsDetail
|
|
5891
|
+
ingestedEventsDetail: output.ingestedEventsDetail != null
|
|
6024
5892
|
? deserializeAws_json1_1IngestedEventsDetail(output.ingestedEventsDetail, context)
|
|
6025
5893
|
: undefined,
|
|
6026
5894
|
lastUpdatedTime: (0, smithy_client_1.expectString)(output.lastUpdatedTime),
|
|
@@ -6028,13 +5896,11 @@ const deserializeAws_json1_1ModelVersionDetail = (output, context) => {
|
|
|
6028
5896
|
modelType: (0, smithy_client_1.expectString)(output.modelType),
|
|
6029
5897
|
modelVersionNumber: (0, smithy_client_1.expectString)(output.modelVersionNumber),
|
|
6030
5898
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
6031
|
-
trainingDataSchema: output.trainingDataSchema
|
|
5899
|
+
trainingDataSchema: output.trainingDataSchema != null
|
|
6032
5900
|
? deserializeAws_json1_1TrainingDataSchema(output.trainingDataSchema, context)
|
|
6033
5901
|
: undefined,
|
|
6034
5902
|
trainingDataSource: (0, smithy_client_1.expectString)(output.trainingDataSource),
|
|
6035
|
-
trainingResult: output.trainingResult
|
|
6036
|
-
? deserializeAws_json1_1TrainingResult(output.trainingResult, context)
|
|
6037
|
-
: undefined,
|
|
5903
|
+
trainingResult: output.trainingResult != null ? deserializeAws_json1_1TrainingResult(output.trainingResult, context) : undefined,
|
|
6038
5904
|
};
|
|
6039
5905
|
};
|
|
6040
5906
|
const deserializeAws_json1_1modelVersionDetailList = (output, context) => {
|
|
@@ -6052,7 +5918,7 @@ const deserializeAws_json1_1ModelVersionEvaluation = (output, context) => {
|
|
|
6052
5918
|
return {
|
|
6053
5919
|
evaluationScore: (0, smithy_client_1.expectString)(output.evaluationScore),
|
|
6054
5920
|
outputVariableName: (0, smithy_client_1.expectString)(output.outputVariableName),
|
|
6055
|
-
predictionExplanations: output.predictionExplanations
|
|
5921
|
+
predictionExplanations: output.predictionExplanations != null
|
|
6056
5922
|
? deserializeAws_json1_1PredictionExplanations(output.predictionExplanations, context)
|
|
6057
5923
|
: undefined,
|
|
6058
5924
|
};
|
|
@@ -6090,7 +5956,7 @@ const deserializeAws_json1_1OutcomeList = (output, context) => {
|
|
|
6090
5956
|
};
|
|
6091
5957
|
const deserializeAws_json1_1PredictionExplanations = (output, context) => {
|
|
6092
5958
|
return {
|
|
6093
|
-
variableImpactExplanations: output.variableImpactExplanations
|
|
5959
|
+
variableImpactExplanations: output.variableImpactExplanations != null
|
|
6094
5960
|
? deserializeAws_json1_1listOfVariableImpactExplanations(output.variableImpactExplanations, context)
|
|
6095
5961
|
: undefined,
|
|
6096
5962
|
};
|
|
@@ -6142,9 +6008,7 @@ const deserializeAws_json1_1RuleDetail = (output, context) => {
|
|
|
6142
6008
|
expression: (0, smithy_client_1.expectString)(output.expression),
|
|
6143
6009
|
language: (0, smithy_client_1.expectString)(output.language),
|
|
6144
6010
|
lastUpdatedTime: (0, smithy_client_1.expectString)(output.lastUpdatedTime),
|
|
6145
|
-
outcomes: output.outcomes
|
|
6146
|
-
? deserializeAws_json1_1NonEmptyListOfStrings(output.outcomes, context)
|
|
6147
|
-
: undefined,
|
|
6011
|
+
outcomes: output.outcomes != null ? deserializeAws_json1_1NonEmptyListOfStrings(output.outcomes, context) : undefined,
|
|
6148
6012
|
ruleId: (0, smithy_client_1.expectString)(output.ruleId),
|
|
6149
6013
|
ruleVersion: (0, smithy_client_1.expectString)(output.ruleVersion),
|
|
6150
6014
|
};
|
|
@@ -6173,9 +6037,7 @@ const deserializeAws_json1_1RuleList = (output, context) => {
|
|
|
6173
6037
|
};
|
|
6174
6038
|
const deserializeAws_json1_1RuleResult = (output, context) => {
|
|
6175
6039
|
return {
|
|
6176
|
-
outcomes: output.outcomes
|
|
6177
|
-
? deserializeAws_json1_1ListOfStrings(output.outcomes, context)
|
|
6178
|
-
: undefined,
|
|
6040
|
+
outcomes: output.outcomes != null ? deserializeAws_json1_1ListOfStrings(output.outcomes, context) : undefined,
|
|
6179
6041
|
ruleId: (0, smithy_client_1.expectString)(output.ruleId),
|
|
6180
6042
|
};
|
|
6181
6043
|
};
|
|
@@ -6209,31 +6071,27 @@ const deserializeAws_json1_1ThrottlingException = (output, context) => {
|
|
|
6209
6071
|
};
|
|
6210
6072
|
const deserializeAws_json1_1TrainingDataSchema = (output, context) => {
|
|
6211
6073
|
return {
|
|
6212
|
-
labelSchema: output.labelSchema
|
|
6213
|
-
|
|
6214
|
-
: undefined,
|
|
6215
|
-
modelVariables: output.modelVariables !== undefined && output.modelVariables !== null
|
|
6216
|
-
? deserializeAws_json1_1ListOfStrings(output.modelVariables, context)
|
|
6217
|
-
: undefined,
|
|
6074
|
+
labelSchema: output.labelSchema != null ? deserializeAws_json1_1LabelSchema(output.labelSchema, context) : undefined,
|
|
6075
|
+
modelVariables: output.modelVariables != null ? deserializeAws_json1_1ListOfStrings(output.modelVariables, context) : undefined,
|
|
6218
6076
|
};
|
|
6219
6077
|
};
|
|
6220
6078
|
const deserializeAws_json1_1TrainingMetrics = (output, context) => {
|
|
6221
6079
|
return {
|
|
6222
6080
|
auc: (0, smithy_client_1.limitedParseFloat32)(output.auc),
|
|
6223
|
-
metricDataPoints: output.metricDataPoints
|
|
6081
|
+
metricDataPoints: output.metricDataPoints != null
|
|
6224
6082
|
? deserializeAws_json1_1metricDataPointsList(output.metricDataPoints, context)
|
|
6225
6083
|
: undefined,
|
|
6226
6084
|
};
|
|
6227
6085
|
};
|
|
6228
6086
|
const deserializeAws_json1_1TrainingResult = (output, context) => {
|
|
6229
6087
|
return {
|
|
6230
|
-
dataValidationMetrics: output.dataValidationMetrics
|
|
6088
|
+
dataValidationMetrics: output.dataValidationMetrics != null
|
|
6231
6089
|
? deserializeAws_json1_1DataValidationMetrics(output.dataValidationMetrics, context)
|
|
6232
6090
|
: undefined,
|
|
6233
|
-
trainingMetrics: output.trainingMetrics
|
|
6091
|
+
trainingMetrics: output.trainingMetrics != null
|
|
6234
6092
|
? deserializeAws_json1_1TrainingMetrics(output.trainingMetrics, context)
|
|
6235
6093
|
: undefined,
|
|
6236
|
-
variableImportanceMetrics: output.variableImportanceMetrics
|
|
6094
|
+
variableImportanceMetrics: output.variableImportanceMetrics != null
|
|
6237
6095
|
? deserializeAws_json1_1VariableImportanceMetrics(output.variableImportanceMetrics, context)
|
|
6238
6096
|
: undefined,
|
|
6239
6097
|
};
|
|
@@ -6272,7 +6130,7 @@ const deserializeAws_json1_1UpdateRuleMetadataResult = (output, context) => {
|
|
|
6272
6130
|
};
|
|
6273
6131
|
const deserializeAws_json1_1UpdateRuleVersionResult = (output, context) => {
|
|
6274
6132
|
return {
|
|
6275
|
-
rule: output.rule
|
|
6133
|
+
rule: output.rule != null ? deserializeAws_json1_1Rule(output.rule, context) : undefined,
|
|
6276
6134
|
};
|
|
6277
6135
|
};
|
|
6278
6136
|
const deserializeAws_json1_1UpdateVariableResult = (output, context) => {
|
|
@@ -6305,7 +6163,7 @@ const deserializeAws_json1_1VariableImpactExplanation = (output, context) => {
|
|
|
6305
6163
|
};
|
|
6306
6164
|
const deserializeAws_json1_1VariableImportanceMetrics = (output, context) => {
|
|
6307
6165
|
return {
|
|
6308
|
-
logOddsMetrics: output.logOddsMetrics
|
|
6166
|
+
logOddsMetrics: output.logOddsMetrics != null
|
|
6309
6167
|
? deserializeAws_json1_1ListOfLogOddsMetrics(output.logOddsMetrics, context)
|
|
6310
6168
|
: undefined,
|
|
6311
6169
|
};
|
|
@@ -6365,6 +6223,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
6365
6223
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
6366
6224
|
const sanitizeErrorCode = (rawValue) => {
|
|
6367
6225
|
let cleanValue = rawValue;
|
|
6226
|
+
if (typeof cleanValue === "number") {
|
|
6227
|
+
cleanValue = cleanValue.toString();
|
|
6228
|
+
}
|
|
6368
6229
|
if (cleanValue.indexOf(":") >= 0) {
|
|
6369
6230
|
cleanValue = cleanValue.split(":")[0];
|
|
6370
6231
|
}
|