@aws-sdk/client-ecs 3.121.0 → 3.127.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4200,7 +4200,7 @@ var deserializeAws_json1_1UpdateInProgressExceptionResponse = function (parsedOu
4200
4200
  });
4201
4201
  }); };
4202
4202
  var serializeAws_json1_1AttachmentStateChange = function (input, context) {
4203
- return __assign(__assign({}, (input.attachmentArn !== undefined && input.attachmentArn !== null && { attachmentArn: input.attachmentArn })), (input.status !== undefined && input.status !== null && { status: input.status }));
4203
+ return __assign(__assign({}, (input.attachmentArn != null && { attachmentArn: input.attachmentArn })), (input.status != null && { status: input.status }));
4204
4204
  };
4205
4205
  var serializeAws_json1_1AttachmentStateChanges = function (input, context) {
4206
4206
  return input
@@ -4213,7 +4213,7 @@ var serializeAws_json1_1AttachmentStateChanges = function (input, context) {
4213
4213
  });
4214
4214
  };
4215
4215
  var serializeAws_json1_1Attribute = function (input, context) {
4216
- return __assign(__assign(__assign(__assign({}, (input.name !== undefined && input.name !== null && { name: input.name })), (input.targetId !== undefined && input.targetId !== null && { targetId: input.targetId })), (input.targetType !== undefined && input.targetType !== null && { targetType: input.targetType })), (input.value !== undefined && input.value !== null && { value: input.value }));
4216
+ return __assign(__assign(__assign(__assign({}, (input.name != null && { name: input.name })), (input.targetId != null && { targetId: input.targetId })), (input.targetType != null && { targetType: input.targetType })), (input.value != null && { value: input.value }));
4217
4217
  };
4218
4218
  var serializeAws_json1_1Attributes = function (input, context) {
4219
4219
  return input
@@ -4226,31 +4226,23 @@ var serializeAws_json1_1Attributes = function (input, context) {
4226
4226
  });
4227
4227
  };
4228
4228
  var serializeAws_json1_1AutoScalingGroupProvider = function (input, context) {
4229
- return __assign(__assign(__assign({}, (input.autoScalingGroupArn !== undefined &&
4230
- input.autoScalingGroupArn !== null && { autoScalingGroupArn: input.autoScalingGroupArn })), (input.managedScaling !== undefined &&
4231
- input.managedScaling !== null && {
4229
+ return __assign(__assign(__assign({}, (input.autoScalingGroupArn != null && { autoScalingGroupArn: input.autoScalingGroupArn })), (input.managedScaling != null && {
4232
4230
  managedScaling: serializeAws_json1_1ManagedScaling(input.managedScaling, context),
4233
- })), (input.managedTerminationProtection !== undefined &&
4234
- input.managedTerminationProtection !== null && {
4231
+ })), (input.managedTerminationProtection != null && {
4235
4232
  managedTerminationProtection: input.managedTerminationProtection,
4236
4233
  }));
4237
4234
  };
4238
4235
  var serializeAws_json1_1AutoScalingGroupProviderUpdate = function (input, context) {
4239
- return __assign(__assign({}, (input.managedScaling !== undefined &&
4240
- input.managedScaling !== null && {
4236
+ return __assign(__assign({}, (input.managedScaling != null && {
4241
4237
  managedScaling: serializeAws_json1_1ManagedScaling(input.managedScaling, context),
4242
- })), (input.managedTerminationProtection !== undefined &&
4243
- input.managedTerminationProtection !== null && {
4238
+ })), (input.managedTerminationProtection != null && {
4244
4239
  managedTerminationProtection: input.managedTerminationProtection,
4245
4240
  }));
4246
4241
  };
4247
4242
  var serializeAws_json1_1AwsVpcConfiguration = function (input, context) {
4248
- return __assign(__assign(__assign({}, (input.assignPublicIp !== undefined &&
4249
- input.assignPublicIp !== null && { assignPublicIp: input.assignPublicIp })), (input.securityGroups !== undefined &&
4250
- input.securityGroups !== null && {
4243
+ return __assign(__assign(__assign({}, (input.assignPublicIp != null && { assignPublicIp: input.assignPublicIp })), (input.securityGroups != null && {
4251
4244
  securityGroups: serializeAws_json1_1StringList(input.securityGroups, context),
4252
- })), (input.subnets !== undefined &&
4253
- input.subnets !== null && { subnets: serializeAws_json1_1StringList(input.subnets, context) }));
4245
+ })), (input.subnets != null && { subnets: serializeAws_json1_1StringList(input.subnets, context) }));
4254
4246
  };
4255
4247
  var serializeAws_json1_1CapacityProviderFieldList = function (input, context) {
4256
4248
  return input
@@ -4273,12 +4265,10 @@ var serializeAws_json1_1CapacityProviderStrategy = function (input, context) {
4273
4265
  });
4274
4266
  };
4275
4267
  var serializeAws_json1_1CapacityProviderStrategyItem = function (input, context) {
4276
- return __assign(__assign(__assign({}, (input.base !== undefined && input.base !== null && { base: input.base })), (input.capacityProvider !== undefined &&
4277
- input.capacityProvider !== null && { capacityProvider: input.capacityProvider })), (input.weight !== undefined && input.weight !== null && { weight: input.weight }));
4268
+ return __assign(__assign(__assign({}, (input.base != null && { base: input.base })), (input.capacityProvider != null && { capacityProvider: input.capacityProvider })), (input.weight != null && { weight: input.weight }));
4278
4269
  };
4279
4270
  var serializeAws_json1_1ClusterConfiguration = function (input, context) {
4280
- return __assign({}, (input.executeCommandConfiguration !== undefined &&
4281
- input.executeCommandConfiguration !== null && {
4271
+ return __assign({}, (input.executeCommandConfiguration != null && {
4282
4272
  executeCommandConfiguration: serializeAws_json1_1ExecuteCommandConfiguration(input.executeCommandConfiguration, context),
4283
4273
  }));
4284
4274
  };
@@ -4293,7 +4283,7 @@ var serializeAws_json1_1ClusterFieldList = function (input, context) {
4293
4283
  });
4294
4284
  };
4295
4285
  var serializeAws_json1_1ClusterSetting = function (input, context) {
4296
- return __assign(__assign({}, (input.name !== undefined && input.name !== null && { name: input.name })), (input.value !== undefined && input.value !== null && { value: input.value }));
4286
+ return __assign(__assign({}, (input.name != null && { name: input.name })), (input.value != null && { value: input.value }));
4297
4287
  };
4298
4288
  var serializeAws_json1_1ClusterSettings = function (input, context) {
4299
4289
  return input
@@ -4316,59 +4306,31 @@ var serializeAws_json1_1CompatibilityList = function (input, context) {
4316
4306
  });
4317
4307
  };
4318
4308
  var serializeAws_json1_1ContainerDefinition = function (input, context) {
4319
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.command !== undefined &&
4320
- input.command !== null && { command: serializeAws_json1_1StringList(input.command, context) })), (input.cpu !== undefined && input.cpu !== null && { cpu: input.cpu })), (input.dependsOn !== undefined &&
4321
- input.dependsOn !== null && { dependsOn: serializeAws_json1_1ContainerDependencies(input.dependsOn, context) })), (input.disableNetworking !== undefined &&
4322
- input.disableNetworking !== null && { disableNetworking: input.disableNetworking })), (input.dnsSearchDomains !== undefined &&
4323
- input.dnsSearchDomains !== null && {
4309
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.command != null && { command: serializeAws_json1_1StringList(input.command, context) })), (input.cpu != null && { cpu: input.cpu })), (input.dependsOn != null && { dependsOn: serializeAws_json1_1ContainerDependencies(input.dependsOn, context) })), (input.disableNetworking != null && { disableNetworking: input.disableNetworking })), (input.dnsSearchDomains != null && {
4324
4310
  dnsSearchDomains: serializeAws_json1_1StringList(input.dnsSearchDomains, context),
4325
- })), (input.dnsServers !== undefined &&
4326
- input.dnsServers !== null && { dnsServers: serializeAws_json1_1StringList(input.dnsServers, context) })), (input.dockerLabels !== undefined &&
4327
- input.dockerLabels !== null && {
4311
+ })), (input.dnsServers != null && { dnsServers: serializeAws_json1_1StringList(input.dnsServers, context) })), (input.dockerLabels != null && {
4328
4312
  dockerLabels: serializeAws_json1_1DockerLabelsMap(input.dockerLabels, context),
4329
- })), (input.dockerSecurityOptions !== undefined &&
4330
- input.dockerSecurityOptions !== null && {
4313
+ })), (input.dockerSecurityOptions != null && {
4331
4314
  dockerSecurityOptions: serializeAws_json1_1StringList(input.dockerSecurityOptions, context),
4332
- })), (input.entryPoint !== undefined &&
4333
- input.entryPoint !== null && { entryPoint: serializeAws_json1_1StringList(input.entryPoint, context) })), (input.environment !== undefined &&
4334
- input.environment !== null && {
4315
+ })), (input.entryPoint != null && { entryPoint: serializeAws_json1_1StringList(input.entryPoint, context) })), (input.environment != null && {
4335
4316
  environment: serializeAws_json1_1EnvironmentVariables(input.environment, context),
4336
- })), (input.environmentFiles !== undefined &&
4337
- input.environmentFiles !== null && {
4317
+ })), (input.environmentFiles != null && {
4338
4318
  environmentFiles: serializeAws_json1_1EnvironmentFiles(input.environmentFiles, context),
4339
- })), (input.essential !== undefined && input.essential !== null && { essential: input.essential })), (input.extraHosts !== undefined &&
4340
- input.extraHosts !== null && { extraHosts: serializeAws_json1_1HostEntryList(input.extraHosts, context) })), (input.firelensConfiguration !== undefined &&
4341
- input.firelensConfiguration !== null && {
4319
+ })), (input.essential != null && { essential: input.essential })), (input.extraHosts != null && { extraHosts: serializeAws_json1_1HostEntryList(input.extraHosts, context) })), (input.firelensConfiguration != null && {
4342
4320
  firelensConfiguration: serializeAws_json1_1FirelensConfiguration(input.firelensConfiguration, context),
4343
- })), (input.healthCheck !== undefined &&
4344
- input.healthCheck !== null && { healthCheck: serializeAws_json1_1HealthCheck(input.healthCheck, context) })), (input.hostname !== undefined && input.hostname !== null && { hostname: input.hostname })), (input.image !== undefined && input.image !== null && { image: input.image })), (input.interactive !== undefined && input.interactive !== null && { interactive: input.interactive })), (input.links !== undefined &&
4345
- input.links !== null && { links: serializeAws_json1_1StringList(input.links, context) })), (input.linuxParameters !== undefined &&
4346
- input.linuxParameters !== null && {
4321
+ })), (input.healthCheck != null && { healthCheck: serializeAws_json1_1HealthCheck(input.healthCheck, context) })), (input.hostname != null && { hostname: input.hostname })), (input.image != null && { image: input.image })), (input.interactive != null && { interactive: input.interactive })), (input.links != null && { links: serializeAws_json1_1StringList(input.links, context) })), (input.linuxParameters != null && {
4347
4322
  linuxParameters: serializeAws_json1_1LinuxParameters(input.linuxParameters, context),
4348
- })), (input.logConfiguration !== undefined &&
4349
- input.logConfiguration !== null && {
4323
+ })), (input.logConfiguration != null && {
4350
4324
  logConfiguration: serializeAws_json1_1LogConfiguration(input.logConfiguration, context),
4351
- })), (input.memory !== undefined && input.memory !== null && { memory: input.memory })), (input.memoryReservation !== undefined &&
4352
- input.memoryReservation !== null && { memoryReservation: input.memoryReservation })), (input.mountPoints !== undefined &&
4353
- input.mountPoints !== null && { mountPoints: serializeAws_json1_1MountPointList(input.mountPoints, context) })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.portMappings !== undefined &&
4354
- input.portMappings !== null && {
4325
+ })), (input.memory != null && { memory: input.memory })), (input.memoryReservation != null && { memoryReservation: input.memoryReservation })), (input.mountPoints != null && { mountPoints: serializeAws_json1_1MountPointList(input.mountPoints, context) })), (input.name != null && { name: input.name })), (input.portMappings != null && {
4355
4326
  portMappings: serializeAws_json1_1PortMappingList(input.portMappings, context),
4356
- })), (input.privileged !== undefined && input.privileged !== null && { privileged: input.privileged })), (input.pseudoTerminal !== undefined &&
4357
- input.pseudoTerminal !== null && { pseudoTerminal: input.pseudoTerminal })), (input.readonlyRootFilesystem !== undefined &&
4358
- input.readonlyRootFilesystem !== null && { readonlyRootFilesystem: input.readonlyRootFilesystem })), (input.repositoryCredentials !== undefined &&
4359
- input.repositoryCredentials !== null && {
4327
+ })), (input.privileged != null && { privileged: input.privileged })), (input.pseudoTerminal != null && { pseudoTerminal: input.pseudoTerminal })), (input.readonlyRootFilesystem != null && { readonlyRootFilesystem: input.readonlyRootFilesystem })), (input.repositoryCredentials != null && {
4360
4328
  repositoryCredentials: serializeAws_json1_1RepositoryCredentials(input.repositoryCredentials, context),
4361
- })), (input.resourceRequirements !== undefined &&
4362
- input.resourceRequirements !== null && {
4329
+ })), (input.resourceRequirements != null && {
4363
4330
  resourceRequirements: serializeAws_json1_1ResourceRequirements(input.resourceRequirements, context),
4364
- })), (input.secrets !== undefined &&
4365
- input.secrets !== null && { secrets: serializeAws_json1_1SecretList(input.secrets, context) })), (input.startTimeout !== undefined && input.startTimeout !== null && { startTimeout: input.startTimeout })), (input.stopTimeout !== undefined && input.stopTimeout !== null && { stopTimeout: input.stopTimeout })), (input.systemControls !== undefined &&
4366
- input.systemControls !== null && {
4331
+ })), (input.secrets != null && { secrets: serializeAws_json1_1SecretList(input.secrets, context) })), (input.startTimeout != null && { startTimeout: input.startTimeout })), (input.stopTimeout != null && { stopTimeout: input.stopTimeout })), (input.systemControls != null && {
4367
4332
  systemControls: serializeAws_json1_1SystemControls(input.systemControls, context),
4368
- })), (input.ulimits !== undefined &&
4369
- input.ulimits !== null && { ulimits: serializeAws_json1_1UlimitList(input.ulimits, context) })), (input.user !== undefined && input.user !== null && { user: input.user })), (input.volumesFrom !== undefined &&
4370
- input.volumesFrom !== null && { volumesFrom: serializeAws_json1_1VolumeFromList(input.volumesFrom, context) })), (input.workingDirectory !== undefined &&
4371
- input.workingDirectory !== null && { workingDirectory: input.workingDirectory }));
4333
+ })), (input.ulimits != null && { ulimits: serializeAws_json1_1UlimitList(input.ulimits, context) })), (input.user != null && { user: input.user })), (input.volumesFrom != null && { volumesFrom: serializeAws_json1_1VolumeFromList(input.volumesFrom, context) })), (input.workingDirectory != null && { workingDirectory: input.workingDirectory }));
4372
4334
  };
4373
4335
  var serializeAws_json1_1ContainerDefinitions = function (input, context) {
4374
4336
  return input
@@ -4391,7 +4353,7 @@ var serializeAws_json1_1ContainerDependencies = function (input, context) {
4391
4353
  });
4392
4354
  };
4393
4355
  var serializeAws_json1_1ContainerDependency = function (input, context) {
4394
- return __assign(__assign({}, (input.condition !== undefined && input.condition !== null && { condition: input.condition })), (input.containerName !== undefined && input.containerName !== null && { containerName: input.containerName }));
4356
+ return __assign(__assign({}, (input.condition != null && { condition: input.condition })), (input.containerName != null && { containerName: input.containerName }));
4395
4357
  };
4396
4358
  var serializeAws_json1_1ContainerInstanceFieldList = function (input, context) {
4397
4359
  return input
@@ -4404,16 +4366,11 @@ var serializeAws_json1_1ContainerInstanceFieldList = function (input, context) {
4404
4366
  });
4405
4367
  };
4406
4368
  var serializeAws_json1_1ContainerOverride = function (input, context) {
4407
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.command !== undefined &&
4408
- input.command !== null && { command: serializeAws_json1_1StringList(input.command, context) })), (input.cpu !== undefined && input.cpu !== null && { cpu: input.cpu })), (input.environment !== undefined &&
4409
- input.environment !== null && {
4369
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.command != null && { command: serializeAws_json1_1StringList(input.command, context) })), (input.cpu != null && { cpu: input.cpu })), (input.environment != null && {
4410
4370
  environment: serializeAws_json1_1EnvironmentVariables(input.environment, context),
4411
- })), (input.environmentFiles !== undefined &&
4412
- input.environmentFiles !== null && {
4371
+ })), (input.environmentFiles != null && {
4413
4372
  environmentFiles: serializeAws_json1_1EnvironmentFiles(input.environmentFiles, context),
4414
- })), (input.memory !== undefined && input.memory !== null && { memory: input.memory })), (input.memoryReservation !== undefined &&
4415
- input.memoryReservation !== null && { memoryReservation: input.memoryReservation })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.resourceRequirements !== undefined &&
4416
- input.resourceRequirements !== null && {
4373
+ })), (input.memory != null && { memory: input.memory })), (input.memoryReservation != null && { memoryReservation: input.memoryReservation })), (input.name != null && { name: input.name })), (input.resourceRequirements != null && {
4417
4374
  resourceRequirements: serializeAws_json1_1ResourceRequirements(input.resourceRequirements, context),
4418
4375
  }));
4419
4376
  };
@@ -4428,10 +4385,9 @@ var serializeAws_json1_1ContainerOverrides = function (input, context) {
4428
4385
  });
4429
4386
  };
4430
4387
  var serializeAws_json1_1ContainerStateChange = function (input, context) {
4431
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.containerName !== undefined && input.containerName !== null && { containerName: input.containerName })), (input.exitCode !== undefined && input.exitCode !== null && { exitCode: input.exitCode })), (input.imageDigest !== undefined && input.imageDigest !== null && { imageDigest: input.imageDigest })), (input.networkBindings !== undefined &&
4432
- input.networkBindings !== null && {
4388
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.containerName != null && { containerName: input.containerName })), (input.exitCode != null && { exitCode: input.exitCode })), (input.imageDigest != null && { imageDigest: input.imageDigest })), (input.networkBindings != null && {
4433
4389
  networkBindings: serializeAws_json1_1NetworkBindings(input.networkBindings, context),
4434
- })), (input.reason !== undefined && input.reason !== null && { reason: input.reason })), (input.runtimeId !== undefined && input.runtimeId !== null && { runtimeId: input.runtimeId })), (input.status !== undefined && input.status !== null && { status: input.status }));
4390
+ })), (input.reason != null && { reason: input.reason })), (input.runtimeId != null && { runtimeId: input.runtimeId })), (input.status != null && { status: input.status }));
4435
4391
  };
4436
4392
  var serializeAws_json1_1ContainerStateChanges = function (input, context) {
4437
4393
  return input
@@ -4444,161 +4400,113 @@ var serializeAws_json1_1ContainerStateChanges = function (input, context) {
4444
4400
  });
4445
4401
  };
4446
4402
  var serializeAws_json1_1CreateCapacityProviderRequest = function (input, context) {
4447
- return __assign(__assign(__assign({}, (input.autoScalingGroupProvider !== undefined &&
4448
- input.autoScalingGroupProvider !== null && {
4403
+ return __assign(__assign(__assign({}, (input.autoScalingGroupProvider != null && {
4449
4404
  autoScalingGroupProvider: serializeAws_json1_1AutoScalingGroupProvider(input.autoScalingGroupProvider, context),
4450
- })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }));
4405
+ })), (input.name != null && { name: input.name })), (input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }));
4451
4406
  };
4452
4407
  var serializeAws_json1_1CreateClusterRequest = function (input, context) {
4453
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.capacityProviders !== undefined &&
4454
- input.capacityProviders !== null && {
4408
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.capacityProviders != null && {
4455
4409
  capacityProviders: serializeAws_json1_1StringList(input.capacityProviders, context),
4456
- })), (input.clusterName !== undefined && input.clusterName !== null && { clusterName: input.clusterName })), (input.configuration !== undefined &&
4457
- input.configuration !== null && {
4410
+ })), (input.clusterName != null && { clusterName: input.clusterName })), (input.configuration != null && {
4458
4411
  configuration: serializeAws_json1_1ClusterConfiguration(input.configuration, context),
4459
- })), (input.defaultCapacityProviderStrategy !== undefined &&
4460
- input.defaultCapacityProviderStrategy !== null && {
4412
+ })), (input.defaultCapacityProviderStrategy != null && {
4461
4413
  defaultCapacityProviderStrategy: serializeAws_json1_1CapacityProviderStrategy(input.defaultCapacityProviderStrategy, context),
4462
- })), (input.settings !== undefined &&
4463
- input.settings !== null && { settings: serializeAws_json1_1ClusterSettings(input.settings, context) })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }));
4414
+ })), (input.settings != null && { settings: serializeAws_json1_1ClusterSettings(input.settings, context) })), (input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }));
4464
4415
  };
4465
4416
  var serializeAws_json1_1CreateServiceRequest = function (input, context) {
4466
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.capacityProviderStrategy !== undefined &&
4467
- input.capacityProviderStrategy !== null && {
4417
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.capacityProviderStrategy != null && {
4468
4418
  capacityProviderStrategy: serializeAws_json1_1CapacityProviderStrategy(input.capacityProviderStrategy, context),
4469
- })), (input.clientToken !== undefined && input.clientToken !== null && { clientToken: input.clientToken })), (input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster })), (input.deploymentConfiguration !== undefined &&
4470
- input.deploymentConfiguration !== null && {
4419
+ })), (input.clientToken != null && { clientToken: input.clientToken })), (input.cluster != null && { cluster: input.cluster })), (input.deploymentConfiguration != null && {
4471
4420
  deploymentConfiguration: serializeAws_json1_1DeploymentConfiguration(input.deploymentConfiguration, context),
4472
- })), (input.deploymentController !== undefined &&
4473
- input.deploymentController !== null && {
4421
+ })), (input.deploymentController != null && {
4474
4422
  deploymentController: serializeAws_json1_1DeploymentController(input.deploymentController, context),
4475
- })), (input.desiredCount !== undefined && input.desiredCount !== null && { desiredCount: input.desiredCount })), (input.enableECSManagedTags !== undefined &&
4476
- input.enableECSManagedTags !== null && { enableECSManagedTags: input.enableECSManagedTags })), (input.enableExecuteCommand !== undefined &&
4477
- input.enableExecuteCommand !== null && { enableExecuteCommand: input.enableExecuteCommand })), (input.healthCheckGracePeriodSeconds !== undefined &&
4478
- input.healthCheckGracePeriodSeconds !== null && {
4423
+ })), (input.desiredCount != null && { desiredCount: input.desiredCount })), (input.enableECSManagedTags != null && { enableECSManagedTags: input.enableECSManagedTags })), (input.enableExecuteCommand != null && { enableExecuteCommand: input.enableExecuteCommand })), (input.healthCheckGracePeriodSeconds != null && {
4479
4424
  healthCheckGracePeriodSeconds: input.healthCheckGracePeriodSeconds,
4480
- })), (input.launchType !== undefined && input.launchType !== null && { launchType: input.launchType })), (input.loadBalancers !== undefined &&
4481
- input.loadBalancers !== null && {
4425
+ })), (input.launchType != null && { launchType: input.launchType })), (input.loadBalancers != null && {
4482
4426
  loadBalancers: serializeAws_json1_1LoadBalancers(input.loadBalancers, context),
4483
- })), (input.networkConfiguration !== undefined &&
4484
- input.networkConfiguration !== null && {
4427
+ })), (input.networkConfiguration != null && {
4485
4428
  networkConfiguration: serializeAws_json1_1NetworkConfiguration(input.networkConfiguration, context),
4486
- })), (input.placementConstraints !== undefined &&
4487
- input.placementConstraints !== null && {
4429
+ })), (input.placementConstraints != null && {
4488
4430
  placementConstraints: serializeAws_json1_1PlacementConstraints(input.placementConstraints, context),
4489
- })), (input.placementStrategy !== undefined &&
4490
- input.placementStrategy !== null && {
4431
+ })), (input.placementStrategy != null && {
4491
4432
  placementStrategy: serializeAws_json1_1PlacementStrategies(input.placementStrategy, context),
4492
- })), (input.platformVersion !== undefined &&
4493
- input.platformVersion !== null && { platformVersion: input.platformVersion })), (input.propagateTags !== undefined && input.propagateTags !== null && { propagateTags: input.propagateTags })), (input.role !== undefined && input.role !== null && { role: input.role })), (input.schedulingStrategy !== undefined &&
4494
- input.schedulingStrategy !== null && { schedulingStrategy: input.schedulingStrategy })), (input.serviceName !== undefined && input.serviceName !== null && { serviceName: input.serviceName })), (input.serviceRegistries !== undefined &&
4495
- input.serviceRegistries !== null && {
4433
+ })), (input.platformVersion != null && { platformVersion: input.platformVersion })), (input.propagateTags != null && { propagateTags: input.propagateTags })), (input.role != null && { role: input.role })), (input.schedulingStrategy != null && { schedulingStrategy: input.schedulingStrategy })), (input.serviceName != null && { serviceName: input.serviceName })), (input.serviceRegistries != null && {
4496
4434
  serviceRegistries: serializeAws_json1_1ServiceRegistries(input.serviceRegistries, context),
4497
- })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) })), (input.taskDefinition !== undefined &&
4498
- input.taskDefinition !== null && { taskDefinition: input.taskDefinition }));
4435
+ })), (input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) })), (input.taskDefinition != null && { taskDefinition: input.taskDefinition }));
4499
4436
  };
