@aws-sdk/client-rds 3.201.0 → 3.204.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.
@@ -8714,6 +8714,9 @@ const serializeAws_queryAddTagsToResourceMessage = (input, context) => {
8714
8714
  }
8715
8715
  if (input.Tags != null) {
8716
8716
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
8717
+ if (input.Tags?.length === 0) {
8718
+ entries.Tags = [];
8719
+ }
8717
8720
  Object.entries(memberEntries).forEach(([key, value]) => {
8718
8721
  const loc = `Tags.${key}`;
8719
8722
  entries[loc] = value;
@@ -8804,6 +8807,9 @@ const serializeAws_queryCloudwatchLogsExportConfiguration = (input, context) =>
8804
8807
  const entries = {};
8805
8808
  if (input.EnableLogTypes != null) {
8806
8809
  const memberEntries = serializeAws_queryLogTypeList(input.EnableLogTypes, context);
8810
+ if (input.EnableLogTypes?.length === 0) {
8811
+ entries.EnableLogTypes = [];
8812
+ }
8807
8813
  Object.entries(memberEntries).forEach(([key, value]) => {
8808
8814
  const loc = `EnableLogTypes.${key}`;
8809
8815
  entries[loc] = value;
@@ -8811,6 +8817,9 @@ const serializeAws_queryCloudwatchLogsExportConfiguration = (input, context) =>
8811
8817
  }
8812
8818
  if (input.DisableLogTypes != null) {
8813
8819
  const memberEntries = serializeAws_queryLogTypeList(input.DisableLogTypes, context);
8820
+ if (input.DisableLogTypes?.length === 0) {
8821
+ entries.DisableLogTypes = [];
8822
+ }
8814
8823
  Object.entries(memberEntries).forEach(([key, value]) => {
8815
8824
  const loc = `DisableLogTypes.${key}`;
8816
8825
  entries[loc] = value;
@@ -8831,6 +8840,9 @@ const serializeAws_queryConnectionPoolConfiguration = (input, context) => {
8831
8840
  }
8832
8841
  if (input.SessionPinningFilters != null) {
8833
8842
  const memberEntries = serializeAws_queryStringList(input.SessionPinningFilters, context);
8843
+ if (input.SessionPinningFilters?.length === 0) {
8844
+ entries.SessionPinningFilters = [];
8845
+ }
8834
8846
  Object.entries(memberEntries).forEach(([key, value]) => {
8835
8847
  const loc = `SessionPinningFilters.${key}`;
8836
8848
  entries[loc] = value;
@@ -8854,6 +8866,9 @@ const serializeAws_queryCopyDBClusterParameterGroupMessage = (input, context) =>
8854
8866
  }
8855
8867
  if (input.Tags != null) {
8856
8868
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
8869
+ if (input.Tags?.length === 0) {
8870
+ entries.Tags = [];
8871
+ }
8857
8872
  Object.entries(memberEntries).forEach(([key, value]) => {
8858
8873
  const loc = `Tags.${key}`;
8859
8874
  entries[loc] = value;
@@ -8880,6 +8895,9 @@ const serializeAws_queryCopyDBClusterSnapshotMessage = (input, context) => {
8880
8895
  }
8881
8896
  if (input.Tags != null) {
8882
8897
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
8898
+ if (input.Tags?.length === 0) {
8899
+ entries.Tags = [];
8900
+ }
8883
8901
  Object.entries(memberEntries).forEach(([key, value]) => {
8884
8902
  const loc = `Tags.${key}`;
8885
8903
  entries[loc] = value;
@@ -8900,6 +8918,9 @@ const serializeAws_queryCopyDBParameterGroupMessage = (input, context) => {
8900
8918
  }
8901
8919
  if (input.Tags != null) {
8902
8920
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
8921
+ if (input.Tags?.length === 0) {
8922
+ entries.Tags = [];
8923
+ }
8903
8924
  Object.entries(memberEntries).forEach(([key, value]) => {
8904
8925
  const loc = `Tags.${key}`;
8905
8926
  entries[loc] = value;
@@ -8920,6 +8941,9 @@ const serializeAws_queryCopyDBSnapshotMessage = (input, context) => {
8920
8941
  }
8921
8942
  if (input.Tags != null) {
8922
8943
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
8944
+ if (input.Tags?.length === 0) {
8945
+ entries.Tags = [];
8946
+ }
8923
8947
  Object.entries(memberEntries).forEach(([key, value]) => {
8924
8948
  const loc = `Tags.${key}`;
8925
8949
  entries[loc] = value;
@@ -8952,6 +8976,9 @@ const serializeAws_queryCopyOptionGroupMessage = (input, context) => {
8952
8976
  }
8953
8977
  if (input.Tags != null) {
8954
8978
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
8979
+ if (input.Tags?.length === 0) {
8980
+ entries.Tags = [];
8981
+ }
8955
8982
  Object.entries(memberEntries).forEach(([key, value]) => {
8956
8983
  const loc = `Tags.${key}`;
8957
8984
  entries[loc] = value;
@@ -8984,6 +9011,9 @@ const serializeAws_queryCreateCustomDBEngineVersionMessage = (input, context) =>
8984
9011
  }
8985
9012
  if (input.Tags != null) {
8986
9013
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9014
+ if (input.Tags?.length === 0) {
9015
+ entries.Tags = [];
9016
+ }
8987
9017
  Object.entries(memberEntries).forEach(([key, value]) => {
8988
9018
  const loc = `Tags.${key}`;
8989
9019
  entries[loc] = value;
@@ -9004,6 +9034,9 @@ const serializeAws_queryCreateDBClusterEndpointMessage = (input, context) => {
9004
9034
  }
9005
9035
  if (input.StaticMembers != null) {
9006
9036
  const memberEntries = serializeAws_queryStringList(input.StaticMembers, context);
9037
+ if (input.StaticMembers?.length === 0) {
9038
+ entries.StaticMembers = [];
9039
+ }
9007
9040
  Object.entries(memberEntries).forEach(([key, value]) => {
9008
9041
  const loc = `StaticMembers.${key}`;
9009
9042
  entries[loc] = value;
@@ -9011,6 +9044,9 @@ const serializeAws_queryCreateDBClusterEndpointMessage = (input, context) => {
9011
9044
  }
9012
9045
  if (input.ExcludedMembers != null) {
9013
9046
  const memberEntries = serializeAws_queryStringList(input.ExcludedMembers, context);
9047
+ if (input.ExcludedMembers?.length === 0) {
9048
+ entries.ExcludedMembers = [];
9049
+ }
9014
9050
  Object.entries(memberEntries).forEach(([key, value]) => {
9015
9051
  const loc = `ExcludedMembers.${key}`;
9016
9052
  entries[loc] = value;
@@ -9018,6 +9054,9 @@ const serializeAws_queryCreateDBClusterEndpointMessage = (input, context) => {
9018
9054
  }
9019
9055
  if (input.Tags != null) {
9020
9056
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9057
+ if (input.Tags?.length === 0) {
9058
+ entries.Tags = [];
9059
+ }
9021
9060
  Object.entries(memberEntries).forEach(([key, value]) => {
9022
9061
  const loc = `Tags.${key}`;
9023
9062
  entries[loc] = value;
@@ -9029,6 +9068,9 @@ const serializeAws_queryCreateDBClusterMessage = (input, context) => {
9029
9068
  const entries = {};
9030
9069
  if (input.AvailabilityZones != null) {
9031
9070
  const memberEntries = serializeAws_queryAvailabilityZones(input.AvailabilityZones, context);
9071
+ if (input.AvailabilityZones?.length === 0) {
9072
+ entries.AvailabilityZones = [];
9073
+ }
9032
9074
  Object.entries(memberEntries).forEach(([key, value]) => {
9033
9075
  const loc = `AvailabilityZones.${key}`;
9034
9076
  entries[loc] = value;
@@ -9051,6 +9093,9 @@ const serializeAws_queryCreateDBClusterMessage = (input, context) => {
9051
9093
  }
9052
9094
  if (input.VpcSecurityGroupIds != null) {
9053
9095
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
9096
+ if (input.VpcSecurityGroupIds?.length === 0) {
9097
+ entries.VpcSecurityGroupIds = [];
9098
+ }
9054
9099
  Object.entries(memberEntries).forEach(([key, value]) => {
9055
9100
  const loc = `VpcSecurityGroupIds.${key}`;
9056
9101
  entries[loc] = value;
@@ -9088,6 +9133,9 @@ const serializeAws_queryCreateDBClusterMessage = (input, context) => {
9088
9133
  }
9089
9134
  if (input.Tags != null) {
9090
9135
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9136
+ if (input.Tags?.length === 0) {
9137
+ entries.Tags = [];
9138
+ }
9091
9139
  Object.entries(memberEntries).forEach(([key, value]) => {
9092
9140
  const loc = `Tags.${key}`;
9093
9141
  entries[loc] = value;
@@ -9110,6 +9158,9 @@ const serializeAws_queryCreateDBClusterMessage = (input, context) => {
9110
9158
  }
9111
9159
  if (input.EnableCloudwatchLogsExports != null) {
9112
9160
  const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
9161
+ if (input.EnableCloudwatchLogsExports?.length === 0) {
9162
+ entries.EnableCloudwatchLogsExports = [];
9163
+ }
9113
9164
  Object.entries(memberEntries).forEach(([key, value]) => {
9114
9165
  const loc = `EnableCloudwatchLogsExports.${key}`;
9115
9166
  entries[loc] = value;
@@ -9204,6 +9255,9 @@ const serializeAws_queryCreateDBClusterParameterGroupMessage = (input, context)
9204
9255
  }
9205
9256
  if (input.Tags != null) {
9206
9257
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9258
+ if (input.Tags?.length === 0) {
9259
+ entries.Tags = [];
9260
+ }
9207
9261
  Object.entries(memberEntries).forEach(([key, value]) => {
9208
9262
  const loc = `Tags.${key}`;
9209
9263
  entries[loc] = value;
@@ -9221,6 +9275,9 @@ const serializeAws_queryCreateDBClusterSnapshotMessage = (input, context) => {
9221
9275
  }
9222
9276
  if (input.Tags != null) {
9223
9277
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9278
+ if (input.Tags?.length === 0) {
9279
+ entries.Tags = [];
9280
+ }
9224
9281
  Object.entries(memberEntries).forEach(([key, value]) => {
9225
9282
  const loc = `Tags.${key}`;
9226
9283
  entries[loc] = value;
@@ -9253,6 +9310,9 @@ const serializeAws_queryCreateDBInstanceMessage = (input, context) => {
9253
9310
  }
9254
9311
  if (input.DBSecurityGroups != null) {
9255
9312
  const memberEntries = serializeAws_queryDBSecurityGroupNameList(input.DBSecurityGroups, context);
9313
+ if (input.DBSecurityGroups?.length === 0) {
9314
+ entries.DBSecurityGroups = [];
9315
+ }
9256
9316
  Object.entries(memberEntries).forEach(([key, value]) => {
9257
9317
  const loc = `DBSecurityGroups.${key}`;
9258
9318
  entries[loc] = value;
@@ -9260,6 +9320,9 @@ const serializeAws_queryCreateDBInstanceMessage = (input, context) => {
9260
9320
  }
9261
9321
  if (input.VpcSecurityGroupIds != null) {
9262
9322
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
9323
+ if (input.VpcSecurityGroupIds?.length === 0) {
9324
+ entries.VpcSecurityGroupIds = [];
9325
+ }
9263
9326
  Object.entries(memberEntries).forEach(([key, value]) => {
9264
9327
  const loc = `VpcSecurityGroupIds.${key}`;
9265
9328
  entries[loc] = value;
@@ -9315,6 +9378,9 @@ const serializeAws_queryCreateDBInstanceMessage = (input, context) => {
9315
9378
  }
9316
9379
  if (input.Tags != null) {
9317
9380
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9381
+ if (input.Tags?.length === 0) {
9382
+ entries.Tags = [];
9383
+ }
9318
9384
  Object.entries(memberEntries).forEach(([key, value]) => {
9319
9385
  const loc = `Tags.${key}`;
9320
9386
  entries[loc] = value;
@@ -9373,6 +9439,9 @@ const serializeAws_queryCreateDBInstanceMessage = (input, context) => {
9373
9439
  }
9374
9440
  if (input.EnableCloudwatchLogsExports != null) {
9375
9441
  const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
9442
+ if (input.EnableCloudwatchLogsExports?.length === 0) {
9443
+ entries.EnableCloudwatchLogsExports = [];
9444
+ }
9376
9445
  Object.entries(memberEntries).forEach(([key, value]) => {
9377
9446
  const loc = `EnableCloudwatchLogsExports.${key}`;
9378
9447
  entries[loc] = value;
@@ -9380,6 +9449,9 @@ const serializeAws_queryCreateDBInstanceMessage = (input, context) => {
9380
9449
  }
9381
9450
  if (input.ProcessorFeatures != null) {
9382
9451
  const memberEntries = serializeAws_queryProcessorFeatureList(input.ProcessorFeatures, context);
9452
+ if (input.ProcessorFeatures?.length === 0) {
9453
+ entries.ProcessorFeatures = [];
9454
+ }
9383
9455
  Object.entries(memberEntries).forEach(([key, value]) => {
9384
9456
  const loc = `ProcessorFeatures.${key}`;
9385
9457
  entries[loc] = value;
@@ -9445,6 +9517,9 @@ const serializeAws_queryCreateDBInstanceReadReplicaMessage = (input, context) =>
9445
9517
  }
9446
9518
  if (input.Tags != null) {
9447
9519
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9520
+ if (input.Tags?.length === 0) {
9521
+ entries.Tags = [];
9522
+ }
9448
9523
  Object.entries(memberEntries).forEach(([key, value]) => {
9449
9524
  const loc = `Tags.${key}`;
9450
9525
  entries[loc] = value;
@@ -9455,6 +9530,9 @@ const serializeAws_queryCreateDBInstanceReadReplicaMessage = (input, context) =>
9455
9530
  }
9456
9531
  if (input.VpcSecurityGroupIds != null) {
9457
9532
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
9533
+ if (input.VpcSecurityGroupIds?.length === 0) {
9534
+ entries.VpcSecurityGroupIds = [];
9535
+ }
9458
9536
  Object.entries(memberEntries).forEach(([key, value]) => {
9459
9537
  const loc = `VpcSecurityGroupIds.${key}`;
9460
9538
  entries[loc] = value;
@@ -9492,6 +9570,9 @@ const serializeAws_queryCreateDBInstanceReadReplicaMessage = (input, context) =>
9492
9570
  }
9493
9571
  if (input.EnableCloudwatchLogsExports != null) {
9494
9572
  const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
9573
+ if (input.EnableCloudwatchLogsExports?.length === 0) {
9574
+ entries.EnableCloudwatchLogsExports = [];
9575
+ }
9495
9576
  Object.entries(memberEntries).forEach(([key, value]) => {
9496
9577
  const loc = `EnableCloudwatchLogsExports.${key}`;
9497
9578
  entries[loc] = value;
@@ -9499,6 +9580,9 @@ const serializeAws_queryCreateDBInstanceReadReplicaMessage = (input, context) =>
9499
9580
  }
9500
9581
  if (input.ProcessorFeatures != null) {
9501
9582
  const memberEntries = serializeAws_queryProcessorFeatureList(input.ProcessorFeatures, context);
9583
+ if (input.ProcessorFeatures?.length === 0) {
9584
+ entries.ProcessorFeatures = [];
9585
+ }
9502
9586
  Object.entries(memberEntries).forEach(([key, value]) => {
9503
9587
  const loc = `ProcessorFeatures.${key}`;
9504
9588
  entries[loc] = value;
@@ -9546,6 +9630,9 @@ const serializeAws_queryCreateDBParameterGroupMessage = (input, context) => {
9546
9630
  }
9547
9631
  if (input.Tags != null) {
9548
9632
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9633
+ if (input.Tags?.length === 0) {
9634
+ entries.Tags = [];
9635
+ }
9549
9636
  Object.entries(memberEntries).forEach(([key, value]) => {
9550
9637
  const loc = `Tags.${key}`;
9551
9638
  entries[loc] = value;
@@ -9563,6 +9650,9 @@ const serializeAws_queryCreateDBProxyEndpointRequest = (input, context) => {
9563
9650
  }
9564
9651
  if (input.VpcSubnetIds != null) {
9565
9652
  const memberEntries = serializeAws_queryStringList(input.VpcSubnetIds, context);
9653
+ if (input.VpcSubnetIds?.length === 0) {
9654
+ entries.VpcSubnetIds = [];
9655
+ }
9566
9656
  Object.entries(memberEntries).forEach(([key, value]) => {
9567
9657
  const loc = `VpcSubnetIds.${key}`;
9568
9658
  entries[loc] = value;
@@ -9570,6 +9660,9 @@ const serializeAws_queryCreateDBProxyEndpointRequest = (input, context) => {
9570
9660
  }
9571
9661
  if (input.VpcSecurityGroupIds != null) {
9572
9662
  const memberEntries = serializeAws_queryStringList(input.VpcSecurityGroupIds, context);
9663
+ if (input.VpcSecurityGroupIds?.length === 0) {
9664
+ entries.VpcSecurityGroupIds = [];
9665
+ }
9573
9666
  Object.entries(memberEntries).forEach(([key, value]) => {
9574
9667
  const loc = `VpcSecurityGroupIds.${key}`;
9575
9668
  entries[loc] = value;
@@ -9580,6 +9673,9 @@ const serializeAws_queryCreateDBProxyEndpointRequest = (input, context) => {
9580
9673
  }
9581
9674
  if (input.Tags != null) {
9582
9675
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9676
+ if (input.Tags?.length === 0) {
9677
+ entries.Tags = [];
9678
+ }
9583
9679
  Object.entries(memberEntries).forEach(([key, value]) => {
9584
9680
  const loc = `Tags.${key}`;
9585
9681
  entries[loc] = value;
@@ -9597,6 +9693,9 @@ const serializeAws_queryCreateDBProxyRequest = (input, context) => {
9597
9693
  }
9598
9694
  if (input.Auth != null) {
9599
9695
  const memberEntries = serializeAws_queryUserAuthConfigList(input.Auth, context);
9696
+ if (input.Auth?.length === 0) {
9697
+ entries.Auth = [];
9698
+ }
9600
9699
  Object.entries(memberEntries).forEach(([key, value]) => {
9601
9700
  const loc = `Auth.${key}`;
9602
9701
  entries[loc] = value;
@@ -9607,6 +9706,9 @@ const serializeAws_queryCreateDBProxyRequest = (input, context) => {
9607
9706
  }
9608
9707
  if (input.VpcSubnetIds != null) {
9609
9708
  const memberEntries = serializeAws_queryStringList(input.VpcSubnetIds, context);
9709
+ if (input.VpcSubnetIds?.length === 0) {
9710
+ entries.VpcSubnetIds = [];
9711
+ }
9610
9712
  Object.entries(memberEntries).forEach(([key, value]) => {
9611
9713
  const loc = `VpcSubnetIds.${key}`;
9612
9714
  entries[loc] = value;
@@ -9614,6 +9716,9 @@ const serializeAws_queryCreateDBProxyRequest = (input, context) => {
9614
9716
  }
9615
9717
  if (input.VpcSecurityGroupIds != null) {
9616
9718
  const memberEntries = serializeAws_queryStringList(input.VpcSecurityGroupIds, context);
9719
+ if (input.VpcSecurityGroupIds?.length === 0) {
9720
+ entries.VpcSecurityGroupIds = [];
9721
+ }
9617
9722
  Object.entries(memberEntries).forEach(([key, value]) => {
9618
9723
  const loc = `VpcSecurityGroupIds.${key}`;
9619
9724
  entries[loc] = value;
@@ -9630,6 +9735,9 @@ const serializeAws_queryCreateDBProxyRequest = (input, context) => {
9630
9735
  }
9631
9736
  if (input.Tags != null) {
9632
9737
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9738
+ if (input.Tags?.length === 0) {
9739
+ entries.Tags = [];
9740
+ }
9633
9741
  Object.entries(memberEntries).forEach(([key, value]) => {
9634
9742
  const loc = `Tags.${key}`;
9635
9743
  entries[loc] = value;
@@ -9647,6 +9755,9 @@ const serializeAws_queryCreateDBSecurityGroupMessage = (input, context) => {
9647
9755
  }
9648
9756
  if (input.Tags != null) {
9649
9757
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9758
+ if (input.Tags?.length === 0) {
9759
+ entries.Tags = [];
9760
+ }
9650
9761
  Object.entries(memberEntries).forEach(([key, value]) => {
9651
9762
  const loc = `Tags.${key}`;
9652
9763
  entries[loc] = value;
@@ -9664,6 +9775,9 @@ const serializeAws_queryCreateDBSnapshotMessage = (input, context) => {
9664
9775
  }
9665
9776
  if (input.Tags != null) {
9666
9777
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9778
+ if (input.Tags?.length === 0) {
9779
+ entries.Tags = [];
9780
+ }
9667
9781
  Object.entries(memberEntries).forEach(([key, value]) => {
9668
9782
  const loc = `Tags.${key}`;
9669
9783
  entries[loc] = value;
@@ -9681,6 +9795,9 @@ const serializeAws_queryCreateDBSubnetGroupMessage = (input, context) => {
9681
9795
  }
9682
9796
  if (input.SubnetIds != null) {
9683
9797
  const memberEntries = serializeAws_querySubnetIdentifierList(input.SubnetIds, context);
9798
+ if (input.SubnetIds?.length === 0) {
9799
+ entries.SubnetIds = [];
9800
+ }
9684
9801
  Object.entries(memberEntries).forEach(([key, value]) => {
9685
9802
  const loc = `SubnetIds.${key}`;
9686
9803
  entries[loc] = value;
@@ -9688,6 +9805,9 @@ const serializeAws_queryCreateDBSubnetGroupMessage = (input, context) => {
9688
9805
  }
9689
9806
  if (input.Tags != null) {
9690
9807
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9808
+ if (input.Tags?.length === 0) {
9809
+ entries.Tags = [];
9810
+ }
9691
9811
  Object.entries(memberEntries).forEach(([key, value]) => {
9692
9812
  const loc = `Tags.${key}`;
9693
9813
  entries[loc] = value;
@@ -9708,6 +9828,9 @@ const serializeAws_queryCreateEventSubscriptionMessage = (input, context) => {
9708
9828
  }
9709
9829
  if (input.EventCategories != null) {
9710
9830
  const memberEntries = serializeAws_queryEventCategoriesList(input.EventCategories, context);
9831
+ if (input.EventCategories?.length === 0) {
9832
+ entries.EventCategories = [];
9833
+ }
9711
9834
  Object.entries(memberEntries).forEach(([key, value]) => {
9712
9835
  const loc = `EventCategories.${key}`;
9713
9836
  entries[loc] = value;
@@ -9715,6 +9838,9 @@ const serializeAws_queryCreateEventSubscriptionMessage = (input, context) => {
9715
9838
  }
9716
9839
  if (input.SourceIds != null) {
9717
9840
  const memberEntries = serializeAws_querySourceIdsList(input.SourceIds, context);
9841
+ if (input.SourceIds?.length === 0) {
9842
+ entries.SourceIds = [];
9843
+ }
9718
9844
  Object.entries(memberEntries).forEach(([key, value]) => {
9719
9845
  const loc = `SourceIds.${key}`;
9720
9846
  entries[loc] = value;
@@ -9725,6 +9851,9 @@ const serializeAws_queryCreateEventSubscriptionMessage = (input, context) => {
9725
9851
  }
9726
9852
  if (input.Tags != null) {
9727
9853
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9854
+ if (input.Tags?.length === 0) {
9855
+ entries.Tags = [];
9856
+ }
9728
9857
  Object.entries(memberEntries).forEach(([key, value]) => {
9729
9858
  const loc = `Tags.${key}`;
9730
9859
  entries[loc] = value;
@@ -9773,6 +9902,9 @@ const serializeAws_queryCreateOptionGroupMessage = (input, context) => {
9773
9902
  }
9774
9903
  if (input.Tags != null) {
9775
9904
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9905
+ if (input.Tags?.length === 0) {
9906
+ entries.Tags = [];
9907
+ }
9776
9908
  Object.entries(memberEntries).forEach(([key, value]) => {
9777
9909
  const loc = `Tags.${key}`;
9778
9910
  entries[loc] = value;
@@ -9935,6 +10067,9 @@ const serializeAws_queryDeregisterDBProxyTargetsRequest = (input, context) => {
9935
10067
  }
9936
10068
  if (input.DBInstanceIdentifiers != null) {
9937
10069
  const memberEntries = serializeAws_queryStringList(input.DBInstanceIdentifiers, context);
10070
+ if (input.DBInstanceIdentifiers?.length === 0) {
10071
+ entries.DBInstanceIdentifiers = [];
10072
+ }
9938
10073
  Object.entries(memberEntries).forEach(([key, value]) => {
9939
10074
  const loc = `DBInstanceIdentifiers.${key}`;
9940
10075
  entries[loc] = value;
@@ -9942,6 +10077,9 @@ const serializeAws_queryDeregisterDBProxyTargetsRequest = (input, context) => {
9942
10077
  }
9943
10078
  if (input.DBClusterIdentifiers != null) {
9944
10079
  const memberEntries = serializeAws_queryStringList(input.DBClusterIdentifiers, context);
10080
+ if (input.DBClusterIdentifiers?.length === 0) {
10081
+ entries.DBClusterIdentifiers = [];
10082
+ }
9945
10083
  Object.entries(memberEntries).forEach(([key, value]) => {
9946
10084
  const loc = `DBClusterIdentifiers.${key}`;
9947
10085
  entries[loc] = value;
@@ -9960,6 +10098,9 @@ const serializeAws_queryDescribeCertificatesMessage = (input, context) => {
9960
10098
  }
9961
10099
  if (input.Filters != null) {
9962
10100
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10101
+ if (input.Filters?.length === 0) {
10102
+ entries.Filters = [];
10103
+ }
9963
10104
  Object.entries(memberEntries).forEach(([key, value]) => {
9964
10105
  const loc = `Filters.${key}`;
9965
10106
  entries[loc] = value;
@@ -9983,6 +10124,9 @@ const serializeAws_queryDescribeDBClusterBacktracksMessage = (input, context) =>
9983
10124
  }
9984
10125
  if (input.Filters != null) {
9985
10126
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10127
+ if (input.Filters?.length === 0) {
10128
+ entries.Filters = [];
10129
+ }
9986
10130
  Object.entries(memberEntries).forEach(([key, value]) => {
9987
10131
  const loc = `Filters.${key}`;
9988
10132
  entries[loc] = value;
@@ -10006,6 +10150,9 @@ const serializeAws_queryDescribeDBClusterEndpointsMessage = (input, context) =>
10006
10150
  }
10007
10151
  if (input.Filters != null) {
10008
10152
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10153
+ if (input.Filters?.length === 0) {
10154
+ entries.Filters = [];
10155
+ }
10009
10156
  Object.entries(memberEntries).forEach(([key, value]) => {
10010
10157
  const loc = `Filters.${key}`;
10011
10158
  entries[loc] = value;
@@ -10026,6 +10173,9 @@ const serializeAws_queryDescribeDBClusterParameterGroupsMessage = (input, contex
10026
10173
  }
10027
10174
  if (input.Filters != null) {
10028
10175
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10176
+ if (input.Filters?.length === 0) {
10177
+ entries.Filters = [];
10178
+ }
10029
10179
  Object.entries(memberEntries).forEach(([key, value]) => {
10030
10180
  const loc = `Filters.${key}`;
10031
10181
  entries[loc] = value;
@@ -10049,6 +10199,9 @@ const serializeAws_queryDescribeDBClusterParametersMessage = (input, context) =>
10049
10199
  }
10050
10200
  if (input.Filters != null) {
10051
10201
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10202
+ if (input.Filters?.length === 0) {
10203
+ entries.Filters = [];
10204
+ }
10052
10205
  Object.entries(memberEntries).forEach(([key, value]) => {
10053
10206
  const loc = `Filters.${key}`;
10054
10207
  entries[loc] = value;
@@ -10069,6 +10222,9 @@ const serializeAws_queryDescribeDBClustersMessage = (input, context) => {
10069
10222
  }
10070
10223
  if (input.Filters != null) {
10071
10224
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10225
+ if (input.Filters?.length === 0) {
10226
+ entries.Filters = [];
10227
+ }
10072
10228
  Object.entries(memberEntries).forEach(([key, value]) => {
10073
10229
  const loc = `Filters.${key}`;
10074
10230
  entries[loc] = value;
@@ -10105,6 +10261,9 @@ const serializeAws_queryDescribeDBClusterSnapshotsMessage = (input, context) =>
10105
10261
  }
10106
10262
  if (input.Filters != null) {
10107
10263
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10264
+ if (input.Filters?.length === 0) {
10265
+ entries.Filters = [];
10266
+ }
10108
10267
  Object.entries(memberEntries).forEach(([key, value]) => {
10109
10268
  const loc = `Filters.${key}`;
10110
10269
  entries[loc] = value;
@@ -10137,6 +10296,9 @@ const serializeAws_queryDescribeDBEngineVersionsMessage = (input, context) => {
10137
10296
  }
10138
10297
  if (input.Filters != null) {
10139
10298
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10299
+ if (input.Filters?.length === 0) {
10300
+ entries.Filters = [];
10301
+ }
10140
10302
  Object.entries(memberEntries).forEach(([key, value]) => {
10141
10303
  const loc = `Filters.${key}`;
10142
10304
  entries[loc] = value;
@@ -10172,6 +10334,9 @@ const serializeAws_queryDescribeDBInstanceAutomatedBackupsMessage = (input, cont
10172
10334
  }
10173
10335
  if (input.Filters != null) {
10174
10336
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10337
+ if (input.Filters?.length === 0) {
10338
+ entries.Filters = [];
10339
+ }
10175
10340
  Object.entries(memberEntries).forEach(([key, value]) => {
10176
10341
  const loc = `Filters.${key}`;
10177
10342
  entries[loc] = value;
@@ -10195,6 +10360,9 @@ const serializeAws_queryDescribeDBInstancesMessage = (input, context) => {
10195
10360
  }
10196
10361
  if (input.Filters != null) {
10197
10362
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10363
+ if (input.Filters?.length === 0) {
10364
+ entries.Filters = [];
10365
+ }
10198
10366
  Object.entries(memberEntries).forEach(([key, value]) => {
10199
10367
  const loc = `Filters.${key}`;
10200
10368
  entries[loc] = value;
@@ -10224,6 +10392,9 @@ const serializeAws_queryDescribeDBLogFilesMessage = (input, context) => {
10224
10392
  }
10225
10393
  if (input.Filters != null) {
10226
10394
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10395
+ if (input.Filters?.length === 0) {
10396
+ entries.Filters = [];
10397
+ }
10227
10398
  Object.entries(memberEntries).forEach(([key, value]) => {
10228
10399
  const loc = `Filters.${key}`;
10229
10400
  entries[loc] = value;
@@ -10244,6 +10415,9 @@ const serializeAws_queryDescribeDBParameterGroupsMessage = (input, context) => {
10244
10415
  }
10245
10416
  if (input.Filters != null) {
10246
10417
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10418
+ if (input.Filters?.length === 0) {
10419
+ entries.Filters = [];
10420
+ }
10247
10421
  Object.entries(memberEntries).forEach(([key, value]) => {
10248
10422
  const loc = `Filters.${key}`;
10249
10423
  entries[loc] = value;
@@ -10267,6 +10441,9 @@ const serializeAws_queryDescribeDBParametersMessage = (input, context) => {
10267
10441
  }
10268
10442
  if (input.Filters != null) {
10269
10443
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10444
+ if (input.Filters?.length === 0) {
10445
+ entries.Filters = [];
10446
+ }
10270
10447
  Object.entries(memberEntries).forEach(([key, value]) => {
10271
10448
  const loc = `Filters.${key}`;
10272
10449
  entries[loc] = value;
@@ -10287,6 +10464,9 @@ const serializeAws_queryDescribeDBProxiesRequest = (input, context) => {
10287
10464
  }
10288
10465
  if (input.Filters != null) {
10289
10466
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10467
+ if (input.Filters?.length === 0) {
10468
+ entries.Filters = [];
10469
+ }
10290
10470
  Object.entries(memberEntries).forEach(([key, value]) => {
10291
10471
  const loc = `Filters.${key}`;
10292
10472
  entries[loc] = value;
@@ -10310,6 +10490,9 @@ const serializeAws_queryDescribeDBProxyEndpointsRequest = (input, context) => {
10310
10490
  }
10311
10491
  if (input.Filters != null) {
10312
10492
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10493
+ if (input.Filters?.length === 0) {
10494
+ entries.Filters = [];
10495
+ }
10313
10496
  Object.entries(memberEntries).forEach(([key, value]) => {
10314
10497
  const loc = `Filters.${key}`;
10315
10498
  entries[loc] = value;
@@ -10333,6 +10516,9 @@ const serializeAws_queryDescribeDBProxyTargetGroupsRequest = (input, context) =>
10333
10516
  }
10334
10517
  if (input.Filters != null) {
10335
10518
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10519
+ if (input.Filters?.length === 0) {
10520
+ entries.Filters = [];
10521
+ }
10336
10522
  Object.entries(memberEntries).forEach(([key, value]) => {
10337
10523
  const loc = `Filters.${key}`;
10338
10524
  entries[loc] = value;
@@ -10356,6 +10542,9 @@ const serializeAws_queryDescribeDBProxyTargetsRequest = (input, context) => {
10356
10542
  }
10357
10543
  if (input.Filters != null) {
10358
10544
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10545
+ if (input.Filters?.length === 0) {
10546
+ entries.Filters = [];
10547
+ }
10359
10548
  Object.entries(memberEntries).forEach(([key, value]) => {
10360
10549
  const loc = `Filters.${key}`;
10361
10550
  entries[loc] = value;
@@ -10376,6 +10565,9 @@ const serializeAws_queryDescribeDBSecurityGroupsMessage = (input, context) => {
10376
10565
  }
10377
10566
  if (input.Filters != null) {
10378
10567
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10568
+ if (input.Filters?.length === 0) {
10569
+ entries.Filters = [];
10570
+ }
10379
10571
  Object.entries(memberEntries).forEach(([key, value]) => {
10380
10572
  const loc = `Filters.${key}`;
10381
10573
  entries[loc] = value;
@@ -10409,6 +10601,9 @@ const serializeAws_queryDescribeDBSnapshotsMessage = (input, context) => {
10409
10601
  }
10410
10602
  if (input.Filters != null) {
10411
10603
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10604
+ if (input.Filters?.length === 0) {
10605
+ entries.Filters = [];
10606
+ }
10412
10607
  Object.entries(memberEntries).forEach(([key, value]) => {
10413
10608
  const loc = `Filters.${key}`;
10414
10609
  entries[loc] = value;
@@ -10438,6 +10633,9 @@ const serializeAws_queryDescribeDBSubnetGroupsMessage = (input, context) => {
10438
10633
  }
10439
10634
  if (input.Filters != null) {
10440
10635
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10636
+ if (input.Filters?.length === 0) {
10637
+ entries.Filters = [];
10638
+ }
10441
10639
  Object.entries(memberEntries).forEach(([key, value]) => {
10442
10640
  const loc = `Filters.${key}`;
10443
10641
  entries[loc] = value;
@@ -10458,6 +10656,9 @@ const serializeAws_queryDescribeEngineDefaultClusterParametersMessage = (input,
10458
10656
  }
10459
10657
  if (input.Filters != null) {
10460
10658
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10659
+ if (input.Filters?.length === 0) {
10660
+ entries.Filters = [];
10661
+ }
10461
10662
  Object.entries(memberEntries).forEach(([key, value]) => {
10462
10663
  const loc = `Filters.${key}`;
10463
10664
  entries[loc] = value;
@@ -10478,6 +10679,9 @@ const serializeAws_queryDescribeEngineDefaultParametersMessage = (input, context
10478
10679
  }
10479
10680
  if (input.Filters != null) {
10480
10681
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10682
+ if (input.Filters?.length === 0) {
10683
+ entries.Filters = [];
10684
+ }
10481
10685
  Object.entries(memberEntries).forEach(([key, value]) => {
10482
10686
  const loc = `Filters.${key}`;
10483
10687
  entries[loc] = value;
@@ -10498,6 +10702,9 @@ const serializeAws_queryDescribeEventCategoriesMessage = (input, context) => {
10498
10702
  }
10499
10703
  if (input.Filters != null) {
10500
10704
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10705
+ if (input.Filters?.length === 0) {
10706
+ entries.Filters = [];
10707
+ }
10501
10708
  Object.entries(memberEntries).forEach(([key, value]) => {
10502
10709
  const loc = `Filters.${key}`;
10503
10710
  entries[loc] = value;
@@ -10524,6 +10731,9 @@ const serializeAws_queryDescribeEventsMessage = (input, context) => {
10524
10731
  }
10525
10732
  if (input.EventCategories != null) {
10526
10733
  const memberEntries = serializeAws_queryEventCategoriesList(input.EventCategories, context);
10734
+ if (input.EventCategories?.length === 0) {
10735
+ entries.EventCategories = [];
10736
+ }
10527
10737
  Object.entries(memberEntries).forEach(([key, value]) => {
10528
10738
  const loc = `EventCategories.${key}`;
10529
10739
  entries[loc] = value;
@@ -10531,6 +10741,9 @@ const serializeAws_queryDescribeEventsMessage = (input, context) => {
10531
10741
  }
10532
10742
  if (input.Filters != null) {
10533
10743
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10744
+ if (input.Filters?.length === 0) {
10745
+ entries.Filters = [];
10746
+ }
10534
10747
  Object.entries(memberEntries).forEach(([key, value]) => {
10535
10748
  const loc = `Filters.${key}`;
10536
10749
  entries[loc] = value;
@@ -10551,6 +10764,9 @@ const serializeAws_queryDescribeEventSubscriptionsMessage = (input, context) =>
10551
10764
  }
10552
10765
  if (input.Filters != null) {
10553
10766
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10767
+ if (input.Filters?.length === 0) {
10768
+ entries.Filters = [];
10769
+ }
10554
10770
  Object.entries(memberEntries).forEach(([key, value]) => {
10555
10771
  const loc = `Filters.${key}`;
10556
10772
  entries[loc] = value;
@@ -10574,6 +10790,9 @@ const serializeAws_queryDescribeExportTasksMessage = (input, context) => {
10574
10790
  }
10575
10791
  if (input.Filters != null) {
10576
10792
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10793
+ if (input.Filters?.length === 0) {
10794
+ entries.Filters = [];
10795
+ }
10577
10796
  Object.entries(memberEntries).forEach(([key, value]) => {
10578
10797
  const loc = `Filters.${key}`;
10579
10798
  entries[loc] = value;
@@ -10597,6 +10816,9 @@ const serializeAws_queryDescribeGlobalClustersMessage = (input, context) => {
10597
10816
  }
10598
10817
  if (input.Filters != null) {
10599
10818
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10819
+ if (input.Filters?.length === 0) {
10820
+ entries.Filters = [];
10821
+ }
10600
10822
  Object.entries(memberEntries).forEach(([key, value]) => {
10601
10823
  const loc = `Filters.${key}`;
10602
10824
  entries[loc] = value;
@@ -10620,6 +10842,9 @@ const serializeAws_queryDescribeOptionGroupOptionsMessage = (input, context) =>
10620
10842
  }
10621
10843
  if (input.Filters != null) {
10622
10844
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10845
+ if (input.Filters?.length === 0) {
10846
+ entries.Filters = [];
10847
+ }
10623
10848
  Object.entries(memberEntries).forEach(([key, value]) => {
10624
10849
  const loc = `Filters.${key}`;
10625
10850
  entries[loc] = value;
@@ -10640,6 +10865,9 @@ const serializeAws_queryDescribeOptionGroupsMessage = (input, context) => {
10640
10865
  }
10641
10866
  if (input.Filters != null) {
10642
10867
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10868
+ if (input.Filters?.length === 0) {
10869
+ entries.Filters = [];
10870
+ }
10643
10871
  Object.entries(memberEntries).forEach(([key, value]) => {
10644
10872
  const loc = `Filters.${key}`;
10645
10873
  entries[loc] = value;
@@ -10681,6 +10909,9 @@ const serializeAws_queryDescribeOrderableDBInstanceOptionsMessage = (input, cont
10681
10909
  }
10682
10910
  if (input.Filters != null) {
10683
10911
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10912
+ if (input.Filters?.length === 0) {
10913
+ entries.Filters = [];
10914
+ }
10684
10915
  Object.entries(memberEntries).forEach(([key, value]) => {
10685
10916
  const loc = `Filters.${key}`;
10686
10917
  entries[loc] = value;
@@ -10701,6 +10932,9 @@ const serializeAws_queryDescribePendingMaintenanceActionsMessage = (input, conte
10701
10932
  }
10702
10933
  if (input.Filters != null) {
10703
10934
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10935
+ if (input.Filters?.length === 0) {
10936
+ entries.Filters = [];
10937
+ }
10704
10938
  Object.entries(memberEntries).forEach(([key, value]) => {
10705
10939
  const loc = `Filters.${key}`;
10706
10940
  entries[loc] = value;
@@ -10742,6 +10976,9 @@ const serializeAws_queryDescribeReservedDBInstancesMessage = (input, context) =>
10742
10976
  }
10743
10977
  if (input.Filters != null) {
10744
10978
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10979
+ if (input.Filters?.length === 0) {
10980
+ entries.Filters = [];
10981
+ }
10745
10982
  Object.entries(memberEntries).forEach(([key, value]) => {
10746
10983
  const loc = `Filters.${key}`;
10747
10984
  entries[loc] = value;
@@ -10777,6 +11014,9 @@ const serializeAws_queryDescribeReservedDBInstancesOfferingsMessage = (input, co
10777
11014
  }
10778
11015
  if (input.Filters != null) {
10779
11016
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
11017
+ if (input.Filters?.length === 0) {
11018
+ entries.Filters = [];
11019
+ }
10780
11020
  Object.entries(memberEntries).forEach(([key, value]) => {
10781
11021
  const loc = `Filters.${key}`;
10782
11022
  entries[loc] = value;
@@ -10803,6 +11043,9 @@ const serializeAws_queryDescribeSourceRegionsMessage = (input, context) => {
10803
11043
  }
10804
11044
  if (input.Filters != null) {
10805
11045
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
11046
+ if (input.Filters?.length === 0) {
11047
+ entries.Filters = [];
11048
+ }
10806
11049
  Object.entries(memberEntries).forEach(([key, value]) => {
10807
11050
  const loc = `Filters.${key}`;
10808
11051
  entries[loc] = value;
@@ -10884,6 +11127,9 @@ const serializeAws_queryFilter = (input, context) => {
10884
11127
  }
10885
11128
  if (input.Values != null) {
10886
11129
  const memberEntries = serializeAws_queryFilterValueList(input.Values, context);
11130
+ if (input.Values?.length === 0) {
11131
+ entries.Values = [];
11132
+ }
10887
11133
  Object.entries(memberEntries).forEach(([key, value]) => {
10888
11134
  const loc = `Values.${key}`;
10889
11135
  entries[loc] = value;
@@ -10937,6 +11183,9 @@ const serializeAws_queryListTagsForResourceMessage = (input, context) => {
10937
11183
  }
10938
11184
  if (input.Filters != null) {
10939
11185
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
11186
+ if (input.Filters?.length === 0) {
11187
+ entries.Filters = [];
11188
+ }
10940
11189
  Object.entries(memberEntries).forEach(([key, value]) => {
10941
11190
  const loc = `Filters.${key}`;
10942
11191
  entries[loc] = value;
@@ -11018,6 +11267,9 @@ const serializeAws_queryModifyDBClusterEndpointMessage = (input, context) => {
11018
11267
  }
11019
11268
  if (input.StaticMembers != null) {
11020
11269
  const memberEntries = serializeAws_queryStringList(input.StaticMembers, context);
11270
+ if (input.StaticMembers?.length === 0) {
11271
+ entries.StaticMembers = [];
11272
+ }
11021
11273
  Object.entries(memberEntries).forEach(([key, value]) => {
11022
11274
  const loc = `StaticMembers.${key}`;
11023
11275
  entries[loc] = value;
@@ -11025,6 +11277,9 @@ const serializeAws_queryModifyDBClusterEndpointMessage = (input, context) => {
11025
11277
  }
11026
11278
  if (input.ExcludedMembers != null) {
11027
11279
  const memberEntries = serializeAws_queryStringList(input.ExcludedMembers, context);
11280
+ if (input.ExcludedMembers?.length === 0) {
11281
+ entries.ExcludedMembers = [];
11282
+ }
11028
11283
  Object.entries(memberEntries).forEach(([key, value]) => {
11029
11284
  const loc = `ExcludedMembers.${key}`;
11030
11285
  entries[loc] = value;
@@ -11051,6 +11306,9 @@ const serializeAws_queryModifyDBClusterMessage = (input, context) => {
11051
11306
  }
11052
11307
  if (input.VpcSecurityGroupIds != null) {
11053
11308
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
11309
+ if (input.VpcSecurityGroupIds?.length === 0) {
11310
+ entries.VpcSecurityGroupIds = [];
11311
+ }
11054
11312
  Object.entries(memberEntries).forEach(([key, value]) => {
11055
11313
  const loc = `VpcSecurityGroupIds.${key}`;
11056
11314
  entries[loc] = value;
@@ -11167,6 +11425,9 @@ const serializeAws_queryModifyDBClusterParameterGroupMessage = (input, context)
11167
11425
  }
11168
11426
  if (input.Parameters != null) {
11169
11427
  const memberEntries = serializeAws_queryParametersList(input.Parameters, context);
11428
+ if (input.Parameters?.length === 0) {
11429
+ entries.Parameters = [];
11430
+ }
11170
11431
  Object.entries(memberEntries).forEach(([key, value]) => {
11171
11432
  const loc = `Parameters.${key}`;
11172
11433
  entries[loc] = value;
@@ -11184,6 +11445,9 @@ const serializeAws_queryModifyDBClusterSnapshotAttributeMessage = (input, contex
11184
11445
  }
11185
11446
  if (input.ValuesToAdd != null) {
11186
11447
  const memberEntries = serializeAws_queryAttributeValueList(input.ValuesToAdd, context);
11448
+ if (input.ValuesToAdd?.length === 0) {
11449
+ entries.ValuesToAdd = [];
11450
+ }
11187
11451
  Object.entries(memberEntries).forEach(([key, value]) => {
11188
11452
  const loc = `ValuesToAdd.${key}`;
11189
11453
  entries[loc] = value;
@@ -11191,6 +11455,9 @@ const serializeAws_queryModifyDBClusterSnapshotAttributeMessage = (input, contex
11191
11455
  }
11192
11456
  if (input.ValuesToRemove != null) {
11193
11457
  const memberEntries = serializeAws_queryAttributeValueList(input.ValuesToRemove, context);
11458
+ if (input.ValuesToRemove?.length === 0) {
11459
+ entries.ValuesToRemove = [];
11460
+ }
11194
11461
  Object.entries(memberEntries).forEach(([key, value]) => {
11195
11462
  const loc = `ValuesToRemove.${key}`;
11196
11463
  entries[loc] = value;
@@ -11214,6 +11481,9 @@ const serializeAws_queryModifyDBInstanceMessage = (input, context) => {
11214
11481
  }
11215
11482
  if (input.DBSecurityGroups != null) {
11216
11483
  const memberEntries = serializeAws_queryDBSecurityGroupNameList(input.DBSecurityGroups, context);
11484
+ if (input.DBSecurityGroups?.length === 0) {
11485
+ entries.DBSecurityGroups = [];
11486
+ }
11217
11487
  Object.entries(memberEntries).forEach(([key, value]) => {
11218
11488
  const loc = `DBSecurityGroups.${key}`;
11219
11489
  entries[loc] = value;
@@ -11221,6 +11491,9 @@ const serializeAws_queryModifyDBInstanceMessage = (input, context) => {
11221
11491
  }
11222
11492
  if (input.VpcSecurityGroupIds != null) {
11223
11493
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
11494
+ if (input.VpcSecurityGroupIds?.length === 0) {
11495
+ entries.VpcSecurityGroupIds = [];
11496
+ }
11224
11497
  Object.entries(memberEntries).forEach(([key, value]) => {
11225
11498
  const loc = `VpcSecurityGroupIds.${key}`;
11226
11499
  entries[loc] = value;
@@ -11325,6 +11598,9 @@ const serializeAws_queryModifyDBInstanceMessage = (input, context) => {
11325
11598
  }
11326
11599
  if (input.ProcessorFeatures != null) {
11327
11600
  const memberEntries = serializeAws_queryProcessorFeatureList(input.ProcessorFeatures, context);
11601
+ if (input.ProcessorFeatures?.length === 0) {
11602
+ entries.ProcessorFeatures = [];
11603
+ }
11328
11604
  Object.entries(memberEntries).forEach(([key, value]) => {
11329
11605
  const loc = `ProcessorFeatures.${key}`;
11330
11606
  entries[loc] = value;
@@ -11372,6 +11648,9 @@ const serializeAws_queryModifyDBParameterGroupMessage = (input, context) => {
11372
11648
  }
11373
11649
  if (input.Parameters != null) {
11374
11650
  const memberEntries = serializeAws_queryParametersList(input.Parameters, context);
11651
+ if (input.Parameters?.length === 0) {
11652
+ entries.Parameters = [];
11653
+ }
11375
11654
  Object.entries(memberEntries).forEach(([key, value]) => {
11376
11655
  const loc = `Parameters.${key}`;
11377
11656
  entries[loc] = value;
@@ -11389,6 +11668,9 @@ const serializeAws_queryModifyDBProxyEndpointRequest = (input, context) => {
11389
11668
  }
11390
11669
  if (input.VpcSecurityGroupIds != null) {
11391
11670
  const memberEntries = serializeAws_queryStringList(input.VpcSecurityGroupIds, context);
11671
+ if (input.VpcSecurityGroupIds?.length === 0) {
11672
+ entries.VpcSecurityGroupIds = [];
11673
+ }
11392
11674
  Object.entries(memberEntries).forEach(([key, value]) => {
11393
11675
  const loc = `VpcSecurityGroupIds.${key}`;
11394
11676
  entries[loc] = value;
@@ -11406,6 +11688,9 @@ const serializeAws_queryModifyDBProxyRequest = (input, context) => {
11406
11688
  }
11407
11689
  if (input.Auth != null) {
11408
11690
  const memberEntries = serializeAws_queryUserAuthConfigList(input.Auth, context);
11691
+ if (input.Auth?.length === 0) {
11692
+ entries.Auth = [];
11693
+ }
11409
11694
  Object.entries(memberEntries).forEach(([key, value]) => {
11410
11695
  const loc = `Auth.${key}`;
11411
11696
  entries[loc] = value;
@@ -11425,6 +11710,9 @@ const serializeAws_queryModifyDBProxyRequest = (input, context) => {
11425
11710
  }
11426
11711
  if (input.SecurityGroups != null) {
11427
11712
  const memberEntries = serializeAws_queryStringList(input.SecurityGroups, context);
11713
+ if (input.SecurityGroups?.length === 0) {
11714
+ entries.SecurityGroups = [];
11715
+ }
11428
11716
  Object.entries(memberEntries).forEach(([key, value]) => {
11429
11717
  const loc = `SecurityGroups.${key}`;
11430
11718
  entries[loc] = value;
@@ -11462,6 +11750,9 @@ const serializeAws_queryModifyDBSnapshotAttributeMessage = (input, context) => {
11462
11750
  }
11463
11751
  if (input.ValuesToAdd != null) {
11464
11752
  const memberEntries = serializeAws_queryAttributeValueList(input.ValuesToAdd, context);
11753
+ if (input.ValuesToAdd?.length === 0) {
11754
+ entries.ValuesToAdd = [];
11755
+ }
11465
11756
  Object.entries(memberEntries).forEach(([key, value]) => {
11466
11757
  const loc = `ValuesToAdd.${key}`;
11467
11758
  entries[loc] = value;
@@ -11469,6 +11760,9 @@ const serializeAws_queryModifyDBSnapshotAttributeMessage = (input, context) => {
11469
11760
  }
11470
11761
  if (input.ValuesToRemove != null) {
11471
11762
  const memberEntries = serializeAws_queryAttributeValueList(input.ValuesToRemove, context);
11763
+ if (input.ValuesToRemove?.length === 0) {
11764
+ entries.ValuesToRemove = [];
11765
+ }
11472
11766
  Object.entries(memberEntries).forEach(([key, value]) => {
11473
11767
  const loc = `ValuesToRemove.${key}`;
11474
11768
  entries[loc] = value;
@@ -11499,6 +11793,9 @@ const serializeAws_queryModifyDBSubnetGroupMessage = (input, context) => {
11499
11793
  }
11500
11794
  if (input.SubnetIds != null) {
11501
11795
  const memberEntries = serializeAws_querySubnetIdentifierList(input.SubnetIds, context);
11796
+ if (input.SubnetIds?.length === 0) {
11797
+ entries.SubnetIds = [];
11798
+ }
11502
11799
  Object.entries(memberEntries).forEach(([key, value]) => {
11503
11800
  const loc = `SubnetIds.${key}`;
11504
11801
  entries[loc] = value;
@@ -11519,6 +11816,9 @@ const serializeAws_queryModifyEventSubscriptionMessage = (input, context) => {
11519
11816
  }
11520
11817
  if (input.EventCategories != null) {
11521
11818
  const memberEntries = serializeAws_queryEventCategoriesList(input.EventCategories, context);
11819
+ if (input.EventCategories?.length === 0) {
11820
+ entries.EventCategories = [];
11821
+ }
11522
11822
  Object.entries(memberEntries).forEach(([key, value]) => {
11523
11823
  const loc = `EventCategories.${key}`;
11524
11824
  entries[loc] = value;
@@ -11555,6 +11855,9 @@ const serializeAws_queryModifyOptionGroupMessage = (input, context) => {
11555
11855
  }
11556
11856
  if (input.OptionsToInclude != null) {
11557
11857
  const memberEntries = serializeAws_queryOptionConfigurationList(input.OptionsToInclude, context);
11858
+ if (input.OptionsToInclude?.length === 0) {
11859
+ entries.OptionsToInclude = [];
11860
+ }
11558
11861
  Object.entries(memberEntries).forEach(([key, value]) => {
11559
11862
  const loc = `OptionsToInclude.${key}`;
11560
11863
  entries[loc] = value;
@@ -11562,6 +11865,9 @@ const serializeAws_queryModifyOptionGroupMessage = (input, context) => {
11562
11865
  }
11563
11866
  if (input.OptionsToRemove != null) {
11564
11867
  const memberEntries = serializeAws_queryOptionNamesList(input.OptionsToRemove, context);
11868
+ if (input.OptionsToRemove?.length === 0) {
11869
+ entries.OptionsToRemove = [];
11870
+ }
11565
11871
  Object.entries(memberEntries).forEach(([key, value]) => {
11566
11872
  const loc = `OptionsToRemove.${key}`;
11567
11873
  entries[loc] = value;
@@ -11585,6 +11891,9 @@ const serializeAws_queryOptionConfiguration = (input, context) => {
11585
11891
  }
11586
11892
  if (input.DBSecurityGroupMemberships != null) {
11587
11893
  const memberEntries = serializeAws_queryDBSecurityGroupNameList(input.DBSecurityGroupMemberships, context);
11894
+ if (input.DBSecurityGroupMemberships?.length === 0) {
11895
+ entries.DBSecurityGroupMemberships = [];
11896
+ }
11588
11897
  Object.entries(memberEntries).forEach(([key, value]) => {
11589
11898
  const loc = `DBSecurityGroupMemberships.${key}`;
11590
11899
  entries[loc] = value;
@@ -11592,6 +11901,9 @@ const serializeAws_queryOptionConfiguration = (input, context) => {
11592
11901
  }
11593
11902
  if (input.VpcSecurityGroupMemberships != null) {
11594
11903
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupMemberships, context);
11904
+ if (input.VpcSecurityGroupMemberships?.length === 0) {
11905
+ entries.VpcSecurityGroupMemberships = [];
11906
+ }
11595
11907
  Object.entries(memberEntries).forEach(([key, value]) => {
11596
11908
  const loc = `VpcSecurityGroupMemberships.${key}`;
11597
11909
  entries[loc] = value;
@@ -11599,6 +11911,9 @@ const serializeAws_queryOptionConfiguration = (input, context) => {
11599
11911
  }
11600
11912
  if (input.OptionSettings != null) {
11601
11913
  const memberEntries = serializeAws_queryOptionSettingsList(input.OptionSettings, context);
11914
+ if (input.OptionSettings?.length === 0) {
11915
+ entries.OptionSettings = [];
11916
+ }
11602
11917
  Object.entries(memberEntries).forEach(([key, value]) => {
11603
11918
  const loc = `OptionSettings.${key}`;
11604
11919
  entries[loc] = value;
@@ -11713,6 +12028,9 @@ const serializeAws_queryParameter = (input, context) => {
11713
12028
  }
11714
12029
  if (input.SupportedEngineModes != null) {
11715
12030
  const memberEntries = serializeAws_queryEngineModeList(input.SupportedEngineModes, context);
12031
+ if (input.SupportedEngineModes?.length === 0) {
12032
+ entries.SupportedEngineModes = [];
12033
+ }
11716
12034
  Object.entries(memberEntries).forEach(([key, value]) => {
11717
12035
  const loc = `SupportedEngineModes.${key}`;
11718
12036
  entries[loc] = value;
@@ -11793,6 +12111,9 @@ const serializeAws_queryPurchaseReservedDBInstancesOfferingMessage = (input, con
11793
12111
  }
11794
12112
  if (input.Tags != null) {
11795
12113
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
12114
+ if (input.Tags?.length === 0) {
12115
+ entries.Tags = [];
12116
+ }
11796
12117
  Object.entries(memberEntries).forEach(([key, value]) => {
11797
12118
  const loc = `Tags.${key}`;
11798
12119
  entries[loc] = value;
@@ -11827,6 +12148,9 @@ const serializeAws_queryRegisterDBProxyTargetsRequest = (input, context) => {
11827
12148
  }
11828
12149
  if (input.DBInstanceIdentifiers != null) {
11829
12150
  const memberEntries = serializeAws_queryStringList(input.DBInstanceIdentifiers, context);
12151
+ if (input.DBInstanceIdentifiers?.length === 0) {
12152
+ entries.DBInstanceIdentifiers = [];
12153
+ }
11830
12154
  Object.entries(memberEntries).forEach(([key, value]) => {
11831
12155
  const loc = `DBInstanceIdentifiers.${key}`;
11832
12156
  entries[loc] = value;
@@ -11834,6 +12158,9 @@ const serializeAws_queryRegisterDBProxyTargetsRequest = (input, context) => {
11834
12158
  }
11835
12159
  if (input.DBClusterIdentifiers != null) {
11836
12160
  const memberEntries = serializeAws_queryStringList(input.DBClusterIdentifiers, context);
12161
+ if (input.DBClusterIdentifiers?.length === 0) {
12162
+ entries.DBClusterIdentifiers = [];
12163
+ }
11837
12164
  Object.entries(memberEntries).forEach(([key, value]) => {
11838
12165
  const loc = `DBClusterIdentifiers.${key}`;
11839
12166
  entries[loc] = value;
@@ -11894,6 +12221,9 @@ const serializeAws_queryRemoveTagsFromResourceMessage = (input, context) => {
11894
12221
  }
11895
12222
  if (input.TagKeys != null) {
11896
12223
  const memberEntries = serializeAws_queryKeyList(input.TagKeys, context);
12224
+ if (input.TagKeys?.length === 0) {
12225
+ entries.TagKeys = [];
12226
+ }
11897
12227
  Object.entries(memberEntries).forEach(([key, value]) => {
11898
12228
  const loc = `TagKeys.${key}`;
11899
12229
  entries[loc] = value;
@@ -11911,6 +12241,9 @@ const serializeAws_queryResetDBClusterParameterGroupMessage = (input, context) =
11911
12241
  }
11912
12242
  if (input.Parameters != null) {
11913
12243
  const memberEntries = serializeAws_queryParametersList(input.Parameters, context);
12244
+ if (input.Parameters?.length === 0) {
12245
+ entries.Parameters = [];
12246
+ }
11914
12247
  Object.entries(memberEntries).forEach(([key, value]) => {
11915
12248
  const loc = `Parameters.${key}`;
11916
12249
  entries[loc] = value;
@@ -11928,6 +12261,9 @@ const serializeAws_queryResetDBParameterGroupMessage = (input, context) => {
11928
12261
  }
11929
12262
  if (input.Parameters != null) {
11930
12263
  const memberEntries = serializeAws_queryParametersList(input.Parameters, context);
12264
+ if (input.Parameters?.length === 0) {
12265
+ entries.Parameters = [];
12266
+ }
11931
12267
  Object.entries(memberEntries).forEach(([key, value]) => {
11932
12268
  const loc = `Parameters.${key}`;
11933
12269
  entries[loc] = value;
@@ -11939,6 +12275,9 @@ const serializeAws_queryRestoreDBClusterFromS3Message = (input, context) => {
11939
12275
  const entries = {};
11940
12276
  if (input.AvailabilityZones != null) {
11941
12277
  const memberEntries = serializeAws_queryAvailabilityZones(input.AvailabilityZones, context);
12278
+ if (input.AvailabilityZones?.length === 0) {
12279
+ entries.AvailabilityZones = [];
12280
+ }
11942
12281
  Object.entries(memberEntries).forEach(([key, value]) => {
11943
12282
  const loc = `AvailabilityZones.${key}`;
11944
12283
  entries[loc] = value;
@@ -11961,6 +12300,9 @@ const serializeAws_queryRestoreDBClusterFromS3Message = (input, context) => {
11961
12300
  }
11962
12301
  if (input.VpcSecurityGroupIds != null) {
11963
12302
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
12303
+ if (input.VpcSecurityGroupIds?.length === 0) {
12304
+ entries.VpcSecurityGroupIds = [];
12305
+ }
11964
12306
  Object.entries(memberEntries).forEach(([key, value]) => {
11965
12307
  const loc = `VpcSecurityGroupIds.${key}`;
11966
12308
  entries[loc] = value;
@@ -11995,6 +12337,9 @@ const serializeAws_queryRestoreDBClusterFromS3Message = (input, context) => {
11995
12337
  }
11996
12338
  if (input.Tags != null) {
11997
12339
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
12340
+ if (input.Tags?.length === 0) {
12341
+ entries.Tags = [];
12342
+ }
11998
12343
  Object.entries(memberEntries).forEach(([key, value]) => {
11999
12344
  const loc = `Tags.${key}`;
12000
12345
  entries[loc] = value;
@@ -12029,6 +12374,9 @@ const serializeAws_queryRestoreDBClusterFromS3Message = (input, context) => {
12029
12374
  }
12030
12375
  if (input.EnableCloudwatchLogsExports != null) {
12031
12376
  const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
12377
+ if (input.EnableCloudwatchLogsExports?.length === 0) {
12378
+ entries.EnableCloudwatchLogsExports = [];
12379
+ }
12032
12380
  Object.entries(memberEntries).forEach(([key, value]) => {
12033
12381
  const loc = `EnableCloudwatchLogsExports.${key}`;
12034
12382
  entries[loc] = value;
@@ -12062,6 +12410,9 @@ const serializeAws_queryRestoreDBClusterFromSnapshotMessage = (input, context) =
12062
12410
  const entries = {};
12063
12411
  if (input.AvailabilityZones != null) {
12064
12412
  const memberEntries = serializeAws_queryAvailabilityZones(input.AvailabilityZones, context);
12413
+ if (input.AvailabilityZones?.length === 0) {
12414
+ entries.AvailabilityZones = [];
12415
+ }
12065
12416
  Object.entries(memberEntries).forEach(([key, value]) => {
12066
12417
  const loc = `AvailabilityZones.${key}`;
12067
12418
  entries[loc] = value;
@@ -12093,6 +12444,9 @@ const serializeAws_queryRestoreDBClusterFromSnapshotMessage = (input, context) =
12093
12444
  }
12094
12445
  if (input.VpcSecurityGroupIds != null) {
12095
12446
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
12447
+ if (input.VpcSecurityGroupIds?.length === 0) {
12448
+ entries.VpcSecurityGroupIds = [];
12449
+ }
12096
12450
  Object.entries(memberEntries).forEach(([key, value]) => {
12097
12451
  const loc = `VpcSecurityGroupIds.${key}`;
12098
12452
  entries[loc] = value;
@@ -12100,6 +12454,9 @@ const serializeAws_queryRestoreDBClusterFromSnapshotMessage = (input, context) =
12100
12454
  }
12101
12455
  if (input.Tags != null) {
12102
12456
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
12457
+ if (input.Tags?.length === 0) {
12458
+ entries.Tags = [];
12459
+ }
12103
12460
  Object.entries(memberEntries).forEach(([key, value]) => {
12104
12461
  const loc = `Tags.${key}`;
12105
12462
  entries[loc] = value;
@@ -12116,6 +12473,9 @@ const serializeAws_queryRestoreDBClusterFromSnapshotMessage = (input, context) =
12116
12473
  }
12117
12474
  if (input.EnableCloudwatchLogsExports != null) {
12118
12475
  const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
12476
+ if (input.EnableCloudwatchLogsExports?.length === 0) {
12477
+ entries.EnableCloudwatchLogsExports = [];
12478
+ }
12119
12479
  Object.entries(memberEntries).forEach(([key, value]) => {
12120
12480
  const loc = `EnableCloudwatchLogsExports.${key}`;
12121
12481
  entries[loc] = value;
@@ -12198,6 +12558,9 @@ const serializeAws_queryRestoreDBClusterToPointInTimeMessage = (input, context)
12198
12558
  }
12199
12559
  if (input.VpcSecurityGroupIds != null) {
12200
12560
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
12561
+ if (input.VpcSecurityGroupIds?.length === 0) {
12562
+ entries.VpcSecurityGroupIds = [];
12563
+ }
12201
12564
  Object.entries(memberEntries).forEach(([key, value]) => {
12202
12565
  const loc = `VpcSecurityGroupIds.${key}`;
12203
12566
  entries[loc] = value;
@@ -12205,6 +12568,9 @@ const serializeAws_queryRestoreDBClusterToPointInTimeMessage = (input, context)
12205
12568
  }
12206
12569
  if (input.Tags != null) {
12207
12570
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
12571
+ if (input.Tags?.length === 0) {
12572
+ entries.Tags = [];
12573
+ }
12208
12574
  Object.entries(memberEntries).forEach(([key, value]) => {
12209
12575
  const loc = `Tags.${key}`;
12210
12576
  entries[loc] = value;
@@ -12221,6 +12587,9 @@ const serializeAws_queryRestoreDBClusterToPointInTimeMessage = (input, context)
12221
12587
  }
12222
12588
  if (input.EnableCloudwatchLogsExports != null) {
12223
12589
  const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
12590
+ if (input.EnableCloudwatchLogsExports?.length === 0) {
12591
+ entries.EnableCloudwatchLogsExports = [];
12592
+ }
12224
12593
  Object.entries(memberEntries).forEach(([key, value]) => {
12225
12594
  const loc = `EnableCloudwatchLogsExports.${key}`;
12226
12595
  entries[loc] = value;
@@ -12321,6 +12690,9 @@ const serializeAws_queryRestoreDBInstanceFromDBSnapshotMessage = (input, context
12321
12690
  }
12322
12691
  if (input.Tags != null) {
12323
12692
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
12693
+ if (input.Tags?.length === 0) {
12694
+ entries.Tags = [];
12695
+ }
12324
12696
  Object.entries(memberEntries).forEach(([key, value]) => {
12325
12697
  const loc = `Tags.${key}`;
12326
12698
  entries[loc] = value;
@@ -12337,6 +12709,9 @@ const serializeAws_queryRestoreDBInstanceFromDBSnapshotMessage = (input, context
12337
12709
  }
12338
12710
  if (input.VpcSecurityGroupIds != null) {
12339
12711
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
12712
+ if (input.VpcSecurityGroupIds?.length === 0) {
12713
+ entries.VpcSecurityGroupIds = [];
12714
+ }
12340
12715
  Object.entries(memberEntries).forEach(([key, value]) => {
12341
12716
  const loc = `VpcSecurityGroupIds.${key}`;
12342
12717
  entries[loc] = value;
@@ -12356,6 +12731,9 @@ const serializeAws_queryRestoreDBInstanceFromDBSnapshotMessage = (input, context
12356
12731
  }
12357
12732
  if (input.EnableCloudwatchLogsExports != null) {
12358
12733
  const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
12734
+ if (input.EnableCloudwatchLogsExports?.length === 0) {
12735
+ entries.EnableCloudwatchLogsExports = [];
12736
+ }
12359
12737
  Object.entries(memberEntries).forEach(([key, value]) => {
12360
12738
  const loc = `EnableCloudwatchLogsExports.${key}`;
12361
12739
  entries[loc] = value;
@@ -12363,6 +12741,9 @@ const serializeAws_queryRestoreDBInstanceFromDBSnapshotMessage = (input, context
12363
12741
  }
12364
12742
  if (input.ProcessorFeatures != null) {
12365
12743
  const memberEntries = serializeAws_queryProcessorFeatureList(input.ProcessorFeatures, context);
12744
+ if (input.ProcessorFeatures?.length === 0) {
12745
+ entries.ProcessorFeatures = [];
12746
+ }
12366
12747
  Object.entries(memberEntries).forEach(([key, value]) => {
12367
12748
  const loc = `ProcessorFeatures.${key}`;
12368
12749
  entries[loc] = value;
@@ -12419,6 +12800,9 @@ const serializeAws_queryRestoreDBInstanceFromS3Message = (input, context) => {
12419
12800
  }
12420
12801
  if (input.DBSecurityGroups != null) {
12421
12802
  const memberEntries = serializeAws_queryDBSecurityGroupNameList(input.DBSecurityGroups, context);
12803
+ if (input.DBSecurityGroups?.length === 0) {
12804
+ entries.DBSecurityGroups = [];
12805
+ }
12422
12806
  Object.entries(memberEntries).forEach(([key, value]) => {
12423
12807
  const loc = `DBSecurityGroups.${key}`;
12424
12808
  entries[loc] = value;
@@ -12426,6 +12810,9 @@ const serializeAws_queryRestoreDBInstanceFromS3Message = (input, context) => {
12426
12810
  }
12427
12811
  if (input.VpcSecurityGroupIds != null) {
12428
12812
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
12813
+ if (input.VpcSecurityGroupIds?.length === 0) {
12814
+ entries.VpcSecurityGroupIds = [];
12815
+ }
12429
12816
  Object.entries(memberEntries).forEach(([key, value]) => {
12430
12817
  const loc = `VpcSecurityGroupIds.${key}`;
12431
12818
  entries[loc] = value;
@@ -12475,6 +12862,9 @@ const serializeAws_queryRestoreDBInstanceFromS3Message = (input, context) => {
12475
12862
  }
12476
12863
  if (input.Tags != null) {
12477
12864
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
12865
+ if (input.Tags?.length === 0) {
12866
+ entries.Tags = [];
12867
+ }
12478
12868
  Object.entries(memberEntries).forEach(([key, value]) => {
12479
12869
  const loc = `Tags.${key}`;
12480
12870
  entries[loc] = value;
@@ -12527,6 +12917,9 @@ const serializeAws_queryRestoreDBInstanceFromS3Message = (input, context) => {
12527
12917
  }
12528
12918
  if (input.EnableCloudwatchLogsExports != null) {
12529
12919
  const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
12920
+ if (input.EnableCloudwatchLogsExports?.length === 0) {
12921
+ entries.EnableCloudwatchLogsExports = [];
12922
+ }
12530
12923
  Object.entries(memberEntries).forEach(([key, value]) => {
12531
12924
  const loc = `EnableCloudwatchLogsExports.${key}`;
12532
12925
  entries[loc] = value;
@@ -12534,6 +12927,9 @@ const serializeAws_queryRestoreDBInstanceFromS3Message = (input, context) => {
12534
12927
  }
12535
12928
  if (input.ProcessorFeatures != null) {
12536
12929
  const memberEntries = serializeAws_queryProcessorFeatureList(input.ProcessorFeatures, context);
12930
+ if (input.ProcessorFeatures?.length === 0) {
12931
+ entries.ProcessorFeatures = [];
12932
+ }
12537
12933
  Object.entries(memberEntries).forEach(([key, value]) => {
12538
12934
  const loc = `ProcessorFeatures.${key}`;
12539
12935
  entries[loc] = value;
@@ -12611,6 +13007,9 @@ const serializeAws_queryRestoreDBInstanceToPointInTimeMessage = (input, context)
12611
13007
  }
12612
13008
  if (input.Tags != null) {
12613
13009
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
13010
+ if (input.Tags?.length === 0) {
13011
+ entries.Tags = [];
13012
+ }
12614
13013
  Object.entries(memberEntries).forEach(([key, value]) => {
12615
13014
  const loc = `Tags.${key}`;
12616
13015
  entries[loc] = value;
@@ -12627,6 +13026,9 @@ const serializeAws_queryRestoreDBInstanceToPointInTimeMessage = (input, context)
12627
13026
  }
12628
13027
  if (input.VpcSecurityGroupIds != null) {
12629
13028
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
13029
+ if (input.VpcSecurityGroupIds?.length === 0) {
13030
+ entries.VpcSecurityGroupIds = [];
13031
+ }
12630
13032
  Object.entries(memberEntries).forEach(([key, value]) => {
12631
13033
  const loc = `VpcSecurityGroupIds.${key}`;
12632
13034
  entries[loc] = value;
@@ -12643,6 +13045,9 @@ const serializeAws_queryRestoreDBInstanceToPointInTimeMessage = (input, context)
12643
13045
  }
12644
13046
  if (input.EnableCloudwatchLogsExports != null) {
12645
13047
  const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
13048
+ if (input.EnableCloudwatchLogsExports?.length === 0) {
13049
+ entries.EnableCloudwatchLogsExports = [];
13050
+ }
12646
13051
  Object.entries(memberEntries).forEach(([key, value]) => {
12647
13052
  const loc = `EnableCloudwatchLogsExports.${key}`;
12648
13053
  entries[loc] = value;
@@ -12650,6 +13055,9 @@ const serializeAws_queryRestoreDBInstanceToPointInTimeMessage = (input, context)
12650
13055
  }
12651
13056
  if (input.ProcessorFeatures != null) {
12652
13057
  const memberEntries = serializeAws_queryProcessorFeatureList(input.ProcessorFeatures, context);
13058
+ if (input.ProcessorFeatures?.length === 0) {
13059
+ entries.ProcessorFeatures = [];
13060
+ }
12653
13061
  Object.entries(memberEntries).forEach(([key, value]) => {
12654
13062
  const loc = `ProcessorFeatures.${key}`;
12655
13063
  entries[loc] = value;
@@ -12824,6 +13232,9 @@ const serializeAws_queryStartExportTaskMessage = (input, context) => {
12824
13232
  }
12825
13233
  if (input.ExportOnly != null) {
12826
13234
  const memberEntries = serializeAws_queryStringList(input.ExportOnly, context);
13235
+ if (input.ExportOnly?.length === 0) {
13236
+ entries.ExportOnly = [];
13237
+ }
12827
13238
  Object.entries(memberEntries).forEach(([key, value]) => {
12828
13239
  const loc = `ExportOnly.${key}`;
12829
13240
  entries[loc] = value;