@aws-sdk/client-personalize 3.121.0 → 3.127.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.
@@ -3256,60 +3256,52 @@ const serializeAws_json1_1ArnList = (input, context) => {
3256
3256
  };
3257
3257
  const serializeAws_json1_1AutoMLConfig = (input, context) => {
3258
3258
  return {
3259
- ...(input.metricName !== undefined && input.metricName !== null && { metricName: input.metricName }),
3260
- ...(input.recipeList !== undefined &&
3261
- input.recipeList !== null && { recipeList: serializeAws_json1_1ArnList(input.recipeList, context) }),
3259
+ ...(input.metricName != null && { metricName: input.metricName }),
3260
+ ...(input.recipeList != null && { recipeList: serializeAws_json1_1ArnList(input.recipeList, context) }),
3262
3261
  };
3263
3262
  };
3264
3263
  const serializeAws_json1_1BatchInferenceJobConfig = (input, context) => {
3265
3264
  return {
3266
- ...(input.itemExplorationConfig !== undefined &&
3267
- input.itemExplorationConfig !== null && {
3265
+ ...(input.itemExplorationConfig != null && {
3268
3266
  itemExplorationConfig: serializeAws_json1_1HyperParameters(input.itemExplorationConfig, context),
3269
3267
  }),
3270
3268
  };
3271
3269
  };
3272
3270
  const serializeAws_json1_1BatchInferenceJobInput = (input, context) => {
3273
3271
  return {
3274
- ...(input.s3DataSource !== undefined &&
3275
- input.s3DataSource !== null && { s3DataSource: serializeAws_json1_1S3DataConfig(input.s3DataSource, context) }),
3272
+ ...(input.s3DataSource != null && { s3DataSource: serializeAws_json1_1S3DataConfig(input.s3DataSource, context) }),
3276
3273
  };
3277
3274
  };
3278
3275
  const serializeAws_json1_1BatchInferenceJobOutput = (input, context) => {
3279
3276
  return {
3280
- ...(input.s3DataDestination !== undefined &&
3281
- input.s3DataDestination !== null && {
3277
+ ...(input.s3DataDestination != null && {
3282
3278
  s3DataDestination: serializeAws_json1_1S3DataConfig(input.s3DataDestination, context),
3283
3279
  }),
3284
3280
  };
3285
3281
  };
3286
3282
  const serializeAws_json1_1BatchSegmentJobInput = (input, context) => {
3287
3283
  return {
3288
- ...(input.s3DataSource !== undefined &&
3289
- input.s3DataSource !== null && { s3DataSource: serializeAws_json1_1S3DataConfig(input.s3DataSource, context) }),
3284
+ ...(input.s3DataSource != null && { s3DataSource: serializeAws_json1_1S3DataConfig(input.s3DataSource, context) }),
3290
3285
  };
3291
3286
  };
3292
3287
  const serializeAws_json1_1BatchSegmentJobOutput = (input, context) => {
3293
3288
  return {
3294
- ...(input.s3DataDestination !== undefined &&
3295
- input.s3DataDestination !== null && {
3289
+ ...(input.s3DataDestination != null && {
3296
3290
  s3DataDestination: serializeAws_json1_1S3DataConfig(input.s3DataDestination, context),
3297
3291
  }),
3298
3292
  };
3299
3293
  };
3300
3294
  const serializeAws_json1_1CampaignConfig = (input, context) => {
3301
3295
  return {
3302
- ...(input.itemExplorationConfig !== undefined &&
3303
- input.itemExplorationConfig !== null && {
3296
+ ...(input.itemExplorationConfig != null && {
3304
3297
  itemExplorationConfig: serializeAws_json1_1HyperParameters(input.itemExplorationConfig, context),
3305
3298
  }),
3306
3299
  };
3307
3300
  };
3308
3301
  const serializeAws_json1_1CategoricalHyperParameterRange = (input, context) => {
3309
3302
  return {
3310
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
3311
- ...(input.values !== undefined &&
3312
- input.values !== null && { values: serializeAws_json1_1CategoricalValues(input.values, context) }),
3303
+ ...(input.name != null && { name: input.name }),
3304
+ ...(input.values != null && { values: serializeAws_json1_1CategoricalValues(input.values, context) }),
3313
3305
  };
3314
3306
  };
3315
3307
  const serializeAws_json1_1CategoricalHyperParameterRanges = (input, context) => {
@@ -3334,9 +3326,9 @@ const serializeAws_json1_1CategoricalValues = (input, context) => {
3334
3326
  };
3335
3327
  const serializeAws_json1_1ContinuousHyperParameterRange = (input, context) => {
3336
3328
  return {
3337
- ...(input.maxValue !== undefined && input.maxValue !== null && { maxValue: (0, smithy_client_1.serializeFloat)(input.maxValue) }),
3338
- ...(input.minValue !== undefined && input.minValue !== null && { minValue: (0, smithy_client_1.serializeFloat)(input.minValue) }),
3339
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
3329
+ ...(input.maxValue != null && { maxValue: (0, smithy_client_1.serializeFloat)(input.maxValue) }),
3330
+ ...(input.minValue != null && { minValue: (0, smithy_client_1.serializeFloat)(input.minValue) }),
3331
+ ...(input.name != null && { name: input.name }),
3340
3332
  };
3341
3333
  };
3342
3334
  const serializeAws_json1_1ContinuousHyperParameterRanges = (input, context) => {
@@ -3351,296 +3343,265 @@ const serializeAws_json1_1ContinuousHyperParameterRanges = (input, context) => {
3351
3343
  };
3352
3344
  const serializeAws_json1_1CreateBatchInferenceJobRequest = (input, context) => {
3353
3345
  return {
3354
- ...(input.batchInferenceJobConfig !== undefined &&
3355
- input.batchInferenceJobConfig !== null && {
3346
+ ...(input.batchInferenceJobConfig != null && {
3356
3347
  batchInferenceJobConfig: serializeAws_json1_1BatchInferenceJobConfig(input.batchInferenceJobConfig, context),
3357
3348
  }),
3358
- ...(input.filterArn !== undefined && input.filterArn !== null && { filterArn: input.filterArn }),
3359
- ...(input.jobInput !== undefined &&
3360
- input.jobInput !== null && { jobInput: serializeAws_json1_1BatchInferenceJobInput(input.jobInput, context) }),
3361
- ...(input.jobName !== undefined && input.jobName !== null && { jobName: input.jobName }),
3362
- ...(input.jobOutput !== undefined &&
3363
- input.jobOutput !== null && { jobOutput: serializeAws_json1_1BatchInferenceJobOutput(input.jobOutput, context) }),
3364
- ...(input.numResults !== undefined && input.numResults !== null && { numResults: input.numResults }),
3365
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
3366
- ...(input.solutionVersionArn !== undefined &&
3367
- input.solutionVersionArn !== null && { solutionVersionArn: input.solutionVersionArn }),
3368
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3349
+ ...(input.filterArn != null && { filterArn: input.filterArn }),
3350
+ ...(input.jobInput != null && { jobInput: serializeAws_json1_1BatchInferenceJobInput(input.jobInput, context) }),
3351
+ ...(input.jobName != null && { jobName: input.jobName }),
3352
+ ...(input.jobOutput != null && {
3353
+ jobOutput: serializeAws_json1_1BatchInferenceJobOutput(input.jobOutput, context),
3354
+ }),
3355
+ ...(input.numResults != null && { numResults: input.numResults }),
3356
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
3357
+ ...(input.solutionVersionArn != null && { solutionVersionArn: input.solutionVersionArn }),
3358
+ ...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3369
3359
  };
3370
3360
  };
3371
3361
  const serializeAws_json1_1CreateBatchSegmentJobRequest = (input, context) => {
3372
3362
  return {
3373
- ...(input.filterArn !== undefined && input.filterArn !== null && { filterArn: input.filterArn }),
3374
- ...(input.jobInput !== undefined &&
3375
- input.jobInput !== null && { jobInput: serializeAws_json1_1BatchSegmentJobInput(input.jobInput, context) }),
3376
- ...(input.jobName !== undefined && input.jobName !== null && { jobName: input.jobName }),
3377
- ...(input.jobOutput !== undefined &&
3378
- input.jobOutput !== null && { jobOutput: serializeAws_json1_1BatchSegmentJobOutput(input.jobOutput, context) }),
3379
- ...(input.numResults !== undefined && input.numResults !== null && { numResults: input.numResults }),
3380
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
3381
- ...(input.solutionVersionArn !== undefined &&
3382
- input.solutionVersionArn !== null && { solutionVersionArn: input.solutionVersionArn }),
3383
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3363
+ ...(input.filterArn != null && { filterArn: input.filterArn }),
3364
+ ...(input.jobInput != null && { jobInput: serializeAws_json1_1BatchSegmentJobInput(input.jobInput, context) }),
3365
+ ...(input.jobName != null && { jobName: input.jobName }),
3366
+ ...(input.jobOutput != null && { jobOutput: serializeAws_json1_1BatchSegmentJobOutput(input.jobOutput, context) }),
3367
+ ...(input.numResults != null && { numResults: input.numResults }),
3368
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
3369
+ ...(input.solutionVersionArn != null && { solutionVersionArn: input.solutionVersionArn }),
3370
+ ...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3384
3371
  };
3385
3372
  };
3386
3373
  const serializeAws_json1_1CreateCampaignRequest = (input, context) => {
3387
3374
  return {
3388
- ...(input.campaignConfig !== undefined &&
3389
- input.campaignConfig !== null && {
3375
+ ...(input.campaignConfig != null && {
3390
3376
  campaignConfig: serializeAws_json1_1CampaignConfig(input.campaignConfig, context),
3391
3377
  }),
3392
- ...(input.minProvisionedTPS !== undefined &&
3393
- input.minProvisionedTPS !== null && { minProvisionedTPS: input.minProvisionedTPS }),
3394
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
3395
- ...(input.solutionVersionArn !== undefined &&
3396
- input.solutionVersionArn !== null && { solutionVersionArn: input.solutionVersionArn }),
3397
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3378
+ ...(input.minProvisionedTPS != null && { minProvisionedTPS: input.minProvisionedTPS }),
3379
+ ...(input.name != null && { name: input.name }),
3380
+ ...(input.solutionVersionArn != null && { solutionVersionArn: input.solutionVersionArn }),
3381
+ ...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3398
3382
  };
3399
3383
  };
3400
3384
  const serializeAws_json1_1CreateDatasetExportJobRequest = (input, context) => {
3401
3385
  return {
3402
- ...(input.datasetArn !== undefined && input.datasetArn !== null && { datasetArn: input.datasetArn }),
3403
- ...(input.ingestionMode !== undefined && input.ingestionMode !== null && { ingestionMode: input.ingestionMode }),
3404
- ...(input.jobName !== undefined && input.jobName !== null && { jobName: input.jobName }),
3405
- ...(input.jobOutput !== undefined &&
3406
- input.jobOutput !== null && { jobOutput: serializeAws_json1_1DatasetExportJobOutput(input.jobOutput, context) }),
3407
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
3408
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3386
+ ...(input.datasetArn != null && { datasetArn: input.datasetArn }),
3387
+ ...(input.ingestionMode != null && { ingestionMode: input.ingestionMode }),
3388
+ ...(input.jobName != null && { jobName: input.jobName }),
3389
+ ...(input.jobOutput != null && { jobOutput: serializeAws_json1_1DatasetExportJobOutput(input.jobOutput, context) }),
3390
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
3391
+ ...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3409
3392
  };
3410
3393
  };
3411
3394
  const serializeAws_json1_1CreateDatasetGroupRequest = (input, context) => {
3412
3395
  return {
3413
- ...(input.domain !== undefined && input.domain !== null && { domain: input.domain }),
3414
- ...(input.kmsKeyArn !== undefined && input.kmsKeyArn !== null && { kmsKeyArn: input.kmsKeyArn }),
3415
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
3416
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
3417
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3396
+ ...(input.domain != null && { domain: input.domain }),
3397
+ ...(input.kmsKeyArn != null && { kmsKeyArn: input.kmsKeyArn }),
3398
+ ...(input.name != null && { name: input.name }),
3399
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
3400
+ ...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3418
3401
  };
3419
3402
  };
3420
3403
  const serializeAws_json1_1CreateDatasetImportJobRequest = (input, context) => {
3421
3404
  return {
3422
- ...(input.dataSource !== undefined &&
3423
- input.dataSource !== null && { dataSource: serializeAws_json1_1DataSource(input.dataSource, context) }),
3424
- ...(input.datasetArn !== undefined && input.datasetArn !== null && { datasetArn: input.datasetArn }),
3425
- ...(input.jobName !== undefined && input.jobName !== null && { jobName: input.jobName }),
3426
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
3427
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3405
+ ...(input.dataSource != null && { dataSource: serializeAws_json1_1DataSource(input.dataSource, context) }),
3406
+ ...(input.datasetArn != null && { datasetArn: input.datasetArn }),
3407
+ ...(input.jobName != null && { jobName: input.jobName }),
3408
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
3409
+ ...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3428
3410
  };
3429
3411
  };
3430
3412
  const serializeAws_json1_1CreateDatasetRequest = (input, context) => {
3431
3413
  return {
3432
- ...(input.datasetGroupArn !== undefined &&
3433
- input.datasetGroupArn !== null && { datasetGroupArn: input.datasetGroupArn }),
3434
- ...(input.datasetType !== undefined && input.datasetType !== null && { datasetType: input.datasetType }),
3435
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
3436
- ...(input.schemaArn !== undefined && input.schemaArn !== null && { schemaArn: input.schemaArn }),
3437
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3414
+ ...(input.datasetGroupArn != null && { datasetGroupArn: input.datasetGroupArn }),
3415
+ ...(input.datasetType != null && { datasetType: input.datasetType }),
3416
+ ...(input.name != null && { name: input.name }),
3417
+ ...(input.schemaArn != null && { schemaArn: input.schemaArn }),
3418
+ ...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3438
3419
  };
3439
3420
  };
3440
3421
  const serializeAws_json1_1CreateEventTrackerRequest = (input, context) => {
3441
3422
  return {
3442
- ...(input.datasetGroupArn !== undefined &&
3443
- input.datasetGroupArn !== null && { datasetGroupArn: input.datasetGroupArn }),
3444
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
3445
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3423
+ ...(input.datasetGroupArn != null && { datasetGroupArn: input.datasetGroupArn }),
3424
+ ...(input.name != null && { name: input.name }),
3425
+ ...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3446
3426
  };
3447
3427
  };
3448
3428
  const serializeAws_json1_1CreateFilterRequest = (input, context) => {
3449
3429
  return {
3450
- ...(input.datasetGroupArn !== undefined &&
3451
- input.datasetGroupArn !== null && { datasetGroupArn: input.datasetGroupArn }),
3452
- ...(input.filterExpression !== undefined &&
3453
- input.filterExpression !== null && { filterExpression: input.filterExpression }),
3454
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
3455
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3430
+ ...(input.datasetGroupArn != null && { datasetGroupArn: input.datasetGroupArn }),
3431
+ ...(input.filterExpression != null && { filterExpression: input.filterExpression }),
3432
+ ...(input.name != null && { name: input.name }),
3433
+ ...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3456
3434
  };
3457
3435
  };
3458
3436
  const serializeAws_json1_1CreateRecommenderRequest = (input, context) => {
3459
3437
  return {
3460
- ...(input.datasetGroupArn !== undefined &&
3461
- input.datasetGroupArn !== null && { datasetGroupArn: input.datasetGroupArn }),
3462
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
3463
- ...(input.recipeArn !== undefined && input.recipeArn !== null && { recipeArn: input.recipeArn }),
3464
- ...(input.recommenderConfig !== undefined &&
3465
- input.recommenderConfig !== null && {
3438
+ ...(input.datasetGroupArn != null && { datasetGroupArn: input.datasetGroupArn }),
3439
+ ...(input.name != null && { name: input.name }),
3440
+ ...(input.recipeArn != null && { recipeArn: input.recipeArn }),
3441
+ ...(input.recommenderConfig != null && {
3466
3442
  recommenderConfig: serializeAws_json1_1RecommenderConfig(input.recommenderConfig, context),
3467
3443
  }),
3468
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3444
+ ...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3469
3445
  };
3470
3446
  };
3471
3447
  const serializeAws_json1_1CreateSchemaRequest = (input, context) => {
3472
3448
  return {
3473
- ...(input.domain !== undefined && input.domain !== null && { domain: input.domain }),
3474
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
3475
- ...(input.schema !== undefined && input.schema !== null && { schema: input.schema }),
3449
+ ...(input.domain != null && { domain: input.domain }),
3450
+ ...(input.name != null && { name: input.name }),
3451
+ ...(input.schema != null && { schema: input.schema }),
3476
3452
  };
3477
3453
  };
3478
3454
  const serializeAws_json1_1CreateSolutionRequest = (input, context) => {
3479
3455
  return {
3480
- ...(input.datasetGroupArn !== undefined &&
3481
- input.datasetGroupArn !== null && { datasetGroupArn: input.datasetGroupArn }),
3482
- ...(input.eventType !== undefined && input.eventType !== null && { eventType: input.eventType }),
3483
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
3484
- ...(input.performAutoML !== undefined && input.performAutoML !== null && { performAutoML: input.performAutoML }),
3485
- ...(input.performHPO !== undefined && input.performHPO !== null && { performHPO: input.performHPO }),
3486
- ...(input.recipeArn !== undefined && input.recipeArn !== null && { recipeArn: input.recipeArn }),
3487
- ...(input.solutionConfig !== undefined &&
3488
- input.solutionConfig !== null && {
3456
+ ...(input.datasetGroupArn != null && { datasetGroupArn: input.datasetGroupArn }),
3457
+ ...(input.eventType != null && { eventType: input.eventType }),
3458
+ ...(input.name != null && { name: input.name }),
3459
+ ...(input.performAutoML != null && { performAutoML: input.performAutoML }),
3460
+ ...(input.performHPO != null && { performHPO: input.performHPO }),
3461
+ ...(input.recipeArn != null && { recipeArn: input.recipeArn }),
3462
+ ...(input.solutionConfig != null && {
3489
3463
  solutionConfig: serializeAws_json1_1SolutionConfig(input.solutionConfig, context),
3490
3464
  }),
3491
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3465
+ ...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3492
3466
  };
3493
3467
  };
3494
3468
  const serializeAws_json1_1CreateSolutionVersionRequest = (input, context) => {
3495
3469
  return {
3496
- ...(input.solutionArn !== undefined && input.solutionArn !== null && { solutionArn: input.solutionArn }),
3497
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3498
- ...(input.trainingMode !== undefined && input.trainingMode !== null && { trainingMode: input.trainingMode }),
3470
+ ...(input.solutionArn != null && { solutionArn: input.solutionArn }),
3471
+ ...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3472
+ ...(input.trainingMode != null && { trainingMode: input.trainingMode }),
3499
3473
  };
3500
3474
  };
3501
3475
  const serializeAws_json1_1DatasetExportJobOutput = (input, context) => {
3502
3476
  return {
3503
- ...(input.s3DataDestination !== undefined &&
3504
- input.s3DataDestination !== null && {
3477
+ ...(input.s3DataDestination != null && {
3505
3478
  s3DataDestination: serializeAws_json1_1S3DataConfig(input.s3DataDestination, context),
3506
3479
  }),
3507
3480
  };
3508
3481
  };
3509
3482
  const serializeAws_json1_1DataSource = (input, context) => {
3510
3483
  return {
3511
- ...(input.dataLocation !== undefined && input.dataLocation !== null && { dataLocation: input.dataLocation }),
3484
+ ...(input.dataLocation != null && { dataLocation: input.dataLocation }),
3512
3485
  };
3513
3486
  };
3514
3487
  const serializeAws_json1_1DeleteCampaignRequest = (input, context) => {
3515
3488
  return {
3516
- ...(input.campaignArn !== undefined && input.campaignArn !== null && { campaignArn: input.campaignArn }),
3489
+ ...(input.campaignArn != null && { campaignArn: input.campaignArn }),
3517
3490
  };
3518
3491
  };
3519
3492
  const serializeAws_json1_1DeleteDatasetGroupRequest = (input, context) => {
3520
3493
  return {
3521
- ...(input.datasetGroupArn !== undefined &&
3522
- input.datasetGroupArn !== null && { datasetGroupArn: input.datasetGroupArn }),
3494
+ ...(input.datasetGroupArn != null && { datasetGroupArn: input.datasetGroupArn }),
3523
3495
  };
3524
3496
  };
3525
3497
  const serializeAws_json1_1DeleteDatasetRequest = (input, context) => {
3526
3498
  return {
3527
- ...(input.datasetArn !== undefined && input.datasetArn !== null && { datasetArn: input.datasetArn }),
3499
+ ...(input.datasetArn != null && { datasetArn: input.datasetArn }),
3528
3500
  };
3529
3501
  };
3530
3502
  const serializeAws_json1_1DeleteEventTrackerRequest = (input, context) => {
3531
3503
  return {
3532
- ...(input.eventTrackerArn !== undefined &&
3533
- input.eventTrackerArn !== null && { eventTrackerArn: input.eventTrackerArn }),
3504
+ ...(input.eventTrackerArn != null && { eventTrackerArn: input.eventTrackerArn }),
3534
3505
  };
3535
3506
  };
3536
3507
  const serializeAws_json1_1DeleteFilterRequest = (input, context) => {
3537
3508
  return {
3538
- ...(input.filterArn !== undefined && input.filterArn !== null && { filterArn: input.filterArn }),
3509
+ ...(input.filterArn != null && { filterArn: input.filterArn }),
3539
3510
  };
3540
3511
  };
3541
3512
  const serializeAws_json1_1DeleteRecommenderRequest = (input, context) => {
3542
3513
  return {
3543
- ...(input.recommenderArn !== undefined &&
3544
- input.recommenderArn !== null && { recommenderArn: input.recommenderArn }),
3514
+ ...(input.recommenderArn != null && { recommenderArn: input.recommenderArn }),
3545
3515
  };
3546
3516
  };
3547
3517
  const serializeAws_json1_1DeleteSchemaRequest = (input, context) => {
3548
3518
  return {
3549
- ...(input.schemaArn !== undefined && input.schemaArn !== null && { schemaArn: input.schemaArn }),
3519
+ ...(input.schemaArn != null && { schemaArn: input.schemaArn }),
3550
3520
  };
3551
3521
  };
3552
3522
  const serializeAws_json1_1DeleteSolutionRequest = (input, context) => {
3553
3523
  return {
3554
- ...(input.solutionArn !== undefined && input.solutionArn !== null && { solutionArn: input.solutionArn }),
3524
+ ...(input.solutionArn != null && { solutionArn: input.solutionArn }),
3555
3525
  };
3556
3526
  };
3557
3527
  const serializeAws_json1_1DescribeAlgorithmRequest = (input, context) => {
3558
3528
  return {
3559
- ...(input.algorithmArn !== undefined && input.algorithmArn !== null && { algorithmArn: input.algorithmArn }),
3529
+ ...(input.algorithmArn != null && { algorithmArn: input.algorithmArn }),
3560
3530
  };
3561
3531
  };
3562
3532
  const serializeAws_json1_1DescribeBatchInferenceJobRequest = (input, context) => {
3563
3533
  return {
3564
- ...(input.batchInferenceJobArn !== undefined &&
3565
- input.batchInferenceJobArn !== null && { batchInferenceJobArn: input.batchInferenceJobArn }),
3534
+ ...(input.batchInferenceJobArn != null && { batchInferenceJobArn: input.batchInferenceJobArn }),
3566
3535
  };
3567
3536
  };
3568
3537
  const serializeAws_json1_1DescribeBatchSegmentJobRequest = (input, context) => {
3569
3538
  return {
3570
- ...(input.batchSegmentJobArn !== undefined &&
3571
- input.batchSegmentJobArn !== null && { batchSegmentJobArn: input.batchSegmentJobArn }),
3539
+ ...(input.batchSegmentJobArn != null && { batchSegmentJobArn: input.batchSegmentJobArn }),
3572
3540
  };
3573
3541
  };
3574
3542
  const serializeAws_json1_1DescribeCampaignRequest = (input, context) => {
3575
3543
  return {
3576
- ...(input.campaignArn !== undefined && input.campaignArn !== null && { campaignArn: input.campaignArn }),
3544
+ ...(input.campaignArn != null && { campaignArn: input.campaignArn }),
3577
3545
  };
3578
3546
  };
3579
3547
  const serializeAws_json1_1DescribeDatasetExportJobRequest = (input, context) => {
3580
3548
  return {
3581
- ...(input.datasetExportJobArn !== undefined &&
3582
- input.datasetExportJobArn !== null && { datasetExportJobArn: input.datasetExportJobArn }),
3549
+ ...(input.datasetExportJobArn != null && { datasetExportJobArn: input.datasetExportJobArn }),
3583
3550
  };
3584
3551
  };
3585
3552
  const serializeAws_json1_1DescribeDatasetGroupRequest = (input, context) => {
3586
3553
  return {
3587
- ...(input.datasetGroupArn !== undefined &&
3588
- input.datasetGroupArn !== null && { datasetGroupArn: input.datasetGroupArn }),
3554
+ ...(input.datasetGroupArn != null && { datasetGroupArn: input.datasetGroupArn }),
3589
3555
  };
3590
3556
  };
3591
3557
  const serializeAws_json1_1DescribeDatasetImportJobRequest = (input, context) => {
3592
3558
  return {
3593
- ...(input.datasetImportJobArn !== undefined &&
3594
- input.datasetImportJobArn !== null && { datasetImportJobArn: input.datasetImportJobArn }),
3559
+ ...(input.datasetImportJobArn != null && { datasetImportJobArn: input.datasetImportJobArn }),
3595
3560
  };
3596
3561
  };
3597
3562
  const serializeAws_json1_1DescribeDatasetRequest = (input, context) => {
3598
3563
  return {
3599
- ...(input.datasetArn !== undefined && input.datasetArn !== null && { datasetArn: input.datasetArn }),
3564
+ ...(input.datasetArn != null && { datasetArn: input.datasetArn }),
3600
3565
  };
3601
3566
  };
3602
3567
  const serializeAws_json1_1DescribeEventTrackerRequest = (input, context) => {
3603
3568
  return {
3604
- ...(input.eventTrackerArn !== undefined &&
3605
- input.eventTrackerArn !== null && { eventTrackerArn: input.eventTrackerArn }),
3569
+ ...(input.eventTrackerArn != null && { eventTrackerArn: input.eventTrackerArn }),
3606
3570
  };
3607
3571
  };
3608
3572
  const serializeAws_json1_1DescribeFeatureTransformationRequest = (input, context) => {
3609
3573
  return {
3610
- ...(input.featureTransformationArn !== undefined &&
3611
- input.featureTransformationArn !== null && { featureTransformationArn: input.featureTransformationArn }),
3574
+ ...(input.featureTransformationArn != null && { featureTransformationArn: input.featureTransformationArn }),
3612
3575
  };
3613
3576
  };
3614
3577
  const serializeAws_json1_1DescribeFilterRequest = (input, context) => {
3615
3578
  return {
3616
- ...(input.filterArn !== undefined && input.filterArn !== null && { filterArn: input.filterArn }),
3579
+ ...(input.filterArn != null && { filterArn: input.filterArn }),
3617
3580
  };
3618
3581
  };
3619
3582
  const serializeAws_json1_1DescribeRecipeRequest = (input, context) => {
3620
3583
  return {
3621
- ...(input.recipeArn !== undefined && input.recipeArn !== null && { recipeArn: input.recipeArn }),
3584
+ ...(input.recipeArn != null && { recipeArn: input.recipeArn }),
3622
3585
  };
3623
3586
  };
3624
3587
  const serializeAws_json1_1DescribeRecommenderRequest = (input, context) => {
3625
3588
  return {
3626
- ...(input.recommenderArn !== undefined &&
3627
- input.recommenderArn !== null && { recommenderArn: input.recommenderArn }),
3589
+ ...(input.recommenderArn != null && { recommenderArn: input.recommenderArn }),
3628
3590
  };
3629
3591
  };
3630
3592
  const serializeAws_json1_1DescribeSchemaRequest = (input, context) => {
3631
3593
  return {
3632
- ...(input.schemaArn !== undefined && input.schemaArn !== null && { schemaArn: input.schemaArn }),
3594
+ ...(input.schemaArn != null && { schemaArn: input.schemaArn }),
3633
3595
  };
3634
3596
  };
3635
3597
  const serializeAws_json1_1DescribeSolutionRequest = (input, context) => {
3636
3598
  return {
3637
- ...(input.solutionArn !== undefined && input.solutionArn !== null && { solutionArn: input.solutionArn }),
3599
+ ...(input.solutionArn != null && { solutionArn: input.solutionArn }),
3638
3600
  };
3639
3601
  };
3640
3602
  const serializeAws_json1_1DescribeSolutionVersionRequest = (input, context) => {
3641
3603
  return {
3642
- ...(input.solutionVersionArn !== undefined &&
3643
- input.solutionVersionArn !== null && { solutionVersionArn: input.solutionVersionArn }),
3604
+ ...(input.solutionVersionArn != null && { solutionVersionArn: input.solutionVersionArn }),
3644
3605
  };
3645
3606
  };
3646
3607
  const serializeAws_json1_1FeatureTransformationParameters = (input, context) => {
@@ -3656,51 +3617,42 @@ const serializeAws_json1_1FeatureTransformationParameters = (input, context) =>
3656
3617
  };
3657
3618
  const serializeAws_json1_1GetSolutionMetricsRequest = (input, context) => {
3658
3619
  return {
3659
- ...(input.solutionVersionArn !== undefined &&
3660
- input.solutionVersionArn !== null && { solutionVersionArn: input.solutionVersionArn }),
3620
+ ...(input.solutionVersionArn != null && { solutionVersionArn: input.solutionVersionArn }),
3661
3621
  };
3662
3622
  };
3663
3623
  const serializeAws_json1_1HPOConfig = (input, context) => {
3664
3624
  return {
3665
- ...(input.algorithmHyperParameterRanges !== undefined &&
3666
- input.algorithmHyperParameterRanges !== null && {
3625
+ ...(input.algorithmHyperParameterRanges != null && {
3667
3626
  algorithmHyperParameterRanges: serializeAws_json1_1HyperParameterRanges(input.algorithmHyperParameterRanges, context),
3668
3627
  }),
3669
- ...(input.hpoObjective !== undefined &&
3670
- input.hpoObjective !== null && { hpoObjective: serializeAws_json1_1HPOObjective(input.hpoObjective, context) }),
3671
- ...(input.hpoResourceConfig !== undefined &&
3672
- input.hpoResourceConfig !== null && {
3628
+ ...(input.hpoObjective != null && { hpoObjective: serializeAws_json1_1HPOObjective(input.hpoObjective, context) }),
3629
+ ...(input.hpoResourceConfig != null && {
3673
3630
  hpoResourceConfig: serializeAws_json1_1HPOResourceConfig(input.hpoResourceConfig, context),
3674
3631
  }),
3675
3632
  };
3676
3633
  };
3677
3634
  const serializeAws_json1_1HPOObjective = (input, context) => {
3678
3635
  return {
3679
- ...(input.metricName !== undefined && input.metricName !== null && { metricName: input.metricName }),
3680
- ...(input.metricRegex !== undefined && input.metricRegex !== null && { metricRegex: input.metricRegex }),
3681
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
3636
+ ...(input.metricName != null && { metricName: input.metricName }),
3637
+ ...(input.metricRegex != null && { metricRegex: input.metricRegex }),
3638
+ ...(input.type != null && { type: input.type }),
3682
3639
  };
3683
3640
  };
3684
3641
  const serializeAws_json1_1HPOResourceConfig = (input, context) => {
3685
3642
  return {
3686
- ...(input.maxNumberOfTrainingJobs !== undefined &&
3687
- input.maxNumberOfTrainingJobs !== null && { maxNumberOfTrainingJobs: input.maxNumberOfTrainingJobs }),
3688
- ...(input.maxParallelTrainingJobs !== undefined &&
3689
- input.maxParallelTrainingJobs !== null && { maxParallelTrainingJobs: input.maxParallelTrainingJobs }),
3643
+ ...(input.maxNumberOfTrainingJobs != null && { maxNumberOfTrainingJobs: input.maxNumberOfTrainingJobs }),
3644
+ ...(input.maxParallelTrainingJobs != null && { maxParallelTrainingJobs: input.maxParallelTrainingJobs }),
3690
3645
  };
3691
3646
  };
3692
3647
  const serializeAws_json1_1HyperParameterRanges = (input, context) => {
3693
3648
  return {
3694
- ...(input.categoricalHyperParameterRanges !== undefined &&
3695
- input.categoricalHyperParameterRanges !== null && {
3649
+ ...(input.categoricalHyperParameterRanges != null && {
3696
3650
  categoricalHyperParameterRanges: serializeAws_json1_1CategoricalHyperParameterRanges(input.categoricalHyperParameterRanges, context),
3697
3651
  }),
3698
- ...(input.continuousHyperParameterRanges !== undefined &&
3699
- input.continuousHyperParameterRanges !== null && {
3652
+ ...(input.continuousHyperParameterRanges != null && {
3700
3653
  continuousHyperParameterRanges: serializeAws_json1_1ContinuousHyperParameterRanges(input.continuousHyperParameterRanges, context),
3701
3654
  }),
3702
- ...(input.integerHyperParameterRanges !== undefined &&
3703
- input.integerHyperParameterRanges !== null && {
3655
+ ...(input.integerHyperParameterRanges != null && {
3704
3656
  integerHyperParameterRanges: serializeAws_json1_1IntegerHyperParameterRanges(input.integerHyperParameterRanges, context),
3705
3657
  }),
3706
3658
  };
@@ -3718,9 +3670,9 @@ const serializeAws_json1_1HyperParameters = (input, context) => {
3718
3670
  };
3719
3671
  const serializeAws_json1_1IntegerHyperParameterRange = (input, context) => {
3720
3672
  return {
3721
- ...(input.maxValue !== undefined && input.maxValue !== null && { maxValue: input.maxValue }),
3722
- ...(input.minValue !== undefined && input.minValue !== null && { minValue: input.minValue }),
3723
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
3673
+ ...(input.maxValue != null && { maxValue: input.maxValue }),
3674
+ ...(input.minValue != null && { minValue: input.minValue }),
3675
+ ...(input.name != null && { name: input.name }),
3724
3676
  };
3725
3677
  };
3726
3678
  const serializeAws_json1_1IntegerHyperParameterRanges = (input, context) => {
@@ -3735,183 +3687,163 @@ const serializeAws_json1_1IntegerHyperParameterRanges = (input, context) => {
3735
3687
  };
3736
3688
  const serializeAws_json1_1ListBatchInferenceJobsRequest = (input, context) => {
3737
3689
  return {
3738
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
3739
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
3740
- ...(input.solutionVersionArn !== undefined &&
3741
- input.solutionVersionArn !== null && { solutionVersionArn: input.solutionVersionArn }),
3690
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3691
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3692
+ ...(input.solutionVersionArn != null && { solutionVersionArn: input.solutionVersionArn }),
3742
3693
  };
3743
3694
  };
3744
3695
  const serializeAws_json1_1ListBatchSegmentJobsRequest = (input, context) => {
3745
3696
  return {
3746
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
3747
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
3748
- ...(input.solutionVersionArn !== undefined &&
3749
- input.solutionVersionArn !== null && { solutionVersionArn: input.solutionVersionArn }),
3697
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3698
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3699
+ ...(input.solutionVersionArn != null && { solutionVersionArn: input.solutionVersionArn }),
3750
3700
  };
3751
3701
  };
3752
3702
  const serializeAws_json1_1ListCampaignsRequest = (input, context) => {
3753
3703
  return {
3754
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
3755
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
3756
- ...(input.solutionArn !== undefined && input.solutionArn !== null && { solutionArn: input.solutionArn }),
3704
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3705
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3706
+ ...(input.solutionArn != null && { solutionArn: input.solutionArn }),
3757
3707
  };
3758
3708
  };
3759
3709
  const serializeAws_json1_1ListDatasetExportJobsRequest = (input, context) => {
3760
3710
  return {
3761
- ...(input.datasetArn !== undefined && input.datasetArn !== null && { datasetArn: input.datasetArn }),
3762
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
3763
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
3711
+ ...(input.datasetArn != null && { datasetArn: input.datasetArn }),
3712
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3713
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3764
3714
  };
3765
3715
  };
3766
3716
  const serializeAws_json1_1ListDatasetGroupsRequest = (input, context) => {
3767
3717
  return {
3768
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
3769
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
3718
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3719
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3770
3720
  };
3771
3721
  };
3772
3722
  const serializeAws_json1_1ListDatasetImportJobsRequest = (input, context) => {
3773
3723
  return {
3774
- ...(input.datasetArn !== undefined && input.datasetArn !== null && { datasetArn: input.datasetArn }),
3775
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
3776
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
3724
+ ...(input.datasetArn != null && { datasetArn: input.datasetArn }),
3725
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3726
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3777
3727
  };
3778
3728
  };
3779
3729
  const serializeAws_json1_1ListDatasetsRequest = (input, context) => {
3780
3730
  return {
3781
- ...(input.datasetGroupArn !== undefined &&
3782
- input.datasetGroupArn !== null && { datasetGroupArn: input.datasetGroupArn }),
3783
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
3784
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
3731
+ ...(input.datasetGroupArn != null && { datasetGroupArn: input.datasetGroupArn }),
3732
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3733
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3785
3734
  };
3786
3735
  };
3787
3736
  const serializeAws_json1_1ListEventTrackersRequest = (input, context) => {
3788
3737
  return {
3789
- ...(input.datasetGroupArn !== undefined &&
3790
- input.datasetGroupArn !== null && { datasetGroupArn: input.datasetGroupArn }),
3791
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
3792
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
3738
+ ...(input.datasetGroupArn != null && { datasetGroupArn: input.datasetGroupArn }),
3739
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3740
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3793
3741
  };
3794
3742
  };
3795
3743
  const serializeAws_json1_1ListFiltersRequest = (input, context) => {
3796
3744
  return {
3797
- ...(input.datasetGroupArn !== undefined &&
3798
- input.datasetGroupArn !== null && { datasetGroupArn: input.datasetGroupArn }),
3799
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
3800
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
3745
+ ...(input.datasetGroupArn != null && { datasetGroupArn: input.datasetGroupArn }),
3746
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3747
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3801
3748
  };
3802
3749
  };
3803
3750
  const serializeAws_json1_1ListRecipesRequest = (input, context) => {
3804
3751
  return {
3805
- ...(input.domain !== undefined && input.domain !== null && { domain: input.domain }),
3806
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
3807
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
3808
- ...(input.recipeProvider !== undefined &&
3809
- input.recipeProvider !== null && { recipeProvider: input.recipeProvider }),
3752
+ ...(input.domain != null && { domain: input.domain }),
3753
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3754
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3755
+ ...(input.recipeProvider != null && { recipeProvider: input.recipeProvider }),
3810
3756
  };
3811
3757
  };
3812
3758
  const serializeAws_json1_1ListRecommendersRequest = (input, context) => {
3813
3759
  return {
3814
- ...(input.datasetGroupArn !== undefined &&
3815
- input.datasetGroupArn !== null && { datasetGroupArn: input.datasetGroupArn }),
3816
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
3817
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
3760
+ ...(input.datasetGroupArn != null && { datasetGroupArn: input.datasetGroupArn }),
3761
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3762
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3818
3763
  };
3819
3764
  };
3820
3765
  const serializeAws_json1_1ListSchemasRequest = (input, context) => {
3821
3766
  return {
3822
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
3823
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
3767
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3768
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3824
3769
  };
3825
3770
  };
3826
3771
  const serializeAws_json1_1ListSolutionsRequest = (input, context) => {
3827
3772
  return {
3828
- ...(input.datasetGroupArn !== undefined &&
3829
- input.datasetGroupArn !== null && { datasetGroupArn: input.datasetGroupArn }),
3830
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
3831
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
3773
+ ...(input.datasetGroupArn != null && { datasetGroupArn: input.datasetGroupArn }),
3774
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3775
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3832
3776
  };
3833
3777
  };
3834
3778
  const serializeAws_json1_1ListSolutionVersionsRequest = (input, context) => {
3835
3779
  return {
3836
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
3837
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
3838
- ...(input.solutionArn !== undefined && input.solutionArn !== null && { solutionArn: input.solutionArn }),
3780
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3781
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3782
+ ...(input.solutionArn != null && { solutionArn: input.solutionArn }),
3839
3783
  };
3840
3784
  };
3841
3785
  const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
3842
3786
  return {
3843
- ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
3787
+ ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
3844
3788
  };
3845
3789
  };
3846
3790
  const serializeAws_json1_1OptimizationObjective = (input, context) => {
3847
3791
  return {
3848
- ...(input.itemAttribute !== undefined && input.itemAttribute !== null && { itemAttribute: input.itemAttribute }),
3849
- ...(input.objectiveSensitivity !== undefined &&
3850
- input.objectiveSensitivity !== null && { objectiveSensitivity: input.objectiveSensitivity }),
3792
+ ...(input.itemAttribute != null && { itemAttribute: input.itemAttribute }),
3793
+ ...(input.objectiveSensitivity != null && { objectiveSensitivity: input.objectiveSensitivity }),
3851
3794
  };
3852
3795
  };
3853
3796
  const serializeAws_json1_1RecommenderConfig = (input, context) => {
3854
3797
  return {
3855
- ...(input.itemExplorationConfig !== undefined &&
3856
- input.itemExplorationConfig !== null && {
3798
+ ...(input.itemExplorationConfig != null && {
3857
3799
  itemExplorationConfig: serializeAws_json1_1HyperParameters(input.itemExplorationConfig, context),
3858
3800
  }),
3859
- ...(input.minRecommendationRequestsPerSecond !== undefined &&
3860
- input.minRecommendationRequestsPerSecond !== null && {
3801
+ ...(input.minRecommendationRequestsPerSecond != null && {
3861
3802
  minRecommendationRequestsPerSecond: input.minRecommendationRequestsPerSecond,
3862
3803
  }),
3863
3804
  };
3864
3805
  };
3865
3806
  const serializeAws_json1_1S3DataConfig = (input, context) => {
3866
3807
  return {
3867
- ...(input.kmsKeyArn !== undefined && input.kmsKeyArn !== null && { kmsKeyArn: input.kmsKeyArn }),
3868
- ...(input.path !== undefined && input.path !== null && { path: input.path }),
3808
+ ...(input.kmsKeyArn != null && { kmsKeyArn: input.kmsKeyArn }),
3809
+ ...(input.path != null && { path: input.path }),
3869
3810
  };
3870
3811
  };
3871
3812
  const serializeAws_json1_1SolutionConfig = (input, context) => {
3872
3813
  return {
3873
- ...(input.algorithmHyperParameters !== undefined &&
3874
- input.algorithmHyperParameters !== null && {
3814
+ ...(input.algorithmHyperParameters != null && {
3875
3815
  algorithmHyperParameters: serializeAws_json1_1HyperParameters(input.algorithmHyperParameters, context),
3876
3816
  }),
3877
- ...(input.autoMLConfig !== undefined &&
3878
- input.autoMLConfig !== null && { autoMLConfig: serializeAws_json1_1AutoMLConfig(input.autoMLConfig, context) }),
3879
- ...(input.eventValueThreshold !== undefined &&
3880
- input.eventValueThreshold !== null && { eventValueThreshold: input.eventValueThreshold }),
3881
- ...(input.featureTransformationParameters !== undefined &&
3882
- input.featureTransformationParameters !== null && {
3817
+ ...(input.autoMLConfig != null && { autoMLConfig: serializeAws_json1_1AutoMLConfig(input.autoMLConfig, context) }),
3818
+ ...(input.eventValueThreshold != null && { eventValueThreshold: input.eventValueThreshold }),
3819
+ ...(input.featureTransformationParameters != null && {
3883
3820
  featureTransformationParameters: serializeAws_json1_1FeatureTransformationParameters(input.featureTransformationParameters, context),
3884
3821
  }),
3885
- ...(input.hpoConfig !== undefined &&
3886
- input.hpoConfig !== null && { hpoConfig: serializeAws_json1_1HPOConfig(input.hpoConfig, context) }),
3887
- ...(input.optimizationObjective !== undefined &&
3888
- input.optimizationObjective !== null && {
3822
+ ...(input.hpoConfig != null && { hpoConfig: serializeAws_json1_1HPOConfig(input.hpoConfig, context) }),
3823
+ ...(input.optimizationObjective != null && {
3889
3824
  optimizationObjective: serializeAws_json1_1OptimizationObjective(input.optimizationObjective, context),
3890
3825
  }),
3891
3826
  };
3892
3827
  };
3893
3828
  const serializeAws_json1_1StartRecommenderRequest = (input, context) => {
3894
3829
  return {
3895
- ...(input.recommenderArn !== undefined &&
3896
- input.recommenderArn !== null && { recommenderArn: input.recommenderArn }),
3830
+ ...(input.recommenderArn != null && { recommenderArn: input.recommenderArn }),
3897
3831
  };
3898
3832
  };
3899
3833
  const serializeAws_json1_1StopRecommenderRequest = (input, context) => {
3900
3834
  return {
3901
- ...(input.recommenderArn !== undefined &&
3902
- input.recommenderArn !== null && { recommenderArn: input.recommenderArn }),
3835
+ ...(input.recommenderArn != null && { recommenderArn: input.recommenderArn }),
3903
3836
  };
3904
3837
  };
3905
3838
  const serializeAws_json1_1StopSolutionVersionCreationRequest = (input, context) => {
3906
3839
  return {
3907
- ...(input.solutionVersionArn !== undefined &&
3908
- input.solutionVersionArn !== null && { solutionVersionArn: input.solutionVersionArn }),
3840
+ ...(input.solutionVersionArn != null && { solutionVersionArn: input.solutionVersionArn }),
3909
3841
  };
3910
3842
  };
3911
3843
  const serializeAws_json1_1Tag = (input, context) => {
3912
3844
  return {
3913
- ...(input.tagKey !== undefined && input.tagKey !== null && { tagKey: input.tagKey }),
3914
- ...(input.tagValue !== undefined && input.tagValue !== null && { tagValue: input.tagValue }),
3845
+ ...(input.tagKey != null && { tagKey: input.tagKey }),
3846
+ ...(input.tagValue != null && { tagValue: input.tagValue }),
3915
3847
  };
3916
3848
  };
3917
3849
  const serializeAws_json1_1TagKeys = (input, context) => {
@@ -3926,8 +3858,8 @@ const serializeAws_json1_1TagKeys = (input, context) => {
3926
3858
  };
3927
3859
  const serializeAws_json1_1TagResourceRequest = (input, context) => {
3928
3860
  return {
3929
- ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
3930
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3861
+ ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
3862
+ ...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3931
3863
  };
3932
3864
  };
3933
3865
  const serializeAws_json1_1Tags = (input, context) => {
@@ -3942,30 +3874,24 @@ const serializeAws_json1_1Tags = (input, context) => {
3942
3874
  };
3943
3875
  const serializeAws_json1_1UntagResourceRequest = (input, context) => {
3944
3876
  return {
3945
- ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
3946
- ...(input.tagKeys !== undefined &&
3947
- input.tagKeys !== null && { tagKeys: serializeAws_json1_1TagKeys(input.tagKeys, context) }),
3877
+ ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
3878
+ ...(input.tagKeys != null && { tagKeys: serializeAws_json1_1TagKeys(input.tagKeys, context) }),
3948
3879
  };
3949
3880
  };
3950
3881
  const serializeAws_json1_1UpdateCampaignRequest = (input, context) => {
3951
3882
  return {
3952
- ...(input.campaignArn !== undefined && input.campaignArn !== null && { campaignArn: input.campaignArn }),
3953
- ...(input.campaignConfig !== undefined &&
3954
- input.campaignConfig !== null && {
3883
+ ...(input.campaignArn != null && { campaignArn: input.campaignArn }),
3884
+ ...(input.campaignConfig != null && {
3955
3885
  campaignConfig: serializeAws_json1_1CampaignConfig(input.campaignConfig, context),
3956
3886
  }),
3957
- ...(input.minProvisionedTPS !== undefined &&
3958
- input.minProvisionedTPS !== null && { minProvisionedTPS: input.minProvisionedTPS }),
3959
- ...(input.solutionVersionArn !== undefined &&
3960
- input.solutionVersionArn !== null && { solutionVersionArn: input.solutionVersionArn }),
3887
+ ...(input.minProvisionedTPS != null && { minProvisionedTPS: input.minProvisionedTPS }),
3888
+ ...(input.solutionVersionArn != null && { solutionVersionArn: input.solutionVersionArn }),
3961
3889
  };
3962
3890
  };
3963
3891
  const serializeAws_json1_1UpdateRecommenderRequest = (input, context) => {
3964
3892
  return {
3965
- ...(input.recommenderArn !== undefined &&
3966
- input.recommenderArn !== null && { recommenderArn: input.recommenderArn }),
3967
- ...(input.recommenderConfig !== undefined &&
3968
- input.recommenderConfig !== null && {
3893
+ ...(input.recommenderArn != null && { recommenderArn: input.recommenderArn }),
3894
+ ...(input.recommenderConfig != null && {
3969
3895
  recommenderConfig: serializeAws_json1_1RecommenderConfig(input.recommenderConfig, context),
3970
3896
  }),
3971
3897
  };
@@ -3973,22 +3899,20 @@ const serializeAws_json1_1UpdateRecommenderRequest = (input, context) => {
3973
3899
  const deserializeAws_json1_1Algorithm = (output, context) => {
3974
3900
  return {
3975
3901
  algorithmArn: (0, smithy_client_1.expectString)(output.algorithmArn),
3976
- algorithmImage: output.algorithmImage !== undefined && output.algorithmImage !== null
3977
- ? deserializeAws_json1_1AlgorithmImage(output.algorithmImage, context)
3978
- : undefined,
3979
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
3902
+ algorithmImage: output.algorithmImage != null ? deserializeAws_json1_1AlgorithmImage(output.algorithmImage, context) : undefined,
3903
+ creationDateTime: output.creationDateTime != null
3980
3904
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
3981
3905
  : undefined,
3982
- defaultHyperParameterRanges: output.defaultHyperParameterRanges !== undefined && output.defaultHyperParameterRanges !== null
3906
+ defaultHyperParameterRanges: output.defaultHyperParameterRanges != null
3983
3907
  ? deserializeAws_json1_1DefaultHyperParameterRanges(output.defaultHyperParameterRanges, context)
3984
3908
  : undefined,
3985
- defaultHyperParameters: output.defaultHyperParameters !== undefined && output.defaultHyperParameters !== null
3909
+ defaultHyperParameters: output.defaultHyperParameters != null
3986
3910
  ? deserializeAws_json1_1HyperParameters(output.defaultHyperParameters, context)
3987
3911
  : undefined,
3988
- defaultResourceConfig: output.defaultResourceConfig !== undefined && output.defaultResourceConfig !== null
3912
+ defaultResourceConfig: output.defaultResourceConfig != null
3989
3913
  ? deserializeAws_json1_1ResourceConfig(output.defaultResourceConfig, context)
3990
3914
  : undefined,
3991
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
3915
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
3992
3916
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
3993
3917
  : undefined,
3994
3918
  name: (0, smithy_client_1.expectString)(output.name),
@@ -4016,9 +3940,7 @@ const deserializeAws_json1_1ArnList = (output, context) => {
4016
3940
  const deserializeAws_json1_1AutoMLConfig = (output, context) => {
4017
3941
  return {
4018
3942
  metricName: (0, smithy_client_1.expectString)(output.metricName),
4019
- recipeList: output.recipeList !== undefined && output.recipeList !== null
4020
- ? deserializeAws_json1_1ArnList(output.recipeList, context)
4021
- : undefined,
3943
+ recipeList: output.recipeList != null ? deserializeAws_json1_1ArnList(output.recipeList, context) : undefined,
4022
3944
  };
4023
3945
  };
4024
3946
  const deserializeAws_json1_1AutoMLResult = (output, context) => {
@@ -4029,22 +3951,18 @@ const deserializeAws_json1_1AutoMLResult = (output, context) => {
4029
3951
  const deserializeAws_json1_1BatchInferenceJob = (output, context) => {
4030
3952
  return {
4031
3953
  batchInferenceJobArn: (0, smithy_client_1.expectString)(output.batchInferenceJobArn),
4032
- batchInferenceJobConfig: output.batchInferenceJobConfig !== undefined && output.batchInferenceJobConfig !== null
3954
+ batchInferenceJobConfig: output.batchInferenceJobConfig != null
4033
3955
  ? deserializeAws_json1_1BatchInferenceJobConfig(output.batchInferenceJobConfig, context)
4034
3956
  : undefined,
4035
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
3957
+ creationDateTime: output.creationDateTime != null
4036
3958
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4037
3959
  : undefined,
4038
3960
  failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4039
3961
  filterArn: (0, smithy_client_1.expectString)(output.filterArn),
4040
- jobInput: output.jobInput !== undefined && output.jobInput !== null
4041
- ? deserializeAws_json1_1BatchInferenceJobInput(output.jobInput, context)
4042
- : undefined,
3962
+ jobInput: output.jobInput != null ? deserializeAws_json1_1BatchInferenceJobInput(output.jobInput, context) : undefined,
4043
3963
  jobName: (0, smithy_client_1.expectString)(output.jobName),
4044
- jobOutput: output.jobOutput !== undefined && output.jobOutput !== null
4045
- ? deserializeAws_json1_1BatchInferenceJobOutput(output.jobOutput, context)
4046
- : undefined,
4047
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
3964
+ jobOutput: output.jobOutput != null ? deserializeAws_json1_1BatchInferenceJobOutput(output.jobOutput, context) : undefined,
3965
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4048
3966
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4049
3967
  : undefined,
4050
3968
  numResults: (0, smithy_client_1.expectInt32)(output.numResults),
@@ -4055,21 +3973,19 @@ const deserializeAws_json1_1BatchInferenceJob = (output, context) => {
4055
3973
  };
4056
3974
  const deserializeAws_json1_1BatchInferenceJobConfig = (output, context) => {
4057
3975
  return {
4058
- itemExplorationConfig: output.itemExplorationConfig !== undefined && output.itemExplorationConfig !== null
3976
+ itemExplorationConfig: output.itemExplorationConfig != null
4059
3977
  ? deserializeAws_json1_1HyperParameters(output.itemExplorationConfig, context)
4060
3978
  : undefined,
4061
3979
  };
4062
3980
  };
4063
3981
  const deserializeAws_json1_1BatchInferenceJobInput = (output, context) => {
4064
3982
  return {
4065
- s3DataSource: output.s3DataSource !== undefined && output.s3DataSource !== null
4066
- ? deserializeAws_json1_1S3DataConfig(output.s3DataSource, context)
4067
- : undefined,
3983
+ s3DataSource: output.s3DataSource != null ? deserializeAws_json1_1S3DataConfig(output.s3DataSource, context) : undefined,
4068
3984
  };
4069
3985
  };
4070
3986
  const deserializeAws_json1_1BatchInferenceJobOutput = (output, context) => {
4071
3987
  return {
4072
- s3DataDestination: output.s3DataDestination !== undefined && output.s3DataDestination !== null
3988
+ s3DataDestination: output.s3DataDestination != null
4073
3989
  ? deserializeAws_json1_1S3DataConfig(output.s3DataDestination, context)
4074
3990
  : undefined,
4075
3991
  };
@@ -4088,12 +4004,12 @@ const deserializeAws_json1_1BatchInferenceJobs = (output, context) => {
4088
4004
  const deserializeAws_json1_1BatchInferenceJobSummary = (output, context) => {
4089
4005
  return {
4090
4006
  batchInferenceJobArn: (0, smithy_client_1.expectString)(output.batchInferenceJobArn),
4091
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4007
+ creationDateTime: output.creationDateTime != null
4092
4008
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4093
4009
  : undefined,
4094
4010
  failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4095
4011
  jobName: (0, smithy_client_1.expectString)(output.jobName),
4096
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4012
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4097
4013
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4098
4014
  : undefined,
4099
4015
  solutionVersionArn: (0, smithy_client_1.expectString)(output.solutionVersionArn),
@@ -4103,19 +4019,15 @@ const deserializeAws_json1_1BatchInferenceJobSummary = (output, context) => {
4103
4019
  const deserializeAws_json1_1BatchSegmentJob = (output, context) => {
4104
4020
  return {
4105
4021
  batchSegmentJobArn: (0, smithy_client_1.expectString)(output.batchSegmentJobArn),
4106
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4022
+ creationDateTime: output.creationDateTime != null
4107
4023
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4108
4024
  : undefined,
4109
4025
  failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4110
4026
  filterArn: (0, smithy_client_1.expectString)(output.filterArn),
4111
- jobInput: output.jobInput !== undefined && output.jobInput !== null
4112
- ? deserializeAws_json1_1BatchSegmentJobInput(output.jobInput, context)
4113
- : undefined,
4027
+ jobInput: output.jobInput != null ? deserializeAws_json1_1BatchSegmentJobInput(output.jobInput, context) : undefined,
4114
4028
  jobName: (0, smithy_client_1.expectString)(output.jobName),
4115
- jobOutput: output.jobOutput !== undefined && output.jobOutput !== null
4116
- ? deserializeAws_json1_1BatchSegmentJobOutput(output.jobOutput, context)
4117
- : undefined,
4118
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4029
+ jobOutput: output.jobOutput != null ? deserializeAws_json1_1BatchSegmentJobOutput(output.jobOutput, context) : undefined,
4030
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4119
4031
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4120
4032
  : undefined,
4121
4033
  numResults: (0, smithy_client_1.expectInt32)(output.numResults),
@@ -4126,14 +4038,12 @@ const deserializeAws_json1_1BatchSegmentJob = (output, context) => {
4126
4038
  };
4127
4039
  const deserializeAws_json1_1BatchSegmentJobInput = (output, context) => {
4128
4040
  return {
4129
- s3DataSource: output.s3DataSource !== undefined && output.s3DataSource !== null
4130
- ? deserializeAws_json1_1S3DataConfig(output.s3DataSource, context)
4131
- : undefined,
4041
+ s3DataSource: output.s3DataSource != null ? deserializeAws_json1_1S3DataConfig(output.s3DataSource, context) : undefined,
4132
4042
  };
4133
4043
  };
4134
4044
  const deserializeAws_json1_1BatchSegmentJobOutput = (output, context) => {
4135
4045
  return {
4136
- s3DataDestination: output.s3DataDestination !== undefined && output.s3DataDestination !== null
4046
+ s3DataDestination: output.s3DataDestination != null
4137
4047
  ? deserializeAws_json1_1S3DataConfig(output.s3DataDestination, context)
4138
4048
  : undefined,
4139
4049
  };
@@ -4152,12 +4062,12 @@ const deserializeAws_json1_1BatchSegmentJobs = (output, context) => {
4152
4062
  const deserializeAws_json1_1BatchSegmentJobSummary = (output, context) => {
4153
4063
  return {
4154
4064
  batchSegmentJobArn: (0, smithy_client_1.expectString)(output.batchSegmentJobArn),
4155
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4065
+ creationDateTime: output.creationDateTime != null
4156
4066
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4157
4067
  : undefined,
4158
4068
  failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4159
4069
  jobName: (0, smithy_client_1.expectString)(output.jobName),
4160
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4070
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4161
4071
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4162
4072
  : undefined,
4163
4073
  solutionVersionArn: (0, smithy_client_1.expectString)(output.solutionVersionArn),
@@ -4167,17 +4077,15 @@ const deserializeAws_json1_1BatchSegmentJobSummary = (output, context) => {
4167
4077
  const deserializeAws_json1_1Campaign = (output, context) => {
4168
4078
  return {
4169
4079
  campaignArn: (0, smithy_client_1.expectString)(output.campaignArn),
4170
- campaignConfig: output.campaignConfig !== undefined && output.campaignConfig !== null
4171
- ? deserializeAws_json1_1CampaignConfig(output.campaignConfig, context)
4172
- : undefined,
4173
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4080
+ campaignConfig: output.campaignConfig != null ? deserializeAws_json1_1CampaignConfig(output.campaignConfig, context) : undefined,
4081
+ creationDateTime: output.creationDateTime != null
4174
4082
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4175
4083
  : undefined,
4176
4084
  failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4177
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4085
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4178
4086
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4179
4087
  : undefined,
4180
- latestCampaignUpdate: output.latestCampaignUpdate !== undefined && output.latestCampaignUpdate !== null
4088
+ latestCampaignUpdate: output.latestCampaignUpdate != null
4181
4089
  ? deserializeAws_json1_1CampaignUpdateSummary(output.latestCampaignUpdate, context)
4182
4090
  : undefined,
4183
4091
  minProvisionedTPS: (0, smithy_client_1.expectInt32)(output.minProvisionedTPS),
@@ -4188,7 +4096,7 @@ const deserializeAws_json1_1Campaign = (output, context) => {
4188
4096
  };
4189
4097
  const deserializeAws_json1_1CampaignConfig = (output, context) => {
4190
4098
  return {
4191
- itemExplorationConfig: output.itemExplorationConfig !== undefined && output.itemExplorationConfig !== null
4099
+ itemExplorationConfig: output.itemExplorationConfig != null
4192
4100
  ? deserializeAws_json1_1HyperParameters(output.itemExplorationConfig, context)
4193
4101
  : undefined,
4194
4102
  };
@@ -4207,11 +4115,11 @@ const deserializeAws_json1_1Campaigns = (output, context) => {
4207
4115
  const deserializeAws_json1_1CampaignSummary = (output, context) => {
4208
4116
  return {
4209
4117
  campaignArn: (0, smithy_client_1.expectString)(output.campaignArn),
4210
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4118
+ creationDateTime: output.creationDateTime != null
4211
4119
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4212
4120
  : undefined,
4213
4121
  failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4214
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4122
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4215
4123
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4216
4124
  : undefined,
4217
4125
  name: (0, smithy_client_1.expectString)(output.name),
@@ -4220,14 +4128,12 @@ const deserializeAws_json1_1CampaignSummary = (output, context) => {
4220
4128
  };
4221
4129
  const deserializeAws_json1_1CampaignUpdateSummary = (output, context) => {
4222
4130
  return {
4223
- campaignConfig: output.campaignConfig !== undefined && output.campaignConfig !== null
4224
- ? deserializeAws_json1_1CampaignConfig(output.campaignConfig, context)
4225
- : undefined,
4226
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4131
+ campaignConfig: output.campaignConfig != null ? deserializeAws_json1_1CampaignConfig(output.campaignConfig, context) : undefined,
4132
+ creationDateTime: output.creationDateTime != null
4227
4133
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4228
4134
  : undefined,
4229
4135
  failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4230
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4136
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4231
4137
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4232
4138
  : undefined,
4233
4139
  minProvisionedTPS: (0, smithy_client_1.expectInt32)(output.minProvisionedTPS),
@@ -4238,9 +4144,7 @@ const deserializeAws_json1_1CampaignUpdateSummary = (output, context) => {
4238
4144
  const deserializeAws_json1_1CategoricalHyperParameterRange = (output, context) => {
4239
4145
  return {
4240
4146
  name: (0, smithy_client_1.expectString)(output.name),
4241
- values: output.values !== undefined && output.values !== null
4242
- ? deserializeAws_json1_1CategoricalValues(output.values, context)
4243
- : undefined,
4147
+ values: output.values != null ? deserializeAws_json1_1CategoricalValues(output.values, context) : undefined,
4244
4148
  };
4245
4149
  };
4246
4150
  const deserializeAws_json1_1CategoricalHyperParameterRanges = (output, context) => {
@@ -4352,13 +4256,13 @@ const deserializeAws_json1_1CreateSolutionVersionResponse = (output, context) =>
4352
4256
  };
4353
4257
  const deserializeAws_json1_1Dataset = (output, context) => {
4354
4258
  return {
4355
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4259
+ creationDateTime: output.creationDateTime != null
4356
4260
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4357
4261
  : undefined,
4358
4262
  datasetArn: (0, smithy_client_1.expectString)(output.datasetArn),
4359
4263
  datasetGroupArn: (0, smithy_client_1.expectString)(output.datasetGroupArn),
4360
4264
  datasetType: (0, smithy_client_1.expectString)(output.datasetType),
4361
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4265
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4362
4266
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4363
4267
  : undefined,
4364
4268
  name: (0, smithy_client_1.expectString)(output.name),
@@ -4368,7 +4272,7 @@ const deserializeAws_json1_1Dataset = (output, context) => {
4368
4272
  };
4369
4273
  const deserializeAws_json1_1DatasetExportJob = (output, context) => {
4370
4274
  return {
4371
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4275
+ creationDateTime: output.creationDateTime != null
4372
4276
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4373
4277
  : undefined,
4374
4278
  datasetArn: (0, smithy_client_1.expectString)(output.datasetArn),
@@ -4376,10 +4280,8 @@ const deserializeAws_json1_1DatasetExportJob = (output, context) => {
4376
4280
  failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4377
4281
  ingestionMode: (0, smithy_client_1.expectString)(output.ingestionMode),
4378
4282
  jobName: (0, smithy_client_1.expectString)(output.jobName),
4379
- jobOutput: output.jobOutput !== undefined && output.jobOutput !== null
4380
- ? deserializeAws_json1_1DatasetExportJobOutput(output.jobOutput, context)
4381
- : undefined,
4382
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4283
+ jobOutput: output.jobOutput != null ? deserializeAws_json1_1DatasetExportJobOutput(output.jobOutput, context) : undefined,
4284
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4383
4285
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4384
4286
  : undefined,
4385
4287
  roleArn: (0, smithy_client_1.expectString)(output.roleArn),
@@ -4388,7 +4290,7 @@ const deserializeAws_json1_1DatasetExportJob = (output, context) => {
4388
4290
  };
4389
4291
  const deserializeAws_json1_1DatasetExportJobOutput = (output, context) => {
4390
4292
  return {
4391
- s3DataDestination: output.s3DataDestination !== undefined && output.s3DataDestination !== null
4293
+ s3DataDestination: output.s3DataDestination != null
4392
4294
  ? deserializeAws_json1_1S3DataConfig(output.s3DataDestination, context)
4393
4295
  : undefined,
4394
4296
  };
@@ -4406,13 +4308,13 @@ const deserializeAws_json1_1DatasetExportJobs = (output, context) => {
4406
4308
  };
4407
4309
  const deserializeAws_json1_1DatasetExportJobSummary = (output, context) => {
4408
4310
  return {
4409
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4311
+ creationDateTime: output.creationDateTime != null
4410
4312
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4411
4313
  : undefined,
4412
4314
  datasetExportJobArn: (0, smithy_client_1.expectString)(output.datasetExportJobArn),
4413
4315
  failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4414
4316
  jobName: (0, smithy_client_1.expectString)(output.jobName),
4415
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4317
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4416
4318
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4417
4319
  : undefined,
4418
4320
  status: (0, smithy_client_1.expectString)(output.status),
@@ -4420,14 +4322,14 @@ const deserializeAws_json1_1DatasetExportJobSummary = (output, context) => {
4420
4322
  };
4421
4323
  const deserializeAws_json1_1DatasetGroup = (output, context) => {
4422
4324
  return {
4423
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4325
+ creationDateTime: output.creationDateTime != null
4424
4326
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4425
4327
  : undefined,
4426
4328
  datasetGroupArn: (0, smithy_client_1.expectString)(output.datasetGroupArn),
4427
4329
  domain: (0, smithy_client_1.expectString)(output.domain),
4428
4330
  failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4429
4331
  kmsKeyArn: (0, smithy_client_1.expectString)(output.kmsKeyArn),
4430
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4332
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4431
4333
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4432
4334
  : undefined,
4433
4335
  name: (0, smithy_client_1.expectString)(output.name),
@@ -4448,13 +4350,13 @@ const deserializeAws_json1_1DatasetGroups = (output, context) => {
4448
4350
  };
4449
4351
  const deserializeAws_json1_1DatasetGroupSummary = (output, context) => {
4450
4352
  return {
4451
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4353
+ creationDateTime: output.creationDateTime != null
4452
4354
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4453
4355
  : undefined,
4454
4356
  datasetGroupArn: (0, smithy_client_1.expectString)(output.datasetGroupArn),
4455
4357
  domain: (0, smithy_client_1.expectString)(output.domain),
4456
4358
  failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4457
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4359
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4458
4360
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4459
4361
  : undefined,
4460
4362
  name: (0, smithy_client_1.expectString)(output.name),
@@ -4463,17 +4365,15 @@ const deserializeAws_json1_1DatasetGroupSummary = (output, context) => {
4463
4365
  };
4464
4366
  const deserializeAws_json1_1DatasetImportJob = (output, context) => {
4465
4367
  return {
4466
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4368
+ creationDateTime: output.creationDateTime != null
4467
4369
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4468
4370
  : undefined,
4469
- dataSource: output.dataSource !== undefined && output.dataSource !== null
4470
- ? deserializeAws_json1_1DataSource(output.dataSource, context)
4471
- : undefined,
4371
+ dataSource: output.dataSource != null ? deserializeAws_json1_1DataSource(output.dataSource, context) : undefined,
4472
4372
  datasetArn: (0, smithy_client_1.expectString)(output.datasetArn),
4473
4373
  datasetImportJobArn: (0, smithy_client_1.expectString)(output.datasetImportJobArn),
4474
4374
  failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4475
4375
  jobName: (0, smithy_client_1.expectString)(output.jobName),
4476
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4376
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4477
4377
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4478
4378
  : undefined,
4479
4379
  roleArn: (0, smithy_client_1.expectString)(output.roleArn),
@@ -4493,13 +4393,13 @@ const deserializeAws_json1_1DatasetImportJobs = (output, context) => {
4493
4393
  };
4494
4394
  const deserializeAws_json1_1DatasetImportJobSummary = (output, context) => {
4495
4395
  return {
4496
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4396
+ creationDateTime: output.creationDateTime != null
4497
4397
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4498
4398
  : undefined,
4499
4399
  datasetImportJobArn: (0, smithy_client_1.expectString)(output.datasetImportJobArn),
4500
4400
  failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4501
4401
  jobName: (0, smithy_client_1.expectString)(output.jobName),
4502
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4402
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4503
4403
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4504
4404
  : undefined,
4505
4405
  status: (0, smithy_client_1.expectString)(output.status),
@@ -4518,11 +4418,11 @@ const deserializeAws_json1_1Datasets = (output, context) => {
4518
4418
  };
4519
4419
  const deserializeAws_json1_1DatasetSchema = (output, context) => {
4520
4420
  return {
4521
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4421
+ creationDateTime: output.creationDateTime != null
4522
4422
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4523
4423
  : undefined,
4524
4424
  domain: (0, smithy_client_1.expectString)(output.domain),
4525
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4425
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4526
4426
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4527
4427
  : undefined,
4528
4428
  name: (0, smithy_client_1.expectString)(output.name),
@@ -4532,11 +4432,11 @@ const deserializeAws_json1_1DatasetSchema = (output, context) => {
4532
4432
  };
4533
4433
  const deserializeAws_json1_1DatasetSchemaSummary = (output, context) => {
4534
4434
  return {
4535
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4435
+ creationDateTime: output.creationDateTime != null
4536
4436
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4537
4437
  : undefined,
4538
4438
  domain: (0, smithy_client_1.expectString)(output.domain),
4539
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4439
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4540
4440
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4541
4441
  : undefined,
4542
4442
  name: (0, smithy_client_1.expectString)(output.name),
@@ -4545,12 +4445,12 @@ const deserializeAws_json1_1DatasetSchemaSummary = (output, context) => {
4545
4445
  };
4546
4446
  const deserializeAws_json1_1DatasetSummary = (output, context) => {
4547
4447
  return {
4548
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4448
+ creationDateTime: output.creationDateTime != null
4549
4449
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4550
4450
  : undefined,
4551
4451
  datasetArn: (0, smithy_client_1.expectString)(output.datasetArn),
4552
4452
  datasetType: (0, smithy_client_1.expectString)(output.datasetType),
4553
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4453
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4554
4454
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4555
4455
  : undefined,
4556
4456
  name: (0, smithy_client_1.expectString)(output.name),
@@ -4566,9 +4466,7 @@ const deserializeAws_json1_1DefaultCategoricalHyperParameterRange = (output, con
4566
4466
  return {
4567
4467
  isTunable: (0, smithy_client_1.expectBoolean)(output.isTunable),
4568
4468
  name: (0, smithy_client_1.expectString)(output.name),
4569
- values: output.values !== undefined && output.values !== null
4570
- ? deserializeAws_json1_1CategoricalValues(output.values, context)
4571
- : undefined,
4469
+ values: output.values != null ? deserializeAws_json1_1CategoricalValues(output.values, context) : undefined,
4572
4470
  };
4573
4471
  };
4574
4472
  const deserializeAws_json1_1DefaultCategoricalHyperParameterRanges = (output, context) => {
@@ -4603,13 +4501,13 @@ const deserializeAws_json1_1DefaultContinuousHyperParameterRanges = (output, con
4603
4501
  };
4604
4502
  const deserializeAws_json1_1DefaultHyperParameterRanges = (output, context) => {
4605
4503
  return {
4606
- categoricalHyperParameterRanges: output.categoricalHyperParameterRanges !== undefined && output.categoricalHyperParameterRanges !== null
4504
+ categoricalHyperParameterRanges: output.categoricalHyperParameterRanges != null
4607
4505
  ? deserializeAws_json1_1DefaultCategoricalHyperParameterRanges(output.categoricalHyperParameterRanges, context)
4608
4506
  : undefined,
4609
- continuousHyperParameterRanges: output.continuousHyperParameterRanges !== undefined && output.continuousHyperParameterRanges !== null
4507
+ continuousHyperParameterRanges: output.continuousHyperParameterRanges != null
4610
4508
  ? deserializeAws_json1_1DefaultContinuousHyperParameterRanges(output.continuousHyperParameterRanges, context)
4611
4509
  : undefined,
4612
- integerHyperParameterRanges: output.integerHyperParameterRanges !== undefined && output.integerHyperParameterRanges !== null
4510
+ integerHyperParameterRanges: output.integerHyperParameterRanges != null
4613
4511
  ? deserializeAws_json1_1DefaultIntegerHyperParameterRanges(output.integerHyperParameterRanges, context)
4614
4512
  : undefined,
4615
4513
  };
@@ -4635,112 +4533,92 @@ const deserializeAws_json1_1DefaultIntegerHyperParameterRanges = (output, contex
4635
4533
  };
4636
4534
  const deserializeAws_json1_1DescribeAlgorithmResponse = (output, context) => {
4637
4535
  return {
4638
- algorithm: output.algorithm !== undefined && output.algorithm !== null
4639
- ? deserializeAws_json1_1Algorithm(output.algorithm, context)
4640
- : undefined,
4536
+ algorithm: output.algorithm != null ? deserializeAws_json1_1Algorithm(output.algorithm, context) : undefined,
4641
4537
  };
4642
4538
  };
4643
4539
  const deserializeAws_json1_1DescribeBatchInferenceJobResponse = (output, context) => {
4644
4540
  return {
4645
- batchInferenceJob: output.batchInferenceJob !== undefined && output.batchInferenceJob !== null
4541
+ batchInferenceJob: output.batchInferenceJob != null
4646
4542
  ? deserializeAws_json1_1BatchInferenceJob(output.batchInferenceJob, context)
4647
4543
  : undefined,
4648
4544
  };
4649
4545
  };
4650
4546
  const deserializeAws_json1_1DescribeBatchSegmentJobResponse = (output, context) => {
4651
4547
  return {
4652
- batchSegmentJob: output.batchSegmentJob !== undefined && output.batchSegmentJob !== null
4548
+ batchSegmentJob: output.batchSegmentJob != null
4653
4549
  ? deserializeAws_json1_1BatchSegmentJob(output.batchSegmentJob, context)
4654
4550
  : undefined,
4655
4551
  };
4656
4552
  };
4657
4553
  const deserializeAws_json1_1DescribeCampaignResponse = (output, context) => {
4658
4554
  return {
4659
- campaign: output.campaign !== undefined && output.campaign !== null
4660
- ? deserializeAws_json1_1Campaign(output.campaign, context)
4661
- : undefined,
4555
+ campaign: output.campaign != null ? deserializeAws_json1_1Campaign(output.campaign, context) : undefined,
4662
4556
  };
4663
4557
  };
4664
4558
  const deserializeAws_json1_1DescribeDatasetExportJobResponse = (output, context) => {
4665
4559
  return {
4666
- datasetExportJob: output.datasetExportJob !== undefined && output.datasetExportJob !== null
4560
+ datasetExportJob: output.datasetExportJob != null
4667
4561
  ? deserializeAws_json1_1DatasetExportJob(output.datasetExportJob, context)
4668
4562
  : undefined,
4669
4563
  };
4670
4564
  };
4671
4565
  const deserializeAws_json1_1DescribeDatasetGroupResponse = (output, context) => {
4672
4566
  return {
4673
- datasetGroup: output.datasetGroup !== undefined && output.datasetGroup !== null
4674
- ? deserializeAws_json1_1DatasetGroup(output.datasetGroup, context)
4675
- : undefined,
4567
+ datasetGroup: output.datasetGroup != null ? deserializeAws_json1_1DatasetGroup(output.datasetGroup, context) : undefined,
4676
4568
  };
4677
4569
  };
4678
4570
  const deserializeAws_json1_1DescribeDatasetImportJobResponse = (output, context) => {
4679
4571
  return {
4680
- datasetImportJob: output.datasetImportJob !== undefined && output.datasetImportJob !== null
4572
+ datasetImportJob: output.datasetImportJob != null
4681
4573
  ? deserializeAws_json1_1DatasetImportJob(output.datasetImportJob, context)
4682
4574
  : undefined,
4683
4575
  };
4684
4576
  };
4685
4577
  const deserializeAws_json1_1DescribeDatasetResponse = (output, context) => {
4686
4578
  return {
4687
- dataset: output.dataset !== undefined && output.dataset !== null
4688
- ? deserializeAws_json1_1Dataset(output.dataset, context)
4689
- : undefined,
4579
+ dataset: output.dataset != null ? deserializeAws_json1_1Dataset(output.dataset, context) : undefined,
4690
4580
  };
4691
4581
  };
4692
4582
  const deserializeAws_json1_1DescribeEventTrackerResponse = (output, context) => {
4693
4583
  return {
4694
- eventTracker: output.eventTracker !== undefined && output.eventTracker !== null
4695
- ? deserializeAws_json1_1EventTracker(output.eventTracker, context)
4696
- : undefined,
4584
+ eventTracker: output.eventTracker != null ? deserializeAws_json1_1EventTracker(output.eventTracker, context) : undefined,
4697
4585
  };
4698
4586
  };
4699
4587
  const deserializeAws_json1_1DescribeFeatureTransformationResponse = (output, context) => {
4700
4588
  return {
4701
- featureTransformation: output.featureTransformation !== undefined && output.featureTransformation !== null
4589
+ featureTransformation: output.featureTransformation != null
4702
4590
  ? deserializeAws_json1_1FeatureTransformation(output.featureTransformation, context)
4703
4591
  : undefined,
4704
4592
  };
4705
4593
  };
4706
4594
  const deserializeAws_json1_1DescribeFilterResponse = (output, context) => {
4707
4595
  return {
4708
- filter: output.filter !== undefined && output.filter !== null
4709
- ? deserializeAws_json1_1Filter(output.filter, context)
4710
- : undefined,
4596
+ filter: output.filter != null ? deserializeAws_json1_1Filter(output.filter, context) : undefined,
4711
4597
  };
4712
4598
  };
4713
4599
  const deserializeAws_json1_1DescribeRecipeResponse = (output, context) => {
4714
4600
  return {
4715
- recipe: output.recipe !== undefined && output.recipe !== null
4716
- ? deserializeAws_json1_1Recipe(output.recipe, context)
4717
- : undefined,
4601
+ recipe: output.recipe != null ? deserializeAws_json1_1Recipe(output.recipe, context) : undefined,
4718
4602
  };
4719
4603
  };
4720
4604
  const deserializeAws_json1_1DescribeRecommenderResponse = (output, context) => {
4721
4605
  return {
4722
- recommender: output.recommender !== undefined && output.recommender !== null
4723
- ? deserializeAws_json1_1Recommender(output.recommender, context)
4724
- : undefined,
4606
+ recommender: output.recommender != null ? deserializeAws_json1_1Recommender(output.recommender, context) : undefined,
4725
4607
  };
4726
4608
  };
4727
4609
  const deserializeAws_json1_1DescribeSchemaResponse = (output, context) => {
4728
4610
  return {
4729
- schema: output.schema !== undefined && output.schema !== null
4730
- ? deserializeAws_json1_1DatasetSchema(output.schema, context)
4731
- : undefined,
4611
+ schema: output.schema != null ? deserializeAws_json1_1DatasetSchema(output.schema, context) : undefined,
4732
4612
  };
4733
4613
  };
4734
4614
  const deserializeAws_json1_1DescribeSolutionResponse = (output, context) => {
4735
4615
  return {
4736
- solution: output.solution !== undefined && output.solution !== null
4737
- ? deserializeAws_json1_1Solution(output.solution, context)
4738
- : undefined,
4616
+ solution: output.solution != null ? deserializeAws_json1_1Solution(output.solution, context) : undefined,
4739
4617
  };
4740
4618
  };
4741
4619
  const deserializeAws_json1_1DescribeSolutionVersionResponse = (output, context) => {
4742
4620
  return {
4743
- solutionVersion: output.solutionVersion !== undefined && output.solutionVersion !== null
4621
+ solutionVersion: output.solutionVersion != null
4744
4622
  ? deserializeAws_json1_1SolutionVersion(output.solutionVersion, context)
4745
4623
  : undefined,
4746
4624
  };
@@ -4748,12 +4626,12 @@ const deserializeAws_json1_1DescribeSolutionVersionResponse = (output, context)
4748
4626
  const deserializeAws_json1_1EventTracker = (output, context) => {
4749
4627
  return {
4750
4628
  accountId: (0, smithy_client_1.expectString)(output.accountId),
4751
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4629
+ creationDateTime: output.creationDateTime != null
4752
4630
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4753
4631
  : undefined,
4754
4632
  datasetGroupArn: (0, smithy_client_1.expectString)(output.datasetGroupArn),
4755
4633
  eventTrackerArn: (0, smithy_client_1.expectString)(output.eventTrackerArn),
4756
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4634
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4757
4635
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4758
4636
  : undefined,
4759
4637
  name: (0, smithy_client_1.expectString)(output.name),
@@ -4774,11 +4652,11 @@ const deserializeAws_json1_1EventTrackers = (output, context) => {
4774
4652
  };
4775
4653
  const deserializeAws_json1_1EventTrackerSummary = (output, context) => {
4776
4654
  return {
4777
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4655
+ creationDateTime: output.creationDateTime != null
4778
4656
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4779
4657
  : undefined,
4780
4658
  eventTrackerArn: (0, smithy_client_1.expectString)(output.eventTrackerArn),
4781
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4659
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4782
4660
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4783
4661
  : undefined,
4784
4662
  name: (0, smithy_client_1.expectString)(output.name),
@@ -4787,14 +4665,14 @@ const deserializeAws_json1_1EventTrackerSummary = (output, context) => {
4787
4665
  };
4788
4666
  const deserializeAws_json1_1FeatureTransformation = (output, context) => {
4789
4667
  return {
4790
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4668
+ creationDateTime: output.creationDateTime != null
4791
4669
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4792
4670
  : undefined,
4793
- defaultParameters: output.defaultParameters !== undefined && output.defaultParameters !== null
4671
+ defaultParameters: output.defaultParameters != null
4794
4672
  ? deserializeAws_json1_1FeaturizationParameters(output.defaultParameters, context)
4795
4673
  : undefined,
4796
4674
  featureTransformationArn: (0, smithy_client_1.expectString)(output.featureTransformationArn),
4797
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4675
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4798
4676
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4799
4677
  : undefined,
4800
4678
  name: (0, smithy_client_1.expectString)(output.name),
@@ -4825,14 +4703,14 @@ const deserializeAws_json1_1FeaturizationParameters = (output, context) => {
4825
4703
  };
4826
4704
  const deserializeAws_json1_1Filter = (output, context) => {
4827
4705
  return {
4828
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4706
+ creationDateTime: output.creationDateTime != null
4829
4707
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4830
4708
  : undefined,
4831
4709
  datasetGroupArn: (0, smithy_client_1.expectString)(output.datasetGroupArn),
4832
4710
  failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4833
4711
  filterArn: (0, smithy_client_1.expectString)(output.filterArn),
4834
4712
  filterExpression: (0, smithy_client_1.expectString)(output.filterExpression),
4835
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4713
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4836
4714
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4837
4715
  : undefined,
4838
4716
  name: (0, smithy_client_1.expectString)(output.name),
@@ -4852,13 +4730,13 @@ const deserializeAws_json1_1Filters = (output, context) => {
4852
4730
  };
4853
4731
  const deserializeAws_json1_1FilterSummary = (output, context) => {
4854
4732
  return {
4855
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4733
+ creationDateTime: output.creationDateTime != null
4856
4734
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4857
4735
  : undefined,
4858
4736
  datasetGroupArn: (0, smithy_client_1.expectString)(output.datasetGroupArn),
4859
4737
  failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4860
4738
  filterArn: (0, smithy_client_1.expectString)(output.filterArn),
4861
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4739
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4862
4740
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4863
4741
  : undefined,
4864
4742
  name: (0, smithy_client_1.expectString)(output.name),
@@ -4867,21 +4745,17 @@ const deserializeAws_json1_1FilterSummary = (output, context) => {
4867
4745
  };
4868
4746
  const deserializeAws_json1_1GetSolutionMetricsResponse = (output, context) => {
4869
4747
  return {
4870
- metrics: output.metrics !== undefined && output.metrics !== null
4871
- ? deserializeAws_json1_1Metrics(output.metrics, context)
4872
- : undefined,
4748
+ metrics: output.metrics != null ? deserializeAws_json1_1Metrics(output.metrics, context) : undefined,
4873
4749
  solutionVersionArn: (0, smithy_client_1.expectString)(output.solutionVersionArn),
4874
4750
  };
4875
4751
  };
4876
4752
  const deserializeAws_json1_1HPOConfig = (output, context) => {
4877
4753
  return {
4878
- algorithmHyperParameterRanges: output.algorithmHyperParameterRanges !== undefined && output.algorithmHyperParameterRanges !== null
4754
+ algorithmHyperParameterRanges: output.algorithmHyperParameterRanges != null
4879
4755
  ? deserializeAws_json1_1HyperParameterRanges(output.algorithmHyperParameterRanges, context)
4880
4756
  : undefined,
4881
- hpoObjective: output.hpoObjective !== undefined && output.hpoObjective !== null
4882
- ? deserializeAws_json1_1HPOObjective(output.hpoObjective, context)
4883
- : undefined,
4884
- hpoResourceConfig: output.hpoResourceConfig !== undefined && output.hpoResourceConfig !== null
4757
+ hpoObjective: output.hpoObjective != null ? deserializeAws_json1_1HPOObjective(output.hpoObjective, context) : undefined,
4758
+ hpoResourceConfig: output.hpoResourceConfig != null
4885
4759
  ? deserializeAws_json1_1HPOResourceConfig(output.hpoResourceConfig, context)
4886
4760
  : undefined,
4887
4761
  };
@@ -4901,13 +4775,13 @@ const deserializeAws_json1_1HPOResourceConfig = (output, context) => {
4901
4775
  };
4902
4776
  const deserializeAws_json1_1HyperParameterRanges = (output, context) => {
4903
4777
  return {
4904
- categoricalHyperParameterRanges: output.categoricalHyperParameterRanges !== undefined && output.categoricalHyperParameterRanges !== null
4778
+ categoricalHyperParameterRanges: output.categoricalHyperParameterRanges != null
4905
4779
  ? deserializeAws_json1_1CategoricalHyperParameterRanges(output.categoricalHyperParameterRanges, context)
4906
4780
  : undefined,
4907
- continuousHyperParameterRanges: output.continuousHyperParameterRanges !== undefined && output.continuousHyperParameterRanges !== null
4781
+ continuousHyperParameterRanges: output.continuousHyperParameterRanges != null
4908
4782
  ? deserializeAws_json1_1ContinuousHyperParameterRanges(output.continuousHyperParameterRanges, context)
4909
4783
  : undefined,
4910
- integerHyperParameterRanges: output.integerHyperParameterRanges !== undefined && output.integerHyperParameterRanges !== null
4784
+ integerHyperParameterRanges: output.integerHyperParameterRanges != null
4911
4785
  ? deserializeAws_json1_1IntegerHyperParameterRanges(output.integerHyperParameterRanges, context)
4912
4786
  : undefined,
4913
4787
  };
@@ -4958,7 +4832,7 @@ const deserializeAws_json1_1LimitExceededException = (output, context) => {
4958
4832
  };
4959
4833
  const deserializeAws_json1_1ListBatchInferenceJobsResponse = (output, context) => {
4960
4834
  return {
4961
- batchInferenceJobs: output.batchInferenceJobs !== undefined && output.batchInferenceJobs !== null
4835
+ batchInferenceJobs: output.batchInferenceJobs != null
4962
4836
  ? deserializeAws_json1_1BatchInferenceJobs(output.batchInferenceJobs, context)
4963
4837
  : undefined,
4964
4838
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
@@ -4966,7 +4840,7 @@ const deserializeAws_json1_1ListBatchInferenceJobsResponse = (output, context) =
4966
4840
  };
4967
4841
  const deserializeAws_json1_1ListBatchSegmentJobsResponse = (output, context) => {
4968
4842
  return {
4969
- batchSegmentJobs: output.batchSegmentJobs !== undefined && output.batchSegmentJobs !== null
4843
+ batchSegmentJobs: output.batchSegmentJobs != null
4970
4844
  ? deserializeAws_json1_1BatchSegmentJobs(output.batchSegmentJobs, context)
4971
4845
  : undefined,
4972
4846
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
@@ -4974,15 +4848,13 @@ const deserializeAws_json1_1ListBatchSegmentJobsResponse = (output, context) =>
4974
4848
  };
4975
4849
  const deserializeAws_json1_1ListCampaignsResponse = (output, context) => {
4976
4850
  return {
4977
- campaigns: output.campaigns !== undefined && output.campaigns !== null
4978
- ? deserializeAws_json1_1Campaigns(output.campaigns, context)
4979
- : undefined,
4851
+ campaigns: output.campaigns != null ? deserializeAws_json1_1Campaigns(output.campaigns, context) : undefined,
4980
4852
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4981
4853
  };
4982
4854
  };
4983
4855
  const deserializeAws_json1_1ListDatasetExportJobsResponse = (output, context) => {
4984
4856
  return {
4985
- datasetExportJobs: output.datasetExportJobs !== undefined && output.datasetExportJobs !== null
4857
+ datasetExportJobs: output.datasetExportJobs != null
4986
4858
  ? deserializeAws_json1_1DatasetExportJobs(output.datasetExportJobs, context)
4987
4859
  : undefined,
4988
4860
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
@@ -4990,15 +4862,13 @@ const deserializeAws_json1_1ListDatasetExportJobsResponse = (output, context) =>
4990
4862
  };
4991
4863
  const deserializeAws_json1_1ListDatasetGroupsResponse = (output, context) => {
4992
4864
  return {
4993
- datasetGroups: output.datasetGroups !== undefined && output.datasetGroups !== null
4994
- ? deserializeAws_json1_1DatasetGroups(output.datasetGroups, context)
4995
- : undefined,
4865
+ datasetGroups: output.datasetGroups != null ? deserializeAws_json1_1DatasetGroups(output.datasetGroups, context) : undefined,
4996
4866
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4997
4867
  };
4998
4868
  };
4999
4869
  const deserializeAws_json1_1ListDatasetImportJobsResponse = (output, context) => {
5000
4870
  return {
5001
- datasetImportJobs: output.datasetImportJobs !== undefined && output.datasetImportJobs !== null
4871
+ datasetImportJobs: output.datasetImportJobs != null
5002
4872
  ? deserializeAws_json1_1DatasetImportJobs(output.datasetImportJobs, context)
5003
4873
  : undefined,
5004
4874
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
@@ -5006,71 +4876,57 @@ const deserializeAws_json1_1ListDatasetImportJobsResponse = (output, context) =>
5006
4876
  };
5007
4877
  const deserializeAws_json1_1ListDatasetsResponse = (output, context) => {
5008
4878
  return {
5009
- datasets: output.datasets !== undefined && output.datasets !== null
5010
- ? deserializeAws_json1_1Datasets(output.datasets, context)
5011
- : undefined,
4879
+ datasets: output.datasets != null ? deserializeAws_json1_1Datasets(output.datasets, context) : undefined,
5012
4880
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5013
4881
  };
5014
4882
  };
5015
4883
  const deserializeAws_json1_1ListEventTrackersResponse = (output, context) => {
5016
4884
  return {
5017
- eventTrackers: output.eventTrackers !== undefined && output.eventTrackers !== null
5018
- ? deserializeAws_json1_1EventTrackers(output.eventTrackers, context)
5019
- : undefined,
4885
+ eventTrackers: output.eventTrackers != null ? deserializeAws_json1_1EventTrackers(output.eventTrackers, context) : undefined,
5020
4886
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5021
4887
  };
5022
4888
  };
5023
4889
  const deserializeAws_json1_1ListFiltersResponse = (output, context) => {
5024
4890
  return {
5025
- Filters: output.Filters !== undefined && output.Filters !== null
5026
- ? deserializeAws_json1_1Filters(output.Filters, context)
5027
- : undefined,
4891
+ Filters: output.Filters != null ? deserializeAws_json1_1Filters(output.Filters, context) : undefined,
5028
4892
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5029
4893
  };
5030
4894
  };
5031
4895
  const deserializeAws_json1_1ListRecipesResponse = (output, context) => {
5032
4896
  return {
5033
4897
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5034
- recipes: output.recipes !== undefined && output.recipes !== null
5035
- ? deserializeAws_json1_1Recipes(output.recipes, context)
5036
- : undefined,
4898
+ recipes: output.recipes != null ? deserializeAws_json1_1Recipes(output.recipes, context) : undefined,
5037
4899
  };
5038
4900
  };
5039
4901
  const deserializeAws_json1_1ListRecommendersResponse = (output, context) => {
5040
4902
  return {
5041
4903
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5042
- recommenders: output.recommenders !== undefined && output.recommenders !== null
5043
- ? deserializeAws_json1_1Recommenders(output.recommenders, context)
5044
- : undefined,
4904
+ recommenders: output.recommenders != null ? deserializeAws_json1_1Recommenders(output.recommenders, context) : undefined,
5045
4905
  };
5046
4906
  };
5047
4907
  const deserializeAws_json1_1ListSchemasResponse = (output, context) => {
5048
4908
  return {
5049
4909
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5050
- schemas: output.schemas !== undefined && output.schemas !== null
5051
- ? deserializeAws_json1_1Schemas(output.schemas, context)
5052
- : undefined,
4910
+ schemas: output.schemas != null ? deserializeAws_json1_1Schemas(output.schemas, context) : undefined,
5053
4911
  };
5054
4912
  };
5055
4913
  const deserializeAws_json1_1ListSolutionsResponse = (output, context) => {
5056
4914
  return {
5057
4915
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5058
- solutions: output.solutions !== undefined && output.solutions !== null
5059
- ? deserializeAws_json1_1Solutions(output.solutions, context)
5060
- : undefined,
4916
+ solutions: output.solutions != null ? deserializeAws_json1_1Solutions(output.solutions, context) : undefined,
5061
4917
  };
5062
4918
  };
5063
4919
  const deserializeAws_json1_1ListSolutionVersionsResponse = (output, context) => {
5064
4920
  return {
5065
4921
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5066
- solutionVersions: output.solutionVersions !== undefined && output.solutionVersions !== null
4922
+ solutionVersions: output.solutionVersions != null
5067
4923
  ? deserializeAws_json1_1SolutionVersions(output.solutionVersions, context)
5068
4924
  : undefined,
5069
4925
  };
5070
4926
  };
5071
4927
  const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
5072
4928
  return {
5073
- tags: output.tags !== undefined && output.tags !== null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
4929
+ tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
5074
4930
  };
5075
4931
  };
5076
4932
  const deserializeAws_json1_1Metrics = (output, context) => {
@@ -5093,12 +4949,12 @@ const deserializeAws_json1_1OptimizationObjective = (output, context) => {
5093
4949
  const deserializeAws_json1_1Recipe = (output, context) => {
5094
4950
  return {
5095
4951
  algorithmArn: (0, smithy_client_1.expectString)(output.algorithmArn),
5096
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4952
+ creationDateTime: output.creationDateTime != null
5097
4953
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
5098
4954
  : undefined,
5099
4955
  description: (0, smithy_client_1.expectString)(output.description),
5100
4956
  featureTransformationArn: (0, smithy_client_1.expectString)(output.featureTransformationArn),
5101
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4957
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
5102
4958
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
5103
4959
  : undefined,
5104
4960
  name: (0, smithy_client_1.expectString)(output.name),
@@ -5120,11 +4976,11 @@ const deserializeAws_json1_1Recipes = (output, context) => {
5120
4976
  };
5121
4977
  const deserializeAws_json1_1RecipeSummary = (output, context) => {
5122
4978
  return {
5123
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4979
+ creationDateTime: output.creationDateTime != null
5124
4980
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
5125
4981
  : undefined,
5126
4982
  domain: (0, smithy_client_1.expectString)(output.domain),
5127
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4983
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
5128
4984
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
5129
4985
  : undefined,
5130
4986
  name: (0, smithy_client_1.expectString)(output.name),
@@ -5134,24 +4990,22 @@ const deserializeAws_json1_1RecipeSummary = (output, context) => {
5134
4990
  };
5135
4991
  const deserializeAws_json1_1Recommender = (output, context) => {
5136
4992
  return {
5137
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4993
+ creationDateTime: output.creationDateTime != null
5138
4994
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
5139
4995
  : undefined,
5140
4996
  datasetGroupArn: (0, smithy_client_1.expectString)(output.datasetGroupArn),
5141
4997
  failureReason: (0, smithy_client_1.expectString)(output.failureReason),
5142
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4998
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
5143
4999
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
5144
5000
  : undefined,
5145
- latestRecommenderUpdate: output.latestRecommenderUpdate !== undefined && output.latestRecommenderUpdate !== null
5001
+ latestRecommenderUpdate: output.latestRecommenderUpdate != null
5146
5002
  ? deserializeAws_json1_1RecommenderUpdateSummary(output.latestRecommenderUpdate, context)
5147
5003
  : undefined,
5148
- modelMetrics: output.modelMetrics !== undefined && output.modelMetrics !== null
5149
- ? deserializeAws_json1_1Metrics(output.modelMetrics, context)
5150
- : undefined,
5004
+ modelMetrics: output.modelMetrics != null ? deserializeAws_json1_1Metrics(output.modelMetrics, context) : undefined,
5151
5005
  name: (0, smithy_client_1.expectString)(output.name),
5152
5006
  recipeArn: (0, smithy_client_1.expectString)(output.recipeArn),
5153
5007
  recommenderArn: (0, smithy_client_1.expectString)(output.recommenderArn),
5154
- recommenderConfig: output.recommenderConfig !== undefined && output.recommenderConfig !== null
5008
+ recommenderConfig: output.recommenderConfig != null
5155
5009
  ? deserializeAws_json1_1RecommenderConfig(output.recommenderConfig, context)
5156
5010
  : undefined,
5157
5011
  status: (0, smithy_client_1.expectString)(output.status),
@@ -5159,7 +5013,7 @@ const deserializeAws_json1_1Recommender = (output, context) => {
5159
5013
  };
5160
5014
  const deserializeAws_json1_1RecommenderConfig = (output, context) => {
5161
5015
  return {
5162
- itemExplorationConfig: output.itemExplorationConfig !== undefined && output.itemExplorationConfig !== null
5016
+ itemExplorationConfig: output.itemExplorationConfig != null
5163
5017
  ? deserializeAws_json1_1HyperParameters(output.itemExplorationConfig, context)
5164
5018
  : undefined,
5165
5019
  minRecommendationRequestsPerSecond: (0, smithy_client_1.expectInt32)(output.minRecommendationRequestsPerSecond),
@@ -5178,17 +5032,17 @@ const deserializeAws_json1_1Recommenders = (output, context) => {
5178
5032
  };
5179
5033
  const deserializeAws_json1_1RecommenderSummary = (output, context) => {
5180
5034
  return {
5181
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
5035
+ creationDateTime: output.creationDateTime != null
5182
5036
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
5183
5037
  : undefined,
5184
5038
  datasetGroupArn: (0, smithy_client_1.expectString)(output.datasetGroupArn),
5185
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
5039
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
5186
5040
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
5187
5041
  : undefined,
5188
5042
  name: (0, smithy_client_1.expectString)(output.name),
5189
5043
  recipeArn: (0, smithy_client_1.expectString)(output.recipeArn),
5190
5044
  recommenderArn: (0, smithy_client_1.expectString)(output.recommenderArn),
5191
- recommenderConfig: output.recommenderConfig !== undefined && output.recommenderConfig !== null
5045
+ recommenderConfig: output.recommenderConfig != null
5192
5046
  ? deserializeAws_json1_1RecommenderConfig(output.recommenderConfig, context)
5193
5047
  : undefined,
5194
5048
  status: (0, smithy_client_1.expectString)(output.status),
@@ -5196,14 +5050,14 @@ const deserializeAws_json1_1RecommenderSummary = (output, context) => {
5196
5050
  };
5197
5051
  const deserializeAws_json1_1RecommenderUpdateSummary = (output, context) => {
5198
5052
  return {
5199
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
5053
+ creationDateTime: output.creationDateTime != null
5200
5054
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
5201
5055
  : undefined,
5202
5056
  failureReason: (0, smithy_client_1.expectString)(output.failureReason),
5203
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
5057
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
5204
5058
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
5205
5059
  : undefined,
5206
- recommenderConfig: output.recommenderConfig !== undefined && output.recommenderConfig !== null
5060
+ recommenderConfig: output.recommenderConfig != null
5207
5061
  ? deserializeAws_json1_1RecommenderConfig(output.recommenderConfig, context)
5208
5062
  : undefined,
5209
5063
  status: (0, smithy_client_1.expectString)(output.status),
@@ -5254,18 +5108,16 @@ const deserializeAws_json1_1Schemas = (output, context) => {
5254
5108
  };
5255
5109
  const deserializeAws_json1_1Solution = (output, context) => {
5256
5110
  return {
5257
- autoMLResult: output.autoMLResult !== undefined && output.autoMLResult !== null
5258
- ? deserializeAws_json1_1AutoMLResult(output.autoMLResult, context)
5259
- : undefined,
5260
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
5111
+ autoMLResult: output.autoMLResult != null ? deserializeAws_json1_1AutoMLResult(output.autoMLResult, context) : undefined,
5112
+ creationDateTime: output.creationDateTime != null
5261
5113
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
5262
5114
  : undefined,
5263
5115
  datasetGroupArn: (0, smithy_client_1.expectString)(output.datasetGroupArn),
5264
5116
  eventType: (0, smithy_client_1.expectString)(output.eventType),
5265
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
5117
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
5266
5118
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
5267
5119
  : undefined,
5268
- latestSolutionVersion: output.latestSolutionVersion !== undefined && output.latestSolutionVersion !== null
5120
+ latestSolutionVersion: output.latestSolutionVersion != null
5269
5121
  ? deserializeAws_json1_1SolutionVersionSummary(output.latestSolutionVersion, context)
5270
5122
  : undefined,
5271
5123
  name: (0, smithy_client_1.expectString)(output.name),
@@ -5273,28 +5125,22 @@ const deserializeAws_json1_1Solution = (output, context) => {
5273
5125
  performHPO: (0, smithy_client_1.expectBoolean)(output.performHPO),
5274
5126
  recipeArn: (0, smithy_client_1.expectString)(output.recipeArn),
5275
5127
  solutionArn: (0, smithy_client_1.expectString)(output.solutionArn),
5276
- solutionConfig: output.solutionConfig !== undefined && output.solutionConfig !== null
5277
- ? deserializeAws_json1_1SolutionConfig(output.solutionConfig, context)
5278
- : undefined,
5128
+ solutionConfig: output.solutionConfig != null ? deserializeAws_json1_1SolutionConfig(output.solutionConfig, context) : undefined,
5279
5129
  status: (0, smithy_client_1.expectString)(output.status),
5280
5130
  };
5281
5131
  };
5282
5132
  const deserializeAws_json1_1SolutionConfig = (output, context) => {
5283
5133
  return {
5284
- algorithmHyperParameters: output.algorithmHyperParameters !== undefined && output.algorithmHyperParameters !== null
5134
+ algorithmHyperParameters: output.algorithmHyperParameters != null
5285
5135
  ? deserializeAws_json1_1HyperParameters(output.algorithmHyperParameters, context)
5286
5136
  : undefined,
5287
- autoMLConfig: output.autoMLConfig !== undefined && output.autoMLConfig !== null
5288
- ? deserializeAws_json1_1AutoMLConfig(output.autoMLConfig, context)
5289
- : undefined,
5137
+ autoMLConfig: output.autoMLConfig != null ? deserializeAws_json1_1AutoMLConfig(output.autoMLConfig, context) : undefined,
5290
5138
  eventValueThreshold: (0, smithy_client_1.expectString)(output.eventValueThreshold),
5291
- featureTransformationParameters: output.featureTransformationParameters !== undefined && output.featureTransformationParameters !== null
5139
+ featureTransformationParameters: output.featureTransformationParameters != null
5292
5140
  ? deserializeAws_json1_1FeatureTransformationParameters(output.featureTransformationParameters, context)
5293
5141
  : undefined,
5294
- hpoConfig: output.hpoConfig !== undefined && output.hpoConfig !== null
5295
- ? deserializeAws_json1_1HPOConfig(output.hpoConfig, context)
5296
- : undefined,
5297
- optimizationObjective: output.optimizationObjective !== undefined && output.optimizationObjective !== null
5142
+ hpoConfig: output.hpoConfig != null ? deserializeAws_json1_1HPOConfig(output.hpoConfig, context) : undefined,
5143
+ optimizationObjective: output.optimizationObjective != null
5298
5144
  ? deserializeAws_json1_1OptimizationObjective(output.optimizationObjective, context)
5299
5145
  : undefined,
5300
5146
  };
@@ -5312,10 +5158,10 @@ const deserializeAws_json1_1Solutions = (output, context) => {
5312
5158
  };
5313
5159
  const deserializeAws_json1_1SolutionSummary = (output, context) => {
5314
5160
  return {
5315
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
5161
+ creationDateTime: output.creationDateTime != null
5316
5162
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
5317
5163
  : undefined,
5318
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
5164
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
5319
5165
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
5320
5166
  : undefined,
5321
5167
  name: (0, smithy_client_1.expectString)(output.name),
@@ -5325,29 +5171,25 @@ const deserializeAws_json1_1SolutionSummary = (output, context) => {
5325
5171
  };
5326
5172
  const deserializeAws_json1_1SolutionVersion = (output, context) => {
5327
5173
  return {
5328
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
5174
+ creationDateTime: output.creationDateTime != null
5329
5175
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
5330
5176
  : undefined,
5331
5177
  datasetGroupArn: (0, smithy_client_1.expectString)(output.datasetGroupArn),
5332
5178
  eventType: (0, smithy_client_1.expectString)(output.eventType),
5333
5179
  failureReason: (0, smithy_client_1.expectString)(output.failureReason),
5334
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
5180
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
5335
5181
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
5336
5182
  : undefined,
5337
5183
  performAutoML: (0, smithy_client_1.expectBoolean)(output.performAutoML),
5338
5184
  performHPO: (0, smithy_client_1.expectBoolean)(output.performHPO),
5339
5185
  recipeArn: (0, smithy_client_1.expectString)(output.recipeArn),
5340
5186
  solutionArn: (0, smithy_client_1.expectString)(output.solutionArn),
5341
- solutionConfig: output.solutionConfig !== undefined && output.solutionConfig !== null
5342
- ? deserializeAws_json1_1SolutionConfig(output.solutionConfig, context)
5343
- : undefined,
5187
+ solutionConfig: output.solutionConfig != null ? deserializeAws_json1_1SolutionConfig(output.solutionConfig, context) : undefined,
5344
5188
  solutionVersionArn: (0, smithy_client_1.expectString)(output.solutionVersionArn),
5345
5189
  status: (0, smithy_client_1.expectString)(output.status),
5346
5190
  trainingHours: (0, smithy_client_1.limitedParseDouble)(output.trainingHours),
5347
5191
  trainingMode: (0, smithy_client_1.expectString)(output.trainingMode),
5348
- tunedHPOParams: output.tunedHPOParams !== undefined && output.tunedHPOParams !== null
5349
- ? deserializeAws_json1_1TunedHPOParams(output.tunedHPOParams, context)
5350
- : undefined,
5192
+ tunedHPOParams: output.tunedHPOParams != null ? deserializeAws_json1_1TunedHPOParams(output.tunedHPOParams, context) : undefined,
5351
5193
  };
5352
5194
  };
5353
5195
  const deserializeAws_json1_1SolutionVersions = (output, context) => {
@@ -5363,11 +5205,11 @@ const deserializeAws_json1_1SolutionVersions = (output, context) => {
5363
5205
  };
5364
5206
  const deserializeAws_json1_1SolutionVersionSummary = (output, context) => {
5365
5207
  return {
5366
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
5208
+ creationDateTime: output.creationDateTime != null
5367
5209
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
5368
5210
  : undefined,
5369
5211
  failureReason: (0, smithy_client_1.expectString)(output.failureReason),
5370
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
5212
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
5371
5213
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
5372
5214
  : undefined,
5373
5215
  solutionVersionArn: (0, smithy_client_1.expectString)(output.solutionVersionArn),
@@ -5416,7 +5258,7 @@ const deserializeAws_json1_1TooManyTagsException = (output, context) => {
5416
5258
  };
5417
5259
  const deserializeAws_json1_1TunedHPOParams = (output, context) => {
5418
5260
  return {
5419
- algorithmHyperParameters: output.algorithmHyperParameters !== undefined && output.algorithmHyperParameters !== null
5261
+ algorithmHyperParameters: output.algorithmHyperParameters != null
5420
5262
  ? deserializeAws_json1_1HyperParameters(output.algorithmHyperParameters, context)
5421
5263
  : undefined,
5422
5264
  };