4500
4437
  var serializeAws_json1_1CreateTaskSetRequest = function (input, context) {
4501
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.capacityProviderStrategy !== undefined &&
4502
- input.capacityProviderStrategy !== null && {
4438
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.capacityProviderStrategy != null && {
4503
4439
  capacityProviderStrategy: serializeAws_json1_1CapacityProviderStrategy(input.capacityProviderStrategy, context),
4504
- })), (input.clientToken !== undefined && input.clientToken !== null && { clientToken: input.clientToken })), (input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster })), (input.externalId !== undefined && input.externalId !== null && { externalId: input.externalId })), (input.launchType !== undefined && input.launchType !== null && { launchType: input.launchType })), (input.loadBalancers !== undefined &&
4505
- input.loadBalancers !== null && {
4440
+ })), (input.clientToken != null && { clientToken: input.clientToken })), (input.cluster != null && { cluster: input.cluster })), (input.externalId != null && { externalId: input.externalId })), (input.launchType != null && { launchType: input.launchType })), (input.loadBalancers != null && {
4506
4441
  loadBalancers: serializeAws_json1_1LoadBalancers(input.loadBalancers, context),
4507
- })), (input.networkConfiguration !== undefined &&
4508
- input.networkConfiguration !== null && {
4442
+ })), (input.networkConfiguration != null && {
4509
4443
  networkConfiguration: serializeAws_json1_1NetworkConfiguration(input.networkConfiguration, context),
4510
- })), (input.platformVersion !== undefined &&
4511
- input.platformVersion !== null && { platformVersion: input.platformVersion })), (input.scale !== undefined &&
4512
- input.scale !== null && { scale: serializeAws_json1_1Scale(input.scale, context) })), (input.service !== undefined && input.service !== null && { service: input.service })), (input.serviceRegistries !== undefined &&
4513
- input.serviceRegistries !== null && {
4444
+ })), (input.platformVersion != null && { platformVersion: input.platformVersion })), (input.scale != null && { scale: serializeAws_json1_1Scale(input.scale, context) })), (input.service != null && { service: input.service })), (input.serviceRegistries != null && {
4514
4445
  serviceRegistries: serializeAws_json1_1ServiceRegistries(input.serviceRegistries, context),
4515
- })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) })), (input.taskDefinition !== undefined &&
4516
- input.taskDefinition !== null && { taskDefinition: input.taskDefinition }));
4446
+ })), (input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) })), (input.taskDefinition != null && { taskDefinition: input.taskDefinition }));
4517
4447
  };
4518
4448
  var serializeAws_json1_1DeleteAccountSettingRequest = function (input, context) {
4519
- return __assign(__assign({}, (input.name !== undefined && input.name !== null && { name: input.name })), (input.principalArn !== undefined && input.principalArn !== null && { principalArn: input.principalArn }));
4449
+ return __assign(__assign({}, (input.name != null && { name: input.name })), (input.principalArn != null && { principalArn: input.principalArn }));
4520
4450
  };
4521
4451
  var serializeAws_json1_1DeleteAttributesRequest = function (input, context) {
4522
- return __assign(__assign({}, (input.attributes !== undefined &&
4523
- input.attributes !== null && { attributes: serializeAws_json1_1Attributes(input.attributes, context) })), (input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster }));
4452
+ return __assign(__assign({}, (input.attributes != null && { attributes: serializeAws_json1_1Attributes(input.attributes, context) })), (input.cluster != null && { cluster: input.cluster }));
4524
4453
  };
4525
4454
  var serializeAws_json1_1DeleteCapacityProviderRequest = function (input, context) {
4526
- return __assign({}, (input.capacityProvider !== undefined &&
4527
- input.capacityProvider !== null && { capacityProvider: input.capacityProvider }));
4455
+ return __assign({}, (input.capacityProvider != null && { capacityProvider: input.capacityProvider }));
4528
4456
  };
4529
4457
  var serializeAws_json1_1DeleteClusterRequest = function (input, context) {
4530
- return __assign({}, (input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster }));
4458
+ return __assign({}, (input.cluster != null && { cluster: input.cluster }));
4531
4459
  };
4532
4460
  var serializeAws_json1_1DeleteServiceRequest = function (input, context) {
4533
- return __assign(__assign(__assign({}, (input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster })), (input.force !== undefined && input.force !== null && { force: input.force })), (input.service !== undefined && input.service !== null && { service: input.service }));
4461
+ return __assign(__assign(__assign({}, (input.cluster != null && { cluster: input.cluster })), (input.force != null && { force: input.force })), (input.service != null && { service: input.service }));
4534
4462
  };
4535
4463
  var serializeAws_json1_1DeleteTaskSetRequest = function (input, context) {
4536
- return __assign(__assign(__assign(__assign({}, (input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster })), (input.force !== undefined && input.force !== null && { force: input.force })), (input.service !== undefined && input.service !== null && { service: input.service })), (input.taskSet !== undefined && input.taskSet !== null && { taskSet: input.taskSet }));
4464
+ return __assign(__assign(__assign(__assign({}, (input.cluster != null && { cluster: input.cluster })), (input.force != null && { force: input.force })), (input.service != null && { service: input.service })), (input.taskSet != null && { taskSet: input.taskSet }));
4537
4465
  };
4538
4466
  var serializeAws_json1_1DeploymentCircuitBreaker = function (input, context) {
4539
- return __assign(__assign({}, (input.enable !== undefined && input.enable !== null && { enable: input.enable })), (input.rollback !== undefined && input.rollback !== null && { rollback: input.rollback }));
4467
+ return __assign(__assign({}, (input.enable != null && { enable: input.enable })), (input.rollback != null && { rollback: input.rollback }));
4540
4468
  };
4541
4469
  var serializeAws_json1_1DeploymentConfiguration = function (input, context) {
4542
- return __assign(__assign(__assign({}, (input.deploymentCircuitBreaker !== undefined &&
4543
- input.deploymentCircuitBreaker !== null && {
4470
+ return __assign(__assign(__assign({}, (input.deploymentCircuitBreaker != null && {
4544
4471
  deploymentCircuitBreaker: serializeAws_json1_1DeploymentCircuitBreaker(input.deploymentCircuitBreaker, context),
4545
- })), (input.maximumPercent !== undefined &&
4546
- input.maximumPercent !== null && { maximumPercent: input.maximumPercent })), (input.minimumHealthyPercent !== undefined &&
4547
- input.minimumHealthyPercent !== null && { minimumHealthyPercent: input.minimumHealthyPercent }));
4472
+ })), (input.maximumPercent != null && { maximumPercent: input.maximumPercent })), (input.minimumHealthyPercent != null && { minimumHealthyPercent: input.minimumHealthyPercent }));
4548
4473
  };
4549
4474
  var serializeAws_json1_1DeploymentController = function (input, context) {
4550
- return __assign({}, (input.type !== undefined && input.type !== null && { type: input.type }));
4475
+ return __assign({}, (input.type != null && { type: input.type }));
4551
4476
  };
4552
4477
  var serializeAws_json1_1DeregisterContainerInstanceRequest = function (input, context) {
4553
- return __assign(__assign(__assign({}, (input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster })), (input.containerInstance !== undefined &&
4554
- input.containerInstance !== null && { containerInstance: input.containerInstance })), (input.force !== undefined && input.force !== null && { force: input.force }));
4478
+ return __assign(__assign(__assign({}, (input.cluster != null && { cluster: input.cluster })), (input.containerInstance != null && { containerInstance: input.containerInstance })), (input.force != null && { force: input.force }));
4555
4479
  };
4556
4480
  var serializeAws_json1_1DeregisterTaskDefinitionRequest = function (input, context) {
4557
- return __assign({}, (input.taskDefinition !== undefined &&
4558
- input.taskDefinition !== null && { taskDefinition: input.taskDefinition }));
4481
+ return __assign({}, (input.taskDefinition != null && { taskDefinition: input.taskDefinition }));
4559
4482
  };
4560
4483
  var serializeAws_json1_1DescribeCapacityProvidersRequest = function (input, context) {
4561
- return __assign(__assign(__assign(__assign({}, (input.capacityProviders !== undefined &&
4562
- input.capacityProviders !== null && {
4484
+ return __assign(__assign(__assign(__assign({}, (input.capacityProviders != null && {
4563
4485
  capacityProviders: serializeAws_json1_1StringList(input.capacityProviders, context),
4564
- })), (input.include !== undefined &&
4565
- input.include !== null && { include: serializeAws_json1_1CapacityProviderFieldList(input.include, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
4486
+ })), (input.include != null && { include: serializeAws_json1_1CapacityProviderFieldList(input.include, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken }));
4566
4487
  };
4567
4488
  var serializeAws_json1_1DescribeClustersRequest = function (input, context) {
4568
- return __assign(__assign({}, (input.clusters !== undefined &&
4569
- input.clusters !== null && { clusters: serializeAws_json1_1StringList(input.clusters, context) })), (input.include !== undefined &&
4570
- input.include !== null && { include: serializeAws_json1_1ClusterFieldList(input.include, context) }));
4489
+ return __assign(__assign({}, (input.clusters != null && { clusters: serializeAws_json1_1StringList(input.clusters, context) })), (input.include != null && { include: serializeAws_json1_1ClusterFieldList(input.include, context) }));
4571
4490
  };
4572
4491
  var serializeAws_json1_1DescribeContainerInstancesRequest = function (input, context) {
4573
- return __assign(__assign(__assign({}, (input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster })), (input.containerInstances !== undefined &&
4574
- input.containerInstances !== null && {
4492
+ return __assign(__assign(__assign({}, (input.cluster != null && { cluster: input.cluster })), (input.containerInstances != null && {
4575
4493
  containerInstances: serializeAws_json1_1StringList(input.containerInstances, context),
4576
- })), (input.include !== undefined &&
4577
- input.include !== null && { include: serializeAws_json1_1ContainerInstanceFieldList(input.include, context) }));
4494
+ })), (input.include != null && { include: serializeAws_json1_1ContainerInstanceFieldList(input.include, context) }));
4578
4495
  };
4579
4496
  var serializeAws_json1_1DescribeServicesRequest = function (input, context) {
4580
- return __assign(__assign(__assign({}, (input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster })), (input.include !== undefined &&
4581
- input.include !== null && { include: serializeAws_json1_1ServiceFieldList(input.include, context) })), (input.services !== undefined &&
4582
- input.services !== null && { services: serializeAws_json1_1StringList(input.services, context) }));
4497
+ return __assign(__assign(__assign({}, (input.cluster != null && { cluster: input.cluster })), (input.include != null && { include: serializeAws_json1_1ServiceFieldList(input.include, context) })), (input.services != null && { services: serializeAws_json1_1StringList(input.services, context) }));
4583
4498
  };
4584
4499
  var serializeAws_json1_1DescribeTaskDefinitionRequest = function (input, context) {
4585
- return __assign(__assign({}, (input.include !== undefined &&
4586
- input.include !== null && { include: serializeAws_json1_1TaskDefinitionFieldList(input.include, context) })), (input.taskDefinition !== undefined &&
4587
- input.taskDefinition !== null && { taskDefinition: input.taskDefinition }));
4500
+ return __assign(__assign({}, (input.include != null && { include: serializeAws_json1_1TaskDefinitionFieldList(input.include, context) })), (input.taskDefinition != null && { taskDefinition: input.taskDefinition }));
4588
4501
  };
4589
4502
  var serializeAws_json1_1DescribeTaskSetsRequest = function (input, context) {
4590
- return __assign(__assign(__assign(__assign({}, (input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster })), (input.include !== undefined &&
4591
- input.include !== null && { include: serializeAws_json1_1TaskSetFieldList(input.include, context) })), (input.service !== undefined && input.service !== null && { service: input.service })), (input.taskSets !== undefined &&
4592
- input.taskSets !== null && { taskSets: serializeAws_json1_1StringList(input.taskSets, context) }));
4503
+ return __assign(__assign(__assign(__assign({}, (input.cluster != null && { cluster: input.cluster })), (input.include != null && { include: serializeAws_json1_1TaskSetFieldList(input.include, context) })), (input.service != null && { service: input.service })), (input.taskSets != null && { taskSets: serializeAws_json1_1StringList(input.taskSets, context) }));
4593
4504
  };
4594
4505
  var serializeAws_json1_1DescribeTasksRequest = function (input, context) {
4595
- return __assign(__assign(__assign({}, (input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster })), (input.include !== undefined &&
4596
- input.include !== null && { include: serializeAws_json1_1TaskFieldList(input.include, context) })), (input.tasks !== undefined &&
4597
- input.tasks !== null && { tasks: serializeAws_json1_1StringList(input.tasks, context) }));
4506
+ return __assign(__assign(__assign({}, (input.cluster != null && { cluster: input.cluster })), (input.include != null && { include: serializeAws_json1_1TaskFieldList(input.include, context) })), (input.tasks != null && { tasks: serializeAws_json1_1StringList(input.tasks, context) }));
4598
4507
  };
4599
4508
  var serializeAws_json1_1Device = function (input, context) {
4600
- return __assign(__assign(__assign({}, (input.containerPath !== undefined && input.containerPath !== null && { containerPath: input.containerPath })), (input.hostPath !== undefined && input.hostPath !== null && { hostPath: input.hostPath })), (input.permissions !== undefined &&
4601
- input.permissions !== null && {
4509
+ return __assign(__assign(__assign({}, (input.containerPath != null && { containerPath: input.containerPath })), (input.hostPath != null && { hostPath: input.hostPath })), (input.permissions != null && {
4602
4510
  permissions: serializeAws_json1_1DeviceCgroupPermissions(input.permissions, context),
4603
4511
  }));
4604
4512
  };
@@ -4623,8 +4531,7 @@ var serializeAws_json1_1DevicesList = function (input, context) {
4623
4531
  });
4624
4532
  };
4625
4533
  var serializeAws_json1_1DiscoverPollEndpointRequest = function (input, context) {
4626
- return __assign(__assign({}, (input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster })), (input.containerInstance !== undefined &&
4627
- input.containerInstance !== null && { containerInstance: input.containerInstance }));
4534
+ return __assign(__assign({}, (input.cluster != null && { cluster: input.cluster })), (input.containerInstance != null && { containerInstance: input.containerInstance }));
4628
4535
  };
4629
4536
  var serializeAws_json1_1DockerLabelsMap = function (input, context) {
4630
4537
  return Object.entries(input).reduce(function (acc, _a) {
@@ -4637,23 +4544,18 @@ var serializeAws_json1_1DockerLabelsMap = function (input, context) {
4637
4544
  }, {});
4638
4545
  };
4639
4546
  var serializeAws_json1_1DockerVolumeConfiguration = function (input, context) {
4640
- return __assign(__assign(__assign(__assign(__assign({}, (input.autoprovision !== undefined && input.autoprovision !== null && { autoprovision: input.autoprovision })), (input.driver !== undefined && input.driver !== null && { driver: input.driver })), (input.driverOpts !== undefined &&
4641
- input.driverOpts !== null && { driverOpts: serializeAws_json1_1StringMap(input.driverOpts, context) })), (input.labels !== undefined &&
4642
- input.labels !== null && { labels: serializeAws_json1_1StringMap(input.labels, context) })), (input.scope !== undefined && input.scope !== null && { scope: input.scope }));
4547
+ return __assign(__assign(__assign(__assign(__assign({}, (input.autoprovision != null && { autoprovision: input.autoprovision })), (input.driver != null && { driver: input.driver })), (input.driverOpts != null && { driverOpts: serializeAws_json1_1StringMap(input.driverOpts, context) })), (input.labels != null && { labels: serializeAws_json1_1StringMap(input.labels, context) })), (input.scope != null && { scope: input.scope }));
4643
4548
  };
4644
4549
  var serializeAws_json1_1EFSAuthorizationConfig = function (input, context) {
4645
- return __assign(__assign({}, (input.accessPointId !== undefined && input.accessPointId !== null && { accessPointId: input.accessPointId })), (input.iam !== undefined && input.iam !== null && { iam: input.iam }));
4550
+ return __assign(__assign({}, (input.accessPointId != null && { accessPointId: input.accessPointId })), (input.iam != null && { iam: input.iam }));
4646
4551
  };
4647
4552
  var serializeAws_json1_1EFSVolumeConfiguration = function (input, context) {
4648
- return __assign(__assign(__assign(__assign(__assign({}, (input.authorizationConfig !== undefined &&
4649
- input.authorizationConfig !== null && {
4553
+ return __assign(__assign(__assign(__assign(__assign({}, (input.authorizationConfig != null && {
4650
4554
  authorizationConfig: serializeAws_json1_1EFSAuthorizationConfig(input.authorizationConfig, context),
4651
- })), (input.fileSystemId !== undefined && input.fileSystemId !== null && { fileSystemId: input.fileSystemId })), (input.rootDirectory !== undefined && input.rootDirectory !== null && { rootDirectory: input.rootDirectory })), (input.transitEncryption !== undefined &&
4652
- input.transitEncryption !== null && { transitEncryption: input.transitEncryption })), (input.transitEncryptionPort !== undefined &&
4653
- input.transitEncryptionPort !== null && { transitEncryptionPort: input.transitEncryptionPort }));
4555
+ })), (input.fileSystemId != null && { fileSystemId: input.fileSystemId })), (input.rootDirectory != null && { rootDirectory: input.rootDirectory })), (input.transitEncryption != null && { transitEncryption: input.transitEncryption })), (input.transitEncryptionPort != null && { transitEncryptionPort: input.transitEncryptionPort }));
4654
4556
  };
4655
4557
  var serializeAws_json1_1EnvironmentFile = function (input, context) {
4656
- return __assign(__assign({}, (input.type !== undefined && input.type !== null && { type: input.type })), (input.value !== undefined && input.value !== null && { value: input.value }));
4558
+ return __assign(__assign({}, (input.type != null && { type: input.type })), (input.value != null && { value: input.value }));
4657
4559
  };
4658
4560
  var serializeAws_json1_1EnvironmentFiles = function (input, context) {
4659
4561
  return input
@@ -4676,28 +4578,25 @@ var serializeAws_json1_1EnvironmentVariables = function (input, context) {
4676
4578
  });
4677
4579
  };
4678
4580
  var serializeAws_json1_1EphemeralStorage = function (input, context) {
4679
- return __assign({}, (input.sizeInGiB !== undefined && input.sizeInGiB !== null && { sizeInGiB: input.sizeInGiB }));
4581
+ return __assign({}, (input.sizeInGiB != null && { sizeInGiB: input.sizeInGiB }));
4680
4582
  };
4681
4583
  var serializeAws_json1_1ExecuteCommandConfiguration = function (input, context) {
4682
- return __assign(__assign(__assign({}, (input.kmsKeyId !== undefined && input.kmsKeyId !== null && { kmsKeyId: input.kmsKeyId })), (input.logConfiguration !== undefined &&
4683
- input.logConfiguration !== null && {
4584
+ return __assign(__assign(__assign({}, (input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId })), (input.logConfiguration != null && {
4684
4585
  logConfiguration: serializeAws_json1_1ExecuteCommandLogConfiguration(input.logConfiguration, context),
4685
- })), (input.logging !== undefined && input.logging !== null && { logging: input.logging }));
4586
+ })), (input.logging != null && { logging: input.logging }));
4686
4587
  };
4687
4588
  var serializeAws_json1_1ExecuteCommandLogConfiguration = function (input, context) {
4688
- return __assign(__assign(__assign(__assign(__assign({}, (input.cloudWatchEncryptionEnabled !== undefined &&
4689
- input.cloudWatchEncryptionEnabled !== null && { cloudWatchEncryptionEnabled: input.cloudWatchEncryptionEnabled })), (input.cloudWatchLogGroupName !== undefined &&
4690
- input.cloudWatchLogGroupName !== null && { cloudWatchLogGroupName: input.cloudWatchLogGroupName })), (input.s3BucketName !== undefined && input.s3BucketName !== null && { s3BucketName: input.s3BucketName })), (input.s3EncryptionEnabled !== undefined &&
4691
- input.s3EncryptionEnabled !== null && { s3EncryptionEnabled: input.s3EncryptionEnabled })), (input.s3KeyPrefix !== undefined && input.s3KeyPrefix !== null && { s3KeyPrefix: input.s3KeyPrefix }));
4589
+ return __assign(__assign(__assign(__assign(__assign({}, (input.cloudWatchEncryptionEnabled != null && {
4590
+ cloudWatchEncryptionEnabled: input.cloudWatchEncryptionEnabled,
4591
+ })), (input.cloudWatchLogGroupName != null && { cloudWatchLogGroupName: input.cloudWatchLogGroupName })), (input.s3BucketName != null && { s3BucketName: input.s3BucketName })), (input.s3EncryptionEnabled != null && { s3EncryptionEnabled: input.s3EncryptionEnabled })), (input.s3KeyPrefix != null && { s3KeyPrefix: input.s3KeyPrefix }));
4692
4592
  };
4693
4593
  var serializeAws_json1_1ExecuteCommandRequest = function (input, context) {
4694
- return __assign(__assign(__assign(__assign(__assign({}, (input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster })), (input.command !== undefined && input.command !== null && { command: input.command })), (input.container !== undefined && input.container !== null && { container: input.container })), (input.interactive !== undefined && input.interactive !== null && { interactive: input.interactive })), (input.task !== undefined && input.task !== null && { task: input.task }));
4594
+ return __assign(__assign(__assign(__assign(__assign({}, (input.cluster != null && { cluster: input.cluster })), (input.command != null && { command: input.command })), (input.container != null && { container: input.container })), (input.interactive != null && { interactive: input.interactive })), (input.task != null && { task: input.task }));
4695
4595
  };
4696
4596
  var serializeAws_json1_1FirelensConfiguration = function (input, context) {
4697
- return __assign(__assign({}, (input.options !== undefined &&
4698
- input.options !== null && {
4597
+ return __assign(__assign({}, (input.options != null && {
4699
4598
  options: serializeAws_json1_1FirelensConfigurationOptionsMap(input.options, context),
4700
- })), (input.type !== undefined && input.type !== null && { type: input.type }));
4599
+ })), (input.type != null && { type: input.type }));
4701
4600
  };
4702
4601
  var serializeAws_json1_1FirelensConfigurationOptionsMap = function (input, context) {
4703
4602
  return Object.entries(input).reduce(function (acc, _a) {
@@ -4710,21 +4609,18 @@ var serializeAws_json1_1FirelensConfigurationOptionsMap = function (input, conte
4710
4609
  }, {});
4711
4610
  };
4712
4611
  var serializeAws_json1_1FSxWindowsFileServerAuthorizationConfig = function (input, context) {
4713
- return __assign(__assign({}, (input.credentialsParameter !== undefined &&
4714
- input.credentialsParameter !== null && { credentialsParameter: input.credentialsParameter })), (input.domain !== undefined && input.domain !== null && { domain: input.domain }));
4612
+ return __assign(__assign({}, (input.credentialsParameter != null && { credentialsParameter: input.credentialsParameter })), (input.domain != null && { domain: input.domain }));
4715
4613
  };
4716
4614
  var serializeAws_json1_1FSxWindowsFileServerVolumeConfiguration = function (input, context) {
4717
- return __assign(__assign(__assign({}, (input.authorizationConfig !== undefined &&
4718
- input.authorizationConfig !== null && {
4615
+ return __assign(__assign(__assign({}, (input.authorizationConfig != null && {
4719
4616
  authorizationConfig: serializeAws_json1_1FSxWindowsFileServerAuthorizationConfig(input.authorizationConfig, context),
4720
- })), (input.fileSystemId !== undefined && input.fileSystemId !== null && { fileSystemId: input.fileSystemId })), (input.rootDirectory !== undefined && input.rootDirectory !== null && { rootDirectory: input.rootDirectory }));
4617
+ })), (input.fileSystemId != null && { fileSystemId: input.fileSystemId })), (input.rootDirectory != null && { rootDirectory: input.rootDirectory }));
4721
4618
  };
4722
4619
  var serializeAws_json1_1HealthCheck = function (input, context) {
4723
- return __assign(__assign(__assign(__assign(__assign({}, (input.command !== undefined &&
4724
- input.command !== null && { command: serializeAws_json1_1StringList(input.command, context) })), (input.interval !== undefined && input.interval !== null && { interval: input.interval })), (input.retries !== undefined && input.retries !== null && { retries: input.retries })), (input.startPeriod !== undefined && input.startPeriod !== null && { startPeriod: input.startPeriod })), (input.timeout !== undefined && input.timeout !== null && { timeout: input.timeout }));
4620
+ return __assign(__assign(__assign(__assign(__assign({}, (input.command != null && { command: serializeAws_json1_1StringList(input.command, context) })), (input.interval != null && { interval: input.interval })), (input.retries != null && { retries: input.retries })), (input.startPeriod != null && { startPeriod: input.startPeriod })), (input.timeout != null && { timeout: input.timeout }));
4725
4621
  };
4726
4622
  var serializeAws_json1_1HostEntry = function (input, context) {
4727
- return __assign(__assign({}, (input.hostname !== undefined && input.hostname !== null && { hostname: input.hostname })), (input.ipAddress !== undefined && input.ipAddress !== null && { ipAddress: input.ipAddress }));
4623
+ return __assign(__assign({}, (input.hostname != null && { hostname: input.hostname })), (input.ipAddress != null && { ipAddress: input.ipAddress }));
4728
4624
  };
4729
4625
  var serializeAws_json1_1HostEntryList = function (input, context) {
4730
4626
  return input
@@ -4737,13 +4633,13 @@ var serializeAws_json1_1HostEntryList = function (input, context) {
4737
4633
  });
4738
4634
  };
4739
4635
  var serializeAws_json1_1HostVolumeProperties = function (input, context) {
4740
- return __assign({}, (input.sourcePath !== undefined && input.sourcePath !== null && { sourcePath: input.sourcePath }));
4636
+ return __assign({}, (input.sourcePath != null && { sourcePath: input.sourcePath }));
4741
4637
  };
4742
4638
  var serializeAws_json1_1InferenceAccelerator = function (input, context) {
4743
- return __assign(__assign({}, (input.deviceName !== undefined && input.deviceName !== null && { deviceName: input.deviceName })), (input.deviceType !== undefined && input.deviceType !== null && { deviceType: input.deviceType }));
4639
+ return __assign(__assign({}, (input.deviceName != null && { deviceName: input.deviceName })), (input.deviceType != null && { deviceType: input.deviceType }));
4744
4640
  };
4745
4641
  var serializeAws_json1_1InferenceAcceleratorOverride = function (input, context) {
4746
- return __assign(__assign({}, (input.deviceName !== undefined && input.deviceName !== null && { deviceName: input.deviceName })), (input.deviceType !== undefined && input.deviceType !== null && { deviceType: input.deviceType }));
4642
+ return __assign(__assign({}, (input.deviceName != null && { deviceName: input.deviceName })), (input.deviceType != null && { deviceType: input.deviceType }));
4747
4643
  };
4748
4644
  var serializeAws_json1_1InferenceAcceleratorOverrides = function (input, context) {
4749
4645
  return input
@@ -4766,57 +4662,45 @@ var serializeAws_json1_1InferenceAccelerators = function (input, context) {
4766
4662
  });
4767
4663
  };
4768
4664
  var serializeAws_json1_1KernelCapabilities = function (input, context) {
4769
- return __assign(__assign({}, (input.add !== undefined && input.add !== null && { add: serializeAws_json1_1StringList(input.add, context) })), (input.drop !== undefined &&
4770
- input.drop !== null && { drop: serializeAws_json1_1StringList(input.drop, context) }));
4665
+ return __assign(__assign({}, (input.add != null && { add: serializeAws_json1_1StringList(input.add, context) })), (input.drop != null && { drop: serializeAws_json1_1StringList(input.drop, context) }));
4771
4666
  };
4772
4667
  var serializeAws_json1_1KeyValuePair = function (input, context) {
4773
- return __assign(__assign({}, (input.name !== undefined && input.name !== null && { name: input.name })), (input.value !== undefined && input.value !== null && { value: input.value }));
4668
+ return __assign(__assign({}, (input.name != null && { name: input.name })), (input.value != null && { value: input.value }));
4774
4669
  };
4775
4670
  var serializeAws_json1_1LinuxParameters = function (input, context) {
4776
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.capabilities !== undefined &&
4777
- input.capabilities !== null && {
4671
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.capabilities != null && {
4778
4672
  capabilities: serializeAws_json1_1KernelCapabilities(input.capabilities, context),
4779
- })), (input.devices !== undefined &&
4780
- input.devices !== null && { devices: serializeAws_json1_1DevicesList(input.devices, context) })), (input.initProcessEnabled !== undefined &&
4781
- input.initProcessEnabled !== null && { initProcessEnabled: input.initProcessEnabled })), (input.maxSwap !== undefined && input.maxSwap !== null && { maxSwap: input.maxSwap })), (input.sharedMemorySize !== undefined &&
4782
- input.sharedMemorySize !== null && { sharedMemorySize: input.sharedMemorySize })), (input.swappiness !== undefined && input.swappiness !== null && { swappiness: input.swappiness })), (input.tmpfs !== undefined &&
4783
- input.tmpfs !== null && { tmpfs: serializeAws_json1_1TmpfsList(input.tmpfs, context) }));
4673
+ })), (input.devices != null && { devices: serializeAws_json1_1DevicesList(input.devices, context) })), (input.initProcessEnabled != null && { initProcessEnabled: input.initProcessEnabled })), (input.maxSwap != null && { maxSwap: input.maxSwap })), (input.sharedMemorySize != null && { sharedMemorySize: input.sharedMemorySize })), (input.swappiness != null && { swappiness: input.swappiness })), (input.tmpfs != null && { tmpfs: serializeAws_json1_1TmpfsList(input.tmpfs, context) }));
4784
4674
  };
