@aws-sdk/client-dynamodb 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.
@@ -3145,8 +3145,8 @@ const deserializeAws_json1_0TransactionInProgressExceptionResponse = async (pars
3145
3145
  };
3146
3146
  const serializeAws_json1_0AttributeDefinition = (input, context) => {
3147
3147
  return {
3148
- ...(input.AttributeName !== undefined && input.AttributeName !== null && { AttributeName: input.AttributeName }),
3149
- ...(input.AttributeType !== undefined && input.AttributeType !== null && { AttributeType: input.AttributeType }),
3148
+ ...(input.AttributeName != null && { AttributeName: input.AttributeName }),
3149
+ ...(input.AttributeType != null && { AttributeType: input.AttributeType }),
3150
3150
  };
3151
3151
  };
3152
3152
  const serializeAws_json1_0AttributeDefinitions = (input, context) => {
@@ -3207,62 +3207,49 @@ const serializeAws_json1_0AttributeValueList = (input, context) => {
3207
3207
  };
3208
3208
  const serializeAws_json1_0AttributeValueUpdate = (input, context) => {
3209
3209
  return {
3210
- ...(input.Action !== undefined && input.Action !== null && { Action: input.Action }),
3211
- ...(input.Value !== undefined &&
3212
- input.Value !== null && { Value: serializeAws_json1_0AttributeValue(input.Value, context) }),
3210
+ ...(input.Action != null && { Action: input.Action }),
3211
+ ...(input.Value != null && { Value: serializeAws_json1_0AttributeValue(input.Value, context) }),
3213
3212
  };
3214
3213
  };
3215
3214
  const serializeAws_json1_0AutoScalingPolicyUpdate = (input, context) => {
3216
3215
  return {
3217
- ...(input.PolicyName !== undefined && input.PolicyName !== null && { PolicyName: input.PolicyName }),
3218
- ...(input.TargetTrackingScalingPolicyConfiguration !== undefined &&
3219
- input.TargetTrackingScalingPolicyConfiguration !== null && {
3216
+ ...(input.PolicyName != null && { PolicyName: input.PolicyName }),
3217
+ ...(input.TargetTrackingScalingPolicyConfiguration != null && {
3220
3218
  TargetTrackingScalingPolicyConfiguration: serializeAws_json1_0AutoScalingTargetTrackingScalingPolicyConfigurationUpdate(input.TargetTrackingScalingPolicyConfiguration, context),
3221
3219
  }),
3222
3220
  };
3223
3221
  };
3224
3222
  const serializeAws_json1_0AutoScalingSettingsUpdate = (input, context) => {
3225
3223
  return {
3226
- ...(input.AutoScalingDisabled !== undefined &&
3227
- input.AutoScalingDisabled !== null && { AutoScalingDisabled: input.AutoScalingDisabled }),
3228
- ...(input.AutoScalingRoleArn !== undefined &&
3229
- input.AutoScalingRoleArn !== null && { AutoScalingRoleArn: input.AutoScalingRoleArn }),
3230
- ...(input.MaximumUnits !== undefined && input.MaximumUnits !== null && { MaximumUnits: input.MaximumUnits }),
3231
- ...(input.MinimumUnits !== undefined && input.MinimumUnits !== null && { MinimumUnits: input.MinimumUnits }),
3232
- ...(input.ScalingPolicyUpdate !== undefined &&
3233
- input.ScalingPolicyUpdate !== null && {
3224
+ ...(input.AutoScalingDisabled != null && { AutoScalingDisabled: input.AutoScalingDisabled }),
3225
+ ...(input.AutoScalingRoleArn != null && { AutoScalingRoleArn: input.AutoScalingRoleArn }),
3226
+ ...(input.MaximumUnits != null && { MaximumUnits: input.MaximumUnits }),
3227
+ ...(input.MinimumUnits != null && { MinimumUnits: input.MinimumUnits }),
3228
+ ...(input.ScalingPolicyUpdate != null && {
3234
3229
  ScalingPolicyUpdate: serializeAws_json1_0AutoScalingPolicyUpdate(input.ScalingPolicyUpdate, context),
3235
3230
  }),
3236
3231
  };
3237
3232
  };
3238
3233
  const serializeAws_json1_0AutoScalingTargetTrackingScalingPolicyConfigurationUpdate = (input, context) => {
3239
3234
  return {
3240
- ...(input.DisableScaleIn !== undefined &&
3241
- input.DisableScaleIn !== null && { DisableScaleIn: input.DisableScaleIn }),
3242
- ...(input.ScaleInCooldown !== undefined &&
3243
- input.ScaleInCooldown !== null && { ScaleInCooldown: input.ScaleInCooldown }),
3244
- ...(input.ScaleOutCooldown !== undefined &&
3245
- input.ScaleOutCooldown !== null && { ScaleOutCooldown: input.ScaleOutCooldown }),
3246
- ...(input.TargetValue !== undefined &&
3247
- input.TargetValue !== null && { TargetValue: (0, smithy_client_1.serializeFloat)(input.TargetValue) }),
3235
+ ...(input.DisableScaleIn != null && { DisableScaleIn: input.DisableScaleIn }),
3236
+ ...(input.ScaleInCooldown != null && { ScaleInCooldown: input.ScaleInCooldown }),
3237
+ ...(input.ScaleOutCooldown != null && { ScaleOutCooldown: input.ScaleOutCooldown }),
3238
+ ...(input.TargetValue != null && { TargetValue: (0, smithy_client_1.serializeFloat)(input.TargetValue) }),
3248
3239
  };
3249
3240
  };
3250
3241
  const serializeAws_json1_0BatchExecuteStatementInput = (input, context) => {
3251
3242
  return {
3252
- ...(input.ReturnConsumedCapacity !== undefined &&
3253
- input.ReturnConsumedCapacity !== null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
3254
- ...(input.Statements !== undefined &&
3255
- input.Statements !== null && { Statements: serializeAws_json1_0PartiQLBatchRequest(input.Statements, context) }),
3243
+ ...(input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
3244
+ ...(input.Statements != null && { Statements: serializeAws_json1_0PartiQLBatchRequest(input.Statements, context) }),
3256
3245
  };
3257
3246
  };
3258
3247
  const serializeAws_json1_0BatchGetItemInput = (input, context) => {
3259
3248
  return {
3260
- ...(input.RequestItems !== undefined &&
3261
- input.RequestItems !== null && {
3249
+ ...(input.RequestItems != null && {
3262
3250
  RequestItems: serializeAws_json1_0BatchGetRequestMap(input.RequestItems, context),
3263
3251
  }),
3264
- ...(input.ReturnConsumedCapacity !== undefined &&
3265
- input.ReturnConsumedCapacity !== null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
3252
+ ...(input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
3266
3253
  };
3267
3254
  };
3268
3255
  const serializeAws_json1_0BatchGetRequestMap = (input, context) => {
@@ -3278,25 +3265,22 @@ const serializeAws_json1_0BatchGetRequestMap = (input, context) => {
3278
3265
  };
3279
3266
  const serializeAws_json1_0BatchStatementRequest = (input, context) => {
3280
3267
  return {
3281
- ...(input.ConsistentRead !== undefined &&
3282
- input.ConsistentRead !== null && { ConsistentRead: input.ConsistentRead }),
3283
- ...(input.Parameters !== undefined &&
3284
- input.Parameters !== null && {
3268
+ ...(input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead }),
3269
+ ...(input.Parameters != null && {
3285
3270
  Parameters: serializeAws_json1_0PreparedStatementParameters(input.Parameters, context),
3286
3271
  }),
3287
- ...(input.Statement !== undefined && input.Statement !== null && { Statement: input.Statement }),
3272
+ ...(input.Statement != null && { Statement: input.Statement }),
3288
3273
  };
3289
3274
  };
3290
3275
  const serializeAws_json1_0BatchWriteItemInput = (input, context) => {
3291
3276
  return {
3292
- ...(input.RequestItems !== undefined &&
3293
- input.RequestItems !== null && {
3277
+ ...(input.RequestItems != null && {
3294
3278
  RequestItems: serializeAws_json1_0BatchWriteItemRequestMap(input.RequestItems, context),
3295
3279
  }),
3296
- ...(input.ReturnConsumedCapacity !== undefined &&
3297
- input.ReturnConsumedCapacity !== null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
3298
- ...(input.ReturnItemCollectionMetrics !== undefined &&
3299
- input.ReturnItemCollectionMetrics !== null && { ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics }),
3280
+ ...(input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
3281
+ ...(input.ReturnItemCollectionMetrics != null && {
3282
+ ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics,
3283
+ }),
3300
3284
  };
3301
3285
  };
3302
3286
  const serializeAws_json1_0BatchWriteItemRequestMap = (input, context) => {
@@ -3322,208 +3306,177 @@ const serializeAws_json1_0BinarySetAttributeValue = (input, context) => {
3322
3306
  };
3323
3307
  const serializeAws_json1_0Condition = (input, context) => {
3324
3308
  return {
3325
- ...(input.AttributeValueList !== undefined &&
3326
- input.AttributeValueList !== null && {
3309
+ ...(input.AttributeValueList != null && {
3327
3310
  AttributeValueList: serializeAws_json1_0AttributeValueList(input.AttributeValueList, context),
3328
3311
  }),
3329
- ...(input.ComparisonOperator !== undefined &&
3330
- input.ComparisonOperator !== null && { ComparisonOperator: input.ComparisonOperator }),
3312
+ ...(input.ComparisonOperator != null && { ComparisonOperator: input.ComparisonOperator }),
3331
3313
  };
3332
3314
  };
3333
3315
  const serializeAws_json1_0ConditionCheck = (input, context) => {
3334
3316
  return {
3335
- ...(input.ConditionExpression !== undefined &&
3336
- input.ConditionExpression !== null && { ConditionExpression: input.ConditionExpression }),
3337
- ...(input.ExpressionAttributeNames !== undefined &&
3338
- input.ExpressionAttributeNames !== null && {
3317
+ ...(input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }),
3318
+ ...(input.ExpressionAttributeNames != null && {
3339
3319
  ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context),
3340
3320
  }),
3341
- ...(input.ExpressionAttributeValues !== undefined &&
3342
- input.ExpressionAttributeValues !== null && {
3321
+ ...(input.ExpressionAttributeValues != null && {
3343
3322
  ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context),
3344
3323
  }),
3345
- ...(input.Key !== undefined && input.Key !== null && { Key: serializeAws_json1_0Key(input.Key, context) }),
3346
- ...(input.ReturnValuesOnConditionCheckFailure !== undefined &&
3347
- input.ReturnValuesOnConditionCheckFailure !== null && {
3324
+ ...(input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }),
3325
+ ...(input.ReturnValuesOnConditionCheckFailure != null && {
3348
3326
  ReturnValuesOnConditionCheckFailure: input.ReturnValuesOnConditionCheckFailure,
3349
3327
  }),
3350
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3328
+ ...(input.TableName != null && { TableName: input.TableName }),
3351
3329
  };
3352
3330
  };
3353
3331
  const serializeAws_json1_0CreateBackupInput = (input, context) => {
3354
3332
  return {
3355
- ...(input.BackupName !== undefined && input.BackupName !== null && { BackupName: input.BackupName }),
3356
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3333
+ ...(input.BackupName != null && { BackupName: input.BackupName }),
3334
+ ...(input.TableName != null && { TableName: input.TableName }),
3357
3335
  };
3358
3336
  };
3359
3337
  const serializeAws_json1_0CreateGlobalSecondaryIndexAction = (input, context) => {
3360
3338
  return {
3361
- ...(input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName }),
3362
- ...(input.KeySchema !== undefined &&
3363
- input.KeySchema !== null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) }),
3364
- ...(input.Projection !== undefined &&
3365
- input.Projection !== null && { Projection: serializeAws_json1_0Projection(input.Projection, context) }),
3366
- ...(input.ProvisionedThroughput !== undefined &&
3367
- input.ProvisionedThroughput !== null && {
3339
+ ...(input.IndexName != null && { IndexName: input.IndexName }),
3340
+ ...(input.KeySchema != null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) }),
3341
+ ...(input.Projection != null && { Projection: serializeAws_json1_0Projection(input.Projection, context) }),
3342
+ ...(input.ProvisionedThroughput != null && {
3368
3343
  ProvisionedThroughput: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughput, context),
3369
3344
  }),
3370
3345
  };
3371
3346
  };
3372
3347
  const serializeAws_json1_0CreateGlobalTableInput = (input, context) => {
3373
3348
  return {
3374
- ...(input.GlobalTableName !== undefined &&
3375
- input.GlobalTableName !== null && { GlobalTableName: input.GlobalTableName }),
3376
- ...(input.ReplicationGroup !== undefined &&
3377
- input.ReplicationGroup !== null && {
3349
+ ...(input.GlobalTableName != null && { GlobalTableName: input.GlobalTableName }),
3350
+ ...(input.ReplicationGroup != null && {
3378
3351
  ReplicationGroup: serializeAws_json1_0ReplicaList(input.ReplicationGroup, context),
3379
3352
  }),
3380
3353
  };
3381
3354
  };
3382
3355
  const serializeAws_json1_0CreateReplicaAction = (input, context) => {
3383
3356
  return {
3384
- ...(input.RegionName !== undefined && input.RegionName !== null && { RegionName: input.RegionName }),
3357
+ ...(input.RegionName != null && { RegionName: input.RegionName }),
3385
3358
  };
3386
3359
  };
3387
3360
  const serializeAws_json1_0CreateReplicationGroupMemberAction = (input, context) => {
3388
3361
  return {
3389
- ...(input.GlobalSecondaryIndexes !== undefined &&
3390
- input.GlobalSecondaryIndexes !== null && {
3362
+ ...(input.GlobalSecondaryIndexes != null && {
3391
3363
  GlobalSecondaryIndexes: serializeAws_json1_0ReplicaGlobalSecondaryIndexList(input.GlobalSecondaryIndexes, context),
3392
3364
  }),
3393
- ...(input.KMSMasterKeyId !== undefined &&
3394
- input.KMSMasterKeyId !== null && { KMSMasterKeyId: input.KMSMasterKeyId }),
3395
- ...(input.ProvisionedThroughputOverride !== undefined &&
3396
- input.ProvisionedThroughputOverride !== null && {
3365
+ ...(input.KMSMasterKeyId != null && { KMSMasterKeyId: input.KMSMasterKeyId }),
3366
+ ...(input.ProvisionedThroughputOverride != null && {
3397
3367
  ProvisionedThroughputOverride: serializeAws_json1_0ProvisionedThroughputOverride(input.ProvisionedThroughputOverride, context),
3398
3368
  }),
3399
- ...(input.RegionName !== undefined && input.RegionName !== null && { RegionName: input.RegionName }),
3400
- ...(input.TableClassOverride !== undefined &&
3401
- input.TableClassOverride !== null && { TableClassOverride: input.TableClassOverride }),
3369
+ ...(input.RegionName != null && { RegionName: input.RegionName }),
3370
+ ...(input.TableClassOverride != null && { TableClassOverride: input.TableClassOverride }),
3402
3371
  };
3403
3372
  };
3404
3373
  const serializeAws_json1_0CreateTableInput = (input, context) => {
3405
3374
  return {
3406
- ...(input.AttributeDefinitions !== undefined &&
3407
- input.AttributeDefinitions !== null && {
3375
+ ...(input.AttributeDefinitions != null && {
3408
3376
  AttributeDefinitions: serializeAws_json1_0AttributeDefinitions(input.AttributeDefinitions, context),
3409
3377
  }),
3410
- ...(input.BillingMode !== undefined && input.BillingMode !== null && { BillingMode: input.BillingMode }),
3411
- ...(input.GlobalSecondaryIndexes !== undefined &&
3412
- input.GlobalSecondaryIndexes !== null && {
3378
+ ...(input.BillingMode != null && { BillingMode: input.BillingMode }),
3379
+ ...(input.GlobalSecondaryIndexes != null && {
3413
3380
  GlobalSecondaryIndexes: serializeAws_json1_0GlobalSecondaryIndexList(input.GlobalSecondaryIndexes, context),
3414
3381
  }),
3415
- ...(input.KeySchema !== undefined &&
3416
- input.KeySchema !== null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) }),
3417
- ...(input.LocalSecondaryIndexes !== undefined &&
3418
- input.LocalSecondaryIndexes !== null && {
3382
+ ...(input.KeySchema != null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) }),
3383
+ ...(input.LocalSecondaryIndexes != null && {
3419
3384
  LocalSecondaryIndexes: serializeAws_json1_0LocalSecondaryIndexList(input.LocalSecondaryIndexes, context),
3420
3385
  }),
3421
- ...(input.ProvisionedThroughput !== undefined &&
3422
- input.ProvisionedThroughput !== null && {
3386
+ ...(input.ProvisionedThroughput != null && {
3423
3387
  ProvisionedThroughput: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughput, context),
3424
3388
  }),
3425
- ...(input.SSESpecification !== undefined &&
3426
- input.SSESpecification !== null && {
3389
+ ...(input.SSESpecification != null && {
3427
3390
  SSESpecification: serializeAws_json1_0SSESpecification(input.SSESpecification, context),
3428
3391
  }),
3429
- ...(input.StreamSpecification !== undefined &&
3430
- input.StreamSpecification !== null && {
3392
+ ...(input.StreamSpecification != null && {
3431
3393
  StreamSpecification: serializeAws_json1_0StreamSpecification(input.StreamSpecification, context),
3432
3394
  }),
3433
- ...(input.TableClass !== undefined && input.TableClass !== null && { TableClass: input.TableClass }),
3434
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3435
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
3395
+ ...(input.TableClass != null && { TableClass: input.TableClass }),
3396
+ ...(input.TableName != null && { TableName: input.TableName }),
3397
+ ...(input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
3436
3398
  };
3437
3399
  };
3438
3400
  const serializeAws_json1_0Delete = (input, context) => {
3439
3401
  return {
3440
- ...(input.ConditionExpression !== undefined &&
3441
- input.ConditionExpression !== null && { ConditionExpression: input.ConditionExpression }),
3442
- ...(input.ExpressionAttributeNames !== undefined &&
3443
- input.ExpressionAttributeNames !== null && {
3402
+ ...(input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }),
3403
+ ...(input.ExpressionAttributeNames != null && {
3444
3404
  ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context),
3445
3405
  }),
3446
- ...(input.ExpressionAttributeValues !== undefined &&
3447
- input.ExpressionAttributeValues !== null && {
3406
+ ...(input.ExpressionAttributeValues != null && {
3448
3407
  ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context),
3449
3408
  }),
3450
- ...(input.Key !== undefined && input.Key !== null && { Key: serializeAws_json1_0Key(input.Key, context) }),
3451
- ...(input.ReturnValuesOnConditionCheckFailure !== undefined &&
3452
- input.ReturnValuesOnConditionCheckFailure !== null && {
3409
+ ...(input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }),
3410
+ ...(input.ReturnValuesOnConditionCheckFailure != null && {
3453
3411
  ReturnValuesOnConditionCheckFailure: input.ReturnValuesOnConditionCheckFailure,
3454
3412
  }),
3455
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3413
+ ...(input.TableName != null && { TableName: input.TableName }),
3456
3414
  };
3457
3415
  };
3458
3416
  const serializeAws_json1_0DeleteBackupInput = (input, context) => {
3459
3417
  return {
3460
- ...(input.BackupArn !== undefined && input.BackupArn !== null && { BackupArn: input.BackupArn }),
3418
+ ...(input.BackupArn != null && { BackupArn: input.BackupArn }),
3461
3419
  };
3462
3420
  };
3463
3421
  const serializeAws_json1_0DeleteGlobalSecondaryIndexAction = (input, context) => {
3464
3422
  return {
3465
- ...(input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName }),
3423
+ ...(input.IndexName != null && { IndexName: input.IndexName }),
3466
3424
  };
3467
3425
  };
3468
3426
  const serializeAws_json1_0DeleteItemInput = (input, context) => {
3469
3427
  return {
3470
- ...(input.ConditionExpression !== undefined &&
3471
- input.ConditionExpression !== null && { ConditionExpression: input.ConditionExpression }),
3472
- ...(input.ConditionalOperator !== undefined &&
3473
- input.ConditionalOperator !== null && { ConditionalOperator: input.ConditionalOperator }),
3474
- ...(input.Expected !== undefined &&
3475
- input.Expected !== null && { Expected: serializeAws_json1_0ExpectedAttributeMap(input.Expected, context) }),
3476
- ...(input.ExpressionAttributeNames !== undefined &&
3477
- input.ExpressionAttributeNames !== null && {
3428
+ ...(input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }),
3429
+ ...(input.ConditionalOperator != null && { ConditionalOperator: input.ConditionalOperator }),
3430
+ ...(input.Expected != null && { Expected: serializeAws_json1_0ExpectedAttributeMap(input.Expected, context) }),
3431
+ ...(input.ExpressionAttributeNames != null && {
3478
3432
  ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context),
3479
3433
  }),
3480
- ...(input.ExpressionAttributeValues !== undefined &&
3481
- input.ExpressionAttributeValues !== null && {
3434
+ ...(input.ExpressionAttributeValues != null && {
3482
3435
  ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context),
3483
3436
  }),
3484
- ...(input.Key !== undefined && input.Key !== null && { Key: serializeAws_json1_0Key(input.Key, context) }),
3485
- ...(input.ReturnConsumedCapacity !== undefined &&
3486
- input.ReturnConsumedCapacity !== null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
3487
- ...(input.ReturnItemCollectionMetrics !== undefined &&
3488
- input.ReturnItemCollectionMetrics !== null && { ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics }),
3489
- ...(input.ReturnValues !== undefined && input.ReturnValues !== null && { ReturnValues: input.ReturnValues }),
3490
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3437
+ ...(input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }),
3438
+ ...(input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
3439
+ ...(input.ReturnItemCollectionMetrics != null && {
3440
+ ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics,
3441
+ }),
3442
+ ...(input.ReturnValues != null && { ReturnValues: input.ReturnValues }),
3443
+ ...(input.TableName != null && { TableName: input.TableName }),
3491
3444
  };
3492
3445
  };
3493
3446
  const serializeAws_json1_0DeleteReplicaAction = (input, context) => {
3494
3447
  return {
3495
- ...(input.RegionName !== undefined && input.RegionName !== null && { RegionName: input.RegionName }),
3448
+ ...(input.RegionName != null && { RegionName: input.RegionName }),
3496
3449
  };
3497
3450
  };
3498
3451
  const serializeAws_json1_0DeleteReplicationGroupMemberAction = (input, context) => {
3499
3452
  return {
3500
- ...(input.RegionName !== undefined && input.RegionName !== null && { RegionName: input.RegionName }),
3453
+ ...(input.RegionName != null && { RegionName: input.RegionName }),
3501
3454
  };
3502
3455
  };
3503
3456
  const serializeAws_json1_0DeleteRequest = (input, context) => {
3504
3457
  return {
3505
- ...(input.Key !== undefined && input.Key !== null && { Key: serializeAws_json1_0Key(input.Key, context) }),
3458
+ ...(input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }),
3506
3459
  };
3507
3460
  };
3508
3461
  const serializeAws_json1_0DeleteTableInput = (input, context) => {
3509
3462
  return {
3510
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3463
+ ...(input.TableName != null && { TableName: input.TableName }),
3511
3464
  };
3512
3465
  };
3513
3466
  const serializeAws_json1_0DescribeBackupInput = (input, context) => {
3514
3467
  return {
3515
- ...(input.BackupArn !== undefined && input.BackupArn !== null && { BackupArn: input.BackupArn }),
3468
+ ...(input.BackupArn != null && { BackupArn: input.BackupArn }),
3516
3469
  };
3517
3470
  };
3518
3471
  const serializeAws_json1_0DescribeContinuousBackupsInput = (input, context) => {
3519
3472
  return {
3520
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3473
+ ...(input.TableName != null && { TableName: input.TableName }),
3521
3474
  };
3522
3475
  };
3523
3476
  const serializeAws_json1_0DescribeContributorInsightsInput = (input, context) => {
3524
3477
  return {
3525
- ...(input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName }),
3526
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3478
+ ...(input.IndexName != null && { IndexName: input.IndexName }),
3479
+ ...(input.TableName != null && { TableName: input.TableName }),
3527
3480
  };
3528
3481
  };
3529
3482
  const serializeAws_json1_0DescribeEndpointsRequest = (input, context) => {
@@ -3531,24 +3484,22 @@ const serializeAws_json1_0DescribeEndpointsRequest = (input, context) => {
3531
3484
  };
3532
3485
  const serializeAws_json1_0DescribeExportInput = (input, context) => {
3533
3486
  return {
3534
- ...(input.ExportArn !== undefined && input.ExportArn !== null && { ExportArn: input.ExportArn }),
3487
+ ...(input.ExportArn != null && { ExportArn: input.ExportArn }),
3535
3488
  };
3536
3489
  };
3537
3490
  const serializeAws_json1_0DescribeGlobalTableInput = (input, context) => {
3538
3491
  return {
3539
- ...(input.GlobalTableName !== undefined &&
3540
- input.GlobalTableName !== null && { GlobalTableName: input.GlobalTableName }),
3492
+ ...(input.GlobalTableName != null && { GlobalTableName: input.GlobalTableName }),
3541
3493
  };
3542
3494
  };
3543
3495
  const serializeAws_json1_0DescribeGlobalTableSettingsInput = (input, context) => {
3544
3496
  return {
3545
- ...(input.GlobalTableName !== undefined &&
3546
- input.GlobalTableName !== null && { GlobalTableName: input.GlobalTableName }),
3497
+ ...(input.GlobalTableName != null && { GlobalTableName: input.GlobalTableName }),
3547
3498
  };
3548
3499
  };
3549
3500
  const serializeAws_json1_0DescribeKinesisStreamingDestinationInput = (input, context) => {
3550
3501
  return {
3551
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3502
+ ...(input.TableName != null && { TableName: input.TableName }),
3552
3503
  };
3553
3504
  };
3554
3505
  const serializeAws_json1_0DescribeLimitsInput = (input, context) => {
@@ -3556,42 +3507,37 @@ const serializeAws_json1_0DescribeLimitsInput = (input, context) => {
3556
3507
  };
3557
3508
  const serializeAws_json1_0DescribeTableInput = (input, context) => {
3558
3509
  return {
3559
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3510
+ ...(input.TableName != null && { TableName: input.TableName }),
3560
3511
  };
3561
3512
  };
3562
3513
  const serializeAws_json1_0DescribeTableReplicaAutoScalingInput = (input, context) => {
3563
3514
  return {
3564
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3515
+ ...(input.TableName != null && { TableName: input.TableName }),
3565
3516
  };
3566
3517
  };
3567
3518
  const serializeAws_json1_0DescribeTimeToLiveInput = (input, context) => {
3568
3519
  return {
3569
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3520
+ ...(input.TableName != null && { TableName: input.TableName }),
3570
3521
  };
3571
3522
  };
3572
3523
  const serializeAws_json1_0ExecuteStatementInput = (input, context) => {
3573
3524
  return {
3574
- ...(input.ConsistentRead !== undefined &&
3575
- input.ConsistentRead !== null && { ConsistentRead: input.ConsistentRead }),
3576
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
3577
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
3578
- ...(input.Parameters !== undefined &&
3579
- input.Parameters !== null && {
3525
+ ...(input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead }),
3526
+ ...(input.Limit != null && { Limit: input.Limit }),
3527
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
3528
+ ...(input.Parameters != null && {
3580
3529
  Parameters: serializeAws_json1_0PreparedStatementParameters(input.Parameters, context),
3581
3530
  }),
3582
- ...(input.ReturnConsumedCapacity !== undefined &&
3583
- input.ReturnConsumedCapacity !== null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
3584
- ...(input.Statement !== undefined && input.Statement !== null && { Statement: input.Statement }),
3531
+ ...(input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
3532
+ ...(input.Statement != null && { Statement: input.Statement }),
3585
3533
  };
3586
3534
  };
3587
3535
  const serializeAws_json1_0ExecuteTransactionInput = (input, context) => {
3588
3536
  var _a;
3589
3537
  return {
3590
3538
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
3591
- ...(input.ReturnConsumedCapacity !== undefined &&
3592
- input.ReturnConsumedCapacity !== null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
3593
- ...(input.TransactStatements !== undefined &&
3594
- input.TransactStatements !== null && {
3539
+ ...(input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
3540
+ ...(input.TransactStatements != null && {
3595
3541
  TransactStatements: serializeAws_json1_0ParameterizedStatements(input.TransactStatements, context),
3596
3542
  }),
3597
3543
  };
@@ -3609,31 +3555,26 @@ const serializeAws_json1_0ExpectedAttributeMap = (input, context) => {
3609
3555
  };
3610
3556
  const serializeAws_json1_0ExpectedAttributeValue = (input, context) => {
3611
3557
  return {
3612
- ...(input.AttributeValueList !== undefined &&
3613
- input.AttributeValueList !== null && {
3558
+ ...(input.AttributeValueList != null && {
3614
3559
  AttributeValueList: serializeAws_json1_0AttributeValueList(input.AttributeValueList, context),
3615
3560
  }),
3616
- ...(input.ComparisonOperator !== undefined &&
3617
- input.ComparisonOperator !== null && { ComparisonOperator: input.ComparisonOperator }),
3618
- ...(input.Exists !== undefined && input.Exists !== null && { Exists: input.Exists }),
3619
- ...(input.Value !== undefined &&
3620
- input.Value !== null && { Value: serializeAws_json1_0AttributeValue(input.Value, context) }),
3561
+ ...(input.ComparisonOperator != null && { ComparisonOperator: input.ComparisonOperator }),
3562
+ ...(input.Exists != null && { Exists: input.Exists }),
3563
+ ...(input.Value != null && { Value: serializeAws_json1_0AttributeValue(input.Value, context) }),
3621
3564
  };
3622
3565
  };
3623
3566
  const serializeAws_json1_0ExportTableToPointInTimeInput = (input, context) => {
3624
3567
  var _a;
3625
3568
  return {
3626
3569
  ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
3627
- ...(input.ExportFormat !== undefined && input.ExportFormat !== null && { ExportFormat: input.ExportFormat }),
3628
- ...(input.ExportTime !== undefined &&
3629
- input.ExportTime !== null && { ExportTime: Math.round(input.ExportTime.getTime() / 1000) }),
3630
- ...(input.S3Bucket !== undefined && input.S3Bucket !== null && { S3Bucket: input.S3Bucket }),
3631
- ...(input.S3BucketOwner !== undefined && input.S3BucketOwner !== null && { S3BucketOwner: input.S3BucketOwner }),
3632
- ...(input.S3Prefix !== undefined && input.S3Prefix !== null && { S3Prefix: input.S3Prefix }),
3633
- ...(input.S3SseAlgorithm !== undefined &&
3634
- input.S3SseAlgorithm !== null && { S3SseAlgorithm: input.S3SseAlgorithm }),
3635
- ...(input.S3SseKmsKeyId !== undefined && input.S3SseKmsKeyId !== null && { S3SseKmsKeyId: input.S3SseKmsKeyId }),
3636
- ...(input.TableArn !== undefined && input.TableArn !== null && { TableArn: input.TableArn }),
3570
+ ...(input.ExportFormat != null && { ExportFormat: input.ExportFormat }),
3571
+ ...(input.ExportTime != null && { ExportTime: Math.round(input.ExportTime.getTime() / 1000) }),
3572
+ ...(input.S3Bucket != null && { S3Bucket: input.S3Bucket }),
3573
+ ...(input.S3BucketOwner != null && { S3BucketOwner: input.S3BucketOwner }),
3574
+ ...(input.S3Prefix != null && { S3Prefix: input.S3Prefix }),
3575
+ ...(input.S3SseAlgorithm != null && { S3SseAlgorithm: input.S3SseAlgorithm }),
3576
+ ...(input.S3SseKmsKeyId != null && { S3SseKmsKeyId: input.S3SseKmsKeyId }),
3577
+ ...(input.TableArn != null && { TableArn: input.TableArn }),
3637
3578
  };
3638
3579
  };
3639
3580
  const serializeAws_json1_0ExpressionAttributeNameMap = (input, context) => {
@@ -3671,54 +3612,43 @@ const serializeAws_json1_0FilterConditionMap = (input, context) => {
3671
3612
  };
3672
3613
  const serializeAws_json1_0Get = (input, context) => {
3673
3614
  return {
3674
- ...(input.ExpressionAttributeNames !== undefined &&
3675
- input.ExpressionAttributeNames !== null && {
3615
+ ...(input.ExpressionAttributeNames != null && {
3676
3616
  ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context),
3677
3617
  }),
3678
- ...(input.Key !== undefined && input.Key !== null && { Key: serializeAws_json1_0Key(input.Key, context) }),
3679
- ...(input.ProjectionExpression !== undefined &&
3680
- input.ProjectionExpression !== null && { ProjectionExpression: input.ProjectionExpression }),
3681
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3618
+ ...(input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }),
3619
+ ...(input.ProjectionExpression != null && { ProjectionExpression: input.ProjectionExpression }),
3620
+ ...(input.TableName != null && { TableName: input.TableName }),
3682
3621
  };
3683
3622
  };
3684
3623
  const serializeAws_json1_0GetItemInput = (input, context) => {
3685
3624
  return {
3686
- ...(input.AttributesToGet !== undefined &&
3687
- input.AttributesToGet !== null && {
3625
+ ...(input.AttributesToGet != null && {
3688
3626
  AttributesToGet: serializeAws_json1_0AttributeNameList(input.AttributesToGet, context),
3689
3627
  }),
3690
- ...(input.ConsistentRead !== undefined &&
3691
- input.ConsistentRead !== null && { ConsistentRead: input.ConsistentRead }),
3692
- ...(input.ExpressionAttributeNames !== undefined &&
3693
- input.ExpressionAttributeNames !== null && {
3628
+ ...(input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead }),
3629
+ ...(input.ExpressionAttributeNames != null && {
3694
3630
  ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context),
3695
3631
  }),
3696
- ...(input.Key !== undefined && input.Key !== null && { Key: serializeAws_json1_0Key(input.Key, context) }),
3697
- ...(input.ProjectionExpression !== undefined &&
3698
- input.ProjectionExpression !== null && { ProjectionExpression: input.ProjectionExpression }),
3699
- ...(input.ReturnConsumedCapacity !== undefined &&
3700
- input.ReturnConsumedCapacity !== null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
3701
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3632
+ ...(input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }),
3633
+ ...(input.ProjectionExpression != null && { ProjectionExpression: input.ProjectionExpression }),
3634
+ ...(input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
3635
+ ...(input.TableName != null && { TableName: input.TableName }),
3702
3636
  };
3703
3637
  };
3704
3638
  const serializeAws_json1_0GlobalSecondaryIndex = (input, context) => {
3705
3639
  return {
3706
- ...(input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName }),
3707
- ...(input.KeySchema !== undefined &&
3708
- input.KeySchema !== null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) }),
3709
- ...(input.Projection !== undefined &&
3710
- input.Projection !== null && { Projection: serializeAws_json1_0Projection(input.Projection, context) }),
3711
- ...(input.ProvisionedThroughput !== undefined &&
3712
- input.ProvisionedThroughput !== null && {
3640
+ ...(input.IndexName != null && { IndexName: input.IndexName }),
3641
+ ...(input.KeySchema != null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) }),
3642
+ ...(input.Projection != null && { Projection: serializeAws_json1_0Projection(input.Projection, context) }),
3643
+ ...(input.ProvisionedThroughput != null && {
3713
3644
  ProvisionedThroughput: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughput, context),
3714
3645
  }),
3715
3646
  };
3716
3647
  };
3717
3648
  const serializeAws_json1_0GlobalSecondaryIndexAutoScalingUpdate = (input, context) => {
3718
3649
  return {
3719
- ...(input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName }),
3720
- ...(input.ProvisionedWriteCapacityAutoScalingUpdate !== undefined &&
3721
- input.ProvisionedWriteCapacityAutoScalingUpdate !== null && {
3650
+ ...(input.IndexName != null && { IndexName: input.IndexName }),
3651
+ ...(input.ProvisionedWriteCapacityAutoScalingUpdate != null && {
3722
3652
  ProvisionedWriteCapacityAutoScalingUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ProvisionedWriteCapacityAutoScalingUpdate, context),
3723
3653
  }),
3724
3654
  };
@@ -3745,12 +3675,15 @@ const serializeAws_json1_0GlobalSecondaryIndexList = (input, context) => {
3745
3675
  };
3746
3676
  const serializeAws_json1_0GlobalSecondaryIndexUpdate = (input, context) => {
3747
3677
  return {
3748
- ...(input.Create !== undefined &&
3749
- input.Create !== null && { Create: serializeAws_json1_0CreateGlobalSecondaryIndexAction(input.Create, context) }),
3750
- ...(input.Delete !== undefined &&
3751
- input.Delete !== null && { Delete: serializeAws_json1_0DeleteGlobalSecondaryIndexAction(input.Delete, context) }),
3752
- ...(input.Update !== undefined &&
3753
- input.Update !== null && { Update: serializeAws_json1_0UpdateGlobalSecondaryIndexAction(input.Update, context) }),
3678
+ ...(input.Create != null && {
3679
+ Create: serializeAws_json1_0CreateGlobalSecondaryIndexAction(input.Create, context),
3680
+ }),
3681
+ ...(input.Delete != null && {
3682
+ Delete: serializeAws_json1_0DeleteGlobalSecondaryIndexAction(input.Delete, context),
3683
+ }),
3684
+ ...(input.Update != null && {
3685
+ Update: serializeAws_json1_0UpdateGlobalSecondaryIndexAction(input.Update, context),
3686
+ }),
3754
3687
  };
3755
3688
  };
3756
3689
  const serializeAws_json1_0GlobalSecondaryIndexUpdateList = (input, context) => {
@@ -3765,13 +3698,11 @@ const serializeAws_json1_0GlobalSecondaryIndexUpdateList = (input, context) => {
3765
3698
  };
3766
3699
  const serializeAws_json1_0GlobalTableGlobalSecondaryIndexSettingsUpdate = (input, context) => {
3767
3700
  return {
3768
- ...(input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName }),
3769
- ...(input.ProvisionedWriteCapacityAutoScalingSettingsUpdate !== undefined &&
3770
- input.ProvisionedWriteCapacityAutoScalingSettingsUpdate !== null && {
3701
+ ...(input.IndexName != null && { IndexName: input.IndexName }),
3702
+ ...(input.ProvisionedWriteCapacityAutoScalingSettingsUpdate != null && {
3771
3703
  ProvisionedWriteCapacityAutoScalingSettingsUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ProvisionedWriteCapacityAutoScalingSettingsUpdate, context),
3772
3704
  }),
3773
- ...(input.ProvisionedWriteCapacityUnits !== undefined &&
3774
- input.ProvisionedWriteCapacityUnits !== null && {
3705
+ ...(input.ProvisionedWriteCapacityUnits != null && {
3775
3706
  ProvisionedWriteCapacityUnits: input.ProvisionedWriteCapacityUnits,
3776
3707
  }),
3777
3708
  };
@@ -3820,19 +3751,15 @@ const serializeAws_json1_0KeyList = (input, context) => {
3820
3751
  };
3821
3752
  const serializeAws_json1_0KeysAndAttributes = (input, context) => {
3822
3753
  return {
3823
- ...(input.AttributesToGet !== undefined &&
3824
- input.AttributesToGet !== null && {
3754
+ ...(input.AttributesToGet != null && {
3825
3755
  AttributesToGet: serializeAws_json1_0AttributeNameList(input.AttributesToGet, context),
3826
3756
  }),
3827
- ...(input.ConsistentRead !== undefined &&
3828
- input.ConsistentRead !== null && { ConsistentRead: input.ConsistentRead }),
3829
- ...(input.ExpressionAttributeNames !== undefined &&
3830
- input.ExpressionAttributeNames !== null && {
3757
+ ...(input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead }),
3758
+ ...(input.ExpressionAttributeNames != null && {
3831
3759
  ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context),
3832
3760
  }),
3833
- ...(input.Keys !== undefined && input.Keys !== null && { Keys: serializeAws_json1_0KeyList(input.Keys, context) }),
3834
- ...(input.ProjectionExpression !== undefined &&
3835
- input.ProjectionExpression !== null && { ProjectionExpression: input.ProjectionExpression }),
3761
+ ...(input.Keys != null && { Keys: serializeAws_json1_0KeyList(input.Keys, context) }),
3762
+ ...(input.ProjectionExpression != null && { ProjectionExpression: input.ProjectionExpression }),
3836
3763
  };
3837
3764
  };
3838
3765
  const serializeAws_json1_0KeySchema = (input, context) => {
@@ -3847,14 +3774,14 @@ const serializeAws_json1_0KeySchema = (input, context) => {
3847
3774
  };
3848
3775
  const serializeAws_json1_0KeySchemaElement = (input, context) => {
3849
3776
  return {
3850
- ...(input.AttributeName !== undefined && input.AttributeName !== null && { AttributeName: input.AttributeName }),
3851
- ...(input.KeyType !== undefined && input.KeyType !== null && { KeyType: input.KeyType }),
3777
+ ...(input.AttributeName != null && { AttributeName: input.AttributeName }),
3778
+ ...(input.KeyType != null && { KeyType: input.KeyType }),
3852
3779
  };
3853
3780
  };
3854
3781
  const serializeAws_json1_0KinesisStreamingDestinationInput = (input, context) => {
3855
3782
  return {
3856
- ...(input.StreamArn !== undefined && input.StreamArn !== null && { StreamArn: input.StreamArn }),
3857
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3783
+ ...(input.StreamArn != null && { StreamArn: input.StreamArn }),
3784
+ ...(input.TableName != null && { TableName: input.TableName }),
3858
3785
  };
3859
3786
  };
3860
3787
  const serializeAws_json1_0ListAttributeValue = (input, context) => {
@@ -3869,65 +3796,58 @@ const serializeAws_json1_0ListAttributeValue = (input, context) => {
3869
3796
  };
3870
3797
  const serializeAws_json1_0ListBackupsInput = (input, context) => {
3871
3798
  return {
3872
- ...(input.BackupType !== undefined && input.BackupType !== null && { BackupType: input.BackupType }),
3873
- ...(input.ExclusiveStartBackupArn !== undefined &&
3874
- input.ExclusiveStartBackupArn !== null && { ExclusiveStartBackupArn: input.ExclusiveStartBackupArn }),
3875
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
3876
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3877
- ...(input.TimeRangeLowerBound !== undefined &&
3878
- input.TimeRangeLowerBound !== null && {
3799
+ ...(input.BackupType != null && { BackupType: input.BackupType }),
3800
+ ...(input.ExclusiveStartBackupArn != null && { ExclusiveStartBackupArn: input.ExclusiveStartBackupArn }),
3801
+ ...(input.Limit != null && { Limit: input.Limit }),
3802
+ ...(input.TableName != null && { TableName: input.TableName }),
3803
+ ...(input.TimeRangeLowerBound != null && {
3879
3804
  TimeRangeLowerBound: Math.round(input.TimeRangeLowerBound.getTime() / 1000),
3880
3805
  }),
3881
- ...(input.TimeRangeUpperBound !== undefined &&
3882
- input.TimeRangeUpperBound !== null && {
3806
+ ...(input.TimeRangeUpperBound != null && {
3883
3807
  TimeRangeUpperBound: Math.round(input.TimeRangeUpperBound.getTime() / 1000),
3884
3808
  }),
3885
3809
  };
3886
3810
  };
3887
3811
  const serializeAws_json1_0ListContributorInsightsInput = (input, context) => {
3888
3812
  return {
3889
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
3890
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
3891
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3813
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3814
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
3815
+ ...(input.TableName != null && { TableName: input.TableName }),
3892
3816
  };
3893
3817
  };
3894
3818
  const serializeAws_json1_0ListExportsInput = (input, context) => {
3895
3819
  return {
3896
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
3897
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
3898
- ...(input.TableArn !== undefined && input.TableArn !== null && { TableArn: input.TableArn }),
3820
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3821
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
3822
+ ...(input.TableArn != null && { TableArn: input.TableArn }),
3899
3823
  };
3900
3824
  };
3901
3825
  const serializeAws_json1_0ListGlobalTablesInput = (input, context) => {
3902
3826
  return {
3903
- ...(input.ExclusiveStartGlobalTableName !== undefined &&
3904
- input.ExclusiveStartGlobalTableName !== null && {
3827
+ ...(input.ExclusiveStartGlobalTableName != null && {
3905
3828
  ExclusiveStartGlobalTableName: input.ExclusiveStartGlobalTableName,
3906
3829
  }),
3907
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
3908
- ...(input.RegionName !== undefined && input.RegionName !== null && { RegionName: input.RegionName }),
3830
+ ...(input.Limit != null && { Limit: input.Limit }),
3831
+ ...(input.RegionName != null && { RegionName: input.RegionName }),
3909
3832
  };
3910
3833
  };
3911
3834
  const serializeAws_json1_0ListTablesInput = (input, context) => {
3912
3835
  return {
3913
- ...(input.ExclusiveStartTableName !== undefined &&
3914
- input.ExclusiveStartTableName !== null && { ExclusiveStartTableName: input.ExclusiveStartTableName }),
3915
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
3836
+ ...(input.ExclusiveStartTableName != null && { ExclusiveStartTableName: input.ExclusiveStartTableName }),
3837
+ ...(input.Limit != null && { Limit: input.Limit }),
3916
3838
  };
3917
3839
  };
3918
3840
  const serializeAws_json1_0ListTagsOfResourceInput = (input, context) => {
3919
3841
  return {
3920
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
3921
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
3842
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
3843
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3922
3844
  };
3923
3845
  };
3924
3846
  const serializeAws_json1_0LocalSecondaryIndex = (input, context) => {
3925
3847
  return {
3926
- ...(input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName }),
3927
- ...(input.KeySchema !== undefined &&
3928
- input.KeySchema !== null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) }),
3929
- ...(input.Projection !== undefined &&
3930
- input.Projection !== null && { Projection: serializeAws_json1_0Projection(input.Projection, context) }),
3848
+ ...(input.IndexName != null && { IndexName: input.IndexName }),
3849
+ ...(input.KeySchema != null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) }),
3850
+ ...(input.Projection != null && { Projection: serializeAws_json1_0Projection(input.Projection, context) }),
3931
3851
  };
3932
3852
  };
3933
3853
  const serializeAws_json1_0LocalSecondaryIndexList = (input, context) => {
@@ -3973,11 +3893,10 @@ const serializeAws_json1_0NumberSetAttributeValue = (input, context) => {
3973
3893
  };
3974
3894
  const serializeAws_json1_0ParameterizedStatement = (input, context) => {
3975
3895
  return {
3976
- ...(input.Parameters !== undefined &&
3977
- input.Parameters !== null && {
3896
+ ...(input.Parameters != null && {
3978
3897
  Parameters: serializeAws_json1_0PreparedStatementParameters(input.Parameters, context),
3979
3898
  }),
3980
- ...(input.Statement !== undefined && input.Statement !== null && { Statement: input.Statement }),
3899
+ ...(input.Statement != null && { Statement: input.Statement }),
3981
3900
  };
3982
3901
  };
3983
3902
  const serializeAws_json1_0ParameterizedStatements = (input, context) => {
@@ -4002,8 +3921,7 @@ const serializeAws_json1_0PartiQLBatchRequest = (input, context) => {
4002
3921
  };
4003
3922
  const serializeAws_json1_0PointInTimeRecoverySpecification = (input, context) => {
4004
3923
  return {
4005
- ...(input.PointInTimeRecoveryEnabled !== undefined &&
4006
- input.PointInTimeRecoveryEnabled !== null && { PointInTimeRecoveryEnabled: input.PointInTimeRecoveryEnabled }),
3924
+ ...(input.PointInTimeRecoveryEnabled != null && { PointInTimeRecoveryEnabled: input.PointInTimeRecoveryEnabled }),
4007
3925
  };
4008
3926
  };
4009
3927
  const serializeAws_json1_0PreparedStatementParameters = (input, context) => {
@@ -4018,73 +3936,57 @@ const serializeAws_json1_0PreparedStatementParameters = (input, context) => {
4018
3936
  };
4019
3937
  const serializeAws_json1_0Projection = (input, context) => {
4020
3938
  return {
4021
- ...(input.NonKeyAttributes !== undefined &&
4022
- input.NonKeyAttributes !== null && {
3939
+ ...(input.NonKeyAttributes != null && {
4023
3940
  NonKeyAttributes: serializeAws_json1_0NonKeyAttributeNameList(input.NonKeyAttributes, context),
4024
3941
  }),
4025
- ...(input.ProjectionType !== undefined &&
4026
- input.ProjectionType !== null && { ProjectionType: input.ProjectionType }),
3942
+ ...(input.ProjectionType != null && { ProjectionType: input.ProjectionType }),
4027
3943
  };
4028
3944
  };
4029
3945
  const serializeAws_json1_0ProvisionedThroughput = (input, context) => {
4030
3946
  return {
4031
- ...(input.ReadCapacityUnits !== undefined &&
4032
- input.ReadCapacityUnits !== null && { ReadCapacityUnits: input.ReadCapacityUnits }),
4033
- ...(input.WriteCapacityUnits !== undefined &&
4034
- input.WriteCapacityUnits !== null && { WriteCapacityUnits: input.WriteCapacityUnits }),
3947
+ ...(input.ReadCapacityUnits != null && { ReadCapacityUnits: input.ReadCapacityUnits }),
3948
+ ...(input.WriteCapacityUnits != null && { WriteCapacityUnits: input.WriteCapacityUnits }),
4035
3949
  };
4036
3950
  };
4037
3951
  const serializeAws_json1_0ProvisionedThroughputOverride = (input, context) => {
4038
3952
  return {
4039
- ...(input.ReadCapacityUnits !== undefined &&
4040
- input.ReadCapacityUnits !== null && { ReadCapacityUnits: input.ReadCapacityUnits }),
3953
+ ...(input.ReadCapacityUnits != null && { ReadCapacityUnits: input.ReadCapacityUnits }),
4041
3954
  };
4042
3955
  };
4043
3956
  const serializeAws_json1_0Put = (input, context) => {
4044
3957
  return {
4045
- ...(input.ConditionExpression !== undefined &&
4046
- input.ConditionExpression !== null && { ConditionExpression: input.ConditionExpression }),
4047
- ...(input.ExpressionAttributeNames !== undefined &&
4048
- input.ExpressionAttributeNames !== null && {
3958
+ ...(input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }),
3959
+ ...(input.ExpressionAttributeNames != null && {
4049
3960
  ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context),
4050
3961
  }),
4051
- ...(input.ExpressionAttributeValues !== undefined &&
4052
- input.ExpressionAttributeValues !== null && {
3962
+ ...(input.ExpressionAttributeValues != null && {
4053
3963
  ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context),
4054
3964
  }),
4055
- ...(input.Item !== undefined &&
4056
- input.Item !== null && { Item: serializeAws_json1_0PutItemInputAttributeMap(input.Item, context) }),
4057
- ...(input.ReturnValuesOnConditionCheckFailure !== undefined &&
4058
- input.ReturnValuesOnConditionCheckFailure !== null && {
3965
+ ...(input.Item != null && { Item: serializeAws_json1_0PutItemInputAttributeMap(input.Item, context) }),
3966
+ ...(input.ReturnValuesOnConditionCheckFailure != null && {
4059
3967
  ReturnValuesOnConditionCheckFailure: input.ReturnValuesOnConditionCheckFailure,
4060
3968
  }),
4061
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3969
+ ...(input.TableName != null && { TableName: input.TableName }),
4062
3970
  };
4063
3971
  };
4064
3972
  const serializeAws_json1_0PutItemInput = (input, context) => {
4065
3973
  return {
4066
- ...(input.ConditionExpression !== undefined &&
4067
- input.ConditionExpression !== null && { ConditionExpression: input.ConditionExpression }),
4068
- ...(input.ConditionalOperator !== undefined &&
4069
- input.ConditionalOperator !== null && { ConditionalOperator: input.ConditionalOperator }),
4070
- ...(input.Expected !== undefined &&
4071
- input.Expected !== null && { Expected: serializeAws_json1_0ExpectedAttributeMap(input.Expected, context) }),
4072
- ...(input.ExpressionAttributeNames !== undefined &&
4073
- input.ExpressionAttributeNames !== null && {
3974
+ ...(input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }),
3975
+ ...(input.ConditionalOperator != null && { ConditionalOperator: input.ConditionalOperator }),
3976
+ ...(input.Expected != null && { Expected: serializeAws_json1_0ExpectedAttributeMap(input.Expected, context) }),
3977
+ ...(input.ExpressionAttributeNames != null && {
4074
3978
  ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context),
4075
3979
  }),
4076
- ...(input.ExpressionAttributeValues !== undefined &&
4077
- input.ExpressionAttributeValues !== null && {
3980
+ ...(input.ExpressionAttributeValues != null && {
4078
3981
  ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context),
4079
3982
  }),
4080
- ...(input.Item !== undefined &&
4081
- input.Item !== null && { Item: serializeAws_json1_0PutItemInputAttributeMap(input.Item, context) }),
4082
- ...(input.ReturnConsumedCapacity !== undefined &&
4083
- input.ReturnConsumedCapacity !== null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
4084
- ...(input.ReturnItemCollectionMetrics !== undefined &&
4085
- input.ReturnItemCollectionMetrics !== null && { ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics }),
4086
- ...(input.ReturnValues !== undefined && input.ReturnValues !== null && { ReturnValues: input.ReturnValues }),
4087
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3983
+ ...(input.Item != null && { Item: serializeAws_json1_0PutItemInputAttributeMap(input.Item, context) }),
3984
+ ...(input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
3985
+ ...(input.ReturnItemCollectionMetrics != null && {
3986
+ ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics,
3987
+ }),
3988
+ ...(input.ReturnValues != null && { ReturnValues: input.ReturnValues }),
3989
+ ...(input.TableName != null && { TableName: input.TableName }),
4088
3990
  };
4089
3991
  };
4090
3992
  const serializeAws_json1_0PutItemInputAttributeMap = (input, context) => {
@@ -4100,70 +4002,54 @@ const serializeAws_json1_0PutItemInputAttributeMap = (input, context) => {
4100
4002
  };
4101
4003
  const serializeAws_json1_0PutRequest = (input, context) => {
4102
4004
  return {
4103
- ...(input.Item !== undefined &&
4104
- input.Item !== null && { Item: serializeAws_json1_0PutItemInputAttributeMap(input.Item, context) }),
4005
+ ...(input.Item != null && { Item: serializeAws_json1_0PutItemInputAttributeMap(input.Item, context) }),
4105
4006
  };
4106
4007
  };
4107
4008
  const serializeAws_json1_0QueryInput = (input, context) => {
4108
4009
  return {
4109
- ...(input.AttributesToGet !== undefined &&
4110
- input.AttributesToGet !== null && {
4010
+ ...(input.AttributesToGet != null && {
4111
4011
  AttributesToGet: serializeAws_json1_0AttributeNameList(input.AttributesToGet, context),
4112
4012
  }),
4113
- ...(input.ConditionalOperator !== undefined &&
4114
- input.ConditionalOperator !== null && { ConditionalOperator: input.ConditionalOperator }),
4115
- ...(input.ConsistentRead !== undefined &&
4116
- input.ConsistentRead !== null && { ConsistentRead: input.ConsistentRead }),
4117
- ...(input.ExclusiveStartKey !== undefined &&
4118
- input.ExclusiveStartKey !== null && {
4013
+ ...(input.ConditionalOperator != null && { ConditionalOperator: input.ConditionalOperator }),
4014
+ ...(input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead }),
4015
+ ...(input.ExclusiveStartKey != null && {
4119
4016
  ExclusiveStartKey: serializeAws_json1_0Key(input.ExclusiveStartKey, context),
4120
4017
  }),
4121
- ...(input.ExpressionAttributeNames !== undefined &&
4122
- input.ExpressionAttributeNames !== null && {
4018
+ ...(input.ExpressionAttributeNames != null && {
4123
4019
  ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context),
4124
4020
  }),
4125
- ...(input.ExpressionAttributeValues !== undefined &&
4126
- input.ExpressionAttributeValues !== null && {
4021
+ ...(input.ExpressionAttributeValues != null && {
4127
4022
  ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context),
4128
4023
  }),
4129
- ...(input.FilterExpression !== undefined &&
4130
- input.FilterExpression !== null && { FilterExpression: input.FilterExpression }),
4131
- ...(input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName }),
4132
- ...(input.KeyConditionExpression !== undefined &&
4133
- input.KeyConditionExpression !== null && { KeyConditionExpression: input.KeyConditionExpression }),
4134
- ...(input.KeyConditions !== undefined &&
4135
- input.KeyConditions !== null && {
4024
+ ...(input.FilterExpression != null && { FilterExpression: input.FilterExpression }),
4025
+ ...(input.IndexName != null && { IndexName: input.IndexName }),
4026
+ ...(input.KeyConditionExpression != null && { KeyConditionExpression: input.KeyConditionExpression }),
4027
+ ...(input.KeyConditions != null && {
4136
4028
  KeyConditions: serializeAws_json1_0KeyConditions(input.KeyConditions, context),
4137
4029
  }),
4138
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
4139
- ...(input.ProjectionExpression !== undefined &&
4140
- input.ProjectionExpression !== null && { ProjectionExpression: input.ProjectionExpression }),
4141
- ...(input.QueryFilter !== undefined &&
4142
- input.QueryFilter !== null && {
4030
+ ...(input.Limit != null && { Limit: input.Limit }),
4031
+ ...(input.ProjectionExpression != null && { ProjectionExpression: input.ProjectionExpression }),
4032
+ ...(input.QueryFilter != null && {
4143
4033
  QueryFilter: serializeAws_json1_0FilterConditionMap(input.QueryFilter, context),
4144
4034
  }),
4145
- ...(input.ReturnConsumedCapacity !== undefined &&
4146
- input.ReturnConsumedCapacity !== null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
4147
- ...(input.ScanIndexForward !== undefined &&
4148
- input.ScanIndexForward !== null && { ScanIndexForward: input.ScanIndexForward }),
4149
- ...(input.Select !== undefined && input.Select !== null && { Select: input.Select }),
4150
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
4035
+ ...(input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
4036
+ ...(input.ScanIndexForward != null && { ScanIndexForward: input.ScanIndexForward }),
4037
+ ...(input.Select != null && { Select: input.Select }),
4038
+ ...(input.TableName != null && { TableName: input.TableName }),
4151
4039
  };
4152
4040
  };
4153
4041
  const serializeAws_json1_0Replica = (input, context) => {
4154
4042
  return {
4155
- ...(input.RegionName !== undefined && input.RegionName !== null && { RegionName: input.RegionName }),
4043
+ ...(input.RegionName != null && { RegionName: input.RegionName }),
4156
4044
  };
4157
4045
  };
4158
4046
  const serializeAws_json1_0ReplicaAutoScalingUpdate = (input, context) => {
4159
4047
  return {
4160
- ...(input.RegionName !== undefined && input.RegionName !== null && { RegionName: input.RegionName }),
4161
- ...(input.ReplicaGlobalSecondaryIndexUpdates !== undefined &&
4162
- input.ReplicaGlobalSecondaryIndexUpdates !== null && {
4048
+ ...(input.RegionName != null && { RegionName: input.RegionName }),
4049
+ ...(input.ReplicaGlobalSecondaryIndexUpdates != null && {
4163
4050
  ReplicaGlobalSecondaryIndexUpdates: serializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingUpdateList(input.ReplicaGlobalSecondaryIndexUpdates, context),
4164
4051
  }),
4165
- ...(input.ReplicaProvisionedReadCapacityAutoScalingUpdate !== undefined &&
4166
- input.ReplicaProvisionedReadCapacityAutoScalingUpdate !== null && {
4052
+ ...(input.ReplicaProvisionedReadCapacityAutoScalingUpdate != null && {
4167
4053
  ReplicaProvisionedReadCapacityAutoScalingUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ReplicaProvisionedReadCapacityAutoScalingUpdate, context),
4168
4054
  }),
4169
4055
  };
@@ -4180,18 +4066,16 @@ const serializeAws_json1_0ReplicaAutoScalingUpdateList = (input, context) => {
4180
4066
  };
4181
4067
  const serializeAws_json1_0ReplicaGlobalSecondaryIndex = (input, context) => {
4182
4068
  return {
4183
- ...(input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName }),
4184
- ...(input.ProvisionedThroughputOverride !== undefined &&
4185
- input.ProvisionedThroughputOverride !== null && {
4069
+ ...(input.IndexName != null && { IndexName: input.IndexName }),
4070
+ ...(input.ProvisionedThroughputOverride != null && {
4186
4071
  ProvisionedThroughputOverride: serializeAws_json1_0ProvisionedThroughputOverride(input.ProvisionedThroughputOverride, context),
4187
4072
  }),
4188
4073
  };
4189
4074
  };
4190
4075
  const serializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingUpdate = (input, context) => {
4191
4076
  return {
4192
- ...(input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName }),
4193
- ...(input.ProvisionedReadCapacityAutoScalingUpdate !== undefined &&
4194
- input.ProvisionedReadCapacityAutoScalingUpdate !== null && {
4077
+ ...(input.IndexName != null && { IndexName: input.IndexName }),
4078
+ ...(input.ProvisionedReadCapacityAutoScalingUpdate != null && {
4195
4079
  ProvisionedReadCapacityAutoScalingUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ProvisionedReadCapacityAutoScalingUpdate, context),
4196
4080
  }),
4197
4081
  };
@@ -4218,13 +4102,11 @@ const serializeAws_json1_0ReplicaGlobalSecondaryIndexList = (input, context) =>
4218
4102
  };
4219
4103
  const serializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsUpdate = (input, context) => {
4220
4104
  return {
4221
- ...(input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName }),
4222
- ...(input.ProvisionedReadCapacityAutoScalingSettingsUpdate !== undefined &&
4223
- input.ProvisionedReadCapacityAutoScalingSettingsUpdate !== null && {
4105
+ ...(input.IndexName != null && { IndexName: input.IndexName }),
4106
+ ...(input.ProvisionedReadCapacityAutoScalingSettingsUpdate != null && {
4224
4107
  ProvisionedReadCapacityAutoScalingSettingsUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ProvisionedReadCapacityAutoScalingSettingsUpdate, context),
4225
4108
  }),
4226
- ...(input.ProvisionedReadCapacityUnits !== undefined &&
4227
- input.ProvisionedReadCapacityUnits !== null && {
4109
+ ...(input.ProvisionedReadCapacityUnits != null && {
4228
4110
  ProvisionedReadCapacityUnits: input.ProvisionedReadCapacityUnits,
4229
4111
  }),
4230
4112
  };
@@ -4251,21 +4133,17 @@ const serializeAws_json1_0ReplicaList = (input, context) => {
4251
4133
  };
4252
4134
  const serializeAws_json1_0ReplicaSettingsUpdate = (input, context) => {
4253
4135
  return {
4254
- ...(input.RegionName !== undefined && input.RegionName !== null && { RegionName: input.RegionName }),
4255
- ...(input.ReplicaGlobalSecondaryIndexSettingsUpdate !== undefined &&
4256
- input.ReplicaGlobalSecondaryIndexSettingsUpdate !== null && {
4136
+ ...(input.RegionName != null && { RegionName: input.RegionName }),
4137
+ ...(input.ReplicaGlobalSecondaryIndexSettingsUpdate != null && {
4257
4138
  ReplicaGlobalSecondaryIndexSettingsUpdate: serializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsUpdateList(input.ReplicaGlobalSecondaryIndexSettingsUpdate, context),
4258
4139
  }),
4259
- ...(input.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate !== undefined &&
4260
- input.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate !== null && {
4140
+ ...(input.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate != null && {
4261
4141
  ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate, context),
4262
4142
  }),
4263
- ...(input.ReplicaProvisionedReadCapacityUnits !== undefined &&
4264
- input.ReplicaProvisionedReadCapacityUnits !== null && {
4143
+ ...(input.ReplicaProvisionedReadCapacityUnits != null && {
4265
4144
  ReplicaProvisionedReadCapacityUnits: input.ReplicaProvisionedReadCapacityUnits,
4266
4145
  }),
4267
- ...(input.ReplicaTableClass !== undefined &&
4268
- input.ReplicaTableClass !== null && { ReplicaTableClass: input.ReplicaTableClass }),
4146
+ ...(input.ReplicaTableClass != null && { ReplicaTableClass: input.ReplicaTableClass }),
4269
4147
  };
4270
4148
  };
4271
4149
  const serializeAws_json1_0ReplicaSettingsUpdateList = (input, context) => {
@@ -4280,16 +4158,13 @@ const serializeAws_json1_0ReplicaSettingsUpdateList = (input, context) => {
4280
4158
  };
4281
4159
  const serializeAws_json1_0ReplicationGroupUpdate = (input, context) => {
4282
4160
  return {
4283
- ...(input.Create !== undefined &&
4284
- input.Create !== null && {
4161
+ ...(input.Create != null && {
4285
4162
  Create: serializeAws_json1_0CreateReplicationGroupMemberAction(input.Create, context),
4286
4163
  }),
4287
- ...(input.Delete !== undefined &&
4288
- input.Delete !== null && {
4164
+ ...(input.Delete != null && {
4289
4165
  Delete: serializeAws_json1_0DeleteReplicationGroupMemberAction(input.Delete, context),
4290
4166
  }),
4291
- ...(input.Update !== undefined &&
4292
- input.Update !== null && {
4167
+ ...(input.Update != null && {
4293
4168
  Update: serializeAws_json1_0UpdateReplicationGroupMemberAction(input.Update, context),
4294
4169
  }),
4295
4170
  };
@@ -4306,10 +4181,8 @@ const serializeAws_json1_0ReplicationGroupUpdateList = (input, context) => {
4306
4181
  };
4307
4182
  const serializeAws_json1_0ReplicaUpdate = (input, context) => {
4308
4183
  return {
4309
- ...(input.Create !== undefined &&
4310
- input.Create !== null && { Create: serializeAws_json1_0CreateReplicaAction(input.Create, context) }),
4311
- ...(input.Delete !== undefined &&
4312
- input.Delete !== null && { Delete: serializeAws_json1_0DeleteReplicaAction(input.Delete, context) }),
4184
+ ...(input.Create != null && { Create: serializeAws_json1_0CreateReplicaAction(input.Create, context) }),
4185
+ ...(input.Delete != null && { Delete: serializeAws_json1_0DeleteReplicaAction(input.Delete, context) }),
4313
4186
  };
4314
4187
  };
4315
4188
  const serializeAws_json1_0ReplicaUpdateList = (input, context) => {
@@ -4324,112 +4197,84 @@ const serializeAws_json1_0ReplicaUpdateList = (input, context) => {
4324
4197
  };
4325
4198
  const serializeAws_json1_0RestoreTableFromBackupInput = (input, context) => {
4326
4199
  return {
4327
- ...(input.BackupArn !== undefined && input.BackupArn !== null && { BackupArn: input.BackupArn }),
4328
- ...(input.BillingModeOverride !== undefined &&
4329
- input.BillingModeOverride !== null && { BillingModeOverride: input.BillingModeOverride }),
4330
- ...(input.GlobalSecondaryIndexOverride !== undefined &&
4331
- input.GlobalSecondaryIndexOverride !== null && {
4200
+ ...(input.BackupArn != null && { BackupArn: input.BackupArn }),
4201
+ ...(input.BillingModeOverride != null && { BillingModeOverride: input.BillingModeOverride }),
4202
+ ...(input.GlobalSecondaryIndexOverride != null && {
4332
4203
  GlobalSecondaryIndexOverride: serializeAws_json1_0GlobalSecondaryIndexList(input.GlobalSecondaryIndexOverride, context),
4333
4204
  }),
4334
- ...(input.LocalSecondaryIndexOverride !== undefined &&
4335
- input.LocalSecondaryIndexOverride !== null && {
4205
+ ...(input.LocalSecondaryIndexOverride != null && {
4336
4206
  LocalSecondaryIndexOverride: serializeAws_json1_0LocalSecondaryIndexList(input.LocalSecondaryIndexOverride, context),
4337
4207
  }),
4338
- ...(input.ProvisionedThroughputOverride !== undefined &&
4339
- input.ProvisionedThroughputOverride !== null && {
4208
+ ...(input.ProvisionedThroughputOverride != null && {
4340
4209
  ProvisionedThroughputOverride: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughputOverride, context),
4341
4210
  }),
4342
- ...(input.SSESpecificationOverride !== undefined &&
4343
- input.SSESpecificationOverride !== null && {
4211
+ ...(input.SSESpecificationOverride != null && {
4344
4212
  SSESpecificationOverride: serializeAws_json1_0SSESpecification(input.SSESpecificationOverride, context),
4345
4213
  }),
4346
- ...(input.TargetTableName !== undefined &&
4347
- input.TargetTableName !== null && { TargetTableName: input.TargetTableName }),
4214
+ ...(input.TargetTableName != null && { TargetTableName: input.TargetTableName }),
4348
4215
  };
4349
4216
  };
4350
4217
  const serializeAws_json1_0RestoreTableToPointInTimeInput = (input, context) => {
4351
4218
  return {
4352
- ...(input.BillingModeOverride !== undefined &&
4353
- input.BillingModeOverride !== null && { BillingModeOverride: input.BillingModeOverride }),
4354
- ...(input.GlobalSecondaryIndexOverride !== undefined &&
4355
- input.GlobalSecondaryIndexOverride !== null && {
4219
+ ...(input.BillingModeOverride != null && { BillingModeOverride: input.BillingModeOverride }),
4220
+ ...(input.GlobalSecondaryIndexOverride != null && {
4356
4221
  GlobalSecondaryIndexOverride: serializeAws_json1_0GlobalSecondaryIndexList(input.GlobalSecondaryIndexOverride, context),
4357
4222
  }),
4358
- ...(input.LocalSecondaryIndexOverride !== undefined &&
4359
- input.LocalSecondaryIndexOverride !== null && {
4223
+ ...(input.LocalSecondaryIndexOverride != null && {
4360
4224
  LocalSecondaryIndexOverride: serializeAws_json1_0LocalSecondaryIndexList(input.LocalSecondaryIndexOverride, context),
4361
4225
  }),
4362
- ...(input.ProvisionedThroughputOverride !== undefined &&
4363
- input.ProvisionedThroughputOverride !== null && {
4226
+ ...(input.ProvisionedThroughputOverride != null && {
4364
4227
  ProvisionedThroughputOverride: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughputOverride, context),
4365
4228
  }),
4366
- ...(input.RestoreDateTime !== undefined &&
4367
- input.RestoreDateTime !== null && { RestoreDateTime: Math.round(input.RestoreDateTime.getTime() / 1000) }),
4368
- ...(input.SSESpecificationOverride !== undefined &&
4369
- input.SSESpecificationOverride !== null && {
4229
+ ...(input.RestoreDateTime != null && { RestoreDateTime: Math.round(input.RestoreDateTime.getTime() / 1000) }),
4230
+ ...(input.SSESpecificationOverride != null && {
4370
4231
  SSESpecificationOverride: serializeAws_json1_0SSESpecification(input.SSESpecificationOverride, context),
4371
4232
  }),
4372
- ...(input.SourceTableArn !== undefined &&
4373
- input.SourceTableArn !== null && { SourceTableArn: input.SourceTableArn }),
4374
- ...(input.SourceTableName !== undefined &&
4375
- input.SourceTableName !== null && { SourceTableName: input.SourceTableName }),
4376
- ...(input.TargetTableName !== undefined &&
4377
- input.TargetTableName !== null && { TargetTableName: input.TargetTableName }),
4378
- ...(input.UseLatestRestorableTime !== undefined &&
4379
- input.UseLatestRestorableTime !== null && { UseLatestRestorableTime: input.UseLatestRestorableTime }),
4233
+ ...(input.SourceTableArn != null && { SourceTableArn: input.SourceTableArn }),
4234
+ ...(input.SourceTableName != null && { SourceTableName: input.SourceTableName }),
4235
+ ...(input.TargetTableName != null && { TargetTableName: input.TargetTableName }),
4236
+ ...(input.UseLatestRestorableTime != null && { UseLatestRestorableTime: input.UseLatestRestorableTime }),
4380
4237
  };
4381
4238
  };
4382
4239
  const serializeAws_json1_0ScanInput = (input, context) => {
4383
4240
  return {
4384
- ...(input.AttributesToGet !== undefined &&
4385
- input.AttributesToGet !== null && {
4241
+ ...(input.AttributesToGet != null && {
4386
4242
  AttributesToGet: serializeAws_json1_0AttributeNameList(input.AttributesToGet, context),
4387
4243
  }),
4388
- ...(input.ConditionalOperator !== undefined &&
4389
- input.ConditionalOperator !== null && { ConditionalOperator: input.ConditionalOperator }),
4390
- ...(input.ConsistentRead !== undefined &&
4391
- input.ConsistentRead !== null && { ConsistentRead: input.ConsistentRead }),
4392
- ...(input.ExclusiveStartKey !== undefined &&
4393
- input.ExclusiveStartKey !== null && {
4244
+ ...(input.ConditionalOperator != null && { ConditionalOperator: input.ConditionalOperator }),
4245
+ ...(input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead }),
4246
+ ...(input.ExclusiveStartKey != null && {
4394
4247
  ExclusiveStartKey: serializeAws_json1_0Key(input.ExclusiveStartKey, context),
4395
4248
  }),
4396
- ...(input.ExpressionAttributeNames !== undefined &&
4397
- input.ExpressionAttributeNames !== null && {
4249
+ ...(input.ExpressionAttributeNames != null && {
4398
4250
  ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context),
4399
4251
  }),
4400
- ...(input.ExpressionAttributeValues !== undefined &&
4401
- input.ExpressionAttributeValues !== null && {
4252
+ ...(input.ExpressionAttributeValues != null && {
4402
4253
  ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context),
4403
4254
  }),
4404
- ...(input.FilterExpression !== undefined &&
4405
- input.FilterExpression !== null && { FilterExpression: input.FilterExpression }),
4406
- ...(input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName }),
4407
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
4408
- ...(input.ProjectionExpression !== undefined &&
4409
- input.ProjectionExpression !== null && { ProjectionExpression: input.ProjectionExpression }),
4410
- ...(input.ReturnConsumedCapacity !== undefined &&
4411
- input.ReturnConsumedCapacity !== null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
4412
- ...(input.ScanFilter !== undefined &&
4413
- input.ScanFilter !== null && { ScanFilter: serializeAws_json1_0FilterConditionMap(input.ScanFilter, context) }),
4414
- ...(input.Segment !== undefined && input.Segment !== null && { Segment: input.Segment }),
4415
- ...(input.Select !== undefined && input.Select !== null && { Select: input.Select }),
4416
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
4417
- ...(input.TotalSegments !== undefined && input.TotalSegments !== null && { TotalSegments: input.TotalSegments }),
4255
+ ...(input.FilterExpression != null && { FilterExpression: input.FilterExpression }),
4256
+ ...(input.IndexName != null && { IndexName: input.IndexName }),
4257
+ ...(input.Limit != null && { Limit: input.Limit }),
4258
+ ...(input.ProjectionExpression != null && { ProjectionExpression: input.ProjectionExpression }),
4259
+ ...(input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
4260
+ ...(input.ScanFilter != null && { ScanFilter: serializeAws_json1_0FilterConditionMap(input.ScanFilter, context) }),
4261
+ ...(input.Segment != null && { Segment: input.Segment }),
4262
+ ...(input.Select != null && { Select: input.Select }),
4263
+ ...(input.TableName != null && { TableName: input.TableName }),
4264
+ ...(input.TotalSegments != null && { TotalSegments: input.TotalSegments }),
4418
4265
  };
4419
4266
  };
4420
4267
  const serializeAws_json1_0SSESpecification = (input, context) => {
4421
4268
  return {
4422
- ...(input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }),
4423
- ...(input.KMSMasterKeyId !== undefined &&
4424
- input.KMSMasterKeyId !== null && { KMSMasterKeyId: input.KMSMasterKeyId }),
4425
- ...(input.SSEType !== undefined && input.SSEType !== null && { SSEType: input.SSEType }),
4269
+ ...(input.Enabled != null && { Enabled: input.Enabled }),
4270
+ ...(input.KMSMasterKeyId != null && { KMSMasterKeyId: input.KMSMasterKeyId }),
4271
+ ...(input.SSEType != null && { SSEType: input.SSEType }),
4426
4272
  };
4427
4273
  };
4428
4274
  const serializeAws_json1_0StreamSpecification = (input, context) => {
4429
4275
  return {
4430
- ...(input.StreamEnabled !== undefined && input.StreamEnabled !== null && { StreamEnabled: input.StreamEnabled }),
4431
- ...(input.StreamViewType !== undefined &&
4432
- input.StreamViewType !== null && { StreamViewType: input.StreamViewType }),
4276
+ ...(input.StreamEnabled != null && { StreamEnabled: input.StreamEnabled }),
4277
+ ...(input.StreamViewType != null && { StreamViewType: input.StreamViewType }),
4433
4278
  };
4434
4279
  };
4435
4280
  const serializeAws_json1_0StringSetAttributeValue = (input, context) => {
@@ -4444,8 +4289,8 @@ const serializeAws_json1_0StringSetAttributeValue = (input, context) => {
4444
4289
  };
4445
4290
  const serializeAws_json1_0Tag = (input, context) => {
4446
4291
  return {
4447
- ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
4448
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
4292
+ ...(input.Key != null && { Key: input.Key }),
4293
+ ...(input.Value != null && { Value: input.Value }),
4449
4294
  };
4450
4295
  };
4451
4296
  const serializeAws_json1_0TagKeyList = (input, context) => {
@@ -4470,19 +4315,19 @@ const serializeAws_json1_0TagList = (input, context) => {
4470
4315
  };
4471
4316
  const serializeAws_json1_0TagResourceInput = (input, context) => {
4472
4317
  return {
4473
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
4474
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
4318
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
4319
+ ...(input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
4475
4320
  };
4476
4321
  };
4477
4322
  const serializeAws_json1_0TimeToLiveSpecification = (input, context) => {
4478
4323
  return {
4479
- ...(input.AttributeName !== undefined && input.AttributeName !== null && { AttributeName: input.AttributeName }),
4480
- ...(input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }),
4324
+ ...(input.AttributeName != null && { AttributeName: input.AttributeName }),
4325
+ ...(input.Enabled != null && { Enabled: input.Enabled }),
4481
4326
  };
4482
4327
  };
4483
4328
  const serializeAws_json1_0TransactGetItem = (input, context) => {
4484
4329
  return {
4485
- ...(input.Get !== undefined && input.Get !== null && { Get: serializeAws_json1_0Get(input.Get, context) }),
4330
+ ...(input.Get != null && { Get: serializeAws_json1_0Get(input.Get, context) }),
4486
4331
  };
4487
4332
  };
4488
4333
  const serializeAws_json1_0TransactGetItemList = (input, context) => {
@@ -4497,25 +4342,20 @@ const serializeAws_json1_0TransactGetItemList = (input, context) => {
4497
4342
  };
4498
4343
  const serializeAws_json1_0TransactGetItemsInput = (input, context) => {
4499
4344
  return {
4500
- ...(input.ReturnConsumedCapacity !== undefined &&
4501
- input.ReturnConsumedCapacity !== null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
4502
- ...(input.TransactItems !== undefined &&
4503
- input.TransactItems !== null && {
4345
+ ...(input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
4346
+ ...(input.TransactItems != null && {
4504
4347
  TransactItems: serializeAws_json1_0TransactGetItemList(input.TransactItems, context),
4505
4348
  }),
4506
4349
  };
4507
4350
  };
4508
4351
  const serializeAws_json1_0TransactWriteItem = (input, context) => {
4509
4352
  return {
4510
- ...(input.ConditionCheck !== undefined &&
4511
- input.ConditionCheck !== null && {
4353
+ ...(input.ConditionCheck != null && {
4512
4354
  ConditionCheck: serializeAws_json1_0ConditionCheck(input.ConditionCheck, context),
4513
4355
  }),
4514
- ...(input.Delete !== undefined &&
4515
- input.Delete !== null && { Delete: serializeAws_json1_0Delete(input.Delete, context) }),
4516
- ...(input.Put !== undefined && input.Put !== null && { Put: serializeAws_json1_0Put(input.Put, context) }),
4517
- ...(input.Update !== undefined &&
4518
- input.Update !== null && { Update: serializeAws_json1_0Update(input.Update, context) }),
4356
+ ...(input.Delete != null && { Delete: serializeAws_json1_0Delete(input.Delete, context) }),
4357
+ ...(input.Put != null && { Put: serializeAws_json1_0Put(input.Put, context) }),
4358
+ ...(input.Update != null && { Update: serializeAws_json1_0Update(input.Update, context) }),
4519
4359
  };
4520
4360
  };
4521
4361
  const serializeAws_json1_0TransactWriteItemList = (input, context) => {
@@ -4532,218 +4372,177 @@ const serializeAws_json1_0TransactWriteItemsInput = (input, context) => {
4532
4372
  var _a;
4533
4373
  return {
4534
4374
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
4535
- ...(input.ReturnConsumedCapacity !== undefined &&
4536
- input.ReturnConsumedCapacity !== null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
4537
- ...(input.ReturnItemCollectionMetrics !== undefined &&
4538
- input.ReturnItemCollectionMetrics !== null && { ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics }),
4539
- ...(input.TransactItems !== undefined &&
4540
- input.TransactItems !== null && {
4375
+ ...(input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
4376
+ ...(input.ReturnItemCollectionMetrics != null && {
4377
+ ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics,
4378
+ }),
4379
+ ...(input.TransactItems != null && {
4541
4380
  TransactItems: serializeAws_json1_0TransactWriteItemList(input.TransactItems, context),
4542
4381
  }),
4543
4382
  };
4544
4383
  };
4545
4384
  const serializeAws_json1_0UntagResourceInput = (input, context) => {
4546
4385
  return {
4547
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
4548
- ...(input.TagKeys !== undefined &&
4549
- input.TagKeys !== null && { TagKeys: serializeAws_json1_0TagKeyList(input.TagKeys, context) }),
4386
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
4387
+ ...(input.TagKeys != null && { TagKeys: serializeAws_json1_0TagKeyList(input.TagKeys, context) }),
4550
4388
  };
4551
4389
  };
4552
4390
  const serializeAws_json1_0Update = (input, context) => {
4553
4391
  return {
4554
- ...(input.ConditionExpression !== undefined &&
4555
- input.ConditionExpression !== null && { ConditionExpression: input.ConditionExpression }),
4556
- ...(input.ExpressionAttributeNames !== undefined &&
4557
- input.ExpressionAttributeNames !== null && {
4392
+ ...(input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }),
4393
+ ...(input.ExpressionAttributeNames != null && {
4558
4394
  ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context),
4559
4395
  }),
4560
- ...(input.ExpressionAttributeValues !== undefined &&
4561
- input.ExpressionAttributeValues !== null && {
4396
+ ...(input.ExpressionAttributeValues != null && {
4562
4397
  ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context),
4563
4398
  }),
4564
- ...(input.Key !== undefined && input.Key !== null && { Key: serializeAws_json1_0Key(input.Key, context) }),
4565
- ...(input.ReturnValuesOnConditionCheckFailure !== undefined &&
4566
- input.ReturnValuesOnConditionCheckFailure !== null && {
4399
+ ...(input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }),
4400
+ ...(input.ReturnValuesOnConditionCheckFailure != null && {
4567
4401
  ReturnValuesOnConditionCheckFailure: input.ReturnValuesOnConditionCheckFailure,
4568
4402
  }),
4569
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
4570
- ...(input.UpdateExpression !== undefined &&
4571
- input.UpdateExpression !== null && { UpdateExpression: input.UpdateExpression }),
4403
+ ...(input.TableName != null && { TableName: input.TableName }),
4404
+ ...(input.UpdateExpression != null && { UpdateExpression: input.UpdateExpression }),
4572
4405
  };
4573
4406
  };
4574
4407
  const serializeAws_json1_0UpdateContinuousBackupsInput = (input, context) => {
4575
4408
  return {
4576
- ...(input.PointInTimeRecoverySpecification !== undefined &&
4577
- input.PointInTimeRecoverySpecification !== null && {
4409
+ ...(input.PointInTimeRecoverySpecification != null && {
4578
4410
  PointInTimeRecoverySpecification: serializeAws_json1_0PointInTimeRecoverySpecification(input.PointInTimeRecoverySpecification, context),
4579
4411
  }),
4580
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
4412
+ ...(input.TableName != null && { TableName: input.TableName }),
4581
4413
  };
4582
4414
  };
4583
4415
  const serializeAws_json1_0UpdateContributorInsightsInput = (input, context) => {
4584
4416
  return {
4585
- ...(input.ContributorInsightsAction !== undefined &&
4586
- input.ContributorInsightsAction !== null && { ContributorInsightsAction: input.ContributorInsightsAction }),
4587
- ...(input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName }),
4588
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
4417
+ ...(input.ContributorInsightsAction != null && { ContributorInsightsAction: input.ContributorInsightsAction }),
4418
+ ...(input.IndexName != null && { IndexName: input.IndexName }),
4419
+ ...(input.TableName != null && { TableName: input.TableName }),
4589
4420
  };
4590
4421
  };
4591
4422
  const serializeAws_json1_0UpdateGlobalSecondaryIndexAction = (input, context) => {
4592
4423
  return {
4593
- ...(input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName }),
4594
- ...(input.ProvisionedThroughput !== undefined &&
4595
- input.ProvisionedThroughput !== null && {
4424
+ ...(input.IndexName != null && { IndexName: input.IndexName }),
4425
+ ...(input.ProvisionedThroughput != null && {
4596
4426
  ProvisionedThroughput: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughput, context),
4597
4427
  }),
4598
4428
  };
4599
4429
  };
4600
4430
  const serializeAws_json1_0UpdateGlobalTableInput = (input, context) => {
4601
4431
  return {
4602
- ...(input.GlobalTableName !== undefined &&
4603
- input.GlobalTableName !== null && { GlobalTableName: input.GlobalTableName }),
4604
- ...(input.ReplicaUpdates !== undefined &&
4605
- input.ReplicaUpdates !== null && {
4432
+ ...(input.GlobalTableName != null && { GlobalTableName: input.GlobalTableName }),
4433
+ ...(input.ReplicaUpdates != null && {
4606
4434
  ReplicaUpdates: serializeAws_json1_0ReplicaUpdateList(input.ReplicaUpdates, context),
4607
4435
  }),
4608
4436
  };
4609
4437
  };
4610
4438
  const serializeAws_json1_0UpdateGlobalTableSettingsInput = (input, context) => {
4611
4439
  return {
4612
- ...(input.GlobalTableBillingMode !== undefined &&
4613
- input.GlobalTableBillingMode !== null && { GlobalTableBillingMode: input.GlobalTableBillingMode }),
4614
- ...(input.GlobalTableGlobalSecondaryIndexSettingsUpdate !== undefined &&
4615
- input.GlobalTableGlobalSecondaryIndexSettingsUpdate !== null && {
4440
+ ...(input.GlobalTableBillingMode != null && { GlobalTableBillingMode: input.GlobalTableBillingMode }),
4441
+ ...(input.GlobalTableGlobalSecondaryIndexSettingsUpdate != null && {
4616
4442
  GlobalTableGlobalSecondaryIndexSettingsUpdate: serializeAws_json1_0GlobalTableGlobalSecondaryIndexSettingsUpdateList(input.GlobalTableGlobalSecondaryIndexSettingsUpdate, context),
4617
4443
  }),
4618
- ...(input.GlobalTableName !== undefined &&
4619
- input.GlobalTableName !== null && { GlobalTableName: input.GlobalTableName }),
4620
- ...(input.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate !== undefined &&
4621
- input.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate !== null && {
4444
+ ...(input.GlobalTableName != null && { GlobalTableName: input.GlobalTableName }),
4445
+ ...(input.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate != null && {
4622
4446
  GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate, context),
4623
4447
  }),
4624
- ...(input.GlobalTableProvisionedWriteCapacityUnits !== undefined &&
4625
- input.GlobalTableProvisionedWriteCapacityUnits !== null && {
4448
+ ...(input.GlobalTableProvisionedWriteCapacityUnits != null && {
4626
4449
  GlobalTableProvisionedWriteCapacityUnits: input.GlobalTableProvisionedWriteCapacityUnits,
4627
4450
  }),
4628
- ...(input.ReplicaSettingsUpdate !== undefined &&
4629
- input.ReplicaSettingsUpdate !== null && {
4451
+ ...(input.ReplicaSettingsUpdate != null && {
4630
4452
  ReplicaSettingsUpdate: serializeAws_json1_0ReplicaSettingsUpdateList(input.ReplicaSettingsUpdate, context),
4631
4453
  }),
4632
4454
  };
4633
4455
  };
4634
4456
  const serializeAws_json1_0UpdateItemInput = (input, context) => {
4635
4457
  return {
4636
- ...(input.AttributeUpdates !== undefined &&
4637
- input.AttributeUpdates !== null && {
4458
+ ...(input.AttributeUpdates != null && {
4638
4459
  AttributeUpdates: serializeAws_json1_0AttributeUpdates(input.AttributeUpdates, context),
4639
4460
  }),
4640
- ...(input.ConditionExpression !== undefined &&
4641
- input.ConditionExpression !== null && { ConditionExpression: input.ConditionExpression }),
4642
- ...(input.ConditionalOperator !== undefined &&
4643
- input.ConditionalOperator !== null && { ConditionalOperator: input.ConditionalOperator }),
4644
- ...(input.Expected !== undefined &&
4645
- input.Expected !== null && { Expected: serializeAws_json1_0ExpectedAttributeMap(input.Expected, context) }),
4646
- ...(input.ExpressionAttributeNames !== undefined &&
4647
- input.ExpressionAttributeNames !== null && {
4461
+ ...(input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }),
4462
+ ...(input.ConditionalOperator != null && { ConditionalOperator: input.ConditionalOperator }),
4463
+ ...(input.Expected != null && { Expected: serializeAws_json1_0ExpectedAttributeMap(input.Expected, context) }),
4464
+ ...(input.ExpressionAttributeNames != null && {
4648
4465
  ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context),
4649
4466
  }),
4650
- ...(input.ExpressionAttributeValues !== undefined &&
4651
- input.ExpressionAttributeValues !== null && {
4467
+ ...(input.ExpressionAttributeValues != null && {
4652
4468
  ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context),
4653
4469
  }),
4654
- ...(input.Key !== undefined && input.Key !== null && { Key: serializeAws_json1_0Key(input.Key, context) }),
4655
- ...(input.ReturnConsumedCapacity !== undefined &&
4656
- input.ReturnConsumedCapacity !== null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
4657
- ...(input.ReturnItemCollectionMetrics !== undefined &&
4658
- input.ReturnItemCollectionMetrics !== null && { ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics }),
4659
- ...(input.ReturnValues !== undefined && input.ReturnValues !== null && { ReturnValues: input.ReturnValues }),
4660
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
4661
- ...(input.UpdateExpression !== undefined &&
4662
- input.UpdateExpression !== null && { UpdateExpression: input.UpdateExpression }),
4470
+ ...(input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }),
4471
+ ...(input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
4472
+ ...(input.ReturnItemCollectionMetrics != null && {
4473
+ ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics,
4474
+ }),
4475
+ ...(input.ReturnValues != null && { ReturnValues: input.ReturnValues }),
4476
+ ...(input.TableName != null && { TableName: input.TableName }),
4477
+ ...(input.UpdateExpression != null && { UpdateExpression: input.UpdateExpression }),
4663
4478
  };
4664
4479
  };
4665
4480
  const serializeAws_json1_0UpdateReplicationGroupMemberAction = (input, context) => {
4666
4481
  return {
4667
- ...(input.GlobalSecondaryIndexes !== undefined &&
4668
- input.GlobalSecondaryIndexes !== null && {
4482
+ ...(input.GlobalSecondaryIndexes != null && {
4669
4483
  GlobalSecondaryIndexes: serializeAws_json1_0ReplicaGlobalSecondaryIndexList(input.GlobalSecondaryIndexes, context),
4670
4484
  }),
4671
- ...(input.KMSMasterKeyId !== undefined &&
4672
- input.KMSMasterKeyId !== null && { KMSMasterKeyId: input.KMSMasterKeyId }),
4673
- ...(input.ProvisionedThroughputOverride !== undefined &&
4674
- input.ProvisionedThroughputOverride !== null && {
4485
+ ...(input.KMSMasterKeyId != null && { KMSMasterKeyId: input.KMSMasterKeyId }),
4486
+ ...(input.ProvisionedThroughputOverride != null && {
4675
4487
  ProvisionedThroughputOverride: serializeAws_json1_0ProvisionedThroughputOverride(input.ProvisionedThroughputOverride, context),
4676
4488
  }),
4677
- ...(input.RegionName !== undefined && input.RegionName !== null && { RegionName: input.RegionName }),
4678
- ...(input.TableClassOverride !== undefined &&
4679
- input.TableClassOverride !== null && { TableClassOverride: input.TableClassOverride }),
4489
+ ...(input.RegionName != null && { RegionName: input.RegionName }),
4490
+ ...(input.TableClassOverride != null && { TableClassOverride: input.TableClassOverride }),
4680
4491
  };
4681
4492
  };
4682
4493
  const serializeAws_json1_0UpdateTableInput = (input, context) => {
4683
4494
  return {
4684
- ...(input.AttributeDefinitions !== undefined &&
4685
- input.AttributeDefinitions !== null && {
4495
+ ...(input.AttributeDefinitions != null && {
4686
4496
  AttributeDefinitions: serializeAws_json1_0AttributeDefinitions(input.AttributeDefinitions, context),
4687
4497
  }),
4688
- ...(input.BillingMode !== undefined && input.BillingMode !== null && { BillingMode: input.BillingMode }),
4689
- ...(input.GlobalSecondaryIndexUpdates !== undefined &&
4690
- input.GlobalSecondaryIndexUpdates !== null && {
4498
+ ...(input.BillingMode != null && { BillingMode: input.BillingMode }),
4499
+ ...(input.GlobalSecondaryIndexUpdates != null && {
4691
4500
  GlobalSecondaryIndexUpdates: serializeAws_json1_0GlobalSecondaryIndexUpdateList(input.GlobalSecondaryIndexUpdates, context),
4692
4501
  }),
4693
- ...(input.ProvisionedThroughput !== undefined &&
4694
- input.ProvisionedThroughput !== null && {
4502
+ ...(input.ProvisionedThroughput != null && {
4695
4503
  ProvisionedThroughput: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughput, context),
4696
4504
  }),
4697
- ...(input.ReplicaUpdates !== undefined &&
4698
- input.ReplicaUpdates !== null && {
4505
+ ...(input.ReplicaUpdates != null && {
4699
4506
  ReplicaUpdates: serializeAws_json1_0ReplicationGroupUpdateList(input.ReplicaUpdates, context),
4700
4507
  }),
4701
- ...(input.SSESpecification !== undefined &&
4702
- input.SSESpecification !== null && {
4508
+ ...(input.SSESpecification != null && {
4703
4509
  SSESpecification: serializeAws_json1_0SSESpecification(input.SSESpecification, context),
4704
4510
  }),
4705
- ...(input.StreamSpecification !== undefined &&
4706
- input.StreamSpecification !== null && {
4511
+ ...(input.StreamSpecification != null && {
4707
4512
  StreamSpecification: serializeAws_json1_0StreamSpecification(input.StreamSpecification, context),
4708
4513
  }),
4709
- ...(input.TableClass !== undefined && input.TableClass !== null && { TableClass: input.TableClass }),
4710
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
4514
+ ...(input.TableClass != null && { TableClass: input.TableClass }),
4515
+ ...(input.TableName != null && { TableName: input.TableName }),
4711
4516
  };
4712
4517
  };
4713
4518
  const serializeAws_json1_0UpdateTableReplicaAutoScalingInput = (input, context) => {
4714
4519
  return {
4715
- ...(input.GlobalSecondaryIndexUpdates !== undefined &&
4716
- input.GlobalSecondaryIndexUpdates !== null && {
4520
+ ...(input.GlobalSecondaryIndexUpdates != null && {
4717
4521
  GlobalSecondaryIndexUpdates: serializeAws_json1_0GlobalSecondaryIndexAutoScalingUpdateList(input.GlobalSecondaryIndexUpdates, context),
4718
4522
  }),
4719
- ...(input.ProvisionedWriteCapacityAutoScalingUpdate !== undefined &&
4720
- input.ProvisionedWriteCapacityAutoScalingUpdate !== null && {
4523
+ ...(input.ProvisionedWriteCapacityAutoScalingUpdate != null && {
4721
4524
  ProvisionedWriteCapacityAutoScalingUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ProvisionedWriteCapacityAutoScalingUpdate, context),
4722
4525
  }),
4723
- ...(input.ReplicaUpdates !== undefined &&
4724
- input.ReplicaUpdates !== null && {
4526
+ ...(input.ReplicaUpdates != null && {
4725
4527
  ReplicaUpdates: serializeAws_json1_0ReplicaAutoScalingUpdateList(input.ReplicaUpdates, context),
4726
4528
  }),
4727
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
4529
+ ...(input.TableName != null && { TableName: input.TableName }),
4728
4530
  };
4729
4531
  };
4730
4532
  const serializeAws_json1_0UpdateTimeToLiveInput = (input, context) => {
4731
4533
  return {
4732
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
4733
- ...(input.TimeToLiveSpecification !== undefined &&
4734
- input.TimeToLiveSpecification !== null && {
4534
+ ...(input.TableName != null && { TableName: input.TableName }),
4535
+ ...(input.TimeToLiveSpecification != null && {
4735
4536
  TimeToLiveSpecification: serializeAws_json1_0TimeToLiveSpecification(input.TimeToLiveSpecification, context),
4736
4537
  }),
4737
4538
  };
4738
4539
  };
4739
4540
  const serializeAws_json1_0WriteRequest = (input, context) => {
4740
4541
  return {
4741
- ...(input.DeleteRequest !== undefined &&
4742
- input.DeleteRequest !== null && {
4542
+ ...(input.DeleteRequest != null && {
4743
4543
  DeleteRequest: serializeAws_json1_0DeleteRequest(input.DeleteRequest, context),
4744
4544
  }),
4745
- ...(input.PutRequest !== undefined &&
4746
- input.PutRequest !== null && { PutRequest: serializeAws_json1_0PutRequest(input.PutRequest, context) }),
4545
+ ...(input.PutRequest != null && { PutRequest: serializeAws_json1_0PutRequest(input.PutRequest, context) }),
4747
4546
  };
4748
4547
  };
4749
4548
  const serializeAws_json1_0WriteRequests = (input, context) => {
@@ -4759,7 +4558,7 @@ const serializeAws_json1_0WriteRequests = (input, context) => {
4759
4558
  const deserializeAws_json1_0ArchivalSummary = (output, context) => {
4760
4559
  return {
4761
4560
  ArchivalBackupArn: (0, smithy_client_1.expectString)(output.ArchivalBackupArn),
4762
- ArchivalDateTime: output.ArchivalDateTime !== undefined && output.ArchivalDateTime !== null
4561
+ ArchivalDateTime: output.ArchivalDateTime != null
4763
4562
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ArchivalDateTime)))
4764
4563
  : undefined,
4765
4564
  ArchivalReason: (0, smithy_client_1.expectString)(output.ArchivalReason),
@@ -4852,8 +4651,7 @@ const deserializeAws_json1_0AttributeValue = (output, context) => {
4852
4651
  const deserializeAws_json1_0AutoScalingPolicyDescription = (output, context) => {
4853
4652
  return {
4854
4653
  PolicyName: (0, smithy_client_1.expectString)(output.PolicyName),
4855
- TargetTrackingScalingPolicyConfiguration: output.TargetTrackingScalingPolicyConfiguration !== undefined &&
4856
- output.TargetTrackingScalingPolicyConfiguration !== null
4654
+ TargetTrackingScalingPolicyConfiguration: output.TargetTrackingScalingPolicyConfiguration != null
4857
4655
  ? deserializeAws_json1_0AutoScalingTargetTrackingScalingPolicyConfigurationDescription(output.TargetTrackingScalingPolicyConfiguration, context)
4858
4656
  : undefined,
4859
4657
  };
@@ -4875,7 +4673,7 @@ const deserializeAws_json1_0AutoScalingSettingsDescription = (output, context) =
4875
4673
  AutoScalingRoleArn: (0, smithy_client_1.expectString)(output.AutoScalingRoleArn),
4876
4674
  MaximumUnits: (0, smithy_client_1.expectLong)(output.MaximumUnits),
4877
4675
  MinimumUnits: (0, smithy_client_1.expectLong)(output.MinimumUnits),
4878
- ScalingPolicies: output.ScalingPolicies !== undefined && output.ScalingPolicies !== null
4676
+ ScalingPolicies: output.ScalingPolicies != null
4879
4677
  ? deserializeAws_json1_0AutoScalingPolicyDescriptionList(output.ScalingPolicies, context)
4880
4678
  : undefined,
4881
4679
  };
@@ -4890,13 +4688,11 @@ const deserializeAws_json1_0AutoScalingTargetTrackingScalingPolicyConfigurationD
4890
4688
  };
4891
4689
  const deserializeAws_json1_0BackupDescription = (output, context) => {
4892
4690
  return {
4893
- BackupDetails: output.BackupDetails !== undefined && output.BackupDetails !== null
4894
- ? deserializeAws_json1_0BackupDetails(output.BackupDetails, context)
4895
- : undefined,
4896
- SourceTableDetails: output.SourceTableDetails !== undefined && output.SourceTableDetails !== null
4691
+ BackupDetails: output.BackupDetails != null ? deserializeAws_json1_0BackupDetails(output.BackupDetails, context) : undefined,
4692
+ SourceTableDetails: output.SourceTableDetails != null
4897
4693
  ? deserializeAws_json1_0SourceTableDetails(output.SourceTableDetails, context)
4898
4694
  : undefined,
4899
- SourceTableFeatureDetails: output.SourceTableFeatureDetails !== undefined && output.SourceTableFeatureDetails !== null
4695
+ SourceTableFeatureDetails: output.SourceTableFeatureDetails != null
4900
4696
  ? deserializeAws_json1_0SourceTableFeatureDetails(output.SourceTableFeatureDetails, context)
4901
4697
  : undefined,
4902
4698
  };
@@ -4904,10 +4700,10 @@ const deserializeAws_json1_0BackupDescription = (output, context) => {
4904
4700
  const deserializeAws_json1_0BackupDetails = (output, context) => {
4905
4701
  return {
4906
4702
  BackupArn: (0, smithy_client_1.expectString)(output.BackupArn),
4907
- BackupCreationDateTime: output.BackupCreationDateTime !== undefined && output.BackupCreationDateTime !== null
4703
+ BackupCreationDateTime: output.BackupCreationDateTime != null
4908
4704
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.BackupCreationDateTime)))
4909
4705
  : undefined,
4910
- BackupExpiryDateTime: output.BackupExpiryDateTime !== undefined && output.BackupExpiryDateTime !== null
4706
+ BackupExpiryDateTime: output.BackupExpiryDateTime != null
4911
4707
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.BackupExpiryDateTime)))
4912
4708
  : undefined,
4913
4709
  BackupName: (0, smithy_client_1.expectString)(output.BackupName),
@@ -4940,10 +4736,10 @@ const deserializeAws_json1_0BackupSummaries = (output, context) => {
4940
4736
  const deserializeAws_json1_0BackupSummary = (output, context) => {
4941
4737
  return {
4942
4738
  BackupArn: (0, smithy_client_1.expectString)(output.BackupArn),
4943
- BackupCreationDateTime: output.BackupCreationDateTime !== undefined && output.BackupCreationDateTime !== null
4739
+ BackupCreationDateTime: output.BackupCreationDateTime != null
4944
4740
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.BackupCreationDateTime)))
4945
4741
  : undefined,
4946
- BackupExpiryDateTime: output.BackupExpiryDateTime !== undefined && output.BackupExpiryDateTime !== null
4742
+ BackupExpiryDateTime: output.BackupExpiryDateTime != null
4947
4743
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.BackupExpiryDateTime)))
4948
4744
  : undefined,
4949
4745
  BackupName: (0, smithy_client_1.expectString)(output.BackupName),
@@ -4957,23 +4753,19 @@ const deserializeAws_json1_0BackupSummary = (output, context) => {
4957
4753
  };
4958
4754
  const deserializeAws_json1_0BatchExecuteStatementOutput = (output, context) => {
4959
4755
  return {
4960
- ConsumedCapacity: output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null
4756
+ ConsumedCapacity: output.ConsumedCapacity != null
4961
4757
  ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context)
4962
4758
  : undefined,
4963
- Responses: output.Responses !== undefined && output.Responses !== null
4964
- ? deserializeAws_json1_0PartiQLBatchResponse(output.Responses, context)
4965
- : undefined,
4759
+ Responses: output.Responses != null ? deserializeAws_json1_0PartiQLBatchResponse(output.Responses, context) : undefined,
4966
4760
  };
4967
4761
  };
4968
4762
  const deserializeAws_json1_0BatchGetItemOutput = (output, context) => {
4969
4763
  return {
4970
- ConsumedCapacity: output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null
4764
+ ConsumedCapacity: output.ConsumedCapacity != null
4971
4765
  ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context)
4972
4766
  : undefined,
4973
- Responses: output.Responses !== undefined && output.Responses !== null
4974
- ? deserializeAws_json1_0BatchGetResponseMap(output.Responses, context)
4975
- : undefined,
4976
- UnprocessedKeys: output.UnprocessedKeys !== undefined && output.UnprocessedKeys !== null
4767
+ Responses: output.Responses != null ? deserializeAws_json1_0BatchGetResponseMap(output.Responses, context) : undefined,
4768
+ UnprocessedKeys: output.UnprocessedKeys != null
4977
4769
  ? deserializeAws_json1_0BatchGetRequestMap(output.UnprocessedKeys, context)
4978
4770
  : undefined,
4979
4771
  };
@@ -5008,24 +4800,20 @@ const deserializeAws_json1_0BatchStatementError = (output, context) => {
5008
4800
  };
5009
4801
  const deserializeAws_json1_0BatchStatementResponse = (output, context) => {
5010
4802
  return {
5011
- Error: output.Error !== undefined && output.Error !== null
5012
- ? deserializeAws_json1_0BatchStatementError(output.Error, context)
5013
- : undefined,
5014
- Item: output.Item !== undefined && output.Item !== null
5015
- ? deserializeAws_json1_0AttributeMap(output.Item, context)
5016
- : undefined,
4803
+ Error: output.Error != null ? deserializeAws_json1_0BatchStatementError(output.Error, context) : undefined,
4804
+ Item: output.Item != null ? deserializeAws_json1_0AttributeMap(output.Item, context) : undefined,
5017
4805
  TableName: (0, smithy_client_1.expectString)(output.TableName),
5018
4806
  };
5019
4807
  };
5020
4808
  const deserializeAws_json1_0BatchWriteItemOutput = (output, context) => {
5021
4809
  return {
5022
- ConsumedCapacity: output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null
4810
+ ConsumedCapacity: output.ConsumedCapacity != null
5023
4811
  ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context)
5024
4812
  : undefined,
5025
- ItemCollectionMetrics: output.ItemCollectionMetrics !== undefined && output.ItemCollectionMetrics !== null
4813
+ ItemCollectionMetrics: output.ItemCollectionMetrics != null
5026
4814
  ? deserializeAws_json1_0ItemCollectionMetricsPerTable(output.ItemCollectionMetrics, context)
5027
4815
  : undefined,
5028
- UnprocessedItems: output.UnprocessedItems !== undefined && output.UnprocessedItems !== null
4816
+ UnprocessedItems: output.UnprocessedItems != null
5029
4817
  ? deserializeAws_json1_0BatchWriteItemRequestMap(output.UnprocessedItems, context)
5030
4818
  : undefined,
5031
4819
  };
@@ -5044,7 +4832,7 @@ const deserializeAws_json1_0BatchWriteItemRequestMap = (output, context) => {
5044
4832
  const deserializeAws_json1_0BillingModeSummary = (output, context) => {
5045
4833
  return {
5046
4834
  BillingMode: (0, smithy_client_1.expectString)(output.BillingMode),
5047
- LastUpdateToPayPerRequestDateTime: output.LastUpdateToPayPerRequestDateTime !== undefined && output.LastUpdateToPayPerRequestDateTime !== null
4835
+ LastUpdateToPayPerRequestDateTime: output.LastUpdateToPayPerRequestDateTime != null
5048
4836
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdateToPayPerRequestDateTime)))
5049
4837
  : undefined,
5050
4838
  };
@@ -5063,9 +4851,7 @@ const deserializeAws_json1_0BinarySetAttributeValue = (output, context) => {
5063
4851
  const deserializeAws_json1_0CancellationReason = (output, context) => {
5064
4852
  return {
5065
4853
  Code: (0, smithy_client_1.expectString)(output.Code),
5066
- Item: output.Item !== undefined && output.Item !== null
5067
- ? deserializeAws_json1_0AttributeMap(output.Item, context)
5068
- : undefined,
4854
+ Item: output.Item != null ? deserializeAws_json1_0AttributeMap(output.Item, context) : undefined,
5069
4855
  Message: (0, smithy_client_1.expectString)(output.Message),
5070
4856
  };
5071
4857
  };
@@ -5095,16 +4881,14 @@ const deserializeAws_json1_0ConditionalCheckFailedException = (output, context)
5095
4881
  const deserializeAws_json1_0ConsumedCapacity = (output, context) => {
5096
4882
  return {
5097
4883
  CapacityUnits: (0, smithy_client_1.limitedParseDouble)(output.CapacityUnits),
5098
- GlobalSecondaryIndexes: output.GlobalSecondaryIndexes !== undefined && output.GlobalSecondaryIndexes !== null
4884
+ GlobalSecondaryIndexes: output.GlobalSecondaryIndexes != null
5099
4885
  ? deserializeAws_json1_0SecondaryIndexesCapacityMap(output.GlobalSecondaryIndexes, context)
5100
4886
  : undefined,
5101
- LocalSecondaryIndexes: output.LocalSecondaryIndexes !== undefined && output.LocalSecondaryIndexes !== null
4887
+ LocalSecondaryIndexes: output.LocalSecondaryIndexes != null
5102
4888
  ? deserializeAws_json1_0SecondaryIndexesCapacityMap(output.LocalSecondaryIndexes, context)
5103
4889
  : undefined,
5104
4890
  ReadCapacityUnits: (0, smithy_client_1.limitedParseDouble)(output.ReadCapacityUnits),
5105
- Table: output.Table !== undefined && output.Table !== null
5106
- ? deserializeAws_json1_0Capacity(output.Table, context)
5107
- : undefined,
4891
+ Table: output.Table != null ? deserializeAws_json1_0Capacity(output.Table, context) : undefined,
5108
4892
  TableName: (0, smithy_client_1.expectString)(output.TableName),
5109
4893
  WriteCapacityUnits: (0, smithy_client_1.limitedParseDouble)(output.WriteCapacityUnits),
5110
4894
  };
@@ -5123,7 +4907,7 @@ const deserializeAws_json1_0ConsumedCapacityMultiple = (output, context) => {
5123
4907
  const deserializeAws_json1_0ContinuousBackupsDescription = (output, context) => {
5124
4908
  return {
5125
4909
  ContinuousBackupsStatus: (0, smithy_client_1.expectString)(output.ContinuousBackupsStatus),
5126
- PointInTimeRecoveryDescription: output.PointInTimeRecoveryDescription !== undefined && output.PointInTimeRecoveryDescription !== null
4910
+ PointInTimeRecoveryDescription: output.PointInTimeRecoveryDescription != null
5127
4911
  ? deserializeAws_json1_0PointInTimeRecoveryDescription(output.PointInTimeRecoveryDescription, context)
5128
4912
  : undefined,
5129
4913
  };
@@ -5164,82 +4948,78 @@ const deserializeAws_json1_0ContributorInsightsSummary = (output, context) => {
5164
4948
  };
5165
4949
  const deserializeAws_json1_0CreateBackupOutput = (output, context) => {
5166
4950
  return {
5167
- BackupDetails: output.BackupDetails !== undefined && output.BackupDetails !== null
5168
- ? deserializeAws_json1_0BackupDetails(output.BackupDetails, context)
5169
- : undefined,
4951
+ BackupDetails: output.BackupDetails != null ? deserializeAws_json1_0BackupDetails(output.BackupDetails, context) : undefined,
5170
4952
  };
5171
4953
  };
5172
4954
  const deserializeAws_json1_0CreateGlobalTableOutput = (output, context) => {
5173
4955
  return {
5174
- GlobalTableDescription: output.GlobalTableDescription !== undefined && output.GlobalTableDescription !== null
4956
+ GlobalTableDescription: output.GlobalTableDescription != null
5175
4957
  ? deserializeAws_json1_0GlobalTableDescription(output.GlobalTableDescription, context)
5176
4958
  : undefined,
5177
4959
  };
5178
4960
  };
5179
4961
  const deserializeAws_json1_0CreateTableOutput = (output, context) => {
5180
4962
  return {
5181
- TableDescription: output.TableDescription !== undefined && output.TableDescription !== null
4963
+ TableDescription: output.TableDescription != null
5182
4964
  ? deserializeAws_json1_0TableDescription(output.TableDescription, context)
5183
4965
  : undefined,
5184
4966
  };
5185
4967
  };
5186
4968
  const deserializeAws_json1_0DeleteBackupOutput = (output, context) => {
5187
4969
  return {
5188
- BackupDescription: output.BackupDescription !== undefined && output.BackupDescription !== null
4970
+ BackupDescription: output.BackupDescription != null
5189
4971
  ? deserializeAws_json1_0BackupDescription(output.BackupDescription, context)
5190
4972
  : undefined,
5191
4973
  };
5192
4974
  };
5193
4975
  const deserializeAws_json1_0DeleteItemOutput = (output, context) => {
5194
4976
  return {
5195
- Attributes: output.Attributes !== undefined && output.Attributes !== null
5196
- ? deserializeAws_json1_0AttributeMap(output.Attributes, context)
5197
- : undefined,
5198
- ConsumedCapacity: output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null
4977
+ Attributes: output.Attributes != null ? deserializeAws_json1_0AttributeMap(output.Attributes, context) : undefined,
4978
+ ConsumedCapacity: output.ConsumedCapacity != null
5199
4979
  ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context)
5200
4980
  : undefined,
5201
- ItemCollectionMetrics: output.ItemCollectionMetrics !== undefined && output.ItemCollectionMetrics !== null
4981
+ ItemCollectionMetrics: output.ItemCollectionMetrics != null
5202
4982
  ? deserializeAws_json1_0ItemCollectionMetrics(output.ItemCollectionMetrics, context)
5203
4983
  : undefined,
5204
4984
  };
5205
4985
  };
5206
4986
  const deserializeAws_json1_0DeleteRequest = (output, context) => {
5207
4987
  return {
5208
- Key: output.Key !== undefined && output.Key !== null ? deserializeAws_json1_0Key(output.Key, context) : undefined,
4988
+ Key: output.Key != null ? deserializeAws_json1_0Key(output.Key, context) : undefined,
5209
4989
  };
5210
4990
  };
5211
4991
  const deserializeAws_json1_0DeleteTableOutput = (output, context) => {
5212
4992
  return {
5213
- TableDescription: output.TableDescription !== undefined && output.TableDescription !== null
4993
+ TableDescription: output.TableDescription != null
5214
4994
  ? deserializeAws_json1_0TableDescription(output.TableDescription, context)
5215
4995
  : undefined,
5216
4996
  };
5217
4997
  };
5218
4998
  const deserializeAws_json1_0DescribeBackupOutput = (output, context) => {
5219
4999
  return {
5220
- BackupDescription: output.BackupDescription !== undefined && output.BackupDescription !== null
5000
+ BackupDescription: output.BackupDescription != null
5221
5001
  ? deserializeAws_json1_0BackupDescription(output.BackupDescription, context)
5222
5002
  : undefined,
5223
5003
  };
5224
5004
  };
5225
5005
  const deserializeAws_json1_0DescribeContinuousBackupsOutput = (output, context) => {
5226
5006
  return {
5227
- ContinuousBackupsDescription: output.ContinuousBackupsDescription !== undefined && output.ContinuousBackupsDescription !== null
5007
+ ContinuousBackupsDescription: output.ContinuousBackupsDescription != null
5228
5008
  ? deserializeAws_json1_0ContinuousBackupsDescription(output.ContinuousBackupsDescription, context)
5229
5009
  : undefined,
5230
5010
  };
5231
5011
  };
5232
5012
  const deserializeAws_json1_0DescribeContributorInsightsOutput = (output, context) => {
5233
5013
  return {
5234
- ContributorInsightsRuleList: output.ContributorInsightsRuleList !== undefined && output.ContributorInsightsRuleList !== null
5014
+ ContributorInsightsRuleList: output.ContributorInsightsRuleList != null
5235
5015
  ? deserializeAws_json1_0ContributorInsightsRuleList(output.ContributorInsightsRuleList, context)
5236
5016
  : undefined,
5237
5017
  ContributorInsightsStatus: (0, smithy_client_1.expectString)(output.ContributorInsightsStatus),
5238
- FailureException: output.FailureException !== undefined && output.FailureException !== null
5018
+ FailureException: output.FailureException != null
5239
5019
  ? deserializeAws_json1_0FailureException(output.FailureException, context)
5240
5020
  : undefined,
5241
5021
  IndexName: (0, smithy_client_1.expectString)(output.IndexName),
5242
- LastUpdateDateTime: output.LastUpdateDateTime !== undefined && output.LastUpdateDateTime !== null
5022
+ LastUpdateDateTime: output.LastUpdateDateTime != null
5243
5023
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdateDateTime)))
5244
5024
  : undefined,
5245
5025
  TableName: (0, smithy_client_1.expectString)(output.TableName),
@@ -5247,21 +5027,19 @@ const deserializeAws_json1_0DescribeContributorInsightsOutput = (output, context
5247
5027
  };
5248
5028
  const deserializeAws_json1_0DescribeEndpointsResponse = (output, context) => {
5249
5029
  return {
5250
- Endpoints: output.Endpoints !== undefined && output.Endpoints !== null
5251
- ? deserializeAws_json1_0Endpoints(output.Endpoints, context)
5252
- : undefined,
5030
+ Endpoints: output.Endpoints != null ? deserializeAws_json1_0Endpoints(output.Endpoints, context) : undefined,
5253
5031
  };
5254
5032
  };
5255
5033
  const deserializeAws_json1_0DescribeExportOutput = (output, context) => {
5256
5034
  return {
5257
- ExportDescription: output.ExportDescription !== undefined && output.ExportDescription !== null
5035
+ ExportDescription: output.ExportDescription != null
5258
5036
  ? deserializeAws_json1_0ExportDescription(output.ExportDescription, context)
5259
5037
  : undefined,
5260
5038
  };
5261
5039
  };
5262
5040
  const deserializeAws_json1_0DescribeGlobalTableOutput = (output, context) => {
5263
5041
  return {
5264
- GlobalTableDescription: output.GlobalTableDescription !== undefined && output.GlobalTableDescription !== null
5042
+ GlobalTableDescription: output.GlobalTableDescription != null
5265
5043
  ? deserializeAws_json1_0GlobalTableDescription(output.GlobalTableDescription, context)
5266
5044
  : undefined,
5267
5045
  };
@@ -5269,14 +5047,14 @@ const deserializeAws_json1_0DescribeGlobalTableOutput = (output, context) => {
5269
5047
  const deserializeAws_json1_0DescribeGlobalTableSettingsOutput = (output, context) => {
5270
5048
  return {
5271
5049
  GlobalTableName: (0, smithy_client_1.expectString)(output.GlobalTableName),
5272
- ReplicaSettings: output.ReplicaSettings !== undefined && output.ReplicaSettings !== null
5050
+ ReplicaSettings: output.ReplicaSettings != null
5273
5051
  ? deserializeAws_json1_0ReplicaSettingsDescriptionList(output.ReplicaSettings, context)
5274
5052
  : undefined,
5275
5053
  };
5276
5054
  };
5277
5055
  const deserializeAws_json1_0DescribeKinesisStreamingDestinationOutput = (output, context) => {
5278
5056
  return {
5279
- KinesisDataStreamDestinations: output.KinesisDataStreamDestinations !== undefined && output.KinesisDataStreamDestinations !== null
5057
+ KinesisDataStreamDestinations: output.KinesisDataStreamDestinations != null
5280
5058
  ? deserializeAws_json1_0KinesisDataStreamDestinations(output.KinesisDataStreamDestinations, context)
5281
5059
  : undefined,
5282
5060
  TableName: (0, smithy_client_1.expectString)(output.TableName),
@@ -5292,21 +5070,19 @@ const deserializeAws_json1_0DescribeLimitsOutput = (output, context) => {
5292
5070
  };
5293
5071
  const deserializeAws_json1_0DescribeTableOutput = (output, context) => {
5294
5072
  return {
5295
- Table: output.Table !== undefined && output.Table !== null
5296
- ? deserializeAws_json1_0TableDescription(output.Table, context)
5297
- : undefined,
5073
+ Table: output.Table != null ? deserializeAws_json1_0TableDescription(output.Table, context) : undefined,
5298
5074
  };
5299
5075
  };
5300
5076
  const deserializeAws_json1_0DescribeTableReplicaAutoScalingOutput = (output, context) => {
5301
5077
  return {
5302
- TableAutoScalingDescription: output.TableAutoScalingDescription !== undefined && output.TableAutoScalingDescription !== null
5078
+ TableAutoScalingDescription: output.TableAutoScalingDescription != null
5303
5079
  ? deserializeAws_json1_0TableAutoScalingDescription(output.TableAutoScalingDescription, context)
5304
5080
  : undefined,
5305
5081
  };
5306
5082
  };
5307
5083
  const deserializeAws_json1_0DescribeTimeToLiveOutput = (output, context) => {
5308
5084
  return {
5309
- TimeToLiveDescription: output.TimeToLiveDescription !== undefined && output.TimeToLiveDescription !== null
5085
+ TimeToLiveDescription: output.TimeToLiveDescription != null
5310
5086
  ? deserializeAws_json1_0TimeToLiveDescription(output.TimeToLiveDescription, context)
5311
5087
  : undefined,
5312
5088
  };
@@ -5335,26 +5111,20 @@ const deserializeAws_json1_0Endpoints = (output, context) => {
5335
5111
  };
5336
5112
  const deserializeAws_json1_0ExecuteStatementOutput = (output, context) => {
5337
5113
  return {
5338
- ConsumedCapacity: output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null
5114
+ ConsumedCapacity: output.ConsumedCapacity != null
5339
5115
  ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context)
5340
5116
  : undefined,
5341
- Items: output.Items !== undefined && output.Items !== null
5342
- ? deserializeAws_json1_0ItemList(output.Items, context)
5343
- : undefined,
5344
- LastEvaluatedKey: output.LastEvaluatedKey !== undefined && output.LastEvaluatedKey !== null
5345
- ? deserializeAws_json1_0Key(output.LastEvaluatedKey, context)
5346
- : undefined,
5117
+ Items: output.Items != null ? deserializeAws_json1_0ItemList(output.Items, context) : undefined,
5118
+ LastEvaluatedKey: output.LastEvaluatedKey != null ? deserializeAws_json1_0Key(output.LastEvaluatedKey, context) : undefined,
5347
5119
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
5348
5120
  };
5349
5121
  };
5350
5122
  const deserializeAws_json1_0ExecuteTransactionOutput = (output, context) => {
5351
5123
  return {
5352
- ConsumedCapacity: output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null
5124
+ ConsumedCapacity: output.ConsumedCapacity != null
5353
5125
  ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context)
5354
5126
  : undefined,
5355
- Responses: output.Responses !== undefined && output.Responses !== null
5356
- ? deserializeAws_json1_0ItemResponseList(output.Responses, context)
5357
- : undefined,
5127
+ Responses: output.Responses != null ? deserializeAws_json1_0ItemResponseList(output.Responses, context) : undefined,
5358
5128
  };
5359
5129
  };
5360
5130
  const deserializeAws_json1_0ExportConflictException = (output, context) => {
@@ -5366,16 +5136,12 @@ const deserializeAws_json1_0ExportDescription = (output, context) => {
5366
5136
  return {
5367
5137
  BilledSizeBytes: (0, smithy_client_1.expectLong)(output.BilledSizeBytes),
5368
5138
  ClientToken: (0, smithy_client_1.expectString)(output.ClientToken),
5369
- EndTime: output.EndTime !== undefined && output.EndTime !== null
5370
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
5371
- : undefined,
5139
+ EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
5372
5140
  ExportArn: (0, smithy_client_1.expectString)(output.ExportArn),
5373
5141
  ExportFormat: (0, smithy_client_1.expectString)(output.ExportFormat),
5374
5142
  ExportManifest: (0, smithy_client_1.expectString)(output.ExportManifest),
5375
5143
  ExportStatus: (0, smithy_client_1.expectString)(output.ExportStatus),
5376
- ExportTime: output.ExportTime !== undefined && output.ExportTime !== null
5377
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExportTime)))
5378
- : undefined,
5144
+ ExportTime: output.ExportTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExportTime))) : undefined,
5379
5145
  FailureCode: (0, smithy_client_1.expectString)(output.FailureCode),
5380
5146
  FailureMessage: (0, smithy_client_1.expectString)(output.FailureMessage),
5381
5147
  ItemCount: (0, smithy_client_1.expectLong)(output.ItemCount),
@@ -5384,9 +5150,7 @@ const deserializeAws_json1_0ExportDescription = (output, context) => {
5384
5150
  S3Prefix: (0, smithy_client_1.expectString)(output.S3Prefix),
5385
5151
  S3SseAlgorithm: (0, smithy_client_1.expectString)(output.S3SseAlgorithm),
5386
5152
  S3SseKmsKeyId: (0, smithy_client_1.expectString)(output.S3SseKmsKeyId),
5387
- StartTime: output.StartTime !== undefined && output.StartTime !== null
5388
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
5389
- : undefined,
5153
+ StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
5390
5154
  TableArn: (0, smithy_client_1.expectString)(output.TableArn),
5391
5155
  TableId: (0, smithy_client_1.expectString)(output.TableId),
5392
5156
  };
@@ -5415,7 +5179,7 @@ const deserializeAws_json1_0ExportSummary = (output, context) => {
5415
5179
  };
5416
5180
  const deserializeAws_json1_0ExportTableToPointInTimeOutput = (output, context) => {
5417
5181
  return {
5418
- ExportDescription: output.ExportDescription !== undefined && output.ExportDescription !== null
5182
+ ExportDescription: output.ExportDescription != null
5419
5183
  ? deserializeAws_json1_0ExportDescription(output.ExportDescription, context)
5420
5184
  : undefined,
5421
5185
  };
@@ -5439,12 +5203,10 @@ const deserializeAws_json1_0FailureException = (output, context) => {
5439
5203
  };
5440
5204
  const deserializeAws_json1_0GetItemOutput = (output, context) => {
5441
5205
  return {
5442
- ConsumedCapacity: output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null
5206
+ ConsumedCapacity: output.ConsumedCapacity != null
5443
5207
  ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context)
5444
5208
  : undefined,
5445
- Item: output.Item !== undefined && output.Item !== null
5446
- ? deserializeAws_json1_0AttributeMap(output.Item, context)
5447
- : undefined,
5209
+ Item: output.Item != null ? deserializeAws_json1_0AttributeMap(output.Item, context) : undefined,
5448
5210
  };
5449
5211
  };
5450
5212
  const deserializeAws_json1_0GlobalSecondaryIndexDescription = (output, context) => {
@@ -5455,13 +5217,9 @@ const deserializeAws_json1_0GlobalSecondaryIndexDescription = (output, context)
5455
5217
  IndexSizeBytes: (0, smithy_client_1.expectLong)(output.IndexSizeBytes),
5456
5218
  IndexStatus: (0, smithy_client_1.expectString)(output.IndexStatus),
5457
5219
  ItemCount: (0, smithy_client_1.expectLong)(output.ItemCount),
5458
- KeySchema: output.KeySchema !== undefined && output.KeySchema !== null
5459
- ? deserializeAws_json1_0KeySchema(output.KeySchema, context)
5460
- : undefined,
5461
- Projection: output.Projection !== undefined && output.Projection !== null
5462
- ? deserializeAws_json1_0Projection(output.Projection, context)
5463
- : undefined,
5464
- ProvisionedThroughput: output.ProvisionedThroughput !== undefined && output.ProvisionedThroughput !== null
5220
+ KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : undefined,
5221
+ Projection: output.Projection != null ? deserializeAws_json1_0Projection(output.Projection, context) : undefined,
5222
+ ProvisionedThroughput: output.ProvisionedThroughput != null
5465
5223
  ? deserializeAws_json1_0ProvisionedThroughputDescription(output.ProvisionedThroughput, context)
5466
5224
  : undefined,
5467
5225
  };
@@ -5491,13 +5249,9 @@ const deserializeAws_json1_0GlobalSecondaryIndexes = (output, context) => {
5491
5249
  const deserializeAws_json1_0GlobalSecondaryIndexInfo = (output, context) => {
5492
5250
  return {
5493
5251
  IndexName: (0, smithy_client_1.expectString)(output.IndexName),
5494
- KeySchema: output.KeySchema !== undefined && output.KeySchema !== null
5495
- ? deserializeAws_json1_0KeySchema(output.KeySchema, context)
5496
- : undefined,
5497
- Projection: output.Projection !== undefined && output.Projection !== null
5498
- ? deserializeAws_json1_0Projection(output.Projection, context)
5499
- : undefined,
5500
- ProvisionedThroughput: output.ProvisionedThroughput !== undefined && output.ProvisionedThroughput !== null
5252
+ KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : undefined,
5253
+ Projection: output.Projection != null ? deserializeAws_json1_0Projection(output.Projection, context) : undefined,
5254
+ ProvisionedThroughput: output.ProvisionedThroughput != null
5501
5255
  ? deserializeAws_json1_0ProvisionedThroughput(output.ProvisionedThroughput, context)
5502
5256
  : undefined,
5503
5257
  };
@@ -5505,9 +5259,7 @@ const deserializeAws_json1_0GlobalSecondaryIndexInfo = (output, context) => {
5505
5259
  const deserializeAws_json1_0GlobalTable = (output, context) => {
5506
5260
  return {
5507
5261
  GlobalTableName: (0, smithy_client_1.expectString)(output.GlobalTableName),
5508
- ReplicationGroup: output.ReplicationGroup !== undefined && output.ReplicationGroup !== null
5509
- ? deserializeAws_json1_0ReplicaList(output.ReplicationGroup, context)
5510
- : undefined,
5262
+ ReplicationGroup: output.ReplicationGroup != null ? deserializeAws_json1_0ReplicaList(output.ReplicationGroup, context) : undefined,
5511
5263
  };
5512
5264
  };
5513
5265
  const deserializeAws_json1_0GlobalTableAlreadyExistsException = (output, context) => {
@@ -5517,13 +5269,13 @@ const deserializeAws_json1_0GlobalTableAlreadyExistsException = (output, context
5517
5269
  };
5518
5270
  const deserializeAws_json1_0GlobalTableDescription = (output, context) => {
5519
5271
  return {
5520
- CreationDateTime: output.CreationDateTime !== undefined && output.CreationDateTime !== null
5272
+ CreationDateTime: output.CreationDateTime != null
5521
5273
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDateTime)))
5522
5274
  : undefined,
5523
5275
  GlobalTableArn: (0, smithy_client_1.expectString)(output.GlobalTableArn),
5524
5276
  GlobalTableName: (0, smithy_client_1.expectString)(output.GlobalTableName),
5525
5277
  GlobalTableStatus: (0, smithy_client_1.expectString)(output.GlobalTableStatus),
5526
- ReplicationGroup: output.ReplicationGroup !== undefined && output.ReplicationGroup !== null
5278
+ ReplicationGroup: output.ReplicationGroup != null
5527
5279
  ? deserializeAws_json1_0ReplicaDescriptionList(output.ReplicationGroup, context)
5528
5280
  : undefined,
5529
5281
  };
@@ -5587,10 +5339,10 @@ const deserializeAws_json1_0ItemCollectionKeyAttributeMap = (output, context) =>
5587
5339
  };
5588
5340
  const deserializeAws_json1_0ItemCollectionMetrics = (output, context) => {
5589
5341
  return {
5590
- ItemCollectionKey: output.ItemCollectionKey !== undefined && output.ItemCollectionKey !== null
5342
+ ItemCollectionKey: output.ItemCollectionKey != null
5591
5343
  ? deserializeAws_json1_0ItemCollectionKeyAttributeMap(output.ItemCollectionKey, context)
5592
5344
  : undefined,
5593
- SizeEstimateRangeGB: output.SizeEstimateRangeGB !== undefined && output.SizeEstimateRangeGB !== null
5345
+ SizeEstimateRangeGB: output.SizeEstimateRangeGB != null
5594
5346
  ? deserializeAws_json1_0ItemCollectionSizeEstimateRange(output.SizeEstimateRangeGB, context)
5595
5347
  : undefined,
5596
5348
  };
@@ -5646,9 +5398,7 @@ const deserializeAws_json1_0ItemList = (output, context) => {
5646
5398
  };
5647
5399
  const deserializeAws_json1_0ItemResponse = (output, context) => {
5648
5400
  return {
5649
- Item: output.Item !== undefined && output.Item !== null
5650
- ? deserializeAws_json1_0AttributeMap(output.Item, context)
5651
- : undefined,
5401
+ Item: output.Item != null ? deserializeAws_json1_0AttributeMap(output.Item, context) : undefined,
5652
5402
  };
5653
5403
  };
5654
5404
  const deserializeAws_json1_0ItemResponseList = (output, context) => {
@@ -5686,16 +5436,14 @@ const deserializeAws_json1_0KeyList = (output, context) => {
5686
5436
  };
5687
5437
  const deserializeAws_json1_0KeysAndAttributes = (output, context) => {
5688
5438
  return {
5689
- AttributesToGet: output.AttributesToGet !== undefined && output.AttributesToGet !== null
5439
+ AttributesToGet: output.AttributesToGet != null
5690
5440
  ? deserializeAws_json1_0AttributeNameList(output.AttributesToGet, context)
5691
5441
  : undefined,
5692
5442
  ConsistentRead: (0, smithy_client_1.expectBoolean)(output.ConsistentRead),
5693
- ExpressionAttributeNames: output.ExpressionAttributeNames !== undefined && output.ExpressionAttributeNames !== null
5443
+ ExpressionAttributeNames: output.ExpressionAttributeNames != null
5694
5444
  ? deserializeAws_json1_0ExpressionAttributeNameMap(output.ExpressionAttributeNames, context)
5695
5445
  : undefined,
5696
- Keys: output.Keys !== undefined && output.Keys !== null
5697
- ? deserializeAws_json1_0KeyList(output.Keys, context)
5698
- : undefined,
5446
+ Keys: output.Keys != null ? deserializeAws_json1_0KeyList(output.Keys, context) : undefined,
5699
5447
  ProjectionExpression: (0, smithy_client_1.expectString)(output.ProjectionExpression),
5700
5448
  };
5701
5449
  };
@@ -5759,7 +5507,7 @@ const deserializeAws_json1_0ListAttributeValue = (output, context) => {
5759
5507
  };
5760
5508
  const deserializeAws_json1_0ListBackupsOutput = (output, context) => {
5761
5509
  return {
5762
- BackupSummaries: output.BackupSummaries !== undefined && output.BackupSummaries !== null
5510
+ BackupSummaries: output.BackupSummaries != null
5763
5511
  ? deserializeAws_json1_0BackupSummaries(output.BackupSummaries, context)
5764
5512
  : undefined,
5765
5513
  LastEvaluatedBackupArn: (0, smithy_client_1.expectString)(output.LastEvaluatedBackupArn),
@@ -5767,7 +5515,7 @@ const deserializeAws_json1_0ListBackupsOutput = (output, context) => {
5767
5515
  };
5768
5516
  const deserializeAws_json1_0ListContributorInsightsOutput = (output, context) => {
5769
5517
  return {
5770
- ContributorInsightsSummaries: output.ContributorInsightsSummaries !== undefined && output.ContributorInsightsSummaries !== null
5518
+ ContributorInsightsSummaries: output.ContributorInsightsSummaries != null
5771
5519
  ? deserializeAws_json1_0ContributorInsightsSummaries(output.ContributorInsightsSummaries, context)
5772
5520
  : undefined,
5773
5521
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
@@ -5775,7 +5523,7 @@ const deserializeAws_json1_0ListContributorInsightsOutput = (output, context) =>
5775
5523
  };
5776
5524
  const deserializeAws_json1_0ListExportsOutput = (output, context) => {
5777
5525
  return {
5778
- ExportSummaries: output.ExportSummaries !== undefined && output.ExportSummaries !== null
5526
+ ExportSummaries: output.ExportSummaries != null
5779
5527
  ? deserializeAws_json1_0ExportSummaries(output.ExportSummaries, context)
5780
5528
  : undefined,
5781
5529
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
@@ -5783,26 +5531,20 @@ const deserializeAws_json1_0ListExportsOutput = (output, context) => {
5783
5531
  };
5784
5532
  const deserializeAws_json1_0ListGlobalTablesOutput = (output, context) => {
5785
5533
  return {
5786
- GlobalTables: output.GlobalTables !== undefined && output.GlobalTables !== null
5787
- ? deserializeAws_json1_0GlobalTableList(output.GlobalTables, context)
5788
- : undefined,
5534
+ GlobalTables: output.GlobalTables != null ? deserializeAws_json1_0GlobalTableList(output.GlobalTables, context) : undefined,
5789
5535
  LastEvaluatedGlobalTableName: (0, smithy_client_1.expectString)(output.LastEvaluatedGlobalTableName),
5790
5536
  };
5791
5537
  };
5792
5538
  const deserializeAws_json1_0ListTablesOutput = (output, context) => {
5793
5539
  return {
5794
5540
  LastEvaluatedTableName: (0, smithy_client_1.expectString)(output.LastEvaluatedTableName),
5795
- TableNames: output.TableNames !== undefined && output.TableNames !== null
5796
- ? deserializeAws_json1_0TableNameList(output.TableNames, context)
5797
- : undefined,
5541
+ TableNames: output.TableNames != null ? deserializeAws_json1_0TableNameList(output.TableNames, context) : undefined,
5798
5542
  };
5799
5543
  };
5800
5544
  const deserializeAws_json1_0ListTagsOfResourceOutput = (output, context) => {
5801
5545
  return {
5802
5546
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
5803
- Tags: output.Tags !== undefined && output.Tags !== null
5804
- ? deserializeAws_json1_0TagList(output.Tags, context)
5805
- : undefined,
5547
+ Tags: output.Tags != null ? deserializeAws_json1_0TagList(output.Tags, context) : undefined,
5806
5548
  };
5807
5549
  };
5808
5550
  const deserializeAws_json1_0LocalSecondaryIndexDescription = (output, context) => {
@@ -5811,12 +5553,8 @@ const deserializeAws_json1_0LocalSecondaryIndexDescription = (output, context) =
5811
5553
  IndexName: (0, smithy_client_1.expectString)(output.IndexName),
5812
5554
  IndexSizeBytes: (0, smithy_client_1.expectLong)(output.IndexSizeBytes),
5813
5555
  ItemCount: (0, smithy_client_1.expectLong)(output.ItemCount),
5814
- KeySchema: output.KeySchema !== undefined && output.KeySchema !== null
5815
- ? deserializeAws_json1_0KeySchema(output.KeySchema, context)
5816
- : undefined,
5817
- Projection: output.Projection !== undefined && output.Projection !== null
5818
- ? deserializeAws_json1_0Projection(output.Projection, context)
5819
- : undefined,
5556
+ KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : undefined,
5557
+ Projection: output.Projection != null ? deserializeAws_json1_0Projection(output.Projection, context) : undefined,
5820
5558
  };
5821
5559
  };
5822
5560
  const deserializeAws_json1_0LocalSecondaryIndexDescriptionList = (output, context) => {
@@ -5844,12 +5582,8 @@ const deserializeAws_json1_0LocalSecondaryIndexes = (output, context) => {
5844
5582
  const deserializeAws_json1_0LocalSecondaryIndexInfo = (output, context) => {
5845
5583
  return {
5846
5584
  IndexName: (0, smithy_client_1.expectString)(output.IndexName),
5847
- KeySchema: output.KeySchema !== undefined && output.KeySchema !== null
5848
- ? deserializeAws_json1_0KeySchema(output.KeySchema, context)
5849
- : undefined,
5850
- Projection: output.Projection !== undefined && output.Projection !== null
5851
- ? deserializeAws_json1_0Projection(output.Projection, context)
5852
- : undefined,
5585
+ KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : undefined,
5586
+ Projection: output.Projection != null ? deserializeAws_json1_0Projection(output.Projection, context) : undefined,
5853
5587
  };
5854
5588
  };
5855
5589
  const deserializeAws_json1_0MapAttributeValue = (output, context) => {
@@ -5898,10 +5632,10 @@ const deserializeAws_json1_0PartiQLBatchResponse = (output, context) => {
5898
5632
  };
5899
5633
  const deserializeAws_json1_0PointInTimeRecoveryDescription = (output, context) => {
5900
5634
  return {
5901
- EarliestRestorableDateTime: output.EarliestRestorableDateTime !== undefined && output.EarliestRestorableDateTime !== null
5635
+ EarliestRestorableDateTime: output.EarliestRestorableDateTime != null
5902
5636
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EarliestRestorableDateTime)))
5903
5637
  : undefined,
5904
- LatestRestorableDateTime: output.LatestRestorableDateTime !== undefined && output.LatestRestorableDateTime !== null
5638
+ LatestRestorableDateTime: output.LatestRestorableDateTime != null
5905
5639
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LatestRestorableDateTime)))
5906
5640
  : undefined,
5907
5641
  PointInTimeRecoveryStatus: (0, smithy_client_1.expectString)(output.PointInTimeRecoveryStatus),
@@ -5914,7 +5648,7 @@ const deserializeAws_json1_0PointInTimeRecoveryUnavailableException = (output, c
5914
5648
  };
5915
5649
  const deserializeAws_json1_0Projection = (output, context) => {
5916
5650
  return {
5917
- NonKeyAttributes: output.NonKeyAttributes !== undefined && output.NonKeyAttributes !== null
5651
+ NonKeyAttributes: output.NonKeyAttributes != null
5918
5652
  ? deserializeAws_json1_0NonKeyAttributeNameList(output.NonKeyAttributes, context)
5919
5653
  : undefined,
5920
5654
  ProjectionType: (0, smithy_client_1.expectString)(output.ProjectionType),
@@ -5928,10 +5662,10 @@ const deserializeAws_json1_0ProvisionedThroughput = (output, context) => {
5928
5662
  };
5929
5663
  const deserializeAws_json1_0ProvisionedThroughputDescription = (output, context) => {
5930
5664
  return {
5931
- LastDecreaseDateTime: output.LastDecreaseDateTime !== undefined && output.LastDecreaseDateTime !== null
5665
+ LastDecreaseDateTime: output.LastDecreaseDateTime != null
5932
5666
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastDecreaseDateTime)))
5933
5667
  : undefined,
5934
- LastIncreaseDateTime: output.LastIncreaseDateTime !== undefined && output.LastIncreaseDateTime !== null
5668
+ LastIncreaseDateTime: output.LastIncreaseDateTime != null
5935
5669
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastIncreaseDateTime)))
5936
5670
  : undefined,
5937
5671
  NumberOfDecreasesToday: (0, smithy_client_1.expectLong)(output.NumberOfDecreasesToday),
@@ -5962,36 +5696,28 @@ const deserializeAws_json1_0PutItemInputAttributeMap = (output, context) => {
5962
5696
  };
5963
5697
  const deserializeAws_json1_0PutItemOutput = (output, context) => {
5964
5698
  return {
5965
- Attributes: output.Attributes !== undefined && output.Attributes !== null
5966
- ? deserializeAws_json1_0AttributeMap(output.Attributes, context)
5967
- : undefined,
5968
- ConsumedCapacity: output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null
5699
+ Attributes: output.Attributes != null ? deserializeAws_json1_0AttributeMap(output.Attributes, context) : undefined,
5700
+ ConsumedCapacity: output.ConsumedCapacity != null
5969
5701
  ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context)
5970
5702
  : undefined,
5971
- ItemCollectionMetrics: output.ItemCollectionMetrics !== undefined && output.ItemCollectionMetrics !== null
5703
+ ItemCollectionMetrics: output.ItemCollectionMetrics != null
5972
5704
  ? deserializeAws_json1_0ItemCollectionMetrics(output.ItemCollectionMetrics, context)
5973
5705
  : undefined,
5974
5706
  };
5975
5707
  };
5976
5708
  const deserializeAws_json1_0PutRequest = (output, context) => {
5977
5709
  return {
5978
- Item: output.Item !== undefined && output.Item !== null
5979
- ? deserializeAws_json1_0PutItemInputAttributeMap(output.Item, context)
5980
- : undefined,
5710
+ Item: output.Item != null ? deserializeAws_json1_0PutItemInputAttributeMap(output.Item, context) : undefined,
5981
5711
  };
5982
5712
  };
5983
5713
  const deserializeAws_json1_0QueryOutput = (output, context) => {
5984
5714
  return {
5985
- ConsumedCapacity: output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null
5715
+ ConsumedCapacity: output.ConsumedCapacity != null
5986
5716
  ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context)
5987
5717
  : undefined,
5988
5718
  Count: (0, smithy_client_1.expectInt32)(output.Count),
5989
- Items: output.Items !== undefined && output.Items !== null
5990
- ? deserializeAws_json1_0ItemList(output.Items, context)
5991
- : undefined,
5992
- LastEvaluatedKey: output.LastEvaluatedKey !== undefined && output.LastEvaluatedKey !== null
5993
- ? deserializeAws_json1_0Key(output.LastEvaluatedKey, context)
5994
- : undefined,
5719
+ Items: output.Items != null ? deserializeAws_json1_0ItemList(output.Items, context) : undefined,
5720
+ LastEvaluatedKey: output.LastEvaluatedKey != null ? deserializeAws_json1_0Key(output.LastEvaluatedKey, context) : undefined,
5995
5721
  ScannedCount: (0, smithy_client_1.expectInt32)(output.ScannedCount),
5996
5722
  };
5997
5723
  };
@@ -6007,16 +5733,14 @@ const deserializeAws_json1_0ReplicaAlreadyExistsException = (output, context) =>
6007
5733
  };
6008
5734
  const deserializeAws_json1_0ReplicaAutoScalingDescription = (output, context) => {
6009
5735
  return {
6010
- GlobalSecondaryIndexes: output.GlobalSecondaryIndexes !== undefined && output.GlobalSecondaryIndexes !== null
5736
+ GlobalSecondaryIndexes: output.GlobalSecondaryIndexes != null
6011
5737
  ? deserializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingDescriptionList(output.GlobalSecondaryIndexes, context)
6012
5738
  : undefined,
6013
5739
  RegionName: (0, smithy_client_1.expectString)(output.RegionName),
6014
- ReplicaProvisionedReadCapacityAutoScalingSettings: output.ReplicaProvisionedReadCapacityAutoScalingSettings !== undefined &&
6015
- output.ReplicaProvisionedReadCapacityAutoScalingSettings !== null
5740
+ ReplicaProvisionedReadCapacityAutoScalingSettings: output.ReplicaProvisionedReadCapacityAutoScalingSettings != null
6016
5741
  ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ReplicaProvisionedReadCapacityAutoScalingSettings, context)
6017
5742
  : undefined,
6018
- ReplicaProvisionedWriteCapacityAutoScalingSettings: output.ReplicaProvisionedWriteCapacityAutoScalingSettings !== undefined &&
6019
- output.ReplicaProvisionedWriteCapacityAutoScalingSettings !== null
5743
+ ReplicaProvisionedWriteCapacityAutoScalingSettings: output.ReplicaProvisionedWriteCapacityAutoScalingSettings != null
6020
5744
  ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ReplicaProvisionedWriteCapacityAutoScalingSettings, context)
6021
5745
  : undefined,
6022
5746
  ReplicaStatus: (0, smithy_client_1.expectString)(output.ReplicaStatus),
@@ -6035,21 +5759,21 @@ const deserializeAws_json1_0ReplicaAutoScalingDescriptionList = (output, context
6035
5759
  };
6036
5760
  const deserializeAws_json1_0ReplicaDescription = (output, context) => {
6037
5761
  return {
6038
- GlobalSecondaryIndexes: output.GlobalSecondaryIndexes !== undefined && output.GlobalSecondaryIndexes !== null
5762
+ GlobalSecondaryIndexes: output.GlobalSecondaryIndexes != null
6039
5763
  ? deserializeAws_json1_0ReplicaGlobalSecondaryIndexDescriptionList(output.GlobalSecondaryIndexes, context)
6040
5764
  : undefined,
6041
5765
  KMSMasterKeyId: (0, smithy_client_1.expectString)(output.KMSMasterKeyId),
6042
- ProvisionedThroughputOverride: output.ProvisionedThroughputOverride !== undefined && output.ProvisionedThroughputOverride !== null
5766
+ ProvisionedThroughputOverride: output.ProvisionedThroughputOverride != null
6043
5767
  ? deserializeAws_json1_0ProvisionedThroughputOverride(output.ProvisionedThroughputOverride, context)
6044
5768
  : undefined,
6045
5769
  RegionName: (0, smithy_client_1.expectString)(output.RegionName),
6046
- ReplicaInaccessibleDateTime: output.ReplicaInaccessibleDateTime !== undefined && output.ReplicaInaccessibleDateTime !== null
5770
+ ReplicaInaccessibleDateTime: output.ReplicaInaccessibleDateTime != null
6047
5771
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReplicaInaccessibleDateTime)))
6048
5772
  : undefined,
6049
5773
  ReplicaStatus: (0, smithy_client_1.expectString)(output.ReplicaStatus),
6050
5774
  ReplicaStatusDescription: (0, smithy_client_1.expectString)(output.ReplicaStatusDescription),
6051
5775
  ReplicaStatusPercentProgress: (0, smithy_client_1.expectString)(output.ReplicaStatusPercentProgress),
6052
- ReplicaTableClassSummary: output.ReplicaTableClassSummary !== undefined && output.ReplicaTableClassSummary !== null
5776
+ ReplicaTableClassSummary: output.ReplicaTableClassSummary != null
6053
5777
  ? deserializeAws_json1_0TableClassSummary(output.ReplicaTableClassSummary, context)
6054
5778
  : undefined,
6055
5779
  };
@@ -6069,12 +5793,10 @@ const deserializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingDescription =
6069
5793
  return {
6070
5794
  IndexName: (0, smithy_client_1.expectString)(output.IndexName),
6071
5795
  IndexStatus: (0, smithy_client_1.expectString)(output.IndexStatus),
6072
- ProvisionedReadCapacityAutoScalingSettings: output.ProvisionedReadCapacityAutoScalingSettings !== undefined &&
6073
- output.ProvisionedReadCapacityAutoScalingSettings !== null
5796
+ ProvisionedReadCapacityAutoScalingSettings: output.ProvisionedReadCapacityAutoScalingSettings != null
6074
5797
  ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ProvisionedReadCapacityAutoScalingSettings, context)
6075
5798
  : undefined,
6076
- ProvisionedWriteCapacityAutoScalingSettings: output.ProvisionedWriteCapacityAutoScalingSettings !== undefined &&
6077
- output.ProvisionedWriteCapacityAutoScalingSettings !== null
5799
+ ProvisionedWriteCapacityAutoScalingSettings: output.ProvisionedWriteCapacityAutoScalingSettings != null
6078
5800
  ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ProvisionedWriteCapacityAutoScalingSettings, context)
6079
5801
  : undefined,
6080
5802
  };
@@ -6093,7 +5815,7 @@ const deserializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingDescriptionLis
6093
5815
  const deserializeAws_json1_0ReplicaGlobalSecondaryIndexDescription = (output, context) => {
6094
5816
  return {
6095
5817
  IndexName: (0, smithy_client_1.expectString)(output.IndexName),
6096
- ProvisionedThroughputOverride: output.ProvisionedThroughputOverride !== undefined && output.ProvisionedThroughputOverride !== null
5818
+ ProvisionedThroughputOverride: output.ProvisionedThroughputOverride != null
6097
5819
  ? deserializeAws_json1_0ProvisionedThroughputOverride(output.ProvisionedThroughputOverride, context)
6098
5820
  : undefined,
6099
5821
  };
@@ -6113,13 +5835,11 @@ const deserializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsDescription = (ou
6113
5835
  return {
6114
5836
  IndexName: (0, smithy_client_1.expectString)(output.IndexName),
6115
5837
  IndexStatus: (0, smithy_client_1.expectString)(output.IndexStatus),
6116
- ProvisionedReadCapacityAutoScalingSettings: output.ProvisionedReadCapacityAutoScalingSettings !== undefined &&
6117
- output.ProvisionedReadCapacityAutoScalingSettings !== null
5838
+ ProvisionedReadCapacityAutoScalingSettings: output.ProvisionedReadCapacityAutoScalingSettings != null
6118
5839
  ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ProvisionedReadCapacityAutoScalingSettings, context)
6119
5840
  : undefined,
6120
5841
  ProvisionedReadCapacityUnits: (0, smithy_client_1.expectLong)(output.ProvisionedReadCapacityUnits),
6121
- ProvisionedWriteCapacityAutoScalingSettings: output.ProvisionedWriteCapacityAutoScalingSettings !== undefined &&
6122
- output.ProvisionedWriteCapacityAutoScalingSettings !== null
5842
+ ProvisionedWriteCapacityAutoScalingSettings: output.ProvisionedWriteCapacityAutoScalingSettings != null
6123
5843
  ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ProvisionedWriteCapacityAutoScalingSettings, context)
6124
5844
  : undefined,
6125
5845
  ProvisionedWriteCapacityUnits: (0, smithy_client_1.expectLong)(output.ProvisionedWriteCapacityUnits),
@@ -6155,24 +5875,22 @@ const deserializeAws_json1_0ReplicaNotFoundException = (output, context) => {
6155
5875
  const deserializeAws_json1_0ReplicaSettingsDescription = (output, context) => {
6156
5876
  return {
6157
5877
  RegionName: (0, smithy_client_1.expectString)(output.RegionName),
6158
- ReplicaBillingModeSummary: output.ReplicaBillingModeSummary !== undefined && output.ReplicaBillingModeSummary !== null
5878
+ ReplicaBillingModeSummary: output.ReplicaBillingModeSummary != null
6159
5879
  ? deserializeAws_json1_0BillingModeSummary(output.ReplicaBillingModeSummary, context)
6160
5880
  : undefined,
6161
- ReplicaGlobalSecondaryIndexSettings: output.ReplicaGlobalSecondaryIndexSettings !== undefined && output.ReplicaGlobalSecondaryIndexSettings !== null
5881
+ ReplicaGlobalSecondaryIndexSettings: output.ReplicaGlobalSecondaryIndexSettings != null
6162
5882
  ? deserializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsDescriptionList(output.ReplicaGlobalSecondaryIndexSettings, context)
6163
5883
  : undefined,
6164
- ReplicaProvisionedReadCapacityAutoScalingSettings: output.ReplicaProvisionedReadCapacityAutoScalingSettings !== undefined &&
6165
- output.ReplicaProvisionedReadCapacityAutoScalingSettings !== null
5884
+ ReplicaProvisionedReadCapacityAutoScalingSettings: output.ReplicaProvisionedReadCapacityAutoScalingSettings != null
6166
5885
  ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ReplicaProvisionedReadCapacityAutoScalingSettings, context)
6167
5886
  : undefined,
6168
5887
  ReplicaProvisionedReadCapacityUnits: (0, smithy_client_1.expectLong)(output.ReplicaProvisionedReadCapacityUnits),
6169
- ReplicaProvisionedWriteCapacityAutoScalingSettings: output.ReplicaProvisionedWriteCapacityAutoScalingSettings !== undefined &&
6170
- output.ReplicaProvisionedWriteCapacityAutoScalingSettings !== null
5888
+ ReplicaProvisionedWriteCapacityAutoScalingSettings: output.ReplicaProvisionedWriteCapacityAutoScalingSettings != null
6171
5889
  ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ReplicaProvisionedWriteCapacityAutoScalingSettings, context)
6172
5890
  : undefined,
6173
5891
  ReplicaProvisionedWriteCapacityUnits: (0, smithy_client_1.expectLong)(output.ReplicaProvisionedWriteCapacityUnits),
6174
5892
  ReplicaStatus: (0, smithy_client_1.expectString)(output.ReplicaStatus),
6175
- ReplicaTableClassSummary: output.ReplicaTableClassSummary !== undefined && output.ReplicaTableClassSummary !== null
5893
+ ReplicaTableClassSummary: output.ReplicaTableClassSummary != null
6176
5894
  ? deserializeAws_json1_0TableClassSummary(output.ReplicaTableClassSummary, context)
6177
5895
  : undefined,
6178
5896
  };
@@ -6205,7 +5923,7 @@ const deserializeAws_json1_0ResourceNotFoundException = (output, context) => {
6205
5923
  };
6206
5924
  const deserializeAws_json1_0RestoreSummary = (output, context) => {
6207
5925
  return {
6208
- RestoreDateTime: output.RestoreDateTime !== undefined && output.RestoreDateTime !== null
5926
+ RestoreDateTime: output.RestoreDateTime != null
6209
5927
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.RestoreDateTime)))
6210
5928
  : undefined,
6211
5929
  RestoreInProgress: (0, smithy_client_1.expectBoolean)(output.RestoreInProgress),
@@ -6215,30 +5933,26 @@ const deserializeAws_json1_0RestoreSummary = (output, context) => {
6215
5933
  };
6216
5934
  const deserializeAws_json1_0RestoreTableFromBackupOutput = (output, context) => {
6217
5935
  return {
6218
- TableDescription: output.TableDescription !== undefined && output.TableDescription !== null
5936
+ TableDescription: output.TableDescription != null
6219
5937
  ? deserializeAws_json1_0TableDescription(output.TableDescription, context)
6220
5938
  : undefined,
6221
5939
  };
6222
5940
  };
6223
5941
  const deserializeAws_json1_0RestoreTableToPointInTimeOutput = (output, context) => {
6224
5942
  return {
6225
- TableDescription: output.TableDescription !== undefined && output.TableDescription !== null
5943
+ TableDescription: output.TableDescription != null
6226
5944
  ? deserializeAws_json1_0TableDescription(output.TableDescription, context)
6227
5945
  : undefined,
6228
5946
  };
6229
5947
  };
6230
5948
  const deserializeAws_json1_0ScanOutput = (output, context) => {
6231
5949
  return {
6232
- ConsumedCapacity: output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null
5950
+ ConsumedCapacity: output.ConsumedCapacity != null
6233
5951
  ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context)
6234
5952
  : undefined,
6235
5953
  Count: (0, smithy_client_1.expectInt32)(output.Count),
6236
- Items: output.Items !== undefined && output.Items !== null
6237
- ? deserializeAws_json1_0ItemList(output.Items, context)
6238
- : undefined,
6239
- LastEvaluatedKey: output.LastEvaluatedKey !== undefined && output.LastEvaluatedKey !== null
6240
- ? deserializeAws_json1_0Key(output.LastEvaluatedKey, context)
6241
- : undefined,
5954
+ Items: output.Items != null ? deserializeAws_json1_0ItemList(output.Items, context) : undefined,
5955
+ LastEvaluatedKey: output.LastEvaluatedKey != null ? deserializeAws_json1_0Key(output.LastEvaluatedKey, context) : undefined,
6242
5956
  ScannedCount: (0, smithy_client_1.expectInt32)(output.ScannedCount),
6243
5957
  };
6244
5958
  };
@@ -6257,14 +5971,12 @@ const deserializeAws_json1_0SourceTableDetails = (output, context) => {
6257
5971
  return {
6258
5972
  BillingMode: (0, smithy_client_1.expectString)(output.BillingMode),
6259
5973
  ItemCount: (0, smithy_client_1.expectLong)(output.ItemCount),
6260
- KeySchema: output.KeySchema !== undefined && output.KeySchema !== null
6261
- ? deserializeAws_json1_0KeySchema(output.KeySchema, context)
6262
- : undefined,
6263
- ProvisionedThroughput: output.ProvisionedThroughput !== undefined && output.ProvisionedThroughput !== null
5974
+ KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : undefined,
5975
+ ProvisionedThroughput: output.ProvisionedThroughput != null
6264
5976
  ? deserializeAws_json1_0ProvisionedThroughput(output.ProvisionedThroughput, context)
6265
5977
  : undefined,
6266
5978
  TableArn: (0, smithy_client_1.expectString)(output.TableArn),
6267
- TableCreationDateTime: output.TableCreationDateTime !== undefined && output.TableCreationDateTime !== null
5979
+ TableCreationDateTime: output.TableCreationDateTime != null
6268
5980
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.TableCreationDateTime)))
6269
5981
  : undefined,
6270
5982
  TableId: (0, smithy_client_1.expectString)(output.TableId),
@@ -6274,26 +5986,24 @@ const deserializeAws_json1_0SourceTableDetails = (output, context) => {
6274
5986
  };
6275
5987
  const deserializeAws_json1_0SourceTableFeatureDetails = (output, context) => {
6276
5988
  return {
6277
- GlobalSecondaryIndexes: output.GlobalSecondaryIndexes !== undefined && output.GlobalSecondaryIndexes !== null
5989
+ GlobalSecondaryIndexes: output.GlobalSecondaryIndexes != null
6278
5990
  ? deserializeAws_json1_0GlobalSecondaryIndexes(output.GlobalSecondaryIndexes, context)
6279
5991
  : undefined,
6280
- LocalSecondaryIndexes: output.LocalSecondaryIndexes !== undefined && output.LocalSecondaryIndexes !== null
5992
+ LocalSecondaryIndexes: output.LocalSecondaryIndexes != null
6281
5993
  ? deserializeAws_json1_0LocalSecondaryIndexes(output.LocalSecondaryIndexes, context)
6282
5994
  : undefined,
6283
- SSEDescription: output.SSEDescription !== undefined && output.SSEDescription !== null
6284
- ? deserializeAws_json1_0SSEDescription(output.SSEDescription, context)
6285
- : undefined,
6286
- StreamDescription: output.StreamDescription !== undefined && output.StreamDescription !== null
5995
+ SSEDescription: output.SSEDescription != null ? deserializeAws_json1_0SSEDescription(output.SSEDescription, context) : undefined,
5996
+ StreamDescription: output.StreamDescription != null
6287
5997
  ? deserializeAws_json1_0StreamSpecification(output.StreamDescription, context)
6288
5998
  : undefined,
6289
- TimeToLiveDescription: output.TimeToLiveDescription !== undefined && output.TimeToLiveDescription !== null
5999
+ TimeToLiveDescription: output.TimeToLiveDescription != null
6290
6000
  ? deserializeAws_json1_0TimeToLiveDescription(output.TimeToLiveDescription, context)
6291
6001
  : undefined,
6292
6002
  };
6293
6003
  };
6294
6004
  const deserializeAws_json1_0SSEDescription = (output, context) => {
6295
6005
  return {
6296
- InaccessibleEncryptionDateTime: output.InaccessibleEncryptionDateTime !== undefined && output.InaccessibleEncryptionDateTime !== null
6006
+ InaccessibleEncryptionDateTime: output.InaccessibleEncryptionDateTime != null
6297
6007
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.InaccessibleEncryptionDateTime)))
6298
6008
  : undefined,
6299
6009
  KMSMasterKeyArn: (0, smithy_client_1.expectString)(output.KMSMasterKeyArn),
@@ -6325,7 +6035,7 @@ const deserializeAws_json1_0TableAlreadyExistsException = (output, context) => {
6325
6035
  };
6326
6036
  const deserializeAws_json1_0TableAutoScalingDescription = (output, context) => {
6327
6037
  return {
6328
- Replicas: output.Replicas !== undefined && output.Replicas !== null
6038
+ Replicas: output.Replicas != null
6329
6039
  ? deserializeAws_json1_0ReplicaAutoScalingDescriptionList(output.Replicas, context)
6330
6040
  : undefined,
6331
6041
  TableName: (0, smithy_client_1.expectString)(output.TableName),
@@ -6334,7 +6044,7 @@ const deserializeAws_json1_0TableAutoScalingDescription = (output, context) => {
6334
6044
  };
6335
6045
  const deserializeAws_json1_0TableClassSummary = (output, context) => {
6336
6046
  return {
6337
- LastUpdateDateTime: output.LastUpdateDateTime !== undefined && output.LastUpdateDateTime !== null
6047
+ LastUpdateDateTime: output.LastUpdateDateTime != null
6338
6048
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdateDateTime)))
6339
6049
  : undefined,
6340
6050
  TableClass: (0, smithy_client_1.expectString)(output.TableClass),
@@ -6342,48 +6052,40 @@ const deserializeAws_json1_0TableClassSummary = (output, context) => {
6342
6052
  };
6343
6053
  const deserializeAws_json1_0TableDescription = (output, context) => {
6344
6054
  return {
6345
- ArchivalSummary: output.ArchivalSummary !== undefined && output.ArchivalSummary !== null
6055
+ ArchivalSummary: output.ArchivalSummary != null
6346
6056
  ? deserializeAws_json1_0ArchivalSummary(output.ArchivalSummary, context)
6347
6057
  : undefined,
6348
- AttributeDefinitions: output.AttributeDefinitions !== undefined && output.AttributeDefinitions !== null
6058
+ AttributeDefinitions: output.AttributeDefinitions != null
6349
6059
  ? deserializeAws_json1_0AttributeDefinitions(output.AttributeDefinitions, context)
6350
6060
  : undefined,
6351
- BillingModeSummary: output.BillingModeSummary !== undefined && output.BillingModeSummary !== null
6061
+ BillingModeSummary: output.BillingModeSummary != null
6352
6062
  ? deserializeAws_json1_0BillingModeSummary(output.BillingModeSummary, context)
6353
6063
  : undefined,
6354
- CreationDateTime: output.CreationDateTime !== undefined && output.CreationDateTime !== null
6064
+ CreationDateTime: output.CreationDateTime != null
6355
6065
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDateTime)))
6356
6066
  : undefined,
6357
- GlobalSecondaryIndexes: output.GlobalSecondaryIndexes !== undefined && output.GlobalSecondaryIndexes !== null
6067
+ GlobalSecondaryIndexes: output.GlobalSecondaryIndexes != null
6358
6068
  ? deserializeAws_json1_0GlobalSecondaryIndexDescriptionList(output.GlobalSecondaryIndexes, context)
6359
6069
  : undefined,
6360
6070
  GlobalTableVersion: (0, smithy_client_1.expectString)(output.GlobalTableVersion),
6361
6071
  ItemCount: (0, smithy_client_1.expectLong)(output.ItemCount),
6362
- KeySchema: output.KeySchema !== undefined && output.KeySchema !== null
6363
- ? deserializeAws_json1_0KeySchema(output.KeySchema, context)
6364
- : undefined,
6072
+ KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : undefined,
6365
6073
  LatestStreamArn: (0, smithy_client_1.expectString)(output.LatestStreamArn),
6366
6074
  LatestStreamLabel: (0, smithy_client_1.expectString)(output.LatestStreamLabel),
6367
- LocalSecondaryIndexes: output.LocalSecondaryIndexes !== undefined && output.LocalSecondaryIndexes !== null
6075
+ LocalSecondaryIndexes: output.LocalSecondaryIndexes != null
6368
6076
  ? deserializeAws_json1_0LocalSecondaryIndexDescriptionList(output.LocalSecondaryIndexes, context)
6369
6077
  : undefined,
6370
- ProvisionedThroughput: output.ProvisionedThroughput !== undefined && output.ProvisionedThroughput !== null
6078
+ ProvisionedThroughput: output.ProvisionedThroughput != null
6371
6079
  ? deserializeAws_json1_0ProvisionedThroughputDescription(output.ProvisionedThroughput, context)
6372
6080
  : undefined,
6373
- Replicas: output.Replicas !== undefined && output.Replicas !== null
6374
- ? deserializeAws_json1_0ReplicaDescriptionList(output.Replicas, context)
6375
- : undefined,
6376
- RestoreSummary: output.RestoreSummary !== undefined && output.RestoreSummary !== null
6377
- ? deserializeAws_json1_0RestoreSummary(output.RestoreSummary, context)
6378
- : undefined,
6379
- SSEDescription: output.SSEDescription !== undefined && output.SSEDescription !== null
6380
- ? deserializeAws_json1_0SSEDescription(output.SSEDescription, context)
6381
- : undefined,
6382
- StreamSpecification: output.StreamSpecification !== undefined && output.StreamSpecification !== null
6081
+ Replicas: output.Replicas != null ? deserializeAws_json1_0ReplicaDescriptionList(output.Replicas, context) : undefined,
6082
+ RestoreSummary: output.RestoreSummary != null ? deserializeAws_json1_0RestoreSummary(output.RestoreSummary, context) : undefined,
6083
+ SSEDescription: output.SSEDescription != null ? deserializeAws_json1_0SSEDescription(output.SSEDescription, context) : undefined,
6084
+ StreamSpecification: output.StreamSpecification != null
6383
6085
  ? deserializeAws_json1_0StreamSpecification(output.StreamSpecification, context)
6384
6086
  : undefined,
6385
6087
  TableArn: (0, smithy_client_1.expectString)(output.TableArn),
6386
- TableClassSummary: output.TableClassSummary !== undefined && output.TableClassSummary !== null
6088
+ TableClassSummary: output.TableClassSummary != null
6387
6089
  ? deserializeAws_json1_0TableClassSummary(output.TableClassSummary, context)
6388
6090
  : undefined,
6389
6091
  TableId: (0, smithy_client_1.expectString)(output.TableId),
@@ -6444,17 +6146,15 @@ const deserializeAws_json1_0TimeToLiveSpecification = (output, context) => {
6444
6146
  };
6445
6147
  const deserializeAws_json1_0TransactGetItemsOutput = (output, context) => {
6446
6148
  return {
6447
- ConsumedCapacity: output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null
6149
+ ConsumedCapacity: output.ConsumedCapacity != null
6448
6150
  ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context)
6449
6151
  : undefined,
6450
- Responses: output.Responses !== undefined && output.Responses !== null
6451
- ? deserializeAws_json1_0ItemResponseList(output.Responses, context)
6452
- : undefined,
6152
+ Responses: output.Responses != null ? deserializeAws_json1_0ItemResponseList(output.Responses, context) : undefined,
6453
6153
  };
6454
6154
  };
6455
6155
  const deserializeAws_json1_0TransactionCanceledException = (output, context) => {
6456
6156
  return {
6457
- CancellationReasons: output.CancellationReasons !== undefined && output.CancellationReasons !== null
6157
+ CancellationReasons: output.CancellationReasons != null
6458
6158
  ? deserializeAws_json1_0CancellationReasonList(output.CancellationReasons, context)
6459
6159
  : undefined,
6460
6160
  Message: (0, smithy_client_1.expectString)(output.Message),
@@ -6472,17 +6172,17 @@ const deserializeAws_json1_0TransactionInProgressException = (output, context) =
6472
6172
  };
6473
6173
  const deserializeAws_json1_0TransactWriteItemsOutput = (output, context) => {
6474
6174
  return {
6475
- ConsumedCapacity: output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null
6175
+ ConsumedCapacity: output.ConsumedCapacity != null
6476
6176
  ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context)
6477
6177
  : undefined,
6478
- ItemCollectionMetrics: output.ItemCollectionMetrics !== undefined && output.ItemCollectionMetrics !== null
6178
+ ItemCollectionMetrics: output.ItemCollectionMetrics != null
6479
6179
  ? deserializeAws_json1_0ItemCollectionMetricsPerTable(output.ItemCollectionMetrics, context)
6480
6180
  : undefined,
6481
6181
  };
6482
6182
  };
6483
6183
  const deserializeAws_json1_0UpdateContinuousBackupsOutput = (output, context) => {
6484
6184
  return {
6485
- ContinuousBackupsDescription: output.ContinuousBackupsDescription !== undefined && output.ContinuousBackupsDescription !== null
6185
+ ContinuousBackupsDescription: output.ContinuousBackupsDescription != null
6486
6186
  ? deserializeAws_json1_0ContinuousBackupsDescription(output.ContinuousBackupsDescription, context)
6487
6187
  : undefined,
6488
6188
  };
@@ -6496,7 +6196,7 @@ const deserializeAws_json1_0UpdateContributorInsightsOutput = (output, context)
6496
6196
  };
6497
6197
  const deserializeAws_json1_0UpdateGlobalTableOutput = (output, context) => {
6498
6198
  return {
6499
- GlobalTableDescription: output.GlobalTableDescription !== undefined && output.GlobalTableDescription !== null
6199
+ GlobalTableDescription: output.GlobalTableDescription != null
6500
6200
  ? deserializeAws_json1_0GlobalTableDescription(output.GlobalTableDescription, context)
6501
6201
  : undefined,
6502
6202
  };
@@ -6504,53 +6204,47 @@ const deserializeAws_json1_0UpdateGlobalTableOutput = (output, context) => {
6504
6204
  const deserializeAws_json1_0UpdateGlobalTableSettingsOutput = (output, context) => {
6505
6205
  return {
6506
6206
  GlobalTableName: (0, smithy_client_1.expectString)(output.GlobalTableName),
6507
- ReplicaSettings: output.ReplicaSettings !== undefined && output.ReplicaSettings !== null
6207
+ ReplicaSettings: output.ReplicaSettings != null
6508
6208
  ? deserializeAws_json1_0ReplicaSettingsDescriptionList(output.ReplicaSettings, context)
6509
6209
  : undefined,
6510
6210
  };
6511
6211
  };
6512
6212
  const deserializeAws_json1_0UpdateItemOutput = (output, context) => {
6513
6213
  return {
6514
- Attributes: output.Attributes !== undefined && output.Attributes !== null
6515
- ? deserializeAws_json1_0AttributeMap(output.Attributes, context)
6516
- : undefined,
6517
- ConsumedCapacity: output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null
6214
+ Attributes: output.Attributes != null ? deserializeAws_json1_0AttributeMap(output.Attributes, context) : undefined,
6215
+ ConsumedCapacity: output.ConsumedCapacity != null
6518
6216
  ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context)
6519
6217
  : undefined,
6520
- ItemCollectionMetrics: output.ItemCollectionMetrics !== undefined && output.ItemCollectionMetrics !== null
6218
+ ItemCollectionMetrics: output.ItemCollectionMetrics != null
6521
6219
  ? deserializeAws_json1_0ItemCollectionMetrics(output.ItemCollectionMetrics, context)
6522
6220
  : undefined,
6523
6221
  };
6524
6222
  };
6525
6223
  const deserializeAws_json1_0UpdateTableOutput = (output, context) => {
6526
6224
  return {
6527
- TableDescription: output.TableDescription !== undefined && output.TableDescription !== null
6225
+ TableDescription: output.TableDescription != null
6528
6226
  ? deserializeAws_json1_0TableDescription(output.TableDescription, context)
6529
6227
  : undefined,
6530
6228
  };
6531
6229
  };
6532
6230
  const deserializeAws_json1_0UpdateTableReplicaAutoScalingOutput = (output, context) => {
6533
6231
  return {
6534
- TableAutoScalingDescription: output.TableAutoScalingDescription !== undefined && output.TableAutoScalingDescription !== null
6232
+ TableAutoScalingDescription: output.TableAutoScalingDescription != null
6535
6233
  ? deserializeAws_json1_0TableAutoScalingDescription(output.TableAutoScalingDescription, context)
6536
6234
  : undefined,
6537
6235
  };
6538
6236
  };
6539
6237
  const deserializeAws_json1_0UpdateTimeToLiveOutput = (output, context) => {
6540
6238
  return {
6541
- TimeToLiveSpecification: output.TimeToLiveSpecification !== undefined && output.TimeToLiveSpecification !== null
6239
+ TimeToLiveSpecification: output.TimeToLiveSpecification != null
6542
6240
  ? deserializeAws_json1_0TimeToLiveSpecification(output.TimeToLiveSpecification, context)
6543
6241
  : undefined,
6544
6242
  };
6545
6243
  };
6546
6244
  const deserializeAws_json1_0WriteRequest = (output, context) => {
6547
6245
  return {
6548
- DeleteRequest: output.DeleteRequest !== undefined && output.DeleteRequest !== null
6549
- ? deserializeAws_json1_0DeleteRequest(output.DeleteRequest, context)
6550
- : undefined,
6551
- PutRequest: output.PutRequest !== undefined && output.PutRequest !== null
6552
- ? deserializeAws_json1_0PutRequest(output.PutRequest, context)
6553
- : undefined,
6246
+ DeleteRequest: output.DeleteRequest != null ? deserializeAws_json1_0DeleteRequest(output.DeleteRequest, context) : undefined,
6247
+ PutRequest: output.PutRequest != null ? deserializeAws_json1_0PutRequest(output.PutRequest, context) : undefined,
6554
6248
  };
6555
6249
  };
6556
6250
  const deserializeAws_json1_0WriteRequests = (output, context) => {