@aws-sdk/client-rds 3.200.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.
@@ -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;
@@ -9403,6 +9475,9 @@ const serializeAws_queryCreateDBInstanceMessage = (input, context) => {
9403
9475
  if (input.NetworkType != null) {
9404
9476
  entries["NetworkType"] = input.NetworkType;
9405
9477
  }
9478
+ if (input.StorageThroughput != null) {
9479
+ entries["StorageThroughput"] = input.StorageThroughput;
9480
+ }
9406
9481
  return entries;
9407
9482
  };
9408
9483
  const serializeAws_queryCreateDBInstanceReadReplicaMessage = (input, context) => {
@@ -9442,6 +9517,9 @@ const serializeAws_queryCreateDBInstanceReadReplicaMessage = (input, context) =>
9442
9517
  }
9443
9518
  if (input.Tags != null) {
9444
9519
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9520
+ if (input.Tags?.length === 0) {
9521
+ entries.Tags = [];
9522
+ }
9445
9523
  Object.entries(memberEntries).forEach(([key, value]) => {
9446
9524
  const loc = `Tags.${key}`;
9447
9525
  entries[loc] = value;
@@ -9452,6 +9530,9 @@ const serializeAws_queryCreateDBInstanceReadReplicaMessage = (input, context) =>
9452
9530
  }
9453
9531
  if (input.VpcSecurityGroupIds != null) {
9454
9532
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
9533
+ if (input.VpcSecurityGroupIds?.length === 0) {
9534
+ entries.VpcSecurityGroupIds = [];
9535
+ }
9455
9536
  Object.entries(memberEntries).forEach(([key, value]) => {
9456
9537
  const loc = `VpcSecurityGroupIds.${key}`;
9457
9538
  entries[loc] = value;
@@ -9489,6 +9570,9 @@ const serializeAws_queryCreateDBInstanceReadReplicaMessage = (input, context) =>
9489
9570
  }
9490
9571
  if (input.EnableCloudwatchLogsExports != null) {
9491
9572
  const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
9573
+ if (input.EnableCloudwatchLogsExports?.length === 0) {
9574
+ entries.EnableCloudwatchLogsExports = [];
9575
+ }
9492
9576
  Object.entries(memberEntries).forEach(([key, value]) => {
9493
9577
  const loc = `EnableCloudwatchLogsExports.${key}`;
9494
9578
  entries[loc] = value;
@@ -9496,6 +9580,9 @@ const serializeAws_queryCreateDBInstanceReadReplicaMessage = (input, context) =>
9496
9580
  }
9497
9581
  if (input.ProcessorFeatures != null) {
9498
9582
  const memberEntries = serializeAws_queryProcessorFeatureList(input.ProcessorFeatures, context);
9583
+ if (input.ProcessorFeatures?.length === 0) {
9584
+ entries.ProcessorFeatures = [];
9585
+ }
9499
9586
  Object.entries(memberEntries).forEach(([key, value]) => {
9500
9587
  const loc = `ProcessorFeatures.${key}`;
9501
9588
  entries[loc] = value;
@@ -9525,6 +9612,9 @@ const serializeAws_queryCreateDBInstanceReadReplicaMessage = (input, context) =>
9525
9612
  if (input.NetworkType != null) {
9526
9613
  entries["NetworkType"] = input.NetworkType;
9527
9614
  }
9615
+ if (input.StorageThroughput != null) {
9616
+ entries["StorageThroughput"] = input.StorageThroughput;
9617
+ }
9528
9618
  return entries;
9529
9619
  };
9530
9620
  const serializeAws_queryCreateDBParameterGroupMessage = (input, context) => {
@@ -9540,6 +9630,9 @@ const serializeAws_queryCreateDBParameterGroupMessage = (input, context) => {
9540
9630
  }
9541
9631
  if (input.Tags != null) {
9542
9632
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9633
+ if (input.Tags?.length === 0) {
9634
+ entries.Tags = [];
9635
+ }
9543
9636
  Object.entries(memberEntries).forEach(([key, value]) => {
9544
9637
  const loc = `Tags.${key}`;
9545
9638
  entries[loc] = value;
@@ -9557,6 +9650,9 @@ const serializeAws_queryCreateDBProxyEndpointRequest = (input, context) => {
9557
9650
  }
9558
9651
  if (input.VpcSubnetIds != null) {
9559
9652
  const memberEntries = serializeAws_queryStringList(input.VpcSubnetIds, context);
9653
+ if (input.VpcSubnetIds?.length === 0) {
9654
+ entries.VpcSubnetIds = [];
9655
+ }
9560
9656
  Object.entries(memberEntries).forEach(([key, value]) => {
9561
9657
  const loc = `VpcSubnetIds.${key}`;
9562
9658
  entries[loc] = value;
@@ -9564,6 +9660,9 @@ const serializeAws_queryCreateDBProxyEndpointRequest = (input, context) => {
9564
9660
  }
9565
9661
  if (input.VpcSecurityGroupIds != null) {
9566
9662
  const memberEntries = serializeAws_queryStringList(input.VpcSecurityGroupIds, context);
9663
+ if (input.VpcSecurityGroupIds?.length === 0) {
9664
+ entries.VpcSecurityGroupIds = [];
9665
+ }
9567
9666
  Object.entries(memberEntries).forEach(([key, value]) => {
9568
9667
  const loc = `VpcSecurityGroupIds.${key}`;
9569
9668
  entries[loc] = value;
@@ -9574,6 +9673,9 @@ const serializeAws_queryCreateDBProxyEndpointRequest = (input, context) => {
9574
9673
  }
9575
9674
  if (input.Tags != null) {
9576
9675
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9676
+ if (input.Tags?.length === 0) {
9677
+ entries.Tags = [];
9678
+ }
9577
9679
  Object.entries(memberEntries).forEach(([key, value]) => {
9578
9680
  const loc = `Tags.${key}`;
9579
9681
  entries[loc] = value;
@@ -9591,6 +9693,9 @@ const serializeAws_queryCreateDBProxyRequest = (input, context) => {
9591
9693
  }
9592
9694
  if (input.Auth != null) {
9593
9695
  const memberEntries = serializeAws_queryUserAuthConfigList(input.Auth, context);
9696
+ if (input.Auth?.length === 0) {
9697
+ entries.Auth = [];
9698
+ }
9594
9699
  Object.entries(memberEntries).forEach(([key, value]) => {
9595
9700
  const loc = `Auth.${key}`;
9596
9701
  entries[loc] = value;
@@ -9601,6 +9706,9 @@ const serializeAws_queryCreateDBProxyRequest = (input, context) => {
9601
9706
  }
9602
9707
  if (input.VpcSubnetIds != null) {
9603
9708
  const memberEntries = serializeAws_queryStringList(input.VpcSubnetIds, context);
9709
+ if (input.VpcSubnetIds?.length === 0) {
9710
+ entries.VpcSubnetIds = [];
9711
+ }
9604
9712
  Object.entries(memberEntries).forEach(([key, value]) => {
9605
9713
  const loc = `VpcSubnetIds.${key}`;
9606
9714
  entries[loc] = value;
@@ -9608,6 +9716,9 @@ const serializeAws_queryCreateDBProxyRequest = (input, context) => {
9608
9716
  }
9609
9717
  if (input.VpcSecurityGroupIds != null) {
9610
9718
  const memberEntries = serializeAws_queryStringList(input.VpcSecurityGroupIds, context);
9719
+ if (input.VpcSecurityGroupIds?.length === 0) {
9720
+ entries.VpcSecurityGroupIds = [];
9721
+ }
9611
9722
  Object.entries(memberEntries).forEach(([key, value]) => {
9612
9723
  const loc = `VpcSecurityGroupIds.${key}`;
9613
9724
  entries[loc] = value;
@@ -9624,6 +9735,9 @@ const serializeAws_queryCreateDBProxyRequest = (input, context) => {
9624
9735
  }
9625
9736
  if (input.Tags != null) {
9626
9737
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9738
+ if (input.Tags?.length === 0) {
9739
+ entries.Tags = [];
9740
+ }
9627
9741
  Object.entries(memberEntries).forEach(([key, value]) => {
9628
9742
  const loc = `Tags.${key}`;
9629
9743
  entries[loc] = value;
@@ -9641,6 +9755,9 @@ const serializeAws_queryCreateDBSecurityGroupMessage = (input, context) => {
9641
9755
  }
9642
9756
  if (input.Tags != null) {
9643
9757
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9758
+ if (input.Tags?.length === 0) {
9759
+ entries.Tags = [];
9760
+ }
9644
9761
  Object.entries(memberEntries).forEach(([key, value]) => {
9645
9762
  const loc = `Tags.${key}`;
9646
9763
  entries[loc] = value;
@@ -9658,6 +9775,9 @@ const serializeAws_queryCreateDBSnapshotMessage = (input, context) => {
9658
9775
  }
9659
9776
  if (input.Tags != null) {
9660
9777
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9778
+ if (input.Tags?.length === 0) {
9779
+ entries.Tags = [];
9780
+ }
9661
9781
  Object.entries(memberEntries).forEach(([key, value]) => {
9662
9782
  const loc = `Tags.${key}`;
9663
9783
  entries[loc] = value;
@@ -9675,6 +9795,9 @@ const serializeAws_queryCreateDBSubnetGroupMessage = (input, context) => {
9675
9795
  }
9676
9796
  if (input.SubnetIds != null) {
9677
9797
  const memberEntries = serializeAws_querySubnetIdentifierList(input.SubnetIds, context);
9798
+ if (input.SubnetIds?.length === 0) {
9799
+ entries.SubnetIds = [];
9800
+ }
9678
9801
  Object.entries(memberEntries).forEach(([key, value]) => {
9679
9802
  const loc = `SubnetIds.${key}`;
9680
9803
  entries[loc] = value;
@@ -9682,6 +9805,9 @@ const serializeAws_queryCreateDBSubnetGroupMessage = (input, context) => {
9682
9805
  }
9683
9806
  if (input.Tags != null) {
9684
9807
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9808
+ if (input.Tags?.length === 0) {
9809
+ entries.Tags = [];
9810
+ }
9685
9811
  Object.entries(memberEntries).forEach(([key, value]) => {
9686
9812
  const loc = `Tags.${key}`;
9687
9813
  entries[loc] = value;
@@ -9702,6 +9828,9 @@ const serializeAws_queryCreateEventSubscriptionMessage = (input, context) => {
9702
9828
  }
9703
9829
  if (input.EventCategories != null) {
9704
9830
  const memberEntries = serializeAws_queryEventCategoriesList(input.EventCategories, context);
9831
+ if (input.EventCategories?.length === 0) {
9832
+ entries.EventCategories = [];
9833
+ }
9705
9834
  Object.entries(memberEntries).forEach(([key, value]) => {
9706
9835
  const loc = `EventCategories.${key}`;
9707
9836
  entries[loc] = value;
@@ -9709,6 +9838,9 @@ const serializeAws_queryCreateEventSubscriptionMessage = (input, context) => {
9709
9838
  }
9710
9839
  if (input.SourceIds != null) {
9711
9840
  const memberEntries = serializeAws_querySourceIdsList(input.SourceIds, context);
9841
+ if (input.SourceIds?.length === 0) {
9842
+ entries.SourceIds = [];
9843
+ }
9712
9844
  Object.entries(memberEntries).forEach(([key, value]) => {
9713
9845
  const loc = `SourceIds.${key}`;
9714
9846
  entries[loc] = value;
@@ -9719,6 +9851,9 @@ const serializeAws_queryCreateEventSubscriptionMessage = (input, context) => {
9719
9851
  }
9720
9852
  if (input.Tags != null) {
9721
9853
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9854
+ if (input.Tags?.length === 0) {
9855
+ entries.Tags = [];
9856
+ }
9722
9857
  Object.entries(memberEntries).forEach(([key, value]) => {
9723
9858
  const loc = `Tags.${key}`;
9724
9859
  entries[loc] = value;
@@ -9767,6 +9902,9 @@ const serializeAws_queryCreateOptionGroupMessage = (input, context) => {
9767
9902
  }
9768
9903
  if (input.Tags != null) {
9769
9904
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9905
+ if (input.Tags?.length === 0) {
9906
+ entries.Tags = [];
9907
+ }
9770
9908
  Object.entries(memberEntries).forEach(([key, value]) => {
9771
9909
  const loc = `Tags.${key}`;
9772
9910
  entries[loc] = value;
@@ -9929,6 +10067,9 @@ const serializeAws_queryDeregisterDBProxyTargetsRequest = (input, context) => {
9929
10067
  }
9930
10068
  if (input.DBInstanceIdentifiers != null) {
9931
10069
  const memberEntries = serializeAws_queryStringList(input.DBInstanceIdentifiers, context);
10070
+ if (input.DBInstanceIdentifiers?.length === 0) {
10071
+ entries.DBInstanceIdentifiers = [];
10072
+ }
9932
10073
  Object.entries(memberEntries).forEach(([key, value]) => {
9933
10074
  const loc = `DBInstanceIdentifiers.${key}`;
9934
10075
  entries[loc] = value;
@@ -9936,6 +10077,9 @@ const serializeAws_queryDeregisterDBProxyTargetsRequest = (input, context) => {
9936
10077
  }
9937
10078
  if (input.DBClusterIdentifiers != null) {
9938
10079
  const memberEntries = serializeAws_queryStringList(input.DBClusterIdentifiers, context);
10080
+ if (input.DBClusterIdentifiers?.length === 0) {
10081
+ entries.DBClusterIdentifiers = [];
10082
+ }
9939
10083
  Object.entries(memberEntries).forEach(([key, value]) => {
9940
10084
  const loc = `DBClusterIdentifiers.${key}`;
9941
10085
  entries[loc] = value;
@@ -9954,6 +10098,9 @@ const serializeAws_queryDescribeCertificatesMessage = (input, context) => {
9954
10098
  }
9955
10099
  if (input.Filters != null) {
9956
10100
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10101
+ if (input.Filters?.length === 0) {
10102
+ entries.Filters = [];
10103
+ }
9957
10104
  Object.entries(memberEntries).forEach(([key, value]) => {
9958
10105
  const loc = `Filters.${key}`;
9959
10106
  entries[loc] = value;
@@ -9977,6 +10124,9 @@ const serializeAws_queryDescribeDBClusterBacktracksMessage = (input, context) =>
9977
10124
  }
9978
10125
  if (input.Filters != null) {
9979
10126
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10127
+ if (input.Filters?.length === 0) {
10128
+ entries.Filters = [];
10129
+ }
9980
10130
  Object.entries(memberEntries).forEach(([key, value]) => {
9981
10131
  const loc = `Filters.${key}`;
9982
10132
  entries[loc] = value;
@@ -10000,6 +10150,9 @@ const serializeAws_queryDescribeDBClusterEndpointsMessage = (input, context) =>
10000
10150
  }
10001
10151
  if (input.Filters != null) {
10002
10152
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10153
+ if (input.Filters?.length === 0) {
10154
+ entries.Filters = [];
10155
+ }
10003
10156
  Object.entries(memberEntries).forEach(([key, value]) => {
10004
10157
  const loc = `Filters.${key}`;
10005
10158
  entries[loc] = value;
@@ -10020,6 +10173,9 @@ const serializeAws_queryDescribeDBClusterParameterGroupsMessage = (input, contex
10020
10173
  }
10021
10174
  if (input.Filters != null) {
10022
10175
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10176
+ if (input.Filters?.length === 0) {
10177
+ entries.Filters = [];
10178
+ }
10023
10179
  Object.entries(memberEntries).forEach(([key, value]) => {
10024
10180
  const loc = `Filters.${key}`;
10025
10181
  entries[loc] = value;
@@ -10043,6 +10199,9 @@ const serializeAws_queryDescribeDBClusterParametersMessage = (input, context) =>
10043
10199
  }
10044
10200
  if (input.Filters != null) {
10045
10201
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10202
+ if (input.Filters?.length === 0) {
10203
+ entries.Filters = [];
10204
+ }
10046
10205
  Object.entries(memberEntries).forEach(([key, value]) => {
10047
10206
  const loc = `Filters.${key}`;
10048
10207
  entries[loc] = value;
@@ -10063,6 +10222,9 @@ const serializeAws_queryDescribeDBClustersMessage = (input, context) => {
10063
10222
  }
10064
10223
  if (input.Filters != null) {
10065
10224
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10225
+ if (input.Filters?.length === 0) {
10226
+ entries.Filters = [];
10227
+ }
10066
10228
  Object.entries(memberEntries).forEach(([key, value]) => {
10067
10229
  const loc = `Filters.${key}`;
10068
10230
  entries[loc] = value;
@@ -10099,6 +10261,9 @@ const serializeAws_queryDescribeDBClusterSnapshotsMessage = (input, context) =>
10099
10261
  }
10100
10262
  if (input.Filters != null) {
10101
10263
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10264
+ if (input.Filters?.length === 0) {
10265
+ entries.Filters = [];
10266
+ }
10102
10267
  Object.entries(memberEntries).forEach(([key, value]) => {
10103
10268
  const loc = `Filters.${key}`;
10104
10269
  entries[loc] = value;
@@ -10131,6 +10296,9 @@ const serializeAws_queryDescribeDBEngineVersionsMessage = (input, context) => {
10131
10296
  }
10132
10297
  if (input.Filters != null) {
10133
10298
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10299
+ if (input.Filters?.length === 0) {
10300
+ entries.Filters = [];
10301
+ }
10134
10302
  Object.entries(memberEntries).forEach(([key, value]) => {
10135
10303
  const loc = `Filters.${key}`;
10136
10304
  entries[loc] = value;
@@ -10166,6 +10334,9 @@ const serializeAws_queryDescribeDBInstanceAutomatedBackupsMessage = (input, cont
10166
10334
  }
10167
10335
  if (input.Filters != null) {
10168
10336
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10337
+ if (input.Filters?.length === 0) {
10338
+ entries.Filters = [];
10339
+ }
10169
10340
  Object.entries(memberEntries).forEach(([key, value]) => {
10170
10341
  const loc = `Filters.${key}`;
10171
10342
  entries[loc] = value;
@@ -10189,6 +10360,9 @@ const serializeAws_queryDescribeDBInstancesMessage = (input, context) => {
10189
10360
  }
10190
10361
  if (input.Filters != null) {
10191
10362
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10363
+ if (input.Filters?.length === 0) {
10364
+ entries.Filters = [];
10365
+ }
10192
10366
  Object.entries(memberEntries).forEach(([key, value]) => {
10193
10367
  const loc = `Filters.${key}`;
10194
10368
  entries[loc] = value;
@@ -10218,6 +10392,9 @@ const serializeAws_queryDescribeDBLogFilesMessage = (input, context) => {
10218
10392
  }
10219
10393
  if (input.Filters != null) {
10220
10394
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10395
+ if (input.Filters?.length === 0) {
10396
+ entries.Filters = [];
10397
+ }
10221
10398
  Object.entries(memberEntries).forEach(([key, value]) => {
10222
10399
  const loc = `Filters.${key}`;
10223
10400
  entries[loc] = value;
@@ -10238,6 +10415,9 @@ const serializeAws_queryDescribeDBParameterGroupsMessage = (input, context) => {
10238
10415
  }
10239
10416
  if (input.Filters != null) {
10240
10417
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10418
+ if (input.Filters?.length === 0) {
10419
+ entries.Filters = [];
10420
+ }
10241
10421
  Object.entries(memberEntries).forEach(([key, value]) => {
10242
10422
  const loc = `Filters.${key}`;
10243
10423
  entries[loc] = value;
@@ -10261,6 +10441,9 @@ const serializeAws_queryDescribeDBParametersMessage = (input, context) => {
10261
10441
  }
10262
10442
  if (input.Filters != null) {
10263
10443
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10444
+ if (input.Filters?.length === 0) {
10445
+ entries.Filters = [];
10446
+ }
10264
10447
  Object.entries(memberEntries).forEach(([key, value]) => {
10265
10448
  const loc = `Filters.${key}`;
10266
10449
  entries[loc] = value;
@@ -10281,6 +10464,9 @@ const serializeAws_queryDescribeDBProxiesRequest = (input, context) => {
10281
10464
  }
10282
10465
  if (input.Filters != null) {
10283
10466
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10467
+ if (input.Filters?.length === 0) {
10468
+ entries.Filters = [];
10469
+ }
10284
10470
  Object.entries(memberEntries).forEach(([key, value]) => {
10285
10471
  const loc = `Filters.${key}`;
10286
10472
  entries[loc] = value;
@@ -10304,6 +10490,9 @@ const serializeAws_queryDescribeDBProxyEndpointsRequest = (input, context) => {
10304
10490
  }
10305
10491
  if (input.Filters != null) {
10306
10492
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10493
+ if (input.Filters?.length === 0) {
10494
+ entries.Filters = [];
10495
+ }
10307
10496
  Object.entries(memberEntries).forEach(([key, value]) => {
10308
10497
  const loc = `Filters.${key}`;
10309
10498
  entries[loc] = value;
@@ -10327,6 +10516,9 @@ const serializeAws_queryDescribeDBProxyTargetGroupsRequest = (input, context) =>
10327
10516
  }
10328
10517
  if (input.Filters != null) {
10329
10518
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10519
+ if (input.Filters?.length === 0) {
10520
+ entries.Filters = [];
10521
+ }
10330
10522
  Object.entries(memberEntries).forEach(([key, value]) => {
10331
10523
  const loc = `Filters.${key}`;
10332
10524
  entries[loc] = value;
@@ -10350,6 +10542,9 @@ const serializeAws_queryDescribeDBProxyTargetsRequest = (input, context) => {
10350
10542
  }
10351
10543
  if (input.Filters != null) {
10352
10544
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10545
+ if (input.Filters?.length === 0) {
10546
+ entries.Filters = [];
10547
+ }
10353
10548
  Object.entries(memberEntries).forEach(([key, value]) => {
10354
10549
  const loc = `Filters.${key}`;
10355
10550
  entries[loc] = value;
@@ -10370,6 +10565,9 @@ const serializeAws_queryDescribeDBSecurityGroupsMessage = (input, context) => {
10370
10565
  }
10371
10566
  if (input.Filters != null) {
10372
10567
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10568
+ if (input.Filters?.length === 0) {
10569
+ entries.Filters = [];
10570
+ }
10373
10571
  Object.entries(memberEntries).forEach(([key, value]) => {
10374
10572
  const loc = `Filters.${key}`;
10375
10573
  entries[loc] = value;
@@ -10403,6 +10601,9 @@ const serializeAws_queryDescribeDBSnapshotsMessage = (input, context) => {
10403
10601
  }
10404
10602
  if (input.Filters != null) {
10405
10603
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10604
+ if (input.Filters?.length === 0) {
10605
+ entries.Filters = [];
10606
+ }
10406
10607
  Object.entries(memberEntries).forEach(([key, value]) => {
10407
10608
  const loc = `Filters.${key}`;
10408
10609
  entries[loc] = value;
@@ -10432,6 +10633,9 @@ const serializeAws_queryDescribeDBSubnetGroupsMessage = (input, context) => {
10432
10633
  }
10433
10634
  if (input.Filters != null) {
10434
10635
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10636
+ if (input.Filters?.length === 0) {
10637
+ entries.Filters = [];
10638
+ }
10435
10639
  Object.entries(memberEntries).forEach(([key, value]) => {
10436
10640
  const loc = `Filters.${key}`;
10437
10641
  entries[loc] = value;
@@ -10452,6 +10656,9 @@ const serializeAws_queryDescribeEngineDefaultClusterParametersMessage = (input,
10452
10656
  }
10453
10657
  if (input.Filters != null) {
10454
10658
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10659
+ if (input.Filters?.length === 0) {
10660
+ entries.Filters = [];
10661
+ }
10455
10662
  Object.entries(memberEntries).forEach(([key, value]) => {
10456
10663
  const loc = `Filters.${key}`;
10457
10664
  entries[loc] = value;
@@ -10472,6 +10679,9 @@ const serializeAws_queryDescribeEngineDefaultParametersMessage = (input, context
10472
10679
  }
10473
10680
  if (input.Filters != null) {
10474
10681
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10682
+ if (input.Filters?.length === 0) {
10683
+ entries.Filters = [];
10684
+ }
10475
10685
  Object.entries(memberEntries).forEach(([key, value]) => {
10476
10686
  const loc = `Filters.${key}`;
10477
10687
  entries[loc] = value;
@@ -10492,6 +10702,9 @@ const serializeAws_queryDescribeEventCategoriesMessage = (input, context) => {
10492
10702
  }
10493
10703
  if (input.Filters != null) {
10494
10704
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10705
+ if (input.Filters?.length === 0) {
10706
+ entries.Filters = [];
10707
+ }
10495
10708
  Object.entries(memberEntries).forEach(([key, value]) => {
10496
10709
  const loc = `Filters.${key}`;
10497
10710
  entries[loc] = value;
@@ -10518,6 +10731,9 @@ const serializeAws_queryDescribeEventsMessage = (input, context) => {
10518
10731
  }
10519
10732
  if (input.EventCategories != null) {
10520
10733
  const memberEntries = serializeAws_queryEventCategoriesList(input.EventCategories, context);
10734
+ if (input.EventCategories?.length === 0) {
10735
+ entries.EventCategories = [];
10736
+ }
10521
10737
  Object.entries(memberEntries).forEach(([key, value]) => {
10522
10738
  const loc = `EventCategories.${key}`;
10523
10739
  entries[loc] = value;
@@ -10525,6 +10741,9 @@ const serializeAws_queryDescribeEventsMessage = (input, context) => {
10525
10741
  }
10526
10742
  if (input.Filters != null) {
10527
10743
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10744
+ if (input.Filters?.length === 0) {
10745
+ entries.Filters = [];
10746
+ }
10528
10747
  Object.entries(memberEntries).forEach(([key, value]) => {
10529
10748
  const loc = `Filters.${key}`;
10530
10749
  entries[loc] = value;
@@ -10545,6 +10764,9 @@ const serializeAws_queryDescribeEventSubscriptionsMessage = (input, context) =>
10545
10764
  }
10546
10765
  if (input.Filters != null) {
10547
10766
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10767
+ if (input.Filters?.length === 0) {
10768
+ entries.Filters = [];
10769
+ }
10548
10770
  Object.entries(memberEntries).forEach(([key, value]) => {
10549
10771
  const loc = `Filters.${key}`;
10550
10772
  entries[loc] = value;
@@ -10568,6 +10790,9 @@ const serializeAws_queryDescribeExportTasksMessage = (input, context) => {
10568
10790
  }
10569
10791
  if (input.Filters != null) {
10570
10792
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10793
+ if (input.Filters?.length === 0) {
10794
+ entries.Filters = [];
10795
+ }
10571
10796
  Object.entries(memberEntries).forEach(([key, value]) => {
10572
10797
  const loc = `Filters.${key}`;
10573
10798
  entries[loc] = value;
@@ -10591,6 +10816,9 @@ const serializeAws_queryDescribeGlobalClustersMessage = (input, context) => {
10591
10816
  }
10592
10817
  if (input.Filters != null) {
10593
10818
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10819
+ if (input.Filters?.length === 0) {
10820
+ entries.Filters = [];
10821
+ }
10594
10822
  Object.entries(memberEntries).forEach(([key, value]) => {
10595
10823
  const loc = `Filters.${key}`;
10596
10824
  entries[loc] = value;
@@ -10614,6 +10842,9 @@ const serializeAws_queryDescribeOptionGroupOptionsMessage = (input, context) =>
10614
10842
  }
10615
10843
  if (input.Filters != null) {
10616
10844
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10845
+ if (input.Filters?.length === 0) {
10846
+ entries.Filters = [];
10847
+ }
10617
10848
  Object.entries(memberEntries).forEach(([key, value]) => {
10618
10849
  const loc = `Filters.${key}`;
10619
10850
  entries[loc] = value;
@@ -10634,6 +10865,9 @@ const serializeAws_queryDescribeOptionGroupsMessage = (input, context) => {
10634
10865
  }
10635
10866
  if (input.Filters != null) {
10636
10867
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10868
+ if (input.Filters?.length === 0) {
10869
+ entries.Filters = [];
10870
+ }
10637
10871
  Object.entries(memberEntries).forEach(([key, value]) => {
10638
10872
  const loc = `Filters.${key}`;
10639
10873
  entries[loc] = value;
@@ -10675,6 +10909,9 @@ const serializeAws_queryDescribeOrderableDBInstanceOptionsMessage = (input, cont
10675
10909
  }
10676
10910
  if (input.Filters != null) {
10677
10911
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10912
+ if (input.Filters?.length === 0) {
10913
+ entries.Filters = [];
10914
+ }
10678
10915
  Object.entries(memberEntries).forEach(([key, value]) => {
10679
10916
  const loc = `Filters.${key}`;
10680
10917
  entries[loc] = value;
@@ -10695,6 +10932,9 @@ const serializeAws_queryDescribePendingMaintenanceActionsMessage = (input, conte
10695
10932
  }
10696
10933
  if (input.Filters != null) {
10697
10934
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10935
+ if (input.Filters?.length === 0) {
10936
+ entries.Filters = [];
10937
+ }
10698
10938
  Object.entries(memberEntries).forEach(([key, value]) => {
10699
10939
  const loc = `Filters.${key}`;
10700
10940
  entries[loc] = value;
@@ -10736,6 +10976,9 @@ const serializeAws_queryDescribeReservedDBInstancesMessage = (input, context) =>
10736
10976
  }
10737
10977
  if (input.Filters != null) {
10738
10978
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10979
+ if (input.Filters?.length === 0) {
10980
+ entries.Filters = [];
10981
+ }
10739
10982
  Object.entries(memberEntries).forEach(([key, value]) => {
10740
10983
  const loc = `Filters.${key}`;
10741
10984
  entries[loc] = value;
@@ -10771,6 +11014,9 @@ const serializeAws_queryDescribeReservedDBInstancesOfferingsMessage = (input, co
10771
11014
  }
10772
11015
  if (input.Filters != null) {
10773
11016
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
11017
+ if (input.Filters?.length === 0) {
11018
+ entries.Filters = [];
11019
+ }
10774
11020
  Object.entries(memberEntries).forEach(([key, value]) => {
10775
11021
  const loc = `Filters.${key}`;
10776
11022
  entries[loc] = value;
@@ -10797,6 +11043,9 @@ const serializeAws_queryDescribeSourceRegionsMessage = (input, context) => {
10797
11043
  }
10798
11044
  if (input.Filters != null) {
10799
11045
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
11046
+ if (input.Filters?.length === 0) {
11047
+ entries.Filters = [];
11048
+ }
10800
11049
  Object.entries(memberEntries).forEach(([key, value]) => {
10801
11050
  const loc = `Filters.${key}`;
10802
11051
  entries[loc] = value;
@@ -10878,6 +11127,9 @@ const serializeAws_queryFilter = (input, context) => {
10878
11127
  }
10879
11128
  if (input.Values != null) {
10880
11129
  const memberEntries = serializeAws_queryFilterValueList(input.Values, context);
11130
+ if (input.Values?.length === 0) {
11131
+ entries.Values = [];
11132
+ }
10881
11133
  Object.entries(memberEntries).forEach(([key, value]) => {
10882
11134
  const loc = `Values.${key}`;
10883
11135
  entries[loc] = value;
@@ -10931,6 +11183,9 @@ const serializeAws_queryListTagsForResourceMessage = (input, context) => {
10931
11183
  }
10932
11184
  if (input.Filters != null) {
10933
11185
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
11186
+ if (input.Filters?.length === 0) {
11187
+ entries.Filters = [];
11188
+ }
10934
11189
  Object.entries(memberEntries).forEach(([key, value]) => {
10935
11190
  const loc = `Filters.${key}`;
10936
11191
  entries[loc] = value;
@@ -11012,6 +11267,9 @@ const serializeAws_queryModifyDBClusterEndpointMessage = (input, context) => {
11012
11267
  }
11013
11268
  if (input.StaticMembers != null) {
11014
11269
  const memberEntries = serializeAws_queryStringList(input.StaticMembers, context);
11270
+ if (input.StaticMembers?.length === 0) {
11271
+ entries.StaticMembers = [];
11272
+ }
11015
11273
  Object.entries(memberEntries).forEach(([key, value]) => {
11016
11274
  const loc = `StaticMembers.${key}`;
11017
11275
  entries[loc] = value;
@@ -11019,6 +11277,9 @@ const serializeAws_queryModifyDBClusterEndpointMessage = (input, context) => {
11019
11277
  }
11020
11278
  if (input.ExcludedMembers != null) {
11021
11279
  const memberEntries = serializeAws_queryStringList(input.ExcludedMembers, context);
11280
+ if (input.ExcludedMembers?.length === 0) {
11281
+ entries.ExcludedMembers = [];
11282
+ }
11022
11283
  Object.entries(memberEntries).forEach(([key, value]) => {
11023
11284
  const loc = `ExcludedMembers.${key}`;
11024
11285
  entries[loc] = value;
@@ -11045,6 +11306,9 @@ const serializeAws_queryModifyDBClusterMessage = (input, context) => {
11045
11306
  }
11046
11307
  if (input.VpcSecurityGroupIds != null) {
11047
11308
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
11309
+ if (input.VpcSecurityGroupIds?.length === 0) {
11310
+ entries.VpcSecurityGroupIds = [];
11311
+ }
11048
11312
  Object.entries(memberEntries).forEach(([key, value]) => {
11049
11313
  const loc = `VpcSecurityGroupIds.${key}`;
11050
11314
  entries[loc] = value;
@@ -11161,6 +11425,9 @@ const serializeAws_queryModifyDBClusterParameterGroupMessage = (input, context)
11161
11425
  }
11162
11426
  if (input.Parameters != null) {
11163
11427
  const memberEntries = serializeAws_queryParametersList(input.Parameters, context);
11428
+ if (input.Parameters?.length === 0) {
11429
+ entries.Parameters = [];
11430
+ }
11164
11431
  Object.entries(memberEntries).forEach(([key, value]) => {
11165
11432
  const loc = `Parameters.${key}`;
11166
11433
  entries[loc] = value;
@@ -11178,6 +11445,9 @@ const serializeAws_queryModifyDBClusterSnapshotAttributeMessage = (input, contex
11178
11445
  }
11179
11446
  if (input.ValuesToAdd != null) {
11180
11447
  const memberEntries = serializeAws_queryAttributeValueList(input.ValuesToAdd, context);
11448
+ if (input.ValuesToAdd?.length === 0) {
11449
+ entries.ValuesToAdd = [];
11450
+ }
11181
11451
  Object.entries(memberEntries).forEach(([key, value]) => {
11182
11452
  const loc = `ValuesToAdd.${key}`;
11183
11453
  entries[loc] = value;
@@ -11185,6 +11455,9 @@ const serializeAws_queryModifyDBClusterSnapshotAttributeMessage = (input, contex
11185
11455
  }
11186
11456
  if (input.ValuesToRemove != null) {
11187
11457
  const memberEntries = serializeAws_queryAttributeValueList(input.ValuesToRemove, context);
11458
+ if (input.ValuesToRemove?.length === 0) {
11459
+ entries.ValuesToRemove = [];
11460
+ }
11188
11461
  Object.entries(memberEntries).forEach(([key, value]) => {
11189
11462
  const loc = `ValuesToRemove.${key}`;
11190
11463
  entries[loc] = value;
@@ -11208,6 +11481,9 @@ const serializeAws_queryModifyDBInstanceMessage = (input, context) => {
11208
11481
  }
11209
11482
  if (input.DBSecurityGroups != null) {
11210
11483
  const memberEntries = serializeAws_queryDBSecurityGroupNameList(input.DBSecurityGroups, context);
11484
+ if (input.DBSecurityGroups?.length === 0) {
11485
+ entries.DBSecurityGroups = [];
11486
+ }
11211
11487
  Object.entries(memberEntries).forEach(([key, value]) => {
11212
11488
  const loc = `DBSecurityGroups.${key}`;
11213
11489
  entries[loc] = value;
@@ -11215,6 +11491,9 @@ const serializeAws_queryModifyDBInstanceMessage = (input, context) => {
11215
11491
  }
11216
11492
  if (input.VpcSecurityGroupIds != null) {
11217
11493
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
11494
+ if (input.VpcSecurityGroupIds?.length === 0) {
11495
+ entries.VpcSecurityGroupIds = [];
11496
+ }
11218
11497
  Object.entries(memberEntries).forEach(([key, value]) => {
11219
11498
  const loc = `VpcSecurityGroupIds.${key}`;
11220
11499
  entries[loc] = value;
@@ -11319,6 +11598,9 @@ const serializeAws_queryModifyDBInstanceMessage = (input, context) => {
11319
11598
  }
11320
11599
  if (input.ProcessorFeatures != null) {
11321
11600
  const memberEntries = serializeAws_queryProcessorFeatureList(input.ProcessorFeatures, context);
11601
+ if (input.ProcessorFeatures?.length === 0) {
11602
+ entries.ProcessorFeatures = [];
11603
+ }
11322
11604
  Object.entries(memberEntries).forEach(([key, value]) => {
11323
11605
  const loc = `ProcessorFeatures.${key}`;
11324
11606
  entries[loc] = value;
@@ -11354,6 +11636,9 @@ const serializeAws_queryModifyDBInstanceMessage = (input, context) => {
11354
11636
  if (input.NetworkType != null) {
11355
11637
  entries["NetworkType"] = input.NetworkType;
11356
11638
  }
11639
+ if (input.StorageThroughput != null) {
11640
+ entries["StorageThroughput"] = input.StorageThroughput;
11641
+ }
11357
11642
  return entries;
11358
11643
  };
11359
11644
  const serializeAws_queryModifyDBParameterGroupMessage = (input, context) => {
@@ -11363,6 +11648,9 @@ const serializeAws_queryModifyDBParameterGroupMessage = (input, context) => {
11363
11648
  }
11364
11649
  if (input.Parameters != null) {
11365
11650
  const memberEntries = serializeAws_queryParametersList(input.Parameters, context);
11651
+ if (input.Parameters?.length === 0) {
11652
+ entries.Parameters = [];
11653
+ }
11366
11654
  Object.entries(memberEntries).forEach(([key, value]) => {
11367
11655
  const loc = `Parameters.${key}`;
11368
11656
  entries[loc] = value;
@@ -11380,6 +11668,9 @@ const serializeAws_queryModifyDBProxyEndpointRequest = (input, context) => {
11380
11668
  }
11381
11669
  if (input.VpcSecurityGroupIds != null) {
11382
11670
  const memberEntries = serializeAws_queryStringList(input.VpcSecurityGroupIds, context);
11671
+ if (input.VpcSecurityGroupIds?.length === 0) {
11672
+ entries.VpcSecurityGroupIds = [];
11673
+ }
11383
11674
  Object.entries(memberEntries).forEach(([key, value]) => {
11384
11675
  const loc = `VpcSecurityGroupIds.${key}`;
11385
11676
  entries[loc] = value;
@@ -11397,6 +11688,9 @@ const serializeAws_queryModifyDBProxyRequest = (input, context) => {
11397
11688
  }
11398
11689
  if (input.Auth != null) {
11399
11690
  const memberEntries = serializeAws_queryUserAuthConfigList(input.Auth, context);
11691
+ if (input.Auth?.length === 0) {
11692
+ entries.Auth = [];
11693
+ }
11400
11694
  Object.entries(memberEntries).forEach(([key, value]) => {
11401
11695
  const loc = `Auth.${key}`;
11402
11696
  entries[loc] = value;
@@ -11416,6 +11710,9 @@ const serializeAws_queryModifyDBProxyRequest = (input, context) => {
11416
11710
  }
11417
11711
  if (input.SecurityGroups != null) {
11418
11712
  const memberEntries = serializeAws_queryStringList(input.SecurityGroups, context);
11713
+ if (input.SecurityGroups?.length === 0) {
11714
+ entries.SecurityGroups = [];
11715
+ }
11419
11716
  Object.entries(memberEntries).forEach(([key, value]) => {
11420
11717
  const loc = `SecurityGroups.${key}`;
11421
11718
  entries[loc] = value;
@@ -11453,6 +11750,9 @@ const serializeAws_queryModifyDBSnapshotAttributeMessage = (input, context) => {
11453
11750
  }
11454
11751
  if (input.ValuesToAdd != null) {
11455
11752
  const memberEntries = serializeAws_queryAttributeValueList(input.ValuesToAdd, context);
11753
+ if (input.ValuesToAdd?.length === 0) {
11754
+ entries.ValuesToAdd = [];
11755
+ }
11456
11756
  Object.entries(memberEntries).forEach(([key, value]) => {
11457
11757
  const loc = `ValuesToAdd.${key}`;
11458
11758
  entries[loc] = value;
@@ -11460,6 +11760,9 @@ const serializeAws_queryModifyDBSnapshotAttributeMessage = (input, context) => {
11460
11760
  }
11461
11761
  if (input.ValuesToRemove != null) {
11462
11762
  const memberEntries = serializeAws_queryAttributeValueList(input.ValuesToRemove, context);
11763
+ if (input.ValuesToRemove?.length === 0) {
11764
+ entries.ValuesToRemove = [];
11765
+ }
11463
11766
  Object.entries(memberEntries).forEach(([key, value]) => {
11464
11767
  const loc = `ValuesToRemove.${key}`;
11465
11768
  entries[loc] = value;
@@ -11490,6 +11793,9 @@ const serializeAws_queryModifyDBSubnetGroupMessage = (input, context) => {
11490
11793
  }
11491
11794
  if (input.SubnetIds != null) {
11492
11795
  const memberEntries = serializeAws_querySubnetIdentifierList(input.SubnetIds, context);
11796
+ if (input.SubnetIds?.length === 0) {
11797
+ entries.SubnetIds = [];
11798
+ }
11493
11799
  Object.entries(memberEntries).forEach(([key, value]) => {
11494
11800
  const loc = `SubnetIds.${key}`;
11495
11801
  entries[loc] = value;
@@ -11510,6 +11816,9 @@ const serializeAws_queryModifyEventSubscriptionMessage = (input, context) => {
11510
11816
  }
11511
11817
  if (input.EventCategories != null) {
11512
11818
  const memberEntries = serializeAws_queryEventCategoriesList(input.EventCategories, context);
11819
+ if (input.EventCategories?.length === 0) {
11820
+ entries.EventCategories = [];
11821
+ }
11513
11822
  Object.entries(memberEntries).forEach(([key, value]) => {
11514
11823
  const loc = `EventCategories.${key}`;
11515
11824
  entries[loc] = value;
@@ -11546,6 +11855,9 @@ const serializeAws_queryModifyOptionGroupMessage = (input, context) => {
11546
11855
  }
11547
11856
  if (input.OptionsToInclude != null) {
11548
11857
  const memberEntries = serializeAws_queryOptionConfigurationList(input.OptionsToInclude, context);
11858
+ if (input.OptionsToInclude?.length === 0) {
11859
+ entries.OptionsToInclude = [];
11860
+ }
11549
11861
  Object.entries(memberEntries).forEach(([key, value]) => {
11550
11862
  const loc = `OptionsToInclude.${key}`;
11551
11863
  entries[loc] = value;
@@ -11553,6 +11865,9 @@ const serializeAws_queryModifyOptionGroupMessage = (input, context) => {
11553
11865
  }
11554
11866
  if (input.OptionsToRemove != null) {
11555
11867
  const memberEntries = serializeAws_queryOptionNamesList(input.OptionsToRemove, context);
11868
+ if (input.OptionsToRemove?.length === 0) {
11869
+ entries.OptionsToRemove = [];
11870
+ }
11556
11871
  Object.entries(memberEntries).forEach(([key, value]) => {
11557
11872
  const loc = `OptionsToRemove.${key}`;
11558
11873
  entries[loc] = value;
@@ -11576,6 +11891,9 @@ const serializeAws_queryOptionConfiguration = (input, context) => {
11576
11891
  }
11577
11892
  if (input.DBSecurityGroupMemberships != null) {
11578
11893
  const memberEntries = serializeAws_queryDBSecurityGroupNameList(input.DBSecurityGroupMemberships, context);
11894
+ if (input.DBSecurityGroupMemberships?.length === 0) {
11895
+ entries.DBSecurityGroupMemberships = [];
11896
+ }
11579
11897
  Object.entries(memberEntries).forEach(([key, value]) => {
11580
11898
  const loc = `DBSecurityGroupMemberships.${key}`;
11581
11899
  entries[loc] = value;
@@ -11583,6 +11901,9 @@ const serializeAws_queryOptionConfiguration = (input, context) => {
11583
11901
  }
11584
11902
  if (input.VpcSecurityGroupMemberships != null) {
11585
11903
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupMemberships, context);
11904
+ if (input.VpcSecurityGroupMemberships?.length === 0) {
11905
+ entries.VpcSecurityGroupMemberships = [];
11906
+ }
11586
11907
  Object.entries(memberEntries).forEach(([key, value]) => {
11587
11908
  const loc = `VpcSecurityGroupMemberships.${key}`;
11588
11909
  entries[loc] = value;
@@ -11590,6 +11911,9 @@ const serializeAws_queryOptionConfiguration = (input, context) => {
11590
11911
  }
11591
11912
  if (input.OptionSettings != null) {
11592
11913
  const memberEntries = serializeAws_queryOptionSettingsList(input.OptionSettings, context);
11914
+ if (input.OptionSettings?.length === 0) {
11915
+ entries.OptionSettings = [];
11916
+ }
11593
11917
  Object.entries(memberEntries).forEach(([key, value]) => {
11594
11918
  const loc = `OptionSettings.${key}`;
11595
11919
  entries[loc] = value;
@@ -11704,6 +12028,9 @@ const serializeAws_queryParameter = (input, context) => {
11704
12028
  }
11705
12029
  if (input.SupportedEngineModes != null) {
11706
12030
  const memberEntries = serializeAws_queryEngineModeList(input.SupportedEngineModes, context);
12031
+ if (input.SupportedEngineModes?.length === 0) {
12032
+ entries.SupportedEngineModes = [];
12033
+ }
11707
12034
  Object.entries(memberEntries).forEach(([key, value]) => {
11708
12035
  const loc = `SupportedEngineModes.${key}`;
11709
12036
  entries[loc] = value;
@@ -11784,6 +12111,9 @@ const serializeAws_queryPurchaseReservedDBInstancesOfferingMessage = (input, con
11784
12111
  }
11785
12112
  if (input.Tags != null) {
11786
12113
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
12114
+ if (input.Tags?.length === 0) {
12115
+ entries.Tags = [];
12116
+ }
11787
12117
  Object.entries(memberEntries).forEach(([key, value]) => {
11788
12118
  const loc = `Tags.${key}`;
11789
12119
  entries[loc] = value;
@@ -11818,6 +12148,9 @@ const serializeAws_queryRegisterDBProxyTargetsRequest = (input, context) => {
11818
12148
  }
11819
12149
  if (input.DBInstanceIdentifiers != null) {
11820
12150
  const memberEntries = serializeAws_queryStringList(input.DBInstanceIdentifiers, context);
12151
+ if (input.DBInstanceIdentifiers?.length === 0) {
12152
+ entries.DBInstanceIdentifiers = [];
12153
+ }
11821
12154
  Object.entries(memberEntries).forEach(([key, value]) => {
11822
12155
  const loc = `DBInstanceIdentifiers.${key}`;
11823
12156
  entries[loc] = value;
@@ -11825,6 +12158,9 @@ const serializeAws_queryRegisterDBProxyTargetsRequest = (input, context) => {
11825
12158
  }
11826
12159
  if (input.DBClusterIdentifiers != null) {
11827
12160
  const memberEntries = serializeAws_queryStringList(input.DBClusterIdentifiers, context);
12161
+ if (input.DBClusterIdentifiers?.length === 0) {
12162
+ entries.DBClusterIdentifiers = [];
12163
+ }
11828
12164
  Object.entries(memberEntries).forEach(([key, value]) => {
11829
12165
  const loc = `DBClusterIdentifiers.${key}`;
11830
12166
  entries[loc] = value;
@@ -11885,6 +12221,9 @@ const serializeAws_queryRemoveTagsFromResourceMessage = (input, context) => {
11885
12221
  }
11886
12222
  if (input.TagKeys != null) {
11887
12223
  const memberEntries = serializeAws_queryKeyList(input.TagKeys, context);
12224
+ if (input.TagKeys?.length === 0) {
12225
+ entries.TagKeys = [];
12226
+ }
11888
12227
  Object.entries(memberEntries).forEach(([key, value]) => {
11889
12228
  const loc = `TagKeys.${key}`;
11890
12229
  entries[loc] = value;
@@ -11902,6 +12241,9 @@ const serializeAws_queryResetDBClusterParameterGroupMessage = (input, context) =
11902
12241
  }
11903
12242
  if (input.Parameters != null) {
11904
12243
  const memberEntries = serializeAws_queryParametersList(input.Parameters, context);
12244
+ if (input.Parameters?.length === 0) {
12245
+ entries.Parameters = [];
12246
+ }
11905
12247
  Object.entries(memberEntries).forEach(([key, value]) => {
11906
12248
  const loc = `Parameters.${key}`;
11907
12249
  entries[loc] = value;
@@ -11919,6 +12261,9 @@ const serializeAws_queryResetDBParameterGroupMessage = (input, context) => {
11919
12261
  }
11920
12262
  if (input.Parameters != null) {
11921
12263
  const memberEntries = serializeAws_queryParametersList(input.Parameters, context);
12264
+ if (input.Parameters?.length === 0) {
12265
+ entries.Parameters = [];
12266
+ }
11922
12267
  Object.entries(memberEntries).forEach(([key, value]) => {
11923
12268
  const loc = `Parameters.${key}`;
11924
12269
  entries[loc] = value;
@@ -11930,6 +12275,9 @@ const serializeAws_queryRestoreDBClusterFromS3Message = (input, context) => {
11930
12275
  const entries = {};
11931
12276
  if (input.AvailabilityZones != null) {
11932
12277
  const memberEntries = serializeAws_queryAvailabilityZones(input.AvailabilityZones, context);
12278
+ if (input.AvailabilityZones?.length === 0) {
12279
+ entries.AvailabilityZones = [];
12280
+ }
11933
12281
  Object.entries(memberEntries).forEach(([key, value]) => {
11934
12282
  const loc = `AvailabilityZones.${key}`;
11935
12283
  entries[loc] = value;
@@ -11952,6 +12300,9 @@ const serializeAws_queryRestoreDBClusterFromS3Message = (input, context) => {
11952
12300
  }
11953
12301
  if (input.VpcSecurityGroupIds != null) {
11954
12302
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
12303
+ if (input.VpcSecurityGroupIds?.length === 0) {
12304
+ entries.VpcSecurityGroupIds = [];
12305
+ }
11955
12306
  Object.entries(memberEntries).forEach(([key, value]) => {
11956
12307
  const loc = `VpcSecurityGroupIds.${key}`;
11957
12308
  entries[loc] = value;
@@ -11986,6 +12337,9 @@ const serializeAws_queryRestoreDBClusterFromS3Message = (input, context) => {
11986
12337
  }
11987
12338
  if (input.Tags != null) {
11988
12339
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
12340
+ if (input.Tags?.length === 0) {
12341
+ entries.Tags = [];
12342
+ }
11989
12343
  Object.entries(memberEntries).forEach(([key, value]) => {
11990
12344
  const loc = `Tags.${key}`;
11991
12345
  entries[loc] = value;
@@ -12020,6 +12374,9 @@ const serializeAws_queryRestoreDBClusterFromS3Message = (input, context) => {
12020
12374
  }
12021
12375
  if (input.EnableCloudwatchLogsExports != null) {
12022
12376
  const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
12377
+ if (input.EnableCloudwatchLogsExports?.length === 0) {
12378
+ entries.EnableCloudwatchLogsExports = [];
12379
+ }
12023
12380
  Object.entries(memberEntries).forEach(([key, value]) => {
12024
12381
  const loc = `EnableCloudwatchLogsExports.${key}`;
12025
12382
  entries[loc] = value;
@@ -12053,6 +12410,9 @@ const serializeAws_queryRestoreDBClusterFromSnapshotMessage = (input, context) =
12053
12410
  const entries = {};
12054
12411
  if (input.AvailabilityZones != null) {
12055
12412
  const memberEntries = serializeAws_queryAvailabilityZones(input.AvailabilityZones, context);
12413
+ if (input.AvailabilityZones?.length === 0) {
12414
+ entries.AvailabilityZones = [];
12415
+ }
12056
12416
  Object.entries(memberEntries).forEach(([key, value]) => {
12057
12417
  const loc = `AvailabilityZones.${key}`;
12058
12418
  entries[loc] = value;
@@ -12084,6 +12444,9 @@ const serializeAws_queryRestoreDBClusterFromSnapshotMessage = (input, context) =
12084
12444
  }
12085
12445
  if (input.VpcSecurityGroupIds != null) {
12086
12446
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
12447
+ if (input.VpcSecurityGroupIds?.length === 0) {
12448
+ entries.VpcSecurityGroupIds = [];
12449
+ }
12087
12450
  Object.entries(memberEntries).forEach(([key, value]) => {
12088
12451
  const loc = `VpcSecurityGroupIds.${key}`;
12089
12452
  entries[loc] = value;
@@ -12091,6 +12454,9 @@ const serializeAws_queryRestoreDBClusterFromSnapshotMessage = (input, context) =
12091
12454
  }
12092
12455
  if (input.Tags != null) {
12093
12456
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
12457
+ if (input.Tags?.length === 0) {
12458
+ entries.Tags = [];
12459
+ }
12094
12460
  Object.entries(memberEntries).forEach(([key, value]) => {
12095
12461
  const loc = `Tags.${key}`;
12096
12462
  entries[loc] = value;
@@ -12107,6 +12473,9 @@ const serializeAws_queryRestoreDBClusterFromSnapshotMessage = (input, context) =
12107
12473
  }
12108
12474
  if (input.EnableCloudwatchLogsExports != null) {
12109
12475
  const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
12476
+ if (input.EnableCloudwatchLogsExports?.length === 0) {
12477
+ entries.EnableCloudwatchLogsExports = [];
12478
+ }
12110
12479
  Object.entries(memberEntries).forEach(([key, value]) => {
12111
12480
  const loc = `EnableCloudwatchLogsExports.${key}`;
12112
12481
  entries[loc] = value;
@@ -12189,6 +12558,9 @@ const serializeAws_queryRestoreDBClusterToPointInTimeMessage = (input, context)
12189
12558
  }
12190
12559
  if (input.VpcSecurityGroupIds != null) {
12191
12560
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
12561
+ if (input.VpcSecurityGroupIds?.length === 0) {
12562
+ entries.VpcSecurityGroupIds = [];
12563
+ }
12192
12564
  Object.entries(memberEntries).forEach(([key, value]) => {
12193
12565
  const loc = `VpcSecurityGroupIds.${key}`;
12194
12566
  entries[loc] = value;
@@ -12196,6 +12568,9 @@ const serializeAws_queryRestoreDBClusterToPointInTimeMessage = (input, context)
12196
12568
  }
12197
12569
  if (input.Tags != null) {
12198
12570
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
12571
+ if (input.Tags?.length === 0) {
12572
+ entries.Tags = [];
12573
+ }
12199
12574
  Object.entries(memberEntries).forEach(([key, value]) => {
12200
12575
  const loc = `Tags.${key}`;
12201
12576
  entries[loc] = value;
@@ -12212,6 +12587,9 @@ const serializeAws_queryRestoreDBClusterToPointInTimeMessage = (input, context)
12212
12587
  }
12213
12588
  if (input.EnableCloudwatchLogsExports != null) {
12214
12589
  const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
12590
+ if (input.EnableCloudwatchLogsExports?.length === 0) {
12591
+ entries.EnableCloudwatchLogsExports = [];
12592
+ }
12215
12593
  Object.entries(memberEntries).forEach(([key, value]) => {
12216
12594
  const loc = `EnableCloudwatchLogsExports.${key}`;
12217
12595
  entries[loc] = value;
@@ -12312,6 +12690,9 @@ const serializeAws_queryRestoreDBInstanceFromDBSnapshotMessage = (input, context
12312
12690
  }
12313
12691
  if (input.Tags != null) {
12314
12692
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
12693
+ if (input.Tags?.length === 0) {
12694
+ entries.Tags = [];
12695
+ }
12315
12696
  Object.entries(memberEntries).forEach(([key, value]) => {
12316
12697
  const loc = `Tags.${key}`;
12317
12698
  entries[loc] = value;
@@ -12328,6 +12709,9 @@ const serializeAws_queryRestoreDBInstanceFromDBSnapshotMessage = (input, context
12328
12709
  }
12329
12710
  if (input.VpcSecurityGroupIds != null) {
12330
12711
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
12712
+ if (input.VpcSecurityGroupIds?.length === 0) {
12713
+ entries.VpcSecurityGroupIds = [];
12714
+ }
12331
12715
  Object.entries(memberEntries).forEach(([key, value]) => {
12332
12716
  const loc = `VpcSecurityGroupIds.${key}`;
12333
12717
  entries[loc] = value;
@@ -12347,6 +12731,9 @@ const serializeAws_queryRestoreDBInstanceFromDBSnapshotMessage = (input, context
12347
12731
  }
12348
12732
  if (input.EnableCloudwatchLogsExports != null) {
12349
12733
  const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
12734
+ if (input.EnableCloudwatchLogsExports?.length === 0) {
12735
+ entries.EnableCloudwatchLogsExports = [];
12736
+ }
12350
12737
  Object.entries(memberEntries).forEach(([key, value]) => {
12351
12738
  const loc = `EnableCloudwatchLogsExports.${key}`;
12352
12739
  entries[loc] = value;
@@ -12354,6 +12741,9 @@ const serializeAws_queryRestoreDBInstanceFromDBSnapshotMessage = (input, context
12354
12741
  }
12355
12742
  if (input.ProcessorFeatures != null) {
12356
12743
  const memberEntries = serializeAws_queryProcessorFeatureList(input.ProcessorFeatures, context);
12744
+ if (input.ProcessorFeatures?.length === 0) {
12745
+ entries.ProcessorFeatures = [];
12746
+ }
12357
12747
  Object.entries(memberEntries).forEach(([key, value]) => {
12358
12748
  const loc = `ProcessorFeatures.${key}`;
12359
12749
  entries[loc] = value;
@@ -12380,6 +12770,9 @@ const serializeAws_queryRestoreDBInstanceFromDBSnapshotMessage = (input, context
12380
12770
  if (input.NetworkType != null) {
12381
12771
  entries["NetworkType"] = input.NetworkType;
12382
12772
  }
12773
+ if (input.StorageThroughput != null) {
12774
+ entries["StorageThroughput"] = input.StorageThroughput;
12775
+ }
12383
12776
  return entries;
12384
12777
  };
12385
12778
  const serializeAws_queryRestoreDBInstanceFromS3Message = (input, context) => {
@@ -12407,6 +12800,9 @@ const serializeAws_queryRestoreDBInstanceFromS3Message = (input, context) => {
12407
12800
  }
12408
12801
  if (input.DBSecurityGroups != null) {
12409
12802
  const memberEntries = serializeAws_queryDBSecurityGroupNameList(input.DBSecurityGroups, context);
12803
+ if (input.DBSecurityGroups?.length === 0) {
12804
+ entries.DBSecurityGroups = [];
12805
+ }
12410
12806
  Object.entries(memberEntries).forEach(([key, value]) => {
12411
12807
  const loc = `DBSecurityGroups.${key}`;
12412
12808
  entries[loc] = value;
@@ -12414,6 +12810,9 @@ const serializeAws_queryRestoreDBInstanceFromS3Message = (input, context) => {
12414
12810
  }
12415
12811
  if (input.VpcSecurityGroupIds != null) {
12416
12812
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
12813
+ if (input.VpcSecurityGroupIds?.length === 0) {
12814
+ entries.VpcSecurityGroupIds = [];
12815
+ }
12417
12816
  Object.entries(memberEntries).forEach(([key, value]) => {
12418
12817
  const loc = `VpcSecurityGroupIds.${key}`;
12419
12818
  entries[loc] = value;
@@ -12463,6 +12862,9 @@ const serializeAws_queryRestoreDBInstanceFromS3Message = (input, context) => {
12463
12862
  }
12464
12863
  if (input.Tags != null) {
12465
12864
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
12865
+ if (input.Tags?.length === 0) {
12866
+ entries.Tags = [];
12867
+ }
12466
12868
  Object.entries(memberEntries).forEach(([key, value]) => {
12467
12869
  const loc = `Tags.${key}`;
12468
12870
  entries[loc] = value;
@@ -12515,6 +12917,9 @@ const serializeAws_queryRestoreDBInstanceFromS3Message = (input, context) => {
12515
12917
  }
12516
12918
  if (input.EnableCloudwatchLogsExports != null) {
12517
12919
  const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
12920
+ if (input.EnableCloudwatchLogsExports?.length === 0) {
12921
+ entries.EnableCloudwatchLogsExports = [];
12922
+ }
12518
12923
  Object.entries(memberEntries).forEach(([key, value]) => {
12519
12924
  const loc = `EnableCloudwatchLogsExports.${key}`;
12520
12925
  entries[loc] = value;
@@ -12522,6 +12927,9 @@ const serializeAws_queryRestoreDBInstanceFromS3Message = (input, context) => {
12522
12927
  }
12523
12928
  if (input.ProcessorFeatures != null) {
12524
12929
  const memberEntries = serializeAws_queryProcessorFeatureList(input.ProcessorFeatures, context);
12930
+ if (input.ProcessorFeatures?.length === 0) {
12931
+ entries.ProcessorFeatures = [];
12932
+ }
12525
12933
  Object.entries(memberEntries).forEach(([key, value]) => {
12526
12934
  const loc = `ProcessorFeatures.${key}`;
12527
12935
  entries[loc] = value;
@@ -12539,6 +12947,9 @@ const serializeAws_queryRestoreDBInstanceFromS3Message = (input, context) => {
12539
12947
  if (input.NetworkType != null) {
12540
12948
  entries["NetworkType"] = input.NetworkType;
12541
12949
  }
12950
+ if (input.StorageThroughput != null) {
12951
+ entries["StorageThroughput"] = input.StorageThroughput;
12952
+ }
12542
12953
  return entries;
12543
12954
  };
12544
12955
  const serializeAws_queryRestoreDBInstanceToPointInTimeMessage = (input, context) => {
@@ -12596,6 +13007,9 @@ const serializeAws_queryRestoreDBInstanceToPointInTimeMessage = (input, context)
12596
13007
  }
12597
13008
  if (input.Tags != null) {
12598
13009
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
13010
+ if (input.Tags?.length === 0) {
13011
+ entries.Tags = [];
13012
+ }
12599
13013
  Object.entries(memberEntries).forEach(([key, value]) => {
12600
13014
  const loc = `Tags.${key}`;
12601
13015
  entries[loc] = value;
@@ -12612,6 +13026,9 @@ const serializeAws_queryRestoreDBInstanceToPointInTimeMessage = (input, context)
12612
13026
  }
12613
13027
  if (input.VpcSecurityGroupIds != null) {
12614
13028
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
13029
+ if (input.VpcSecurityGroupIds?.length === 0) {
13030
+ entries.VpcSecurityGroupIds = [];
13031
+ }
12615
13032
  Object.entries(memberEntries).forEach(([key, value]) => {
12616
13033
  const loc = `VpcSecurityGroupIds.${key}`;
12617
13034
  entries[loc] = value;
@@ -12628,6 +13045,9 @@ const serializeAws_queryRestoreDBInstanceToPointInTimeMessage = (input, context)
12628
13045
  }
12629
13046
  if (input.EnableCloudwatchLogsExports != null) {
12630
13047
  const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
13048
+ if (input.EnableCloudwatchLogsExports?.length === 0) {
13049
+ entries.EnableCloudwatchLogsExports = [];
13050
+ }
12631
13051
  Object.entries(memberEntries).forEach(([key, value]) => {
12632
13052
  const loc = `EnableCloudwatchLogsExports.${key}`;
12633
13053
  entries[loc] = value;
@@ -12635,6 +13055,9 @@ const serializeAws_queryRestoreDBInstanceToPointInTimeMessage = (input, context)
12635
13055
  }
12636
13056
  if (input.ProcessorFeatures != null) {
12637
13057
  const memberEntries = serializeAws_queryProcessorFeatureList(input.ProcessorFeatures, context);
13058
+ if (input.ProcessorFeatures?.length === 0) {
13059
+ entries.ProcessorFeatures = [];
13060
+ }
12638
13061
  Object.entries(memberEntries).forEach(([key, value]) => {
12639
13062
  const loc = `ProcessorFeatures.${key}`;
12640
13063
  entries[loc] = value;
@@ -12670,6 +13093,9 @@ const serializeAws_queryRestoreDBInstanceToPointInTimeMessage = (input, context)
12670
13093
  if (input.NetworkType != null) {
12671
13094
  entries["NetworkType"] = input.NetworkType;
12672
13095
  }
13096
+ if (input.StorageThroughput != null) {
13097
+ entries["StorageThroughput"] = input.StorageThroughput;
13098
+ }
12673
13099
  return entries;
12674
13100
  };
12675
13101
  const serializeAws_queryRevokeDBSecurityGroupIngressMessage = (input, context) => {
@@ -12806,6 +13232,9 @@ const serializeAws_queryStartExportTaskMessage = (input, context) => {
12806
13232
  }
12807
13233
  if (input.ExportOnly != null) {
12808
13234
  const memberEntries = serializeAws_queryStringList(input.ExportOnly, context);
13235
+ if (input.ExportOnly?.length === 0) {
13236
+ entries.ExportOnly = [];
13237
+ }
12809
13238
  Object.entries(memberEntries).forEach(([key, value]) => {
12810
13239
  const loc = `ExportOnly.${key}`;
12811
13240
  entries[loc] = value;
@@ -14604,6 +15033,7 @@ const deserializeAws_queryDBInstance = (output, context) => {
14604
15033
  BackupTarget: undefined,
14605
15034
  NetworkType: undefined,
14606
15035
  ActivityStreamPolicyStatus: undefined,
15036
+ StorageThroughput: undefined,
14607
15037
  };
14608
15038
  if (output["DBInstanceIdentifier"] !== undefined) {
14609
15039
  contents.DBInstanceIdentifier = (0, smithy_client_1.expectString)(output["DBInstanceIdentifier"]);
@@ -14881,6 +15311,9 @@ const deserializeAws_queryDBInstance = (output, context) => {
14881
15311
  if (output["ActivityStreamPolicyStatus"] !== undefined) {
14882
15312
  contents.ActivityStreamPolicyStatus = (0, smithy_client_1.expectString)(output["ActivityStreamPolicyStatus"]);
14883
15313
  }
15314
+ if (output["StorageThroughput"] !== undefined) {
15315
+ contents.StorageThroughput = (0, smithy_client_1.strictParseInt32)(output["StorageThroughput"]);
15316
+ }
14884
15317
  return contents;
14885
15318
  };
14886
15319
  const deserializeAws_queryDBInstanceAlreadyExistsFault = (output, context) => {
@@ -14921,6 +15354,7 @@ const deserializeAws_queryDBInstanceAutomatedBackup = (output, context) => {
14921
15354
  DBInstanceAutomatedBackupsArn: undefined,
14922
15355
  DBInstanceAutomatedBackupsReplications: undefined,
14923
15356
  BackupTarget: undefined,
15357
+ StorageThroughput: undefined,
14924
15358
  };
14925
15359
  if (output["DBInstanceArn"] !== undefined) {
14926
15360
  contents.DBInstanceArn = (0, smithy_client_1.expectString)(output["DBInstanceArn"]);
@@ -15007,6 +15441,9 @@ const deserializeAws_queryDBInstanceAutomatedBackup = (output, context) => {
15007
15441
  if (output["BackupTarget"] !== undefined) {
15008
15442
  contents.BackupTarget = (0, smithy_client_1.expectString)(output["BackupTarget"]);
15009
15443
  }
15444
+ if (output["StorageThroughput"] !== undefined) {
15445
+ contents.StorageThroughput = (0, smithy_client_1.strictParseInt32)(output["StorageThroughput"]);
15446
+ }
15010
15447
  return contents;
15011
15448
  };
15012
15449
  const deserializeAws_queryDBInstanceAutomatedBackupList = (output, context) => {
@@ -15755,6 +16192,7 @@ const deserializeAws_queryDBSnapshot = (output, context) => {
15755
16192
  OriginalSnapshotCreateTime: undefined,
15756
16193
  SnapshotDatabaseTime: undefined,
15757
16194
  SnapshotTarget: undefined,
16195
+ StorageThroughput: undefined,
15758
16196
  };
15759
16197
  if (output["DBSnapshotIdentifier"] !== undefined) {
15760
16198
  contents.DBSnapshotIdentifier = (0, smithy_client_1.expectString)(output["DBSnapshotIdentifier"]);
@@ -15859,6 +16297,9 @@ const deserializeAws_queryDBSnapshot = (output, context) => {
15859
16297
  if (output["SnapshotTarget"] !== undefined) {
15860
16298
  contents.SnapshotTarget = (0, smithy_client_1.expectString)(output["SnapshotTarget"]);
15861
16299
  }
16300
+ if (output["StorageThroughput"] !== undefined) {
16301
+ contents.StorageThroughput = (0, smithy_client_1.strictParseInt32)(output["StorageThroughput"]);
16302
+ }
15862
16303
  return contents;
15863
16304
  };
15864
16305
  const deserializeAws_queryDBSnapshotAlreadyExistsFault = (output, context) => {
@@ -17858,6 +18299,11 @@ const deserializeAws_queryOrderableDBInstanceOption = (output, context) => {
17858
18299
  SupportsGlobalDatabases: undefined,
17859
18300
  SupportsClusters: undefined,
17860
18301
  SupportedNetworkTypes: undefined,
18302
+ SupportsStorageThroughput: undefined,
18303
+ MinStorageThroughputPerDbInstance: undefined,
18304
+ MaxStorageThroughputPerDbInstance: undefined,
18305
+ MinStorageThroughputPerIops: undefined,
18306
+ MaxStorageThroughputPerIops: undefined,
17861
18307
  };
17862
18308
  if (output["Engine"] !== undefined) {
17863
18309
  contents.Engine = (0, smithy_client_1.expectString)(output["Engine"]);
@@ -17967,6 +18413,21 @@ const deserializeAws_queryOrderableDBInstanceOption = (output, context) => {
17967
18413
  else if (output["SupportedNetworkTypes"] !== undefined && output["SupportedNetworkTypes"]["member"] !== undefined) {
17968
18414
  contents.SupportedNetworkTypes = deserializeAws_queryStringList((0, smithy_client_1.getArrayIfSingleItem)(output["SupportedNetworkTypes"]["member"]), context);
17969
18415
  }
18416
+ if (output["SupportsStorageThroughput"] !== undefined) {
18417
+ contents.SupportsStorageThroughput = (0, smithy_client_1.parseBoolean)(output["SupportsStorageThroughput"]);
18418
+ }
18419
+ if (output["MinStorageThroughputPerDbInstance"] !== undefined) {
18420
+ contents.MinStorageThroughputPerDbInstance = (0, smithy_client_1.strictParseInt32)(output["MinStorageThroughputPerDbInstance"]);
18421
+ }
18422
+ if (output["MaxStorageThroughputPerDbInstance"] !== undefined) {
18423
+ contents.MaxStorageThroughputPerDbInstance = (0, smithy_client_1.strictParseInt32)(output["MaxStorageThroughputPerDbInstance"]);
18424
+ }
18425
+ if (output["MinStorageThroughputPerIops"] !== undefined) {
18426
+ contents.MinStorageThroughputPerIops = (0, smithy_client_1.strictParseFloat)(output["MinStorageThroughputPerIops"]);
18427
+ }
18428
+ if (output["MaxStorageThroughputPerIops"] !== undefined) {
18429
+ contents.MaxStorageThroughputPerIops = (0, smithy_client_1.strictParseFloat)(output["MaxStorageThroughputPerIops"]);
18430
+ }
17970
18431
  return contents;
17971
18432
  };
17972
18433
  const deserializeAws_queryOrderableDBInstanceOptionsList = (output, context) => {
@@ -18160,6 +18621,7 @@ const deserializeAws_queryPendingModifiedValues = (output, context) => {
18160
18621
  IAMDatabaseAuthenticationEnabled: undefined,
18161
18622
  AutomationMode: undefined,
18162
18623
  ResumeFullAutomationModeTime: undefined,
18624
+ StorageThroughput: undefined,
18163
18625
  };
18164
18626
  if (output["DBInstanceClass"] !== undefined) {
18165
18627
  contents.DBInstanceClass = (0, smithy_client_1.expectString)(output["DBInstanceClass"]);
@@ -18219,6 +18681,9 @@ const deserializeAws_queryPendingModifiedValues = (output, context) => {
18219
18681
  if (output["ResumeFullAutomationModeTime"] !== undefined) {
18220
18682
  contents.ResumeFullAutomationModeTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output["ResumeFullAutomationModeTime"]));
18221
18683
  }
18684
+ if (output["StorageThroughput"] !== undefined) {
18685
+ contents.StorageThroughput = (0, smithy_client_1.strictParseInt32)(output["StorageThroughput"]);
18686
+ }
18222
18687
  return contents;
18223
18688
  };
18224
18689
  const deserializeAws_queryPointInTimeRestoreNotEnabledFault = (output, context) => {
@@ -19246,6 +19711,8 @@ const deserializeAws_queryValidStorageOptions = (output, context) => {
19246
19711
  ProvisionedIops: undefined,
19247
19712
  IopsToStorageRatio: undefined,
19248
19713
  SupportsStorageAutoscaling: undefined,
19714
+ ProvisionedStorageThroughput: undefined,
19715
+ StorageThroughputToIopsRatio: undefined,
19249
19716
  };
19250
19717
  if (output["StorageType"] !== undefined) {
19251
19718
  contents.StorageType = (0, smithy_client_1.expectString)(output["StorageType"]);
@@ -19271,6 +19738,20 @@ const deserializeAws_queryValidStorageOptions = (output, context) => {
19271
19738
  if (output["SupportsStorageAutoscaling"] !== undefined) {
19272
19739
  contents.SupportsStorageAutoscaling = (0, smithy_client_1.parseBoolean)(output["SupportsStorageAutoscaling"]);
19273
19740
  }
19741
+ if (output.ProvisionedStorageThroughput === "") {
19742
+ contents.ProvisionedStorageThroughput = [];
19743
+ }
19744
+ else if (output["ProvisionedStorageThroughput"] !== undefined &&
19745
+ output["ProvisionedStorageThroughput"]["Range"] !== undefined) {
19746
+ contents.ProvisionedStorageThroughput = deserializeAws_queryRangeList((0, smithy_client_1.getArrayIfSingleItem)(output["ProvisionedStorageThroughput"]["Range"]), context);
19747
+ }
19748
+ if (output.StorageThroughputToIopsRatio === "") {
19749
+ contents.StorageThroughputToIopsRatio = [];
19750
+ }
19751
+ else if (output["StorageThroughputToIopsRatio"] !== undefined &&
19752
+ output["StorageThroughputToIopsRatio"]["DoubleRange"] !== undefined) {
19753
+ contents.StorageThroughputToIopsRatio = deserializeAws_queryDoubleRangeList((0, smithy_client_1.getArrayIfSingleItem)(output["StorageThroughputToIopsRatio"]["DoubleRange"]), context);
19754
+ }
19274
19755
  return contents;
19275
19756
  };
19276
19757
  const deserializeAws_queryValidStorageOptionsList = (output, context) => {
@@ -19307,15 +19788,12 @@ const deserializeAws_queryVpcSecurityGroupMembershipList = (output, context) =>
19307
19788
  return deserializeAws_queryVpcSecurityGroupMembership(entry, context);
19308
19789
  });
19309
19790
  };
19310
- const deserializeMetadata = (output) => {
19311
- var _a, _b;
19312
- return ({
19313
- httpStatusCode: output.statusCode,
19314
- requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
19315
- extendedRequestId: output.headers["x-amz-id-2"],
19316
- cfId: output.headers["x-amz-cf-id"],
19317
- });
19318
- };
19791
+ const deserializeMetadata = (output) => ({
19792
+ httpStatusCode: output.statusCode,
19793
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
19794
+ extendedRequestId: output.headers["x-amz-id-2"],
19795
+ cfId: output.headers["x-amz-cf-id"],
19796
+ });
19319
19797
  const collectBody = (streamBody = new Uint8Array(), context) => {
19320
19798
  if (streamBody instanceof Uint8Array) {
19321
19799
  return Promise.resolve(streamBody);
@@ -19367,10 +19845,9 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
19367
19845
  return {};
19368
19846
  });
19369
19847
  const parseErrorBody = async (errorBody, context) => {
19370
- var _a;
19371
19848
  const value = await parseBody(errorBody, context);
19372
19849
  if (value.Error) {
19373
- value.Error.message = (_a = value.Error.message) !== null && _a !== void 0 ? _a : value.Error.Message;
19850
+ value.Error.message = value.Error.message ?? value.Error.Message;
19374
19851
  }
19375
19852
  return value;
19376
19853
  };