4785
4675
  var serializeAws_json1_1ListAccountSettingsRequest = function (input, context) {
4786
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.effectiveSettings !== undefined &&
4787
- input.effectiveSettings !== null && { effectiveSettings: input.effectiveSettings })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.principalArn !== undefined && input.principalArn !== null && { principalArn: input.principalArn })), (input.value !== undefined && input.value !== null && { value: input.value }));
4676
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.effectiveSettings != null && { effectiveSettings: input.effectiveSettings })), (input.maxResults != null && { maxResults: input.maxResults })), (input.name != null && { name: input.name })), (input.nextToken != null && { nextToken: input.nextToken })), (input.principalArn != null && { principalArn: input.principalArn })), (input.value != null && { value: input.value }));
4788
4677
  };
4789
4678
  var serializeAws_json1_1ListAttributesRequest = function (input, context) {
4790
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.attributeName !== undefined && input.attributeName !== null && { attributeName: input.attributeName })), (input.attributeValue !== undefined &&
4791
- input.attributeValue !== null && { attributeValue: input.attributeValue })), (input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.targetType !== undefined && input.targetType !== null && { targetType: input.targetType }));
4679
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.attributeName != null && { attributeName: input.attributeName })), (input.attributeValue != null && { attributeValue: input.attributeValue })), (input.cluster != null && { cluster: input.cluster })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.targetType != null && { targetType: input.targetType }));
4792
4680
  };
4793
4681
  var serializeAws_json1_1ListClustersRequest = function (input, context) {
4794
- return __assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
4682
+ return __assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken }));
4795
4683
  };
4796
4684
  var serializeAws_json1_1ListContainerInstancesRequest = function (input, context) {
4797
- return __assign(__assign(__assign(__assign(__assign({}, (input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster })), (input.filter !== undefined && input.filter !== null && { filter: input.filter })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.status !== undefined && input.status !== null && { status: input.status }));
4685
+ return __assign(__assign(__assign(__assign(__assign({}, (input.cluster != null && { cluster: input.cluster })), (input.filter != null && { filter: input.filter })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.status != null && { status: input.status }));
4798
4686
  };
4799
4687
  var serializeAws_json1_1ListServicesRequest = function (input, context) {
4800
- return __assign(__assign(__assign(__assign(__assign({}, (input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster })), (input.launchType !== undefined && input.launchType !== null && { launchType: input.launchType })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.schedulingStrategy !== undefined &&
4801
- input.schedulingStrategy !== null && { schedulingStrategy: input.schedulingStrategy }));
4688
+ return __assign(__assign(__assign(__assign(__assign({}, (input.cluster != null && { cluster: input.cluster })), (input.launchType != null && { launchType: input.launchType })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.schedulingStrategy != null && { schedulingStrategy: input.schedulingStrategy }));
4802
4689
  };
4803
4690
  var serializeAws_json1_1ListTagsForResourceRequest = function (input, context) {
4804
- return __assign({}, (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }));
4691
+ return __assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn }));
4805
4692
  };
4806
4693
  var serializeAws_json1_1ListTaskDefinitionFamiliesRequest = function (input, context) {
4807
- return __assign(__assign(__assign(__assign({}, (input.familyPrefix !== undefined && input.familyPrefix !== null && { familyPrefix: input.familyPrefix })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.status !== undefined && input.status !== null && { status: input.status }));
4694
+ return __assign(__assign(__assign(__assign({}, (input.familyPrefix != null && { familyPrefix: input.familyPrefix })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.status != null && { status: input.status }));
4808
4695
  };
4809
4696
  var serializeAws_json1_1ListTaskDefinitionsRequest = function (input, context) {
4810
- return __assign(__assign(__assign(__assign(__assign({}, (input.familyPrefix !== undefined && input.familyPrefix !== null && { familyPrefix: input.familyPrefix })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.sort !== undefined && input.sort !== null && { sort: input.sort })), (input.status !== undefined && input.status !== null && { status: input.status }));
4697
+ return __assign(__assign(__assign(__assign(__assign({}, (input.familyPrefix != null && { familyPrefix: input.familyPrefix })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.sort != null && { sort: input.sort })), (input.status != null && { status: input.status }));
4811
4698
  };
4812
4699
  var serializeAws_json1_1ListTasksRequest = function (input, context) {
4813
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster })), (input.containerInstance !== undefined &&
4814
- input.containerInstance !== null && { containerInstance: input.containerInstance })), (input.desiredStatus !== undefined && input.desiredStatus !== null && { desiredStatus: input.desiredStatus })), (input.family !== undefined && input.family !== null && { family: input.family })), (input.launchType !== undefined && input.launchType !== null && { launchType: input.launchType })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.serviceName !== undefined && input.serviceName !== null && { serviceName: input.serviceName })), (input.startedBy !== undefined && input.startedBy !== null && { startedBy: input.startedBy }));
4700
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.cluster != null && { cluster: input.cluster })), (input.containerInstance != null && { containerInstance: input.containerInstance })), (input.desiredStatus != null && { desiredStatus: input.desiredStatus })), (input.family != null && { family: input.family })), (input.launchType != null && { launchType: input.launchType })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.serviceName != null && { serviceName: input.serviceName })), (input.startedBy != null && { startedBy: input.startedBy }));
4815
4701
  };
4816
4702
  var serializeAws_json1_1LoadBalancer = function (input, context) {
4817
- return __assign(__assign(__assign(__assign({}, (input.containerName !== undefined && input.containerName !== null && { containerName: input.containerName })), (input.containerPort !== undefined && input.containerPort !== null && { containerPort: input.containerPort })), (input.loadBalancerName !== undefined &&
4818
- input.loadBalancerName !== null && { loadBalancerName: input.loadBalancerName })), (input.targetGroupArn !== undefined &&
4819
- input.targetGroupArn !== null && { targetGroupArn: input.targetGroupArn }));
4703
+ return __assign(__assign(__assign(__assign({}, (input.containerName != null && { containerName: input.containerName })), (input.containerPort != null && { containerPort: input.containerPort })), (input.loadBalancerName != null && { loadBalancerName: input.loadBalancerName })), (input.targetGroupArn != null && { targetGroupArn: input.targetGroupArn }));
4820
4704
  };
4821
4705
  var serializeAws_json1_1LoadBalancers = function (input, context) {
4822
4706
  return input
@@ -4829,9 +4713,7 @@ var serializeAws_json1_1LoadBalancers = function (input, context) {
4829
4713
  });
4830
4714
  };
4831
4715
  var serializeAws_json1_1LogConfiguration = function (input, context) {
4832
- return __assign(__assign(__assign({}, (input.logDriver !== undefined && input.logDriver !== null && { logDriver: input.logDriver })), (input.options !== undefined &&
4833
- input.options !== null && { options: serializeAws_json1_1LogConfigurationOptionsMap(input.options, context) })), (input.secretOptions !== undefined &&
4834
- input.secretOptions !== null && { secretOptions: serializeAws_json1_1SecretList(input.secretOptions, context) }));
4716
+ return __assign(__assign(__assign({}, (input.logDriver != null && { logDriver: input.logDriver })), (input.options != null && { options: serializeAws_json1_1LogConfigurationOptionsMap(input.options, context) })), (input.secretOptions != null && { secretOptions: serializeAws_json1_1SecretList(input.secretOptions, context) }));
4835
4717
  };
4836
4718
  var serializeAws_json1_1LogConfigurationOptionsMap = function (input, context) {
4837
4719
  return Object.entries(input).reduce(function (acc, _a) {
@@ -4844,8 +4726,7 @@ var serializeAws_json1_1LogConfigurationOptionsMap = function (input, context) {
4844
4726
  }, {});
4845
4727
  };
4846
4728
  var serializeAws_json1_1ManagedAgentStateChange = function (input, context) {
4847
- return __assign(__assign(__assign(__assign({}, (input.containerName !== undefined && input.containerName !== null && { containerName: input.containerName })), (input.managedAgentName !== undefined &&
4848
- input.managedAgentName !== null && { managedAgentName: input.managedAgentName })), (input.reason !== undefined && input.reason !== null && { reason: input.reason })), (input.status !== undefined && input.status !== null && { status: input.status }));
4729
+ return __assign(__assign(__assign(__assign({}, (input.containerName != null && { containerName: input.containerName })), (input.managedAgentName != null && { managedAgentName: input.managedAgentName })), (input.reason != null && { reason: input.reason })), (input.status != null && { status: input.status }));
4849
4730
  };
4850
4731
  var serializeAws_json1_1ManagedAgentStateChanges = function (input, context) {
4851
4732
  return input
@@ -4858,14 +4739,10 @@ var serializeAws_json1_1ManagedAgentStateChanges = function (input, context) {
4858
4739
  });
4859
4740
  };
4860
4741
  var serializeAws_json1_1ManagedScaling = function (input, context) {
4861
- return __assign(__assign(__assign(__assign(__assign({}, (input.instanceWarmupPeriod !== undefined &&
4862
- input.instanceWarmupPeriod !== null && { instanceWarmupPeriod: input.instanceWarmupPeriod })), (input.maximumScalingStepSize !== undefined &&
4863
- input.maximumScalingStepSize !== null && { maximumScalingStepSize: input.maximumScalingStepSize })), (input.minimumScalingStepSize !== undefined &&
4864
- input.minimumScalingStepSize !== null && { minimumScalingStepSize: input.minimumScalingStepSize })), (input.status !== undefined && input.status !== null && { status: input.status })), (input.targetCapacity !== undefined &&
4865
- input.targetCapacity !== null && { targetCapacity: input.targetCapacity }));
4742
+ return __assign(__assign(__assign(__assign(__assign({}, (input.instanceWarmupPeriod != null && { instanceWarmupPeriod: input.instanceWarmupPeriod })), (input.maximumScalingStepSize != null && { maximumScalingStepSize: input.maximumScalingStepSize })), (input.minimumScalingStepSize != null && { minimumScalingStepSize: input.minimumScalingStepSize })), (input.status != null && { status: input.status })), (input.targetCapacity != null && { targetCapacity: input.targetCapacity }));
4866
4743
  };
4867
4744
  var serializeAws_json1_1MountPoint = function (input, context) {
4868
- return __assign(__assign(__assign({}, (input.containerPath !== undefined && input.containerPath !== null && { containerPath: input.containerPath })), (input.readOnly !== undefined && input.readOnly !== null && { readOnly: input.readOnly })), (input.sourceVolume !== undefined && input.sourceVolume !== null && { sourceVolume: input.sourceVolume }));
4745
+ return __assign(__assign(__assign({}, (input.containerPath != null && { containerPath: input.containerPath })), (input.readOnly != null && { readOnly: input.readOnly })), (input.sourceVolume != null && { sourceVolume: input.sourceVolume }));
4869
4746
  };
4870
4747
  var serializeAws_json1_1MountPointList = function (input, context) {
4871
4748
  return input
@@ -4878,7 +4755,7 @@ var serializeAws_json1_1MountPointList = function (input, context) {
4878
4755
  });
4879
4756
  };
4880
4757
  var serializeAws_json1_1NetworkBinding = function (input, context) {
4881
- return __assign(__assign(__assign(__assign({}, (input.bindIP !== undefined && input.bindIP !== null && { bindIP: input.bindIP })), (input.containerPort !== undefined && input.containerPort !== null && { containerPort: input.containerPort })), (input.hostPort !== undefined && input.hostPort !== null && { hostPort: input.hostPort })), (input.protocol !== undefined && input.protocol !== null && { protocol: input.protocol }));
4758
+ return __assign(__assign(__assign(__assign({}, (input.bindIP != null && { bindIP: input.bindIP })), (input.containerPort != null && { containerPort: input.containerPort })), (input.hostPort != null && { hostPort: input.hostPort })), (input.protocol != null && { protocol: input.protocol }));
4882
4759
  };
4883
4760
  var serializeAws_json1_1NetworkBindings = function (input, context) {
4884
4761
  return input
@@ -4891,13 +4768,12 @@ var serializeAws_json1_1NetworkBindings = function (input, context) {
4891
4768
  });
4892
4769
  };
4893
4770
  var serializeAws_json1_1NetworkConfiguration = function (input, context) {
4894
- return __assign({}, (input.awsvpcConfiguration !== undefined &&
4895
- input.awsvpcConfiguration !== null && {
4771
+ return __assign({}, (input.awsvpcConfiguration != null && {
4896
4772
  awsvpcConfiguration: serializeAws_json1_1AwsVpcConfiguration(input.awsvpcConfiguration, context),
4897
4773
  }));
4898
4774
  };
4899
4775
  var serializeAws_json1_1PlacementConstraint = function (input, context) {
4900
- return __assign(__assign({}, (input.expression !== undefined && input.expression !== null && { expression: input.expression })), (input.type !== undefined && input.type !== null && { type: input.type }));
4776
+ return __assign(__assign({}, (input.expression != null && { expression: input.expression })), (input.type != null && { type: input.type }));
4901
4777
  };
4902
4778
  var serializeAws_json1_1PlacementConstraints = function (input, context) {
4903
4779
  return input
@@ -4920,10 +4796,10 @@ var serializeAws_json1_1PlacementStrategies = function (input, context) {
4920
4796
  });
4921
4797
  };
4922
4798
  var serializeAws_json1_1PlacementStrategy = function (input, context) {
4923
- return __assign(__assign({}, (input.field !== undefined && input.field !== null && { field: input.field })), (input.type !== undefined && input.type !== null && { type: input.type }));
4799
+ return __assign(__assign({}, (input.field != null && { field: input.field })), (input.type != null && { type: input.type }));
4924
4800
  };
4925
4801
  var serializeAws_json1_1PlatformDevice = function (input, context) {
4926
- return __assign(__assign({}, (input.id !== undefined && input.id !== null && { id: input.id })), (input.type !== undefined && input.type !== null && { type: input.type }));
4802
+ return __assign(__assign({}, (input.id != null && { id: input.id })), (input.type != null && { type: input.type }));
4927
4803
  };
4928
4804
  var serializeAws_json1_1PlatformDevices = function (input, context) {
4929
4805
  return input
@@ -4936,7 +4812,7 @@ var serializeAws_json1_1PlatformDevices = function (input, context) {
4936
4812
  });
4937
4813
  };
4938
4814
  var serializeAws_json1_1PortMapping = function (input, context) {
4939
- return __assign(__assign(__assign({}, (input.containerPort !== undefined && input.containerPort !== null && { containerPort: input.containerPort })), (input.hostPort !== undefined && input.hostPort !== null && { hostPort: input.hostPort })), (input.protocol !== undefined && input.protocol !== null && { protocol: input.protocol }));
4815
+ return __assign(__assign(__assign({}, (input.containerPort != null && { containerPort: input.containerPort })), (input.hostPort != null && { hostPort: input.hostPort })), (input.protocol != null && { protocol: input.protocol }));
4940
4816
  };
4941
4817
  var serializeAws_json1_1PortMappingList = function (input, context) {
4942
4818
  return input
@@ -4949,10 +4825,9 @@ var serializeAws_json1_1PortMappingList = function (input, context) {
4949
4825
  });
4950
4826
  };
4951
4827
  var serializeAws_json1_1ProxyConfiguration = function (input, context) {
4952
- return __assign(__assign(__assign({}, (input.containerName !== undefined && input.containerName !== null && { containerName: input.containerName })), (input.properties !== undefined &&
4953
- input.properties !== null && {
4828
+ return __assign(__assign(__assign({}, (input.containerName != null && { containerName: input.containerName })), (input.properties != null && {
4954
4829
  properties: serializeAws_json1_1ProxyConfigurationProperties(input.properties, context),
4955
- })), (input.type !== undefined && input.type !== null && { type: input.type }));
4830
+ })), (input.type != null && { type: input.type }));
4956
4831
  };
4957
4832
  var serializeAws_json1_1ProxyConfigurationProperties = function (input, context) {
4958
4833
  return input
@@ -4965,79 +4840,57 @@ var serializeAws_json1_1ProxyConfigurationProperties = function (input, context)
4965
4840
  });
4966
4841
  };
4967
4842
  var serializeAws_json1_1PutAccountSettingDefaultRequest = function (input, context) {
4968
- return __assign(__assign({}, (input.name !== undefined && input.name !== null && { name: input.name })), (input.value !== undefined && input.value !== null && { value: input.value }));
4843
+ return __assign(__assign({}, (input.name != null && { name: input.name })), (input.value != null && { value: input.value }));
4969
4844
  };
4970
4845
  var serializeAws_json1_1PutAccountSettingRequest = function (input, context) {
4971
- return __assign(__assign(__assign({}, (input.name !== undefined && input.name !== null && { name: input.name })), (input.principalArn !== undefined && input.principalArn !== null && { principalArn: input.principalArn })), (input.value !== undefined && input.value !== null && { value: input.value }));
4846
+ return __assign(__assign(__assign({}, (input.name != null && { name: input.name })), (input.principalArn != null && { principalArn: input.principalArn })), (input.value != null && { value: input.value }));
4972
4847
  };
4973
4848
  var serializeAws_json1_1PutAttributesRequest = function (input, context) {
4974
- return __assign(__assign({}, (input.attributes !== undefined &&
4975
- input.attributes !== null && { attributes: serializeAws_json1_1Attributes(input.attributes, context) })), (input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster }));
4849
+ return __assign(__assign({}, (input.attributes != null && { attributes: serializeAws_json1_1Attributes(input.attributes, context) })), (input.cluster != null && { cluster: input.cluster }));
4976
4850
  };
