@aws-sdk/client-rds 3.201.0 → 3.202.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.
@@ -8432,6 +8432,9 @@ const serializeAws_queryAddTagsToResourceMessage = (input, context) => {
8432
8432
  }
8433
8433
  if (input.Tags != null) {
8434
8434
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
8435
+ if (input.Tags?.length === 0) {
8436
+ entries.Tags = [];
8437
+ }
8435
8438
  Object.entries(memberEntries).forEach(([key, value]) => {
8436
8439
  const loc = `Tags.${key}`;
8437
8440
  entries[loc] = value;
@@ -8522,6 +8525,9 @@ const serializeAws_queryCloudwatchLogsExportConfiguration = (input, context) =>
8522
8525
  const entries = {};
8523
8526
  if (input.EnableLogTypes != null) {
8524
8527
  const memberEntries = serializeAws_queryLogTypeList(input.EnableLogTypes, context);
8528
+ if (input.EnableLogTypes?.length === 0) {
8529
+ entries.EnableLogTypes = [];
8530
+ }
8525
8531
  Object.entries(memberEntries).forEach(([key, value]) => {
8526
8532
  const loc = `EnableLogTypes.${key}`;
8527
8533
  entries[loc] = value;
@@ -8529,6 +8535,9 @@ const serializeAws_queryCloudwatchLogsExportConfiguration = (input, context) =>
8529
8535
  }
8530
8536
  if (input.DisableLogTypes != null) {
8531
8537
  const memberEntries = serializeAws_queryLogTypeList(input.DisableLogTypes, context);
8538
+ if (input.DisableLogTypes?.length === 0) {
8539
+ entries.DisableLogTypes = [];
8540
+ }
8532
8541
  Object.entries(memberEntries).forEach(([key, value]) => {
8533
8542
  const loc = `DisableLogTypes.${key}`;
8534
8543
  entries[loc] = value;
@@ -8549,6 +8558,9 @@ const serializeAws_queryConnectionPoolConfiguration = (input, context) => {
8549
8558
  }
8550
8559
  if (input.SessionPinningFilters != null) {
8551
8560
  const memberEntries = serializeAws_queryStringList(input.SessionPinningFilters, context);
8561
+ if (input.SessionPinningFilters?.length === 0) {
8562
+ entries.SessionPinningFilters = [];
8563
+ }
8552
8564
  Object.entries(memberEntries).forEach(([key, value]) => {
8553
8565
  const loc = `SessionPinningFilters.${key}`;
8554
8566
  entries[loc] = value;
@@ -8572,6 +8584,9 @@ const serializeAws_queryCopyDBClusterParameterGroupMessage = (input, context) =>
8572
8584
  }
8573
8585
  if (input.Tags != null) {
8574
8586
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
8587
+ if (input.Tags?.length === 0) {
8588
+ entries.Tags = [];
8589
+ }
8575
8590
  Object.entries(memberEntries).forEach(([key, value]) => {
8576
8591
  const loc = `Tags.${key}`;
8577
8592
  entries[loc] = value;
@@ -8598,6 +8613,9 @@ const serializeAws_queryCopyDBClusterSnapshotMessage = (input, context) => {
8598
8613
  }
8599
8614
  if (input.Tags != null) {
8600
8615
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
8616
+ if (input.Tags?.length === 0) {
8617
+ entries.Tags = [];
8618
+ }
8601
8619
  Object.entries(memberEntries).forEach(([key, value]) => {
8602
8620
  const loc = `Tags.${key}`;
8603
8621
  entries[loc] = value;
@@ -8618,6 +8636,9 @@ const serializeAws_queryCopyDBParameterGroupMessage = (input, context) => {
8618
8636
  }
8619
8637
  if (input.Tags != null) {
8620
8638
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
8639
+ if (input.Tags?.length === 0) {
8640
+ entries.Tags = [];
8641
+ }
8621
8642
  Object.entries(memberEntries).forEach(([key, value]) => {
8622
8643
  const loc = `Tags.${key}`;
8623
8644
  entries[loc] = value;
@@ -8638,6 +8659,9 @@ const serializeAws_queryCopyDBSnapshotMessage = (input, context) => {
8638
8659
  }
8639
8660
  if (input.Tags != null) {
8640
8661
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
8662
+ if (input.Tags?.length === 0) {
8663
+ entries.Tags = [];
8664
+ }
8641
8665
  Object.entries(memberEntries).forEach(([key, value]) => {
8642
8666
  const loc = `Tags.${key}`;
8643
8667
  entries[loc] = value;
@@ -8670,6 +8694,9 @@ const serializeAws_queryCopyOptionGroupMessage = (input, context) => {
8670
8694
  }
8671
8695
  if (input.Tags != null) {
8672
8696
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
8697
+ if (input.Tags?.length === 0) {
8698
+ entries.Tags = [];
8699
+ }
8673
8700
  Object.entries(memberEntries).forEach(([key, value]) => {
8674
8701
  const loc = `Tags.${key}`;
8675
8702
  entries[loc] = value;
@@ -8702,6 +8729,9 @@ const serializeAws_queryCreateCustomDBEngineVersionMessage = (input, context) =>
8702
8729
  }
8703
8730
  if (input.Tags != null) {
8704
8731
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
8732
+ if (input.Tags?.length === 0) {
8733
+ entries.Tags = [];
8734
+ }
8705
8735
  Object.entries(memberEntries).forEach(([key, value]) => {
8706
8736
  const loc = `Tags.${key}`;
8707
8737
  entries[loc] = value;
@@ -8722,6 +8752,9 @@ const serializeAws_queryCreateDBClusterEndpointMessage = (input, context) => {
8722
8752
  }
8723
8753
  if (input.StaticMembers != null) {
8724
8754
  const memberEntries = serializeAws_queryStringList(input.StaticMembers, context);
8755
+ if (input.StaticMembers?.length === 0) {
8756
+ entries.StaticMembers = [];
8757
+ }
8725
8758
  Object.entries(memberEntries).forEach(([key, value]) => {
8726
8759
  const loc = `StaticMembers.${key}`;
8727
8760
  entries[loc] = value;
@@ -8729,6 +8762,9 @@ const serializeAws_queryCreateDBClusterEndpointMessage = (input, context) => {
8729
8762
  }
8730
8763
  if (input.ExcludedMembers != null) {
8731
8764
  const memberEntries = serializeAws_queryStringList(input.ExcludedMembers, context);
8765
+ if (input.ExcludedMembers?.length === 0) {
8766
+ entries.ExcludedMembers = [];
8767
+ }
8732
8768
  Object.entries(memberEntries).forEach(([key, value]) => {
8733
8769
  const loc = `ExcludedMembers.${key}`;
8734
8770
  entries[loc] = value;
@@ -8736,6 +8772,9 @@ const serializeAws_queryCreateDBClusterEndpointMessage = (input, context) => {
8736
8772
  }
8737
8773
  if (input.Tags != null) {
8738
8774
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
8775
+ if (input.Tags?.length === 0) {
8776
+ entries.Tags = [];
8777
+ }
8739
8778
  Object.entries(memberEntries).forEach(([key, value]) => {
8740
8779
  const loc = `Tags.${key}`;
8741
8780
  entries[loc] = value;
@@ -8747,6 +8786,9 @@ const serializeAws_queryCreateDBClusterMessage = (input, context) => {
8747
8786
  const entries = {};
8748
8787
  if (input.AvailabilityZones != null) {
8749
8788
  const memberEntries = serializeAws_queryAvailabilityZones(input.AvailabilityZones, context);
8789
+ if (input.AvailabilityZones?.length === 0) {
8790
+ entries.AvailabilityZones = [];
8791
+ }
8750
8792
  Object.entries(memberEntries).forEach(([key, value]) => {
8751
8793
  const loc = `AvailabilityZones.${key}`;
8752
8794
  entries[loc] = value;
@@ -8769,6 +8811,9 @@ const serializeAws_queryCreateDBClusterMessage = (input, context) => {
8769
8811
  }
8770
8812
  if (input.VpcSecurityGroupIds != null) {
8771
8813
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
8814
+ if (input.VpcSecurityGroupIds?.length === 0) {
8815
+ entries.VpcSecurityGroupIds = [];
8816
+ }
8772
8817
  Object.entries(memberEntries).forEach(([key, value]) => {
8773
8818
  const loc = `VpcSecurityGroupIds.${key}`;
8774
8819
  entries[loc] = value;
@@ -8806,6 +8851,9 @@ const serializeAws_queryCreateDBClusterMessage = (input, context) => {
8806
8851
  }
8807
8852
  if (input.Tags != null) {
8808
8853
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
8854
+ if (input.Tags?.length === 0) {
8855
+ entries.Tags = [];
8856
+ }
8809
8857
  Object.entries(memberEntries).forEach(([key, value]) => {
8810
8858
  const loc = `Tags.${key}`;
8811
8859
  entries[loc] = value;
@@ -8828,6 +8876,9 @@ const serializeAws_queryCreateDBClusterMessage = (input, context) => {
8828
8876
  }
8829
8877
  if (input.EnableCloudwatchLogsExports != null) {
8830
8878
  const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
8879
+ if (input.EnableCloudwatchLogsExports?.length === 0) {
8880
+ entries.EnableCloudwatchLogsExports = [];
8881
+ }
8831
8882
  Object.entries(memberEntries).forEach(([key, value]) => {
8832
8883
  const loc = `EnableCloudwatchLogsExports.${key}`;
8833
8884
  entries[loc] = value;
@@ -8922,6 +8973,9 @@ const serializeAws_queryCreateDBClusterParameterGroupMessage = (input, context)
8922
8973
  }
8923
8974
  if (input.Tags != null) {
8924
8975
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
8976
+ if (input.Tags?.length === 0) {
8977
+ entries.Tags = [];
8978
+ }
8925
8979
  Object.entries(memberEntries).forEach(([key, value]) => {
8926
8980
  const loc = `Tags.${key}`;
8927
8981
  entries[loc] = value;
@@ -8939,6 +8993,9 @@ const serializeAws_queryCreateDBClusterSnapshotMessage = (input, context) => {
8939
8993
  }
8940
8994
  if (input.Tags != null) {
8941
8995
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
8996
+ if (input.Tags?.length === 0) {
8997
+ entries.Tags = [];
8998
+ }
8942
8999
  Object.entries(memberEntries).forEach(([key, value]) => {
8943
9000
  const loc = `Tags.${key}`;
8944
9001
  entries[loc] = value;
@@ -8971,6 +9028,9 @@ const serializeAws_queryCreateDBInstanceMessage = (input, context) => {
8971
9028
  }
8972
9029
  if (input.DBSecurityGroups != null) {
8973
9030
  const memberEntries = serializeAws_queryDBSecurityGroupNameList(input.DBSecurityGroups, context);
9031
+ if (input.DBSecurityGroups?.length === 0) {
9032
+ entries.DBSecurityGroups = [];
9033
+ }
8974
9034
  Object.entries(memberEntries).forEach(([key, value]) => {
8975
9035
  const loc = `DBSecurityGroups.${key}`;
8976
9036
  entries[loc] = value;
@@ -8978,6 +9038,9 @@ const serializeAws_queryCreateDBInstanceMessage = (input, context) => {
8978
9038
  }
8979
9039
  if (input.VpcSecurityGroupIds != null) {
8980
9040
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
9041
+ if (input.VpcSecurityGroupIds?.length === 0) {
9042
+ entries.VpcSecurityGroupIds = [];
9043
+ }
8981
9044
  Object.entries(memberEntries).forEach(([key, value]) => {
8982
9045
  const loc = `VpcSecurityGroupIds.${key}`;
8983
9046
  entries[loc] = value;
@@ -9033,6 +9096,9 @@ const serializeAws_queryCreateDBInstanceMessage = (input, context) => {
9033
9096
  }
9034
9097
  if (input.Tags != null) {
9035
9098
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9099
+ if (input.Tags?.length === 0) {
9100
+ entries.Tags = [];
9101
+ }
9036
9102
  Object.entries(memberEntries).forEach(([key, value]) => {
9037
9103
  const loc = `Tags.${key}`;
9038
9104
  entries[loc] = value;
@@ -9091,6 +9157,9 @@ const serializeAws_queryCreateDBInstanceMessage = (input, context) => {
9091
9157
  }
9092
9158
  if (input.EnableCloudwatchLogsExports != null) {
9093
9159
  const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
9160
+ if (input.EnableCloudwatchLogsExports?.length === 0) {
9161
+ entries.EnableCloudwatchLogsExports = [];
9162
+ }
9094
9163
  Object.entries(memberEntries).forEach(([key, value]) => {
9095
9164
  const loc = `EnableCloudwatchLogsExports.${key}`;
9096
9165
  entries[loc] = value;
@@ -9098,6 +9167,9 @@ const serializeAws_queryCreateDBInstanceMessage = (input, context) => {
9098
9167
  }
9099
9168
  if (input.ProcessorFeatures != null) {
9100
9169
  const memberEntries = serializeAws_queryProcessorFeatureList(input.ProcessorFeatures, context);
9170
+ if (input.ProcessorFeatures?.length === 0) {
9171
+ entries.ProcessorFeatures = [];
9172
+ }
9101
9173
  Object.entries(memberEntries).forEach(([key, value]) => {
9102
9174
  const loc = `ProcessorFeatures.${key}`;
9103
9175
  entries[loc] = value;
@@ -9163,6 +9235,9 @@ const serializeAws_queryCreateDBInstanceReadReplicaMessage = (input, context) =>
9163
9235
  }
9164
9236
  if (input.Tags != null) {
9165
9237
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9238
+ if (input.Tags?.length === 0) {
9239
+ entries.Tags = [];
9240
+ }
9166
9241
  Object.entries(memberEntries).forEach(([key, value]) => {
9167
9242
  const loc = `Tags.${key}`;
9168
9243
  entries[loc] = value;
@@ -9173,6 +9248,9 @@ const serializeAws_queryCreateDBInstanceReadReplicaMessage = (input, context) =>
9173
9248
  }
9174
9249
  if (input.VpcSecurityGroupIds != null) {
9175
9250
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
9251
+ if (input.VpcSecurityGroupIds?.length === 0) {
9252
+ entries.VpcSecurityGroupIds = [];
9253
+ }
9176
9254
  Object.entries(memberEntries).forEach(([key, value]) => {
9177
9255
  const loc = `VpcSecurityGroupIds.${key}`;
9178
9256
  entries[loc] = value;
@@ -9210,6 +9288,9 @@ const serializeAws_queryCreateDBInstanceReadReplicaMessage = (input, context) =>
9210
9288
  }
9211
9289
  if (input.EnableCloudwatchLogsExports != null) {
9212
9290
  const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
9291
+ if (input.EnableCloudwatchLogsExports?.length === 0) {
9292
+ entries.EnableCloudwatchLogsExports = [];
9293
+ }
9213
9294
  Object.entries(memberEntries).forEach(([key, value]) => {
9214
9295
  const loc = `EnableCloudwatchLogsExports.${key}`;
9215
9296
  entries[loc] = value;
@@ -9217,6 +9298,9 @@ const serializeAws_queryCreateDBInstanceReadReplicaMessage = (input, context) =>
9217
9298
  }
9218
9299
  if (input.ProcessorFeatures != null) {
9219
9300
  const memberEntries = serializeAws_queryProcessorFeatureList(input.ProcessorFeatures, context);
9301
+ if (input.ProcessorFeatures?.length === 0) {
9302
+ entries.ProcessorFeatures = [];
9303
+ }
9220
9304
  Object.entries(memberEntries).forEach(([key, value]) => {
9221
9305
  const loc = `ProcessorFeatures.${key}`;
9222
9306
  entries[loc] = value;
@@ -9264,6 +9348,9 @@ const serializeAws_queryCreateDBParameterGroupMessage = (input, context) => {
9264
9348
  }
9265
9349
  if (input.Tags != null) {
9266
9350
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9351
+ if (input.Tags?.length === 0) {
9352
+ entries.Tags = [];
9353
+ }
9267
9354
  Object.entries(memberEntries).forEach(([key, value]) => {
9268
9355
  const loc = `Tags.${key}`;
9269
9356
  entries[loc] = value;
@@ -9281,6 +9368,9 @@ const serializeAws_queryCreateDBProxyEndpointRequest = (input, context) => {
9281
9368
  }
9282
9369
  if (input.VpcSubnetIds != null) {
9283
9370
  const memberEntries = serializeAws_queryStringList(input.VpcSubnetIds, context);
9371
+ if (input.VpcSubnetIds?.length === 0) {
9372
+ entries.VpcSubnetIds = [];
9373
+ }
9284
9374
  Object.entries(memberEntries).forEach(([key, value]) => {
9285
9375
  const loc = `VpcSubnetIds.${key}`;
9286
9376
  entries[loc] = value;
@@ -9288,6 +9378,9 @@ const serializeAws_queryCreateDBProxyEndpointRequest = (input, context) => {
9288
9378
  }
9289
9379
  if (input.VpcSecurityGroupIds != null) {
9290
9380
  const memberEntries = serializeAws_queryStringList(input.VpcSecurityGroupIds, context);
9381
+ if (input.VpcSecurityGroupIds?.length === 0) {
9382
+ entries.VpcSecurityGroupIds = [];
9383
+ }
9291
9384
  Object.entries(memberEntries).forEach(([key, value]) => {
9292
9385
  const loc = `VpcSecurityGroupIds.${key}`;
9293
9386
  entries[loc] = value;
@@ -9298,6 +9391,9 @@ const serializeAws_queryCreateDBProxyEndpointRequest = (input, context) => {
9298
9391
  }
9299
9392
  if (input.Tags != null) {
9300
9393
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9394
+ if (input.Tags?.length === 0) {
9395
+ entries.Tags = [];
9396
+ }
9301
9397
  Object.entries(memberEntries).forEach(([key, value]) => {
9302
9398
  const loc = `Tags.${key}`;
9303
9399
  entries[loc] = value;
@@ -9315,6 +9411,9 @@ const serializeAws_queryCreateDBProxyRequest = (input, context) => {
9315
9411
  }
9316
9412
  if (input.Auth != null) {
9317
9413
  const memberEntries = serializeAws_queryUserAuthConfigList(input.Auth, context);
9414
+ if (input.Auth?.length === 0) {
9415
+ entries.Auth = [];
9416
+ }
9318
9417
  Object.entries(memberEntries).forEach(([key, value]) => {
9319
9418
  const loc = `Auth.${key}`;
9320
9419
  entries[loc] = value;
@@ -9325,6 +9424,9 @@ const serializeAws_queryCreateDBProxyRequest = (input, context) => {
9325
9424
  }
9326
9425
  if (input.VpcSubnetIds != null) {
9327
9426
  const memberEntries = serializeAws_queryStringList(input.VpcSubnetIds, context);
9427
+ if (input.VpcSubnetIds?.length === 0) {
9428
+ entries.VpcSubnetIds = [];
9429
+ }
9328
9430
  Object.entries(memberEntries).forEach(([key, value]) => {
9329
9431
  const loc = `VpcSubnetIds.${key}`;
9330
9432
  entries[loc] = value;
@@ -9332,6 +9434,9 @@ const serializeAws_queryCreateDBProxyRequest = (input, context) => {
9332
9434
  }
9333
9435
  if (input.VpcSecurityGroupIds != null) {
9334
9436
  const memberEntries = serializeAws_queryStringList(input.VpcSecurityGroupIds, context);
9437
+ if (input.VpcSecurityGroupIds?.length === 0) {
9438
+ entries.VpcSecurityGroupIds = [];
9439
+ }
9335
9440
  Object.entries(memberEntries).forEach(([key, value]) => {
9336
9441
  const loc = `VpcSecurityGroupIds.${key}`;
9337
9442
  entries[loc] = value;
@@ -9348,6 +9453,9 @@ const serializeAws_queryCreateDBProxyRequest = (input, context) => {
9348
9453
  }
9349
9454
  if (input.Tags != null) {
9350
9455
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9456
+ if (input.Tags?.length === 0) {
9457
+ entries.Tags = [];
9458
+ }
9351
9459
  Object.entries(memberEntries).forEach(([key, value]) => {
9352
9460
  const loc = `Tags.${key}`;
9353
9461
  entries[loc] = value;
@@ -9365,6 +9473,9 @@ const serializeAws_queryCreateDBSecurityGroupMessage = (input, context) => {
9365
9473
  }
9366
9474
  if (input.Tags != null) {
9367
9475
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9476
+ if (input.Tags?.length === 0) {
9477
+ entries.Tags = [];
9478
+ }
9368
9479
  Object.entries(memberEntries).forEach(([key, value]) => {
9369
9480
  const loc = `Tags.${key}`;
9370
9481
  entries[loc] = value;
@@ -9382,6 +9493,9 @@ const serializeAws_queryCreateDBSnapshotMessage = (input, context) => {
9382
9493
  }
9383
9494
  if (input.Tags != null) {
9384
9495
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9496
+ if (input.Tags?.length === 0) {
9497
+ entries.Tags = [];
9498
+ }
9385
9499
  Object.entries(memberEntries).forEach(([key, value]) => {
9386
9500
  const loc = `Tags.${key}`;
9387
9501
  entries[loc] = value;
@@ -9399,6 +9513,9 @@ const serializeAws_queryCreateDBSubnetGroupMessage = (input, context) => {
9399
9513
  }
9400
9514
  if (input.SubnetIds != null) {
9401
9515
  const memberEntries = serializeAws_querySubnetIdentifierList(input.SubnetIds, context);
9516
+ if (input.SubnetIds?.length === 0) {
9517
+ entries.SubnetIds = [];
9518
+ }
9402
9519
  Object.entries(memberEntries).forEach(([key, value]) => {
9403
9520
  const loc = `SubnetIds.${key}`;
9404
9521
  entries[loc] = value;
@@ -9406,6 +9523,9 @@ const serializeAws_queryCreateDBSubnetGroupMessage = (input, context) => {
9406
9523
  }
9407
9524
  if (input.Tags != null) {
9408
9525
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9526
+ if (input.Tags?.length === 0) {
9527
+ entries.Tags = [];
9528
+ }
9409
9529
  Object.entries(memberEntries).forEach(([key, value]) => {
9410
9530
  const loc = `Tags.${key}`;
9411
9531
  entries[loc] = value;
@@ -9426,6 +9546,9 @@ const serializeAws_queryCreateEventSubscriptionMessage = (input, context) => {
9426
9546
  }
9427
9547
  if (input.EventCategories != null) {
9428
9548
  const memberEntries = serializeAws_queryEventCategoriesList(input.EventCategories, context);
9549
+ if (input.EventCategories?.length === 0) {
9550
+ entries.EventCategories = [];
9551
+ }
9429
9552
  Object.entries(memberEntries).forEach(([key, value]) => {
9430
9553
  const loc = `EventCategories.${key}`;
9431
9554
  entries[loc] = value;
@@ -9433,6 +9556,9 @@ const serializeAws_queryCreateEventSubscriptionMessage = (input, context) => {
9433
9556
  }
9434
9557
  if (input.SourceIds != null) {
9435
9558
  const memberEntries = serializeAws_querySourceIdsList(input.SourceIds, context);
9559
+ if (input.SourceIds?.length === 0) {
9560
+ entries.SourceIds = [];
9561
+ }
9436
9562
  Object.entries(memberEntries).forEach(([key, value]) => {
9437
9563
  const loc = `SourceIds.${key}`;
9438
9564
  entries[loc] = value;
@@ -9443,6 +9569,9 @@ const serializeAws_queryCreateEventSubscriptionMessage = (input, context) => {
9443
9569
  }
9444
9570
  if (input.Tags != null) {
9445
9571
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9572
+ if (input.Tags?.length === 0) {
9573
+ entries.Tags = [];
9574
+ }
9446
9575
  Object.entries(memberEntries).forEach(([key, value]) => {
9447
9576
  const loc = `Tags.${key}`;
9448
9577
  entries[loc] = value;
@@ -9491,6 +9620,9 @@ const serializeAws_queryCreateOptionGroupMessage = (input, context) => {
9491
9620
  }
9492
9621
  if (input.Tags != null) {
9493
9622
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9623
+ if (input.Tags?.length === 0) {
9624
+ entries.Tags = [];
9625
+ }
9494
9626
  Object.entries(memberEntries).forEach(([key, value]) => {
9495
9627
  const loc = `Tags.${key}`;
9496
9628
  entries[loc] = value;
@@ -9653,6 +9785,9 @@ const serializeAws_queryDeregisterDBProxyTargetsRequest = (input, context) => {
9653
9785
  }
9654
9786
  if (input.DBInstanceIdentifiers != null) {
9655
9787
  const memberEntries = serializeAws_queryStringList(input.DBInstanceIdentifiers, context);
9788
+ if (input.DBInstanceIdentifiers?.length === 0) {
9789
+ entries.DBInstanceIdentifiers = [];
9790
+ }
9656
9791
  Object.entries(memberEntries).forEach(([key, value]) => {
9657
9792
  const loc = `DBInstanceIdentifiers.${key}`;
9658
9793
  entries[loc] = value;
@@ -9660,6 +9795,9 @@ const serializeAws_queryDeregisterDBProxyTargetsRequest = (input, context) => {
9660
9795
  }
9661
9796
  if (input.DBClusterIdentifiers != null) {
9662
9797
  const memberEntries = serializeAws_queryStringList(input.DBClusterIdentifiers, context);
9798
+ if (input.DBClusterIdentifiers?.length === 0) {
9799
+ entries.DBClusterIdentifiers = [];
9800
+ }
9663
9801
  Object.entries(memberEntries).forEach(([key, value]) => {
9664
9802
  const loc = `DBClusterIdentifiers.${key}`;
9665
9803
  entries[loc] = value;
@@ -9678,6 +9816,9 @@ const serializeAws_queryDescribeCertificatesMessage = (input, context) => {
9678
9816
  }
9679
9817
  if (input.Filters != null) {
9680
9818
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
9819
+ if (input.Filters?.length === 0) {
9820
+ entries.Filters = [];
9821
+ }
9681
9822
  Object.entries(memberEntries).forEach(([key, value]) => {
9682
9823
  const loc = `Filters.${key}`;
9683
9824
  entries[loc] = value;
@@ -9701,6 +9842,9 @@ const serializeAws_queryDescribeDBClusterBacktracksMessage = (input, context) =>
9701
9842
  }
9702
9843
  if (input.Filters != null) {
9703
9844
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
9845
+ if (input.Filters?.length === 0) {
9846
+ entries.Filters = [];
9847
+ }
9704
9848
  Object.entries(memberEntries).forEach(([key, value]) => {
9705
9849
  const loc = `Filters.${key}`;
9706
9850
  entries[loc] = value;
@@ -9724,6 +9868,9 @@ const serializeAws_queryDescribeDBClusterEndpointsMessage = (input, context) =>
9724
9868
  }
9725
9869
  if (input.Filters != null) {
9726
9870
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
9871
+ if (input.Filters?.length === 0) {
9872
+ entries.Filters = [];
9873
+ }
9727
9874
  Object.entries(memberEntries).forEach(([key, value]) => {
9728
9875
  const loc = `Filters.${key}`;
9729
9876
  entries[loc] = value;
@@ -9744,6 +9891,9 @@ const serializeAws_queryDescribeDBClusterParameterGroupsMessage = (input, contex
9744
9891
  }
9745
9892
  if (input.Filters != null) {
9746
9893
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
9894
+ if (input.Filters?.length === 0) {
9895
+ entries.Filters = [];
9896
+ }
9747
9897
  Object.entries(memberEntries).forEach(([key, value]) => {
9748
9898
  const loc = `Filters.${key}`;
9749
9899
  entries[loc] = value;
@@ -9767,6 +9917,9 @@ const serializeAws_queryDescribeDBClusterParametersMessage = (input, context) =>
9767
9917
  }
9768
9918
  if (input.Filters != null) {
9769
9919
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
9920
+ if (input.Filters?.length === 0) {
9921
+ entries.Filters = [];
9922
+ }
9770
9923
  Object.entries(memberEntries).forEach(([key, value]) => {
9771
9924
  const loc = `Filters.${key}`;
9772
9925
  entries[loc] = value;
@@ -9787,6 +9940,9 @@ const serializeAws_queryDescribeDBClustersMessage = (input, context) => {
9787
9940
  }
9788
9941
  if (input.Filters != null) {
9789
9942
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
9943
+ if (input.Filters?.length === 0) {
9944
+ entries.Filters = [];
9945
+ }
9790
9946
  Object.entries(memberEntries).forEach(([key, value]) => {
9791
9947
  const loc = `Filters.${key}`;
9792
9948
  entries[loc] = value;
@@ -9823,6 +9979,9 @@ const serializeAws_queryDescribeDBClusterSnapshotsMessage = (input, context) =>
9823
9979
  }
9824
9980
  if (input.Filters != null) {
9825
9981
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
9982
+ if (input.Filters?.length === 0) {
9983
+ entries.Filters = [];
9984
+ }
9826
9985
  Object.entries(memberEntries).forEach(([key, value]) => {
9827
9986
  const loc = `Filters.${key}`;
9828
9987
  entries[loc] = value;
@@ -9855,6 +10014,9 @@ const serializeAws_queryDescribeDBEngineVersionsMessage = (input, context) => {
9855
10014
  }
9856
10015
  if (input.Filters != null) {
9857
10016
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10017
+ if (input.Filters?.length === 0) {
10018
+ entries.Filters = [];
10019
+ }
9858
10020
  Object.entries(memberEntries).forEach(([key, value]) => {
9859
10021
  const loc = `Filters.${key}`;
9860
10022
  entries[loc] = value;
@@ -9890,6 +10052,9 @@ const serializeAws_queryDescribeDBInstanceAutomatedBackupsMessage = (input, cont
9890
10052
  }
9891
10053
  if (input.Filters != null) {
9892
10054
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10055
+ if (input.Filters?.length === 0) {
10056
+ entries.Filters = [];
10057
+ }
9893
10058
  Object.entries(memberEntries).forEach(([key, value]) => {
9894
10059
  const loc = `Filters.${key}`;
9895
10060
  entries[loc] = value;
@@ -9913,6 +10078,9 @@ const serializeAws_queryDescribeDBInstancesMessage = (input, context) => {
9913
10078
  }
9914
10079
  if (input.Filters != null) {
9915
10080
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10081
+ if (input.Filters?.length === 0) {
10082
+ entries.Filters = [];
10083
+ }
9916
10084
  Object.entries(memberEntries).forEach(([key, value]) => {
9917
10085
  const loc = `Filters.${key}`;
9918
10086
  entries[loc] = value;
@@ -9942,6 +10110,9 @@ const serializeAws_queryDescribeDBLogFilesMessage = (input, context) => {
9942
10110
  }
9943
10111
  if (input.Filters != null) {
9944
10112
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10113
+ if (input.Filters?.length === 0) {
10114
+ entries.Filters = [];
10115
+ }
9945
10116
  Object.entries(memberEntries).forEach(([key, value]) => {
9946
10117
  const loc = `Filters.${key}`;
9947
10118
  entries[loc] = value;
@@ -9962,6 +10133,9 @@ const serializeAws_queryDescribeDBParameterGroupsMessage = (input, context) => {
9962
10133
  }
9963
10134
  if (input.Filters != null) {
9964
10135
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10136
+ if (input.Filters?.length === 0) {
10137
+ entries.Filters = [];
10138
+ }
9965
10139
  Object.entries(memberEntries).forEach(([key, value]) => {
9966
10140
  const loc = `Filters.${key}`;
9967
10141
  entries[loc] = value;
@@ -9985,6 +10159,9 @@ const serializeAws_queryDescribeDBParametersMessage = (input, context) => {
9985
10159
  }
9986
10160
  if (input.Filters != null) {
9987
10161
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10162
+ if (input.Filters?.length === 0) {
10163
+ entries.Filters = [];
10164
+ }
9988
10165
  Object.entries(memberEntries).forEach(([key, value]) => {
9989
10166
  const loc = `Filters.${key}`;
9990
10167
  entries[loc] = value;
@@ -10005,6 +10182,9 @@ const serializeAws_queryDescribeDBProxiesRequest = (input, context) => {
10005
10182
  }
10006
10183
  if (input.Filters != null) {
10007
10184
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10185
+ if (input.Filters?.length === 0) {
10186
+ entries.Filters = [];
10187
+ }
10008
10188
  Object.entries(memberEntries).forEach(([key, value]) => {
10009
10189
  const loc = `Filters.${key}`;
10010
10190
  entries[loc] = value;
@@ -10028,6 +10208,9 @@ const serializeAws_queryDescribeDBProxyEndpointsRequest = (input, context) => {
10028
10208
  }
10029
10209
  if (input.Filters != null) {
10030
10210
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10211
+ if (input.Filters?.length === 0) {
10212
+ entries.Filters = [];
10213
+ }
10031
10214
  Object.entries(memberEntries).forEach(([key, value]) => {
10032
10215
  const loc = `Filters.${key}`;
10033
10216
  entries[loc] = value;
@@ -10051,6 +10234,9 @@ const serializeAws_queryDescribeDBProxyTargetGroupsRequest = (input, context) =>
10051
10234
  }
10052
10235
  if (input.Filters != null) {
10053
10236
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10237
+ if (input.Filters?.length === 0) {
10238
+ entries.Filters = [];
10239
+ }
10054
10240
  Object.entries(memberEntries).forEach(([key, value]) => {
10055
10241
  const loc = `Filters.${key}`;
10056
10242
  entries[loc] = value;
@@ -10074,6 +10260,9 @@ const serializeAws_queryDescribeDBProxyTargetsRequest = (input, context) => {
10074
10260
  }
10075
10261
  if (input.Filters != null) {
10076
10262
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10263
+ if (input.Filters?.length === 0) {
10264
+ entries.Filters = [];
10265
+ }
10077
10266
  Object.entries(memberEntries).forEach(([key, value]) => {
10078
10267
  const loc = `Filters.${key}`;
10079
10268
  entries[loc] = value;
@@ -10094,6 +10283,9 @@ const serializeAws_queryDescribeDBSecurityGroupsMessage = (input, context) => {
10094
10283
  }
10095
10284
  if (input.Filters != null) {
10096
10285
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10286
+ if (input.Filters?.length === 0) {
10287
+ entries.Filters = [];
10288
+ }
10097
10289
  Object.entries(memberEntries).forEach(([key, value]) => {
10098
10290
  const loc = `Filters.${key}`;
10099
10291
  entries[loc] = value;
@@ -10127,6 +10319,9 @@ const serializeAws_queryDescribeDBSnapshotsMessage = (input, context) => {
10127
10319
  }
10128
10320
  if (input.Filters != null) {
10129
10321
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10322
+ if (input.Filters?.length === 0) {
10323
+ entries.Filters = [];
10324
+ }
10130
10325
  Object.entries(memberEntries).forEach(([key, value]) => {
10131
10326
  const loc = `Filters.${key}`;
10132
10327
  entries[loc] = value;
@@ -10156,6 +10351,9 @@ const serializeAws_queryDescribeDBSubnetGroupsMessage = (input, context) => {
10156
10351
  }
10157
10352
  if (input.Filters != null) {
10158
10353
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10354
+ if (input.Filters?.length === 0) {
10355
+ entries.Filters = [];
10356
+ }
10159
10357
  Object.entries(memberEntries).forEach(([key, value]) => {
10160
10358
  const loc = `Filters.${key}`;
10161
10359
  entries[loc] = value;
@@ -10176,6 +10374,9 @@ const serializeAws_queryDescribeEngineDefaultClusterParametersMessage = (input,
10176
10374
  }
10177
10375
  if (input.Filters != null) {
10178
10376
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10377
+ if (input.Filters?.length === 0) {
10378
+ entries.Filters = [];
10379
+ }
10179
10380
  Object.entries(memberEntries).forEach(([key, value]) => {
10180
10381
  const loc = `Filters.${key}`;
10181
10382
  entries[loc] = value;
@@ -10196,6 +10397,9 @@ const serializeAws_queryDescribeEngineDefaultParametersMessage = (input, context
10196
10397
  }
10197
10398
  if (input.Filters != null) {
10198
10399
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10400
+ if (input.Filters?.length === 0) {
10401
+ entries.Filters = [];
10402
+ }
10199
10403
  Object.entries(memberEntries).forEach(([key, value]) => {
10200
10404
  const loc = `Filters.${key}`;
10201
10405
  entries[loc] = value;
@@ -10216,6 +10420,9 @@ const serializeAws_queryDescribeEventCategoriesMessage = (input, context) => {
10216
10420
  }
10217
10421
  if (input.Filters != null) {
10218
10422
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10423
+ if (input.Filters?.length === 0) {
10424
+ entries.Filters = [];
10425
+ }
10219
10426
  Object.entries(memberEntries).forEach(([key, value]) => {
10220
10427
  const loc = `Filters.${key}`;
10221
10428
  entries[loc] = value;
@@ -10242,6 +10449,9 @@ const serializeAws_queryDescribeEventsMessage = (input, context) => {
10242
10449
  }
10243
10450
  if (input.EventCategories != null) {
10244
10451
  const memberEntries = serializeAws_queryEventCategoriesList(input.EventCategories, context);
10452
+ if (input.EventCategories?.length === 0) {
10453
+ entries.EventCategories = [];
10454
+ }
10245
10455
  Object.entries(memberEntries).forEach(([key, value]) => {
10246
10456
  const loc = `EventCategories.${key}`;
10247
10457
  entries[loc] = value;
@@ -10249,6 +10459,9 @@ const serializeAws_queryDescribeEventsMessage = (input, context) => {
10249
10459
  }
10250
10460
  if (input.Filters != null) {
10251
10461
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10462
+ if (input.Filters?.length === 0) {
10463
+ entries.Filters = [];
10464
+ }
10252
10465
  Object.entries(memberEntries).forEach(([key, value]) => {
10253
10466
  const loc = `Filters.${key}`;
10254
10467
  entries[loc] = value;
@@ -10269,6 +10482,9 @@ const serializeAws_queryDescribeEventSubscriptionsMessage = (input, context) =>
10269
10482
  }
10270
10483
  if (input.Filters != null) {
10271
10484
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10485
+ if (input.Filters?.length === 0) {
10486
+ entries.Filters = [];
10487
+ }
10272
10488
  Object.entries(memberEntries).forEach(([key, value]) => {
10273
10489
  const loc = `Filters.${key}`;
10274
10490
  entries[loc] = value;
@@ -10292,6 +10508,9 @@ const serializeAws_queryDescribeExportTasksMessage = (input, context) => {
10292
10508
  }
10293
10509
  if (input.Filters != null) {
10294
10510
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10511
+ if (input.Filters?.length === 0) {
10512
+ entries.Filters = [];
10513
+ }
10295
10514
  Object.entries(memberEntries).forEach(([key, value]) => {
10296
10515
  const loc = `Filters.${key}`;
10297
10516
  entries[loc] = value;
@@ -10315,6 +10534,9 @@ const serializeAws_queryDescribeGlobalClustersMessage = (input, context) => {
10315
10534
  }
10316
10535
  if (input.Filters != null) {
10317
10536
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10537
+ if (input.Filters?.length === 0) {
10538
+ entries.Filters = [];
10539
+ }
10318
10540
  Object.entries(memberEntries).forEach(([key, value]) => {
10319
10541
  const loc = `Filters.${key}`;
10320
10542
  entries[loc] = value;
@@ -10338,6 +10560,9 @@ const serializeAws_queryDescribeOptionGroupOptionsMessage = (input, context) =>
10338
10560
  }
10339
10561
  if (input.Filters != null) {
10340
10562
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10563
+ if (input.Filters?.length === 0) {
10564
+ entries.Filters = [];
10565
+ }
10341
10566
  Object.entries(memberEntries).forEach(([key, value]) => {
10342
10567
  const loc = `Filters.${key}`;
10343
10568
  entries[loc] = value;
@@ -10358,6 +10583,9 @@ const serializeAws_queryDescribeOptionGroupsMessage = (input, context) => {
10358
10583
  }
10359
10584
  if (input.Filters != null) {
10360
10585
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10586
+ if (input.Filters?.length === 0) {
10587
+ entries.Filters = [];
10588
+ }
10361
10589
  Object.entries(memberEntries).forEach(([key, value]) => {
10362
10590
  const loc = `Filters.${key}`;
10363
10591
  entries[loc] = value;
@@ -10399,6 +10627,9 @@ const serializeAws_queryDescribeOrderableDBInstanceOptionsMessage = (input, cont
10399
10627
  }
10400
10628
  if (input.Filters != null) {
10401
10629
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10630
+ if (input.Filters?.length === 0) {
10631
+ entries.Filters = [];
10632
+ }
10402
10633
  Object.entries(memberEntries).forEach(([key, value]) => {
10403
10634
  const loc = `Filters.${key}`;
10404
10635
  entries[loc] = value;
@@ -10419,6 +10650,9 @@ const serializeAws_queryDescribePendingMaintenanceActionsMessage = (input, conte
10419
10650
  }
10420
10651
  if (input.Filters != null) {
10421
10652
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10653
+ if (input.Filters?.length === 0) {
10654
+ entries.Filters = [];
10655
+ }
10422
10656
  Object.entries(memberEntries).forEach(([key, value]) => {
10423
10657
  const loc = `Filters.${key}`;
10424
10658
  entries[loc] = value;
@@ -10460,6 +10694,9 @@ const serializeAws_queryDescribeReservedDBInstancesMessage = (input, context) =>
10460
10694
  }
10461
10695
  if (input.Filters != null) {
10462
10696
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10697
+ if (input.Filters?.length === 0) {
10698
+ entries.Filters = [];
10699
+ }
10463
10700
  Object.entries(memberEntries).forEach(([key, value]) => {
10464
10701
  const loc = `Filters.${key}`;
10465
10702
  entries[loc] = value;
@@ -10495,6 +10732,9 @@ const serializeAws_queryDescribeReservedDBInstancesOfferingsMessage = (input, co
10495
10732
  }
10496
10733
  if (input.Filters != null) {
10497
10734
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10735
+ if (input.Filters?.length === 0) {
10736
+ entries.Filters = [];
10737
+ }
10498
10738
  Object.entries(memberEntries).forEach(([key, value]) => {
10499
10739
  const loc = `Filters.${key}`;
10500
10740
  entries[loc] = value;
@@ -10521,6 +10761,9 @@ const serializeAws_queryDescribeSourceRegionsMessage = (input, context) => {
10521
10761
  }
10522
10762
  if (input.Filters != null) {
10523
10763
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10764
+ if (input.Filters?.length === 0) {
10765
+ entries.Filters = [];
10766
+ }
10524
10767
  Object.entries(memberEntries).forEach(([key, value]) => {
10525
10768
  const loc = `Filters.${key}`;
10526
10769
  entries[loc] = value;
@@ -10602,6 +10845,9 @@ const serializeAws_queryFilter = (input, context) => {
10602
10845
  }
10603
10846
  if (input.Values != null) {
10604
10847
  const memberEntries = serializeAws_queryFilterValueList(input.Values, context);
10848
+ if (input.Values?.length === 0) {
10849
+ entries.Values = [];
10850
+ }
10605
10851
  Object.entries(memberEntries).forEach(([key, value]) => {
10606
10852
  const loc = `Values.${key}`;
10607
10853
  entries[loc] = value;
@@ -10655,6 +10901,9 @@ const serializeAws_queryListTagsForResourceMessage = (input, context) => {
10655
10901
  }
10656
10902
  if (input.Filters != null) {
10657
10903
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10904
+ if (input.Filters?.length === 0) {
10905
+ entries.Filters = [];
10906
+ }
10658
10907
  Object.entries(memberEntries).forEach(([key, value]) => {
10659
10908
  const loc = `Filters.${key}`;
10660
10909
  entries[loc] = value;
@@ -10736,6 +10985,9 @@ const serializeAws_queryModifyDBClusterEndpointMessage = (input, context) => {
10736
10985
  }
10737
10986
  if (input.StaticMembers != null) {
10738
10987
  const memberEntries = serializeAws_queryStringList(input.StaticMembers, context);
10988
+ if (input.StaticMembers?.length === 0) {
10989
+ entries.StaticMembers = [];
10990
+ }
10739
10991
  Object.entries(memberEntries).forEach(([key, value]) => {
10740
10992
  const loc = `StaticMembers.${key}`;
10741
10993
  entries[loc] = value;
@@ -10743,6 +10995,9 @@ const serializeAws_queryModifyDBClusterEndpointMessage = (input, context) => {
10743
10995
  }
10744
10996
  if (input.ExcludedMembers != null) {
10745
10997
  const memberEntries = serializeAws_queryStringList(input.ExcludedMembers, context);
10998
+ if (input.ExcludedMembers?.length === 0) {
10999
+ entries.ExcludedMembers = [];
11000
+ }
10746
11001
  Object.entries(memberEntries).forEach(([key, value]) => {
10747
11002
  const loc = `ExcludedMembers.${key}`;
10748
11003
  entries[loc] = value;
@@ -10769,6 +11024,9 @@ const serializeAws_queryModifyDBClusterMessage = (input, context) => {
10769
11024
  }
10770
11025
  if (input.VpcSecurityGroupIds != null) {
10771
11026
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
11027
+ if (input.VpcSecurityGroupIds?.length === 0) {
11028
+ entries.VpcSecurityGroupIds = [];
11029
+ }
10772
11030
  Object.entries(memberEntries).forEach(([key, value]) => {
10773
11031
  const loc = `VpcSecurityGroupIds.${key}`;
10774
11032
  entries[loc] = value;
@@ -10885,6 +11143,9 @@ const serializeAws_queryModifyDBClusterParameterGroupMessage = (input, context)
10885
11143
  }
10886
11144
  if (input.Parameters != null) {
10887
11145
  const memberEntries = serializeAws_queryParametersList(input.Parameters, context);
11146
+ if (input.Parameters?.length === 0) {
11147
+ entries.Parameters = [];
11148
+ }
10888
11149
  Object.entries(memberEntries).forEach(([key, value]) => {
10889
11150
  const loc = `Parameters.${key}`;
10890
11151
  entries[loc] = value;
@@ -10902,6 +11163,9 @@ const serializeAws_queryModifyDBClusterSnapshotAttributeMessage = (input, contex
10902
11163
  }
10903
11164
  if (input.ValuesToAdd != null) {
10904
11165
  const memberEntries = serializeAws_queryAttributeValueList(input.ValuesToAdd, context);
11166
+ if (input.ValuesToAdd?.length === 0) {
11167
+ entries.ValuesToAdd = [];
11168
+ }
10905
11169
  Object.entries(memberEntries).forEach(([key, value]) => {
10906
11170
  const loc = `ValuesToAdd.${key}`;
10907
11171
  entries[loc] = value;
@@ -10909,6 +11173,9 @@ const serializeAws_queryModifyDBClusterSnapshotAttributeMessage = (input, contex
10909
11173
  }
10910
11174
  if (input.ValuesToRemove != null) {
10911
11175
  const memberEntries = serializeAws_queryAttributeValueList(input.ValuesToRemove, context);
11176
+ if (input.ValuesToRemove?.length === 0) {
11177
+ entries.ValuesToRemove = [];
11178
+ }
10912
11179
  Object.entries(memberEntries).forEach(([key, value]) => {
10913
11180
  const loc = `ValuesToRemove.${key}`;
10914
11181
  entries[loc] = value;
@@ -10932,6 +11199,9 @@ const serializeAws_queryModifyDBInstanceMessage = (input, context) => {
10932
11199
  }
10933
11200
  if (input.DBSecurityGroups != null) {
10934
11201
  const memberEntries = serializeAws_queryDBSecurityGroupNameList(input.DBSecurityGroups, context);
11202
+ if (input.DBSecurityGroups?.length === 0) {
11203
+ entries.DBSecurityGroups = [];
11204
+ }
10935
11205
  Object.entries(memberEntries).forEach(([key, value]) => {
10936
11206
  const loc = `DBSecurityGroups.${key}`;
10937
11207
  entries[loc] = value;
@@ -10939,6 +11209,9 @@ const serializeAws_queryModifyDBInstanceMessage = (input, context) => {
10939
11209
  }
10940
11210
  if (input.VpcSecurityGroupIds != null) {
10941
11211
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
11212
+ if (input.VpcSecurityGroupIds?.length === 0) {
11213
+ entries.VpcSecurityGroupIds = [];
11214
+ }
10942
11215
  Object.entries(memberEntries).forEach(([key, value]) => {
10943
11216
  const loc = `VpcSecurityGroupIds.${key}`;
10944
11217
  entries[loc] = value;
@@ -11043,6 +11316,9 @@ const serializeAws_queryModifyDBInstanceMessage = (input, context) => {
11043
11316
  }
11044
11317
  if (input.ProcessorFeatures != null) {
11045
11318
  const memberEntries = serializeAws_queryProcessorFeatureList(input.ProcessorFeatures, context);
11319
+ if (input.ProcessorFeatures?.length === 0) {
11320
+ entries.ProcessorFeatures = [];
11321
+ }
11046
11322
  Object.entries(memberEntries).forEach(([key, value]) => {
11047
11323
  const loc = `ProcessorFeatures.${key}`;
11048
11324
  entries[loc] = value;
@@ -11090,6 +11366,9 @@ const serializeAws_queryModifyDBParameterGroupMessage = (input, context) => {
11090
11366
  }
11091
11367
  if (input.Parameters != null) {
11092
11368
  const memberEntries = serializeAws_queryParametersList(input.Parameters, context);
11369
+ if (input.Parameters?.length === 0) {
11370
+ entries.Parameters = [];
11371
+ }
11093
11372
  Object.entries(memberEntries).forEach(([key, value]) => {
11094
11373
  const loc = `Parameters.${key}`;
11095
11374
  entries[loc] = value;
@@ -11107,6 +11386,9 @@ const serializeAws_queryModifyDBProxyEndpointRequest = (input, context) => {
11107
11386
  }
11108
11387
  if (input.VpcSecurityGroupIds != null) {
11109
11388
  const memberEntries = serializeAws_queryStringList(input.VpcSecurityGroupIds, context);
11389
+ if (input.VpcSecurityGroupIds?.length === 0) {
11390
+ entries.VpcSecurityGroupIds = [];
11391
+ }
11110
11392
  Object.entries(memberEntries).forEach(([key, value]) => {
11111
11393
  const loc = `VpcSecurityGroupIds.${key}`;
11112
11394
  entries[loc] = value;
@@ -11124,6 +11406,9 @@ const serializeAws_queryModifyDBProxyRequest = (input, context) => {
11124
11406
  }
11125
11407
  if (input.Auth != null) {
11126
11408
  const memberEntries = serializeAws_queryUserAuthConfigList(input.Auth, context);
11409
+ if (input.Auth?.length === 0) {
11410
+ entries.Auth = [];
11411
+ }
11127
11412
  Object.entries(memberEntries).forEach(([key, value]) => {
11128
11413
  const loc = `Auth.${key}`;
11129
11414
  entries[loc] = value;
@@ -11143,6 +11428,9 @@ const serializeAws_queryModifyDBProxyRequest = (input, context) => {
11143
11428
  }
11144
11429
  if (input.SecurityGroups != null) {
11145
11430
  const memberEntries = serializeAws_queryStringList(input.SecurityGroups, context);
11431
+ if (input.SecurityGroups?.length === 0) {
11432
+ entries.SecurityGroups = [];
11433
+ }
11146
11434
  Object.entries(memberEntries).forEach(([key, value]) => {
11147
11435
  const loc = `SecurityGroups.${key}`;
11148
11436
  entries[loc] = value;
@@ -11180,6 +11468,9 @@ const serializeAws_queryModifyDBSnapshotAttributeMessage = (input, context) => {
11180
11468
  }
11181
11469
  if (input.ValuesToAdd != null) {
11182
11470
  const memberEntries = serializeAws_queryAttributeValueList(input.ValuesToAdd, context);
11471
+ if (input.ValuesToAdd?.length === 0) {
11472
+ entries.ValuesToAdd = [];
11473
+ }
11183
11474
  Object.entries(memberEntries).forEach(([key, value]) => {
11184
11475
  const loc = `ValuesToAdd.${key}`;
11185
11476
  entries[loc] = value;
@@ -11187,6 +11478,9 @@ const serializeAws_queryModifyDBSnapshotAttributeMessage = (input, context) => {
11187
11478
  }
11188
11479
  if (input.ValuesToRemove != null) {
11189
11480
  const memberEntries = serializeAws_queryAttributeValueList(input.ValuesToRemove, context);
11481
+ if (input.ValuesToRemove?.length === 0) {
11482
+ entries.ValuesToRemove = [];
11483
+ }
11190
11484
  Object.entries(memberEntries).forEach(([key, value]) => {
11191
11485
  const loc = `ValuesToRemove.${key}`;
11192
11486
  entries[loc] = value;
@@ -11217,6 +11511,9 @@ const serializeAws_queryModifyDBSubnetGroupMessage = (input, context) => {
11217
11511
  }
11218
11512
  if (input.SubnetIds != null) {
11219
11513
  const memberEntries = serializeAws_querySubnetIdentifierList(input.SubnetIds, context);
11514
+ if (input.SubnetIds?.length === 0) {
11515
+ entries.SubnetIds = [];
11516
+ }
11220
11517
  Object.entries(memberEntries).forEach(([key, value]) => {
11221
11518
  const loc = `SubnetIds.${key}`;
11222
11519
  entries[loc] = value;
@@ -11237,6 +11534,9 @@ const serializeAws_queryModifyEventSubscriptionMessage = (input, context) => {
11237
11534
  }
11238
11535
  if (input.EventCategories != null) {
11239
11536
  const memberEntries = serializeAws_queryEventCategoriesList(input.EventCategories, context);
11537
+ if (input.EventCategories?.length === 0) {
11538
+ entries.EventCategories = [];
11539
+ }
11240
11540
  Object.entries(memberEntries).forEach(([key, value]) => {
11241
11541
  const loc = `EventCategories.${key}`;
11242
11542
  entries[loc] = value;
@@ -11273,6 +11573,9 @@ const serializeAws_queryModifyOptionGroupMessage = (input, context) => {
11273
11573
  }
11274
11574
  if (input.OptionsToInclude != null) {
11275
11575
  const memberEntries = serializeAws_queryOptionConfigurationList(input.OptionsToInclude, context);
11576
+ if (input.OptionsToInclude?.length === 0) {
11577
+ entries.OptionsToInclude = [];
11578
+ }
11276
11579
  Object.entries(memberEntries).forEach(([key, value]) => {
11277
11580
  const loc = `OptionsToInclude.${key}`;
11278
11581
  entries[loc] = value;
@@ -11280,6 +11583,9 @@ const serializeAws_queryModifyOptionGroupMessage = (input, context) => {
11280
11583
  }
11281
11584
  if (input.OptionsToRemove != null) {
11282
11585
  const memberEntries = serializeAws_queryOptionNamesList(input.OptionsToRemove, context);
11586
+ if (input.OptionsToRemove?.length === 0) {
11587
+ entries.OptionsToRemove = [];
11588
+ }
11283
11589
  Object.entries(memberEntries).forEach(([key, value]) => {
11284
11590
  const loc = `OptionsToRemove.${key}`;
11285
11591
  entries[loc] = value;
@@ -11303,6 +11609,9 @@ const serializeAws_queryOptionConfiguration = (input, context) => {
11303
11609
  }
11304
11610
  if (input.DBSecurityGroupMemberships != null) {
11305
11611
  const memberEntries = serializeAws_queryDBSecurityGroupNameList(input.DBSecurityGroupMemberships, context);
11612
+ if (input.DBSecurityGroupMemberships?.length === 0) {
11613
+ entries.DBSecurityGroupMemberships = [];
11614
+ }
11306
11615
  Object.entries(memberEntries).forEach(([key, value]) => {
11307
11616
  const loc = `DBSecurityGroupMemberships.${key}`;
11308
11617
  entries[loc] = value;
@@ -11310,6 +11619,9 @@ const serializeAws_queryOptionConfiguration = (input, context) => {
11310
11619
  }
11311
11620
  if (input.VpcSecurityGroupMemberships != null) {
11312
11621
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupMemberships, context);
11622
+ if (input.VpcSecurityGroupMemberships?.length === 0) {
11623
+ entries.VpcSecurityGroupMemberships = [];
11624
+ }
11313
11625
  Object.entries(memberEntries).forEach(([key, value]) => {
11314
11626
  const loc = `VpcSecurityGroupMemberships.${key}`;
11315
11627
  entries[loc] = value;
@@ -11317,6 +11629,9 @@ const serializeAws_queryOptionConfiguration = (input, context) => {
11317
11629
  }
11318
11630
  if (input.OptionSettings != null) {
11319
11631
  const memberEntries = serializeAws_queryOptionSettingsList(input.OptionSettings, context);
11632
+ if (input.OptionSettings?.length === 0) {
11633
+ entries.OptionSettings = [];
11634
+ }
11320
11635
  Object.entries(memberEntries).forEach(([key, value]) => {
11321
11636
  const loc = `OptionSettings.${key}`;
11322
11637
  entries[loc] = value;
@@ -11431,6 +11746,9 @@ const serializeAws_queryParameter = (input, context) => {
11431
11746
  }
11432
11747
  if (input.SupportedEngineModes != null) {
11433
11748
  const memberEntries = serializeAws_queryEngineModeList(input.SupportedEngineModes, context);
11749
+ if (input.SupportedEngineModes?.length === 0) {
11750
+ entries.SupportedEngineModes = [];
11751
+ }
11434
11752
  Object.entries(memberEntries).forEach(([key, value]) => {
11435
11753
  const loc = `SupportedEngineModes.${key}`;
11436
11754
  entries[loc] = value;
@@ -11511,6 +11829,9 @@ const serializeAws_queryPurchaseReservedDBInstancesOfferingMessage = (input, con
11511
11829
  }
11512
11830
  if (input.Tags != null) {
11513
11831
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
11832
+ if (input.Tags?.length === 0) {
11833
+ entries.Tags = [];
11834
+ }
11514
11835
  Object.entries(memberEntries).forEach(([key, value]) => {
11515
11836
  const loc = `Tags.${key}`;
11516
11837
  entries[loc] = value;
@@ -11545,6 +11866,9 @@ const serializeAws_queryRegisterDBProxyTargetsRequest = (input, context) => {
11545
11866
  }
11546
11867
  if (input.DBInstanceIdentifiers != null) {
11547
11868
  const memberEntries = serializeAws_queryStringList(input.DBInstanceIdentifiers, context);
11869
+ if (input.DBInstanceIdentifiers?.length === 0) {
11870
+ entries.DBInstanceIdentifiers = [];
11871
+ }
11548
11872
  Object.entries(memberEntries).forEach(([key, value]) => {
11549
11873
  const loc = `DBInstanceIdentifiers.${key}`;
11550
11874
  entries[loc] = value;
@@ -11552,6 +11876,9 @@ const serializeAws_queryRegisterDBProxyTargetsRequest = (input, context) => {
11552
11876
  }
11553
11877
  if (input.DBClusterIdentifiers != null) {
11554
11878
  const memberEntries = serializeAws_queryStringList(input.DBClusterIdentifiers, context);
11879
+ if (input.DBClusterIdentifiers?.length === 0) {
11880
+ entries.DBClusterIdentifiers = [];
11881
+ }
11555
11882
  Object.entries(memberEntries).forEach(([key, value]) => {
11556
11883
  const loc = `DBClusterIdentifiers.${key}`;
11557
11884
  entries[loc] = value;
@@ -11612,6 +11939,9 @@ const serializeAws_queryRemoveTagsFromResourceMessage = (input, context) => {
11612
11939
  }
11613
11940
  if (input.TagKeys != null) {
11614
11941
  const memberEntries = serializeAws_queryKeyList(input.TagKeys, context);
11942
+ if (input.TagKeys?.length === 0) {
11943
+ entries.TagKeys = [];
11944
+ }
11615
11945
  Object.entries(memberEntries).forEach(([key, value]) => {
11616
11946
  const loc = `TagKeys.${key}`;
11617
11947
  entries[loc] = value;
@@ -11629,6 +11959,9 @@ const serializeAws_queryResetDBClusterParameterGroupMessage = (input, context) =
11629
11959
  }
11630
11960
  if (input.Parameters != null) {
11631
11961
  const memberEntries = serializeAws_queryParametersList(input.Parameters, context);
11962
+ if (input.Parameters?.length === 0) {
11963
+ entries.Parameters = [];
11964
+ }
11632
11965
  Object.entries(memberEntries).forEach(([key, value]) => {
11633
11966
  const loc = `Parameters.${key}`;
11634
11967
  entries[loc] = value;
@@ -11646,6 +11979,9 @@ const serializeAws_queryResetDBParameterGroupMessage = (input, context) => {
11646
11979
  }
11647
11980
  if (input.Parameters != null) {
11648
11981
  const memberEntries = serializeAws_queryParametersList(input.Parameters, context);
11982
+ if (input.Parameters?.length === 0) {
11983
+ entries.Parameters = [];
11984
+ }
11649
11985
  Object.entries(memberEntries).forEach(([key, value]) => {
11650
11986
  const loc = `Parameters.${key}`;
11651
11987
  entries[loc] = value;
@@ -11657,6 +11993,9 @@ const serializeAws_queryRestoreDBClusterFromS3Message = (input, context) => {
11657
11993
  const entries = {};
11658
11994
  if (input.AvailabilityZones != null) {
11659
11995
  const memberEntries = serializeAws_queryAvailabilityZones(input.AvailabilityZones, context);
11996
+ if (input.AvailabilityZones?.length === 0) {
11997
+ entries.AvailabilityZones = [];
11998
+ }
11660
11999
  Object.entries(memberEntries).forEach(([key, value]) => {
11661
12000
  const loc = `AvailabilityZones.${key}`;
11662
12001
  entries[loc] = value;
@@ -11679,6 +12018,9 @@ const serializeAws_queryRestoreDBClusterFromS3Message = (input, context) => {
11679
12018
  }
11680
12019
  if (input.VpcSecurityGroupIds != null) {
11681
12020
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
12021
+ if (input.VpcSecurityGroupIds?.length === 0) {
12022
+ entries.VpcSecurityGroupIds = [];
12023
+ }
11682
12024
  Object.entries(memberEntries).forEach(([key, value]) => {
11683
12025
  const loc = `VpcSecurityGroupIds.${key}`;
11684
12026
  entries[loc] = value;
@@ -11713,6 +12055,9 @@ const serializeAws_queryRestoreDBClusterFromS3Message = (input, context) => {
11713
12055
  }
11714
12056
  if (input.Tags != null) {
11715
12057
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
12058
+ if (input.Tags?.length === 0) {
12059
+ entries.Tags = [];
12060
+ }
11716
12061
  Object.entries(memberEntries).forEach(([key, value]) => {
11717
12062
  const loc = `Tags.${key}`;
11718
12063
  entries[loc] = value;
@@ -11747,6 +12092,9 @@ const serializeAws_queryRestoreDBClusterFromS3Message = (input, context) => {
11747
12092
  }
11748
12093
  if (input.EnableCloudwatchLogsExports != null) {
11749
12094
  const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
12095
+ if (input.EnableCloudwatchLogsExports?.length === 0) {
12096
+ entries.EnableCloudwatchLogsExports = [];
12097
+ }
11750
12098
  Object.entries(memberEntries).forEach(([key, value]) => {
11751
12099
  const loc = `EnableCloudwatchLogsExports.${key}`;
11752
12100
  entries[loc] = value;
@@ -11780,6 +12128,9 @@ const serializeAws_queryRestoreDBClusterFromSnapshotMessage = (input, context) =
11780
12128
  const entries = {};
11781
12129
  if (input.AvailabilityZones != null) {
11782
12130
  const memberEntries = serializeAws_queryAvailabilityZones(input.AvailabilityZones, context);
12131
+ if (input.AvailabilityZones?.length === 0) {
12132
+ entries.AvailabilityZones = [];
12133
+ }
11783
12134
  Object.entries(memberEntries).forEach(([key, value]) => {
11784
12135
  const loc = `AvailabilityZones.${key}`;
11785
12136
  entries[loc] = value;
@@ -11811,6 +12162,9 @@ const serializeAws_queryRestoreDBClusterFromSnapshotMessage = (input, context) =
11811
12162
  }
11812
12163
  if (input.VpcSecurityGroupIds != null) {
11813
12164
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
12165
+ if (input.VpcSecurityGroupIds?.length === 0) {
12166
+ entries.VpcSecurityGroupIds = [];
12167
+ }
11814
12168
  Object.entries(memberEntries).forEach(([key, value]) => {
11815
12169
  const loc = `VpcSecurityGroupIds.${key}`;
11816
12170
  entries[loc] = value;
@@ -11818,6 +12172,9 @@ const serializeAws_queryRestoreDBClusterFromSnapshotMessage = (input, context) =
11818
12172
  }
11819
12173
  if (input.Tags != null) {
11820
12174
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
12175
+ if (input.Tags?.length === 0) {
12176
+ entries.Tags = [];
12177
+ }
11821
12178
  Object.entries(memberEntries).forEach(([key, value]) => {
11822
12179
  const loc = `Tags.${key}`;
11823
12180
  entries[loc] = value;
@@ -11834,6 +12191,9 @@ const serializeAws_queryRestoreDBClusterFromSnapshotMessage = (input, context) =
11834
12191
  }
11835
12192
  if (input.EnableCloudwatchLogsExports != null) {
11836
12193
  const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
12194
+ if (input.EnableCloudwatchLogsExports?.length === 0) {
12195
+ entries.EnableCloudwatchLogsExports = [];
12196
+ }
11837
12197
  Object.entries(memberEntries).forEach(([key, value]) => {
11838
12198
  const loc = `EnableCloudwatchLogsExports.${key}`;
11839
12199
  entries[loc] = value;
@@ -11916,6 +12276,9 @@ const serializeAws_queryRestoreDBClusterToPointInTimeMessage = (input, context)
11916
12276
  }
11917
12277
  if (input.VpcSecurityGroupIds != null) {
11918
12278
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
12279
+ if (input.VpcSecurityGroupIds?.length === 0) {
12280
+ entries.VpcSecurityGroupIds = [];
12281
+ }
11919
12282
  Object.entries(memberEntries).forEach(([key, value]) => {
11920
12283
  const loc = `VpcSecurityGroupIds.${key}`;
11921
12284
  entries[loc] = value;
@@ -11923,6 +12286,9 @@ const serializeAws_queryRestoreDBClusterToPointInTimeMessage = (input, context)
11923
12286
  }
11924
12287
  if (input.Tags != null) {
11925
12288
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
12289
+ if (input.Tags?.length === 0) {
12290
+ entries.Tags = [];
12291
+ }
11926
12292
  Object.entries(memberEntries).forEach(([key, value]) => {
11927
12293
  const loc = `Tags.${key}`;
11928
12294
  entries[loc] = value;
@@ -11939,6 +12305,9 @@ const serializeAws_queryRestoreDBClusterToPointInTimeMessage = (input, context)
11939
12305
  }
11940
12306
  if (input.EnableCloudwatchLogsExports != null) {
11941
12307
  const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
12308
+ if (input.EnableCloudwatchLogsExports?.length === 0) {
12309
+ entries.EnableCloudwatchLogsExports = [];
12310
+ }
11942
12311
  Object.entries(memberEntries).forEach(([key, value]) => {
11943
12312
  const loc = `EnableCloudwatchLogsExports.${key}`;
11944
12313
  entries[loc] = value;
@@ -12039,6 +12408,9 @@ const serializeAws_queryRestoreDBInstanceFromDBSnapshotMessage = (input, context
12039
12408
  }
12040
12409
  if (input.Tags != null) {
12041
12410
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
12411
+ if (input.Tags?.length === 0) {
12412
+ entries.Tags = [];
12413
+ }
12042
12414
  Object.entries(memberEntries).forEach(([key, value]) => {
12043
12415
  const loc = `Tags.${key}`;
12044
12416
  entries[loc] = value;
@@ -12055,6 +12427,9 @@ const serializeAws_queryRestoreDBInstanceFromDBSnapshotMessage = (input, context
12055
12427
  }
12056
12428
  if (input.VpcSecurityGroupIds != null) {
12057
12429
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
12430
+ if (input.VpcSecurityGroupIds?.length === 0) {
12431
+ entries.VpcSecurityGroupIds = [];
12432
+ }
12058
12433
  Object.entries(memberEntries).forEach(([key, value]) => {
12059
12434
  const loc = `VpcSecurityGroupIds.${key}`;
12060
12435
  entries[loc] = value;
@@ -12074,6 +12449,9 @@ const serializeAws_queryRestoreDBInstanceFromDBSnapshotMessage = (input, context
12074
12449
  }
12075
12450
  if (input.EnableCloudwatchLogsExports != null) {
12076
12451
  const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
12452
+ if (input.EnableCloudwatchLogsExports?.length === 0) {
12453
+ entries.EnableCloudwatchLogsExports = [];
12454
+ }
12077
12455
  Object.entries(memberEntries).forEach(([key, value]) => {
12078
12456
  const loc = `EnableCloudwatchLogsExports.${key}`;
12079
12457
  entries[loc] = value;
@@ -12081,6 +12459,9 @@ const serializeAws_queryRestoreDBInstanceFromDBSnapshotMessage = (input, context
12081
12459
  }
12082
12460
  if (input.ProcessorFeatures != null) {
12083
12461
  const memberEntries = serializeAws_queryProcessorFeatureList(input.ProcessorFeatures, context);
12462
+ if (input.ProcessorFeatures?.length === 0) {
12463
+ entries.ProcessorFeatures = [];
12464
+ }
12084
12465
  Object.entries(memberEntries).forEach(([key, value]) => {
12085
12466
  const loc = `ProcessorFeatures.${key}`;
12086
12467
  entries[loc] = value;
@@ -12137,6 +12518,9 @@ const serializeAws_queryRestoreDBInstanceFromS3Message = (input, context) => {
12137
12518
  }
12138
12519
  if (input.DBSecurityGroups != null) {
12139
12520
  const memberEntries = serializeAws_queryDBSecurityGroupNameList(input.DBSecurityGroups, context);
12521
+ if (input.DBSecurityGroups?.length === 0) {
12522
+ entries.DBSecurityGroups = [];
12523
+ }
12140
12524
  Object.entries(memberEntries).forEach(([key, value]) => {
12141
12525
  const loc = `DBSecurityGroups.${key}`;
12142
12526
  entries[loc] = value;
@@ -12144,6 +12528,9 @@ const serializeAws_queryRestoreDBInstanceFromS3Message = (input, context) => {
12144
12528
  }
12145
12529
  if (input.VpcSecurityGroupIds != null) {
12146
12530
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
12531
+ if (input.VpcSecurityGroupIds?.length === 0) {
12532
+ entries.VpcSecurityGroupIds = [];
12533
+ }
12147
12534
  Object.entries(memberEntries).forEach(([key, value]) => {
12148
12535
  const loc = `VpcSecurityGroupIds.${key}`;
12149
12536
  entries[loc] = value;
@@ -12193,6 +12580,9 @@ const serializeAws_queryRestoreDBInstanceFromS3Message = (input, context) => {
12193
12580
  }
12194
12581
  if (input.Tags != null) {
12195
12582
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
12583
+ if (input.Tags?.length === 0) {
12584
+ entries.Tags = [];
12585
+ }
12196
12586
  Object.entries(memberEntries).forEach(([key, value]) => {
12197
12587
  const loc = `Tags.${key}`;
12198
12588
  entries[loc] = value;
@@ -12245,6 +12635,9 @@ const serializeAws_queryRestoreDBInstanceFromS3Message = (input, context) => {
12245
12635
  }
12246
12636
  if (input.EnableCloudwatchLogsExports != null) {
12247
12637
  const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
12638
+ if (input.EnableCloudwatchLogsExports?.length === 0) {
12639
+ entries.EnableCloudwatchLogsExports = [];
12640
+ }
12248
12641
  Object.entries(memberEntries).forEach(([key, value]) => {
12249
12642
  const loc = `EnableCloudwatchLogsExports.${key}`;
12250
12643
  entries[loc] = value;
@@ -12252,6 +12645,9 @@ const serializeAws_queryRestoreDBInstanceFromS3Message = (input, context) => {
12252
12645
  }
12253
12646
  if (input.ProcessorFeatures != null) {
12254
12647
  const memberEntries = serializeAws_queryProcessorFeatureList(input.ProcessorFeatures, context);
12648
+ if (input.ProcessorFeatures?.length === 0) {
12649
+ entries.ProcessorFeatures = [];
12650
+ }
12255
12651
  Object.entries(memberEntries).forEach(([key, value]) => {
12256
12652
  const loc = `ProcessorFeatures.${key}`;
12257
12653
  entries[loc] = value;
@@ -12329,6 +12725,9 @@ const serializeAws_queryRestoreDBInstanceToPointInTimeMessage = (input, context)
12329
12725
  }
12330
12726
  if (input.Tags != null) {
12331
12727
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
12728
+ if (input.Tags?.length === 0) {
12729
+ entries.Tags = [];
12730
+ }
12332
12731
  Object.entries(memberEntries).forEach(([key, value]) => {
12333
12732
  const loc = `Tags.${key}`;
12334
12733
  entries[loc] = value;
@@ -12345,6 +12744,9 @@ const serializeAws_queryRestoreDBInstanceToPointInTimeMessage = (input, context)
12345
12744
  }
12346
12745
  if (input.VpcSecurityGroupIds != null) {
12347
12746
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
12747
+ if (input.VpcSecurityGroupIds?.length === 0) {
12748
+ entries.VpcSecurityGroupIds = [];
12749
+ }
12348
12750
  Object.entries(memberEntries).forEach(([key, value]) => {
12349
12751
  const loc = `VpcSecurityGroupIds.${key}`;
12350
12752
  entries[loc] = value;
@@ -12361,6 +12763,9 @@ const serializeAws_queryRestoreDBInstanceToPointInTimeMessage = (input, context)
12361
12763
  }
12362
12764
  if (input.EnableCloudwatchLogsExports != null) {
12363
12765
  const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
12766
+ if (input.EnableCloudwatchLogsExports?.length === 0) {
12767
+ entries.EnableCloudwatchLogsExports = [];
12768
+ }
12364
12769
  Object.entries(memberEntries).forEach(([key, value]) => {
12365
12770
  const loc = `EnableCloudwatchLogsExports.${key}`;
12366
12771
  entries[loc] = value;
@@ -12368,6 +12773,9 @@ const serializeAws_queryRestoreDBInstanceToPointInTimeMessage = (input, context)
12368
12773
  }
12369
12774
  if (input.ProcessorFeatures != null) {
12370
12775
  const memberEntries = serializeAws_queryProcessorFeatureList(input.ProcessorFeatures, context);
12776
+ if (input.ProcessorFeatures?.length === 0) {
12777
+ entries.ProcessorFeatures = [];
12778
+ }
12371
12779
  Object.entries(memberEntries).forEach(([key, value]) => {
12372
12780
  const loc = `ProcessorFeatures.${key}`;
12373
12781
  entries[loc] = value;
@@ -12542,6 +12950,9 @@ const serializeAws_queryStartExportTaskMessage = (input, context) => {
12542
12950
  }
12543
12951
  if (input.ExportOnly != null) {
12544
12952
  const memberEntries = serializeAws_queryStringList(input.ExportOnly, context);
12953
+ if (input.ExportOnly?.length === 0) {
12954
+ entries.ExportOnly = [];
12955
+ }
12545
12956
  Object.entries(memberEntries).forEach(([key, value]) => {
12546
12957
  const loc = `ExportOnly.${key}`;
12547
12958
  entries[loc] = value;