@aws-sdk/client-ecs 3.121.0 → 3.130.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3236,8 +3236,8 @@ const deserializeAws_json1_1UpdateInProgressExceptionResponse = async (parsedOut
3236
3236
  };
3237
3237
  const serializeAws_json1_1AttachmentStateChange = (input, context) => {
3238
3238
  return {
3239
- ...(input.attachmentArn !== undefined && input.attachmentArn !== null && { attachmentArn: input.attachmentArn }),
3240
- ...(input.status !== undefined && input.status !== null && { status: input.status }),
3239
+ ...(input.attachmentArn != null && { attachmentArn: input.attachmentArn }),
3240
+ ...(input.status != null && { status: input.status }),
3241
3241
  };
3242
3242
  };
3243
3243
  const serializeAws_json1_1AttachmentStateChanges = (input, context) => {
@@ -3252,10 +3252,10 @@ const serializeAws_json1_1AttachmentStateChanges = (input, context) => {
3252
3252
  };
3253
3253
  const serializeAws_json1_1Attribute = (input, context) => {
3254
3254
  return {
3255
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
3256
- ...(input.targetId !== undefined && input.targetId !== null && { targetId: input.targetId }),
3257
- ...(input.targetType !== undefined && input.targetType !== null && { targetType: input.targetType }),
3258
- ...(input.value !== undefined && input.value !== null && { value: input.value }),
3255
+ ...(input.name != null && { name: input.name }),
3256
+ ...(input.targetId != null && { targetId: input.targetId }),
3257
+ ...(input.targetType != null && { targetType: input.targetType }),
3258
+ ...(input.value != null && { value: input.value }),
3259
3259
  };
3260
3260
  };
3261
3261
  const serializeAws_json1_1Attributes = (input, context) => {
@@ -3270,40 +3270,32 @@ const serializeAws_json1_1Attributes = (input, context) => {
3270
3270
  };
3271
3271
  const serializeAws_json1_1AutoScalingGroupProvider = (input, context) => {
3272
3272
  return {
3273
- ...(input.autoScalingGroupArn !== undefined &&
3274
- input.autoScalingGroupArn !== null && { autoScalingGroupArn: input.autoScalingGroupArn }),
3275
- ...(input.managedScaling !== undefined &&
3276
- input.managedScaling !== null && {
3273
+ ...(input.autoScalingGroupArn != null && { autoScalingGroupArn: input.autoScalingGroupArn }),
3274
+ ...(input.managedScaling != null && {
3277
3275
  managedScaling: serializeAws_json1_1ManagedScaling(input.managedScaling, context),
3278
3276
  }),
3279
- ...(input.managedTerminationProtection !== undefined &&
3280
- input.managedTerminationProtection !== null && {
3277
+ ...(input.managedTerminationProtection != null && {
3281
3278
  managedTerminationProtection: input.managedTerminationProtection,
3282
3279
  }),
3283
3280
  };
3284
3281
  };
3285
3282
  const serializeAws_json1_1AutoScalingGroupProviderUpdate = (input, context) => {
3286
3283
  return {
3287
- ...(input.managedScaling !== undefined &&
3288
- input.managedScaling !== null && {
3284
+ ...(input.managedScaling != null && {
3289
3285
  managedScaling: serializeAws_json1_1ManagedScaling(input.managedScaling, context),
3290
3286
  }),
3291
- ...(input.managedTerminationProtection !== undefined &&
3292
- input.managedTerminationProtection !== null && {
3287
+ ...(input.managedTerminationProtection != null && {
3293
3288
  managedTerminationProtection: input.managedTerminationProtection,
3294
3289
  }),
3295
3290
  };
3296
3291
  };
3297
3292
  const serializeAws_json1_1AwsVpcConfiguration = (input, context) => {
3298
3293
  return {
3299
- ...(input.assignPublicIp !== undefined &&
3300
- input.assignPublicIp !== null && { assignPublicIp: input.assignPublicIp }),
3301
- ...(input.securityGroups !== undefined &&
3302
- input.securityGroups !== null && {
3294
+ ...(input.assignPublicIp != null && { assignPublicIp: input.assignPublicIp }),
3295
+ ...(input.securityGroups != null && {
3303
3296
  securityGroups: serializeAws_json1_1StringList(input.securityGroups, context),
3304
3297
  }),
3305
- ...(input.subnets !== undefined &&
3306
- input.subnets !== null && { subnets: serializeAws_json1_1StringList(input.subnets, context) }),
3298
+ ...(input.subnets != null && { subnets: serializeAws_json1_1StringList(input.subnets, context) }),
3307
3299
  };
3308
3300
  };
3309
3301
  const serializeAws_json1_1CapacityProviderFieldList = (input, context) => {
@@ -3328,16 +3320,14 @@ const serializeAws_json1_1CapacityProviderStrategy = (input, context) => {
3328
3320
  };
3329
3321
  const serializeAws_json1_1CapacityProviderStrategyItem = (input, context) => {
3330
3322
  return {
3331
- ...(input.base !== undefined && input.base !== null && { base: input.base }),
3332
- ...(input.capacityProvider !== undefined &&
3333
- input.capacityProvider !== null && { capacityProvider: input.capacityProvider }),
3334
- ...(input.weight !== undefined && input.weight !== null && { weight: input.weight }),
3323
+ ...(input.base != null && { base: input.base }),
3324
+ ...(input.capacityProvider != null && { capacityProvider: input.capacityProvider }),
3325
+ ...(input.weight != null && { weight: input.weight }),
3335
3326
  };
3336
3327
  };
3337
3328
  const serializeAws_json1_1ClusterConfiguration = (input, context) => {
3338
3329
  return {
3339
- ...(input.executeCommandConfiguration !== undefined &&
3340
- input.executeCommandConfiguration !== null && {
3330
+ ...(input.executeCommandConfiguration != null && {
3341
3331
  executeCommandConfiguration: serializeAws_json1_1ExecuteCommandConfiguration(input.executeCommandConfiguration, context),
3342
3332
  }),
3343
3333
  };
@@ -3354,8 +3344,8 @@ const serializeAws_json1_1ClusterFieldList = (input, context) => {
3354
3344
  };
3355
3345
  const serializeAws_json1_1ClusterSetting = (input, context) => {
3356
3346
  return {
3357
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
3358
- ...(input.value !== undefined && input.value !== null && { value: input.value }),
3347
+ ...(input.name != null && { name: input.name }),
3348
+ ...(input.value != null && { value: input.value }),
3359
3349
  };
3360
3350
  };
3361
3351
  const serializeAws_json1_1ClusterSettings = (input, context) => {
@@ -3380,97 +3370,69 @@ const serializeAws_json1_1CompatibilityList = (input, context) => {
3380
3370
  };
3381
3371
  const serializeAws_json1_1ContainerDefinition = (input, context) => {
3382
3372
  return {
3383
- ...(input.command !== undefined &&
3384
- input.command !== null && { command: serializeAws_json1_1StringList(input.command, context) }),
3385
- ...(input.cpu !== undefined && input.cpu !== null && { cpu: input.cpu }),
3386
- ...(input.dependsOn !== undefined &&
3387
- input.dependsOn !== null && { dependsOn: serializeAws_json1_1ContainerDependencies(input.dependsOn, context) }),
3388
- ...(input.disableNetworking !== undefined &&
3389
- input.disableNetworking !== null && { disableNetworking: input.disableNetworking }),
3390
- ...(input.dnsSearchDomains !== undefined &&
3391
- input.dnsSearchDomains !== null && {
3373
+ ...(input.command != null && { command: serializeAws_json1_1StringList(input.command, context) }),
3374
+ ...(input.cpu != null && { cpu: input.cpu }),
3375
+ ...(input.dependsOn != null && { dependsOn: serializeAws_json1_1ContainerDependencies(input.dependsOn, context) }),
3376
+ ...(input.disableNetworking != null && { disableNetworking: input.disableNetworking }),
3377
+ ...(input.dnsSearchDomains != null && {
3392
3378
  dnsSearchDomains: serializeAws_json1_1StringList(input.dnsSearchDomains, context),
3393
3379
  }),
3394
- ...(input.dnsServers !== undefined &&
3395
- input.dnsServers !== null && { dnsServers: serializeAws_json1_1StringList(input.dnsServers, context) }),
3396
- ...(input.dockerLabels !== undefined &&
3397
- input.dockerLabels !== null && {
3380
+ ...(input.dnsServers != null && { dnsServers: serializeAws_json1_1StringList(input.dnsServers, context) }),
3381
+ ...(input.dockerLabels != null && {
3398
3382
  dockerLabels: serializeAws_json1_1DockerLabelsMap(input.dockerLabels, context),
3399
3383
  }),
3400
- ...(input.dockerSecurityOptions !== undefined &&
3401
- input.dockerSecurityOptions !== null && {
3384
+ ...(input.dockerSecurityOptions != null && {
3402
3385
  dockerSecurityOptions: serializeAws_json1_1StringList(input.dockerSecurityOptions, context),
3403
3386
  }),
3404
- ...(input.entryPoint !== undefined &&
3405
- input.entryPoint !== null && { entryPoint: serializeAws_json1_1StringList(input.entryPoint, context) }),
3406
- ...(input.environment !== undefined &&
3407
- input.environment !== null && {
3387
+ ...(input.entryPoint != null && { entryPoint: serializeAws_json1_1StringList(input.entryPoint, context) }),
3388
+ ...(input.environment != null && {
3408
3389
  environment: serializeAws_json1_1EnvironmentVariables(input.environment, context),
3409
3390
  }),
3410
- ...(input.environmentFiles !== undefined &&
3411
- input.environmentFiles !== null && {
3391
+ ...(input.environmentFiles != null && {
3412
3392
  environmentFiles: serializeAws_json1_1EnvironmentFiles(input.environmentFiles, context),
3413
3393
  }),
3414
- ...(input.essential !== undefined && input.essential !== null && { essential: input.essential }),
3415
- ...(input.extraHosts !== undefined &&
3416
- input.extraHosts !== null && { extraHosts: serializeAws_json1_1HostEntryList(input.extraHosts, context) }),
3417
- ...(input.firelensConfiguration !== undefined &&
3418
- input.firelensConfiguration !== null && {
3394
+ ...(input.essential != null && { essential: input.essential }),
3395
+ ...(input.extraHosts != null && { extraHosts: serializeAws_json1_1HostEntryList(input.extraHosts, context) }),
3396
+ ...(input.firelensConfiguration != null && {
3419
3397
  firelensConfiguration: serializeAws_json1_1FirelensConfiguration(input.firelensConfiguration, context),
3420
3398
  }),
3421
- ...(input.healthCheck !== undefined &&
3422
- input.healthCheck !== null && { healthCheck: serializeAws_json1_1HealthCheck(input.healthCheck, context) }),
3423
- ...(input.hostname !== undefined && input.hostname !== null && { hostname: input.hostname }),
3424
- ...(input.image !== undefined && input.image !== null && { image: input.image }),
3425
- ...(input.interactive !== undefined && input.interactive !== null && { interactive: input.interactive }),
3426
- ...(input.links !== undefined &&
3427
- input.links !== null && { links: serializeAws_json1_1StringList(input.links, context) }),
3428
- ...(input.linuxParameters !== undefined &&
3429
- input.linuxParameters !== null && {
3399
+ ...(input.healthCheck != null && { healthCheck: serializeAws_json1_1HealthCheck(input.healthCheck, context) }),
3400
+ ...(input.hostname != null && { hostname: input.hostname }),
3401
+ ...(input.image != null && { image: input.image }),
3402
+ ...(input.interactive != null && { interactive: input.interactive }),
3403
+ ...(input.links != null && { links: serializeAws_json1_1StringList(input.links, context) }),
3404
+ ...(input.linuxParameters != null && {
3430
3405
  linuxParameters: serializeAws_json1_1LinuxParameters(input.linuxParameters, context),
3431
3406
  }),
3432
- ...(input.logConfiguration !== undefined &&
3433
- input.logConfiguration !== null && {
3407
+ ...(input.logConfiguration != null && {
3434
3408
  logConfiguration: serializeAws_json1_1LogConfiguration(input.logConfiguration, context),
3435
3409
  }),
3436
- ...(input.memory !== undefined && input.memory !== null && { memory: input.memory }),
3437
- ...(input.memoryReservation !== undefined &&
3438
- input.memoryReservation !== null && { memoryReservation: input.memoryReservation }),
3439
- ...(input.mountPoints !== undefined &&
3440
- input.mountPoints !== null && { mountPoints: serializeAws_json1_1MountPointList(input.mountPoints, context) }),
3441
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
3442
- ...(input.portMappings !== undefined &&
3443
- input.portMappings !== null && {
3410
+ ...(input.memory != null && { memory: input.memory }),
3411
+ ...(input.memoryReservation != null && { memoryReservation: input.memoryReservation }),
3412
+ ...(input.mountPoints != null && { mountPoints: serializeAws_json1_1MountPointList(input.mountPoints, context) }),
3413
+ ...(input.name != null && { name: input.name }),
3414
+ ...(input.portMappings != null && {
3444
3415
  portMappings: serializeAws_json1_1PortMappingList(input.portMappings, context),
3445
3416
  }),
3446
- ...(input.privileged !== undefined && input.privileged !== null && { privileged: input.privileged }),
3447
- ...(input.pseudoTerminal !== undefined &&
3448
- input.pseudoTerminal !== null && { pseudoTerminal: input.pseudoTerminal }),
3449
- ...(input.readonlyRootFilesystem !== undefined &&
3450
- input.readonlyRootFilesystem !== null && { readonlyRootFilesystem: input.readonlyRootFilesystem }),
3451
- ...(input.repositoryCredentials !== undefined &&
3452
- input.repositoryCredentials !== null && {
3417
+ ...(input.privileged != null && { privileged: input.privileged }),
3418
+ ...(input.pseudoTerminal != null && { pseudoTerminal: input.pseudoTerminal }),
3419
+ ...(input.readonlyRootFilesystem != null && { readonlyRootFilesystem: input.readonlyRootFilesystem }),
3420
+ ...(input.repositoryCredentials != null && {
3453
3421
  repositoryCredentials: serializeAws_json1_1RepositoryCredentials(input.repositoryCredentials, context),
3454
3422
  }),
3455
- ...(input.resourceRequirements !== undefined &&
3456
- input.resourceRequirements !== null && {
3423
+ ...(input.resourceRequirements != null && {
3457
3424
  resourceRequirements: serializeAws_json1_1ResourceRequirements(input.resourceRequirements, context),
3458
3425
  }),
3459
- ...(input.secrets !== undefined &&
3460
- input.secrets !== null && { secrets: serializeAws_json1_1SecretList(input.secrets, context) }),
3461
- ...(input.startTimeout !== undefined && input.startTimeout !== null && { startTimeout: input.startTimeout }),
3462
- ...(input.stopTimeout !== undefined && input.stopTimeout !== null && { stopTimeout: input.stopTimeout }),
3463
- ...(input.systemControls !== undefined &&
3464
- input.systemControls !== null && {
3426
+ ...(input.secrets != null && { secrets: serializeAws_json1_1SecretList(input.secrets, context) }),
3427
+ ...(input.startTimeout != null && { startTimeout: input.startTimeout }),
3428
+ ...(input.stopTimeout != null && { stopTimeout: input.stopTimeout }),
3429
+ ...(input.systemControls != null && {
3465
3430
  systemControls: serializeAws_json1_1SystemControls(input.systemControls, context),
3466
3431
  }),
3467
- ...(input.ulimits !== undefined &&
3468
- input.ulimits !== null && { ulimits: serializeAws_json1_1UlimitList(input.ulimits, context) }),
3469
- ...(input.user !== undefined && input.user !== null && { user: input.user }),
3470
- ...(input.volumesFrom !== undefined &&
3471
- input.volumesFrom !== null && { volumesFrom: serializeAws_json1_1VolumeFromList(input.volumesFrom, context) }),
3472
- ...(input.workingDirectory !== undefined &&
3473
- input.workingDirectory !== null && { workingDirectory: input.workingDirectory }),
3432
+ ...(input.ulimits != null && { ulimits: serializeAws_json1_1UlimitList(input.ulimits, context) }),
3433
+ ...(input.user != null && { user: input.user }),
3434
+ ...(input.volumesFrom != null && { volumesFrom: serializeAws_json1_1VolumeFromList(input.volumesFrom, context) }),
3435
+ ...(input.workingDirectory != null && { workingDirectory: input.workingDirectory }),
3474
3436
  };
3475
3437
  };
3476
3438
  const serializeAws_json1_1ContainerDefinitions = (input, context) => {
@@ -3495,8 +3457,8 @@ const serializeAws_json1_1ContainerDependencies = (input, context) => {
3495
3457
  };
3496
3458
  const serializeAws_json1_1ContainerDependency = (input, context) => {
3497
3459
  return {
3498
- ...(input.condition !== undefined && input.condition !== null && { condition: input.condition }),
3499
- ...(input.containerName !== undefined && input.containerName !== null && { containerName: input.containerName }),
3460
+ ...(input.condition != null && { condition: input.condition }),
3461
+ ...(input.containerName != null && { containerName: input.containerName }),
3500
3462
  };
3501
3463
  };
3502
3464
  const serializeAws_json1_1ContainerInstanceFieldList = (input, context) => {
@@ -3511,23 +3473,18 @@ const serializeAws_json1_1ContainerInstanceFieldList = (input, context) => {
3511
3473
  };
3512
3474
  const serializeAws_json1_1ContainerOverride = (input, context) => {
3513
3475
  return {
3514
- ...(input.command !== undefined &&
3515
- input.command !== null && { command: serializeAws_json1_1StringList(input.command, context) }),
3516
- ...(input.cpu !== undefined && input.cpu !== null && { cpu: input.cpu }),
3517
- ...(input.environment !== undefined &&
3518
- input.environment !== null && {
3476
+ ...(input.command != null && { command: serializeAws_json1_1StringList(input.command, context) }),
3477
+ ...(input.cpu != null && { cpu: input.cpu }),
3478
+ ...(input.environment != null && {
3519
3479
  environment: serializeAws_json1_1EnvironmentVariables(input.environment, context),
3520
3480
  }),
3521
- ...(input.environmentFiles !== undefined &&
3522
- input.environmentFiles !== null && {
3481
+ ...(input.environmentFiles != null && {
3523
3482
  environmentFiles: serializeAws_json1_1EnvironmentFiles(input.environmentFiles, context),
3524
3483
  }),
3525
- ...(input.memory !== undefined && input.memory !== null && { memory: input.memory }),
3526
- ...(input.memoryReservation !== undefined &&
3527
- input.memoryReservation !== null && { memoryReservation: input.memoryReservation }),
3528
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
3529
- ...(input.resourceRequirements !== undefined &&
3530
- input.resourceRequirements !== null && {
3484
+ ...(input.memory != null && { memory: input.memory }),
3485
+ ...(input.memoryReservation != null && { memoryReservation: input.memoryReservation }),
3486
+ ...(input.name != null && { name: input.name }),
3487
+ ...(input.resourceRequirements != null && {
3531
3488
  resourceRequirements: serializeAws_json1_1ResourceRequirements(input.resourceRequirements, context),
3532
3489
  }),
3533
3490
  };
@@ -3544,16 +3501,15 @@ const serializeAws_json1_1ContainerOverrides = (input, context) => {
3544
3501
  };
3545
3502
  const serializeAws_json1_1ContainerStateChange = (input, context) => {
3546
3503
  return {
3547
- ...(input.containerName !== undefined && input.containerName !== null && { containerName: input.containerName }),
3548
- ...(input.exitCode !== undefined && input.exitCode !== null && { exitCode: input.exitCode }),
3549
- ...(input.imageDigest !== undefined && input.imageDigest !== null && { imageDigest: input.imageDigest }),
3550
- ...(input.networkBindings !== undefined &&
3551
- input.networkBindings !== null && {
3504
+ ...(input.containerName != null && { containerName: input.containerName }),
3505
+ ...(input.exitCode != null && { exitCode: input.exitCode }),
3506
+ ...(input.imageDigest != null && { imageDigest: input.imageDigest }),
3507
+ ...(input.networkBindings != null && {
3552
3508
  networkBindings: serializeAws_json1_1NetworkBindings(input.networkBindings, context),
3553
3509
  }),
3554
- ...(input.reason !== undefined && input.reason !== null && { reason: input.reason }),
3555
- ...(input.runtimeId !== undefined && input.runtimeId !== null && { runtimeId: input.runtimeId }),
3556
- ...(input.status !== undefined && input.status !== null && { status: input.status }),
3510
+ ...(input.reason != null && { reason: input.reason }),
3511
+ ...(input.runtimeId != null && { runtimeId: input.runtimeId }),
3512
+ ...(input.status != null && { status: input.status }),
3557
3513
  };
3558
3514
  };
3559
3515
  const serializeAws_json1_1ContainerStateChanges = (input, context) => {
@@ -3568,273 +3524,225 @@ const serializeAws_json1_1ContainerStateChanges = (input, context) => {
3568
3524
  };
3569
3525
  const serializeAws_json1_1CreateCapacityProviderRequest = (input, context) => {
3570
3526
  return {
3571
- ...(input.autoScalingGroupProvider !== undefined &&
3572
- input.autoScalingGroupProvider !== null && {
3527
+ ...(input.autoScalingGroupProvider != null && {
3573
3528
  autoScalingGroupProvider: serializeAws_json1_1AutoScalingGroupProvider(input.autoScalingGroupProvider, context),
3574
3529
  }),
3575
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
3576
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3530
+ ...(input.name != null && { name: input.name }),
3531
+ ...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3577
3532
  };
3578
3533
  };
3579
3534
  const serializeAws_json1_1CreateClusterRequest = (input, context) => {
3580
3535
  return {
3581
- ...(input.capacityProviders !== undefined &&
3582
- input.capacityProviders !== null && {
3536
+ ...(input.capacityProviders != null && {
3583
3537
  capacityProviders: serializeAws_json1_1StringList(input.capacityProviders, context),
3584
3538
  }),
3585
- ...(input.clusterName !== undefined && input.clusterName !== null && { clusterName: input.clusterName }),
3586
- ...(input.configuration !== undefined &&
3587
- input.configuration !== null && {
3539
+ ...(input.clusterName != null && { clusterName: input.clusterName }),
3540
+ ...(input.configuration != null && {
3588
3541
  configuration: serializeAws_json1_1ClusterConfiguration(input.configuration, context),
3589
3542
  }),
3590
- ...(input.defaultCapacityProviderStrategy !== undefined &&
3591
- input.defaultCapacityProviderStrategy !== null && {
3543
+ ...(input.defaultCapacityProviderStrategy != null && {
3592
3544
  defaultCapacityProviderStrategy: serializeAws_json1_1CapacityProviderStrategy(input.defaultCapacityProviderStrategy, context),
3593
3545
  }),
3594
- ...(input.settings !== undefined &&
3595
- input.settings !== null && { settings: serializeAws_json1_1ClusterSettings(input.settings, context) }),
3596
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3546
+ ...(input.settings != null && { settings: serializeAws_json1_1ClusterSettings(input.settings, context) }),
3547
+ ...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3597
3548
  };
3598
3549
  };
3599
3550
  const serializeAws_json1_1CreateServiceRequest = (input, context) => {
3600
3551
  return {
3601
- ...(input.capacityProviderStrategy !== undefined &&
3602
- input.capacityProviderStrategy !== null && {
3552
+ ...(input.capacityProviderStrategy != null && {
3603
3553
  capacityProviderStrategy: serializeAws_json1_1CapacityProviderStrategy(input.capacityProviderStrategy, context),
3604
3554
  }),
3605
- ...(input.clientToken !== undefined && input.clientToken !== null && { clientToken: input.clientToken }),
3606
- ...(input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster }),
3607
- ...(input.deploymentConfiguration !== undefined &&
3608
- input.deploymentConfiguration !== null && {
3555
+ ...(input.clientToken != null && { clientToken: input.clientToken }),
3556
+ ...(input.cluster != null && { cluster: input.cluster }),
3557
+ ...(input.deploymentConfiguration != null && {
3609
3558
  deploymentConfiguration: serializeAws_json1_1DeploymentConfiguration(input.deploymentConfiguration, context),
3610
3559
  }),
3611
- ...(input.deploymentController !== undefined &&
3612
- input.deploymentController !== null && {
3560
+ ...(input.deploymentController != null && {
3613
3561
  deploymentController: serializeAws_json1_1DeploymentController(input.deploymentController, context),
3614
3562
  }),
3615
- ...(input.desiredCount !== undefined && input.desiredCount !== null && { desiredCount: input.desiredCount }),
3616
- ...(input.enableECSManagedTags !== undefined &&
3617
- input.enableECSManagedTags !== null && { enableECSManagedTags: input.enableECSManagedTags }),
3618
- ...(input.enableExecuteCommand !== undefined &&
3619
- input.enableExecuteCommand !== null && { enableExecuteCommand: input.enableExecuteCommand }),
3620
- ...(input.healthCheckGracePeriodSeconds !== undefined &&
3621
- input.healthCheckGracePeriodSeconds !== null && {
3563
+ ...(input.desiredCount != null && { desiredCount: input.desiredCount }),
3564
+ ...(input.enableECSManagedTags != null && { enableECSManagedTags: input.enableECSManagedTags }),
3565
+ ...(input.enableExecuteCommand != null && { enableExecuteCommand: input.enableExecuteCommand }),
3566
+ ...(input.healthCheckGracePeriodSeconds != null && {
3622
3567
  healthCheckGracePeriodSeconds: input.healthCheckGracePeriodSeconds,
3623
3568
  }),
3624
- ...(input.launchType !== undefined && input.launchType !== null && { launchType: input.launchType }),
3625
- ...(input.loadBalancers !== undefined &&
3626
- input.loadBalancers !== null && {
3569
+ ...(input.launchType != null && { launchType: input.launchType }),
3570
+ ...(input.loadBalancers != null && {
3627
3571
  loadBalancers: serializeAws_json1_1LoadBalancers(input.loadBalancers, context),
3628
3572
  }),
3629
- ...(input.networkConfiguration !== undefined &&
3630
- input.networkConfiguration !== null && {
3573
+ ...(input.networkConfiguration != null && {
3631
3574
  networkConfiguration: serializeAws_json1_1NetworkConfiguration(input.networkConfiguration, context),
3632
3575
  }),
3633
- ...(input.placementConstraints !== undefined &&
3634
- input.placementConstraints !== null && {
3576
+ ...(input.placementConstraints != null && {
3635
3577
  placementConstraints: serializeAws_json1_1PlacementConstraints(input.placementConstraints, context),
3636
3578
  }),
3637
- ...(input.placementStrategy !== undefined &&
3638
- input.placementStrategy !== null && {
3579
+ ...(input.placementStrategy != null && {
3639
3580
  placementStrategy: serializeAws_json1_1PlacementStrategies(input.placementStrategy, context),
3640
3581
  }),
3641
- ...(input.platformVersion !== undefined &&
3642
- input.platformVersion !== null && { platformVersion: input.platformVersion }),
3643
- ...(input.propagateTags !== undefined && input.propagateTags !== null && { propagateTags: input.propagateTags }),
3644
- ...(input.role !== undefined && input.role !== null && { role: input.role }),
3645
- ...(input.schedulingStrategy !== undefined &&
3646
- input.schedulingStrategy !== null && { schedulingStrategy: input.schedulingStrategy }),
3647
- ...(input.serviceName !== undefined && input.serviceName !== null && { serviceName: input.serviceName }),
3648
- ...(input.serviceRegistries !== undefined &&
3649
- input.serviceRegistries !== null && {
3582
+ ...(input.platformVersion != null && { platformVersion: input.platformVersion }),
3583
+ ...(input.propagateTags != null && { propagateTags: input.propagateTags }),
3584
+ ...(input.role != null && { role: input.role }),
3585
+ ...(input.schedulingStrategy != null && { schedulingStrategy: input.schedulingStrategy }),
3586
+ ...(input.serviceName != null && { serviceName: input.serviceName }),
3587
+ ...(input.serviceRegistries != null && {
3650
3588
  serviceRegistries: serializeAws_json1_1ServiceRegistries(input.serviceRegistries, context),
3651
3589
  }),
3652
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3653
- ...(input.taskDefinition !== undefined &&
3654
- input.taskDefinition !== null && { taskDefinition: input.taskDefinition }),
3590
+ ...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3591
+ ...(input.taskDefinition != null && { taskDefinition: input.taskDefinition }),
3655
3592
  };
3656
3593
  };
3657
3594
  const serializeAws_json1_1CreateTaskSetRequest = (input, context) => {
3658
3595
  return {
3659
- ...(input.capacityProviderStrategy !== undefined &&
3660
- input.capacityProviderStrategy !== null && {
3596
+ ...(input.capacityProviderStrategy != null && {
3661
3597
  capacityProviderStrategy: serializeAws_json1_1CapacityProviderStrategy(input.capacityProviderStrategy, context),
3662
3598
  }),
3663
- ...(input.clientToken !== undefined && input.clientToken !== null && { clientToken: input.clientToken }),
3664
- ...(input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster }),
3665
- ...(input.externalId !== undefined && input.externalId !== null && { externalId: input.externalId }),
3666
- ...(input.launchType !== undefined && input.launchType !== null && { launchType: input.launchType }),
3667
- ...(input.loadBalancers !== undefined &&
3668
- input.loadBalancers !== null && {
3599
+ ...(input.clientToken != null && { clientToken: input.clientToken }),
3600
+ ...(input.cluster != null && { cluster: input.cluster }),
3601
+ ...(input.externalId != null && { externalId: input.externalId }),
3602
+ ...(input.launchType != null && { launchType: input.launchType }),
3603
+ ...(input.loadBalancers != null && {
3669
3604
  loadBalancers: serializeAws_json1_1LoadBalancers(input.loadBalancers, context),
3670
3605
  }),
3671
- ...(input.networkConfiguration !== undefined &&
3672
- input.networkConfiguration !== null && {
3606
+ ...(input.networkConfiguration != null && {
3673
3607
  networkConfiguration: serializeAws_json1_1NetworkConfiguration(input.networkConfiguration, context),
3674
3608
  }),
3675
- ...(input.platformVersion !== undefined &&
3676
- input.platformVersion !== null && { platformVersion: input.platformVersion }),
3677
- ...(input.scale !== undefined &&
3678
- input.scale !== null && { scale: serializeAws_json1_1Scale(input.scale, context) }),
3679
- ...(input.service !== undefined && input.service !== null && { service: input.service }),
3680
- ...(input.serviceRegistries !== undefined &&
3681
- input.serviceRegistries !== null && {
3609
+ ...(input.platformVersion != null && { platformVersion: input.platformVersion }),
3610
+ ...(input.scale != null && { scale: serializeAws_json1_1Scale(input.scale, context) }),
3611
+ ...(input.service != null && { service: input.service }),
3612
+ ...(input.serviceRegistries != null && {
3682
3613
  serviceRegistries: serializeAws_json1_1ServiceRegistries(input.serviceRegistries, context),
3683
3614
  }),
3684
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3685
- ...(input.taskDefinition !== undefined &&
3686
- input.taskDefinition !== null && { taskDefinition: input.taskDefinition }),
3615
+ ...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3616
+ ...(input.taskDefinition != null && { taskDefinition: input.taskDefinition }),
3687
3617
  };
3688
3618
  };
3689
3619
  const serializeAws_json1_1DeleteAccountSettingRequest = (input, context) => {
3690
3620
  return {
3691
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
3692
- ...(input.principalArn !== undefined && input.principalArn !== null && { principalArn: input.principalArn }),
3621
+ ...(input.name != null && { name: input.name }),
3622
+ ...(input.principalArn != null && { principalArn: input.principalArn }),
3693
3623
  };
3694
3624
  };
3695
3625
  const serializeAws_json1_1DeleteAttributesRequest = (input, context) => {
3696
3626
  return {
3697
- ...(input.attributes !== undefined &&
3698
- input.attributes !== null && { attributes: serializeAws_json1_1Attributes(input.attributes, context) }),
3699
- ...(input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster }),
3627
+ ...(input.attributes != null && { attributes: serializeAws_json1_1Attributes(input.attributes, context) }),
3628
+ ...(input.cluster != null && { cluster: input.cluster }),
3700
3629
  };
3701
3630
  };
3702
3631
  const serializeAws_json1_1DeleteCapacityProviderRequest = (input, context) => {
3703
3632
  return {
3704
- ...(input.capacityProvider !== undefined &&
3705
- input.capacityProvider !== null && { capacityProvider: input.capacityProvider }),
3633
+ ...(input.capacityProvider != null && { capacityProvider: input.capacityProvider }),
3706
3634
  };
3707
3635
  };
3708
3636
  const serializeAws_json1_1DeleteClusterRequest = (input, context) => {
3709
3637
  return {
3710
- ...(input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster }),
3638
+ ...(input.cluster != null && { cluster: input.cluster }),
3711
3639
  };
3712
3640
  };
3713
3641
  const serializeAws_json1_1DeleteServiceRequest = (input, context) => {
3714
3642
  return {
3715
- ...(input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster }),
3716
- ...(input.force !== undefined && input.force !== null && { force: input.force }),
3717
- ...(input.service !== undefined && input.service !== null && { service: input.service }),
3643
+ ...(input.cluster != null && { cluster: input.cluster }),
3644
+ ...(input.force != null && { force: input.force }),
3645
+ ...(input.service != null && { service: input.service }),
3718
3646
  };
3719
3647
  };
3720
3648
  const serializeAws_json1_1DeleteTaskSetRequest = (input, context) => {
3721
3649
  return {
3722
- ...(input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster }),
3723
- ...(input.force !== undefined && input.force !== null && { force: input.force }),
3724
- ...(input.service !== undefined && input.service !== null && { service: input.service }),
3725
- ...(input.taskSet !== undefined && input.taskSet !== null && { taskSet: input.taskSet }),
3650
+ ...(input.cluster != null && { cluster: input.cluster }),
3651
+ ...(input.force != null && { force: input.force }),
3652
+ ...(input.service != null && { service: input.service }),
3653
+ ...(input.taskSet != null && { taskSet: input.taskSet }),
3726
3654
  };
3727
3655
  };
3728
3656
  const serializeAws_json1_1DeploymentCircuitBreaker = (input, context) => {
3729
3657
  return {
3730
- ...(input.enable !== undefined && input.enable !== null && { enable: input.enable }),
3731
- ...(input.rollback !== undefined && input.rollback !== null && { rollback: input.rollback }),
3658
+ ...(input.enable != null && { enable: input.enable }),
3659
+ ...(input.rollback != null && { rollback: input.rollback }),
3732
3660
  };
3733
3661
  };
3734
3662
  const serializeAws_json1_1DeploymentConfiguration = (input, context) => {
3735
3663
  return {
3736
- ...(input.deploymentCircuitBreaker !== undefined &&
3737
- input.deploymentCircuitBreaker !== null && {
3664
+ ...(input.deploymentCircuitBreaker != null && {
3738
3665
  deploymentCircuitBreaker: serializeAws_json1_1DeploymentCircuitBreaker(input.deploymentCircuitBreaker, context),
3739
3666
  }),
3740
- ...(input.maximumPercent !== undefined &&
3741
- input.maximumPercent !== null && { maximumPercent: input.maximumPercent }),
3742
- ...(input.minimumHealthyPercent !== undefined &&
3743
- input.minimumHealthyPercent !== null && { minimumHealthyPercent: input.minimumHealthyPercent }),
3667
+ ...(input.maximumPercent != null && { maximumPercent: input.maximumPercent }),
3668
+ ...(input.minimumHealthyPercent != null && { minimumHealthyPercent: input.minimumHealthyPercent }),
3744
3669
  };
3745
3670
  };
3746
3671
  const serializeAws_json1_1DeploymentController = (input, context) => {
3747
3672
  return {
3748
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
3673
+ ...(input.type != null && { type: input.type }),
3749
3674
  };
3750
3675
  };
3751
3676
  const serializeAws_json1_1DeregisterContainerInstanceRequest = (input, context) => {
3752
3677
  return {
3753
- ...(input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster }),
3754
- ...(input.containerInstance !== undefined &&
3755
- input.containerInstance !== null && { containerInstance: input.containerInstance }),
3756
- ...(input.force !== undefined && input.force !== null && { force: input.force }),
3678
+ ...(input.cluster != null && { cluster: input.cluster }),
3679
+ ...(input.containerInstance != null && { containerInstance: input.containerInstance }),
3680
+ ...(input.force != null && { force: input.force }),
3757
3681
  };
3758
3682
  };
3759
3683
  const serializeAws_json1_1DeregisterTaskDefinitionRequest = (input, context) => {
3760
3684
  return {
3761
- ...(input.taskDefinition !== undefined &&
3762
- input.taskDefinition !== null && { taskDefinition: input.taskDefinition }),
3685
+ ...(input.taskDefinition != null && { taskDefinition: input.taskDefinition }),
3763
3686
  };
3764
3687
  };
3765
3688
  const serializeAws_json1_1DescribeCapacityProvidersRequest = (input, context) => {
3766
3689
  return {
3767
- ...(input.capacityProviders !== undefined &&
3768
- input.capacityProviders !== null && {
3690
+ ...(input.capacityProviders != null && {
3769
3691
  capacityProviders: serializeAws_json1_1StringList(input.capacityProviders, context),
3770
3692
  }),
3771
- ...(input.include !== undefined &&
3772
- input.include !== null && { include: serializeAws_json1_1CapacityProviderFieldList(input.include, context) }),
3773
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
3774
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
3693
+ ...(input.include != null && { include: serializeAws_json1_1CapacityProviderFieldList(input.include, context) }),
3694
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3695
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3775
3696
  };
3776
3697
  };
3777
3698
  const serializeAws_json1_1DescribeClustersRequest = (input, context) => {
3778
3699
  return {
3779
- ...(input.clusters !== undefined &&
3780
- input.clusters !== null && { clusters: serializeAws_json1_1StringList(input.clusters, context) }),
3781
- ...(input.include !== undefined &&
3782
- input.include !== null && { include: serializeAws_json1_1ClusterFieldList(input.include, context) }),
3700
+ ...(input.clusters != null && { clusters: serializeAws_json1_1StringList(input.clusters, context) }),
3701
+ ...(input.include != null && { include: serializeAws_json1_1ClusterFieldList(input.include, context) }),
3783
3702
  };
3784
3703
  };
3785
3704
  const serializeAws_json1_1DescribeContainerInstancesRequest = (input, context) => {
3786
3705
  return {
3787
- ...(input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster }),
3788
- ...(input.containerInstances !== undefined &&
3789
- input.containerInstances !== null && {
3706
+ ...(input.cluster != null && { cluster: input.cluster }),
3707
+ ...(input.containerInstances != null && {
3790
3708
  containerInstances: serializeAws_json1_1StringList(input.containerInstances, context),
3791
3709
  }),
3792
- ...(input.include !== undefined &&
3793
- input.include !== null && { include: serializeAws_json1_1ContainerInstanceFieldList(input.include, context) }),
3710
+ ...(input.include != null && { include: serializeAws_json1_1ContainerInstanceFieldList(input.include, context) }),
3794
3711
  };
3795
3712
  };
3796
3713
  const serializeAws_json1_1DescribeServicesRequest = (input, context) => {
3797
3714
  return {
3798
- ...(input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster }),
3799
- ...(input.include !== undefined &&
3800
- input.include !== null && { include: serializeAws_json1_1ServiceFieldList(input.include, context) }),
3801
- ...(input.services !== undefined &&
3802
- input.services !== null && { services: serializeAws_json1_1StringList(input.services, context) }),
3715
+ ...(input.cluster != null && { cluster: input.cluster }),
3716
+ ...(input.include != null && { include: serializeAws_json1_1ServiceFieldList(input.include, context) }),
3717
+ ...(input.services != null && { services: serializeAws_json1_1StringList(input.services, context) }),
3803
3718
  };
3804
3719
  };
3805
3720
  const serializeAws_json1_1DescribeTaskDefinitionRequest = (input, context) => {
3806
3721
  return {
3807
- ...(input.include !== undefined &&
3808
- input.include !== null && { include: serializeAws_json1_1TaskDefinitionFieldList(input.include, context) }),
3809
- ...(input.taskDefinition !== undefined &&
3810
- input.taskDefinition !== null && { taskDefinition: input.taskDefinition }),
3722
+ ...(input.include != null && { include: serializeAws_json1_1TaskDefinitionFieldList(input.include, context) }),
3723
+ ...(input.taskDefinition != null && { taskDefinition: input.taskDefinition }),
3811
3724
  };
3812
3725
  };
3813
3726
  const serializeAws_json1_1DescribeTaskSetsRequest = (input, context) => {
3814
3727
  return {
3815
- ...(input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster }),
3816
- ...(input.include !== undefined &&
3817
- input.include !== null && { include: serializeAws_json1_1TaskSetFieldList(input.include, context) }),
3818
- ...(input.service !== undefined && input.service !== null && { service: input.service }),
3819
- ...(input.taskSets !== undefined &&
3820
- input.taskSets !== null && { taskSets: serializeAws_json1_1StringList(input.taskSets, context) }),
3728
+ ...(input.cluster != null && { cluster: input.cluster }),
3729
+ ...(input.include != null && { include: serializeAws_json1_1TaskSetFieldList(input.include, context) }),
3730
+ ...(input.service != null && { service: input.service }),
3731
+ ...(input.taskSets != null && { taskSets: serializeAws_json1_1StringList(input.taskSets, context) }),
3821
3732
  };
3822
3733
  };
3823
3734
  const serializeAws_json1_1DescribeTasksRequest = (input, context) => {
3824
3735
  return {
3825
- ...(input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster }),
3826
- ...(input.include !== undefined &&
3827
- input.include !== null && { include: serializeAws_json1_1TaskFieldList(input.include, context) }),
3828
- ...(input.tasks !== undefined &&
3829
- input.tasks !== null && { tasks: serializeAws_json1_1StringList(input.tasks, context) }),
3736
+ ...(input.cluster != null && { cluster: input.cluster }),
3737
+ ...(input.include != null && { include: serializeAws_json1_1TaskFieldList(input.include, context) }),
3738
+ ...(input.tasks != null && { tasks: serializeAws_json1_1StringList(input.tasks, context) }),
3830
3739
  };
3831
3740
  };
3832
3741
  const serializeAws_json1_1Device = (input, context) => {
3833
3742
  return {
3834
- ...(input.containerPath !== undefined && input.containerPath !== null && { containerPath: input.containerPath }),
3835
- ...(input.hostPath !== undefined && input.hostPath !== null && { hostPath: input.hostPath }),
3836
- ...(input.permissions !== undefined &&
3837
- input.permissions !== null && {
3743
+ ...(input.containerPath != null && { containerPath: input.containerPath }),
3744
+ ...(input.hostPath != null && { hostPath: input.hostPath }),
3745
+ ...(input.permissions != null && {
3838
3746
  permissions: serializeAws_json1_1DeviceCgroupPermissions(input.permissions, context),
3839
3747
  }),
3840
3748
  };
@@ -3861,9 +3769,8 @@ const serializeAws_json1_1DevicesList = (input, context) => {
3861
3769
  };
3862
3770
  const serializeAws_json1_1DiscoverPollEndpointRequest = (input, context) => {
3863
3771
  return {
3864
- ...(input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster }),
3865
- ...(input.containerInstance !== undefined &&
3866
- input.containerInstance !== null && { containerInstance: input.containerInstance }),
3772
+ ...(input.cluster != null && { cluster: input.cluster }),
3773
+ ...(input.containerInstance != null && { containerInstance: input.containerInstance }),
3867
3774
  };
3868
3775
  };
3869
3776
  const serializeAws_json1_1DockerLabelsMap = (input, context) => {
@@ -3879,39 +3786,34 @@ const serializeAws_json1_1DockerLabelsMap = (input, context) => {
3879
3786
  };
3880
3787
  const serializeAws_json1_1DockerVolumeConfiguration = (input, context) => {
3881
3788
  return {
3882
- ...(input.autoprovision !== undefined && input.autoprovision !== null && { autoprovision: input.autoprovision }),
3883
- ...(input.driver !== undefined && input.driver !== null && { driver: input.driver }),
3884
- ...(input.driverOpts !== undefined &&
3885
- input.driverOpts !== null && { driverOpts: serializeAws_json1_1StringMap(input.driverOpts, context) }),
3886
- ...(input.labels !== undefined &&
3887
- input.labels !== null && { labels: serializeAws_json1_1StringMap(input.labels, context) }),
3888
- ...(input.scope !== undefined && input.scope !== null && { scope: input.scope }),
3789
+ ...(input.autoprovision != null && { autoprovision: input.autoprovision }),
3790
+ ...(input.driver != null && { driver: input.driver }),
3791
+ ...(input.driverOpts != null && { driverOpts: serializeAws_json1_1StringMap(input.driverOpts, context) }),
3792
+ ...(input.labels != null && { labels: serializeAws_json1_1StringMap(input.labels, context) }),
3793
+ ...(input.scope != null && { scope: input.scope }),
3889
3794
  };
3890
3795
  };
3891
3796
  const serializeAws_json1_1EFSAuthorizationConfig = (input, context) => {
3892
3797
  return {
3893
- ...(input.accessPointId !== undefined && input.accessPointId !== null && { accessPointId: input.accessPointId }),
3894
- ...(input.iam !== undefined && input.iam !== null && { iam: input.iam }),
3798
+ ...(input.accessPointId != null && { accessPointId: input.accessPointId }),
3799
+ ...(input.iam != null && { iam: input.iam }),
3895
3800
  };
3896
3801
  };
3897
3802
  const serializeAws_json1_1EFSVolumeConfiguration = (input, context) => {
3898
3803
  return {
3899
- ...(input.authorizationConfig !== undefined &&
3900
- input.authorizationConfig !== null && {
3804
+ ...(input.authorizationConfig != null && {
3901
3805
  authorizationConfig: serializeAws_json1_1EFSAuthorizationConfig(input.authorizationConfig, context),
3902
3806
  }),
3903
- ...(input.fileSystemId !== undefined && input.fileSystemId !== null && { fileSystemId: input.fileSystemId }),
3904
- ...(input.rootDirectory !== undefined && input.rootDirectory !== null && { rootDirectory: input.rootDirectory }),
3905
- ...(input.transitEncryption !== undefined &&
3906
- input.transitEncryption !== null && { transitEncryption: input.transitEncryption }),
3907
- ...(input.transitEncryptionPort !== undefined &&
3908
- input.transitEncryptionPort !== null && { transitEncryptionPort: input.transitEncryptionPort }),
3807
+ ...(input.fileSystemId != null && { fileSystemId: input.fileSystemId }),
3808
+ ...(input.rootDirectory != null && { rootDirectory: input.rootDirectory }),
3809
+ ...(input.transitEncryption != null && { transitEncryption: input.transitEncryption }),
3810
+ ...(input.transitEncryptionPort != null && { transitEncryptionPort: input.transitEncryptionPort }),
3909
3811
  };
3910
3812
  };
3911
3813
  const serializeAws_json1_1EnvironmentFile = (input, context) => {
3912
3814
  return {
3913
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
3914
- ...(input.value !== undefined && input.value !== null && { value: input.value }),
3815
+ ...(input.type != null && { type: input.type }),
3816
+ ...(input.value != null && { value: input.value }),
3915
3817
  };
3916
3818
  };
3917
3819
  const serializeAws_json1_1EnvironmentFiles = (input, context) => {
@@ -3936,47 +3838,44 @@ const serializeAws_json1_1EnvironmentVariables = (input, context) => {
3936
3838
  };
3937
3839
  const serializeAws_json1_1EphemeralStorage = (input, context) => {
3938
3840
  return {
3939
- ...(input.sizeInGiB !== undefined && input.sizeInGiB !== null && { sizeInGiB: input.sizeInGiB }),
3841
+ ...(input.sizeInGiB != null && { sizeInGiB: input.sizeInGiB }),
3940
3842
  };
3941
3843
  };
3942
3844
  const serializeAws_json1_1ExecuteCommandConfiguration = (input, context) => {
3943
3845
  return {
3944
- ...(input.kmsKeyId !== undefined && input.kmsKeyId !== null && { kmsKeyId: input.kmsKeyId }),
3945
- ...(input.logConfiguration !== undefined &&
3946
- input.logConfiguration !== null && {
3846
+ ...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
3847
+ ...(input.logConfiguration != null && {
3947
3848
  logConfiguration: serializeAws_json1_1ExecuteCommandLogConfiguration(input.logConfiguration, context),
3948
3849
  }),
3949
- ...(input.logging !== undefined && input.logging !== null && { logging: input.logging }),
3850
+ ...(input.logging != null && { logging: input.logging }),
3950
3851
  };
3951
3852
  };
3952
3853
  const serializeAws_json1_1ExecuteCommandLogConfiguration = (input, context) => {
3953
3854
  return {
3954
- ...(input.cloudWatchEncryptionEnabled !== undefined &&
3955
- input.cloudWatchEncryptionEnabled !== null && { cloudWatchEncryptionEnabled: input.cloudWatchEncryptionEnabled }),
3956
- ...(input.cloudWatchLogGroupName !== undefined &&
3957
- input.cloudWatchLogGroupName !== null && { cloudWatchLogGroupName: input.cloudWatchLogGroupName }),
3958
- ...(input.s3BucketName !== undefined && input.s3BucketName !== null && { s3BucketName: input.s3BucketName }),
3959
- ...(input.s3EncryptionEnabled !== undefined &&
3960
- input.s3EncryptionEnabled !== null && { s3EncryptionEnabled: input.s3EncryptionEnabled }),
3961
- ...(input.s3KeyPrefix !== undefined && input.s3KeyPrefix !== null && { s3KeyPrefix: input.s3KeyPrefix }),
3855
+ ...(input.cloudWatchEncryptionEnabled != null && {
3856
+ cloudWatchEncryptionEnabled: input.cloudWatchEncryptionEnabled,
3857
+ }),
3858
+ ...(input.cloudWatchLogGroupName != null && { cloudWatchLogGroupName: input.cloudWatchLogGroupName }),
3859
+ ...(input.s3BucketName != null && { s3BucketName: input.s3BucketName }),
3860
+ ...(input.s3EncryptionEnabled != null && { s3EncryptionEnabled: input.s3EncryptionEnabled }),
3861
+ ...(input.s3KeyPrefix != null && { s3KeyPrefix: input.s3KeyPrefix }),
3962
3862
  };
3963
3863
  };
3964
3864
  const serializeAws_json1_1ExecuteCommandRequest = (input, context) => {
3965
3865
  return {
3966
- ...(input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster }),
3967
- ...(input.command !== undefined && input.command !== null && { command: input.command }),
3968
- ...(input.container !== undefined && input.container !== null && { container: input.container }),
3969
- ...(input.interactive !== undefined && input.interactive !== null && { interactive: input.interactive }),
3970
- ...(input.task !== undefined && input.task !== null && { task: input.task }),
3866
+ ...(input.cluster != null && { cluster: input.cluster }),
3867
+ ...(input.command != null && { command: input.command }),
3868
+ ...(input.container != null && { container: input.container }),
3869
+ ...(input.interactive != null && { interactive: input.interactive }),
3870
+ ...(input.task != null && { task: input.task }),
3971
3871
  };
3972
3872
  };
3973
3873
  const serializeAws_json1_1FirelensConfiguration = (input, context) => {
3974
3874
  return {
3975
- ...(input.options !== undefined &&
3976
- input.options !== null && {
3875
+ ...(input.options != null && {
3977
3876
  options: serializeAws_json1_1FirelensConfigurationOptionsMap(input.options, context),
3978
3877
  }),
3979
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
3878
+ ...(input.type != null && { type: input.type }),
3980
3879
  };
3981
3880
  };
3982
3881
  const serializeAws_json1_1FirelensConfigurationOptionsMap = (input, context) => {
@@ -3992,35 +3891,32 @@ const serializeAws_json1_1FirelensConfigurationOptionsMap = (input, context) =>
3992
3891
  };
3993
3892
  const serializeAws_json1_1FSxWindowsFileServerAuthorizationConfig = (input, context) => {
3994
3893
  return {
3995
- ...(input.credentialsParameter !== undefined &&
3996
- input.credentialsParameter !== null && { credentialsParameter: input.credentialsParameter }),
3997
- ...(input.domain !== undefined && input.domain !== null && { domain: input.domain }),
3894
+ ...(input.credentialsParameter != null && { credentialsParameter: input.credentialsParameter }),
3895
+ ...(input.domain != null && { domain: input.domain }),
3998
3896
  };
3999
3897
  };
4000
3898
  const serializeAws_json1_1FSxWindowsFileServerVolumeConfiguration = (input, context) => {
4001
3899
  return {
4002
- ...(input.authorizationConfig !== undefined &&
4003
- input.authorizationConfig !== null && {
3900
+ ...(input.authorizationConfig != null && {
4004
3901
  authorizationConfig: serializeAws_json1_1FSxWindowsFileServerAuthorizationConfig(input.authorizationConfig, context),
4005
3902
  }),
4006
- ...(input.fileSystemId !== undefined && input.fileSystemId !== null && { fileSystemId: input.fileSystemId }),
4007
- ...(input.rootDirectory !== undefined && input.rootDirectory !== null && { rootDirectory: input.rootDirectory }),
3903
+ ...(input.fileSystemId != null && { fileSystemId: input.fileSystemId }),
3904
+ ...(input.rootDirectory != null && { rootDirectory: input.rootDirectory }),
4008
3905
  };
4009
3906
  };
4010
3907
  const serializeAws_json1_1HealthCheck = (input, context) => {
4011
3908
  return {
4012
- ...(input.command !== undefined &&
4013
- input.command !== null && { command: serializeAws_json1_1StringList(input.command, context) }),
4014
- ...(input.interval !== undefined && input.interval !== null && { interval: input.interval }),
4015
- ...(input.retries !== undefined && input.retries !== null && { retries: input.retries }),
4016
- ...(input.startPeriod !== undefined && input.startPeriod !== null && { startPeriod: input.startPeriod }),
4017
- ...(input.timeout !== undefined && input.timeout !== null && { timeout: input.timeout }),
3909
+ ...(input.command != null && { command: serializeAws_json1_1StringList(input.command, context) }),
3910
+ ...(input.interval != null && { interval: input.interval }),
3911
+ ...(input.retries != null && { retries: input.retries }),
3912
+ ...(input.startPeriod != null && { startPeriod: input.startPeriod }),
3913
+ ...(input.timeout != null && { timeout: input.timeout }),
4018
3914
  };
4019
3915
  };
4020
3916
  const serializeAws_json1_1HostEntry = (input, context) => {
4021
3917
  return {
4022
- ...(input.hostname !== undefined && input.hostname !== null && { hostname: input.hostname }),
4023
- ...(input.ipAddress !== undefined && input.ipAddress !== null && { ipAddress: input.ipAddress }),
3918
+ ...(input.hostname != null && { hostname: input.hostname }),
3919
+ ...(input.ipAddress != null && { ipAddress: input.ipAddress }),
4024
3920
  };
4025
3921
  };
4026
3922
  const serializeAws_json1_1HostEntryList = (input, context) => {
@@ -4035,19 +3931,19 @@ const serializeAws_json1_1HostEntryList = (input, context) => {
4035
3931
  };
4036
3932
  const serializeAws_json1_1HostVolumeProperties = (input, context) => {
4037
3933
  return {
4038
- ...(input.sourcePath !== undefined && input.sourcePath !== null && { sourcePath: input.sourcePath }),
3934
+ ...(input.sourcePath != null && { sourcePath: input.sourcePath }),
4039
3935
  };
4040
3936
  };
4041
3937
  const serializeAws_json1_1InferenceAccelerator = (input, context) => {
4042
3938
  return {
4043
- ...(input.deviceName !== undefined && input.deviceName !== null && { deviceName: input.deviceName }),
4044
- ...(input.deviceType !== undefined && input.deviceType !== null && { deviceType: input.deviceType }),
3939
+ ...(input.deviceName != null && { deviceName: input.deviceName }),
3940
+ ...(input.deviceType != null && { deviceType: input.deviceType }),
4045
3941
  };
4046
3942
  };
4047
3943
  const serializeAws_json1_1InferenceAcceleratorOverride = (input, context) => {
4048
3944
  return {
4049
- ...(input.deviceName !== undefined && input.deviceName !== null && { deviceName: input.deviceName }),
4050
- ...(input.deviceType !== undefined && input.deviceType !== null && { deviceType: input.deviceType }),
3945
+ ...(input.deviceName != null && { deviceName: input.deviceName }),
3946
+ ...(input.deviceType != null && { deviceType: input.deviceType }),
4051
3947
  };
4052
3948
  };
4053
3949
  const serializeAws_json1_1InferenceAcceleratorOverrides = (input, context) => {
@@ -4072,126 +3968,114 @@ const serializeAws_json1_1InferenceAccelerators = (input, context) => {
4072
3968
  };
4073
3969
  const serializeAws_json1_1KernelCapabilities = (input, context) => {
4074
3970
  return {
4075
- ...(input.add !== undefined && input.add !== null && { add: serializeAws_json1_1StringList(input.add, context) }),
4076
- ...(input.drop !== undefined &&
4077
- input.drop !== null && { drop: serializeAws_json1_1StringList(input.drop, context) }),
3971
+ ...(input.add != null && { add: serializeAws_json1_1StringList(input.add, context) }),
3972
+ ...(input.drop != null && { drop: serializeAws_json1_1StringList(input.drop, context) }),
4078
3973
  };
4079
3974
  };
4080
3975
  const serializeAws_json1_1KeyValuePair = (input, context) => {
4081
3976
  return {
4082
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4083
- ...(input.value !== undefined && input.value !== null && { value: input.value }),
3977
+ ...(input.name != null && { name: input.name }),
3978
+ ...(input.value != null && { value: input.value }),
4084
3979
  };
4085
3980
  };
4086
3981
  const serializeAws_json1_1LinuxParameters = (input, context) => {
4087
3982
  return {
4088
- ...(input.capabilities !== undefined &&
4089
- input.capabilities !== null && {
3983
+ ...(input.capabilities != null && {
4090
3984
  capabilities: serializeAws_json1_1KernelCapabilities(input.capabilities, context),
4091
3985
  }),
4092
- ...(input.devices !== undefined &&
4093
- input.devices !== null && { devices: serializeAws_json1_1DevicesList(input.devices, context) }),
4094
- ...(input.initProcessEnabled !== undefined &&
4095
- input.initProcessEnabled !== null && { initProcessEnabled: input.initProcessEnabled }),
4096
- ...(input.maxSwap !== undefined && input.maxSwap !== null && { maxSwap: input.maxSwap }),
4097
- ...(input.sharedMemorySize !== undefined &&
4098
- input.sharedMemorySize !== null && { sharedMemorySize: input.sharedMemorySize }),
4099
- ...(input.swappiness !== undefined && input.swappiness !== null && { swappiness: input.swappiness }),
4100
- ...(input.tmpfs !== undefined &&
4101
- input.tmpfs !== null && { tmpfs: serializeAws_json1_1TmpfsList(input.tmpfs, context) }),
3986
+ ...(input.devices != null && { devices: serializeAws_json1_1DevicesList(input.devices, context) }),
3987
+ ...(input.initProcessEnabled != null && { initProcessEnabled: input.initProcessEnabled }),
3988
+ ...(input.maxSwap != null && { maxSwap: input.maxSwap }),
3989
+ ...(input.sharedMemorySize != null && { sharedMemorySize: input.sharedMemorySize }),
3990
+ ...(input.swappiness != null && { swappiness: input.swappiness }),
3991
+ ...(input.tmpfs != null && { tmpfs: serializeAws_json1_1TmpfsList(input.tmpfs, context) }),
4102
3992
  };
4103
3993
  };
4104
3994
  const serializeAws_json1_1ListAccountSettingsRequest = (input, context) => {
4105
3995
  return {
4106
- ...(input.effectiveSettings !== undefined &&
4107
- input.effectiveSettings !== null && { effectiveSettings: input.effectiveSettings }),
4108
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
4109
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4110
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4111
- ...(input.principalArn !== undefined && input.principalArn !== null && { principalArn: input.principalArn }),
4112
- ...(input.value !== undefined && input.value !== null && { value: input.value }),
3996
+ ...(input.effectiveSettings != null && { effectiveSettings: input.effectiveSettings }),
3997
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3998
+ ...(input.name != null && { name: input.name }),
3999
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4000
+ ...(input.principalArn != null && { principalArn: input.principalArn }),
4001
+ ...(input.value != null && { value: input.value }),
4113
4002
  };
4114
4003
  };
4115
4004
  const serializeAws_json1_1ListAttributesRequest = (input, context) => {
4116
4005
  return {
4117
- ...(input.attributeName !== undefined && input.attributeName !== null && { attributeName: input.attributeName }),
4118
- ...(input.attributeValue !== undefined &&
4119
- input.attributeValue !== null && { attributeValue: input.attributeValue }),
4120
- ...(input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster }),
4121
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
4122
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4123
- ...(input.targetType !== undefined && input.targetType !== null && { targetType: input.targetType }),
4006
+ ...(input.attributeName != null && { attributeName: input.attributeName }),
4007
+ ...(input.attributeValue != null && { attributeValue: input.attributeValue }),
4008
+ ...(input.cluster != null && { cluster: input.cluster }),
4009
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
4010
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4011
+ ...(input.targetType != null && { targetType: input.targetType }),
4124
4012
  };
4125
4013
  };
4126
4014
  const serializeAws_json1_1ListClustersRequest = (input, context) => {
4127
4015
  return {
4128
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
4129
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4016
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
4017
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4130
4018
  };
4131
4019
  };
4132
4020
  const serializeAws_json1_1ListContainerInstancesRequest = (input, context) => {
4133
4021
  return {
4134
- ...(input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster }),
4135
- ...(input.filter !== undefined && input.filter !== null && { filter: input.filter }),
4136
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
4137
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4138
- ...(input.status !== undefined && input.status !== null && { status: input.status }),
4022
+ ...(input.cluster != null && { cluster: input.cluster }),
4023
+ ...(input.filter != null && { filter: input.filter }),
4024
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
4025
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4026
+ ...(input.status != null && { status: input.status }),
4139
4027
  };
4140
4028
  };
4141
4029
  const serializeAws_json1_1ListServicesRequest = (input, context) => {
4142
4030
  return {
4143
- ...(input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster }),
4144
- ...(input.launchType !== undefined && input.launchType !== null && { launchType: input.launchType }),
4145
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
4146
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4147
- ...(input.schedulingStrategy !== undefined &&
4148
- input.schedulingStrategy !== null && { schedulingStrategy: input.schedulingStrategy }),
4031
+ ...(input.cluster != null && { cluster: input.cluster }),
4032
+ ...(input.launchType != null && { launchType: input.launchType }),
4033
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
4034
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4035
+ ...(input.schedulingStrategy != null && { schedulingStrategy: input.schedulingStrategy }),
4149
4036
  };
4150
4037
  };
4151
4038
  const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
4152
4039
  return {
4153
- ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
4040
+ ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
4154
4041
  };
4155
4042
  };
4156
4043
  const serializeAws_json1_1ListTaskDefinitionFamiliesRequest = (input, context) => {
4157
4044
  return {
4158
- ...(input.familyPrefix !== undefined && input.familyPrefix !== null && { familyPrefix: input.familyPrefix }),
4159
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
4160
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4161
- ...(input.status !== undefined && input.status !== null && { status: input.status }),
4045
+ ...(input.familyPrefix != null && { familyPrefix: input.familyPrefix }),
4046
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
4047
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4048
+ ...(input.status != null && { status: input.status }),
4162
4049
  };
4163
4050
  };
4164
4051
  const serializeAws_json1_1ListTaskDefinitionsRequest = (input, context) => {
4165
4052
  return {
4166
- ...(input.familyPrefix !== undefined && input.familyPrefix !== null && { familyPrefix: input.familyPrefix }),
4167
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
4168
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4169
- ...(input.sort !== undefined && input.sort !== null && { sort: input.sort }),
4170
- ...(input.status !== undefined && input.status !== null && { status: input.status }),
4053
+ ...(input.familyPrefix != null && { familyPrefix: input.familyPrefix }),
4054
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
4055
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4056
+ ...(input.sort != null && { sort: input.sort }),
4057
+ ...(input.status != null && { status: input.status }),
4171
4058
  };
4172
4059
  };
4173
4060
  const serializeAws_json1_1ListTasksRequest = (input, context) => {
4174
4061
  return {
4175
- ...(input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster }),
4176
- ...(input.containerInstance !== undefined &&
4177
- input.containerInstance !== null && { containerInstance: input.containerInstance }),
4178
- ...(input.desiredStatus !== undefined && input.desiredStatus !== null && { desiredStatus: input.desiredStatus }),
4179
- ...(input.family !== undefined && input.family !== null && { family: input.family }),
4180
- ...(input.launchType !== undefined && input.launchType !== null && { launchType: input.launchType }),
4181
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
4182
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4183
- ...(input.serviceName !== undefined && input.serviceName !== null && { serviceName: input.serviceName }),
4184
- ...(input.startedBy !== undefined && input.startedBy !== null && { startedBy: input.startedBy }),
4062
+ ...(input.cluster != null && { cluster: input.cluster }),
4063
+ ...(input.containerInstance != null && { containerInstance: input.containerInstance }),
4064
+ ...(input.desiredStatus != null && { desiredStatus: input.desiredStatus }),
4065
+ ...(input.family != null && { family: input.family }),
4066
+ ...(input.launchType != null && { launchType: input.launchType }),
4067
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
4068
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4069
+ ...(input.serviceName != null && { serviceName: input.serviceName }),
4070
+ ...(input.startedBy != null && { startedBy: input.startedBy }),
4185
4071
  };
4186
4072
  };
4187
4073
  const serializeAws_json1_1LoadBalancer = (input, context) => {
4188
4074
  return {
4189
- ...(input.containerName !== undefined && input.containerName !== null && { containerName: input.containerName }),
4190
- ...(input.containerPort !== undefined && input.containerPort !== null && { containerPort: input.containerPort }),
4191
- ...(input.loadBalancerName !== undefined &&
4192
- input.loadBalancerName !== null && { loadBalancerName: input.loadBalancerName }),
4193
- ...(input.targetGroupArn !== undefined &&
4194
- input.targetGroupArn !== null && { targetGroupArn: input.targetGroupArn }),
4075
+ ...(input.containerName != null && { containerName: input.containerName }),
4076
+ ...(input.containerPort != null && { containerPort: input.containerPort }),
4077
+ ...(input.loadBalancerName != null && { loadBalancerName: input.loadBalancerName }),
4078
+ ...(input.targetGroupArn != null && { targetGroupArn: input.targetGroupArn }),
4195
4079
  };
4196
4080
  };
4197
4081
  const serializeAws_json1_1LoadBalancers = (input, context) => {
@@ -4206,11 +4090,9 @@ const serializeAws_json1_1LoadBalancers = (input, context) => {
4206
4090
  };
4207
4091
  const serializeAws_json1_1LogConfiguration = (input, context) => {
4208
4092
  return {
4209
- ...(input.logDriver !== undefined && input.logDriver !== null && { logDriver: input.logDriver }),
4210
- ...(input.options !== undefined &&
4211
- input.options !== null && { options: serializeAws_json1_1LogConfigurationOptionsMap(input.options, context) }),
4212
- ...(input.secretOptions !== undefined &&
4213
- input.secretOptions !== null && { secretOptions: serializeAws_json1_1SecretList(input.secretOptions, context) }),
4093
+ ...(input.logDriver != null && { logDriver: input.logDriver }),
4094
+ ...(input.options != null && { options: serializeAws_json1_1LogConfigurationOptionsMap(input.options, context) }),
4095
+ ...(input.secretOptions != null && { secretOptions: serializeAws_json1_1SecretList(input.secretOptions, context) }),
4214
4096
  };
4215
4097
  };
4216
4098
  const serializeAws_json1_1LogConfigurationOptionsMap = (input, context) => {
@@ -4226,11 +4108,10 @@ const serializeAws_json1_1LogConfigurationOptionsMap = (input, context) => {
4226
4108
  };
4227
4109
  const serializeAws_json1_1ManagedAgentStateChange = (input, context) => {
4228
4110
  return {
4229
- ...(input.containerName !== undefined && input.containerName !== null && { containerName: input.containerName }),
4230
- ...(input.managedAgentName !== undefined &&
4231
- input.managedAgentName !== null && { managedAgentName: input.managedAgentName }),
4232
- ...(input.reason !== undefined && input.reason !== null && { reason: input.reason }),
4233
- ...(input.status !== undefined && input.status !== null && { status: input.status }),
4111
+ ...(input.containerName != null && { containerName: input.containerName }),
4112
+ ...(input.managedAgentName != null && { managedAgentName: input.managedAgentName }),
4113
+ ...(input.reason != null && { reason: input.reason }),
4114
+ ...(input.status != null && { status: input.status }),
4234
4115
  };
4235
4116
  };
4236
4117
  const serializeAws_json1_1ManagedAgentStateChanges = (input, context) => {
@@ -4245,22 +4126,18 @@ const serializeAws_json1_1ManagedAgentStateChanges = (input, context) => {
4245
4126
  };
4246
4127
  const serializeAws_json1_1ManagedScaling = (input, context) => {
4247
4128
  return {
4248
- ...(input.instanceWarmupPeriod !== undefined &&
4249
- input.instanceWarmupPeriod !== null && { instanceWarmupPeriod: input.instanceWarmupPeriod }),
4250
- ...(input.maximumScalingStepSize !== undefined &&
4251
- input.maximumScalingStepSize !== null && { maximumScalingStepSize: input.maximumScalingStepSize }),
4252
- ...(input.minimumScalingStepSize !== undefined &&
4253
- input.minimumScalingStepSize !== null && { minimumScalingStepSize: input.minimumScalingStepSize }),
4254
- ...(input.status !== undefined && input.status !== null && { status: input.status }),
4255
- ...(input.targetCapacity !== undefined &&
4256
- input.targetCapacity !== null && { targetCapacity: input.targetCapacity }),
4129
+ ...(input.instanceWarmupPeriod != null && { instanceWarmupPeriod: input.instanceWarmupPeriod }),
4130
+ ...(input.maximumScalingStepSize != null && { maximumScalingStepSize: input.maximumScalingStepSize }),
4131
+ ...(input.minimumScalingStepSize != null && { minimumScalingStepSize: input.minimumScalingStepSize }),
4132
+ ...(input.status != null && { status: input.status }),
4133
+ ...(input.targetCapacity != null && { targetCapacity: input.targetCapacity }),
4257
4134
  };
4258
4135
  };
4259
4136
  const serializeAws_json1_1MountPoint = (input, context) => {
4260
4137
  return {
4261
- ...(input.containerPath !== undefined && input.containerPath !== null && { containerPath: input.containerPath }),
4262
- ...(input.readOnly !== undefined && input.readOnly !== null && { readOnly: input.readOnly }),
4263
- ...(input.sourceVolume !== undefined && input.sourceVolume !== null && { sourceVolume: input.sourceVolume }),
4138
+ ...(input.containerPath != null && { containerPath: input.containerPath }),
4139
+ ...(input.readOnly != null && { readOnly: input.readOnly }),
4140
+ ...(input.sourceVolume != null && { sourceVolume: input.sourceVolume }),
4264
4141
  };
4265
4142
  };
4266
4143
  const serializeAws_json1_1MountPointList = (input, context) => {
@@ -4275,10 +4152,10 @@ const serializeAws_json1_1MountPointList = (input, context) => {
4275
4152
  };
4276
4153
  const serializeAws_json1_1NetworkBinding = (input, context) => {
4277
4154
  return {
4278
- ...(input.bindIP !== undefined && input.bindIP !== null && { bindIP: input.bindIP }),
4279
- ...(input.containerPort !== undefined && input.containerPort !== null && { containerPort: input.containerPort }),
4280
- ...(input.hostPort !== undefined && input.hostPort !== null && { hostPort: input.hostPort }),
4281
- ...(input.protocol !== undefined && input.protocol !== null && { protocol: input.protocol }),
4155
+ ...(input.bindIP != null && { bindIP: input.bindIP }),
4156
+ ...(input.containerPort != null && { containerPort: input.containerPort }),
4157
+ ...(input.hostPort != null && { hostPort: input.hostPort }),
4158
+ ...(input.protocol != null && { protocol: input.protocol }),
4282
4159
  };
4283
4160
  };
4284
4161
  const serializeAws_json1_1NetworkBindings = (input, context) => {
@@ -4293,16 +4170,15 @@ const serializeAws_json1_1NetworkBindings = (input, context) => {
4293
4170
  };
4294
4171
  const serializeAws_json1_1NetworkConfiguration = (input, context) => {
4295
4172
  return {
4296
- ...(input.awsvpcConfiguration !== undefined &&
4297
- input.awsvpcConfiguration !== null && {
4173
+ ...(input.awsvpcConfiguration != null && {
4298
4174
  awsvpcConfiguration: serializeAws_json1_1AwsVpcConfiguration(input.awsvpcConfiguration, context),
4299
4175
  }),
4300
4176
  };
4301
4177
  };
4302
4178
  const serializeAws_json1_1PlacementConstraint = (input, context) => {
4303
4179
  return {
4304
- ...(input.expression !== undefined && input.expression !== null && { expression: input.expression }),
4305
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
4180
+ ...(input.expression != null && { expression: input.expression }),
4181
+ ...(input.type != null && { type: input.type }),
4306
4182
  };
4307
4183
  };
4308
4184
  const serializeAws_json1_1PlacementConstraints = (input, context) => {
@@ -4327,14 +4203,14 @@ const serializeAws_json1_1PlacementStrategies = (input, context) => {
4327
4203
  };
4328
4204
  const serializeAws_json1_1PlacementStrategy = (input, context) => {
4329
4205
  return {
4330
- ...(input.field !== undefined && input.field !== null && { field: input.field }),
4331
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
4206
+ ...(input.field != null && { field: input.field }),
4207
+ ...(input.type != null && { type: input.type }),
4332
4208
  };
4333
4209
  };
4334
4210
  const serializeAws_json1_1PlatformDevice = (input, context) => {
4335
4211
  return {
4336
- ...(input.id !== undefined && input.id !== null && { id: input.id }),
4337
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
4212
+ ...(input.id != null && { id: input.id }),
4213
+ ...(input.type != null && { type: input.type }),
4338
4214
  };
4339
4215
  };
4340
4216
  const serializeAws_json1_1PlatformDevices = (input, context) => {
@@ -4349,9 +4225,9 @@ const serializeAws_json1_1PlatformDevices = (input, context) => {
4349
4225
  };
4350
4226
  const serializeAws_json1_1PortMapping = (input, context) => {
4351
4227
  return {
4352
- ...(input.containerPort !== undefined && input.containerPort !== null && { containerPort: input.containerPort }),
4353
- ...(input.hostPort !== undefined && input.hostPort !== null && { hostPort: input.hostPort }),
4354
- ...(input.protocol !== undefined && input.protocol !== null && { protocol: input.protocol }),
4228
+ ...(input.containerPort != null && { containerPort: input.containerPort }),
4229
+ ...(input.hostPort != null && { hostPort: input.hostPort }),
4230
+ ...(input.protocol != null && { protocol: input.protocol }),
4355
4231
  };
4356
4232
  };
4357
4233
  const serializeAws_json1_1PortMappingList = (input, context) => {
@@ -4366,12 +4242,11 @@ const serializeAws_json1_1PortMappingList = (input, context) => {
4366
4242
  };
4367
4243
  const serializeAws_json1_1ProxyConfiguration = (input, context) => {
4368
4244
  return {
4369
- ...(input.containerName !== undefined && input.containerName !== null && { containerName: input.containerName }),
4370
- ...(input.properties !== undefined &&
4371
- input.properties !== null && {
4245
+ ...(input.containerName != null && { containerName: input.containerName }),
4246
+ ...(input.properties != null && {
4372
4247
  properties: serializeAws_json1_1ProxyConfigurationProperties(input.properties, context),
4373
4248
  }),
4374
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
4249
+ ...(input.type != null && { type: input.type }),
4375
4250
  };
4376
4251
  };
4377
4252
  const serializeAws_json1_1ProxyConfigurationProperties = (input, context) => {
@@ -4386,131 +4261,109 @@ const serializeAws_json1_1ProxyConfigurationProperties = (input, context) => {
4386
4261
  };
4387
4262
  const serializeAws_json1_1PutAccountSettingDefaultRequest = (input, context) => {
4388
4263
  return {
4389
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4390
- ...(input.value !== undefined && input.value !== null && { value: input.value }),
4264
+ ...(input.name != null && { name: input.name }),
4265
+ ...(input.value != null && { value: input.value }),
4391
4266
  };
4392
4267
  };
4393
4268
  const serializeAws_json1_1PutAccountSettingRequest = (input, context) => {
4394
4269
  return {
4395
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4396
- ...(input.principalArn !== undefined && input.principalArn !== null && { principalArn: input.principalArn }),
4397
- ...(input.value !== undefined && input.value !== null && { value: input.value }),
4270
+ ...(input.name != null && { name: input.name }),
4271
+ ...(input.principalArn != null && { principalArn: input.principalArn }),
4272
+ ...(input.value != null && { value: input.value }),
4398
4273
  };
4399
4274
  };
4400
4275
  const serializeAws_json1_1PutAttributesRequest = (input, context) => {
4401
4276
  return {
4402
- ...(input.attributes !== undefined &&
4403
- input.attributes !== null && { attributes: serializeAws_json1_1Attributes(input.attributes, context) }),
4404
- ...(input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster }),
4277
+ ...(input.attributes != null && { attributes: serializeAws_json1_1Attributes(input.attributes, context) }),
4278
+ ...(input.cluster != null && { cluster: input.cluster }),
4405
4279
  };
4406
4280
  };
4407
4281
  const serializeAws_json1_1PutClusterCapacityProvidersRequest = (input, context) => {
4408
4282
  return {
4409
- ...(input.capacityProviders !== undefined &&
4410
- input.capacityProviders !== null && {
4283
+ ...(input.capacityProviders != null && {
4411
4284
  capacityProviders: serializeAws_json1_1StringList(input.capacityProviders, context),
4412
4285
  }),
4413
- ...(input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster }),
4414
- ...(input.defaultCapacityProviderStrategy !== undefined &&
4415
- input.defaultCapacityProviderStrategy !== null && {
4286
+ ...(input.cluster != null && { cluster: input.cluster }),
4287
+ ...(input.defaultCapacityProviderStrategy != null && {
4416
4288
  defaultCapacityProviderStrategy: serializeAws_json1_1CapacityProviderStrategy(input.defaultCapacityProviderStrategy, context),
4417
4289
  }),
4418
4290
  };
4419
4291
  };
4420
4292
  const serializeAws_json1_1RegisterContainerInstanceRequest = (input, context) => {
4421
4293
  return {
4422
- ...(input.attributes !== undefined &&
4423
- input.attributes !== null && { attributes: serializeAws_json1_1Attributes(input.attributes, context) }),
4424
- ...(input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster }),
4425
- ...(input.containerInstanceArn !== undefined &&
4426
- input.containerInstanceArn !== null && { containerInstanceArn: input.containerInstanceArn }),
4427
- ...(input.instanceIdentityDocument !== undefined &&
4428
- input.instanceIdentityDocument !== null && { instanceIdentityDocument: input.instanceIdentityDocument }),
4429
- ...(input.instanceIdentityDocumentSignature !== undefined &&
4430
- input.instanceIdentityDocumentSignature !== null && {
4294
+ ...(input.attributes != null && { attributes: serializeAws_json1_1Attributes(input.attributes, context) }),
4295
+ ...(input.cluster != null && { cluster: input.cluster }),
4296
+ ...(input.containerInstanceArn != null && { containerInstanceArn: input.containerInstanceArn }),
4297
+ ...(input.instanceIdentityDocument != null && { instanceIdentityDocument: input.instanceIdentityDocument }),
4298
+ ...(input.instanceIdentityDocumentSignature != null && {
4431
4299
  instanceIdentityDocumentSignature: input.instanceIdentityDocumentSignature,
4432
4300
  }),
4433
- ...(input.platformDevices !== undefined &&
4434
- input.platformDevices !== null && {
4301
+ ...(input.platformDevices != null && {
4435
4302
  platformDevices: serializeAws_json1_1PlatformDevices(input.platformDevices, context),
4436
4303
  }),
4437
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
4438
- ...(input.totalResources !== undefined &&
4439
- input.totalResources !== null && {
4304
+ ...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
4305
+ ...(input.totalResources != null && {
4440
4306
  totalResources: serializeAws_json1_1Resources(input.totalResources, context),
4441
4307
  }),
4442
- ...(input.versionInfo !== undefined &&
4443
- input.versionInfo !== null && { versionInfo: serializeAws_json1_1VersionInfo(input.versionInfo, context) }),
4308
+ ...(input.versionInfo != null && { versionInfo: serializeAws_json1_1VersionInfo(input.versionInfo, context) }),
4444
4309
  };
4445
4310
  };
4446
4311
  const serializeAws_json1_1RegisterTaskDefinitionRequest = (input, context) => {
4447
4312
  return {
4448
- ...(input.containerDefinitions !== undefined &&
4449
- input.containerDefinitions !== null && {
4313
+ ...(input.containerDefinitions != null && {
4450
4314
  containerDefinitions: serializeAws_json1_1ContainerDefinitions(input.containerDefinitions, context),
4451
4315
  }),
4452
- ...(input.cpu !== undefined && input.cpu !== null && { cpu: input.cpu }),
4453
- ...(input.ephemeralStorage !== undefined &&
4454
- input.ephemeralStorage !== null && {
4316
+ ...(input.cpu != null && { cpu: input.cpu }),
4317
+ ...(input.ephemeralStorage != null && {
4455
4318
  ephemeralStorage: serializeAws_json1_1EphemeralStorage(input.ephemeralStorage, context),
4456
4319
  }),
4457
- ...(input.executionRoleArn !== undefined &&
4458
- input.executionRoleArn !== null && { executionRoleArn: input.executionRoleArn }),
4459
- ...(input.family !== undefined && input.family !== null && { family: input.family }),
4460
- ...(input.inferenceAccelerators !== undefined &&
4461
- input.inferenceAccelerators !== null && {
4320
+ ...(input.executionRoleArn != null && { executionRoleArn: input.executionRoleArn }),
4321
+ ...(input.family != null && { family: input.family }),
4322
+ ...(input.inferenceAccelerators != null && {
4462
4323
  inferenceAccelerators: serializeAws_json1_1InferenceAccelerators(input.inferenceAccelerators, context),
4463
4324
  }),
4464
- ...(input.ipcMode !== undefined && input.ipcMode !== null && { ipcMode: input.ipcMode }),
4465
- ...(input.memory !== undefined && input.memory !== null && { memory: input.memory }),
4466
- ...(input.networkMode !== undefined && input.networkMode !== null && { networkMode: input.networkMode }),
4467
- ...(input.pidMode !== undefined && input.pidMode !== null && { pidMode: input.pidMode }),
4468
- ...(input.placementConstraints !== undefined &&
4469
- input.placementConstraints !== null && {
4325
+ ...(input.ipcMode != null && { ipcMode: input.ipcMode }),
4326
+ ...(input.memory != null && { memory: input.memory }),
4327
+ ...(input.networkMode != null && { networkMode: input.networkMode }),
4328
+ ...(input.pidMode != null && { pidMode: input.pidMode }),
4329
+ ...(input.placementConstraints != null && {
4470
4330
  placementConstraints: serializeAws_json1_1TaskDefinitionPlacementConstraints(input.placementConstraints, context),
4471
4331
  }),
4472
- ...(input.proxyConfiguration !== undefined &&
4473
- input.proxyConfiguration !== null && {
4332
+ ...(input.proxyConfiguration != null && {
4474
4333
  proxyConfiguration: serializeAws_json1_1ProxyConfiguration(input.proxyConfiguration, context),
4475
4334
  }),
4476
- ...(input.requiresCompatibilities !== undefined &&
4477
- input.requiresCompatibilities !== null && {
4335
+ ...(input.requiresCompatibilities != null && {
4478
4336
  requiresCompatibilities: serializeAws_json1_1CompatibilityList(input.requiresCompatibilities, context),
4479
4337
  }),
4480
- ...(input.runtimePlatform !== undefined &&
4481
- input.runtimePlatform !== null && {
4338
+ ...(input.runtimePlatform != null && {
4482
4339
  runtimePlatform: serializeAws_json1_1RuntimePlatform(input.runtimePlatform, context),
4483
4340
  }),
4484
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
4485
- ...(input.taskRoleArn !== undefined && input.taskRoleArn !== null && { taskRoleArn: input.taskRoleArn }),
4486
- ...(input.volumes !== undefined &&
4487
- input.volumes !== null && { volumes: serializeAws_json1_1VolumeList(input.volumes, context) }),
4341
+ ...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
4342
+ ...(input.taskRoleArn != null && { taskRoleArn: input.taskRoleArn }),
4343
+ ...(input.volumes != null && { volumes: serializeAws_json1_1VolumeList(input.volumes, context) }),
4488
4344
  };
4489
4345
  };
4490
4346
  const serializeAws_json1_1RepositoryCredentials = (input, context) => {
4491
4347
  return {
4492
- ...(input.credentialsParameter !== undefined &&
4493
- input.credentialsParameter !== null && { credentialsParameter: input.credentialsParameter }),
4348
+ ...(input.credentialsParameter != null && { credentialsParameter: input.credentialsParameter }),
4494
4349
  };
4495
4350
  };
4496
4351
  const serializeAws_json1_1Resource = (input, context) => {
4497
4352
  return {
4498
- ...(input.doubleValue !== undefined &&
4499
- input.doubleValue !== null && { doubleValue: (0, smithy_client_1.serializeFloat)(input.doubleValue) }),
4500
- ...(input.integerValue !== undefined && input.integerValue !== null && { integerValue: input.integerValue }),
4501
- ...(input.longValue !== undefined && input.longValue !== null && { longValue: input.longValue }),
4502
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4503
- ...(input.stringSetValue !== undefined &&
4504
- input.stringSetValue !== null && {
4353
+ ...(input.doubleValue != null && { doubleValue: (0, smithy_client_1.serializeFloat)(input.doubleValue) }),
4354
+ ...(input.integerValue != null && { integerValue: input.integerValue }),
4355
+ ...(input.longValue != null && { longValue: input.longValue }),
4356
+ ...(input.name != null && { name: input.name }),
4357
+ ...(input.stringSetValue != null && {
4505
4358
  stringSetValue: serializeAws_json1_1StringList(input.stringSetValue, context),
4506
4359
  }),
4507
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
4360
+ ...(input.type != null && { type: input.type }),
4508
4361
  };
4509
4362
  };
4510
4363
  const serializeAws_json1_1ResourceRequirement = (input, context) => {
4511
4364
  return {
4512
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
4513
- ...(input.value !== undefined && input.value !== null && { value: input.value }),
4365
+ ...(input.type != null && { type: input.type }),
4366
+ ...(input.value != null && { value: input.value }),
4514
4367
  };
4515
4368
  };
4516
4369
  const serializeAws_json1_1ResourceRequirements = (input, context) => {
@@ -4535,60 +4388,49 @@ const serializeAws_json1_1Resources = (input, context) => {
4535
4388
  };
4536
4389
  const serializeAws_json1_1RunTaskRequest = (input, context) => {
4537
4390
  return {
4538
- ...(input.capacityProviderStrategy !== undefined &&
4539
- input.capacityProviderStrategy !== null && {
4391
+ ...(input.capacityProviderStrategy != null && {
4540
4392
  capacityProviderStrategy: serializeAws_json1_1CapacityProviderStrategy(input.capacityProviderStrategy, context),
4541
4393
  }),
4542
- ...(input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster }),
4543
- ...(input.count !== undefined && input.count !== null && { count: input.count }),
4544
- ...(input.enableECSManagedTags !== undefined &&
4545
- input.enableECSManagedTags !== null && { enableECSManagedTags: input.enableECSManagedTags }),
4546
- ...(input.enableExecuteCommand !== undefined &&
4547
- input.enableExecuteCommand !== null && { enableExecuteCommand: input.enableExecuteCommand }),
4548
- ...(input.group !== undefined && input.group !== null && { group: input.group }),
4549
- ...(input.launchType !== undefined && input.launchType !== null && { launchType: input.launchType }),
4550
- ...(input.networkConfiguration !== undefined &&
4551
- input.networkConfiguration !== null && {
4394
+ ...(input.cluster != null && { cluster: input.cluster }),
4395
+ ...(input.count != null && { count: input.count }),
4396
+ ...(input.enableECSManagedTags != null && { enableECSManagedTags: input.enableECSManagedTags }),
4397
+ ...(input.enableExecuteCommand != null && { enableExecuteCommand: input.enableExecuteCommand }),
4398
+ ...(input.group != null && { group: input.group }),
4399
+ ...(input.launchType != null && { launchType: input.launchType }),
4400
+ ...(input.networkConfiguration != null && {
4552
4401
  networkConfiguration: serializeAws_json1_1NetworkConfiguration(input.networkConfiguration, context),
4553
4402
  }),
4554
- ...(input.overrides !== undefined &&
4555
- input.overrides !== null && { overrides: serializeAws_json1_1TaskOverride(input.overrides, context) }),
4556
- ...(input.placementConstraints !== undefined &&
4557
- input.placementConstraints !== null && {
4403
+ ...(input.overrides != null && { overrides: serializeAws_json1_1TaskOverride(input.overrides, context) }),
4404
+ ...(input.placementConstraints != null && {
4558
4405
  placementConstraints: serializeAws_json1_1PlacementConstraints(input.placementConstraints, context),
4559
4406
  }),
4560
- ...(input.placementStrategy !== undefined &&
4561
- input.placementStrategy !== null && {
4407
+ ...(input.placementStrategy != null && {
4562
4408
  placementStrategy: serializeAws_json1_1PlacementStrategies(input.placementStrategy, context),
4563
4409
  }),
4564
- ...(input.platformVersion !== undefined &&
4565
- input.platformVersion !== null && { platformVersion: input.platformVersion }),
4566
- ...(input.propagateTags !== undefined && input.propagateTags !== null && { propagateTags: input.propagateTags }),
4567
- ...(input.referenceId !== undefined && input.referenceId !== null && { referenceId: input.referenceId }),
4568
- ...(input.startedBy !== undefined && input.startedBy !== null && { startedBy: input.startedBy }),
4569
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
4570
- ...(input.taskDefinition !== undefined &&
4571
- input.taskDefinition !== null && { taskDefinition: input.taskDefinition }),
4410
+ ...(input.platformVersion != null && { platformVersion: input.platformVersion }),
4411
+ ...(input.propagateTags != null && { propagateTags: input.propagateTags }),
4412
+ ...(input.referenceId != null && { referenceId: input.referenceId }),
4413
+ ...(input.startedBy != null && { startedBy: input.startedBy }),
4414
+ ...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
4415
+ ...(input.taskDefinition != null && { taskDefinition: input.taskDefinition }),
4572
4416
  };
4573
4417
  };
4574
4418
  const serializeAws_json1_1RuntimePlatform = (input, context) => {
4575
4419
  return {
4576
- ...(input.cpuArchitecture !== undefined &&
4577
- input.cpuArchitecture !== null && { cpuArchitecture: input.cpuArchitecture }),
4578
- ...(input.operatingSystemFamily !== undefined &&
4579
- input.operatingSystemFamily !== null && { operatingSystemFamily: input.operatingSystemFamily }),
4420
+ ...(input.cpuArchitecture != null && { cpuArchitecture: input.cpuArchitecture }),
4421
+ ...(input.operatingSystemFamily != null && { operatingSystemFamily: input.operatingSystemFamily }),
4580
4422
  };
4581
4423
  };
4582
4424
  const serializeAws_json1_1Scale = (input, context) => {
4583
4425
  return {
4584
- ...(input.unit !== undefined && input.unit !== null && { unit: input.unit }),
4585
- ...(input.value !== undefined && input.value !== null && { value: (0, smithy_client_1.serializeFloat)(input.value) }),
4426
+ ...(input.unit != null && { unit: input.unit }),
4427
+ ...(input.value != null && { value: (0, smithy_client_1.serializeFloat)(input.value) }),
4586
4428
  };
4587
4429
  };
4588
4430
  const serializeAws_json1_1Secret = (input, context) => {
4589
4431
  return {
4590
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4591
- ...(input.valueFrom !== undefined && input.valueFrom !== null && { valueFrom: input.valueFrom }),
4432
+ ...(input.name != null && { name: input.name }),
4433
+ ...(input.valueFrom != null && { valueFrom: input.valueFrom }),
4592
4434
  };
4593
4435
  };
4594
4436
  const serializeAws_json1_1SecretList = (input, context) => {
@@ -4623,43 +4465,37 @@ const serializeAws_json1_1ServiceRegistries = (input, context) => {
4623
4465
  };
4624
4466
  const serializeAws_json1_1ServiceRegistry = (input, context) => {
4625
4467
  return {
4626
- ...(input.containerName !== undefined && input.containerName !== null && { containerName: input.containerName }),
4627
- ...(input.containerPort !== undefined && input.containerPort !== null && { containerPort: input.containerPort }),
4628
- ...(input.port !== undefined && input.port !== null && { port: input.port }),
4629
- ...(input.registryArn !== undefined && input.registryArn !== null && { registryArn: input.registryArn }),
4468
+ ...(input.containerName != null && { containerName: input.containerName }),
4469
+ ...(input.containerPort != null && { containerPort: input.containerPort }),
4470
+ ...(input.port != null && { port: input.port }),
4471
+ ...(input.registryArn != null && { registryArn: input.registryArn }),
4630
4472
  };
4631
4473
  };
4632
4474
  const serializeAws_json1_1StartTaskRequest = (input, context) => {
4633
4475
  return {
4634
- ...(input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster }),
4635
- ...(input.containerInstances !== undefined &&
4636
- input.containerInstances !== null && {
4476
+ ...(input.cluster != null && { cluster: input.cluster }),
4477
+ ...(input.containerInstances != null && {
4637
4478
  containerInstances: serializeAws_json1_1StringList(input.containerInstances, context),
4638
4479
  }),
4639
- ...(input.enableECSManagedTags !== undefined &&
4640
- input.enableECSManagedTags !== null && { enableECSManagedTags: input.enableECSManagedTags }),
4641
- ...(input.enableExecuteCommand !== undefined &&
4642
- input.enableExecuteCommand !== null && { enableExecuteCommand: input.enableExecuteCommand }),
4643
- ...(input.group !== undefined && input.group !== null && { group: input.group }),
4644
- ...(input.networkConfiguration !== undefined &&
4645
- input.networkConfiguration !== null && {
4480
+ ...(input.enableECSManagedTags != null && { enableECSManagedTags: input.enableECSManagedTags }),
4481
+ ...(input.enableExecuteCommand != null && { enableExecuteCommand: input.enableExecuteCommand }),
4482
+ ...(input.group != null && { group: input.group }),
4483
+ ...(input.networkConfiguration != null && {
4646
4484
  networkConfiguration: serializeAws_json1_1NetworkConfiguration(input.networkConfiguration, context),
4647
4485
  }),
4648
- ...(input.overrides !== undefined &&
4649
- input.overrides !== null && { overrides: serializeAws_json1_1TaskOverride(input.overrides, context) }),
4650
- ...(input.propagateTags !== undefined && input.propagateTags !== null && { propagateTags: input.propagateTags }),
4651
- ...(input.referenceId !== undefined && input.referenceId !== null && { referenceId: input.referenceId }),
4652
- ...(input.startedBy !== undefined && input.startedBy !== null && { startedBy: input.startedBy }),
4653
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
4654
- ...(input.taskDefinition !== undefined &&
4655
- input.taskDefinition !== null && { taskDefinition: input.taskDefinition }),
4486
+ ...(input.overrides != null && { overrides: serializeAws_json1_1TaskOverride(input.overrides, context) }),
4487
+ ...(input.propagateTags != null && { propagateTags: input.propagateTags }),
4488
+ ...(input.referenceId != null && { referenceId: input.referenceId }),
4489
+ ...(input.startedBy != null && { startedBy: input.startedBy }),
4490
+ ...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
4491
+ ...(input.taskDefinition != null && { taskDefinition: input.taskDefinition }),
4656
4492
  };
4657
4493
  };
4658
4494
  const serializeAws_json1_1StopTaskRequest = (input, context) => {
4659
4495
  return {
4660
- ...(input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster }),
4661
- ...(input.reason !== undefined && input.reason !== null && { reason: input.reason }),
4662
- ...(input.task !== undefined && input.task !== null && { task: input.task }),
4496
+ ...(input.cluster != null && { cluster: input.cluster }),
4497
+ ...(input.reason != null && { reason: input.reason }),
4498
+ ...(input.task != null && { task: input.task }),
4663
4499
  };
4664
4500
  };
4665
4501
  const serializeAws_json1_1StringList = (input, context) => {
@@ -4685,60 +4521,52 @@ const serializeAws_json1_1StringMap = (input, context) => {
4685
4521
  };
4686
4522
  const serializeAws_json1_1SubmitAttachmentStateChangesRequest = (input, context) => {
4687
4523
  return {
4688
- ...(input.attachments !== undefined &&
4689
- input.attachments !== null && {
4524
+ ...(input.attachments != null && {
4690
4525
  attachments: serializeAws_json1_1AttachmentStateChanges(input.attachments, context),
4691
4526
  }),
4692
- ...(input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster }),
4527
+ ...(input.cluster != null && { cluster: input.cluster }),
4693
4528
  };
4694
4529
  };
4695
4530
  const serializeAws_json1_1SubmitContainerStateChangeRequest = (input, context) => {
4696
4531
  return {
4697
- ...(input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster }),
4698
- ...(input.containerName !== undefined && input.containerName !== null && { containerName: input.containerName }),
4699
- ...(input.exitCode !== undefined && input.exitCode !== null && { exitCode: input.exitCode }),
4700
- ...(input.networkBindings !== undefined &&
4701
- input.networkBindings !== null && {
4532
+ ...(input.cluster != null && { cluster: input.cluster }),
4533
+ ...(input.containerName != null && { containerName: input.containerName }),
4534
+ ...(input.exitCode != null && { exitCode: input.exitCode }),
4535
+ ...(input.networkBindings != null && {
4702
4536
  networkBindings: serializeAws_json1_1NetworkBindings(input.networkBindings, context),
4703
4537
  }),
4704
- ...(input.reason !== undefined && input.reason !== null && { reason: input.reason }),
4705
- ...(input.runtimeId !== undefined && input.runtimeId !== null && { runtimeId: input.runtimeId }),
4706
- ...(input.status !== undefined && input.status !== null && { status: input.status }),
4707
- ...(input.task !== undefined && input.task !== null && { task: input.task }),
4538
+ ...(input.reason != null && { reason: input.reason }),
4539
+ ...(input.runtimeId != null && { runtimeId: input.runtimeId }),
4540
+ ...(input.status != null && { status: input.status }),
4541
+ ...(input.task != null && { task: input.task }),
4708
4542
  };
4709
4543
  };
4710
4544
  const serializeAws_json1_1SubmitTaskStateChangeRequest = (input, context) => {
4711
4545
  return {
4712
- ...(input.attachments !== undefined &&
4713
- input.attachments !== null && {
4546
+ ...(input.attachments != null && {
4714
4547
  attachments: serializeAws_json1_1AttachmentStateChanges(input.attachments, context),
4715
4548
  }),
4716
- ...(input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster }),
4717
- ...(input.containers !== undefined &&
4718
- input.containers !== null && {
4549
+ ...(input.cluster != null && { cluster: input.cluster }),
4550
+ ...(input.containers != null && {
4719
4551
  containers: serializeAws_json1_1ContainerStateChanges(input.containers, context),
4720
4552
  }),
4721
- ...(input.executionStoppedAt !== undefined &&
4722
- input.executionStoppedAt !== null && {
4553
+ ...(input.executionStoppedAt != null && {
4723
4554
  executionStoppedAt: Math.round(input.executionStoppedAt.getTime() / 1000),
4724
4555
  }),
4725
- ...(input.managedAgents !== undefined &&
4726
- input.managedAgents !== null && {
4556
+ ...(input.managedAgents != null && {
4727
4557
  managedAgents: serializeAws_json1_1ManagedAgentStateChanges(input.managedAgents, context),
4728
4558
  }),
4729
- ...(input.pullStartedAt !== undefined &&
4730
- input.pullStartedAt !== null && { pullStartedAt: Math.round(input.pullStartedAt.getTime() / 1000) }),
4731
- ...(input.pullStoppedAt !== undefined &&
4732
- input.pullStoppedAt !== null && { pullStoppedAt: Math.round(input.pullStoppedAt.getTime() / 1000) }),
4733
- ...(input.reason !== undefined && input.reason !== null && { reason: input.reason }),
4734
- ...(input.status !== undefined && input.status !== null && { status: input.status }),
4735
- ...(input.task !== undefined && input.task !== null && { task: input.task }),
4559
+ ...(input.pullStartedAt != null && { pullStartedAt: Math.round(input.pullStartedAt.getTime() / 1000) }),
4560
+ ...(input.pullStoppedAt != null && { pullStoppedAt: Math.round(input.pullStoppedAt.getTime() / 1000) }),
4561
+ ...(input.reason != null && { reason: input.reason }),
4562
+ ...(input.status != null && { status: input.status }),
4563
+ ...(input.task != null && { task: input.task }),
4736
4564
  };
4737
4565
  };
4738
4566
  const serializeAws_json1_1SystemControl = (input, context) => {
4739
4567
  return {
4740
- ...(input.namespace !== undefined && input.namespace !== null && { namespace: input.namespace }),
4741
- ...(input.value !== undefined && input.value !== null && { value: input.value }),
4568
+ ...(input.namespace != null && { namespace: input.namespace }),
4569
+ ...(input.value != null && { value: input.value }),
4742
4570
  };
4743
4571
  };
4744
4572
  const serializeAws_json1_1SystemControls = (input, context) => {
@@ -4753,8 +4581,8 @@ const serializeAws_json1_1SystemControls = (input, context) => {
4753
4581
  };
4754
4582
  const serializeAws_json1_1Tag = (input, context) => {
4755
4583
  return {
4756
- ...(input.key !== undefined && input.key !== null && { key: input.key }),
4757
- ...(input.value !== undefined && input.value !== null && { value: input.value }),
4584
+ ...(input.key != null && { key: input.key }),
4585
+ ...(input.value != null && { value: input.value }),
4758
4586
  };
4759
4587
  };
4760
4588
  const serializeAws_json1_1TagKeys = (input, context) => {
@@ -4769,8 +4597,8 @@ const serializeAws_json1_1TagKeys = (input, context) => {
4769
4597
  };
4770
4598
  const serializeAws_json1_1TagResourceRequest = (input, context) => {
4771
4599
  return {
4772
- ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
4773
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
4600
+ ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
4601
+ ...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
4774
4602
  };
4775
4603
  };
4776
4604
  const serializeAws_json1_1Tags = (input, context) => {
@@ -4795,8 +4623,8 @@ const serializeAws_json1_1TaskDefinitionFieldList = (input, context) => {
4795
4623
  };
4796
4624
  const serializeAws_json1_1TaskDefinitionPlacementConstraint = (input, context) => {
4797
4625
  return {
4798
- ...(input.expression !== undefined && input.expression !== null && { expression: input.expression }),
4799
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
4626
+ ...(input.expression != null && { expression: input.expression }),
4627
+ ...(input.type != null && { type: input.type }),
4800
4628
  };
4801
4629
  };
4802
4630
  const serializeAws_json1_1TaskDefinitionPlacementConstraints = (input, context) => {
@@ -4821,23 +4649,19 @@ const serializeAws_json1_1TaskFieldList = (input, context) => {
4821
4649
  };
4822
4650
  const serializeAws_json1_1TaskOverride = (input, context) => {
4823
4651
  return {
4824
- ...(input.containerOverrides !== undefined &&
4825
- input.containerOverrides !== null && {
4652
+ ...(input.containerOverrides != null && {
4826
4653
  containerOverrides: serializeAws_json1_1ContainerOverrides(input.containerOverrides, context),
4827
4654
  }),
4828
- ...(input.cpu !== undefined && input.cpu !== null && { cpu: input.cpu }),
4829
- ...(input.ephemeralStorage !== undefined &&
4830
- input.ephemeralStorage !== null && {
4655
+ ...(input.cpu != null && { cpu: input.cpu }),
4656
+ ...(input.ephemeralStorage != null && {
4831
4657
  ephemeralStorage: serializeAws_json1_1EphemeralStorage(input.ephemeralStorage, context),
4832
4658
  }),
4833
- ...(input.executionRoleArn !== undefined &&
4834
- input.executionRoleArn !== null && { executionRoleArn: input.executionRoleArn }),
4835
- ...(input.inferenceAcceleratorOverrides !== undefined &&
4836
- input.inferenceAcceleratorOverrides !== null && {
4659
+ ...(input.executionRoleArn != null && { executionRoleArn: input.executionRoleArn }),
4660
+ ...(input.inferenceAcceleratorOverrides != null && {
4837
4661
  inferenceAcceleratorOverrides: serializeAws_json1_1InferenceAcceleratorOverrides(input.inferenceAcceleratorOverrides, context),
4838
4662
  }),
4839
- ...(input.memory !== undefined && input.memory !== null && { memory: input.memory }),
4840
- ...(input.taskRoleArn !== undefined && input.taskRoleArn !== null && { taskRoleArn: input.taskRoleArn }),
4663
+ ...(input.memory != null && { memory: input.memory }),
4664
+ ...(input.taskRoleArn != null && { taskRoleArn: input.taskRoleArn }),
4841
4665
  };
4842
4666
  };
4843
4667
  const serializeAws_json1_1TaskSetFieldList = (input, context) => {
@@ -4852,10 +4676,9 @@ const serializeAws_json1_1TaskSetFieldList = (input, context) => {
4852
4676
  };
4853
4677
  const serializeAws_json1_1Tmpfs = (input, context) => {
4854
4678
  return {
4855
- ...(input.containerPath !== undefined && input.containerPath !== null && { containerPath: input.containerPath }),
4856
- ...(input.mountOptions !== undefined &&
4857
- input.mountOptions !== null && { mountOptions: serializeAws_json1_1StringList(input.mountOptions, context) }),
4858
- ...(input.size !== undefined && input.size !== null && { size: input.size }),
4679
+ ...(input.containerPath != null && { containerPath: input.containerPath }),
4680
+ ...(input.mountOptions != null && { mountOptions: serializeAws_json1_1StringList(input.mountOptions, context) }),
4681
+ ...(input.size != null && { size: input.size }),
4859
4682
  };
4860
4683
  };
4861
4684
  const serializeAws_json1_1TmpfsList = (input, context) => {
@@ -4870,9 +4693,9 @@ const serializeAws_json1_1TmpfsList = (input, context) => {
4870
4693
  };
4871
4694
  const serializeAws_json1_1Ulimit = (input, context) => {
4872
4695
  return {
4873
- ...(input.hardLimit !== undefined && input.hardLimit !== null && { hardLimit: input.hardLimit }),
4874
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4875
- ...(input.softLimit !== undefined && input.softLimit !== null && { softLimit: input.softLimit }),
4696
+ ...(input.hardLimit != null && { hardLimit: input.hardLimit }),
4697
+ ...(input.name != null && { name: input.name }),
4698
+ ...(input.softLimit != null && { softLimit: input.softLimit }),
4876
4699
  };
4877
4700
  };
4878
4701
  const serializeAws_json1_1UlimitList = (input, context) => {
@@ -4887,153 +4710,126 @@ const serializeAws_json1_1UlimitList = (input, context) => {
4887
4710
  };
4888
4711
  const serializeAws_json1_1UntagResourceRequest = (input, context) => {
4889
4712
  return {
4890
- ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
4891
- ...(input.tagKeys !== undefined &&
4892
- input.tagKeys !== null && { tagKeys: serializeAws_json1_1TagKeys(input.tagKeys, context) }),
4713
+ ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
4714
+ ...(input.tagKeys != null && { tagKeys: serializeAws_json1_1TagKeys(input.tagKeys, context) }),
4893
4715
  };
4894
4716
  };
4895
4717
  const serializeAws_json1_1UpdateCapacityProviderRequest = (input, context) => {
4896
4718
  return {
4897
- ...(input.autoScalingGroupProvider !== undefined &&
4898
- input.autoScalingGroupProvider !== null && {
4719
+ ...(input.autoScalingGroupProvider != null && {
4899
4720
  autoScalingGroupProvider: serializeAws_json1_1AutoScalingGroupProviderUpdate(input.autoScalingGroupProvider, context),
4900
4721
  }),
4901
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4722
+ ...(input.name != null && { name: input.name }),
4902
4723
  };
4903
4724
  };
4904
4725
  const serializeAws_json1_1UpdateClusterRequest = (input, context) => {
4905
4726
  return {
4906
- ...(input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster }),
4907
- ...(input.configuration !== undefined &&
4908
- input.configuration !== null && {
4727
+ ...(input.cluster != null && { cluster: input.cluster }),
4728
+ ...(input.configuration != null && {
4909
4729
  configuration: serializeAws_json1_1ClusterConfiguration(input.configuration, context),
4910
4730
  }),
4911
- ...(input.settings !== undefined &&
4912
- input.settings !== null && { settings: serializeAws_json1_1ClusterSettings(input.settings, context) }),
4731
+ ...(input.settings != null && { settings: serializeAws_json1_1ClusterSettings(input.settings, context) }),
4913
4732
  };
4914
4733
  };
4915
4734
  const serializeAws_json1_1UpdateClusterSettingsRequest = (input, context) => {
4916
4735
  return {
4917
- ...(input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster }),
4918
- ...(input.settings !== undefined &&
4919
- input.settings !== null && { settings: serializeAws_json1_1ClusterSettings(input.settings, context) }),
4736
+ ...(input.cluster != null && { cluster: input.cluster }),
4737
+ ...(input.settings != null && { settings: serializeAws_json1_1ClusterSettings(input.settings, context) }),
4920
4738
  };
4921
4739
  };
4922
4740
  const serializeAws_json1_1UpdateContainerAgentRequest = (input, context) => {
4923
4741
  return {
4924
- ...(input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster }),
4925
- ...(input.containerInstance !== undefined &&
4926
- input.containerInstance !== null && { containerInstance: input.containerInstance }),
4742
+ ...(input.cluster != null && { cluster: input.cluster }),
4743
+ ...(input.containerInstance != null && { containerInstance: input.containerInstance }),
4927
4744
  };
4928
4745
  };
4929
4746
  const serializeAws_json1_1UpdateContainerInstancesStateRequest = (input, context) => {
4930
4747
  return {
4931
- ...(input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster }),
4932
- ...(input.containerInstances !== undefined &&
4933
- input.containerInstances !== null && {
4748
+ ...(input.cluster != null && { cluster: input.cluster }),
4749
+ ...(input.containerInstances != null && {
4934
4750
  containerInstances: serializeAws_json1_1StringList(input.containerInstances, context),
4935
4751
  }),
4936
- ...(input.status !== undefined && input.status !== null && { status: input.status }),
4752
+ ...(input.status != null && { status: input.status }),
4937
4753
  };
4938
4754
  };
4939
4755
  const serializeAws_json1_1UpdateServicePrimaryTaskSetRequest = (input, context) => {
4940
4756
  return {
4941
- ...(input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster }),
4942
- ...(input.primaryTaskSet !== undefined &&
4943
- input.primaryTaskSet !== null && { primaryTaskSet: input.primaryTaskSet }),
4944
- ...(input.service !== undefined && input.service !== null && { service: input.service }),
4757
+ ...(input.cluster != null && { cluster: input.cluster }),
4758
+ ...(input.primaryTaskSet != null && { primaryTaskSet: input.primaryTaskSet }),
4759
+ ...(input.service != null && { service: input.service }),
4945
4760
  };
4946
4761
  };
4947
4762
  const serializeAws_json1_1UpdateServiceRequest = (input, context) => {
4948
4763
  return {
4949
- ...(input.capacityProviderStrategy !== undefined &&
4950
- input.capacityProviderStrategy !== null && {
4764
+ ...(input.capacityProviderStrategy != null && {
4951
4765
  capacityProviderStrategy: serializeAws_json1_1CapacityProviderStrategy(input.capacityProviderStrategy, context),
4952
4766
  }),
4953
- ...(input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster }),
4954
- ...(input.deploymentConfiguration !== undefined &&
4955
- input.deploymentConfiguration !== null && {
4767
+ ...(input.cluster != null && { cluster: input.cluster }),
4768
+ ...(input.deploymentConfiguration != null && {
4956
4769
  deploymentConfiguration: serializeAws_json1_1DeploymentConfiguration(input.deploymentConfiguration, context),
4957
4770
  }),
4958
- ...(input.desiredCount !== undefined && input.desiredCount !== null && { desiredCount: input.desiredCount }),
4959
- ...(input.enableECSManagedTags !== undefined &&
4960
- input.enableECSManagedTags !== null && { enableECSManagedTags: input.enableECSManagedTags }),
4961
- ...(input.enableExecuteCommand !== undefined &&
4962
- input.enableExecuteCommand !== null && { enableExecuteCommand: input.enableExecuteCommand }),
4963
- ...(input.forceNewDeployment !== undefined &&
4964
- input.forceNewDeployment !== null && { forceNewDeployment: input.forceNewDeployment }),
4965
- ...(input.healthCheckGracePeriodSeconds !== undefined &&
4966
- input.healthCheckGracePeriodSeconds !== null && {
4771
+ ...(input.desiredCount != null && { desiredCount: input.desiredCount }),
4772
+ ...(input.enableECSManagedTags != null && { enableECSManagedTags: input.enableECSManagedTags }),
4773
+ ...(input.enableExecuteCommand != null && { enableExecuteCommand: input.enableExecuteCommand }),
4774
+ ...(input.forceNewDeployment != null && { forceNewDeployment: input.forceNewDeployment }),
4775
+ ...(input.healthCheckGracePeriodSeconds != null && {
4967
4776
  healthCheckGracePeriodSeconds: input.healthCheckGracePeriodSeconds,
4968
4777
  }),
4969
- ...(input.loadBalancers !== undefined &&
4970
- input.loadBalancers !== null && {
4778
+ ...(input.loadBalancers != null && {
4971
4779
  loadBalancers: serializeAws_json1_1LoadBalancers(input.loadBalancers, context),
4972
4780
  }),
4973
- ...(input.networkConfiguration !== undefined &&
4974
- input.networkConfiguration !== null && {
4781
+ ...(input.networkConfiguration != null && {
4975
4782
  networkConfiguration: serializeAws_json1_1NetworkConfiguration(input.networkConfiguration, context),
4976
4783
  }),
4977
- ...(input.placementConstraints !== undefined &&
4978
- input.placementConstraints !== null && {
4784
+ ...(input.placementConstraints != null && {
4979
4785
  placementConstraints: serializeAws_json1_1PlacementConstraints(input.placementConstraints, context),
4980
4786
  }),
4981
- ...(input.placementStrategy !== undefined &&
4982
- input.placementStrategy !== null && {
4787
+ ...(input.placementStrategy != null && {
4983
4788
  placementStrategy: serializeAws_json1_1PlacementStrategies(input.placementStrategy, context),
4984
4789
  }),
4985
- ...(input.platformVersion !== undefined &&
4986
- input.platformVersion !== null && { platformVersion: input.platformVersion }),
4987
- ...(input.propagateTags !== undefined && input.propagateTags !== null && { propagateTags: input.propagateTags }),
4988
- ...(input.service !== undefined && input.service !== null && { service: input.service }),
4989
- ...(input.serviceRegistries !== undefined &&
4990
- input.serviceRegistries !== null && {
4790
+ ...(input.platformVersion != null && { platformVersion: input.platformVersion }),
4791
+ ...(input.propagateTags != null && { propagateTags: input.propagateTags }),
4792
+ ...(input.service != null && { service: input.service }),
4793
+ ...(input.serviceRegistries != null && {
4991
4794
  serviceRegistries: serializeAws_json1_1ServiceRegistries(input.serviceRegistries, context),
4992
4795
  }),
4993
- ...(input.taskDefinition !== undefined &&
4994
- input.taskDefinition !== null && { taskDefinition: input.taskDefinition }),
4796
+ ...(input.taskDefinition != null && { taskDefinition: input.taskDefinition }),
4995
4797
  };
4996
4798
  };
4997
4799
  const serializeAws_json1_1UpdateTaskSetRequest = (input, context) => {
4998
4800
  return {
4999
- ...(input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster }),
5000
- ...(input.scale !== undefined &&
5001
- input.scale !== null && { scale: serializeAws_json1_1Scale(input.scale, context) }),
5002
- ...(input.service !== undefined && input.service !== null && { service: input.service }),
5003
- ...(input.taskSet !== undefined && input.taskSet !== null && { taskSet: input.taskSet }),
4801
+ ...(input.cluster != null && { cluster: input.cluster }),
4802
+ ...(input.scale != null && { scale: serializeAws_json1_1Scale(input.scale, context) }),
4803
+ ...(input.service != null && { service: input.service }),
4804
+ ...(input.taskSet != null && { taskSet: input.taskSet }),
5004
4805
  };
5005
4806
  };
5006
4807
  const serializeAws_json1_1VersionInfo = (input, context) => {
5007
4808
  return {
5008
- ...(input.agentHash !== undefined && input.agentHash !== null && { agentHash: input.agentHash }),
5009
- ...(input.agentVersion !== undefined && input.agentVersion !== null && { agentVersion: input.agentVersion }),
5010
- ...(input.dockerVersion !== undefined && input.dockerVersion !== null && { dockerVersion: input.dockerVersion }),
4809
+ ...(input.agentHash != null && { agentHash: input.agentHash }),
4810
+ ...(input.agentVersion != null && { agentVersion: input.agentVersion }),
4811
+ ...(input.dockerVersion != null && { dockerVersion: input.dockerVersion }),
5011
4812
  };
5012
4813
  };
5013
4814
  const serializeAws_json1_1Volume = (input, context) => {
5014
4815
  return {
5015
- ...(input.dockerVolumeConfiguration !== undefined &&
5016
- input.dockerVolumeConfiguration !== null && {
4816
+ ...(input.dockerVolumeConfiguration != null && {
5017
4817
  dockerVolumeConfiguration: serializeAws_json1_1DockerVolumeConfiguration(input.dockerVolumeConfiguration, context),
5018
4818
  }),
5019
- ...(input.efsVolumeConfiguration !== undefined &&
5020
- input.efsVolumeConfiguration !== null && {
4819
+ ...(input.efsVolumeConfiguration != null && {
5021
4820
  efsVolumeConfiguration: serializeAws_json1_1EFSVolumeConfiguration(input.efsVolumeConfiguration, context),
5022
4821
  }),
5023
- ...(input.fsxWindowsFileServerVolumeConfiguration !== undefined &&
5024
- input.fsxWindowsFileServerVolumeConfiguration !== null && {
4822
+ ...(input.fsxWindowsFileServerVolumeConfiguration != null && {
5025
4823
  fsxWindowsFileServerVolumeConfiguration: serializeAws_json1_1FSxWindowsFileServerVolumeConfiguration(input.fsxWindowsFileServerVolumeConfiguration, context),
5026
4824
  }),
5027
- ...(input.host !== undefined &&
5028
- input.host !== null && { host: serializeAws_json1_1HostVolumeProperties(input.host, context) }),
5029
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4825
+ ...(input.host != null && { host: serializeAws_json1_1HostVolumeProperties(input.host, context) }),
4826
+ ...(input.name != null && { name: input.name }),
5030
4827
  };
5031
4828
  };
5032
4829
  const serializeAws_json1_1VolumeFrom = (input, context) => {
5033
4830
  return {
5034
- ...(input.readOnly !== undefined && input.readOnly !== null && { readOnly: input.readOnly }),
5035
- ...(input.sourceContainer !== undefined &&
5036
- input.sourceContainer !== null && { sourceContainer: input.sourceContainer }),
4831
+ ...(input.readOnly != null && { readOnly: input.readOnly }),
4832
+ ...(input.sourceContainer != null && { sourceContainer: input.sourceContainer }),
5037
4833
  };
5038
4834
  };
5039
4835
  const serializeAws_json1_1VolumeFromList = (input, context) => {
@@ -5063,9 +4859,7 @@ const deserializeAws_json1_1AccessDeniedException = (output, context) => {
5063
4859
  };
5064
4860
  const deserializeAws_json1_1Attachment = (output, context) => {
5065
4861
  return {
5066
- details: output.details !== undefined && output.details !== null
5067
- ? deserializeAws_json1_1AttachmentDetails(output.details, context)
5068
- : undefined,
4862
+ details: output.details != null ? deserializeAws_json1_1AttachmentDetails(output.details, context) : undefined,
5069
4863
  id: (0, smithy_client_1.expectString)(output.id),
5070
4864
  status: (0, smithy_client_1.expectString)(output.status),
5071
4865
  type: (0, smithy_client_1.expectString)(output.type),
@@ -5120,21 +4914,15 @@ const deserializeAws_json1_1Attributes = (output, context) => {
5120
4914
  const deserializeAws_json1_1AutoScalingGroupProvider = (output, context) => {
5121
4915
  return {
5122
4916
  autoScalingGroupArn: (0, smithy_client_1.expectString)(output.autoScalingGroupArn),
5123
- managedScaling: output.managedScaling !== undefined && output.managedScaling !== null
5124
- ? deserializeAws_json1_1ManagedScaling(output.managedScaling, context)
5125
- : undefined,
4917
+ managedScaling: output.managedScaling != null ? deserializeAws_json1_1ManagedScaling(output.managedScaling, context) : undefined,
5126
4918
  managedTerminationProtection: (0, smithy_client_1.expectString)(output.managedTerminationProtection),
5127
4919
  };
5128
4920
  };
5129
4921
  const deserializeAws_json1_1AwsVpcConfiguration = (output, context) => {
5130
4922
  return {
5131
4923
  assignPublicIp: (0, smithy_client_1.expectString)(output.assignPublicIp),
5132
- securityGroups: output.securityGroups !== undefined && output.securityGroups !== null
5133
- ? deserializeAws_json1_1StringList(output.securityGroups, context)
5134
- : undefined,
5135
- subnets: output.subnets !== undefined && output.subnets !== null
5136
- ? deserializeAws_json1_1StringList(output.subnets, context)
5137
- : undefined,
4924
+ securityGroups: output.securityGroups != null ? deserializeAws_json1_1StringList(output.securityGroups, context) : undefined,
4925
+ subnets: output.subnets != null ? deserializeAws_json1_1StringList(output.subnets, context) : undefined,
5138
4926
  };
5139
4927
  };
5140
4928
  const deserializeAws_json1_1BlockedException = (output, context) => {
@@ -5144,13 +4932,13 @@ const deserializeAws_json1_1BlockedException = (output, context) => {
5144
4932
  };
5145
4933
  const deserializeAws_json1_1CapacityProvider = (output, context) => {
5146
4934
  return {
5147
- autoScalingGroupProvider: output.autoScalingGroupProvider !== undefined && output.autoScalingGroupProvider !== null
4935
+ autoScalingGroupProvider: output.autoScalingGroupProvider != null
5148
4936
  ? deserializeAws_json1_1AutoScalingGroupProvider(output.autoScalingGroupProvider, context)
5149
4937
  : undefined,
5150
4938
  capacityProviderArn: (0, smithy_client_1.expectString)(output.capacityProviderArn),
5151
4939
  name: (0, smithy_client_1.expectString)(output.name),
5152
4940
  status: (0, smithy_client_1.expectString)(output.status),
5153
- tags: output.tags !== undefined && output.tags !== null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
4941
+ tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
5154
4942
  updateStatus: (0, smithy_client_1.expectString)(output.updateStatus),
5155
4943
  updateStatusReason: (0, smithy_client_1.expectString)(output.updateStatusReason),
5156
4944
  };
@@ -5192,37 +4980,31 @@ const deserializeAws_json1_1ClientException = (output, context) => {
5192
4980
  const deserializeAws_json1_1Cluster = (output, context) => {
5193
4981
  return {
5194
4982
  activeServicesCount: (0, smithy_client_1.expectInt32)(output.activeServicesCount),
5195
- attachments: output.attachments !== undefined && output.attachments !== null
5196
- ? deserializeAws_json1_1Attachments(output.attachments, context)
5197
- : undefined,
4983
+ attachments: output.attachments != null ? deserializeAws_json1_1Attachments(output.attachments, context) : undefined,
5198
4984
  attachmentsStatus: (0, smithy_client_1.expectString)(output.attachmentsStatus),
5199
- capacityProviders: output.capacityProviders !== undefined && output.capacityProviders !== null
4985
+ capacityProviders: output.capacityProviders != null
5200
4986
  ? deserializeAws_json1_1StringList(output.capacityProviders, context)
5201
4987
  : undefined,
5202
4988
  clusterArn: (0, smithy_client_1.expectString)(output.clusterArn),
5203
4989
  clusterName: (0, smithy_client_1.expectString)(output.clusterName),
5204
- configuration: output.configuration !== undefined && output.configuration !== null
4990
+ configuration: output.configuration != null
5205
4991
  ? deserializeAws_json1_1ClusterConfiguration(output.configuration, context)
5206
4992
  : undefined,
5207
- defaultCapacityProviderStrategy: output.defaultCapacityProviderStrategy !== undefined && output.defaultCapacityProviderStrategy !== null
4993
+ defaultCapacityProviderStrategy: output.defaultCapacityProviderStrategy != null
5208
4994
  ? deserializeAws_json1_1CapacityProviderStrategy(output.defaultCapacityProviderStrategy, context)
5209
4995
  : undefined,
5210
4996
  pendingTasksCount: (0, smithy_client_1.expectInt32)(output.pendingTasksCount),
5211
4997
  registeredContainerInstancesCount: (0, smithy_client_1.expectInt32)(output.registeredContainerInstancesCount),
5212
4998
  runningTasksCount: (0, smithy_client_1.expectInt32)(output.runningTasksCount),
5213
- settings: output.settings !== undefined && output.settings !== null
5214
- ? deserializeAws_json1_1ClusterSettings(output.settings, context)
5215
- : undefined,
5216
- statistics: output.statistics !== undefined && output.statistics !== null
5217
- ? deserializeAws_json1_1Statistics(output.statistics, context)
5218
- : undefined,
4999
+ settings: output.settings != null ? deserializeAws_json1_1ClusterSettings(output.settings, context) : undefined,
5000
+ statistics: output.statistics != null ? deserializeAws_json1_1Statistics(output.statistics, context) : undefined,
5219
5001
  status: (0, smithy_client_1.expectString)(output.status),
5220
- tags: output.tags !== undefined && output.tags !== null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
5002
+ tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
5221
5003
  };
5222
5004
  };
5223
5005
  const deserializeAws_json1_1ClusterConfiguration = (output, context) => {
5224
5006
  return {
5225
- executeCommandConfiguration: output.executeCommandConfiguration !== undefined && output.executeCommandConfiguration !== null
5007
+ executeCommandConfiguration: output.executeCommandConfiguration != null
5226
5008
  ? deserializeAws_json1_1ExecuteCommandConfiguration(output.executeCommandConfiguration, context)
5227
5009
  : undefined,
5228
5010
  };
@@ -5291,23 +5073,19 @@ const deserializeAws_json1_1Container = (output, context) => {
5291
5073
  containerArn: (0, smithy_client_1.expectString)(output.containerArn),
5292
5074
  cpu: (0, smithy_client_1.expectString)(output.cpu),
5293
5075
  exitCode: (0, smithy_client_1.expectInt32)(output.exitCode),
5294
- gpuIds: output.gpuIds !== undefined && output.gpuIds !== null
5295
- ? deserializeAws_json1_1GpuIds(output.gpuIds, context)
5296
- : undefined,
5076
+ gpuIds: output.gpuIds != null ? deserializeAws_json1_1GpuIds(output.gpuIds, context) : undefined,
5297
5077
  healthStatus: (0, smithy_client_1.expectString)(output.healthStatus),
5298
5078
  image: (0, smithy_client_1.expectString)(output.image),
5299
5079
  imageDigest: (0, smithy_client_1.expectString)(output.imageDigest),
5300
5080
  lastStatus: (0, smithy_client_1.expectString)(output.lastStatus),
5301
- managedAgents: output.managedAgents !== undefined && output.managedAgents !== null
5302
- ? deserializeAws_json1_1ManagedAgents(output.managedAgents, context)
5303
- : undefined,
5081
+ managedAgents: output.managedAgents != null ? deserializeAws_json1_1ManagedAgents(output.managedAgents, context) : undefined,
5304
5082
  memory: (0, smithy_client_1.expectString)(output.memory),
5305
5083
  memoryReservation: (0, smithy_client_1.expectString)(output.memoryReservation),
5306
5084
  name: (0, smithy_client_1.expectString)(output.name),
5307
- networkBindings: output.networkBindings !== undefined && output.networkBindings !== null
5085
+ networkBindings: output.networkBindings != null
5308
5086
  ? deserializeAws_json1_1NetworkBindings(output.networkBindings, context)
5309
5087
  : undefined,
5310
- networkInterfaces: output.networkInterfaces !== undefined && output.networkInterfaces !== null
5088
+ networkInterfaces: output.networkInterfaces != null
5311
5089
  ? deserializeAws_json1_1NetworkInterfaces(output.networkInterfaces, context)
5312
5090
  : undefined,
5313
5091
  reason: (0, smithy_client_1.expectString)(output.reason),
@@ -5317,90 +5095,58 @@ const deserializeAws_json1_1Container = (output, context) => {
5317
5095
  };
5318
5096
  const deserializeAws_json1_1ContainerDefinition = (output, context) => {
5319
5097
  return {
5320
- command: output.command !== undefined && output.command !== null
5321
- ? deserializeAws_json1_1StringList(output.command, context)
5322
- : undefined,
5098
+ command: output.command != null ? deserializeAws_json1_1StringList(output.command, context) : undefined,
5323
5099
  cpu: (0, smithy_client_1.expectInt32)(output.cpu),
5324
- dependsOn: output.dependsOn !== undefined && output.dependsOn !== null
5325
- ? deserializeAws_json1_1ContainerDependencies(output.dependsOn, context)
5326
- : undefined,
5100
+ dependsOn: output.dependsOn != null ? deserializeAws_json1_1ContainerDependencies(output.dependsOn, context) : undefined,
5327
5101
  disableNetworking: (0, smithy_client_1.expectBoolean)(output.disableNetworking),
5328
- dnsSearchDomains: output.dnsSearchDomains !== undefined && output.dnsSearchDomains !== null
5329
- ? deserializeAws_json1_1StringList(output.dnsSearchDomains, context)
5330
- : undefined,
5331
- dnsServers: output.dnsServers !== undefined && output.dnsServers !== null
5332
- ? deserializeAws_json1_1StringList(output.dnsServers, context)
5333
- : undefined,
5334
- dockerLabels: output.dockerLabels !== undefined && output.dockerLabels !== null
5335
- ? deserializeAws_json1_1DockerLabelsMap(output.dockerLabels, context)
5336
- : undefined,
5337
- dockerSecurityOptions: output.dockerSecurityOptions !== undefined && output.dockerSecurityOptions !== null
5102
+ dnsSearchDomains: output.dnsSearchDomains != null ? deserializeAws_json1_1StringList(output.dnsSearchDomains, context) : undefined,
5103
+ dnsServers: output.dnsServers != null ? deserializeAws_json1_1StringList(output.dnsServers, context) : undefined,
5104
+ dockerLabels: output.dockerLabels != null ? deserializeAws_json1_1DockerLabelsMap(output.dockerLabels, context) : undefined,
5105
+ dockerSecurityOptions: output.dockerSecurityOptions != null
5338
5106
  ? deserializeAws_json1_1StringList(output.dockerSecurityOptions, context)
5339
5107
  : undefined,
5340
- entryPoint: output.entryPoint !== undefined && output.entryPoint !== null
5341
- ? deserializeAws_json1_1StringList(output.entryPoint, context)
5342
- : undefined,
5343
- environment: output.environment !== undefined && output.environment !== null
5344
- ? deserializeAws_json1_1EnvironmentVariables(output.environment, context)
5345
- : undefined,
5346
- environmentFiles: output.environmentFiles !== undefined && output.environmentFiles !== null
5108
+ entryPoint: output.entryPoint != null ? deserializeAws_json1_1StringList(output.entryPoint, context) : undefined,
5109
+ environment: output.environment != null ? deserializeAws_json1_1EnvironmentVariables(output.environment, context) : undefined,
5110
+ environmentFiles: output.environmentFiles != null
5347
5111
  ? deserializeAws_json1_1EnvironmentFiles(output.environmentFiles, context)
5348
5112
  : undefined,
5349
5113
  essential: (0, smithy_client_1.expectBoolean)(output.essential),
5350
- extraHosts: output.extraHosts !== undefined && output.extraHosts !== null
5351
- ? deserializeAws_json1_1HostEntryList(output.extraHosts, context)
5352
- : undefined,
5353
- firelensConfiguration: output.firelensConfiguration !== undefined && output.firelensConfiguration !== null
5114
+ extraHosts: output.extraHosts != null ? deserializeAws_json1_1HostEntryList(output.extraHosts, context) : undefined,
5115
+ firelensConfiguration: output.firelensConfiguration != null
5354
5116
  ? deserializeAws_json1_1FirelensConfiguration(output.firelensConfiguration, context)
5355
5117
  : undefined,
5356
- healthCheck: output.healthCheck !== undefined && output.healthCheck !== null
5357
- ? deserializeAws_json1_1HealthCheck(output.healthCheck, context)
5358
- : undefined,
5118
+ healthCheck: output.healthCheck != null ? deserializeAws_json1_1HealthCheck(output.healthCheck, context) : undefined,
5359
5119
  hostname: (0, smithy_client_1.expectString)(output.hostname),
5360
5120
  image: (0, smithy_client_1.expectString)(output.image),
5361
5121
  interactive: (0, smithy_client_1.expectBoolean)(output.interactive),
5362
- links: output.links !== undefined && output.links !== null
5363
- ? deserializeAws_json1_1StringList(output.links, context)
5364
- : undefined,
5365
- linuxParameters: output.linuxParameters !== undefined && output.linuxParameters !== null
5122
+ links: output.links != null ? deserializeAws_json1_1StringList(output.links, context) : undefined,
5123
+ linuxParameters: output.linuxParameters != null
5366
5124
  ? deserializeAws_json1_1LinuxParameters(output.linuxParameters, context)
5367
5125
  : undefined,
5368
- logConfiguration: output.logConfiguration !== undefined && output.logConfiguration !== null
5126
+ logConfiguration: output.logConfiguration != null
5369
5127
  ? deserializeAws_json1_1LogConfiguration(output.logConfiguration, context)
5370
5128
  : undefined,
5371
5129
  memory: (0, smithy_client_1.expectInt32)(output.memory),
5372
5130
  memoryReservation: (0, smithy_client_1.expectInt32)(output.memoryReservation),
5373
- mountPoints: output.mountPoints !== undefined && output.mountPoints !== null
5374
- ? deserializeAws_json1_1MountPointList(output.mountPoints, context)
5375
- : undefined,
5131
+ mountPoints: output.mountPoints != null ? deserializeAws_json1_1MountPointList(output.mountPoints, context) : undefined,
5376
5132
  name: (0, smithy_client_1.expectString)(output.name),
5377
- portMappings: output.portMappings !== undefined && output.portMappings !== null
5378
- ? deserializeAws_json1_1PortMappingList(output.portMappings, context)
5379
- : undefined,
5133
+ portMappings: output.portMappings != null ? deserializeAws_json1_1PortMappingList(output.portMappings, context) : undefined,
5380
5134
  privileged: (0, smithy_client_1.expectBoolean)(output.privileged),
5381
5135
  pseudoTerminal: (0, smithy_client_1.expectBoolean)(output.pseudoTerminal),
5382
5136
  readonlyRootFilesystem: (0, smithy_client_1.expectBoolean)(output.readonlyRootFilesystem),
5383
- repositoryCredentials: output.repositoryCredentials !== undefined && output.repositoryCredentials !== null
5137
+ repositoryCredentials: output.repositoryCredentials != null
5384
5138
  ? deserializeAws_json1_1RepositoryCredentials(output.repositoryCredentials, context)
5385
5139
  : undefined,
5386
- resourceRequirements: output.resourceRequirements !== undefined && output.resourceRequirements !== null
5140
+ resourceRequirements: output.resourceRequirements != null
5387
5141
  ? deserializeAws_json1_1ResourceRequirements(output.resourceRequirements, context)
5388
5142
  : undefined,
5389
- secrets: output.secrets !== undefined && output.secrets !== null
5390
- ? deserializeAws_json1_1SecretList(output.secrets, context)
5391
- : undefined,
5143
+ secrets: output.secrets != null ? deserializeAws_json1_1SecretList(output.secrets, context) : undefined,
5392
5144
  startTimeout: (0, smithy_client_1.expectInt32)(output.startTimeout),
5393
5145
  stopTimeout: (0, smithy_client_1.expectInt32)(output.stopTimeout),
5394
- systemControls: output.systemControls !== undefined && output.systemControls !== null
5395
- ? deserializeAws_json1_1SystemControls(output.systemControls, context)
5396
- : undefined,
5397
- ulimits: output.ulimits !== undefined && output.ulimits !== null
5398
- ? deserializeAws_json1_1UlimitList(output.ulimits, context)
5399
- : undefined,
5146
+ systemControls: output.systemControls != null ? deserializeAws_json1_1SystemControls(output.systemControls, context) : undefined,
5147
+ ulimits: output.ulimits != null ? deserializeAws_json1_1UlimitList(output.ulimits, context) : undefined,
5400
5148
  user: (0, smithy_client_1.expectString)(output.user),
5401
- volumesFrom: output.volumesFrom !== undefined && output.volumesFrom !== null
5402
- ? deserializeAws_json1_1VolumeFromList(output.volumesFrom, context)
5403
- : undefined,
5149
+ volumesFrom: output.volumesFrom != null ? deserializeAws_json1_1VolumeFromList(output.volumesFrom, context) : undefined,
5404
5150
  workingDirectory: (0, smithy_client_1.expectString)(output.workingDirectory),
5405
5151
  };
5406
5152
  };
@@ -5436,43 +5182,35 @@ const deserializeAws_json1_1ContainerInstance = (output, context) => {
5436
5182
  return {
5437
5183
  agentConnected: (0, smithy_client_1.expectBoolean)(output.agentConnected),
5438
5184
  agentUpdateStatus: (0, smithy_client_1.expectString)(output.agentUpdateStatus),
5439
- attachments: output.attachments !== undefined && output.attachments !== null
5440
- ? deserializeAws_json1_1Attachments(output.attachments, context)
5441
- : undefined,
5442
- attributes: output.attributes !== undefined && output.attributes !== null
5443
- ? deserializeAws_json1_1Attributes(output.attributes, context)
5444
- : undefined,
5185
+ attachments: output.attachments != null ? deserializeAws_json1_1Attachments(output.attachments, context) : undefined,
5186
+ attributes: output.attributes != null ? deserializeAws_json1_1Attributes(output.attributes, context) : undefined,
5445
5187
  capacityProviderName: (0, smithy_client_1.expectString)(output.capacityProviderName),
5446
5188
  containerInstanceArn: (0, smithy_client_1.expectString)(output.containerInstanceArn),
5447
5189
  ec2InstanceId: (0, smithy_client_1.expectString)(output.ec2InstanceId),
5448
- healthStatus: output.healthStatus !== undefined && output.healthStatus !== null
5190
+ healthStatus: output.healthStatus != null
5449
5191
  ? deserializeAws_json1_1ContainerInstanceHealthStatus(output.healthStatus, context)
5450
5192
  : undefined,
5451
5193
  pendingTasksCount: (0, smithy_client_1.expectInt32)(output.pendingTasksCount),
5452
- registeredAt: output.registeredAt !== undefined && output.registeredAt !== null
5194
+ registeredAt: output.registeredAt != null
5453
5195
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.registeredAt)))
5454
5196
  : undefined,
5455
- registeredResources: output.registeredResources !== undefined && output.registeredResources !== null
5197
+ registeredResources: output.registeredResources != null
5456
5198
  ? deserializeAws_json1_1Resources(output.registeredResources, context)
5457
5199
  : undefined,
5458
- remainingResources: output.remainingResources !== undefined && output.remainingResources !== null
5200
+ remainingResources: output.remainingResources != null
5459
5201
  ? deserializeAws_json1_1Resources(output.remainingResources, context)
5460
5202
  : undefined,
5461
5203
  runningTasksCount: (0, smithy_client_1.expectInt32)(output.runningTasksCount),
5462
5204
  status: (0, smithy_client_1.expectString)(output.status),
5463
5205
  statusReason: (0, smithy_client_1.expectString)(output.statusReason),
5464
- tags: output.tags !== undefined && output.tags !== null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
5206
+ tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
5465
5207
  version: (0, smithy_client_1.expectLong)(output.version),
5466
- versionInfo: output.versionInfo !== undefined && output.versionInfo !== null
5467
- ? deserializeAws_json1_1VersionInfo(output.versionInfo, context)
5468
- : undefined,
5208
+ versionInfo: output.versionInfo != null ? deserializeAws_json1_1VersionInfo(output.versionInfo, context) : undefined,
5469
5209
  };
5470
5210
  };
5471
5211
  const deserializeAws_json1_1ContainerInstanceHealthStatus = (output, context) => {
5472
5212
  return {
5473
- details: output.details !== undefined && output.details !== null
5474
- ? deserializeAws_json1_1InstanceHealthCheckResultList(output.details, context)
5475
- : undefined,
5213
+ details: output.details != null ? deserializeAws_json1_1InstanceHealthCheckResultList(output.details, context) : undefined,
5476
5214
  overallStatus: (0, smithy_client_1.expectString)(output.overallStatus),
5477
5215
  };
5478
5216
  };
@@ -5489,20 +5227,16 @@ const deserializeAws_json1_1ContainerInstances = (output, context) => {
5489
5227
  };
5490
5228
  const deserializeAws_json1_1ContainerOverride = (output, context) => {
5491
5229
  return {
5492
- command: output.command !== undefined && output.command !== null
5493
- ? deserializeAws_json1_1StringList(output.command, context)
5494
- : undefined,
5230
+ command: output.command != null ? deserializeAws_json1_1StringList(output.command, context) : undefined,
5495
5231
  cpu: (0, smithy_client_1.expectInt32)(output.cpu),
5496
- environment: output.environment !== undefined && output.environment !== null
5497
- ? deserializeAws_json1_1EnvironmentVariables(output.environment, context)
5498
- : undefined,
5499
- environmentFiles: output.environmentFiles !== undefined && output.environmentFiles !== null
5232
+ environment: output.environment != null ? deserializeAws_json1_1EnvironmentVariables(output.environment, context) : undefined,
5233
+ environmentFiles: output.environmentFiles != null
5500
5234
  ? deserializeAws_json1_1EnvironmentFiles(output.environmentFiles, context)
5501
5235
  : undefined,
5502
5236
  memory: (0, smithy_client_1.expectInt32)(output.memory),
5503
5237
  memoryReservation: (0, smithy_client_1.expectInt32)(output.memoryReservation),
5504
5238
  name: (0, smithy_client_1.expectString)(output.name),
5505
- resourceRequirements: output.resourceRequirements !== undefined && output.resourceRequirements !== null
5239
+ resourceRequirements: output.resourceRequirements != null
5506
5240
  ? deserializeAws_json1_1ResourceRequirements(output.resourceRequirements, context)
5507
5241
  : undefined,
5508
5242
  };
@@ -5531,87 +5265,69 @@ const deserializeAws_json1_1Containers = (output, context) => {
5531
5265
  };
5532
5266
  const deserializeAws_json1_1CreateCapacityProviderResponse = (output, context) => {
5533
5267
  return {
5534
- capacityProvider: output.capacityProvider !== undefined && output.capacityProvider !== null
5268
+ capacityProvider: output.capacityProvider != null
5535
5269
  ? deserializeAws_json1_1CapacityProvider(output.capacityProvider, context)
5536
5270
  : undefined,
5537
5271
  };
5538
5272
  };
5539
5273
  const deserializeAws_json1_1CreateClusterResponse = (output, context) => {
5540
5274
  return {
5541
- cluster: output.cluster !== undefined && output.cluster !== null
5542
- ? deserializeAws_json1_1Cluster(output.cluster, context)
5543
- : undefined,
5275
+ cluster: output.cluster != null ? deserializeAws_json1_1Cluster(output.cluster, context) : undefined,
5544
5276
  };
5545
5277
  };
5546
5278
  const deserializeAws_json1_1CreateServiceResponse = (output, context) => {
5547
5279
  return {
5548
- service: output.service !== undefined && output.service !== null
5549
- ? deserializeAws_json1_1Service(output.service, context)
5550
- : undefined,
5280
+ service: output.service != null ? deserializeAws_json1_1Service(output.service, context) : undefined,
5551
5281
  };
5552
5282
  };
5553
5283
  const deserializeAws_json1_1CreateTaskSetResponse = (output, context) => {
5554
5284
  return {
5555
- taskSet: output.taskSet !== undefined && output.taskSet !== null
5556
- ? deserializeAws_json1_1TaskSet(output.taskSet, context)
5557
- : undefined,
5285
+ taskSet: output.taskSet != null ? deserializeAws_json1_1TaskSet(output.taskSet, context) : undefined,
5558
5286
  };
5559
5287
  };
5560
5288
  const deserializeAws_json1_1DeleteAccountSettingResponse = (output, context) => {
5561
5289
  return {
5562
- setting: output.setting !== undefined && output.setting !== null
5563
- ? deserializeAws_json1_1Setting(output.setting, context)
5564
- : undefined,
5290
+ setting: output.setting != null ? deserializeAws_json1_1Setting(output.setting, context) : undefined,
5565
5291
  };
5566
5292
  };
5567
5293
  const deserializeAws_json1_1DeleteAttributesResponse = (output, context) => {
5568
5294
  return {
5569
- attributes: output.attributes !== undefined && output.attributes !== null
5570
- ? deserializeAws_json1_1Attributes(output.attributes, context)
5571
- : undefined,
5295
+ attributes: output.attributes != null ? deserializeAws_json1_1Attributes(output.attributes, context) : undefined,
5572
5296
  };
5573
5297
  };
5574
5298
  const deserializeAws_json1_1DeleteCapacityProviderResponse = (output, context) => {
5575
5299
  return {
5576
- capacityProvider: output.capacityProvider !== undefined && output.capacityProvider !== null
5300
+ capacityProvider: output.capacityProvider != null
5577
5301
  ? deserializeAws_json1_1CapacityProvider(output.capacityProvider, context)
5578
5302
  : undefined,
5579
5303
  };
5580
5304
  };
5581
5305
  const deserializeAws_json1_1DeleteClusterResponse = (output, context) => {
5582
5306
  return {
5583
- cluster: output.cluster !== undefined && output.cluster !== null
5584
- ? deserializeAws_json1_1Cluster(output.cluster, context)
5585
- : undefined,
5307
+ cluster: output.cluster != null ? deserializeAws_json1_1Cluster(output.cluster, context) : undefined,
5586
5308
  };
5587
5309
  };
5588
5310
  const deserializeAws_json1_1DeleteServiceResponse = (output, context) => {
5589
5311
  return {
5590
- service: output.service !== undefined && output.service !== null
5591
- ? deserializeAws_json1_1Service(output.service, context)
5592
- : undefined,
5312
+ service: output.service != null ? deserializeAws_json1_1Service(output.service, context) : undefined,
5593
5313
  };
5594
5314
  };
5595
5315
  const deserializeAws_json1_1DeleteTaskSetResponse = (output, context) => {
5596
5316
  return {
5597
- taskSet: output.taskSet !== undefined && output.taskSet !== null
5598
- ? deserializeAws_json1_1TaskSet(output.taskSet, context)
5599
- : undefined,
5317
+ taskSet: output.taskSet != null ? deserializeAws_json1_1TaskSet(output.taskSet, context) : undefined,
5600
5318
  };
5601
5319
  };
5602
5320
  const deserializeAws_json1_1Deployment = (output, context) => {
5603
5321
  return {
5604
- capacityProviderStrategy: output.capacityProviderStrategy !== undefined && output.capacityProviderStrategy !== null
5322
+ capacityProviderStrategy: output.capacityProviderStrategy != null
5605
5323
  ? deserializeAws_json1_1CapacityProviderStrategy(output.capacityProviderStrategy, context)
5606
5324
  : undefined,
5607
- createdAt: output.createdAt !== undefined && output.createdAt !== null
5608
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
5609
- : undefined,
5325
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
5610
5326
  desiredCount: (0, smithy_client_1.expectInt32)(output.desiredCount),
5611
5327
  failedTasks: (0, smithy_client_1.expectInt32)(output.failedTasks),
5612
5328
  id: (0, smithy_client_1.expectString)(output.id),
5613
5329
  launchType: (0, smithy_client_1.expectString)(output.launchType),
5614
- networkConfiguration: output.networkConfiguration !== undefined && output.networkConfiguration !== null
5330
+ networkConfiguration: output.networkConfiguration != null
5615
5331
  ? deserializeAws_json1_1NetworkConfiguration(output.networkConfiguration, context)
5616
5332
  : undefined,
5617
5333
  pendingCount: (0, smithy_client_1.expectInt32)(output.pendingCount),
@@ -5622,9 +5338,7 @@ const deserializeAws_json1_1Deployment = (output, context) => {
5622
5338
  runningCount: (0, smithy_client_1.expectInt32)(output.runningCount),
5623
5339
  status: (0, smithy_client_1.expectString)(output.status),
5624
5340
  taskDefinition: (0, smithy_client_1.expectString)(output.taskDefinition),
5625
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
5626
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt)))
5627
- : undefined,
5341
+ updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
5628
5342
  };
5629
5343
  };
5630
5344
  const deserializeAws_json1_1DeploymentCircuitBreaker = (output, context) => {
@@ -5635,7 +5349,7 @@ const deserializeAws_json1_1DeploymentCircuitBreaker = (output, context) => {
5635
5349
  };
5636
5350
  const deserializeAws_json1_1DeploymentConfiguration = (output, context) => {
5637
5351
  return {
5638
- deploymentCircuitBreaker: output.deploymentCircuitBreaker !== undefined && output.deploymentCircuitBreaker !== null
5352
+ deploymentCircuitBreaker: output.deploymentCircuitBreaker != null
5639
5353
  ? deserializeAws_json1_1DeploymentCircuitBreaker(output.deploymentCircuitBreaker, context)
5640
5354
  : undefined,
5641
5355
  maximumPercent: (0, smithy_client_1.expectInt32)(output.maximumPercent),
@@ -5660,92 +5374,68 @@ const deserializeAws_json1_1Deployments = (output, context) => {
5660
5374
  };
5661
5375
  const deserializeAws_json1_1DeregisterContainerInstanceResponse = (output, context) => {
5662
5376
  return {
5663
- containerInstance: output.containerInstance !== undefined && output.containerInstance !== null
5377
+ containerInstance: output.containerInstance != null
5664
5378
  ? deserializeAws_json1_1ContainerInstance(output.containerInstance, context)
5665
5379
  : undefined,
5666
5380
  };
5667
5381
  };
5668
5382
  const deserializeAws_json1_1DeregisterTaskDefinitionResponse = (output, context) => {
5669
5383
  return {
5670
- taskDefinition: output.taskDefinition !== undefined && output.taskDefinition !== null
5671
- ? deserializeAws_json1_1TaskDefinition(output.taskDefinition, context)
5672
- : undefined,
5384
+ taskDefinition: output.taskDefinition != null ? deserializeAws_json1_1TaskDefinition(output.taskDefinition, context) : undefined,
5673
5385
  };
5674
5386
  };
5675
5387
  const deserializeAws_json1_1DescribeCapacityProvidersResponse = (output, context) => {
5676
5388
  return {
5677
- capacityProviders: output.capacityProviders !== undefined && output.capacityProviders !== null
5389
+ capacityProviders: output.capacityProviders != null
5678
5390
  ? deserializeAws_json1_1CapacityProviders(output.capacityProviders, context)
5679
5391
  : undefined,
5680
- failures: output.failures !== undefined && output.failures !== null
5681
- ? deserializeAws_json1_1Failures(output.failures, context)
5682
- : undefined,
5392
+ failures: output.failures != null ? deserializeAws_json1_1Failures(output.failures, context) : undefined,
5683
5393
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5684
5394
  };
5685
5395
  };
5686
5396
  const deserializeAws_json1_1DescribeClustersResponse = (output, context) => {
5687
5397
  return {
5688
- clusters: output.clusters !== undefined && output.clusters !== null
5689
- ? deserializeAws_json1_1Clusters(output.clusters, context)
5690
- : undefined,
5691
- failures: output.failures !== undefined && output.failures !== null
5692
- ? deserializeAws_json1_1Failures(output.failures, context)
5693
- : undefined,
5398
+ clusters: output.clusters != null ? deserializeAws_json1_1Clusters(output.clusters, context) : undefined,
5399
+ failures: output.failures != null ? deserializeAws_json1_1Failures(output.failures, context) : undefined,
5694
5400
  };
5695
5401
  };
5696
5402
  const deserializeAws_json1_1DescribeContainerInstancesResponse = (output, context) => {
5697
5403
  return {
5698
- containerInstances: output.containerInstances !== undefined && output.containerInstances !== null
5404
+ containerInstances: output.containerInstances != null
5699
5405
  ? deserializeAws_json1_1ContainerInstances(output.containerInstances, context)
5700
5406
  : undefined,
5701
- failures: output.failures !== undefined && output.failures !== null
5702
- ? deserializeAws_json1_1Failures(output.failures, context)
5703
- : undefined,
5407
+ failures: output.failures != null ? deserializeAws_json1_1Failures(output.failures, context) : undefined,
5704
5408
  };
5705
5409
  };
5706
5410
  const deserializeAws_json1_1DescribeServicesResponse = (output, context) => {
5707
5411
  return {
5708
- failures: output.failures !== undefined && output.failures !== null
5709
- ? deserializeAws_json1_1Failures(output.failures, context)
5710
- : undefined,
5711
- services: output.services !== undefined && output.services !== null
5712
- ? deserializeAws_json1_1Services(output.services, context)
5713
- : undefined,
5412
+ failures: output.failures != null ? deserializeAws_json1_1Failures(output.failures, context) : undefined,
5413
+ services: output.services != null ? deserializeAws_json1_1Services(output.services, context) : undefined,
5714
5414
  };
5715
5415
  };
5716
5416
  const deserializeAws_json1_1DescribeTaskDefinitionResponse = (output, context) => {
5717
5417
  return {
5718
- tags: output.tags !== undefined && output.tags !== null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
5719
- taskDefinition: output.taskDefinition !== undefined && output.taskDefinition !== null
5720
- ? deserializeAws_json1_1TaskDefinition(output.taskDefinition, context)
5721
- : undefined,
5418
+ tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
5419
+ taskDefinition: output.taskDefinition != null ? deserializeAws_json1_1TaskDefinition(output.taskDefinition, context) : undefined,
5722
5420
  };
5723
5421
  };
5724
5422
  const deserializeAws_json1_1DescribeTaskSetsResponse = (output, context) => {
5725
5423
  return {
5726
- failures: output.failures !== undefined && output.failures !== null
5727
- ? deserializeAws_json1_1Failures(output.failures, context)
5728
- : undefined,
5729
- taskSets: output.taskSets !== undefined && output.taskSets !== null
5730
- ? deserializeAws_json1_1TaskSets(output.taskSets, context)
5731
- : undefined,
5424
+ failures: output.failures != null ? deserializeAws_json1_1Failures(output.failures, context) : undefined,
5425
+ taskSets: output.taskSets != null ? deserializeAws_json1_1TaskSets(output.taskSets, context) : undefined,
5732
5426
  };
5733
5427
  };
5734
5428
  const deserializeAws_json1_1DescribeTasksResponse = (output, context) => {
5735
5429
  return {
5736
- failures: output.failures !== undefined && output.failures !== null
5737
- ? deserializeAws_json1_1Failures(output.failures, context)
5738
- : undefined,
5739
- tasks: output.tasks !== undefined && output.tasks !== null
5740
- ? deserializeAws_json1_1Tasks(output.tasks, context)
5741
- : undefined,
5430
+ failures: output.failures != null ? deserializeAws_json1_1Failures(output.failures, context) : undefined,
5431
+ tasks: output.tasks != null ? deserializeAws_json1_1Tasks(output.tasks, context) : undefined,
5742
5432
  };
5743
5433
  };
5744
5434
  const deserializeAws_json1_1Device = (output, context) => {
5745
5435
  return {
5746
5436
  containerPath: (0, smithy_client_1.expectString)(output.containerPath),
5747
5437
  hostPath: (0, smithy_client_1.expectString)(output.hostPath),
5748
- permissions: output.permissions !== undefined && output.permissions !== null
5438
+ permissions: output.permissions != null
5749
5439
  ? deserializeAws_json1_1DeviceCgroupPermissions(output.permissions, context)
5750
5440
  : undefined,
5751
5441
  };
@@ -5793,12 +5483,8 @@ const deserializeAws_json1_1DockerVolumeConfiguration = (output, context) => {
5793
5483
  return {
5794
5484
  autoprovision: (0, smithy_client_1.expectBoolean)(output.autoprovision),
5795
5485
  driver: (0, smithy_client_1.expectString)(output.driver),
5796
- driverOpts: output.driverOpts !== undefined && output.driverOpts !== null
5797
- ? deserializeAws_json1_1StringMap(output.driverOpts, context)
5798
- : undefined,
5799
- labels: output.labels !== undefined && output.labels !== null
5800
- ? deserializeAws_json1_1StringMap(output.labels, context)
5801
- : undefined,
5486
+ driverOpts: output.driverOpts != null ? deserializeAws_json1_1StringMap(output.driverOpts, context) : undefined,
5487
+ labels: output.labels != null ? deserializeAws_json1_1StringMap(output.labels, context) : undefined,
5802
5488
  scope: (0, smithy_client_1.expectString)(output.scope),
5803
5489
  };
5804
5490
  };
@@ -5810,7 +5496,7 @@ const deserializeAws_json1_1EFSAuthorizationConfig = (output, context) => {
5810
5496
  };
5811
5497
  const deserializeAws_json1_1EFSVolumeConfiguration = (output, context) => {
5812
5498
  return {
5813
- authorizationConfig: output.authorizationConfig !== undefined && output.authorizationConfig !== null
5499
+ authorizationConfig: output.authorizationConfig != null
5814
5500
  ? deserializeAws_json1_1EFSAuthorizationConfig(output.authorizationConfig, context)
5815
5501
  : undefined,
5816
5502
  fileSystemId: (0, smithy_client_1.expectString)(output.fileSystemId),
@@ -5855,7 +5541,7 @@ const deserializeAws_json1_1EphemeralStorage = (output, context) => {
5855
5541
  const deserializeAws_json1_1ExecuteCommandConfiguration = (output, context) => {
5856
5542
  return {
5857
5543
  kmsKeyId: (0, smithy_client_1.expectString)(output.kmsKeyId),
5858
- logConfiguration: output.logConfiguration !== undefined && output.logConfiguration !== null
5544
+ logConfiguration: output.logConfiguration != null
5859
5545
  ? deserializeAws_json1_1ExecuteCommandLogConfiguration(output.logConfiguration, context)
5860
5546
  : undefined,
5861
5547
  logging: (0, smithy_client_1.expectString)(output.logging),
@@ -5876,9 +5562,7 @@ const deserializeAws_json1_1ExecuteCommandResponse = (output, context) => {
5876
5562
  containerArn: (0, smithy_client_1.expectString)(output.containerArn),
5877
5563
  containerName: (0, smithy_client_1.expectString)(output.containerName),
5878
5564
  interactive: (0, smithy_client_1.expectBoolean)(output.interactive),
5879
- session: output.session !== undefined && output.session !== null
5880
- ? deserializeAws_json1_1Session(output.session, context)
5881
- : undefined,
5565
+ session: output.session != null ? deserializeAws_json1_1Session(output.session, context) : undefined,
5882
5566
  taskArn: (0, smithy_client_1.expectString)(output.taskArn),
5883
5567
  };
5884
5568
  };
@@ -5902,7 +5586,7 @@ const deserializeAws_json1_1Failures = (output, context) => {
5902
5586
  };
5903
5587
  const deserializeAws_json1_1FirelensConfiguration = (output, context) => {
5904
5588
  return {
5905
- options: output.options !== undefined && output.options !== null
5589
+ options: output.options != null
5906
5590
  ? deserializeAws_json1_1FirelensConfigurationOptionsMap(output.options, context)
5907
5591
  : undefined,
5908
5592
  type: (0, smithy_client_1.expectString)(output.type),
@@ -5927,7 +5611,7 @@ const deserializeAws_json1_1FSxWindowsFileServerAuthorizationConfig = (output, c
5927
5611
  };
5928
5612
  const deserializeAws_json1_1FSxWindowsFileServerVolumeConfiguration = (output, context) => {
5929
5613
  return {
5930
- authorizationConfig: output.authorizationConfig !== undefined && output.authorizationConfig !== null
5614
+ authorizationConfig: output.authorizationConfig != null
5931
5615
  ? deserializeAws_json1_1FSxWindowsFileServerAuthorizationConfig(output.authorizationConfig, context)
5932
5616
  : undefined,
5933
5617
  fileSystemId: (0, smithy_client_1.expectString)(output.fileSystemId),
@@ -5947,9 +5631,7 @@ const deserializeAws_json1_1GpuIds = (output, context) => {
5947
5631
  };
5948
5632
  const deserializeAws_json1_1HealthCheck = (output, context) => {
5949
5633
  return {
5950
- command: output.command !== undefined && output.command !== null
5951
- ? deserializeAws_json1_1StringList(output.command, context)
5952
- : undefined,
5634
+ command: output.command != null ? deserializeAws_json1_1StringList(output.command, context) : undefined,
5953
5635
  interval: (0, smithy_client_1.expectInt32)(output.interval),
5954
5636
  retries: (0, smithy_client_1.expectInt32)(output.retries),
5955
5637
  startPeriod: (0, smithy_client_1.expectInt32)(output.startPeriod),
@@ -6014,10 +5696,10 @@ const deserializeAws_json1_1InferenceAccelerators = (output, context) => {
6014
5696
  };
6015
5697
  const deserializeAws_json1_1InstanceHealthCheckResult = (output, context) => {
6016
5698
  return {
6017
- lastStatusChange: output.lastStatusChange !== undefined && output.lastStatusChange !== null
5699
+ lastStatusChange: output.lastStatusChange != null
6018
5700
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastStatusChange)))
6019
5701
  : undefined,
6020
- lastUpdated: output.lastUpdated !== undefined && output.lastUpdated !== null
5702
+ lastUpdated: output.lastUpdated != null
6021
5703
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdated)))
6022
5704
  : undefined,
6023
5705
  status: (0, smithy_client_1.expectString)(output.status),
@@ -6042,12 +5724,8 @@ const deserializeAws_json1_1InvalidParameterException = (output, context) => {
6042
5724
  };
6043
5725
  const deserializeAws_json1_1KernelCapabilities = (output, context) => {
6044
5726
  return {
6045
- add: output.add !== undefined && output.add !== null
6046
- ? deserializeAws_json1_1StringList(output.add, context)
6047
- : undefined,
6048
- drop: output.drop !== undefined && output.drop !== null
6049
- ? deserializeAws_json1_1StringList(output.drop, context)
6050
- : undefined,
5727
+ add: output.add != null ? deserializeAws_json1_1StringList(output.add, context) : undefined,
5728
+ drop: output.drop != null ? deserializeAws_json1_1StringList(output.drop, context) : undefined,
6051
5729
  };
6052
5730
  };
6053
5731
  const deserializeAws_json1_1KeyValuePair = (output, context) => {
@@ -6063,48 +5741,36 @@ const deserializeAws_json1_1LimitExceededException = (output, context) => {
6063
5741
  };
6064
5742
  const deserializeAws_json1_1LinuxParameters = (output, context) => {
6065
5743
  return {
6066
- capabilities: output.capabilities !== undefined && output.capabilities !== null
6067
- ? deserializeAws_json1_1KernelCapabilities(output.capabilities, context)
6068
- : undefined,
6069
- devices: output.devices !== undefined && output.devices !== null
6070
- ? deserializeAws_json1_1DevicesList(output.devices, context)
6071
- : undefined,
5744
+ capabilities: output.capabilities != null ? deserializeAws_json1_1KernelCapabilities(output.capabilities, context) : undefined,
5745
+ devices: output.devices != null ? deserializeAws_json1_1DevicesList(output.devices, context) : undefined,
6072
5746
  initProcessEnabled: (0, smithy_client_1.expectBoolean)(output.initProcessEnabled),
6073
5747
  maxSwap: (0, smithy_client_1.expectInt32)(output.maxSwap),
6074
5748
  sharedMemorySize: (0, smithy_client_1.expectInt32)(output.sharedMemorySize),
6075
5749
  swappiness: (0, smithy_client_1.expectInt32)(output.swappiness),
6076
- tmpfs: output.tmpfs !== undefined && output.tmpfs !== null
6077
- ? deserializeAws_json1_1TmpfsList(output.tmpfs, context)
6078
- : undefined,
5750
+ tmpfs: output.tmpfs != null ? deserializeAws_json1_1TmpfsList(output.tmpfs, context) : undefined,
6079
5751
  };
6080
5752
  };
6081
5753
  const deserializeAws_json1_1ListAccountSettingsResponse = (output, context) => {
6082
5754
  return {
6083
5755
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
6084
- settings: output.settings !== undefined && output.settings !== null
6085
- ? deserializeAws_json1_1Settings(output.settings, context)
6086
- : undefined,
5756
+ settings: output.settings != null ? deserializeAws_json1_1Settings(output.settings, context) : undefined,
6087
5757
  };
6088
5758
  };
6089
5759
  const deserializeAws_json1_1ListAttributesResponse = (output, context) => {
6090
5760
  return {
6091
- attributes: output.attributes !== undefined && output.attributes !== null
6092
- ? deserializeAws_json1_1Attributes(output.attributes, context)
6093
- : undefined,
5761
+ attributes: output.attributes != null ? deserializeAws_json1_1Attributes(output.attributes, context) : undefined,
6094
5762
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
6095
5763
  };
6096
5764
  };
6097
5765
  const deserializeAws_json1_1ListClustersResponse = (output, context) => {
6098
5766
  return {
6099
- clusterArns: output.clusterArns !== undefined && output.clusterArns !== null
6100
- ? deserializeAws_json1_1StringList(output.clusterArns, context)
6101
- : undefined,
5767
+ clusterArns: output.clusterArns != null ? deserializeAws_json1_1StringList(output.clusterArns, context) : undefined,
6102
5768
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
6103
5769
  };
6104
5770
  };
6105
5771
  const deserializeAws_json1_1ListContainerInstancesResponse = (output, context) => {
6106
5772
  return {
6107
- containerInstanceArns: output.containerInstanceArns !== undefined && output.containerInstanceArns !== null
5773
+ containerInstanceArns: output.containerInstanceArns != null
6108
5774
  ? deserializeAws_json1_1StringList(output.containerInstanceArns, context)
6109
5775
  : undefined,
6110
5776
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
@@ -6113,28 +5779,24 @@ const deserializeAws_json1_1ListContainerInstancesResponse = (output, context) =
6113
5779
  const deserializeAws_json1_1ListServicesResponse = (output, context) => {
6114
5780
  return {
6115
5781
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
6116
- serviceArns: output.serviceArns !== undefined && output.serviceArns !== null
6117
- ? deserializeAws_json1_1StringList(output.serviceArns, context)
6118
- : undefined,
5782
+ serviceArns: output.serviceArns != null ? deserializeAws_json1_1StringList(output.serviceArns, context) : undefined,
6119
5783
  };
6120
5784
  };
6121
5785
  const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
6122
5786
  return {
6123
- tags: output.tags !== undefined && output.tags !== null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
5787
+ tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
6124
5788
  };
6125
5789
  };
6126
5790
  const deserializeAws_json1_1ListTaskDefinitionFamiliesResponse = (output, context) => {
6127
5791
  return {
6128
- families: output.families !== undefined && output.families !== null
6129
- ? deserializeAws_json1_1StringList(output.families, context)
6130
- : undefined,
5792
+ families: output.families != null ? deserializeAws_json1_1StringList(output.families, context) : undefined,
6131
5793
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
6132
5794
  };
6133
5795
  };
6134
5796
  const deserializeAws_json1_1ListTaskDefinitionsResponse = (output, context) => {
6135
5797
  return {
6136
5798
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
6137
- taskDefinitionArns: output.taskDefinitionArns !== undefined && output.taskDefinitionArns !== null
5799
+ taskDefinitionArns: output.taskDefinitionArns != null
6138
5800
  ? deserializeAws_json1_1StringList(output.taskDefinitionArns, context)
6139
5801
  : undefined,
6140
5802
  };
@@ -6142,9 +5804,7 @@ const deserializeAws_json1_1ListTaskDefinitionsResponse = (output, context) => {
6142
5804
  const deserializeAws_json1_1ListTasksResponse = (output, context) => {
6143
5805
  return {
6144
5806
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
6145
- taskArns: output.taskArns !== undefined && output.taskArns !== null
6146
- ? deserializeAws_json1_1StringList(output.taskArns, context)
6147
- : undefined,
5807
+ taskArns: output.taskArns != null ? deserializeAws_json1_1StringList(output.taskArns, context) : undefined,
6148
5808
  };
6149
5809
  };
6150
5810
  const deserializeAws_json1_1LoadBalancer = (output, context) => {
@@ -6169,12 +5829,8 @@ const deserializeAws_json1_1LoadBalancers = (output, context) => {
6169
5829
  const deserializeAws_json1_1LogConfiguration = (output, context) => {
6170
5830
  return {
6171
5831
  logDriver: (0, smithy_client_1.expectString)(output.logDriver),
6172
- options: output.options !== undefined && output.options !== null
6173
- ? deserializeAws_json1_1LogConfigurationOptionsMap(output.options, context)
6174
- : undefined,
6175
- secretOptions: output.secretOptions !== undefined && output.secretOptions !== null
6176
- ? deserializeAws_json1_1SecretList(output.secretOptions, context)
6177
- : undefined,
5832
+ options: output.options != null ? deserializeAws_json1_1LogConfigurationOptionsMap(output.options, context) : undefined,
5833
+ secretOptions: output.secretOptions != null ? deserializeAws_json1_1SecretList(output.secretOptions, context) : undefined,
6178
5834
  };
6179
5835
  };
6180
5836
  const deserializeAws_json1_1LogConfigurationOptionsMap = (output, context) => {
@@ -6190,7 +5846,7 @@ const deserializeAws_json1_1LogConfigurationOptionsMap = (output, context) => {
6190
5846
  };
6191
5847
  const deserializeAws_json1_1ManagedAgent = (output, context) => {
6192
5848
  return {
6193
- lastStartedAt: output.lastStartedAt !== undefined && output.lastStartedAt !== null
5849
+ lastStartedAt: output.lastStartedAt != null
6194
5850
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastStartedAt)))
6195
5851
  : undefined,
6196
5852
  lastStatus: (0, smithy_client_1.expectString)(output.lastStatus),
@@ -6262,7 +5918,7 @@ const deserializeAws_json1_1NetworkBindings = (output, context) => {
6262
5918
  };
6263
5919
  const deserializeAws_json1_1NetworkConfiguration = (output, context) => {
6264
5920
  return {
6265
- awsvpcConfiguration: output.awsvpcConfiguration !== undefined && output.awsvpcConfiguration !== null
5921
+ awsvpcConfiguration: output.awsvpcConfiguration != null
6266
5922
  ? deserializeAws_json1_1AwsVpcConfiguration(output.awsvpcConfiguration, context)
6267
5923
  : undefined,
6268
5924
  };
@@ -6355,7 +6011,7 @@ const deserializeAws_json1_1PortMappingList = (output, context) => {
6355
6011
  const deserializeAws_json1_1ProxyConfiguration = (output, context) => {
6356
6012
  return {
6357
6013
  containerName: (0, smithy_client_1.expectString)(output.containerName),
6358
- properties: output.properties !== undefined && output.properties !== null
6014
+ properties: output.properties != null
6359
6015
  ? deserializeAws_json1_1ProxyConfigurationProperties(output.properties, context)
6360
6016
  : undefined,
6361
6017
  type: (0, smithy_client_1.expectString)(output.type),
@@ -6374,45 +6030,35 @@ const deserializeAws_json1_1ProxyConfigurationProperties = (output, context) =>
6374
6030
  };
6375
6031
  const deserializeAws_json1_1PutAccountSettingDefaultResponse = (output, context) => {
6376
6032
  return {
6377
- setting: output.setting !== undefined && output.setting !== null
6378
- ? deserializeAws_json1_1Setting(output.setting, context)
6379
- : undefined,
6033
+ setting: output.setting != null ? deserializeAws_json1_1Setting(output.setting, context) : undefined,
6380
6034
  };
6381
6035
  };
6382
6036
  const deserializeAws_json1_1PutAccountSettingResponse = (output, context) => {
6383
6037
  return {
6384
- setting: output.setting !== undefined && output.setting !== null
6385
- ? deserializeAws_json1_1Setting(output.setting, context)
6386
- : undefined,
6038
+ setting: output.setting != null ? deserializeAws_json1_1Setting(output.setting, context) : undefined,
6387
6039
  };
6388
6040
  };
6389
6041
  const deserializeAws_json1_1PutAttributesResponse = (output, context) => {
6390
6042
  return {
6391
- attributes: output.attributes !== undefined && output.attributes !== null
6392
- ? deserializeAws_json1_1Attributes(output.attributes, context)
6393
- : undefined,
6043
+ attributes: output.attributes != null ? deserializeAws_json1_1Attributes(output.attributes, context) : undefined,
6394
6044
  };
6395
6045
  };
6396
6046
  const deserializeAws_json1_1PutClusterCapacityProvidersResponse = (output, context) => {
6397
6047
  return {
6398
- cluster: output.cluster !== undefined && output.cluster !== null
6399
- ? deserializeAws_json1_1Cluster(output.cluster, context)
6400
- : undefined,
6048
+ cluster: output.cluster != null ? deserializeAws_json1_1Cluster(output.cluster, context) : undefined,
6401
6049
  };
6402
6050
  };
6403
6051
  const deserializeAws_json1_1RegisterContainerInstanceResponse = (output, context) => {
6404
6052
  return {
6405
- containerInstance: output.containerInstance !== undefined && output.containerInstance !== null
6053
+ containerInstance: output.containerInstance != null
6406
6054
  ? deserializeAws_json1_1ContainerInstance(output.containerInstance, context)
6407
6055
  : undefined,
6408
6056
  };
6409
6057
  };
6410
6058
  const deserializeAws_json1_1RegisterTaskDefinitionResponse = (output, context) => {
6411
6059
  return {
6412
- tags: output.tags !== undefined && output.tags !== null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
6413
- taskDefinition: output.taskDefinition !== undefined && output.taskDefinition !== null
6414
- ? deserializeAws_json1_1TaskDefinition(output.taskDefinition, context)
6415
- : undefined,
6060
+ tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
6061
+ taskDefinition: output.taskDefinition != null ? deserializeAws_json1_1TaskDefinition(output.taskDefinition, context) : undefined,
6416
6062
  };
6417
6063
  };
6418
6064
  const deserializeAws_json1_1RepositoryCredentials = (output, context) => {
@@ -6437,9 +6083,7 @@ const deserializeAws_json1_1Resource = (output, context) => {
6437
6083
  integerValue: (0, smithy_client_1.expectInt32)(output.integerValue),
6438
6084
  longValue: (0, smithy_client_1.expectLong)(output.longValue),
6439
6085
  name: (0, smithy_client_1.expectString)(output.name),
6440
- stringSetValue: output.stringSetValue !== undefined && output.stringSetValue !== null
6441
- ? deserializeAws_json1_1StringList(output.stringSetValue, context)
6442
- : undefined,
6086
+ stringSetValue: output.stringSetValue != null ? deserializeAws_json1_1StringList(output.stringSetValue, context) : undefined,
6443
6087
  type: (0, smithy_client_1.expectString)(output.type),
6444
6088
  };
6445
6089
  };
@@ -6483,12 +6127,8 @@ const deserializeAws_json1_1Resources = (output, context) => {
6483
6127
  };
6484
6128
  const deserializeAws_json1_1RunTaskResponse = (output, context) => {
6485
6129
  return {
6486
- failures: output.failures !== undefined && output.failures !== null
6487
- ? deserializeAws_json1_1Failures(output.failures, context)
6488
- : undefined,
6489
- tasks: output.tasks !== undefined && output.tasks !== null
6490
- ? deserializeAws_json1_1Tasks(output.tasks, context)
6491
- : undefined,
6130
+ failures: output.failures != null ? deserializeAws_json1_1Failures(output.failures, context) : undefined,
6131
+ tasks: output.tasks != null ? deserializeAws_json1_1Tasks(output.tasks, context) : undefined,
6492
6132
  };
6493
6133
  };
6494
6134
  const deserializeAws_json1_1RuntimePlatform = (output, context) => {
@@ -6527,42 +6167,34 @@ const deserializeAws_json1_1ServerException = (output, context) => {
6527
6167
  };
6528
6168
  const deserializeAws_json1_1Service = (output, context) => {
6529
6169
  return {
6530
- capacityProviderStrategy: output.capacityProviderStrategy !== undefined && output.capacityProviderStrategy !== null
6170
+ capacityProviderStrategy: output.capacityProviderStrategy != null
6531
6171
  ? deserializeAws_json1_1CapacityProviderStrategy(output.capacityProviderStrategy, context)
6532
6172
  : undefined,
6533
6173
  clusterArn: (0, smithy_client_1.expectString)(output.clusterArn),
6534
- createdAt: output.createdAt !== undefined && output.createdAt !== null
6535
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
6536
- : undefined,
6174
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
6537
6175
  createdBy: (0, smithy_client_1.expectString)(output.createdBy),
6538
- deploymentConfiguration: output.deploymentConfiguration !== undefined && output.deploymentConfiguration !== null
6176
+ deploymentConfiguration: output.deploymentConfiguration != null
6539
6177
  ? deserializeAws_json1_1DeploymentConfiguration(output.deploymentConfiguration, context)
6540
6178
  : undefined,
6541
- deploymentController: output.deploymentController !== undefined && output.deploymentController !== null
6179
+ deploymentController: output.deploymentController != null
6542
6180
  ? deserializeAws_json1_1DeploymentController(output.deploymentController, context)
6543
6181
  : undefined,
6544
- deployments: output.deployments !== undefined && output.deployments !== null
6545
- ? deserializeAws_json1_1Deployments(output.deployments, context)
6546
- : undefined,
6182
+ deployments: output.deployments != null ? deserializeAws_json1_1Deployments(output.deployments, context) : undefined,
6547
6183
  desiredCount: (0, smithy_client_1.expectInt32)(output.desiredCount),
6548
6184
  enableECSManagedTags: (0, smithy_client_1.expectBoolean)(output.enableECSManagedTags),
6549
6185
  enableExecuteCommand: (0, smithy_client_1.expectBoolean)(output.enableExecuteCommand),
6550
- events: output.events !== undefined && output.events !== null
6551
- ? deserializeAws_json1_1ServiceEvents(output.events, context)
6552
- : undefined,
6186
+ events: output.events != null ? deserializeAws_json1_1ServiceEvents(output.events, context) : undefined,
6553
6187
  healthCheckGracePeriodSeconds: (0, smithy_client_1.expectInt32)(output.healthCheckGracePeriodSeconds),
6554
6188
  launchType: (0, smithy_client_1.expectString)(output.launchType),
6555
- loadBalancers: output.loadBalancers !== undefined && output.loadBalancers !== null
6556
- ? deserializeAws_json1_1LoadBalancers(output.loadBalancers, context)
6557
- : undefined,
6558
- networkConfiguration: output.networkConfiguration !== undefined && output.networkConfiguration !== null
6189
+ loadBalancers: output.loadBalancers != null ? deserializeAws_json1_1LoadBalancers(output.loadBalancers, context) : undefined,
6190
+ networkConfiguration: output.networkConfiguration != null
6559
6191
  ? deserializeAws_json1_1NetworkConfiguration(output.networkConfiguration, context)
6560
6192
  : undefined,
6561
6193
  pendingCount: (0, smithy_client_1.expectInt32)(output.pendingCount),
6562
- placementConstraints: output.placementConstraints !== undefined && output.placementConstraints !== null
6194
+ placementConstraints: output.placementConstraints != null
6563
6195
  ? deserializeAws_json1_1PlacementConstraints(output.placementConstraints, context)
6564
6196
  : undefined,
6565
- placementStrategy: output.placementStrategy !== undefined && output.placementStrategy !== null
6197
+ placementStrategy: output.placementStrategy != null
6566
6198
  ? deserializeAws_json1_1PlacementStrategies(output.placementStrategy, context)
6567
6199
  : undefined,
6568
6200
  platformFamily: (0, smithy_client_1.expectString)(output.platformFamily),
@@ -6573,22 +6205,18 @@ const deserializeAws_json1_1Service = (output, context) => {
6573
6205
  schedulingStrategy: (0, smithy_client_1.expectString)(output.schedulingStrategy),
6574
6206
  serviceArn: (0, smithy_client_1.expectString)(output.serviceArn),
6575
6207
  serviceName: (0, smithy_client_1.expectString)(output.serviceName),
6576
- serviceRegistries: output.serviceRegistries !== undefined && output.serviceRegistries !== null
6208
+ serviceRegistries: output.serviceRegistries != null
6577
6209
  ? deserializeAws_json1_1ServiceRegistries(output.serviceRegistries, context)
6578
6210
  : undefined,
6579
6211
  status: (0, smithy_client_1.expectString)(output.status),
6580
- tags: output.tags !== undefined && output.tags !== null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
6212
+ tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
6581
6213
  taskDefinition: (0, smithy_client_1.expectString)(output.taskDefinition),
6582
- taskSets: output.taskSets !== undefined && output.taskSets !== null
6583
- ? deserializeAws_json1_1TaskSets(output.taskSets, context)
6584
- : undefined,
6214
+ taskSets: output.taskSets != null ? deserializeAws_json1_1TaskSets(output.taskSets, context) : undefined,
6585
6215
  };
6586
6216
  };
6587
6217
  const deserializeAws_json1_1ServiceEvent = (output, context) => {
6588
6218
  return {
6589
- createdAt: output.createdAt !== undefined && output.createdAt !== null
6590
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
6591
- : undefined,
6219
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
6592
6220
  id: (0, smithy_client_1.expectString)(output.id),
6593
6221
  message: (0, smithy_client_1.expectString)(output.message),
6594
6222
  };
@@ -6671,12 +6299,8 @@ const deserializeAws_json1_1Settings = (output, context) => {
6671
6299
  };
6672
6300
  const deserializeAws_json1_1StartTaskResponse = (output, context) => {
6673
6301
  return {
6674
- failures: output.failures !== undefined && output.failures !== null
6675
- ? deserializeAws_json1_1Failures(output.failures, context)
6676
- : undefined,
6677
- tasks: output.tasks !== undefined && output.tasks !== null
6678
- ? deserializeAws_json1_1Tasks(output.tasks, context)
6679
- : undefined,
6302
+ failures: output.failures != null ? deserializeAws_json1_1Failures(output.failures, context) : undefined,
6303
+ tasks: output.tasks != null ? deserializeAws_json1_1Tasks(output.tasks, context) : undefined,
6680
6304
  };
6681
6305
  };
6682
6306
  const deserializeAws_json1_1Statistics = (output, context) => {
@@ -6692,7 +6316,7 @@ const deserializeAws_json1_1Statistics = (output, context) => {
6692
6316
  };
6693
6317
  const deserializeAws_json1_1StopTaskResponse = (output, context) => {
6694
6318
  return {
6695
- task: output.task !== undefined && output.task !== null ? deserializeAws_json1_1Task(output.task, context) : undefined,
6319
+ task: output.task != null ? deserializeAws_json1_1Task(output.task, context) : undefined,
6696
6320
  };
6697
6321
  };
6698
6322
  const deserializeAws_json1_1StringList = (output, context) => {
@@ -6781,67 +6405,51 @@ const deserializeAws_json1_1TargetNotFoundException = (output, context) => {
6781
6405
  };
6782
6406
  const deserializeAws_json1_1Task = (output, context) => {
6783
6407
  return {
6784
- attachments: output.attachments !== undefined && output.attachments !== null
6785
- ? deserializeAws_json1_1Attachments(output.attachments, context)
6786
- : undefined,
6787
- attributes: output.attributes !== undefined && output.attributes !== null
6788
- ? deserializeAws_json1_1Attributes(output.attributes, context)
6789
- : undefined,
6408
+ attachments: output.attachments != null ? deserializeAws_json1_1Attachments(output.attachments, context) : undefined,
6409
+ attributes: output.attributes != null ? deserializeAws_json1_1Attributes(output.attributes, context) : undefined,
6790
6410
  availabilityZone: (0, smithy_client_1.expectString)(output.availabilityZone),
6791
6411
  capacityProviderName: (0, smithy_client_1.expectString)(output.capacityProviderName),
6792
6412
  clusterArn: (0, smithy_client_1.expectString)(output.clusterArn),
6793
6413
  connectivity: (0, smithy_client_1.expectString)(output.connectivity),
6794
- connectivityAt: output.connectivityAt !== undefined && output.connectivityAt !== null
6414
+ connectivityAt: output.connectivityAt != null
6795
6415
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.connectivityAt)))
6796
6416
  : undefined,
6797
6417
  containerInstanceArn: (0, smithy_client_1.expectString)(output.containerInstanceArn),
6798
- containers: output.containers !== undefined && output.containers !== null
6799
- ? deserializeAws_json1_1Containers(output.containers, context)
6800
- : undefined,
6418
+ containers: output.containers != null ? deserializeAws_json1_1Containers(output.containers, context) : undefined,
6801
6419
  cpu: (0, smithy_client_1.expectString)(output.cpu),
6802
- createdAt: output.createdAt !== undefined && output.createdAt !== null
6803
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
6804
- : undefined,
6420
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
6805
6421
  desiredStatus: (0, smithy_client_1.expectString)(output.desiredStatus),
6806
6422
  enableExecuteCommand: (0, smithy_client_1.expectBoolean)(output.enableExecuteCommand),
6807
- ephemeralStorage: output.ephemeralStorage !== undefined && output.ephemeralStorage !== null
6423
+ ephemeralStorage: output.ephemeralStorage != null
6808
6424
  ? deserializeAws_json1_1EphemeralStorage(output.ephemeralStorage, context)
6809
6425
  : undefined,
6810
- executionStoppedAt: output.executionStoppedAt !== undefined && output.executionStoppedAt !== null
6426
+ executionStoppedAt: output.executionStoppedAt != null
6811
6427
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.executionStoppedAt)))
6812
6428
  : undefined,
6813
6429
  group: (0, smithy_client_1.expectString)(output.group),
6814
6430
  healthStatus: (0, smithy_client_1.expectString)(output.healthStatus),
6815
- inferenceAccelerators: output.inferenceAccelerators !== undefined && output.inferenceAccelerators !== null
6431
+ inferenceAccelerators: output.inferenceAccelerators != null
6816
6432
  ? deserializeAws_json1_1InferenceAccelerators(output.inferenceAccelerators, context)
6817
6433
  : undefined,
6818
6434
  lastStatus: (0, smithy_client_1.expectString)(output.lastStatus),
6819
6435
  launchType: (0, smithy_client_1.expectString)(output.launchType),
6820
6436
  memory: (0, smithy_client_1.expectString)(output.memory),
6821
- overrides: output.overrides !== undefined && output.overrides !== null
6822
- ? deserializeAws_json1_1TaskOverride(output.overrides, context)
6823
- : undefined,
6437
+ overrides: output.overrides != null ? deserializeAws_json1_1TaskOverride(output.overrides, context) : undefined,
6824
6438
  platformFamily: (0, smithy_client_1.expectString)(output.platformFamily),
6825
6439
  platformVersion: (0, smithy_client_1.expectString)(output.platformVersion),
6826
- pullStartedAt: output.pullStartedAt !== undefined && output.pullStartedAt !== null
6440
+ pullStartedAt: output.pullStartedAt != null
6827
6441
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.pullStartedAt)))
6828
6442
  : undefined,
6829
- pullStoppedAt: output.pullStoppedAt !== undefined && output.pullStoppedAt !== null
6443
+ pullStoppedAt: output.pullStoppedAt != null
6830
6444
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.pullStoppedAt)))
6831
6445
  : undefined,
6832
- startedAt: output.startedAt !== undefined && output.startedAt !== null
6833
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startedAt)))
6834
- : undefined,
6446
+ startedAt: output.startedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startedAt))) : undefined,
6835
6447
  startedBy: (0, smithy_client_1.expectString)(output.startedBy),
6836
6448
  stopCode: (0, smithy_client_1.expectString)(output.stopCode),
6837
- stoppedAt: output.stoppedAt !== undefined && output.stoppedAt !== null
6838
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stoppedAt)))
6839
- : undefined,
6449
+ stoppedAt: output.stoppedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stoppedAt))) : undefined,
6840
6450
  stoppedReason: (0, smithy_client_1.expectString)(output.stoppedReason),
6841
- stoppingAt: output.stoppingAt !== undefined && output.stoppingAt !== null
6842
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stoppingAt)))
6843
- : undefined,
6844
- tags: output.tags !== undefined && output.tags !== null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
6451
+ stoppingAt: output.stoppingAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stoppingAt))) : undefined,
6452
+ tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
6845
6453
  taskArn: (0, smithy_client_1.expectString)(output.taskArn),
6846
6454
  taskDefinitionArn: (0, smithy_client_1.expectString)(output.taskDefinitionArn),
6847
6455
  version: (0, smithy_client_1.expectLong)(output.version),
@@ -6849,54 +6457,52 @@ const deserializeAws_json1_1Task = (output, context) => {
6849
6457
  };
6850
6458
  const deserializeAws_json1_1TaskDefinition = (output, context) => {
6851
6459
  return {
6852
- compatibilities: output.compatibilities !== undefined && output.compatibilities !== null
6460
+ compatibilities: output.compatibilities != null
6853
6461
  ? deserializeAws_json1_1CompatibilityList(output.compatibilities, context)
6854
6462
  : undefined,
6855
- containerDefinitions: output.containerDefinitions !== undefined && output.containerDefinitions !== null
6463
+ containerDefinitions: output.containerDefinitions != null
6856
6464
  ? deserializeAws_json1_1ContainerDefinitions(output.containerDefinitions, context)
6857
6465
  : undefined,
6858
6466
  cpu: (0, smithy_client_1.expectString)(output.cpu),
6859
- deregisteredAt: output.deregisteredAt !== undefined && output.deregisteredAt !== null
6467
+ deregisteredAt: output.deregisteredAt != null
6860
6468
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.deregisteredAt)))
6861
6469
  : undefined,
6862
- ephemeralStorage: output.ephemeralStorage !== undefined && output.ephemeralStorage !== null
6470
+ ephemeralStorage: output.ephemeralStorage != null
6863
6471
  ? deserializeAws_json1_1EphemeralStorage(output.ephemeralStorage, context)
6864
6472
  : undefined,
6865
6473
  executionRoleArn: (0, smithy_client_1.expectString)(output.executionRoleArn),
6866
6474
  family: (0, smithy_client_1.expectString)(output.family),
6867
- inferenceAccelerators: output.inferenceAccelerators !== undefined && output.inferenceAccelerators !== null
6475
+ inferenceAccelerators: output.inferenceAccelerators != null
6868
6476
  ? deserializeAws_json1_1InferenceAccelerators(output.inferenceAccelerators, context)
6869
6477
  : undefined,
6870
6478
  ipcMode: (0, smithy_client_1.expectString)(output.ipcMode),
6871
6479
  memory: (0, smithy_client_1.expectString)(output.memory),
6872
6480
  networkMode: (0, smithy_client_1.expectString)(output.networkMode),
6873
6481
  pidMode: (0, smithy_client_1.expectString)(output.pidMode),
6874
- placementConstraints: output.placementConstraints !== undefined && output.placementConstraints !== null
6482
+ placementConstraints: output.placementConstraints != null
6875
6483
  ? deserializeAws_json1_1TaskDefinitionPlacementConstraints(output.placementConstraints, context)
6876
6484
  : undefined,
6877
- proxyConfiguration: output.proxyConfiguration !== undefined && output.proxyConfiguration !== null
6485
+ proxyConfiguration: output.proxyConfiguration != null
6878
6486
  ? deserializeAws_json1_1ProxyConfiguration(output.proxyConfiguration, context)
6879
6487
  : undefined,
6880
- registeredAt: output.registeredAt !== undefined && output.registeredAt !== null
6488
+ registeredAt: output.registeredAt != null
6881
6489
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.registeredAt)))
6882
6490
  : undefined,
6883
6491
  registeredBy: (0, smithy_client_1.expectString)(output.registeredBy),
6884
- requiresAttributes: output.requiresAttributes !== undefined && output.requiresAttributes !== null
6492
+ requiresAttributes: output.requiresAttributes != null
6885
6493
  ? deserializeAws_json1_1RequiresAttributes(output.requiresAttributes, context)
6886
6494
  : undefined,
6887
- requiresCompatibilities: output.requiresCompatibilities !== undefined && output.requiresCompatibilities !== null
6495
+ requiresCompatibilities: output.requiresCompatibilities != null
6888
6496
  ? deserializeAws_json1_1CompatibilityList(output.requiresCompatibilities, context)
6889
6497
  : undefined,
6890
6498
  revision: (0, smithy_client_1.expectInt32)(output.revision),
6891
- runtimePlatform: output.runtimePlatform !== undefined && output.runtimePlatform !== null
6499
+ runtimePlatform: output.runtimePlatform != null
6892
6500
  ? deserializeAws_json1_1RuntimePlatform(output.runtimePlatform, context)
6893
6501
  : undefined,
6894
6502
  status: (0, smithy_client_1.expectString)(output.status),
6895
6503
  taskDefinitionArn: (0, smithy_client_1.expectString)(output.taskDefinitionArn),
6896
6504
  taskRoleArn: (0, smithy_client_1.expectString)(output.taskRoleArn),
6897
- volumes: output.volumes !== undefined && output.volumes !== null
6898
- ? deserializeAws_json1_1VolumeList(output.volumes, context)
6899
- : undefined,
6505
+ volumes: output.volumes != null ? deserializeAws_json1_1VolumeList(output.volumes, context) : undefined,
6900
6506
  };
6901
6507
  };
6902
6508
  const deserializeAws_json1_1TaskDefinitionPlacementConstraint = (output, context) => {
@@ -6918,15 +6524,15 @@ const deserializeAws_json1_1TaskDefinitionPlacementConstraints = (output, contex
6918
6524
  };
6919
6525
  const deserializeAws_json1_1TaskOverride = (output, context) => {
6920
6526
  return {
6921
- containerOverrides: output.containerOverrides !== undefined && output.containerOverrides !== null
6527
+ containerOverrides: output.containerOverrides != null
6922
6528
  ? deserializeAws_json1_1ContainerOverrides(output.containerOverrides, context)
6923
6529
  : undefined,
6924
6530
  cpu: (0, smithy_client_1.expectString)(output.cpu),
6925
- ephemeralStorage: output.ephemeralStorage !== undefined && output.ephemeralStorage !== null
6531
+ ephemeralStorage: output.ephemeralStorage != null
6926
6532
  ? deserializeAws_json1_1EphemeralStorage(output.ephemeralStorage, context)
6927
6533
  : undefined,
6928
6534
  executionRoleArn: (0, smithy_client_1.expectString)(output.executionRoleArn),
6929
- inferenceAcceleratorOverrides: output.inferenceAcceleratorOverrides !== undefined && output.inferenceAcceleratorOverrides !== null
6535
+ inferenceAcceleratorOverrides: output.inferenceAcceleratorOverrides != null
6930
6536
  ? deserializeAws_json1_1InferenceAcceleratorOverrides(output.inferenceAcceleratorOverrides, context)
6931
6537
  : undefined,
6932
6538
  memory: (0, smithy_client_1.expectString)(output.memory),
@@ -6946,46 +6552,38 @@ const deserializeAws_json1_1Tasks = (output, context) => {
6946
6552
  };
6947
6553
  const deserializeAws_json1_1TaskSet = (output, context) => {
6948
6554
  return {
6949
- capacityProviderStrategy: output.capacityProviderStrategy !== undefined && output.capacityProviderStrategy !== null
6555
+ capacityProviderStrategy: output.capacityProviderStrategy != null
6950
6556
  ? deserializeAws_json1_1CapacityProviderStrategy(output.capacityProviderStrategy, context)
6951
6557
  : undefined,
6952
6558
  clusterArn: (0, smithy_client_1.expectString)(output.clusterArn),
6953
6559
  computedDesiredCount: (0, smithy_client_1.expectInt32)(output.computedDesiredCount),
6954
- createdAt: output.createdAt !== undefined && output.createdAt !== null
6955
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
6956
- : undefined,
6560
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
6957
6561
  externalId: (0, smithy_client_1.expectString)(output.externalId),
6958
6562
  id: (0, smithy_client_1.expectString)(output.id),
6959
6563
  launchType: (0, smithy_client_1.expectString)(output.launchType),
6960
- loadBalancers: output.loadBalancers !== undefined && output.loadBalancers !== null
6961
- ? deserializeAws_json1_1LoadBalancers(output.loadBalancers, context)
6962
- : undefined,
6963
- networkConfiguration: output.networkConfiguration !== undefined && output.networkConfiguration !== null
6564
+ loadBalancers: output.loadBalancers != null ? deserializeAws_json1_1LoadBalancers(output.loadBalancers, context) : undefined,
6565
+ networkConfiguration: output.networkConfiguration != null
6964
6566
  ? deserializeAws_json1_1NetworkConfiguration(output.networkConfiguration, context)
6965
6567
  : undefined,
6966
6568
  pendingCount: (0, smithy_client_1.expectInt32)(output.pendingCount),
6967
6569
  platformFamily: (0, smithy_client_1.expectString)(output.platformFamily),
6968
6570
  platformVersion: (0, smithy_client_1.expectString)(output.platformVersion),
6969
6571
  runningCount: (0, smithy_client_1.expectInt32)(output.runningCount),
6970
- scale: output.scale !== undefined && output.scale !== null
6971
- ? deserializeAws_json1_1Scale(output.scale, context)
6972
- : undefined,
6572
+ scale: output.scale != null ? deserializeAws_json1_1Scale(output.scale, context) : undefined,
6973
6573
  serviceArn: (0, smithy_client_1.expectString)(output.serviceArn),
6974
- serviceRegistries: output.serviceRegistries !== undefined && output.serviceRegistries !== null
6574
+ serviceRegistries: output.serviceRegistries != null
6975
6575
  ? deserializeAws_json1_1ServiceRegistries(output.serviceRegistries, context)
6976
6576
  : undefined,
6977
6577
  stabilityStatus: (0, smithy_client_1.expectString)(output.stabilityStatus),
6978
- stabilityStatusAt: output.stabilityStatusAt !== undefined && output.stabilityStatusAt !== null
6578
+ stabilityStatusAt: output.stabilityStatusAt != null
6979
6579
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stabilityStatusAt)))
6980
6580
  : undefined,
6981
6581
  startedBy: (0, smithy_client_1.expectString)(output.startedBy),
6982
6582
  status: (0, smithy_client_1.expectString)(output.status),
6983
- tags: output.tags !== undefined && output.tags !== null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
6583
+ tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
6984
6584
  taskDefinition: (0, smithy_client_1.expectString)(output.taskDefinition),
6985
6585
  taskSetArn: (0, smithy_client_1.expectString)(output.taskSetArn),
6986
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
6987
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt)))
6988
- : undefined,
6586
+ updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
6989
6587
  };
6990
6588
  };
6991
6589
  const deserializeAws_json1_1TaskSetNotFoundException = (output, context) => {
@@ -7007,9 +6605,7 @@ const deserializeAws_json1_1TaskSets = (output, context) => {
7007
6605
  const deserializeAws_json1_1Tmpfs = (output, context) => {
7008
6606
  return {
7009
6607
  containerPath: (0, smithy_client_1.expectString)(output.containerPath),
7010
- mountOptions: output.mountOptions !== undefined && output.mountOptions !== null
7011
- ? deserializeAws_json1_1StringList(output.mountOptions, context)
7012
- : undefined,
6608
+ mountOptions: output.mountOptions != null ? deserializeAws_json1_1StringList(output.mountOptions, context) : undefined,
7013
6609
  size: (0, smithy_client_1.expectInt32)(output.size),
7014
6610
  };
7015
6611
  };
@@ -7052,40 +6648,34 @@ const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
7052
6648
  };
7053
6649
  const deserializeAws_json1_1UpdateCapacityProviderResponse = (output, context) => {
7054
6650
  return {
7055
- capacityProvider: output.capacityProvider !== undefined && output.capacityProvider !== null
6651
+ capacityProvider: output.capacityProvider != null
7056
6652
  ? deserializeAws_json1_1CapacityProvider(output.capacityProvider, context)
7057
6653
  : undefined,
7058
6654
  };
7059
6655
  };
7060
6656
  const deserializeAws_json1_1UpdateClusterResponse = (output, context) => {
7061
6657
  return {
7062
- cluster: output.cluster !== undefined && output.cluster !== null
7063
- ? deserializeAws_json1_1Cluster(output.cluster, context)
7064
- : undefined,
6658
+ cluster: output.cluster != null ? deserializeAws_json1_1Cluster(output.cluster, context) : undefined,
7065
6659
  };
7066
6660
  };
7067
6661
  const deserializeAws_json1_1UpdateClusterSettingsResponse = (output, context) => {
7068
6662
  return {
7069
- cluster: output.cluster !== undefined && output.cluster !== null
7070
- ? deserializeAws_json1_1Cluster(output.cluster, context)
7071
- : undefined,
6663
+ cluster: output.cluster != null ? deserializeAws_json1_1Cluster(output.cluster, context) : undefined,
7072
6664
  };
7073
6665
  };
7074
6666
  const deserializeAws_json1_1UpdateContainerAgentResponse = (output, context) => {
7075
6667
  return {
7076
- containerInstance: output.containerInstance !== undefined && output.containerInstance !== null
6668
+ containerInstance: output.containerInstance != null
7077
6669
  ? deserializeAws_json1_1ContainerInstance(output.containerInstance, context)
7078
6670
  : undefined,
7079
6671
  };
7080
6672
  };
7081
6673
  const deserializeAws_json1_1UpdateContainerInstancesStateResponse = (output, context) => {
7082
6674
  return {
7083
- containerInstances: output.containerInstances !== undefined && output.containerInstances !== null
6675
+ containerInstances: output.containerInstances != null
7084
6676
  ? deserializeAws_json1_1ContainerInstances(output.containerInstances, context)
7085
6677
  : undefined,
7086
- failures: output.failures !== undefined && output.failures !== null
7087
- ? deserializeAws_json1_1Failures(output.failures, context)
7088
- : undefined,
6678
+ failures: output.failures != null ? deserializeAws_json1_1Failures(output.failures, context) : undefined,
7089
6679
  };
7090
6680
  };
7091
6681
  const deserializeAws_json1_1UpdateInProgressException = (output, context) => {
@@ -7095,23 +6685,17 @@ const deserializeAws_json1_1UpdateInProgressException = (output, context) => {
7095
6685
  };
7096
6686
  const deserializeAws_json1_1UpdateServicePrimaryTaskSetResponse = (output, context) => {
7097
6687
  return {
7098
- taskSet: output.taskSet !== undefined && output.taskSet !== null
7099
- ? deserializeAws_json1_1TaskSet(output.taskSet, context)
7100
- : undefined,
6688
+ taskSet: output.taskSet != null ? deserializeAws_json1_1TaskSet(output.taskSet, context) : undefined,
7101
6689
  };
7102
6690
  };
7103
6691
  const deserializeAws_json1_1UpdateServiceResponse = (output, context) => {
7104
6692
  return {
7105
- service: output.service !== undefined && output.service !== null
7106
- ? deserializeAws_json1_1Service(output.service, context)
7107
- : undefined,
6693
+ service: output.service != null ? deserializeAws_json1_1Service(output.service, context) : undefined,
7108
6694
  };
7109
6695
  };
7110
6696
  const deserializeAws_json1_1UpdateTaskSetResponse = (output, context) => {
7111
6697
  return {
7112
- taskSet: output.taskSet !== undefined && output.taskSet !== null
7113
- ? deserializeAws_json1_1TaskSet(output.taskSet, context)
7114
- : undefined,
6698
+ taskSet: output.taskSet != null ? deserializeAws_json1_1TaskSet(output.taskSet, context) : undefined,
7115
6699
  };
7116
6700
  };
7117
6701
  const deserializeAws_json1_1VersionInfo = (output, context) => {
@@ -7123,19 +6707,16 @@ const deserializeAws_json1_1VersionInfo = (output, context) => {
7123
6707
  };
7124
6708
  const deserializeAws_json1_1Volume = (output, context) => {
7125
6709
  return {
7126
- dockerVolumeConfiguration: output.dockerVolumeConfiguration !== undefined && output.dockerVolumeConfiguration !== null
6710
+ dockerVolumeConfiguration: output.dockerVolumeConfiguration != null
7127
6711
  ? deserializeAws_json1_1DockerVolumeConfiguration(output.dockerVolumeConfiguration, context)
7128
6712
  : undefined,
7129
- efsVolumeConfiguration: output.efsVolumeConfiguration !== undefined && output.efsVolumeConfiguration !== null
6713
+ efsVolumeConfiguration: output.efsVolumeConfiguration != null
7130
6714
  ? deserializeAws_json1_1EFSVolumeConfiguration(output.efsVolumeConfiguration, context)
7131
6715
  : undefined,
7132
- fsxWindowsFileServerVolumeConfiguration: output.fsxWindowsFileServerVolumeConfiguration !== undefined &&
7133
- output.fsxWindowsFileServerVolumeConfiguration !== null
6716
+ fsxWindowsFileServerVolumeConfiguration: output.fsxWindowsFileServerVolumeConfiguration != null
7134
6717
  ? deserializeAws_json1_1FSxWindowsFileServerVolumeConfiguration(output.fsxWindowsFileServerVolumeConfiguration, context)
7135
6718
  : undefined,
7136
- host: output.host !== undefined && output.host !== null
7137
- ? deserializeAws_json1_1HostVolumeProperties(output.host, context)
7138
- : undefined,
6719
+ host: output.host != null ? deserializeAws_json1_1HostVolumeProperties(output.host, context) : undefined,
7139
6720
  name: (0, smithy_client_1.expectString)(output.name),
7140
6721
  };
7141
6722
  };
@@ -7211,6 +6792,9 @@ const loadRestJsonErrorCode = (output, data) => {
7211
6792
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
7212
6793
  const sanitizeErrorCode = (rawValue) => {
7213
6794
  let cleanValue = rawValue;
6795
+ if (typeof cleanValue === "number") {
6796
+ cleanValue = cleanValue.toString();
6797
+ }
7214
6798
  if (cleanValue.indexOf(":") >= 0) {
7215
6799
  cleanValue = cleanValue.split(":")[0];
7216
6800
  }