4977
4851
  var serializeAws_json1_1PutClusterCapacityProvidersRequest = function (input, context) {
4978
- return __assign(__assign(__assign({}, (input.capacityProviders !== undefined &&
4979
- input.capacityProviders !== null && {
4852
+ return __assign(__assign(__assign({}, (input.capacityProviders != null && {
4980
4853
  capacityProviders: serializeAws_json1_1StringList(input.capacityProviders, context),
4981
- })), (input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster })), (input.defaultCapacityProviderStrategy !== undefined &&
4982
- input.defaultCapacityProviderStrategy !== null && {
4854
+ })), (input.cluster != null && { cluster: input.cluster })), (input.defaultCapacityProviderStrategy != null && {
4983
4855
  defaultCapacityProviderStrategy: serializeAws_json1_1CapacityProviderStrategy(input.defaultCapacityProviderStrategy, context),
4984
4856
  }));
4985
4857
  };
4986
4858
  var serializeAws_json1_1RegisterContainerInstanceRequest = function (input, context) {
4987
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.attributes !== undefined &&
4988
- input.attributes !== null && { attributes: serializeAws_json1_1Attributes(input.attributes, context) })), (input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster })), (input.containerInstanceArn !== undefined &&
4989
- input.containerInstanceArn !== null && { containerInstanceArn: input.containerInstanceArn })), (input.instanceIdentityDocument !== undefined &&
4990
- input.instanceIdentityDocument !== null && { instanceIdentityDocument: input.instanceIdentityDocument })), (input.instanceIdentityDocumentSignature !== undefined &&
4991
- input.instanceIdentityDocumentSignature !== null && {
4859
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.attributes != null && { attributes: serializeAws_json1_1Attributes(input.attributes, context) })), (input.cluster != null && { cluster: input.cluster })), (input.containerInstanceArn != null && { containerInstanceArn: input.containerInstanceArn })), (input.instanceIdentityDocument != null && { instanceIdentityDocument: input.instanceIdentityDocument })), (input.instanceIdentityDocumentSignature != null && {
4992
4860
  instanceIdentityDocumentSignature: input.instanceIdentityDocumentSignature,
4993
- })), (input.platformDevices !== undefined &&
4994
- input.platformDevices !== null && {
4861
+ })), (input.platformDevices != null && {
4995
4862
  platformDevices: serializeAws_json1_1PlatformDevices(input.platformDevices, context),
4996
- })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) })), (input.totalResources !== undefined &&
4997
- input.totalResources !== null && {
4863
+ })), (input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) })), (input.totalResources != null && {
4998
4864
  totalResources: serializeAws_json1_1Resources(input.totalResources, context),
4999
- })), (input.versionInfo !== undefined &&
5000
- input.versionInfo !== null && { versionInfo: serializeAws_json1_1VersionInfo(input.versionInfo, context) }));
4865
+ })), (input.versionInfo != null && { versionInfo: serializeAws_json1_1VersionInfo(input.versionInfo, context) }));
5001
4866
  };
5002
4867
  var serializeAws_json1_1RegisterTaskDefinitionRequest = function (input, context) {
5003
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.containerDefinitions !== undefined &&
5004
- input.containerDefinitions !== null && {
4868
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.containerDefinitions != null && {
5005
4869
  containerDefinitions: serializeAws_json1_1ContainerDefinitions(input.containerDefinitions, context),
5006
- })), (input.cpu !== undefined && input.cpu !== null && { cpu: input.cpu })), (input.ephemeralStorage !== undefined &&
5007
- input.ephemeralStorage !== null && {
4870
+ })), (input.cpu != null && { cpu: input.cpu })), (input.ephemeralStorage != null && {
5008
4871
  ephemeralStorage: serializeAws_json1_1EphemeralStorage(input.ephemeralStorage, context),
5009
- })), (input.executionRoleArn !== undefined &&
5010
- input.executionRoleArn !== null && { executionRoleArn: input.executionRoleArn })), (input.family !== undefined && input.family !== null && { family: input.family })), (input.inferenceAccelerators !== undefined &&
5011
- input.inferenceAccelerators !== null && {
4872
+ })), (input.executionRoleArn != null && { executionRoleArn: input.executionRoleArn })), (input.family != null && { family: input.family })), (input.inferenceAccelerators != null && {
5012
4873
  inferenceAccelerators: serializeAws_json1_1InferenceAccelerators(input.inferenceAccelerators, context),
5013
- })), (input.ipcMode !== undefined && input.ipcMode !== null && { ipcMode: input.ipcMode })), (input.memory !== undefined && input.memory !== null && { memory: input.memory })), (input.networkMode !== undefined && input.networkMode !== null && { networkMode: input.networkMode })), (input.pidMode !== undefined && input.pidMode !== null && { pidMode: input.pidMode })), (input.placementConstraints !== undefined &&
5014
- input.placementConstraints !== null && {
4874
+ })), (input.ipcMode != null && { ipcMode: input.ipcMode })), (input.memory != null && { memory: input.memory })), (input.networkMode != null && { networkMode: input.networkMode })), (input.pidMode != null && { pidMode: input.pidMode })), (input.placementConstraints != null && {
5015
4875
  placementConstraints: serializeAws_json1_1TaskDefinitionPlacementConstraints(input.placementConstraints, context),
5016
- })), (input.proxyConfiguration !== undefined &&
5017
- input.proxyConfiguration !== null && {
4876
+ })), (input.proxyConfiguration != null && {
5018
4877
  proxyConfiguration: serializeAws_json1_1ProxyConfiguration(input.proxyConfiguration, context),
5019
- })), (input.requiresCompatibilities !== undefined &&
5020
- input.requiresCompatibilities !== null && {
4878
+ })), (input.requiresCompatibilities != null && {
5021
4879
  requiresCompatibilities: serializeAws_json1_1CompatibilityList(input.requiresCompatibilities, context),
5022
- })), (input.runtimePlatform !== undefined &&
5023
- input.runtimePlatform !== null && {
4880
+ })), (input.runtimePlatform != null && {
5024
4881
  runtimePlatform: serializeAws_json1_1RuntimePlatform(input.runtimePlatform, context),
5025
- })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) })), (input.taskRoleArn !== undefined && input.taskRoleArn !== null && { taskRoleArn: input.taskRoleArn })), (input.volumes !== undefined &&
5026
- input.volumes !== null && { volumes: serializeAws_json1_1VolumeList(input.volumes, context) }));
4882
+ })), (input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) })), (input.taskRoleArn != null && { taskRoleArn: input.taskRoleArn })), (input.volumes != null && { volumes: serializeAws_json1_1VolumeList(input.volumes, context) }));
5027
4883
  };
5028
4884
  var serializeAws_json1_1RepositoryCredentials = function (input, context) {
5029
- return __assign({}, (input.credentialsParameter !== undefined &&
5030
- input.credentialsParameter !== null && { credentialsParameter: input.credentialsParameter }));
4885
+ return __assign({}, (input.credentialsParameter != null && { credentialsParameter: input.credentialsParameter }));
5031
4886
  };
5032
4887
  var serializeAws_json1_1Resource = function (input, context) {
5033
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.doubleValue !== undefined &&
5034
- input.doubleValue !== null && { doubleValue: __serializeFloat(input.doubleValue) })), (input.integerValue !== undefined && input.integerValue !== null && { integerValue: input.integerValue })), (input.longValue !== undefined && input.longValue !== null && { longValue: input.longValue })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.stringSetValue !== undefined &&
5035
- input.stringSetValue !== null && {
4888
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.doubleValue != null && { doubleValue: __serializeFloat(input.doubleValue) })), (input.integerValue != null && { integerValue: input.integerValue })), (input.longValue != null && { longValue: input.longValue })), (input.name != null && { name: input.name })), (input.stringSetValue != null && {
5036
4889
  stringSetValue: serializeAws_json1_1StringList(input.stringSetValue, context),
5037
- })), (input.type !== undefined && input.type !== null && { type: input.type }));
4890
+ })), (input.type != null && { type: input.type }));
5038
4891
  };
5039
4892
  var serializeAws_json1_1ResourceRequirement = function (input, context) {
5040
- return __assign(__assign({}, (input.type !== undefined && input.type !== null && { type: input.type })), (input.value !== undefined && input.value !== null && { value: input.value }));
4893
+ return __assign(__assign({}, (input.type != null && { type: input.type })), (input.value != null && { value: input.value }));
5041
4894
  };
5042
4895
  var serializeAws_json1_1ResourceRequirements = function (input, context) {
5043
4896
  return input
@@ -5060,35 +4913,24 @@ var serializeAws_json1_1Resources = function (input, context) {
5060
4913
  });
5061
4914
  };
5062
4915
  var serializeAws_json1_1RunTaskRequest = function (input, context) {
5063
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.capacityProviderStrategy !== undefined &&
5064
- input.capacityProviderStrategy !== null && {
4916
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.capacityProviderStrategy != null && {
5065
4917
  capacityProviderStrategy: serializeAws_json1_1CapacityProviderStrategy(input.capacityProviderStrategy, context),
5066
- })), (input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster })), (input.count !== undefined && input.count !== null && { count: input.count })), (input.enableECSManagedTags !== undefined &&
5067
- input.enableECSManagedTags !== null && { enableECSManagedTags: input.enableECSManagedTags })), (input.enableExecuteCommand !== undefined &&
5068
- input.enableExecuteCommand !== null && { enableExecuteCommand: input.enableExecuteCommand })), (input.group !== undefined && input.group !== null && { group: input.group })), (input.launchType !== undefined && input.launchType !== null && { launchType: input.launchType })), (input.networkConfiguration !== undefined &&
5069
- input.networkConfiguration !== null && {
4918
+ })), (input.cluster != null && { cluster: input.cluster })), (input.count != null && { count: input.count })), (input.enableECSManagedTags != null && { enableECSManagedTags: input.enableECSManagedTags })), (input.enableExecuteCommand != null && { enableExecuteCommand: input.enableExecuteCommand })), (input.group != null && { group: input.group })), (input.launchType != null && { launchType: input.launchType })), (input.networkConfiguration != null && {
5070
4919
  networkConfiguration: serializeAws_json1_1NetworkConfiguration(input.networkConfiguration, context),
5071
- })), (input.overrides !== undefined &&
5072
- input.overrides !== null && { overrides: serializeAws_json1_1TaskOverride(input.overrides, context) })), (input.placementConstraints !== undefined &&
5073
- input.placementConstraints !== null && {
4920
+ })), (input.overrides != null && { overrides: serializeAws_json1_1TaskOverride(input.overrides, context) })), (input.placementConstraints != null && {
5074
4921
  placementConstraints: serializeAws_json1_1PlacementConstraints(input.placementConstraints, context),
5075
- })), (input.placementStrategy !== undefined &&
5076
- input.placementStrategy !== null && {
4922
+ })), (input.placementStrategy != null && {
5077
4923
  placementStrategy: serializeAws_json1_1PlacementStrategies(input.placementStrategy, context),
5078
- })), (input.platformVersion !== undefined &&
5079
- input.platformVersion !== null && { platformVersion: input.platformVersion })), (input.propagateTags !== undefined && input.propagateTags !== null && { propagateTags: input.propagateTags })), (input.referenceId !== undefined && input.referenceId !== null && { referenceId: input.referenceId })), (input.startedBy !== undefined && input.startedBy !== null && { startedBy: input.startedBy })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) })), (input.taskDefinition !== undefined &&
5080
- input.taskDefinition !== null && { taskDefinition: input.taskDefinition }));
4924
+ })), (input.platformVersion != null && { platformVersion: input.platformVersion })), (input.propagateTags != null && { propagateTags: input.propagateTags })), (input.referenceId != null && { referenceId: input.referenceId })), (input.startedBy != null && { startedBy: input.startedBy })), (input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) })), (input.taskDefinition != null && { taskDefinition: input.taskDefinition }));
5081
4925
  };
5082
4926
  var serializeAws_json1_1RuntimePlatform = function (input, context) {
5083
- return __assign(__assign({}, (input.cpuArchitecture !== undefined &&
5084
- input.cpuArchitecture !== null && { cpuArchitecture: input.cpuArchitecture })), (input.operatingSystemFamily !== undefined &&
5085
- input.operatingSystemFamily !== null && { operatingSystemFamily: input.operatingSystemFamily }));
4927
+ return __assign(__assign({}, (input.cpuArchitecture != null && { cpuArchitecture: input.cpuArchitecture })), (input.operatingSystemFamily != null && { operatingSystemFamily: input.operatingSystemFamily }));
5086
4928
  };
5087
4929
  var serializeAws_json1_1Scale = function (input, context) {
5088
- return __assign(__assign({}, (input.unit !== undefined && input.unit !== null && { unit: input.unit })), (input.value !== undefined && input.value !== null && { value: __serializeFloat(input.value) }));
4930
+ return __assign(__assign({}, (input.unit != null && { unit: input.unit })), (input.value != null && { value: __serializeFloat(input.value) }));
5089
4931
  };
5090
4932
  var serializeAws_json1_1Secret = function (input, context) {
5091
- return __assign(__assign({}, (input.name !== undefined && input.name !== null && { name: input.name })), (input.valueFrom !== undefined && input.valueFrom !== null && { valueFrom: input.valueFrom }));
4933
+ return __assign(__assign({}, (input.name != null && { name: input.name })), (input.valueFrom != null && { valueFrom: input.valueFrom }));
5092
4934
  };
5093
4935
  var serializeAws_json1_1SecretList = function (input, context) {
5094
4936
  return input
@@ -5121,23 +4963,17 @@ var serializeAws_json1_1ServiceRegistries = function (input, context) {
5121
4963
  });
5122
4964
  };
5123
4965
  var serializeAws_json1_1ServiceRegistry = function (input, context) {
5124
- return __assign(__assign(__assign(__assign({}, (input.containerName !== undefined && input.containerName !== null && { containerName: input.containerName })), (input.containerPort !== undefined && input.containerPort !== null && { containerPort: input.containerPort })), (input.port !== undefined && input.port !== null && { port: input.port })), (input.registryArn !== undefined && input.registryArn !== null && { registryArn: input.registryArn }));
4966
+ return __assign(__assign(__assign(__assign({}, (input.containerName != null && { containerName: input.containerName })), (input.containerPort != null && { containerPort: input.containerPort })), (input.port != null && { port: input.port })), (input.registryArn != null && { registryArn: input.registryArn }));
5125
4967
  };
5126
4968
  var serializeAws_json1_1StartTaskRequest = function (input, context) {
5127
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster })), (input.containerInstances !== undefined &&
5128
- input.containerInstances !== null && {
4969
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.cluster != null && { cluster: input.cluster })), (input.containerInstances != null && {
5129
4970
  containerInstances: serializeAws_json1_1StringList(input.containerInstances, context),
5130
- })), (input.enableECSManagedTags !== undefined &&
5131
- input.enableECSManagedTags !== null && { enableECSManagedTags: input.enableECSManagedTags })), (input.enableExecuteCommand !== undefined &&
5132
- input.enableExecuteCommand !== null && { enableExecuteCommand: input.enableExecuteCommand })), (input.group !== undefined && input.group !== null && { group: input.group })), (input.networkConfiguration !== undefined &&
5133
- input.networkConfiguration !== null && {
4971
+ })), (input.enableECSManagedTags != null && { enableECSManagedTags: input.enableECSManagedTags })), (input.enableExecuteCommand != null && { enableExecuteCommand: input.enableExecuteCommand })), (input.group != null && { group: input.group })), (input.networkConfiguration != null && {
5134
4972
  networkConfiguration: serializeAws_json1_1NetworkConfiguration(input.networkConfiguration, context),
5135
- })), (input.overrides !== undefined &&
5136
- input.overrides !== null && { overrides: serializeAws_json1_1TaskOverride(input.overrides, context) })), (input.propagateTags !== undefined && input.propagateTags !== null && { propagateTags: input.propagateTags })), (input.referenceId !== undefined && input.referenceId !== null && { referenceId: input.referenceId })), (input.startedBy !== undefined && input.startedBy !== null && { startedBy: input.startedBy })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) })), (input.taskDefinition !== undefined &&
5137
- input.taskDefinition !== null && { taskDefinition: input.taskDefinition }));
4973
+ })), (input.overrides != null && { overrides: serializeAws_json1_1TaskOverride(input.overrides, context) })), (input.propagateTags != null && { propagateTags: input.propagateTags })), (input.referenceId != null && { referenceId: input.referenceId })), (input.startedBy != null && { startedBy: input.startedBy })), (input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) })), (input.taskDefinition != null && { taskDefinition: input.taskDefinition }));
5138
4974
  };
5139
4975
  var serializeAws_json1_1StopTaskRequest = function (input, context) {
5140
- return __assign(__assign(__assign({}, (input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster })), (input.reason !== undefined && input.reason !== null && { reason: input.reason })), (input.task !== undefined && input.task !== null && { task: input.task }));
4976
+ return __assign(__assign(__assign({}, (input.cluster != null && { cluster: input.cluster })), (input.reason != null && { reason: input.reason })), (input.task != null && { task: input.task }));
5141
4977
  };
5142
4978
  var serializeAws_json1_1StringList = function (input, context) {
5143
4979
  return input
@@ -5160,36 +4996,28 @@ var serializeAws_json1_1StringMap = function (input, context) {
5160
4996
  }, {});
5161
4997
  };
5162
4998
  var serializeAws_json1_1SubmitAttachmentStateChangesRequest = function (input, context) {
5163
- return __assign(__assign({}, (input.attachments !== undefined &&
5164
- input.attachments !== null && {
4999
+ return __assign(__assign({}, (input.attachments != null && {
5165
5000
  attachments: serializeAws_json1_1AttachmentStateChanges(input.attachments, context),
5166
- })), (input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster }));
5001
+ })), (input.cluster != null && { cluster: input.cluster }));
5167
5002
  };
5168
5003
  var serializeAws_json1_1SubmitContainerStateChangeRequest = function (input, context) {
5169
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster })), (input.containerName !== undefined && input.containerName !== null && { containerName: input.containerName })), (input.exitCode !== undefined && input.exitCode !== null && { exitCode: input.exitCode })), (input.networkBindings !== undefined &&
5170
- input.networkBindings !== null && {
5004
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.cluster != null && { cluster: input.cluster })), (input.containerName != null && { containerName: input.containerName })), (input.exitCode != null && { exitCode: input.exitCode })), (input.networkBindings != null && {
5171
5005
  networkBindings: serializeAws_json1_1NetworkBindings(input.networkBindings, context),
5172
- })), (input.reason !== undefined && input.reason !== null && { reason: input.reason })), (input.runtimeId !== undefined && input.runtimeId !== null && { runtimeId: input.runtimeId })), (input.status !== undefined && input.status !== null && { status: input.status })), (input.task !== undefined && input.task !== null && { task: input.task }));
5006
+ })), (input.reason != null && { reason: input.reason })), (input.runtimeId != null && { runtimeId: input.runtimeId })), (input.status != null && { status: input.status })), (input.task != null && { task: input.task }));
5173
5007
  };
5174
5008
  var serializeAws_json1_1SubmitTaskStateChangeRequest = function (input, context) {
5175
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.attachments !== undefined &&
5176
- input.attachments !== null && {
5009
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.attachments != null && {
5177
5010
  attachments: serializeAws_json1_1AttachmentStateChanges(input.attachments, context),
5178
- })), (input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster })), (input.containers !== undefined &&
5179
- input.containers !== null && {
5011
+ })), (input.cluster != null && { cluster: input.cluster })), (input.containers != null && {
5180
5012
  containers: serializeAws_json1_1ContainerStateChanges(input.containers, context),
5181
- })), (input.executionStoppedAt !== undefined &&
5182
- input.executionStoppedAt !== null && {
5013
+ })), (input.executionStoppedAt != null && {
5183
5014
  executionStoppedAt: Math.round(input.executionStoppedAt.getTime() / 1000),
5184
- })), (input.managedAgents !== undefined &&
5185
- input.managedAgents !== null && {
5015
+ })), (input.managedAgents != null && {
5186
5016
  managedAgents: serializeAws_json1_1ManagedAgentStateChanges(input.managedAgents, context),
5187
- })), (input.pullStartedAt !== undefined &&
5188
- input.pullStartedAt !== null && { pullStartedAt: Math.round(input.pullStartedAt.getTime() / 1000) })), (input.pullStoppedAt !== undefined &&
5189
- input.pullStoppedAt !== null && { pullStoppedAt: Math.round(input.pullStoppedAt.getTime() / 1000) })), (input.reason !== undefined && input.reason !== null && { reason: input.reason })), (input.status !== undefined && input.status !== null && { status: input.status })), (input.task !== undefined && input.task !== null && { task: input.task }));
5017
+ })), (input.pullStartedAt != null && { pullStartedAt: Math.round(input.pullStartedAt.getTime() / 1000) })), (input.pullStoppedAt != null && { pullStoppedAt: Math.round(input.pullStoppedAt.getTime() / 1000) })), (input.reason != null && { reason: input.reason })), (input.status != null && { status: input.status })), (input.task != null && { task: input.task }));
5190
5018
  };
5191
5019
  var serializeAws_json1_1SystemControl = function (input, context) {
5192
- return __assign(__assign({}, (input.namespace !== undefined && input.namespace !== null && { namespace: input.namespace })), (input.value !== undefined && input.value !== null && { value: input.value }));
5020
+ return __assign(__assign({}, (input.namespace != null && { namespace: input.namespace })), (input.value != null && { value: input.value }));
5193
5021
  };
5194
5022
  var serializeAws_json1_1SystemControls = function (input, context) {
5195
5023
  return input
@@ -5202,7 +5030,7 @@ var serializeAws_json1_1SystemControls = function (input, context) {
5202
5030
  });
5203
5031
  };
5204
5032
  var serializeAws_json1_1Tag = function (input, context) {
5205
- return __assign(__assign({}, (input.key !== undefined && input.key !== null && { key: input.key })), (input.value !== undefined && input.value !== null && { value: input.value }));
5033
+ return __assign(__assign({}, (input.key != null && { key: input.key })), (input.value != null && { value: input.value }));
5206
5034
  };
5207
5035
  var serializeAws_json1_1TagKeys = function (input, context) {
5208
5036
  return input
@@ -5215,7 +5043,7 @@ var serializeAws_json1_1TagKeys = function (input, context) {
5215
5043
  });
5216
5044
  };
5217
5045
  var serializeAws_json1_1TagResourceRequest = function (input, context) {
5218
- return __assign(__assign({}, (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }));
5046
+ return __assign(__assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }));
5219
5047
  };
5220
5048
  var serializeAws_json1_1Tags = function (input, context) {
5221
5049
  return input
@@ -5238,7 +5066,7 @@ var serializeAws_json1_1TaskDefinitionFieldList = function (input, context) {
5238
5066
  });
5239
5067
  };
5240
5068
  var serializeAws_json1_1TaskDefinitionPlacementConstraint = function (input, context) {
5241
- return __assign(__assign({}, (input.expression !== undefined && input.expression !== null && { expression: input.expression })), (input.type !== undefined && input.type !== null && { type: input.type }));
5069
+ return __assign(__assign({}, (input.expression != null && { expression: input.expression })), (input.type != null && { type: input.type }));
5242
5070
  };
5243
5071
  var serializeAws_json1_1TaskDefinitionPlacementConstraints = function (input, context) {
5244
5072
  return input
@@ -5261,17 +5089,13 @@ var serializeAws_json1_1TaskFieldList = function (input, context) {
5261
5089
  });
5262
5090
  };
5263
5091
  var serializeAws_json1_1TaskOverride = function (input, context) {
5264
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.containerOverrides !== undefined &&
5265
- input.containerOverrides !== null && {
5092
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.containerOverrides != null && {
5266
5093
  containerOverrides: serializeAws_json1_1ContainerOverrides(input.containerOverrides, context),
5267
- })), (input.cpu !== undefined && input.cpu !== null && { cpu: input.cpu })), (input.ephemeralStorage !== undefined &&
5268
- input.ephemeralStorage !== null && {
5094
+ })), (input.cpu != null && { cpu: input.cpu })), (input.ephemeralStorage != null && {
5269
5095
  ephemeralStorage: serializeAws_json1_1EphemeralStorage(input.ephemeralStorage, context),
5270
- })), (input.executionRoleArn !== undefined &&
5271
- input.executionRoleArn !== null && { executionRoleArn: input.executionRoleArn })), (input.inferenceAcceleratorOverrides !== undefined &&
5272
- input.inferenceAcceleratorOverrides !== null && {
5096
+ })), (input.executionRoleArn != null && { executionRoleArn: input.executionRoleArn })), (input.inferenceAcceleratorOverrides != null && {
5273
5097
  inferenceAcceleratorOverrides: serializeAws_json1_1InferenceAcceleratorOverrides(input.inferenceAcceleratorOverrides, context),
5274
- })), (input.memory !== undefined && input.memory !== null && { memory: input.memory })), (input.taskRoleArn !== undefined && input.taskRoleArn !== null && { taskRoleArn: input.taskRoleArn }));
5098
+ })), (input.memory != null && { memory: input.memory })), (input.taskRoleArn != null && { taskRoleArn: input.taskRoleArn }));
5275
5099
  };
5276
5100
  var serializeAws_json1_1TaskSetFieldList = function (input, context) {
5277
5101
  return input
@@ -5284,8 +5108,7 @@ var serializeAws_json1_1TaskSetFieldList = function (input, context) {
5284
5108
  });
5285
5109
  };
5286
5110
  var serializeAws_json1_1Tmpfs = function (input, context) {
5287
- return __assign(__assign(__assign({}, (input.containerPath !== undefined && input.containerPath !== null && { containerPath: input.containerPath })), (input.mountOptions !== undefined &&
5288
- input.mountOptions !== null && { mountOptions: serializeAws_json1_1StringList(input.mountOptions, context) })), (input.size !== undefined && input.size !== null && { size: input.size }));
5111
+ return __assign(__assign(__assign({}, (input.containerPath != null && { containerPath: input.containerPath })), (input.mountOptions != null && { mountOptions: serializeAws_json1_1StringList(input.mountOptions, context) })), (input.size != null && { size: input.size }));
5289
5112
  };
5290
5113
  var serializeAws_json1_1TmpfsList = function (input, context) {
5291
5114
  return input
@@ -5298,7 +5121,7 @@ var serializeAws_json1_1TmpfsList = function (input, context) {
5298
5121
  });
5299
5122
  };
5300
5123
  var serializeAws_json1_1Ulimit = function (input, context) {
5301
- return __assign(__assign(__assign({}, (input.hardLimit !== undefined && input.hardLimit !== null && { hardLimit: input.hardLimit })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.softLimit !== undefined && input.softLimit !== null && { softLimit: input.softLimit }));
5124
+ return __assign(__assign(__assign({}, (input.hardLimit != null && { hardLimit: input.hardLimit })), (input.name != null && { name: input.name })), (input.softLimit != null && { softLimit: input.softLimit }));
5302
5125
  };
5303
5126
  var serializeAws_json1_1UlimitList = function (input, context) {
5304
5127
  return input
@@ -5311,95 +5134,68 @@ var serializeAws_json1_1UlimitList = function (input, context) {
5311
5134
  });
5312
5135
  };
5313
5136
  var serializeAws_json1_1UntagResourceRequest = function (input, context) {
5314
- return __assign(__assign({}, (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn })), (input.tagKeys !== undefined &&
5315
- input.tagKeys !== null && { tagKeys: serializeAws_json1_1TagKeys(input.tagKeys, context) }));
5137
+ return __assign(__assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.tagKeys != null && { tagKeys: serializeAws_json1_1TagKeys(input.tagKeys, context) }));
5316
5138
  };
5317
5139
  var serializeAws_json1_1UpdateCapacityProviderRequest = function (input, context) {
5318
- return __assign(__assign({}, (input.autoScalingGroupProvider !== undefined &&
5319
- input.autoScalingGroupProvider !== null && {
5140
+ return __assign(__assign({}, (input.autoScalingGroupProvider != null && {
5320
5141
  autoScalingGroupProvider: serializeAws_json1_1AutoScalingGroupProviderUpdate(input.autoScalingGroupProvider, context),
5321
- })), (input.name !== undefined && input.name !== null && { name: input.name }));
5142
+ })), (input.name != null && { name: input.name }));
5322
5143
  };
5323
5144
  var serializeAws_json1_1UpdateClusterRequest = function (input, context) {
5324
- return __assign(__assign(__assign({}, (input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster })), (input.configuration !== undefined &&
5325
- input.configuration !== null && {
5145
+ return __assign(__assign(__assign({}, (input.cluster != null && { cluster: input.cluster })), (input.configuration != null && {
5326
5146
  configuration: serializeAws_json1_1ClusterConfiguration(input.configuration, context),
5327
- })), (input.settings !== undefined &&
5328
- input.settings !== null && { settings: serializeAws_json1_1ClusterSettings(input.settings, context) }));
5147
+ })), (input.settings != null && { settings: serializeAws_json1_1ClusterSettings(input.settings, context) }));
5329
5148
  };
5330
5149
  var serializeAws_json1_1UpdateClusterSettingsRequest = function (input, context) {
5331
- return __assign(__assign({}, (input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster })), (input.settings !== undefined &&
5332
- input.settings !== null && { settings: serializeAws_json1_1ClusterSettings(input.settings, context) }));
5150
+ return __assign(__assign({}, (input.cluster != null && { cluster: input.cluster })), (input.settings != null && { settings: serializeAws_json1_1ClusterSettings(input.settings, context) }));
5333
5151
  };
5334
5152
  var serializeAws_json1_1UpdateContainerAgentRequest = function (input, context) {
5335
- return __assign(__assign({}, (input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster })), (input.containerInstance !== undefined &&
5336
- input.containerInstance !== null && { containerInstance: input.containerInstance }));
5153
+ return __assign(__assign({}, (input.cluster != null && { cluster: input.cluster })), (input.containerInstance != null && { containerInstance: input.containerInstance }));
5337
5154
  };
5338
5155
  var serializeAws_json1_1UpdateContainerInstancesStateRequest = function (input, context) {
5339
- return __assign(__assign(__assign({}, (input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster })), (input.containerInstances !== undefined &&
5340
- input.containerInstances !== null && {
5156
+ return __assign(__assign(__assign({}, (input.cluster != null && { cluster: input.cluster })), (input.containerInstances != null && {
5341
5157
  containerInstances: serializeAws_json1_1StringList(input.containerInstances, context),
5342
- })), (input.status !== undefined && input.status !== null && { status: input.status }));
5158
+ })), (input.status != null && { status: input.status }));
5343
5159
  };
5344
5160
  var serializeAws_json1_1UpdateServicePrimaryTaskSetRequest = function (input, context) {
5345
- return __assign(__assign(__assign({}, (input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster })), (input.primaryTaskSet !== undefined &&
5346
- input.primaryTaskSet !== null && { primaryTaskSet: input.primaryTaskSet })), (input.service !== undefined && input.service !== null && { service: input.service }));
5161
+ return __assign(__assign(__assign({}, (input.cluster != null && { cluster: input.cluster })), (input.primaryTaskSet != null && { primaryTaskSet: input.primaryTaskSet })), (input.service != null && { service: input.service }));
5347
5162
  };
5348
5163
  var serializeAws_json1_1UpdateServiceRequest = function (input, context) {
5349
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.capacityProviderStrategy !== undefined &&
5350
- input.capacityProviderStrategy !== null && {
5164
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.capacityProviderStrategy != null && {
5351
5165
  capacityProviderStrategy: serializeAws_json1_1CapacityProviderStrategy(input.capacityProviderStrategy, context),
5352
- })), (input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster })), (input.deploymentConfiguration !== undefined &&
5353
- input.deploymentConfiguration !== null && {
5166
+ })), (input.cluster != null && { cluster: input.cluster })), (input.deploymentConfiguration != null && {
5354
5167
  deploymentConfiguration: serializeAws_json1_1DeploymentConfiguration(input.deploymentConfiguration, context),
5355
- })), (input.desiredCount !== undefined && input.desiredCount !== null && { desiredCount: input.desiredCount })), (input.enableECSManagedTags !== undefined &&
5356
- input.enableECSManagedTags !== null && { enableECSManagedTags: input.enableECSManagedTags })), (input.enableExecuteCommand !== undefined &&
5357
- input.enableExecuteCommand !== null && { enableExecuteCommand: input.enableExecuteCommand })), (input.forceNewDeployment !== undefined &&
5358
- input.forceNewDeployment !== null && { forceNewDeployment: input.forceNewDeployment })), (input.healthCheckGracePeriodSeconds !== undefined &&
5359
- input.healthCheckGracePeriodSeconds !== null && {
5168
+ })), (input.desiredCount != null && { desiredCount: input.desiredCount })), (input.enableECSManagedTags != null && { enableECSManagedTags: input.enableECSManagedTags })), (input.enableExecuteCommand != null && { enableExecuteCommand: input.enableExecuteCommand })), (input.forceNewDeployment != null && { forceNewDeployment: input.forceNewDeployment })), (input.healthCheckGracePeriodSeconds != null && {
5360
5169
  healthCheckGracePeriodSeconds: input.healthCheckGracePeriodSeconds,
5361
- })), (input.loadBalancers !== undefined &&
5362
- input.loadBalancers !== null && {
5170
+ })), (input.loadBalancers != null && {
5363
5171
  loadBalancers: serializeAws_json1_1LoadBalancers(input.loadBalancers, context),
5364
- })), (input.networkConfiguration !== undefined &&
5365
- input.networkConfiguration !== null && {
5172
+ })), (input.networkConfiguration != null && {
5366
5173
  networkConfiguration: serializeAws_json1_1NetworkConfiguration(input.networkConfiguration, context),
5367
- })), (input.placementConstraints !== undefined &&
5368
- input.placementConstraints !== null && {
5174
+ })), (input.placementConstraints != null && {
5369
5175
  placementConstraints: serializeAws_json1_1PlacementConstraints(input.placementConstraints, context),
5370
- })), (input.placementStrategy !== undefined &&
5371
- input.placementStrategy !== null && {
5176
+ })), (input.placementStrategy != null && {
5372
5177
  placementStrategy: serializeAws_json1_1PlacementStrategies(input.placementStrategy, context),
5373
- })), (input.platformVersion !== undefined &&
5374
- input.platformVersion !== null && { platformVersion: input.platformVersion })), (input.propagateTags !== undefined && input.propagateTags !== null && { propagateTags: input.propagateTags })), (input.service !== undefined && input.service !== null && { service: input.service })), (input.serviceRegistries !== undefined &&
5375
- input.serviceRegistries !== null && {
5178
+ })), (input.platformVersion != null && { platformVersion: input.platformVersion })), (input.propagateTags != null && { propagateTags: input.propagateTags })), (input.service != null && { service: input.service })), (input.serviceRegistries != null && {
5376
5179
  serviceRegistries: serializeAws_json1_1ServiceRegistries(input.serviceRegistries, context),
5377
- })), (input.taskDefinition !== undefined &&
5378
- input.taskDefinition !== null && { taskDefinition: input.taskDefinition }));
5180
+ })), (input.taskDefinition != null && { taskDefinition: input.taskDefinition }));
5379
5181
  };
5380
5182
  var serializeAws_json1_1UpdateTaskSetRequest = function (input, context) {
5381
- return __assign(__assign(__assign(__assign({}, (input.cluster !== undefined && input.cluster !== null && { cluster: input.cluster })), (input.scale !== undefined &&
5382
- input.scale !== null && { scale: serializeAws_json1_1Scale(input.scale, context) })), (input.service !== undefined && input.service !== null && { service: input.service })), (input.taskSet !== undefined && input.taskSet !== null && { taskSet: input.taskSet }));
5183
+ return __assign(__assign(__assign(__assign({}, (input.cluster != null && { cluster: input.cluster })), (input.scale != null && { scale: serializeAws_json1_1Scale(input.scale, context) })), (input.service != null && { service: input.service })), (input.taskSet != null && { taskSet: input.taskSet }));
5383
5184
  };
5384
5185
  var serializeAws_json1_1VersionInfo = function (input, context) {
5385
- return __assign(__assign(__assign({}, (input.agentHash !== undefined && input.agentHash !== null && { agentHash: input.agentHash })), (input.agentVersion !== undefined && input.agentVersion !== null && { agentVersion: input.agentVersion })), (input.dockerVersion !== undefined && input.dockerVersion !== null && { dockerVersion: input.dockerVersion }));
5186
+ return __assign(__assign(__assign({}, (input.agentHash != null && { agentHash: input.agentHash })), (input.agentVersion != null && { agentVersion: input.agentVersion })), (input.dockerVersion != null && { dockerVersion: input.dockerVersion }));
5386
5187
  };
5387
5188
  var serializeAws_json1_1Volume = function (input, context) {
5388
- return __assign(__assign(__assign(__assign(__assign({}, (input.dockerVolumeConfiguration !== undefined &&
5389
- input.dockerVolumeConfiguration !== null && {
5189
+ return __assign(__assign(__assign(__assign(__assign({}, (input.dockerVolumeConfiguration != null && {
5390
5190
  dockerVolumeConfiguration: serializeAws_json1_1DockerVolumeConfiguration(input.dockerVolumeConfiguration, context),
5391
- })), (input.efsVolumeConfiguration !== undefined &&
5392
- input.efsVolumeConfiguration !== null && {
5191
+ })), (input.efsVolumeConfiguration != null && {
5393
5192
  efsVolumeConfiguration: serializeAws_json1_1EFSVolumeConfiguration(input.efsVolumeConfiguration, context),
5394
- })), (input.fsxWindowsFileServerVolumeConfiguration !== undefined &&
5395
- input.fsxWindowsFileServerVolumeConfiguration !== null && {
5193
+ })), (input.fsxWindowsFileServerVolumeConfiguration != null && {
5396
5194
  fsxWindowsFileServerVolumeConfiguration: serializeAws_json1_1FSxWindowsFileServerVolumeConfiguration(input.fsxWindowsFileServerVolumeConfiguration, context),
5397
- })), (input.host !== undefined &&
5398
- input.host !== null && { host: serializeAws_json1_1HostVolumeProperties(input.host, context) })), (input.name !== undefined && input.name !== null && { name: input.name }));
5195
+ })), (input.host != null && { host: serializeAws_json1_1HostVolumeProperties(input.host, context) })), (input.name != null && { name: input.name }));
5399
5196
  };
5400
5197
  var serializeAws_json1_1VolumeFrom = function (input, context) {
5401
- return __assign(__assign({}, (input.readOnly !== undefined && input.readOnly !== null && { readOnly: input.readOnly })), (input.sourceContainer !== undefined &&
5402
- input.sourceContainer !== null && { sourceContainer: input.sourceContainer }));
5198
+ return __assign(__assign({}, (input.readOnly != null && { readOnly: input.readOnly })), (input.sourceContainer != null && { sourceContainer: input.sourceContainer }));
5403
5199
  };
5404
5200
  var serializeAws_json1_1VolumeFromList = function (input, context) {
5405
5201
  return input
@@ -5428,9 +5224,7 @@ var deserializeAws_json1_1AccessDeniedException = function (output, context) {
5428
5224
  };
5429
5225
  var deserializeAws_json1_1Attachment = function (output, context) {
5430
5226
  return {
5431
- details: output.details !== undefined && output.details !== null
5432
- ? deserializeAws_json1_1AttachmentDetails(output.details, context)
5433
- : undefined,
5227
+ details: output.details != null ? deserializeAws_json1_1AttachmentDetails(output.details, context) : undefined,
5434
5228
  id: __expectString(output.id),
5435
5229
  status: __expectString(output.status),
5436
5230
  type: __expectString(output.type),
@@ -5485,21 +5279,15 @@ var deserializeAws_json1_1Attributes = function (output, context) {
5485
5279
  var deserializeAws_json1_1AutoScalingGroupProvider = function (output, context) {
5486
5280
  return {
5487
5281
  autoScalingGroupArn: __expectString(output.autoScalingGroupArn),
5488
- managedScaling: output.managedScaling !== undefined && output.managedScaling !== null
5489
- ? deserializeAws_json1_1ManagedScaling(output.managedScaling, context)
5490
- : undefined,
5282
+ managedScaling: output.managedScaling != null ? deserializeAws_json1_1ManagedScaling(output.managedScaling, context) : undefined,
5491
5283
  managedTerminationProtection: __expectString(output.managedTerminationProtection),
5492
5284
  };
5493
5285
  };
5494
5286
  var deserializeAws_json1_1AwsVpcConfiguration = function (output, context) {
5495
5287
  return {
5496
5288
  assignPublicIp: __expectString(output.assignPublicIp),
5497
- securityGroups: output.securityGroups !== undefined && output.securityGroups !== null
5498
- ? deserializeAws_json1_1StringList(output.securityGroups, context)
5499
- : undefined,
5500
- subnets: output.subnets !== undefined && output.subnets !== null
5501
- ? deserializeAws_json1_1StringList(output.subnets, context)
5502
- : undefined,
5289
+ securityGroups: output.securityGroups != null ? deserializeAws_json1_1StringList(output.securityGroups, context) : undefined,
5290
+ subnets: output.subnets != null ? deserializeAws_json1_1StringList(output.subnets, context) : undefined,
5503
5291
  };
5504
5292
  };
5505
5293
  var deserializeAws_json1_1BlockedException = function (output, context) {
@@ -5509,13 +5297,13 @@ var deserializeAws_json1_1BlockedException = function (output, context) {
5509
5297
  };
5510
5298
  var deserializeAws_json1_1CapacityProvider = function (output, context) {
5511
5299
  return {
5512
- autoScalingGroupProvider: output.autoScalingGroupProvider !== undefined && output.autoScalingGroupProvider !== null
5300
+ autoScalingGroupProvider: output.autoScalingGroupProvider != null
5513
5301
  ? deserializeAws_json1_1AutoScalingGroupProvider(output.autoScalingGroupProvider, context)
5514
5302
  : undefined,
5515
5303
  capacityProviderArn: __expectString(output.capacityProviderArn),
5516
5304
  name: __expectString(output.name),
5517
5305
  status: __expectString(output.status),
5518
- tags: output.tags !== undefined && output.tags !== null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
5306
+ tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
5519
5307
  updateStatus: __expectString(output.updateStatus),
5520
5308
  updateStatusReason: __expectString(output.updateStatusReason),
5521
5309
  };
@@ -5557,37 +5345,31 @@ var deserializeAws_json1_1ClientException = function (output, context) {
5557
5345
  var deserializeAws_json1_1Cluster = function (output, context) {
5558
5346
  return {
5559
5347
  activeServicesCount: __expectInt32(output.activeServicesCount),
5560
- attachments: output.attachments !== undefined && output.attachments !== null
5561
- ? deserializeAws_json1_1Attachments(output.attachments, context)
5562
- : undefined,
5348
+ attachments: output.attachments != null ? deserializeAws_json1_1Attachments(output.attachments, context) : undefined,
5563
5349
  attachmentsStatus: __expectString(output.attachmentsStatus),
5564
- capacityProviders: output.capacityProviders !== undefined && output.capacityProviders !== null
5350
+ capacityProviders: output.capacityProviders != null
5565
5351
  ? deserializeAws_json1_1StringList(output.capacityProviders, context)
5566
5352
  : undefined,
5567
5353
  clusterArn: __expectString(output.clusterArn),
5568
5354
  clusterName: __expectString(output.clusterName),
5569
- configuration: output.configuration !== undefined && output.configuration !== null
5355
+ configuration: output.configuration != null
5570
5356
  ? deserializeAws_json1_1ClusterConfiguration(output.configuration, context)
5571
5357
  : undefined,
5572
- defaultCapacityProviderStrategy: output.defaultCapacityProviderStrategy !== undefined && output.defaultCapacityProviderStrategy !== null
5358
+ defaultCapacityProviderStrategy: output.defaultCapacityProviderStrategy != null
5573
5359
  ? deserializeAws_json1_1CapacityProviderStrategy(output.defaultCapacityProviderStrategy, context)
5574
5360
  : undefined,
5575
5361
  pendingTasksCount: __expectInt32(output.pendingTasksCount),
5576
5362
  registeredContainerInstancesCount: __expectInt32(output.registeredContainerInstancesCount),
5577
5363
  runningTasksCount: __expectInt32(output.runningTasksCount),
5578
- settings: output.settings !== undefined && output.settings !== null
5579
- ? deserializeAws_json1_1ClusterSettings(output.settings, context)
5580
- : undefined,
5581
- statistics: output.statistics !== undefined && output.statistics !== null
5582
- ? deserializeAws_json1_1Statistics(output.statistics, context)
5583
- : undefined,
5364
+ settings: output.settings != null ? deserializeAws_json1_1ClusterSettings(output.settings, context) : undefined,
5365
+ statistics: output.statistics != null ? deserializeAws_json1_1Statistics(output.statistics, context) : undefined,
5584
5366
  status: __expectString(output.status),
5585
- tags: output.tags !== undefined && output.tags !== null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
5367
+ tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
5586
5368
  };
5587
5369
  };
5588
5370
  var deserializeAws_json1_1ClusterConfiguration = function (output, context) {
5589
5371
  return {
5590
- executeCommandConfiguration: output.executeCommandConfiguration !== undefined && output.executeCommandConfiguration !== null
5372
+ executeCommandConfiguration: output.executeCommandConfiguration != null
5591
5373
  ? deserializeAws_json1_1ExecuteCommandConfiguration(output.executeCommandConfiguration, context)
5592
5374
  : undefined,
5593
5375
  };
@@ -5656,23 +5438,19 @@ var deserializeAws_json1_1Container = function (output, context) {
5656
5438
  containerArn: __expectString(output.containerArn),
5657
5439
  cpu: __expectString(output.cpu),
5658
5440
  exitCode: __expectInt32(output.exitCode),
5659
- gpuIds: output.gpuIds !== undefined && output.gpuIds !== null
5660
- ? deserializeAws_json1_1GpuIds(output.gpuIds, context)
5661
- : undefined,
5441
+ gpuIds: output.gpuIds != null ? deserializeAws_json1_1GpuIds(output.gpuIds, context) : undefined,
5662
5442
  healthStatus: __expectString(output.healthStatus),
5663
5443
  image: __expectString(output.image),
5664
5444
  imageDigest: __expectString(output.imageDigest),
5665
5445
  lastStatus: __expectString(output.lastStatus),
5666
- managedAgents: output.managedAgents !== undefined && output.managedAgents !== null
5667
- ? deserializeAws_json1_1ManagedAgents(output.managedAgents, context)
5668
- : undefined,
5446
+ managedAgents: output.managedAgents != null ? deserializeAws_json1_1ManagedAgents(output.managedAgents, context) : undefined,
5669
5447
  memory: __expectString(output.memory),
5670
5448
  memoryReservation: __expectString(output.memoryReservation),
5671
5449
  name: __expectString(output.name),
5672
- networkBindings: output.networkBindings !== undefined && output.networkBindings !== null
5450
+ networkBindings: output.networkBindings != null
5673
5451
  ? deserializeAws_json1_1NetworkBindings(output.networkBindings, context)
5674
5452
  : undefined,
5675
- networkInterfaces: output.networkInterfaces !== undefined && output.networkInterfaces !== null
5453
+ networkInterfaces: output.networkInterfaces != null
5676
5454
  ? deserializeAws_json1_1NetworkInterfaces(output.networkInterfaces, context)
5677
5455
  : undefined,
5678
5456
  reason: __expectString(output.reason),
@@ -5682,90 +5460,58 @@ var deserializeAws_json1_1Container = function (output, context) {
5682
5460
  };
5683
5461
  var deserializeAws_json1_1ContainerDefinition = function (output, context) {
5684
5462
  return {
5685
- command: output.command !== undefined && output.command !== null
5686
- ? deserializeAws_json1_1StringList(output.command, context)
5687
- : undefined,
5463
+ command: output.command != null ? deserializeAws_json1_1StringList(output.command, context) : undefined,
5688
5464
  cpu: __expectInt32(output.cpu),
5689
- dependsOn: output.dependsOn !== undefined && output.dependsOn !== null
5690
- ? deserializeAws_json1_1ContainerDependencies(output.dependsOn, context)
5691
- : undefined,
5465
+ dependsOn: output.dependsOn != null ? deserializeAws_json1_1ContainerDependencies(output.dependsOn, context) : undefined,
5692
5466
  disableNetworking: __expectBoolean(output.disableNetworking),
5693
- dnsSearchDomains: output.dnsSearchDomains !== undefined && output.dnsSearchDomains !== null
5694
- ? deserializeAws_json1_1StringList(output.dnsSearchDomains, context)
5695
- : undefined,
5696
- dnsServers: output.dnsServers !== undefined && output.dnsServers !== null
5697
- ? deserializeAws_json1_1StringList(output.dnsServers, context)
5698
- : undefined,
5699
- dockerLabels: output.dockerLabels !== undefined && output.dockerLabels !== null
5700
- ? deserializeAws_json1_1DockerLabelsMap(output.dockerLabels, context)
5701
- : undefined,
5702
- dockerSecurityOptions: output.dockerSecurityOptions !== undefined && output.dockerSecurityOptions !== null
5467
+ dnsSearchDomains: output.dnsSearchDomains != null ? deserializeAws_json1_1StringList(output.dnsSearchDomains, context) : undefined,
5468
+ dnsServers: output.dnsServers != null ? deserializeAws_json1_1StringList(output.dnsServers, context) : undefined,
5469
+ dockerLabels: output.dockerLabels != null ? deserializeAws_json1_1DockerLabelsMap(output.dockerLabels, context) : undefined,
5470
+ dockerSecurityOptions: output.dockerSecurityOptions != null
5703
5471
  ? deserializeAws_json1_1StringList(output.dockerSecurityOptions, context)
5704
5472
  : undefined,
5705
- entryPoint: output.entryPoint !== undefined && output.entryPoint !== null
5706
- ? deserializeAws_json1_1StringList(output.entryPoint, context)
5707
- : undefined,
5708
- environment: output.environment !== undefined && output.environment !== null
5709
- ? deserializeAws_json1_1EnvironmentVariables(output.environment, context)
5710
- : undefined,
5711
- environmentFiles: output.environmentFiles !== undefined && output.environmentFiles !== null
5473
+ entryPoint: output.entryPoint != null ? deserializeAws_json1_1StringList(output.entryPoint, context) : undefined,
5474
+ environment: output.environment != null ? deserializeAws_json1_1EnvironmentVariables(output.environment, context) : undefined,
5475
+ environmentFiles: output.environmentFiles != null
5712
5476
  ? deserializeAws_json1_1EnvironmentFiles(output.environmentFiles, context)
5713
5477
  : undefined,
5714
5478
  essential: __expectBoolean(output.essential),
5715
- extraHosts: output.extraHosts !== undefined && output.extraHosts !== null
5716
- ? deserializeAws_json1_1HostEntryList(output.extraHosts, context)
5717
- : undefined,
5718
- firelensConfiguration: output.firelensConfiguration !== undefined && output.firelensConfiguration !== null
5479
+ extraHosts: output.extraHosts != null ? deserializeAws_json1_1HostEntryList(output.extraHosts, context) : undefined,
5480
+ firelensConfiguration: output.firelensConfiguration != null
5719
5481
  ? deserializeAws_json1_1FirelensConfiguration(output.firelensConfiguration, context)
5720
5482
  : undefined,
5721
- healthCheck: output.healthCheck !== undefined && output.healthCheck !== null
5722
- ? deserializeAws_json1_1HealthCheck(output.healthCheck, context)
5723
- : undefined,
5483
+ healthCheck: output.healthCheck != null ? deserializeAws_json1_1HealthCheck(output.healthCheck, context) : undefined,
5724
5484
  hostname: __expectString(output.hostname),
5725
5485
  image: __expectString(output.image),
5726
5486
  interactive: __expectBoolean(output.interactive),
5727
- links: output.links !== undefined && output.links !== null
5728
- ? deserializeAws_json1_1StringList(output.links, context)
5729
- : undefined,
5730
- linuxParameters: output.linuxParameters !== undefined && output.linuxParameters !== null
5487
+ links: output.links != null ? deserializeAws_json1_1StringList(output.links, context) : undefined,
5488
+ linuxParameters: output.linuxParameters != null
5731
5489
  ? deserializeAws_json1_1LinuxParameters(output.linuxParameters, context)
5732
5490
  : undefined,
5733
- logConfiguration: output.logConfiguration !== undefined && output.logConfiguration !== null
5491
+ logConfiguration: output.logConfiguration != null
5734
5492
  ? deserializeAws_json1_1LogConfiguration(output.logConfiguration, context)
5735
5493
  : undefined,
5736
5494
  memory: __expectInt32(output.memory),
5737
5495
  memoryReservation: __expectInt32(output.memoryReservation),
5738
- mountPoints: output.mountPoints !== undefined && output.mountPoints !== null
5739
- ? deserializeAws_json1_1MountPointList(output.mountPoints, context)
5740
- : undefined,
5496
+ mountPoints: output.mountPoints != null ? deserializeAws_json1_1MountPointList(output.mountPoints, context) : undefined,
5741
5497
  name: __expectString(output.name),
5742
- portMappings: output.portMappings !== undefined && output.portMappings !== null
5743
- ? deserializeAws_json1_1PortMappingList(output.portMappings, context)
5744
- : undefined,
5498
+ portMappings: output.portMappings != null ? deserializeAws_json1_1PortMappingList(output.portMappings, context) : undefined,
5745
5499
  privileged: __expectBoolean(output.privileged),
5746
5500
  pseudoTerminal: __expectBoolean(output.pseudoTerminal),
5747
5501
  readonlyRootFilesystem: __expectBoolean(output.readonlyRootFilesystem),
5748
- repositoryCredentials: output.repositoryCredentials !== undefined && output.repositoryCredentials !== null
5502
+ repositoryCredentials: output.repositoryCredentials != null
5749
5503
  ? deserializeAws_json1_1RepositoryCredentials(output.repositoryCredentials, context)
5750
5504
  : undefined,
5751
- resourceRequirements: output.resourceRequirements !== undefined && output.resourceRequirements !== null
5505
+ resourceRequirements: output.resourceRequirements != null
5752
5506
  ? deserializeAws_json1_1ResourceRequirements(output.resourceRequirements, context)
5753
5507
  : undefined,
5754
- secrets: output.secrets !== undefined && output.secrets !== null
5755
- ? deserializeAws_json1_1SecretList(output.secrets, context)
5756
- : undefined,
5508
+ secrets: output.secrets != null ? deserializeAws_json1_1SecretList(output.secrets, context) : undefined,
5757
5509
  startTimeout: __expectInt32(output.startTimeout),
5758
5510
  stopTimeout: __expectInt32(output.stopTimeout),
5759
- systemControls: output.systemControls !== undefined && output.systemControls !== null
5760
- ? deserializeAws_json1_1SystemControls(output.systemControls, context)
5761
- : undefined,
5762
- ulimits: output.ulimits !== undefined && output.ulimits !== null
5763
- ? deserializeAws_json1_1UlimitList(output.ulimits, context)
5764
- : undefined,
5511
+ systemControls: output.systemControls != null ? deserializeAws_json1_1SystemControls(output.systemControls, context) : undefined,
5512
+ ulimits: output.ulimits != null ? deserializeAws_json1_1UlimitList(output.ulimits, context) : undefined,
5765
5513
  user: __expectString(output.user),
5766
- volumesFrom: output.volumesFrom !== undefined && output.volumesFrom !== null
5767
- ? deserializeAws_json1_1VolumeFromList(output.volumesFrom, context)
5768
- : undefined,
5514
+ volumesFrom: output.volumesFrom != null ? deserializeAws_json1_1VolumeFromList(output.volumesFrom, context) : undefined,
5769
5515
  workingDirectory: __expectString(output.workingDirectory),
5770
5516
  };
5771
5517
  };
@@ -5801,43 +5547,35 @@ var deserializeAws_json1_1ContainerInstance = function (output, context) {
5801
5547
  return {
5802
5548
  agentConnected: __expectBoolean(output.agentConnected),
5803
5549
  agentUpdateStatus: __expectString(output.agentUpdateStatus),
5804
- attachments: output.attachments !== undefined && output.attachments !== null
5805
- ? deserializeAws_json1_1Attachments(output.attachments, context)
5806
- : undefined,
5807
- attributes: output.attributes !== undefined && output.attributes !== null
5808
- ? deserializeAws_json1_1Attributes(output.attributes, context)
5809
- : undefined,
5550
+ attachments: output.attachments != null ? deserializeAws_json1_1Attachments(output.attachments, context) : undefined,
5551
+ attributes: output.attributes != null ? deserializeAws_json1_1Attributes(output.attributes, context) : undefined,
5810
5552
  capacityProviderName: __expectString(output.capacityProviderName),
5811
5553
  containerInstanceArn: __expectString(output.containerInstanceArn),
5812
5554
  ec2InstanceId: __expectString(output.ec2InstanceId),
5813
- healthStatus: output.healthStatus !== undefined && output.healthStatus !== null
5555
+ healthStatus: output.healthStatus != null
5814
5556
  ? deserializeAws_json1_1ContainerInstanceHealthStatus(output.healthStatus, context)
5815
5557
  : undefined,
5816
5558
  pendingTasksCount: __expectInt32(output.pendingTasksCount),
5817
- registeredAt: output.registeredAt !== undefined && output.registeredAt !== null
5559
+ registeredAt: output.registeredAt != null
5818
5560
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.registeredAt)))
5819
5561
  : undefined,
5820
- registeredResources: output.registeredResources !== undefined && output.registeredResources !== null
5562
+ registeredResources: output.registeredResources != null
5821
5563
  ? deserializeAws_json1_1Resources(output.registeredResources, context)
5822
5564
  : undefined,
5823
- remainingResources: output.remainingResources !== undefined && output.remainingResources !== null
5565
+ remainingResources: output.remainingResources != null
5824
5566
  ? deserializeAws_json1_1Resources(output.remainingResources, context)
5825
5567
  : undefined,
5826
5568
  runningTasksCount: __expectInt32(output.runningTasksCount),
5827
5569
  status: __expectString(output.status),
5828
5570
  statusReason: __expectString(output.statusReason),
5829
- tags: output.tags !== undefined && output.tags !== null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
5571
+ tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
5830
5572
  version: __expectLong(output.version),
5831
- versionInfo: output.versionInfo !== undefined && output.versionInfo !== null
5832
- ? deserializeAws_json1_1VersionInfo(output.versionInfo, context)
5833
- : undefined,
5573
+ versionInfo: output.versionInfo != null ? deserializeAws_json1_1VersionInfo(output.versionInfo, context) : undefined,
5834
5574
  };
5835
5575
  };
5836
5576
  var deserializeAws_json1_1ContainerInstanceHealthStatus = function (output, context) {
5837
5577
  return {
5838
- details: output.details !== undefined && output.details !== null
5839
- ? deserializeAws_json1_1InstanceHealthCheckResultList(output.details, context)
5840
- : undefined,
5578
+ details: output.details != null ? deserializeAws_json1_1InstanceHealthCheckResultList(output.details, context) : undefined,
5841
5579
  overallStatus: __expectString(output.overallStatus),
5842
5580
  };
5843
5581
  };
@@ -5854,20 +5592,16 @@ var deserializeAws_json1_1ContainerInstances = function (output, context) {
5854
5592
  };
5855
5593
  var deserializeAws_json1_1ContainerOverride = function (output, context) {
5856
5594
  return {
5857
- command: output.command !== undefined && output.command !== null
5858
- ? deserializeAws_json1_1StringList(output.command, context)
5859
- : undefined,
5595
+ command: output.command != null ? deserializeAws_json1_1StringList(output.command, context) : undefined,
5860
5596
  cpu: __expectInt32(output.cpu),
5861
- environment: output.environment !== undefined && output.environment !== null
5862
- ? deserializeAws_json1_1EnvironmentVariables(output.environment, context)
5863
- : undefined,
5864
- environmentFiles: output.environmentFiles !== undefined && output.environmentFiles !== null
5597
+ environment: output.environment != null ? deserializeAws_json1_1EnvironmentVariables(output.environment, context) : undefined,
5598
+ environmentFiles: output.environmentFiles != null
5865
5599
  ? deserializeAws_json1_1EnvironmentFiles(output.environmentFiles, context)
5866
5600
  : undefined,
5867
5601
  memory: __expectInt32(output.memory),
5868
5602
  memoryReservation: __expectInt32(output.memoryReservation),
5869
5603
  name: __expectString(output.name),
5870
- resourceRequirements: output.resourceRequirements !== undefined && output.resourceRequirements !== null
5604
+ resourceRequirements: output.resourceRequirements != null
5871
5605
  ? deserializeAws_json1_1ResourceRequirements(output.resourceRequirements, context)
5872
5606
  : undefined,
5873
5607
  };
@@ -5896,87 +5630,69 @@ var deserializeAws_json1_1Containers = function (output, context) {
5896
5630
  };
5897
5631
  var deserializeAws_json1_1CreateCapacityProviderResponse = function (output, context) {
5898
5632
  return {
5899
- capacityProvider: output.capacityProvider !== undefined && output.capacityProvider !== null
5633
+ capacityProvider: output.capacityProvider != null
5900
5634
  ? deserializeAws_json1_1CapacityProvider(output.capacityProvider, context)
5901
5635
  : undefined,
5902
5636
  };
5903
5637
  };
5904
5638
  var deserializeAws_json1_1CreateClusterResponse = function (output, context) {
5905
5639
  return {
5906
- cluster: output.cluster !== undefined && output.cluster !== null
5907
- ? deserializeAws_json1_1Cluster(output.cluster, context)
5908
- : undefined,
5640
+ cluster: output.cluster != null ? deserializeAws_json1_1Cluster(output.cluster, context) : undefined,
5909
5641
  };
5910
5642
  };
5911
5643
  var deserializeAws_json1_1CreateServiceResponse = function (output, context) {
5912
5644
  return {
5913
- service: output.service !== undefined && output.service !== null
5914
- ? deserializeAws_json1_1Service(output.service, context)
5915
- : undefined,
5645
+ service: output.service != null ? deserializeAws_json1_1Service(output.service, context) : undefined,
5916
5646
  };
5917
5647
  };
5918
5648
  var deserializeAws_json1_1CreateTaskSetResponse = function (output, context) {
5919
5649
  return {
5920
- taskSet: output.taskSet !== undefined && output.taskSet !== null
5921
- ? deserializeAws_json1_1TaskSet(output.taskSet, context)
5922
- : undefined,
5650
+ taskSet: output.taskSet != null ? deserializeAws_json1_1TaskSet(output.taskSet, context) : undefined,
5923
5651
  };
5924
5652
  };
5925
5653
  var deserializeAws_json1_1DeleteAccountSettingResponse = function (output, context) {
5926
5654
  return {
5927
- setting: output.setting !== undefined && output.setting !== null
5928
- ? deserializeAws_json1_1Setting(output.setting, context)
5929
- : undefined,
5655
+ setting: output.setting != null ? deserializeAws_json1_1Setting(output.setting, context) : undefined,
5930
5656
  };
5931
5657
  };
5932
5658
  var deserializeAws_json1_1DeleteAttributesResponse = function (output, context) {
5933
5659
  return {
5934
- attributes: output.attributes !== undefined && output.attributes !== null
5935
- ? deserializeAws_json1_1Attributes(output.attributes, context)
5936
- : undefined,
5660
+ attributes: output.attributes != null ? deserializeAws_json1_1Attributes(output.attributes, context) : undefined,
5937
5661
  };
5938
5662
  };
5939
5663
  var deserializeAws_json1_1DeleteCapacityProviderResponse = function (output, context) {
5940
5664
  return {
5941
- capacityProvider: output.capacityProvider !== undefined && output.capacityProvider !== null
5665
+ capacityProvider: output.capacityProvider != null
5942
5666
  ? deserializeAws_json1_1CapacityProvider(output.capacityProvider, context)
5943
5667
  : undefined,
5944
5668
  };
5945
5669
  };
5946
5670
  var deserializeAws_json1_1DeleteClusterResponse = function (output, context) {
5947
5671
  return {
5948
- cluster: output.cluster !== undefined && output.cluster !== null
5949
- ? deserializeAws_json1_1Cluster(output.cluster, context)
5950
- : undefined,
5672
+ cluster: output.cluster != null ? deserializeAws_json1_1Cluster(output.cluster, context) : undefined,
5951
5673
  };
5952
5674
  };
5953
5675
  var deserializeAws_json1_1DeleteServiceResponse = function (output, context) {
5954
5676
  return {
5955
- service: output.service !== undefined && output.service !== null
5956
- ? deserializeAws_json1_1Service(output.service, context)
5957
- : undefined,
5677
+ service: output.service != null ? deserializeAws_json1_1Service(output.service, context) : undefined,
5958
5678
  };
5959
5679
  };
5960
5680
  var deserializeAws_json1_1DeleteTaskSetResponse = function (output, context) {
5961
5681
  return {
5962
- taskSet: output.taskSet !== undefined && output.taskSet !== null
5963
- ? deserializeAws_json1_1TaskSet(output.taskSet, context)
5964
- : undefined,
5682
+ taskSet: output.taskSet != null ? deserializeAws_json1_1TaskSet(output.taskSet, context) : undefined,
5965
5683
  };
5966
5684
  };
5967
5685
  var deserializeAws_json1_1Deployment = function (output, context) {
5968
5686
  return {
5969
- capacityProviderStrategy: output.capacityProviderStrategy !== undefined && output.capacityProviderStrategy !== null
5687
+ capacityProviderStrategy: output.capacityProviderStrategy != null
5970
5688
  ? deserializeAws_json1_1CapacityProviderStrategy(output.capacityProviderStrategy, context)
5971
5689
  : undefined,
5972
- createdAt: output.createdAt !== undefined && output.createdAt !== null
5973
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
5974
- : undefined,
5690
+ createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
5975
5691
  desiredCount: __expectInt32(output.desiredCount),
5976
5692
  failedTasks: __expectInt32(output.failedTasks),
5977
5693
  id: __expectString(output.id),
5978
5694
  launchType: __expectString(output.launchType),
5979
- networkConfiguration: output.networkConfiguration !== undefined && output.networkConfiguration !== null
5695
+ networkConfiguration: output.networkConfiguration != null
5980
5696
  ? deserializeAws_json1_1NetworkConfiguration(output.networkConfiguration, context)
5981
5697
  : undefined,
5982
5698
  pendingCount: __expectInt32(output.pendingCount),
@@ -5987,9 +5703,7 @@ var deserializeAws_json1_1Deployment = function (output, context) {
5987
5703
  runningCount: __expectInt32(output.runningCount),
5988
5704
  status: __expectString(output.status),
5989
5705
  taskDefinition: __expectString(output.taskDefinition),
5990
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
5991
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt)))
5992
- : undefined,
5706
+ updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
5993
5707
  };
5994
5708
  };
5995
5709
  var deserializeAws_json1_1DeploymentCircuitBreaker = function (output, context) {
@@ -6000,7 +5714,7 @@ var deserializeAws_json1_1DeploymentCircuitBreaker = function (output, context)
6000
5714
  };
6001
5715
  var deserializeAws_json1_1DeploymentConfiguration = function (output, context) {
6002
5716
  return {
6003
- deploymentCircuitBreaker: output.deploymentCircuitBreaker !== undefined && output.deploymentCircuitBreaker !== null
5717
+ deploymentCircuitBreaker: output.deploymentCircuitBreaker != null
6004
5718
  ? deserializeAws_json1_1DeploymentCircuitBreaker(output.deploymentCircuitBreaker, context)
6005
5719
  : undefined,
6006
5720
  maximumPercent: __expectInt32(output.maximumPercent),
@@ -6025,92 +5739,68 @@ var deserializeAws_json1_1Deployments = function (output, context) {
6025
5739
  };
6026
5740
  var deserializeAws_json1_1DeregisterContainerInstanceResponse = function (output, context) {
6027
5741
  return {
6028
- containerInstance: output.containerInstance !== undefined && output.containerInstance !== null
5742
+ containerInstance: output.containerInstance != null
6029
5743
  ? deserializeAws_json1_1ContainerInstance(output.containerInstance, context)
6030
5744
  : undefined,
6031
5745
  };
6032
5746
  };
6033
5747
  var deserializeAws_json1_1DeregisterTaskDefinitionResponse = function (output, context) {
6034
5748
  return {
6035
- taskDefinition: output.taskDefinition !== undefined && output.taskDefinition !== null
6036
- ? deserializeAws_json1_1TaskDefinition(output.taskDefinition, context)
6037
- : undefined,
5749
+ taskDefinition: output.taskDefinition != null ? deserializeAws_json1_1TaskDefinition(output.taskDefinition, context) : undefined,
6038
5750
  };
6039
5751
  };
6040
5752
  var deserializeAws_json1_1DescribeCapacityProvidersResponse = function (output, context) {
6041
5753
  return {
6042
- capacityProviders: output.capacityProviders !== undefined && output.capacityProviders !== null
5754
+ capacityProviders: output.capacityProviders != null
6043
5755
  ? deserializeAws_json1_1CapacityProviders(output.capacityProviders, context)
6044
5756
  : undefined,
6045
- failures: output.failures !== undefined && output.failures !== null
6046
- ? deserializeAws_json1_1Failures(output.failures, context)
6047
- : undefined,
5757
+ failures: output.failures != null ? deserializeAws_json1_1Failures(output.failures, context) : undefined,
6048
5758
  nextToken: __expectString(output.nextToken),
6049
5759
  };
6050
5760
  };
6051
5761
  var deserializeAws_json1_1DescribeClustersResponse = function (output, context) {
6052
5762
  return {
6053
- clusters: output.clusters !== undefined && output.clusters !== null
6054
- ? deserializeAws_json1_1Clusters(output.clusters, context)
6055
- : undefined,
6056
- failures: output.failures !== undefined && output.failures !== null
6057
- ? deserializeAws_json1_1Failures(output.failures, context)
6058
- : undefined,
5763
+ clusters: output.clusters != null ? deserializeAws_json1_1Clusters(output.clusters, context) : undefined,
5764
+ failures: output.failures != null ? deserializeAws_json1_1Failures(output.failures, context) : undefined,
6059
5765
  };
6060
5766
  };
6061
5767
  var deserializeAws_json1_1DescribeContainerInstancesResponse = function (output, context) {
6062
5768
  return {
6063
- containerInstances: output.containerInstances !== undefined && output.containerInstances !== null
5769
+ containerInstances: output.containerInstances != null
6064
5770
  ? deserializeAws_json1_1ContainerInstances(output.containerInstances, context)
6065
5771
  : undefined,
6066
- failures: output.failures !== undefined && output.failures !== null
6067
- ? deserializeAws_json1_1Failures(output.failures, context)
6068
- : undefined,
5772
+ failures: output.failures != null ? deserializeAws_json1_1Failures(output.failures, context) : undefined,
6069
5773
  };
6070
5774
  };
6071
5775
  var deserializeAws_json1_1DescribeServicesResponse = function (output, context) {
6072
5776
  return {
6073
- failures: output.failures !== undefined && output.failures !== null
6074
- ? deserializeAws_json1_1Failures(output.failures, context)
6075
- : undefined,
6076
- services: output.services !== undefined && output.services !== null
6077
- ? deserializeAws_json1_1Services(output.services, context)
6078
- : undefined,
5777
+ failures: output.failures != null ? deserializeAws_json1_1Failures(output.failures, context) : undefined,
5778
+ services: output.services != null ? deserializeAws_json1_1Services(output.services, context) : undefined,
6079
5779
  };
6080
5780
  };
6081
5781
  var deserializeAws_json1_1DescribeTaskDefinitionResponse = function (output, context) {
6082
5782
  return {
6083
- tags: output.tags !== undefined && output.tags !== null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
6084
- taskDefinition: output.taskDefinition !== undefined && output.taskDefinition !== null
6085
- ? deserializeAws_json1_1TaskDefinition(output.taskDefinition, context)
6086
- : undefined,
5783
+ tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
5784
+ taskDefinition: output.taskDefinition != null ? deserializeAws_json1_1TaskDefinition(output.taskDefinition, context) : undefined,
6087
5785
  };
6088
5786
  };
6089
5787
  var deserializeAws_json1_1DescribeTaskSetsResponse = function (output, context) {
6090
5788
  return {
6091
- failures: output.failures !== undefined && output.failures !== null
6092
- ? deserializeAws_json1_1Failures(output.failures, context)
6093
- : undefined,
6094
- taskSets: output.taskSets !== undefined && output.taskSets !== null
6095
- ? deserializeAws_json1_1TaskSets(output.taskSets, context)
6096
- : undefined,
5789
+ failures: output.failures != null ? deserializeAws_json1_1Failures(output.failures, context) : undefined,
5790
+ taskSets: output.taskSets != null ? deserializeAws_json1_1TaskSets(output.taskSets, context) : undefined,
6097
5791
  };
6098
5792
  };
6099
5793
  var deserializeAws_json1_1DescribeTasksResponse = function (output, context) {
6100
5794
  return {
6101
- failures: output.failures !== undefined && output.failures !== null
6102
- ? deserializeAws_json1_1Failures(output.failures, context)
6103
- : undefined,
6104
- tasks: output.tasks !== undefined && output.tasks !== null
6105
- ? deserializeAws_json1_1Tasks(output.tasks, context)
6106
- : undefined,
5795
+ failures: output.failures != null ? deserializeAws_json1_1Failures(output.failures, context) : undefined,
5796
+ tasks: output.tasks != null ? deserializeAws_json1_1Tasks(output.tasks, context) : undefined,
6107
5797
  };
6108
5798
  };
6109
5799
  var deserializeAws_json1_1Device = function (output, context) {
6110
5800
  return {
6111
5801
  containerPath: __expectString(output.containerPath),
6112
5802
  hostPath: __expectString(output.hostPath),
6113
- permissions: output.permissions !== undefined && output.permissions !== null
5803
+ permissions: output.permissions != null
6114
5804
  ? deserializeAws_json1_1DeviceCgroupPermissions(output.permissions, context)
6115
5805
  : undefined,
6116
5806
  };
@@ -6157,12 +5847,8 @@ var deserializeAws_json1_1DockerVolumeConfiguration = function (output, context)
6157
5847
  return {
6158
5848
  autoprovision: __expectBoolean(output.autoprovision),
6159
5849
  driver: __expectString(output.driver),
6160
- driverOpts: output.driverOpts !== undefined && output.driverOpts !== null
6161
- ? deserializeAws_json1_1StringMap(output.driverOpts, context)
6162
- : undefined,
6163
- labels: output.labels !== undefined && output.labels !== null
6164
- ? deserializeAws_json1_1StringMap(output.labels, context)
6165
- : undefined,
5850
+ driverOpts: output.driverOpts != null ? deserializeAws_json1_1StringMap(output.driverOpts, context) : undefined,
5851
+ labels: output.labels != null ? deserializeAws_json1_1StringMap(output.labels, context) : undefined,
6166
5852
  scope: __expectString(output.scope),
6167
5853
  };
6168
5854
  };
@@ -6174,7 +5860,7 @@ var deserializeAws_json1_1EFSAuthorizationConfig = function (output, context) {
6174
5860
  };
6175
5861
  var deserializeAws_json1_1EFSVolumeConfiguration = function (output, context) {
6176
5862
  return {
6177
- authorizationConfig: output.authorizationConfig !== undefined && output.authorizationConfig !== null
5863
+ authorizationConfig: output.authorizationConfig != null
6178
5864
  ? deserializeAws_json1_1EFSAuthorizationConfig(output.authorizationConfig, context)
6179
5865
  : undefined,
6180
5866
  fileSystemId: __expectString(output.fileSystemId),
@@ -6219,7 +5905,7 @@ var deserializeAws_json1_1EphemeralStorage = function (output, context) {
6219
5905
  var deserializeAws_json1_1ExecuteCommandConfiguration = function (output, context) {
6220
5906
  return {
6221
5907
  kmsKeyId: __expectString(output.kmsKeyId),
6222
- logConfiguration: output.logConfiguration !== undefined && output.logConfiguration !== null
5908
+ logConfiguration: output.logConfiguration != null
6223
5909
  ? deserializeAws_json1_1ExecuteCommandLogConfiguration(output.logConfiguration, context)
6224
5910
  : undefined,
6225
5911
  logging: __expectString(output.logging),
@@ -6240,9 +5926,7 @@ var deserializeAws_json1_1ExecuteCommandResponse = function (output, context) {
6240
5926
  containerArn: __expectString(output.containerArn),
6241
5927
  containerName: __expectString(output.containerName),
6242
5928
  interactive: __expectBoolean(output.interactive),
6243
- session: output.session !== undefined && output.session !== null
6244
- ? deserializeAws_json1_1Session(output.session, context)
6245
- : undefined,
5929
+ session: output.session != null ? deserializeAws_json1_1Session(output.session, context) : undefined,
6246
5930
  taskArn: __expectString(output.taskArn),
6247
5931
  };
6248
5932
  };
@@ -6266,7 +5950,7 @@ var deserializeAws_json1_1Failures = function (output, context) {
6266
5950
  };
6267
5951
  var deserializeAws_json1_1FirelensConfiguration = function (output, context) {
6268
5952
  return {
6269
- options: output.options !== undefined && output.options !== null
5953
+ options: output.options != null
6270
5954
  ? deserializeAws_json1_1FirelensConfigurationOptionsMap(output.options, context)
6271
5955
  : undefined,
6272
5956
  type: __expectString(output.type),
@@ -6290,7 +5974,7 @@ var deserializeAws_json1_1FSxWindowsFileServerAuthorizationConfig = function (ou
6290
5974
  };
6291
5975
  var deserializeAws_json1_1FSxWindowsFileServerVolumeConfiguration = function (output, context) {
6292
5976
  return {
6293
- authorizationConfig: output.authorizationConfig !== undefined && output.authorizationConfig !== null
5977
+ authorizationConfig: output.authorizationConfig != null
6294
5978
  ? deserializeAws_json1_1FSxWindowsFileServerAuthorizationConfig(output.authorizationConfig, context)
6295
5979
  : undefined,
6296
5980
  fileSystemId: __expectString(output.fileSystemId),
@@ -6310,9 +5994,7 @@ var deserializeAws_json1_1GpuIds = function (output, context) {
6310
5994
  };
6311
5995
  var deserializeAws_json1_1HealthCheck = function (output, context) {
6312
5996
  return {
6313
- command: output.command !== undefined && output.command !== null
6314
- ? deserializeAws_json1_1StringList(output.command, context)
6315
- : undefined,
5997
+ command: output.command != null ? deserializeAws_json1_1StringList(output.command, context) : undefined,
6316
5998
  interval: __expectInt32(output.interval),
6317
5999
  retries: __expectInt32(output.retries),
6318
6000
  startPeriod: __expectInt32(output.startPeriod),
@@ -6377,10 +6059,10 @@ var deserializeAws_json1_1InferenceAccelerators = function (output, context) {
6377
6059
  };
6378
6060
  var deserializeAws_json1_1InstanceHealthCheckResult = function (output, context) {
6379
6061
  return {
6380
- lastStatusChange: output.lastStatusChange !== undefined && output.lastStatusChange !== null
6062
+ lastStatusChange: output.lastStatusChange != null
6381
6063
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastStatusChange)))
6382
6064
  : undefined,
6383
- lastUpdated: output.lastUpdated !== undefined && output.lastUpdated !== null
6065
+ lastUpdated: output.lastUpdated != null
6384
6066
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdated)))
6385
6067
  : undefined,
6386
6068
  status: __expectString(output.status),
@@ -6405,12 +6087,8 @@ var deserializeAws_json1_1InvalidParameterException = function (output, context)
6405
6087
  };
6406
6088
  var deserializeAws_json1_1KernelCapabilities = function (output, context) {
6407
6089
  return {
6408
- add: output.add !== undefined && output.add !== null
6409
- ? deserializeAws_json1_1StringList(output.add, context)
6410
- : undefined,
6411
- drop: output.drop !== undefined && output.drop !== null
6412
- ? deserializeAws_json1_1StringList(output.drop, context)
6413
- : undefined,
6090
+ add: output.add != null ? deserializeAws_json1_1StringList(output.add, context) : undefined,
6091
+ drop: output.drop != null ? deserializeAws_json1_1StringList(output.drop, context) : undefined,
6414
6092
  };
6415
6093
  };
6416
6094
  var deserializeAws_json1_1KeyValuePair = function (output, context) {
@@ -6426,48 +6104,36 @@ var deserializeAws_json1_1LimitExceededException = function (output, context) {
6426
6104
  };
6427
6105
  var deserializeAws_json1_1LinuxParameters = function (output, context) {
6428
6106
  return {
6429
- capabilities: output.capabilities !== undefined && output.capabilities !== null
6430
- ? deserializeAws_json1_1KernelCapabilities(output.capabilities, context)
6431
- : undefined,
6432
- devices: output.devices !== undefined && output.devices !== null
6433
- ? deserializeAws_json1_1DevicesList(output.devices, context)
6434
- : undefined,
6107
+ capabilities: output.capabilities != null ? deserializeAws_json1_1KernelCapabilities(output.capabilities, context) : undefined,
6108
+ devices: output.devices != null ? deserializeAws_json1_1DevicesList(output.devices, context) : undefined,
6435
6109
  initProcessEnabled: __expectBoolean(output.initProcessEnabled),
6436
6110
  maxSwap: __expectInt32(output.maxSwap),
6437
6111
  sharedMemorySize: __expectInt32(output.sharedMemorySize),
6438
6112
  swappiness: __expectInt32(output.swappiness),
6439
- tmpfs: output.tmpfs !== undefined && output.tmpfs !== null
6440
- ? deserializeAws_json1_1TmpfsList(output.tmpfs, context)
6441
- : undefined,
6113
+ tmpfs: output.tmpfs != null ? deserializeAws_json1_1TmpfsList(output.tmpfs, context) : undefined,
6442
6114
  };
6443
6115
  };
6444
6116
  var deserializeAws_json1_1ListAccountSettingsResponse = function (output, context) {
6445
6117
  return {
6446
6118
  nextToken: __expectString(output.nextToken),
6447
- settings: output.settings !== undefined && output.settings !== null
6448
- ? deserializeAws_json1_1Settings(output.settings, context)
6449
- : undefined,
6119
+ settings: output.settings != null ? deserializeAws_json1_1Settings(output.settings, context) : undefined,
6450
6120
  };
6451
6121
  };
6452
6122
  var deserializeAws_json1_1ListAttributesResponse = function (output, context) {
6453
6123
  return {
6454
- attributes: output.attributes !== undefined && output.attributes !== null
6455
- ? deserializeAws_json1_1Attributes(output.attributes, context)
6456
- : undefined,
6124
+ attributes: output.attributes != null ? deserializeAws_json1_1Attributes(output.attributes, context) : undefined,
6457
6125
  nextToken: __expectString(output.nextToken),
6458
6126
  };
6459
6127
  };
6460
6128
  var deserializeAws_json1_1ListClustersResponse = function (output, context) {
6461
6129
  return {
6462
- clusterArns: output.clusterArns !== undefined && output.clusterArns !== null
6463
- ? deserializeAws_json1_1StringList(output.clusterArns, context)
6464
- : undefined,
6130
+ clusterArns: output.clusterArns != null ? deserializeAws_json1_1StringList(output.clusterArns, context) : undefined,
6465
6131
  nextToken: __expectString(output.nextToken),
6466
6132
  };
6467
6133
  };
6468
6134
  var deserializeAws_json1_1ListContainerInstancesResponse = function (output, context) {
6469
6135
  return {
6470
- containerInstanceArns: output.containerInstanceArns !== undefined && output.containerInstanceArns !== null
6136
+ containerInstanceArns: output.containerInstanceArns != null
6471
6137
  ? deserializeAws_json1_1StringList(output.containerInstanceArns, context)
6472
6138
  : undefined,
6473
6139
  nextToken: __expectString(output.nextToken),
@@ -6476,28 +6142,24 @@ var deserializeAws_json1_1ListContainerInstancesResponse = function (output, con
6476
6142
  var deserializeAws_json1_1ListServicesResponse = function (output, context) {
6477
6143
  return {
6478
6144
  nextToken: __expectString(output.nextToken),
6479
- serviceArns: output.serviceArns !== undefined && output.serviceArns !== null
6480
- ? deserializeAws_json1_1StringList(output.serviceArns, context)
6481
- : undefined,
6145
+ serviceArns: output.serviceArns != null ? deserializeAws_json1_1StringList(output.serviceArns, context) : undefined,
6482
6146
  };
6483
6147
  };
6484
6148
  var deserializeAws_json1_1ListTagsForResourceResponse = function (output, context) {
6485
6149
  return {
6486
- tags: output.tags !== undefined && output.tags !== null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
6150
+ tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
6487
6151
  };
6488
6152
  };
6489
6153
  var deserializeAws_json1_1ListTaskDefinitionFamiliesResponse = function (output, context) {
6490
6154
  return {
6491
- families: output.families !== undefined && output.families !== null
6492
- ? deserializeAws_json1_1StringList(output.families, context)
6493
- : undefined,
6155
+ families: output.families != null ? deserializeAws_json1_1StringList(output.families, context) : undefined,
6494
6156
  nextToken: __expectString(output.nextToken),
6495
6157
  };
6496
6158
  };
6497
6159
  var deserializeAws_json1_1ListTaskDefinitionsResponse = function (output, context) {
6498
6160
  return {
6499
6161
  nextToken: __expectString(output.nextToken),
6500
- taskDefinitionArns: output.taskDefinitionArns !== undefined && output.taskDefinitionArns !== null
6162
+ taskDefinitionArns: output.taskDefinitionArns != null
6501
6163
  ? deserializeAws_json1_1StringList(output.taskDefinitionArns, context)
6502
6164
  : undefined,
6503
6165
  };
@@ -6505,9 +6167,7 @@ var deserializeAws_json1_1ListTaskDefinitionsResponse = function (output, contex
6505
6167
  var deserializeAws_json1_1ListTasksResponse = function (output, context) {
6506
6168
  return {
6507
6169
  nextToken: __expectString(output.nextToken),
6508
- taskArns: output.taskArns !== undefined && output.taskArns !== null
6509
- ? deserializeAws_json1_1StringList(output.taskArns, context)
6510
- : undefined,
6170
+ taskArns: output.taskArns != null ? deserializeAws_json1_1StringList(output.taskArns, context) : undefined,
6511
6171
  };
6512
6172
  };
6513
6173
  var deserializeAws_json1_1LoadBalancer = function (output, context) {
@@ -6532,12 +6192,8 @@ var deserializeAws_json1_1LoadBalancers = function (output, context) {
6532
6192
  var deserializeAws_json1_1LogConfiguration = function (output, context) {
6533
6193
  return {
6534
6194
  logDriver: __expectString(output.logDriver),
6535
- options: output.options !== undefined && output.options !== null
6536
- ? deserializeAws_json1_1LogConfigurationOptionsMap(output.options, context)
6537
- : undefined,
6538
- secretOptions: output.secretOptions !== undefined && output.secretOptions !== null
6539
- ? deserializeAws_json1_1SecretList(output.secretOptions, context)
6540
- : undefined,
6195
+ options: output.options != null ? deserializeAws_json1_1LogConfigurationOptionsMap(output.options, context) : undefined,
6196
+ secretOptions: output.secretOptions != null ? deserializeAws_json1_1SecretList(output.secretOptions, context) : undefined,
6541
6197
  };
6542
6198
  };
6543
6199
  var deserializeAws_json1_1LogConfigurationOptionsMap = function (output, context) {
@@ -6552,7 +6208,7 @@ var deserializeAws_json1_1LogConfigurationOptionsMap = function (output, context
6552
6208
  };
6553
6209
  var deserializeAws_json1_1ManagedAgent = function (output, context) {
6554
6210
  return {
6555
- lastStartedAt: output.lastStartedAt !== undefined && output.lastStartedAt !== null
6211
+ lastStartedAt: output.lastStartedAt != null
6556
6212
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastStartedAt)))
6557
6213
  : undefined,
6558
6214
  lastStatus: __expectString(output.lastStatus),
@@ -6624,7 +6280,7 @@ var deserializeAws_json1_1NetworkBindings = function (output, context) {
6624
6280
  };
6625
6281
  var deserializeAws_json1_1NetworkConfiguration = function (output, context) {
6626
6282
  return {
6627
- awsvpcConfiguration: output.awsvpcConfiguration !== undefined && output.awsvpcConfiguration !== null
6283
+ awsvpcConfiguration: output.awsvpcConfiguration != null
6628
6284
  ? deserializeAws_json1_1AwsVpcConfiguration(output.awsvpcConfiguration, context)
6629
6285
  : undefined,
6630
6286
  };
@@ -6717,7 +6373,7 @@ var deserializeAws_json1_1PortMappingList = function (output, context) {
6717
6373
  var deserializeAws_json1_1ProxyConfiguration = function (output, context) {
6718
6374
  return {
6719
6375
  containerName: __expectString(output.containerName),
6720
- properties: output.properties !== undefined && output.properties !== null
6376
+ properties: output.properties != null
6721
6377
  ? deserializeAws_json1_1ProxyConfigurationProperties(output.properties, context)
6722
6378
  : undefined,
6723
6379
  type: __expectString(output.type),
@@ -6736,45 +6392,35 @@ var deserializeAws_json1_1ProxyConfigurationProperties = function (output, conte
6736
6392
  };
6737
6393
  var deserializeAws_json1_1PutAccountSettingDefaultResponse = function (output, context) {
6738
6394
  return {
6739
- setting: output.setting !== undefined && output.setting !== null
6740
- ? deserializeAws_json1_1Setting(output.setting, context)
6741
- : undefined,
6395
+ setting: output.setting != null ? deserializeAws_json1_1Setting(output.setting, context) : undefined,
6742
6396
  };
6743
6397
  };
6744
6398
  var deserializeAws_json1_1PutAccountSettingResponse = function (output, context) {
6745
6399
  return {
6746
- setting: output.setting !== undefined && output.setting !== null
6747
- ? deserializeAws_json1_1Setting(output.setting, context)
6748
- : undefined,
6400
+ setting: output.setting != null ? deserializeAws_json1_1Setting(output.setting, context) : undefined,
6749
6401
  };
6750
6402
  };
6751
6403
  var deserializeAws_json1_1PutAttributesResponse = function (output, context) {
6752
6404
  return {
6753
- attributes: output.attributes !== undefined && output.attributes !== null
6754
- ? deserializeAws_json1_1Attributes(output.attributes, context)
6755
- : undefined,
6405
+ attributes: output.attributes != null ? deserializeAws_json1_1Attributes(output.attributes, context) : undefined,
6756
6406
  };
6757
6407
  };
6758
6408
  var deserializeAws_json1_1PutClusterCapacityProvidersResponse = function (output, context) {
6759
6409
  return {
6760
- cluster: output.cluster !== undefined && output.cluster !== null
6761
- ? deserializeAws_json1_1Cluster(output.cluster, context)
6762
- : undefined,
6410
+ cluster: output.cluster != null ? deserializeAws_json1_1Cluster(output.cluster, context) : undefined,
6763
6411
  };
6764
6412
  };
6765
6413
  var deserializeAws_json1_1RegisterContainerInstanceResponse = function (output, context) {
6766
6414
  return {
6767
- containerInstance: output.containerInstance !== undefined && output.containerInstance !== null
6415
+ containerInstance: output.containerInstance != null
6768
6416
  ? deserializeAws_json1_1ContainerInstance(output.containerInstance, context)
6769
6417
  : undefined,
6770
6418
  };
6771
6419
  };
6772
6420
  var deserializeAws_json1_1RegisterTaskDefinitionResponse = function (output, context) {
6773
6421
  return {
6774
- tags: output.tags !== undefined && output.tags !== null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
6775
- taskDefinition: output.taskDefinition !== undefined && output.taskDefinition !== null
6776
- ? deserializeAws_json1_1TaskDefinition(output.taskDefinition, context)
6777
- : undefined,
6422
+ tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
6423
+ taskDefinition: output.taskDefinition != null ? deserializeAws_json1_1TaskDefinition(output.taskDefinition, context) : undefined,
6778
6424
  };
6779
6425
  };
6780
6426
  var deserializeAws_json1_1RepositoryCredentials = function (output, context) {
@@ -6799,9 +6445,7 @@ var deserializeAws_json1_1Resource = function (output, context) {
6799
6445
  integerValue: __expectInt32(output.integerValue),
6800
6446
  longValue: __expectLong(output.longValue),
6801
6447
  name: __expectString(output.name),
6802
- stringSetValue: output.stringSetValue !== undefined && output.stringSetValue !== null
6803
- ? deserializeAws_json1_1StringList(output.stringSetValue, context)
6804
- : undefined,
6448
+ stringSetValue: output.stringSetValue != null ? deserializeAws_json1_1StringList(output.stringSetValue, context) : undefined,
6805
6449
  type: __expectString(output.type),
6806
6450
  };
6807
6451
  };
@@ -6845,12 +6489,8 @@ var deserializeAws_json1_1Resources = function (output, context) {
6845
6489
  };
6846
6490
  var deserializeAws_json1_1RunTaskResponse = function (output, context) {
6847
6491
  return {
6848
- failures: output.failures !== undefined && output.failures !== null
6849
- ? deserializeAws_json1_1Failures(output.failures, context)
6850
- : undefined,
6851
- tasks: output.tasks !== undefined && output.tasks !== null
6852
- ? deserializeAws_json1_1Tasks(output.tasks, context)
6853
- : undefined,
6492
+ failures: output.failures != null ? deserializeAws_json1_1Failures(output.failures, context) : undefined,
6493
+ tasks: output.tasks != null ? deserializeAws_json1_1Tasks(output.tasks, context) : undefined,
6854
6494
  };
6855
6495
  };
6856
6496
  var deserializeAws_json1_1RuntimePlatform = function (output, context) {
@@ -6889,42 +6529,34 @@ var deserializeAws_json1_1ServerException = function (output, context) {
6889
6529
  };
6890
6530
  var deserializeAws_json1_1Service = function (output, context) {
6891
6531
  return {
6892
- capacityProviderStrategy: output.capacityProviderStrategy !== undefined && output.capacityProviderStrategy !== null
6532
+ capacityProviderStrategy: output.capacityProviderStrategy != null
6893
6533
  ? deserializeAws_json1_1CapacityProviderStrategy(output.capacityProviderStrategy, context)
6894
6534
  : undefined,
6895
6535
  clusterArn: __expectString(output.clusterArn),
6896
- createdAt: output.createdAt !== undefined && output.createdAt !== null
6897
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
6898
- : undefined,
6536
+ createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
6899
6537
  createdBy: __expectString(output.createdBy),
6900
- deploymentConfiguration: output.deploymentConfiguration !== undefined && output.deploymentConfiguration !== null
6538
+ deploymentConfiguration: output.deploymentConfiguration != null
6901
6539
  ? deserializeAws_json1_1DeploymentConfiguration(output.deploymentConfiguration, context)
6902
6540
  : undefined,
6903
- deploymentController: output.deploymentController !== undefined && output.deploymentController !== null
6541
+ deploymentController: output.deploymentController != null
6904
6542
  ? deserializeAws_json1_1DeploymentController(output.deploymentController, context)
6905
6543
  : undefined,
6906
- deployments: output.deployments !== undefined && output.deployments !== null
6907
- ? deserializeAws_json1_1Deployments(output.deployments, context)
6908
- : undefined,
6544
+ deployments: output.deployments != null ? deserializeAws_json1_1Deployments(output.deployments, context) : undefined,
6909
6545
  desiredCount: __expectInt32(output.desiredCount),
6910
6546
  enableECSManagedTags: __expectBoolean(output.enableECSManagedTags),
6911
6547
  enableExecuteCommand: __expectBoolean(output.enableExecuteCommand),
6912
- events: output.events !== undefined && output.events !== null
6913
- ? deserializeAws_json1_1ServiceEvents(output.events, context)
6914
- : undefined,
6548
+ events: output.events != null ? deserializeAws_json1_1ServiceEvents(output.events, context) : undefined,
6915
6549
  healthCheckGracePeriodSeconds: __expectInt32(output.healthCheckGracePeriodSeconds),
6916
6550
  launchType: __expectString(output.launchType),
6917
- loadBalancers: output.loadBalancers !== undefined && output.loadBalancers !== null
6918
- ? deserializeAws_json1_1LoadBalancers(output.loadBalancers, context)
6919
- : undefined,
6920
- networkConfiguration: output.networkConfiguration !== undefined && output.networkConfiguration !== null
6551
+ loadBalancers: output.loadBalancers != null ? deserializeAws_json1_1LoadBalancers(output.loadBalancers, context) : undefined,
6552
+ networkConfiguration: output.networkConfiguration != null
6921
6553
  ? deserializeAws_json1_1NetworkConfiguration(output.networkConfiguration, context)
6922
6554
  : undefined,
6923
6555
  pendingCount: __expectInt32(output.pendingCount),
6924
- placementConstraints: output.placementConstraints !== undefined && output.placementConstraints !== null
6556
+ placementConstraints: output.placementConstraints != null
6925
6557
  ? deserializeAws_json1_1PlacementConstraints(output.placementConstraints, context)
6926
6558
  : undefined,
6927
- placementStrategy: output.placementStrategy !== undefined && output.placementStrategy !== null
6559
+ placementStrategy: output.placementStrategy != null
6928
6560
  ? deserializeAws_json1_1PlacementStrategies(output.placementStrategy, context)
6929
6561
  : undefined,
6930
6562
  platformFamily: __expectString(output.platformFamily),
@@ -6935,22 +6567,18 @@ var deserializeAws_json1_1Service = function (output, context) {
6935
6567
  schedulingStrategy: __expectString(output.schedulingStrategy),
6936
6568
  serviceArn: __expectString(output.serviceArn),
6937
6569
  serviceName: __expectString(output.serviceName),
6938
- serviceRegistries: output.serviceRegistries !== undefined && output.serviceRegistries !== null
6570
+ serviceRegistries: output.serviceRegistries != null
6939
6571
  ? deserializeAws_json1_1ServiceRegistries(output.serviceRegistries, context)
6940
6572
  : undefined,
6941
6573
  status: __expectString(output.status),
6942
- tags: output.tags !== undefined && output.tags !== null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
6574
+ tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
6943
6575
  taskDefinition: __expectString(output.taskDefinition),
6944
- taskSets: output.taskSets !== undefined && output.taskSets !== null
6945
- ? deserializeAws_json1_1TaskSets(output.taskSets, context)
6946
- : undefined,
6576
+ taskSets: output.taskSets != null ? deserializeAws_json1_1TaskSets(output.taskSets, context) : undefined,
6947
6577
  };
6948
6578
  };
6949
6579
  var deserializeAws_json1_1ServiceEvent = function (output, context) {
6950
6580
  return {
6951
- createdAt: output.createdAt !== undefined && output.createdAt !== null
6952
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
6953
- : undefined,
6581
+ createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
6954
6582
  id: __expectString(output.id),
6955
6583
  message: __expectString(output.message),
6956
6584
  };
@@ -7033,12 +6661,8 @@ var deserializeAws_json1_1Settings = function (output, context) {
7033
6661
  };
7034
6662
  var deserializeAws_json1_1StartTaskResponse = function (output, context) {
7035
6663
  return {
7036
- failures: output.failures !== undefined && output.failures !== null
7037
- ? deserializeAws_json1_1Failures(output.failures, context)
7038
- : undefined,
7039
- tasks: output.tasks !== undefined && output.tasks !== null
7040
- ? deserializeAws_json1_1Tasks(output.tasks, context)
7041
- : undefined,
6664
+ failures: output.failures != null ? deserializeAws_json1_1Failures(output.failures, context) : undefined,
6665
+ tasks: output.tasks != null ? deserializeAws_json1_1Tasks(output.tasks, context) : undefined,
7042
6666
  };
7043
6667
  };
7044
6668
  var deserializeAws_json1_1Statistics = function (output, context) {
@@ -7054,7 +6678,7 @@ var deserializeAws_json1_1Statistics = function (output, context) {
7054
6678
  };
7055
6679
  var deserializeAws_json1_1StopTaskResponse = function (output, context) {
7056
6680
  return {
7057
- task: output.task !== undefined && output.task !== null ? deserializeAws_json1_1Task(output.task, context) : undefined,
6681
+ task: output.task != null ? deserializeAws_json1_1Task(output.task, context) : undefined,
7058
6682
  };
7059
6683
  };
7060
6684
  var deserializeAws_json1_1StringList = function (output, context) {
@@ -7142,67 +6766,51 @@ var deserializeAws_json1_1TargetNotFoundException = function (output, context) {
7142
6766
  };
7143
6767
  var deserializeAws_json1_1Task = function (output, context) {
7144
6768
  return {
7145
- attachments: output.attachments !== undefined && output.attachments !== null
7146
- ? deserializeAws_json1_1Attachments(output.attachments, context)
7147
- : undefined,
7148
- attributes: output.attributes !== undefined && output.attributes !== null
7149
- ? deserializeAws_json1_1Attributes(output.attributes, context)
7150
- : undefined,
6769
+ attachments: output.attachments != null ? deserializeAws_json1_1Attachments(output.attachments, context) : undefined,
6770
+ attributes: output.attributes != null ? deserializeAws_json1_1Attributes(output.attributes, context) : undefined,
7151
6771
  availabilityZone: __expectString(output.availabilityZone),
7152
6772
  capacityProviderName: __expectString(output.capacityProviderName),
7153
6773
  clusterArn: __expectString(output.clusterArn),
7154
6774
  connectivity: __expectString(output.connectivity),
7155
- connectivityAt: output.connectivityAt !== undefined && output.connectivityAt !== null
6775
+ connectivityAt: output.connectivityAt != null
7156
6776
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.connectivityAt)))
7157
6777
  : undefined,
7158
6778
  containerInstanceArn: __expectString(output.containerInstanceArn),
7159
- containers: output.containers !== undefined && output.containers !== null
7160
- ? deserializeAws_json1_1Containers(output.containers, context)
7161
- : undefined,
6779
+ containers: output.containers != null ? deserializeAws_json1_1Containers(output.containers, context) : undefined,
7162
6780
  cpu: __expectString(output.cpu),
7163
- createdAt: output.createdAt !== undefined && output.createdAt !== null
7164
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
7165
- : undefined,
6781
+ createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
7166
6782
  desiredStatus: __expectString(output.desiredStatus),
7167
6783
  enableExecuteCommand: __expectBoolean(output.enableExecuteCommand),
7168
- ephemeralStorage: output.ephemeralStorage !== undefined && output.ephemeralStorage !== null
6784
+ ephemeralStorage: output.ephemeralStorage != null
7169
6785
  ? deserializeAws_json1_1EphemeralStorage(output.ephemeralStorage, context)
7170
6786
  : undefined,
7171
- executionStoppedAt: output.executionStoppedAt !== undefined && output.executionStoppedAt !== null
6787
+ executionStoppedAt: output.executionStoppedAt != null
7172
6788
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.executionStoppedAt)))
7173
6789
  : undefined,
7174
6790
  group: __expectString(output.group),
7175
6791
  healthStatus: __expectString(output.healthStatus),
7176
- inferenceAccelerators: output.inferenceAccelerators !== undefined && output.inferenceAccelerators !== null
6792
+ inferenceAccelerators: output.inferenceAccelerators != null
7177
6793
  ? deserializeAws_json1_1InferenceAccelerators(output.inferenceAccelerators, context)
7178
6794
  : undefined,
7179
6795
  lastStatus: __expectString(output.lastStatus),
7180
6796
  launchType: __expectString(output.launchType),
7181
6797
  memory: __expectString(output.memory),
7182
- overrides: output.overrides !== undefined && output.overrides !== null
7183
- ? deserializeAws_json1_1TaskOverride(output.overrides, context)
7184
- : undefined,
6798
+ overrides: output.overrides != null ? deserializeAws_json1_1TaskOverride(output.overrides, context) : undefined,
7185
6799
  platformFamily: __expectString(output.platformFamily),
7186
6800
  platformVersion: __expectString(output.platformVersion),
7187
- pullStartedAt: output.pullStartedAt !== undefined && output.pullStartedAt !== null
6801
+ pullStartedAt: output.pullStartedAt != null
7188
6802
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.pullStartedAt)))
7189
6803
  : undefined,
7190
- pullStoppedAt: output.pullStoppedAt !== undefined && output.pullStoppedAt !== null
6804
+ pullStoppedAt: output.pullStoppedAt != null
7191
6805
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.pullStoppedAt)))
7192
6806
  : undefined,
7193
- startedAt: output.startedAt !== undefined && output.startedAt !== null
7194
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startedAt)))
7195
- : undefined,
6807
+ startedAt: output.startedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startedAt))) : undefined,
7196
6808
  startedBy: __expectString(output.startedBy),
7197
6809
  stopCode: __expectString(output.stopCode),
7198
- stoppedAt: output.stoppedAt !== undefined && output.stoppedAt !== null
7199
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.stoppedAt)))
7200
- : undefined,
6810
+ stoppedAt: output.stoppedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.stoppedAt))) : undefined,
7201
6811
  stoppedReason: __expectString(output.stoppedReason),
7202
- stoppingAt: output.stoppingAt !== undefined && output.stoppingAt !== null
7203
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.stoppingAt)))
7204
- : undefined,
7205
- tags: output.tags !== undefined && output.tags !== null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
6812
+ stoppingAt: output.stoppingAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.stoppingAt))) : undefined,
6813
+ tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
7206
6814
  taskArn: __expectString(output.taskArn),
7207
6815
  taskDefinitionArn: __expectString(output.taskDefinitionArn),
7208
6816
  version: __expectLong(output.version),
@@ -7210,54 +6818,52 @@ var deserializeAws_json1_1Task = function (output, context) {
7210
6818
  };
7211
6819
  var deserializeAws_json1_1TaskDefinition = function (output, context) {
7212
6820
  return {
7213
- compatibilities: output.compatibilities !== undefined && output.compatibilities !== null
6821
+ compatibilities: output.compatibilities != null
7214
6822
  ? deserializeAws_json1_1CompatibilityList(output.compatibilities, context)
7215
6823
  : undefined,
7216
- containerDefinitions: output.containerDefinitions !== undefined && output.containerDefinitions !== null
6824
+ containerDefinitions: output.containerDefinitions != null
7217
6825
  ? deserializeAws_json1_1ContainerDefinitions(output.containerDefinitions, context)
7218
6826
  : undefined,
7219
6827
  cpu: __expectString(output.cpu),
7220
- deregisteredAt: output.deregisteredAt !== undefined && output.deregisteredAt !== null
6828
+ deregisteredAt: output.deregisteredAt != null
7221
6829
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.deregisteredAt)))
7222
6830
  : undefined,
7223
- ephemeralStorage: output.ephemeralStorage !== undefined && output.ephemeralStorage !== null
6831
+ ephemeralStorage: output.ephemeralStorage != null
7224
6832
  ? deserializeAws_json1_1EphemeralStorage(output.ephemeralStorage, context)
7225
6833
  : undefined,
7226
6834
  executionRoleArn: __expectString(output.executionRoleArn),
7227
6835
  family: __expectString(output.family),
7228
- inferenceAccelerators: output.inferenceAccelerators !== undefined && output.inferenceAccelerators !== null
6836
+ inferenceAccelerators: output.inferenceAccelerators != null
7229
6837
  ? deserializeAws_json1_1InferenceAccelerators(output.inferenceAccelerators, context)
7230
6838
  : undefined,
7231
6839
  ipcMode: __expectString(output.ipcMode),
7232
6840
  memory: __expectString(output.memory),
7233
6841
  networkMode: __expectString(output.networkMode),
7234
6842
  pidMode: __expectString(output.pidMode),
7235
- placementConstraints: output.placementConstraints !== undefined && output.placementConstraints !== null
6843
+ placementConstraints: output.placementConstraints != null
7236
6844
  ? deserializeAws_json1_1TaskDefinitionPlacementConstraints(output.placementConstraints, context)
7237
6845
  : undefined,
7238
- proxyConfiguration: output.proxyConfiguration !== undefined && output.proxyConfiguration !== null
6846
+ proxyConfiguration: output.proxyConfiguration != null
7239
6847
  ? deserializeAws_json1_1ProxyConfiguration(output.proxyConfiguration, context)
7240
6848
  : undefined,
7241
- registeredAt: output.registeredAt !== undefined && output.registeredAt !== null
6849
+ registeredAt: output.registeredAt != null
7242
6850
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.registeredAt)))
7243
6851
  : undefined,
7244
6852
  registeredBy: __expectString(output.registeredBy),
7245
- requiresAttributes: output.requiresAttributes !== undefined && output.requiresAttributes !== null
6853
+ requiresAttributes: output.requiresAttributes != null
7246
6854
  ? deserializeAws_json1_1RequiresAttributes(output.requiresAttributes, context)
7247
6855
  : undefined,
7248
- requiresCompatibilities: output.requiresCompatibilities !== undefined && output.requiresCompatibilities !== null
6856
+ requiresCompatibilities: output.requiresCompatibilities != null
7249
6857
  ? deserializeAws_json1_1CompatibilityList(output.requiresCompatibilities, context)
7250
6858
  : undefined,
7251
6859
  revision: __expectInt32(output.revision),
7252
- runtimePlatform: output.runtimePlatform !== undefined && output.runtimePlatform !== null
6860
+ runtimePlatform: output.runtimePlatform != null
7253
6861
  ? deserializeAws_json1_1RuntimePlatform(output.runtimePlatform, context)
7254
6862
  : undefined,
7255
6863
  status: __expectString(output.status),
7256
6864
  taskDefinitionArn: __expectString(output.taskDefinitionArn),
7257
6865
  taskRoleArn: __expectString(output.taskRoleArn),
7258
- volumes: output.volumes !== undefined && output.volumes !== null
7259
- ? deserializeAws_json1_1VolumeList(output.volumes, context)
7260
- : undefined,
6866
+ volumes: output.volumes != null ? deserializeAws_json1_1VolumeList(output.volumes, context) : undefined,
7261
6867
  };
7262
6868
  };
7263
6869
  var deserializeAws_json1_1TaskDefinitionPlacementConstraint = function (output, context) {
@@ -7279,15 +6885,15 @@ var deserializeAws_json1_1TaskDefinitionPlacementConstraints = function (output,
7279
6885
  };
7280
6886
  var deserializeAws_json1_1TaskOverride = function (output, context) {
7281
6887
  return {
7282
- containerOverrides: output.containerOverrides !== undefined && output.containerOverrides !== null
6888
+ containerOverrides: output.containerOverrides != null
7283
6889
  ? deserializeAws_json1_1ContainerOverrides(output.containerOverrides, context)
7284
6890
  : undefined,
7285
6891
  cpu: __expectString(output.cpu),
7286
- ephemeralStorage: output.ephemeralStorage !== undefined && output.ephemeralStorage !== null
6892
+ ephemeralStorage: output.ephemeralStorage != null
7287
6893
  ? deserializeAws_json1_1EphemeralStorage(output.ephemeralStorage, context)
7288
6894
  : undefined,
7289
6895
  executionRoleArn: __expectString(output.executionRoleArn),
7290
- inferenceAcceleratorOverrides: output.inferenceAcceleratorOverrides !== undefined && output.inferenceAcceleratorOverrides !== null
6896
+ inferenceAcceleratorOverrides: output.inferenceAcceleratorOverrides != null
7291
6897
  ? deserializeAws_json1_1InferenceAcceleratorOverrides(output.inferenceAcceleratorOverrides, context)
7292
6898
  : undefined,
7293
6899
  memory: __expectString(output.memory),
@@ -7307,46 +6913,38 @@ var deserializeAws_json1_1Tasks = function (output, context) {
7307
6913
  };
7308
6914
  var deserializeAws_json1_1TaskSet = function (output, context) {
7309
6915
  return {
7310
- capacityProviderStrategy: output.capacityProviderStrategy !== undefined && output.capacityProviderStrategy !== null
6916
+ capacityProviderStrategy: output.capacityProviderStrategy != null
7311
6917
  ? deserializeAws_json1_1CapacityProviderStrategy(output.capacityProviderStrategy, context)
7312
6918
  : undefined,
7313
6919
  clusterArn: __expectString(output.clusterArn),
7314
6920
  computedDesiredCount: __expectInt32(output.computedDesiredCount),
7315
- createdAt: output.createdAt !== undefined && output.createdAt !== null
7316
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
7317
- : undefined,
6921
+ createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
7318
6922
  externalId: __expectString(output.externalId),
7319
6923
  id: __expectString(output.id),
7320
6924
  launchType: __expectString(output.launchType),
7321
- loadBalancers: output.loadBalancers !== undefined && output.loadBalancers !== null
7322
- ? deserializeAws_json1_1LoadBalancers(output.loadBalancers, context)
7323
- : undefined,
7324
- networkConfiguration: output.networkConfiguration !== undefined && output.networkConfiguration !== null
6925
+ loadBalancers: output.loadBalancers != null ? deserializeAws_json1_1LoadBalancers(output.loadBalancers, context) : undefined,
6926
+ networkConfiguration: output.networkConfiguration != null
7325
6927
  ? deserializeAws_json1_1NetworkConfiguration(output.networkConfiguration, context)
7326
6928
  : undefined,
7327
6929
  pendingCount: __expectInt32(output.pendingCount),
7328
6930
  platformFamily: __expectString(output.platformFamily),
7329
6931
  platformVersion: __expectString(output.platformVersion),
7330
6932
  runningCount: __expectInt32(output.runningCount),
7331
- scale: output.scale !== undefined && output.scale !== null
7332
- ? deserializeAws_json1_1Scale(output.scale, context)
7333
- : undefined,
6933
+ scale: output.scale != null ? deserializeAws_json1_1Scale(output.scale, context) : undefined,
7334
6934
  serviceArn: __expectString(output.serviceArn),
7335
- serviceRegistries: output.serviceRegistries !== undefined && output.serviceRegistries !== null
6935
+ serviceRegistries: output.serviceRegistries != null
7336
6936
  ? deserializeAws_json1_1ServiceRegistries(output.serviceRegistries, context)
7337
6937
  : undefined,
7338
6938
  stabilityStatus: __expectString(output.stabilityStatus),
7339
- stabilityStatusAt: output.stabilityStatusAt !== undefined && output.stabilityStatusAt !== null
6939
+ stabilityStatusAt: output.stabilityStatusAt != null
7340
6940
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.stabilityStatusAt)))
7341
6941
  : undefined,
7342
6942
  startedBy: __expectString(output.startedBy),
7343
6943
  status: __expectString(output.status),
7344
- tags: output.tags !== undefined && output.tags !== null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
6944
+ tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
7345
6945
  taskDefinition: __expectString(output.taskDefinition),
7346
6946
  taskSetArn: __expectString(output.taskSetArn),
7347
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
7348
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt)))
7349
- : undefined,
6947
+ updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
7350
6948
  };
7351
6949
  };
7352
6950
  var deserializeAws_json1_1TaskSetNotFoundException = function (output, context) {
@@ -7368,9 +6966,7 @@ var deserializeAws_json1_1TaskSets = function (output, context) {
7368
6966
  var deserializeAws_json1_1Tmpfs = function (output, context) {
7369
6967
  return {
7370
6968
  containerPath: __expectString(output.containerPath),
7371
- mountOptions: output.mountOptions !== undefined && output.mountOptions !== null
7372
- ? deserializeAws_json1_1StringList(output.mountOptions, context)
7373
- : undefined,
6969
+ mountOptions: output.mountOptions != null ? deserializeAws_json1_1StringList(output.mountOptions, context) : undefined,
7374
6970
  size: __expectInt32(output.size),
7375
6971
  };
7376
6972
  };
@@ -7413,40 +7009,34 @@ var deserializeAws_json1_1UntagResourceResponse = function (output, context) {
7413
7009
  };
7414
7010
  var deserializeAws_json1_1UpdateCapacityProviderResponse = function (output, context) {
7415
7011
  return {
7416
- capacityProvider: output.capacityProvider !== undefined && output.capacityProvider !== null
7012
+ capacityProvider: output.capacityProvider != null
7417
7013
  ? deserializeAws_json1_1CapacityProvider(output.capacityProvider, context)
7418
7014
  : undefined,
7419
7015
  };
7420
7016
  };
7421
7017
  var deserializeAws_json1_1UpdateClusterResponse = function (output, context) {
7422
7018
  return {
7423
- cluster: output.cluster !== undefined && output.cluster !== null
7424
- ? deserializeAws_json1_1Cluster(output.cluster, context)
7425
- : undefined,
7019
+ cluster: output.cluster != null ? deserializeAws_json1_1Cluster(output.cluster, context) : undefined,
7426
7020
  };
7427
7021
  };
7428
7022
  var deserializeAws_json1_1UpdateClusterSettingsResponse = function (output, context) {
7429
7023
  return {
7430
- cluster: output.cluster !== undefined && output.cluster !== null
7431
- ? deserializeAws_json1_1Cluster(output.cluster, context)
7432
- : undefined,
7024
+ cluster: output.cluster != null ? deserializeAws_json1_1Cluster(output.cluster, context) : undefined,
7433
7025
  };
7434
7026
  };
7435
7027
  var deserializeAws_json1_1UpdateContainerAgentResponse = function (output, context) {
7436
7028
  return {
7437
- containerInstance: output.containerInstance !== undefined && output.containerInstance !== null
7029
+ containerInstance: output.containerInstance != null
7438
7030
  ? deserializeAws_json1_1ContainerInstance(output.containerInstance, context)
7439
7031
  : undefined,
7440
7032
  };
7441
7033
  };
7442
7034
  var deserializeAws_json1_1UpdateContainerInstancesStateResponse = function (output, context) {
7443
7035
  return {
7444
- containerInstances: output.containerInstances !== undefined && output.containerInstances !== null
7036
+ containerInstances: output.containerInstances != null
7445
7037
  ? deserializeAws_json1_1ContainerInstances(output.containerInstances, context)
7446
7038
  : undefined,
7447
- failures: output.failures !== undefined && output.failures !== null
7448
- ? deserializeAws_json1_1Failures(output.failures, context)
7449
- : undefined,
7039
+ failures: output.failures != null ? deserializeAws_json1_1Failures(output.failures, context) : undefined,
7450
7040
  };
7451
7041
  };
7452
7042
  var deserializeAws_json1_1UpdateInProgressException = function (output, context) {
@@ -7456,23 +7046,17 @@ var deserializeAws_json1_1UpdateInProgressException = function (output, context)
7456
7046
  };
7457
7047
  var deserializeAws_json1_1UpdateServicePrimaryTaskSetResponse = function (output, context) {
7458
7048
  return {
7459
- taskSet: output.taskSet !== undefined && output.taskSet !== null
7460
- ? deserializeAws_json1_1TaskSet(output.taskSet, context)
7461
- : undefined,
7049
+ taskSet: output.taskSet != null ? deserializeAws_json1_1TaskSet(output.taskSet, context) : undefined,
7462
7050
  };
7463
7051
  };
7464
7052
  var deserializeAws_json1_1UpdateServiceResponse = function (output, context) {
7465
7053
  return {
7466
- service: output.service !== undefined && output.service !== null
7467
- ? deserializeAws_json1_1Service(output.service, context)
7468
- : undefined,
7054
+ service: output.service != null ? deserializeAws_json1_1Service(output.service, context) : undefined,
7469
7055
  };
7470
7056
  };
7471
7057
  var deserializeAws_json1_1UpdateTaskSetResponse = function (output, context) {
7472
7058
  return {
7473
- taskSet: output.taskSet !== undefined && output.taskSet !== null
7474
- ? deserializeAws_json1_1TaskSet(output.taskSet, context)
7475
- : undefined,
7059
+ taskSet: output.taskSet != null ? deserializeAws_json1_1TaskSet(output.taskSet, context) : undefined,
7476
7060
  };
7477
7061
  };
7478
7062
  var deserializeAws_json1_1VersionInfo = function (output, context) {
@@ -7484,19 +7068,16 @@ var deserializeAws_json1_1VersionInfo = function (output, context) {
7484
7068
  };
7485
7069
  var deserializeAws_json1_1Volume = function (output, context) {
7486
7070
  return {
7487
- dockerVolumeConfiguration: output.dockerVolumeConfiguration !== undefined && output.dockerVolumeConfiguration !== null
7071
+ dockerVolumeConfiguration: output.dockerVolumeConfiguration != null
7488
7072
  ? deserializeAws_json1_1DockerVolumeConfiguration(output.dockerVolumeConfiguration, context)
7489
7073
  : undefined,
7490
- efsVolumeConfiguration: output.efsVolumeConfiguration !== undefined && output.efsVolumeConfiguration !== null
7074
+ efsVolumeConfiguration: output.efsVolumeConfiguration != null
7491
7075
  ? deserializeAws_json1_1EFSVolumeConfiguration(output.efsVolumeConfiguration, context)
7492
7076
  : undefined,
7493
- fsxWindowsFileServerVolumeConfiguration: output.fsxWindowsFileServerVolumeConfiguration !== undefined &&
7494
- output.fsxWindowsFileServerVolumeConfiguration !== null
7077
+ fsxWindowsFileServerVolumeConfiguration: output.fsxWindowsFileServerVolumeConfiguration != null
7495
7078
  ? deserializeAws_json1_1FSxWindowsFileServerVolumeConfiguration(output.fsxWindowsFileServerVolumeConfiguration, context)
7496
7079
  : undefined,
7497
- host: output.host !== undefined && output.host !== null
7498
- ? deserializeAws_json1_1HostVolumeProperties(output.host, context)
7499
- : undefined,
7080
+ host: output.host != null ? deserializeAws_json1_1HostVolumeProperties(output.host, context) : undefined,
7500
7081
  name: __expectString(output.name),
7501
7082
  };
7502
7083
  };