@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.
@@ -8432,6 +8432,9 @@ const serializeAws_queryAddTagsToResourceMessage = (input, context) => {
8432
8432
  }
8433
8433
  if (input.Tags != null) {
8434
8434
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
8435
+ if (input.Tags?.length === 0) {
8436
+ entries.Tags = [];
8437
+ }
8435
8438
  Object.entries(memberEntries).forEach(([key, value]) => {
8436
8439
  const loc = `Tags.${key}`;
8437
8440
  entries[loc] = value;
@@ -8522,6 +8525,9 @@ const serializeAws_queryCloudwatchLogsExportConfiguration = (input, context) =>
8522
8525
  const entries = {};
8523
8526
  if (input.EnableLogTypes != null) {
8524
8527
  const memberEntries = serializeAws_queryLogTypeList(input.EnableLogTypes, context);
8528
+ if (input.EnableLogTypes?.length === 0) {
8529
+ entries.EnableLogTypes = [];
8530
+ }
8525
8531
  Object.entries(memberEntries).forEach(([key, value]) => {
8526
8532
  const loc = `EnableLogTypes.${key}`;
8527
8533
  entries[loc] = value;
@@ -8529,6 +8535,9 @@ const serializeAws_queryCloudwatchLogsExportConfiguration = (input, context) =>
8529
8535
  }
8530
8536
  if (input.DisableLogTypes != null) {
8531
8537
  const memberEntries = serializeAws_queryLogTypeList(input.DisableLogTypes, context);
8538
+ if (input.DisableLogTypes?.length === 0) {
8539
+ entries.DisableLogTypes = [];
8540
+ }
8532
8541
  Object.entries(memberEntries).forEach(([key, value]) => {
8533
8542
  const loc = `DisableLogTypes.${key}`;
8534
8543
  entries[loc] = value;
@@ -8549,6 +8558,9 @@ const serializeAws_queryConnectionPoolConfiguration = (input, context) => {
8549
8558
  }
8550
8559
  if (input.SessionPinningFilters != null) {
8551
8560
  const memberEntries = serializeAws_queryStringList(input.SessionPinningFilters, context);
8561
+ if (input.SessionPinningFilters?.length === 0) {
8562
+ entries.SessionPinningFilters = [];
8563
+ }
8552
8564
  Object.entries(memberEntries).forEach(([key, value]) => {
8553
8565
  const loc = `SessionPinningFilters.${key}`;
8554
8566
  entries[loc] = value;
@@ -8572,6 +8584,9 @@ const serializeAws_queryCopyDBClusterParameterGroupMessage = (input, context) =>
8572
8584
  }
8573
8585
  if (input.Tags != null) {
8574
8586
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
8587
+ if (input.Tags?.length === 0) {
8588
+ entries.Tags = [];
8589
+ }
8575
8590
  Object.entries(memberEntries).forEach(([key, value]) => {
8576
8591
  const loc = `Tags.${key}`;
8577
8592
  entries[loc] = value;
@@ -8598,6 +8613,9 @@ const serializeAws_queryCopyDBClusterSnapshotMessage = (input, context) => {
8598
8613
  }
8599
8614
  if (input.Tags != null) {
8600
8615
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
8616
+ if (input.Tags?.length === 0) {
8617
+ entries.Tags = [];
8618
+ }
8601
8619
  Object.entries(memberEntries).forEach(([key, value]) => {
8602
8620
  const loc = `Tags.${key}`;
8603
8621
  entries[loc] = value;
@@ -8618,6 +8636,9 @@ const serializeAws_queryCopyDBParameterGroupMessage = (input, context) => {
8618
8636
  }
8619
8637
  if (input.Tags != null) {
8620
8638
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
8639
+ if (input.Tags?.length === 0) {
8640
+ entries.Tags = [];
8641
+ }
8621
8642
  Object.entries(memberEntries).forEach(([key, value]) => {
8622
8643
  const loc = `Tags.${key}`;
8623
8644
  entries[loc] = value;
@@ -8638,6 +8659,9 @@ const serializeAws_queryCopyDBSnapshotMessage = (input, context) => {
8638
8659
  }
8639
8660
  if (input.Tags != null) {
8640
8661
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
8662
+ if (input.Tags?.length === 0) {
8663
+ entries.Tags = [];
8664
+ }
8641
8665
  Object.entries(memberEntries).forEach(([key, value]) => {
8642
8666
  const loc = `Tags.${key}`;
8643
8667
  entries[loc] = value;
@@ -8670,6 +8694,9 @@ const serializeAws_queryCopyOptionGroupMessage = (input, context) => {
8670
8694
  }
8671
8695
  if (input.Tags != null) {
8672
8696
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
8697
+ if (input.Tags?.length === 0) {
8698
+ entries.Tags = [];
8699
+ }
8673
8700
  Object.entries(memberEntries).forEach(([key, value]) => {
8674
8701
  const loc = `Tags.${key}`;
8675
8702
  entries[loc] = value;
@@ -8702,6 +8729,9 @@ const serializeAws_queryCreateCustomDBEngineVersionMessage = (input, context) =>
8702
8729
  }
8703
8730
  if (input.Tags != null) {
8704
8731
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
8732
+ if (input.Tags?.length === 0) {
8733
+ entries.Tags = [];
8734
+ }
8705
8735
  Object.entries(memberEntries).forEach(([key, value]) => {
8706
8736
  const loc = `Tags.${key}`;
8707
8737
  entries[loc] = value;
@@ -8722,6 +8752,9 @@ const serializeAws_queryCreateDBClusterEndpointMessage = (input, context) => {
8722
8752
  }
8723
8753
  if (input.StaticMembers != null) {
8724
8754
  const memberEntries = serializeAws_queryStringList(input.StaticMembers, context);
8755
+ if (input.StaticMembers?.length === 0) {
8756
+ entries.StaticMembers = [];
8757
+ }
8725
8758
  Object.entries(memberEntries).forEach(([key, value]) => {
8726
8759
  const loc = `StaticMembers.${key}`;
8727
8760
  entries[loc] = value;
@@ -8729,6 +8762,9 @@ const serializeAws_queryCreateDBClusterEndpointMessage = (input, context) => {
8729
8762
  }
8730
8763
  if (input.ExcludedMembers != null) {
8731
8764
  const memberEntries = serializeAws_queryStringList(input.ExcludedMembers, context);
8765
+ if (input.ExcludedMembers?.length === 0) {
8766
+ entries.ExcludedMembers = [];
8767
+ }
8732
8768
  Object.entries(memberEntries).forEach(([key, value]) => {
8733
8769
  const loc = `ExcludedMembers.${key}`;
8734
8770
  entries[loc] = value;
@@ -8736,6 +8772,9 @@ const serializeAws_queryCreateDBClusterEndpointMessage = (input, context) => {
8736
8772
  }
8737
8773
  if (input.Tags != null) {
8738
8774
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
8775
+ if (input.Tags?.length === 0) {
8776
+ entries.Tags = [];
8777
+ }
8739
8778
  Object.entries(memberEntries).forEach(([key, value]) => {
8740
8779
  const loc = `Tags.${key}`;
8741
8780
  entries[loc] = value;
@@ -8747,6 +8786,9 @@ const serializeAws_queryCreateDBClusterMessage = (input, context) => {
8747
8786
  const entries = {};
8748
8787
  if (input.AvailabilityZones != null) {
8749
8788
  const memberEntries = serializeAws_queryAvailabilityZones(input.AvailabilityZones, context);
8789
+ if (input.AvailabilityZones?.length === 0) {
8790
+ entries.AvailabilityZones = [];
8791
+ }
8750
8792
  Object.entries(memberEntries).forEach(([key, value]) => {
8751
8793
  const loc = `AvailabilityZones.${key}`;
8752
8794
  entries[loc] = value;
@@ -8769,6 +8811,9 @@ const serializeAws_queryCreateDBClusterMessage = (input, context) => {
8769
8811
  }
8770
8812
  if (input.VpcSecurityGroupIds != null) {
8771
8813
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
8814
+ if (input.VpcSecurityGroupIds?.length === 0) {
8815
+ entries.VpcSecurityGroupIds = [];
8816
+ }
8772
8817
  Object.entries(memberEntries).forEach(([key, value]) => {
8773
8818
  const loc = `VpcSecurityGroupIds.${key}`;
8774
8819
  entries[loc] = value;
@@ -8806,6 +8851,9 @@ const serializeAws_queryCreateDBClusterMessage = (input, context) => {
8806
8851
  }
8807
8852
  if (input.Tags != null) {
8808
8853
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
8854
+ if (input.Tags?.length === 0) {
8855
+ entries.Tags = [];
8856
+ }
8809
8857
  Object.entries(memberEntries).forEach(([key, value]) => {
8810
8858
  const loc = `Tags.${key}`;
8811
8859
  entries[loc] = value;
@@ -8828,6 +8876,9 @@ const serializeAws_queryCreateDBClusterMessage = (input, context) => {
8828
8876
  }
8829
8877
  if (input.EnableCloudwatchLogsExports != null) {
8830
8878
  const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
8879
+ if (input.EnableCloudwatchLogsExports?.length === 0) {
8880
+ entries.EnableCloudwatchLogsExports = [];
8881
+ }
8831
8882
  Object.entries(memberEntries).forEach(([key, value]) => {
8832
8883
  const loc = `EnableCloudwatchLogsExports.${key}`;
8833
8884
  entries[loc] = value;
@@ -8922,6 +8973,9 @@ const serializeAws_queryCreateDBClusterParameterGroupMessage = (input, context)
8922
8973
  }
8923
8974
  if (input.Tags != null) {
8924
8975
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
8976
+ if (input.Tags?.length === 0) {
8977
+ entries.Tags = [];
8978
+ }
8925
8979
  Object.entries(memberEntries).forEach(([key, value]) => {
8926
8980
  const loc = `Tags.${key}`;
8927
8981
  entries[loc] = value;
@@ -8939,6 +8993,9 @@ const serializeAws_queryCreateDBClusterSnapshotMessage = (input, context) => {
8939
8993
  }
8940
8994
  if (input.Tags != null) {
8941
8995
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
8996
+ if (input.Tags?.length === 0) {
8997
+ entries.Tags = [];
8998
+ }
8942
8999
  Object.entries(memberEntries).forEach(([key, value]) => {
8943
9000
  const loc = `Tags.${key}`;
8944
9001
  entries[loc] = value;
@@ -8971,6 +9028,9 @@ const serializeAws_queryCreateDBInstanceMessage = (input, context) => {
8971
9028
  }
8972
9029
  if (input.DBSecurityGroups != null) {
8973
9030
  const memberEntries = serializeAws_queryDBSecurityGroupNameList(input.DBSecurityGroups, context);
9031
+ if (input.DBSecurityGroups?.length === 0) {
9032
+ entries.DBSecurityGroups = [];
9033
+ }
8974
9034
  Object.entries(memberEntries).forEach(([key, value]) => {
8975
9035
  const loc = `DBSecurityGroups.${key}`;
8976
9036
  entries[loc] = value;
@@ -8978,6 +9038,9 @@ const serializeAws_queryCreateDBInstanceMessage = (input, context) => {
8978
9038
  }
8979
9039
  if (input.VpcSecurityGroupIds != null) {
8980
9040
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
9041
+ if (input.VpcSecurityGroupIds?.length === 0) {
9042
+ entries.VpcSecurityGroupIds = [];
9043
+ }
8981
9044
  Object.entries(memberEntries).forEach(([key, value]) => {
8982
9045
  const loc = `VpcSecurityGroupIds.${key}`;
8983
9046
  entries[loc] = value;
@@ -9033,6 +9096,9 @@ const serializeAws_queryCreateDBInstanceMessage = (input, context) => {
9033
9096
  }
9034
9097
  if (input.Tags != null) {
9035
9098
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9099
+ if (input.Tags?.length === 0) {
9100
+ entries.Tags = [];
9101
+ }
9036
9102
  Object.entries(memberEntries).forEach(([key, value]) => {
9037
9103
  const loc = `Tags.${key}`;
9038
9104
  entries[loc] = value;
@@ -9091,6 +9157,9 @@ const serializeAws_queryCreateDBInstanceMessage = (input, context) => {
9091
9157
  }
9092
9158
  if (input.EnableCloudwatchLogsExports != null) {
9093
9159
  const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
9160
+ if (input.EnableCloudwatchLogsExports?.length === 0) {
9161
+ entries.EnableCloudwatchLogsExports = [];
9162
+ }
9094
9163
  Object.entries(memberEntries).forEach(([key, value]) => {
9095
9164
  const loc = `EnableCloudwatchLogsExports.${key}`;
9096
9165
  entries[loc] = value;
@@ -9098,6 +9167,9 @@ const serializeAws_queryCreateDBInstanceMessage = (input, context) => {
9098
9167
  }
9099
9168
  if (input.ProcessorFeatures != null) {
9100
9169
  const memberEntries = serializeAws_queryProcessorFeatureList(input.ProcessorFeatures, context);
9170
+ if (input.ProcessorFeatures?.length === 0) {
9171
+ entries.ProcessorFeatures = [];
9172
+ }
9101
9173
  Object.entries(memberEntries).forEach(([key, value]) => {
9102
9174
  const loc = `ProcessorFeatures.${key}`;
9103
9175
  entries[loc] = value;
@@ -9121,6 +9193,9 @@ const serializeAws_queryCreateDBInstanceMessage = (input, context) => {
9121
9193
  if (input.NetworkType != null) {
9122
9194
  entries["NetworkType"] = input.NetworkType;
9123
9195
  }
9196
+ if (input.StorageThroughput != null) {
9197
+ entries["StorageThroughput"] = input.StorageThroughput;
9198
+ }
9124
9199
  return entries;
9125
9200
  };
9126
9201
  const serializeAws_queryCreateDBInstanceReadReplicaMessage = (input, context) => {
@@ -9160,6 +9235,9 @@ const serializeAws_queryCreateDBInstanceReadReplicaMessage = (input, context) =>
9160
9235
  }
9161
9236
  if (input.Tags != null) {
9162
9237
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9238
+ if (input.Tags?.length === 0) {
9239
+ entries.Tags = [];
9240
+ }
9163
9241
  Object.entries(memberEntries).forEach(([key, value]) => {
9164
9242
  const loc = `Tags.${key}`;
9165
9243
  entries[loc] = value;
@@ -9170,6 +9248,9 @@ const serializeAws_queryCreateDBInstanceReadReplicaMessage = (input, context) =>
9170
9248
  }
9171
9249
  if (input.VpcSecurityGroupIds != null) {
9172
9250
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
9251
+ if (input.VpcSecurityGroupIds?.length === 0) {
9252
+ entries.VpcSecurityGroupIds = [];
9253
+ }
9173
9254
  Object.entries(memberEntries).forEach(([key, value]) => {
9174
9255
  const loc = `VpcSecurityGroupIds.${key}`;
9175
9256
  entries[loc] = value;
@@ -9207,6 +9288,9 @@ const serializeAws_queryCreateDBInstanceReadReplicaMessage = (input, context) =>
9207
9288
  }
9208
9289
  if (input.EnableCloudwatchLogsExports != null) {
9209
9290
  const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
9291
+ if (input.EnableCloudwatchLogsExports?.length === 0) {
9292
+ entries.EnableCloudwatchLogsExports = [];
9293
+ }
9210
9294
  Object.entries(memberEntries).forEach(([key, value]) => {
9211
9295
  const loc = `EnableCloudwatchLogsExports.${key}`;
9212
9296
  entries[loc] = value;
@@ -9214,6 +9298,9 @@ const serializeAws_queryCreateDBInstanceReadReplicaMessage = (input, context) =>
9214
9298
  }
9215
9299
  if (input.ProcessorFeatures != null) {
9216
9300
  const memberEntries = serializeAws_queryProcessorFeatureList(input.ProcessorFeatures, context);
9301
+ if (input.ProcessorFeatures?.length === 0) {
9302
+ entries.ProcessorFeatures = [];
9303
+ }
9217
9304
  Object.entries(memberEntries).forEach(([key, value]) => {
9218
9305
  const loc = `ProcessorFeatures.${key}`;
9219
9306
  entries[loc] = value;
@@ -9243,6 +9330,9 @@ const serializeAws_queryCreateDBInstanceReadReplicaMessage = (input, context) =>
9243
9330
  if (input.NetworkType != null) {
9244
9331
  entries["NetworkType"] = input.NetworkType;
9245
9332
  }
9333
+ if (input.StorageThroughput != null) {
9334
+ entries["StorageThroughput"] = input.StorageThroughput;
9335
+ }
9246
9336
  return entries;
9247
9337
  };
9248
9338
  const serializeAws_queryCreateDBParameterGroupMessage = (input, context) => {
@@ -9258,6 +9348,9 @@ const serializeAws_queryCreateDBParameterGroupMessage = (input, context) => {
9258
9348
  }
9259
9349
  if (input.Tags != null) {
9260
9350
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9351
+ if (input.Tags?.length === 0) {
9352
+ entries.Tags = [];
9353
+ }
9261
9354
  Object.entries(memberEntries).forEach(([key, value]) => {
9262
9355
  const loc = `Tags.${key}`;
9263
9356
  entries[loc] = value;
@@ -9275,6 +9368,9 @@ const serializeAws_queryCreateDBProxyEndpointRequest = (input, context) => {
9275
9368
  }
9276
9369
  if (input.VpcSubnetIds != null) {
9277
9370
  const memberEntries = serializeAws_queryStringList(input.VpcSubnetIds, context);
9371
+ if (input.VpcSubnetIds?.length === 0) {
9372
+ entries.VpcSubnetIds = [];
9373
+ }
9278
9374
  Object.entries(memberEntries).forEach(([key, value]) => {
9279
9375
  const loc = `VpcSubnetIds.${key}`;
9280
9376
  entries[loc] = value;
@@ -9282,6 +9378,9 @@ const serializeAws_queryCreateDBProxyEndpointRequest = (input, context) => {
9282
9378
  }
9283
9379
  if (input.VpcSecurityGroupIds != null) {
9284
9380
  const memberEntries = serializeAws_queryStringList(input.VpcSecurityGroupIds, context);
9381
+ if (input.VpcSecurityGroupIds?.length === 0) {
9382
+ entries.VpcSecurityGroupIds = [];
9383
+ }
9285
9384
  Object.entries(memberEntries).forEach(([key, value]) => {
9286
9385
  const loc = `VpcSecurityGroupIds.${key}`;
9287
9386
  entries[loc] = value;
@@ -9292,6 +9391,9 @@ const serializeAws_queryCreateDBProxyEndpointRequest = (input, context) => {
9292
9391
  }
9293
9392
  if (input.Tags != null) {
9294
9393
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9394
+ if (input.Tags?.length === 0) {
9395
+ entries.Tags = [];
9396
+ }
9295
9397
  Object.entries(memberEntries).forEach(([key, value]) => {
9296
9398
  const loc = `Tags.${key}`;
9297
9399
  entries[loc] = value;
@@ -9309,6 +9411,9 @@ const serializeAws_queryCreateDBProxyRequest = (input, context) => {
9309
9411
  }
9310
9412
  if (input.Auth != null) {
9311
9413
  const memberEntries = serializeAws_queryUserAuthConfigList(input.Auth, context);
9414
+ if (input.Auth?.length === 0) {
9415
+ entries.Auth = [];
9416
+ }
9312
9417
  Object.entries(memberEntries).forEach(([key, value]) => {
9313
9418
  const loc = `Auth.${key}`;
9314
9419
  entries[loc] = value;
@@ -9319,6 +9424,9 @@ const serializeAws_queryCreateDBProxyRequest = (input, context) => {
9319
9424
  }
9320
9425
  if (input.VpcSubnetIds != null) {
9321
9426
  const memberEntries = serializeAws_queryStringList(input.VpcSubnetIds, context);
9427
+ if (input.VpcSubnetIds?.length === 0) {
9428
+ entries.VpcSubnetIds = [];
9429
+ }
9322
9430
  Object.entries(memberEntries).forEach(([key, value]) => {
9323
9431
  const loc = `VpcSubnetIds.${key}`;
9324
9432
  entries[loc] = value;
@@ -9326,6 +9434,9 @@ const serializeAws_queryCreateDBProxyRequest = (input, context) => {
9326
9434
  }
9327
9435
  if (input.VpcSecurityGroupIds != null) {
9328
9436
  const memberEntries = serializeAws_queryStringList(input.VpcSecurityGroupIds, context);
9437
+ if (input.VpcSecurityGroupIds?.length === 0) {
9438
+ entries.VpcSecurityGroupIds = [];
9439
+ }
9329
9440
  Object.entries(memberEntries).forEach(([key, value]) => {
9330
9441
  const loc = `VpcSecurityGroupIds.${key}`;
9331
9442
  entries[loc] = value;
@@ -9342,6 +9453,9 @@ const serializeAws_queryCreateDBProxyRequest = (input, context) => {
9342
9453
  }
9343
9454
  if (input.Tags != null) {
9344
9455
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9456
+ if (input.Tags?.length === 0) {
9457
+ entries.Tags = [];
9458
+ }
9345
9459
  Object.entries(memberEntries).forEach(([key, value]) => {
9346
9460
  const loc = `Tags.${key}`;
9347
9461
  entries[loc] = value;
@@ -9359,6 +9473,9 @@ const serializeAws_queryCreateDBSecurityGroupMessage = (input, context) => {
9359
9473
  }
9360
9474
  if (input.Tags != null) {
9361
9475
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9476
+ if (input.Tags?.length === 0) {
9477
+ entries.Tags = [];
9478
+ }
9362
9479
  Object.entries(memberEntries).forEach(([key, value]) => {
9363
9480
  const loc = `Tags.${key}`;
9364
9481
  entries[loc] = value;
@@ -9376,6 +9493,9 @@ const serializeAws_queryCreateDBSnapshotMessage = (input, context) => {
9376
9493
  }
9377
9494
  if (input.Tags != null) {
9378
9495
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9496
+ if (input.Tags?.length === 0) {
9497
+ entries.Tags = [];
9498
+ }
9379
9499
  Object.entries(memberEntries).forEach(([key, value]) => {
9380
9500
  const loc = `Tags.${key}`;
9381
9501
  entries[loc] = value;
@@ -9393,6 +9513,9 @@ const serializeAws_queryCreateDBSubnetGroupMessage = (input, context) => {
9393
9513
  }
9394
9514
  if (input.SubnetIds != null) {
9395
9515
  const memberEntries = serializeAws_querySubnetIdentifierList(input.SubnetIds, context);
9516
+ if (input.SubnetIds?.length === 0) {
9517
+ entries.SubnetIds = [];
9518
+ }
9396
9519
  Object.entries(memberEntries).forEach(([key, value]) => {
9397
9520
  const loc = `SubnetIds.${key}`;
9398
9521
  entries[loc] = value;
@@ -9400,6 +9523,9 @@ const serializeAws_queryCreateDBSubnetGroupMessage = (input, context) => {
9400
9523
  }
9401
9524
  if (input.Tags != null) {
9402
9525
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9526
+ if (input.Tags?.length === 0) {
9527
+ entries.Tags = [];
9528
+ }
9403
9529
  Object.entries(memberEntries).forEach(([key, value]) => {
9404
9530
  const loc = `Tags.${key}`;
9405
9531
  entries[loc] = value;
@@ -9420,6 +9546,9 @@ const serializeAws_queryCreateEventSubscriptionMessage = (input, context) => {
9420
9546
  }
9421
9547
  if (input.EventCategories != null) {
9422
9548
  const memberEntries = serializeAws_queryEventCategoriesList(input.EventCategories, context);
9549
+ if (input.EventCategories?.length === 0) {
9550
+ entries.EventCategories = [];
9551
+ }
9423
9552
  Object.entries(memberEntries).forEach(([key, value]) => {
9424
9553
  const loc = `EventCategories.${key}`;
9425
9554
  entries[loc] = value;
@@ -9427,6 +9556,9 @@ const serializeAws_queryCreateEventSubscriptionMessage = (input, context) => {
9427
9556
  }
9428
9557
  if (input.SourceIds != null) {
9429
9558
  const memberEntries = serializeAws_querySourceIdsList(input.SourceIds, context);
9559
+ if (input.SourceIds?.length === 0) {
9560
+ entries.SourceIds = [];
9561
+ }
9430
9562
  Object.entries(memberEntries).forEach(([key, value]) => {
9431
9563
  const loc = `SourceIds.${key}`;
9432
9564
  entries[loc] = value;
@@ -9437,6 +9569,9 @@ const serializeAws_queryCreateEventSubscriptionMessage = (input, context) => {
9437
9569
  }
9438
9570
  if (input.Tags != null) {
9439
9571
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9572
+ if (input.Tags?.length === 0) {
9573
+ entries.Tags = [];
9574
+ }
9440
9575
  Object.entries(memberEntries).forEach(([key, value]) => {
9441
9576
  const loc = `Tags.${key}`;
9442
9577
  entries[loc] = value;
@@ -9485,6 +9620,9 @@ const serializeAws_queryCreateOptionGroupMessage = (input, context) => {
9485
9620
  }
9486
9621
  if (input.Tags != null) {
9487
9622
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
9623
+ if (input.Tags?.length === 0) {
9624
+ entries.Tags = [];
9625
+ }
9488
9626
  Object.entries(memberEntries).forEach(([key, value]) => {
9489
9627
  const loc = `Tags.${key}`;
9490
9628
  entries[loc] = value;
@@ -9647,6 +9785,9 @@ const serializeAws_queryDeregisterDBProxyTargetsRequest = (input, context) => {
9647
9785
  }
9648
9786
  if (input.DBInstanceIdentifiers != null) {
9649
9787
  const memberEntries = serializeAws_queryStringList(input.DBInstanceIdentifiers, context);
9788
+ if (input.DBInstanceIdentifiers?.length === 0) {
9789
+ entries.DBInstanceIdentifiers = [];
9790
+ }
9650
9791
  Object.entries(memberEntries).forEach(([key, value]) => {
9651
9792
  const loc = `DBInstanceIdentifiers.${key}`;
9652
9793
  entries[loc] = value;
@@ -9654,6 +9795,9 @@ const serializeAws_queryDeregisterDBProxyTargetsRequest = (input, context) => {
9654
9795
  }
9655
9796
  if (input.DBClusterIdentifiers != null) {
9656
9797
  const memberEntries = serializeAws_queryStringList(input.DBClusterIdentifiers, context);
9798
+ if (input.DBClusterIdentifiers?.length === 0) {
9799
+ entries.DBClusterIdentifiers = [];
9800
+ }
9657
9801
  Object.entries(memberEntries).forEach(([key, value]) => {
9658
9802
  const loc = `DBClusterIdentifiers.${key}`;
9659
9803
  entries[loc] = value;
@@ -9672,6 +9816,9 @@ const serializeAws_queryDescribeCertificatesMessage = (input, context) => {
9672
9816
  }
9673
9817
  if (input.Filters != null) {
9674
9818
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
9819
+ if (input.Filters?.length === 0) {
9820
+ entries.Filters = [];
9821
+ }
9675
9822
  Object.entries(memberEntries).forEach(([key, value]) => {
9676
9823
  const loc = `Filters.${key}`;
9677
9824
  entries[loc] = value;
@@ -9695,6 +9842,9 @@ const serializeAws_queryDescribeDBClusterBacktracksMessage = (input, context) =>
9695
9842
  }
9696
9843
  if (input.Filters != null) {
9697
9844
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
9845
+ if (input.Filters?.length === 0) {
9846
+ entries.Filters = [];
9847
+ }
9698
9848
  Object.entries(memberEntries).forEach(([key, value]) => {
9699
9849
  const loc = `Filters.${key}`;
9700
9850
  entries[loc] = value;
@@ -9718,6 +9868,9 @@ const serializeAws_queryDescribeDBClusterEndpointsMessage = (input, context) =>
9718
9868
  }
9719
9869
  if (input.Filters != null) {
9720
9870
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
9871
+ if (input.Filters?.length === 0) {
9872
+ entries.Filters = [];
9873
+ }
9721
9874
  Object.entries(memberEntries).forEach(([key, value]) => {
9722
9875
  const loc = `Filters.${key}`;
9723
9876
  entries[loc] = value;
@@ -9738,6 +9891,9 @@ const serializeAws_queryDescribeDBClusterParameterGroupsMessage = (input, contex
9738
9891
  }
9739
9892
  if (input.Filters != null) {
9740
9893
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
9894
+ if (input.Filters?.length === 0) {
9895
+ entries.Filters = [];
9896
+ }
9741
9897
  Object.entries(memberEntries).forEach(([key, value]) => {
9742
9898
  const loc = `Filters.${key}`;
9743
9899
  entries[loc] = value;
@@ -9761,6 +9917,9 @@ const serializeAws_queryDescribeDBClusterParametersMessage = (input, context) =>
9761
9917
  }
9762
9918
  if (input.Filters != null) {
9763
9919
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
9920
+ if (input.Filters?.length === 0) {
9921
+ entries.Filters = [];
9922
+ }
9764
9923
  Object.entries(memberEntries).forEach(([key, value]) => {
9765
9924
  const loc = `Filters.${key}`;
9766
9925
  entries[loc] = value;
@@ -9781,6 +9940,9 @@ const serializeAws_queryDescribeDBClustersMessage = (input, context) => {
9781
9940
  }
9782
9941
  if (input.Filters != null) {
9783
9942
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
9943
+ if (input.Filters?.length === 0) {
9944
+ entries.Filters = [];
9945
+ }
9784
9946
  Object.entries(memberEntries).forEach(([key, value]) => {
9785
9947
  const loc = `Filters.${key}`;
9786
9948
  entries[loc] = value;
@@ -9817,6 +9979,9 @@ const serializeAws_queryDescribeDBClusterSnapshotsMessage = (input, context) =>
9817
9979
  }
9818
9980
  if (input.Filters != null) {
9819
9981
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
9982
+ if (input.Filters?.length === 0) {
9983
+ entries.Filters = [];
9984
+ }
9820
9985
  Object.entries(memberEntries).forEach(([key, value]) => {
9821
9986
  const loc = `Filters.${key}`;
9822
9987
  entries[loc] = value;
@@ -9849,6 +10014,9 @@ const serializeAws_queryDescribeDBEngineVersionsMessage = (input, context) => {
9849
10014
  }
9850
10015
  if (input.Filters != null) {
9851
10016
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10017
+ if (input.Filters?.length === 0) {
10018
+ entries.Filters = [];
10019
+ }
9852
10020
  Object.entries(memberEntries).forEach(([key, value]) => {
9853
10021
  const loc = `Filters.${key}`;
9854
10022
  entries[loc] = value;
@@ -9884,6 +10052,9 @@ const serializeAws_queryDescribeDBInstanceAutomatedBackupsMessage = (input, cont
9884
10052
  }
9885
10053
  if (input.Filters != null) {
9886
10054
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10055
+ if (input.Filters?.length === 0) {
10056
+ entries.Filters = [];
10057
+ }
9887
10058
  Object.entries(memberEntries).forEach(([key, value]) => {
9888
10059
  const loc = `Filters.${key}`;
9889
10060
  entries[loc] = value;
@@ -9907,6 +10078,9 @@ const serializeAws_queryDescribeDBInstancesMessage = (input, context) => {
9907
10078
  }
9908
10079
  if (input.Filters != null) {
9909
10080
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10081
+ if (input.Filters?.length === 0) {
10082
+ entries.Filters = [];
10083
+ }
9910
10084
  Object.entries(memberEntries).forEach(([key, value]) => {
9911
10085
  const loc = `Filters.${key}`;
9912
10086
  entries[loc] = value;
@@ -9936,6 +10110,9 @@ const serializeAws_queryDescribeDBLogFilesMessage = (input, context) => {
9936
10110
  }
9937
10111
  if (input.Filters != null) {
9938
10112
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10113
+ if (input.Filters?.length === 0) {
10114
+ entries.Filters = [];
10115
+ }
9939
10116
  Object.entries(memberEntries).forEach(([key, value]) => {
9940
10117
  const loc = `Filters.${key}`;
9941
10118
  entries[loc] = value;
@@ -9956,6 +10133,9 @@ const serializeAws_queryDescribeDBParameterGroupsMessage = (input, context) => {
9956
10133
  }
9957
10134
  if (input.Filters != null) {
9958
10135
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10136
+ if (input.Filters?.length === 0) {
10137
+ entries.Filters = [];
10138
+ }
9959
10139
  Object.entries(memberEntries).forEach(([key, value]) => {
9960
10140
  const loc = `Filters.${key}`;
9961
10141
  entries[loc] = value;
@@ -9979,6 +10159,9 @@ const serializeAws_queryDescribeDBParametersMessage = (input, context) => {
9979
10159
  }
9980
10160
  if (input.Filters != null) {
9981
10161
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10162
+ if (input.Filters?.length === 0) {
10163
+ entries.Filters = [];
10164
+ }
9982
10165
  Object.entries(memberEntries).forEach(([key, value]) => {
9983
10166
  const loc = `Filters.${key}`;
9984
10167
  entries[loc] = value;
@@ -9999,6 +10182,9 @@ const serializeAws_queryDescribeDBProxiesRequest = (input, context) => {
9999
10182
  }
10000
10183
  if (input.Filters != null) {
10001
10184
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10185
+ if (input.Filters?.length === 0) {
10186
+ entries.Filters = [];
10187
+ }
10002
10188
  Object.entries(memberEntries).forEach(([key, value]) => {
10003
10189
  const loc = `Filters.${key}`;
10004
10190
  entries[loc] = value;
@@ -10022,6 +10208,9 @@ const serializeAws_queryDescribeDBProxyEndpointsRequest = (input, context) => {
10022
10208
  }
10023
10209
  if (input.Filters != null) {
10024
10210
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10211
+ if (input.Filters?.length === 0) {
10212
+ entries.Filters = [];
10213
+ }
10025
10214
  Object.entries(memberEntries).forEach(([key, value]) => {
10026
10215
  const loc = `Filters.${key}`;
10027
10216
  entries[loc] = value;
@@ -10045,6 +10234,9 @@ const serializeAws_queryDescribeDBProxyTargetGroupsRequest = (input, context) =>
10045
10234
  }
10046
10235
  if (input.Filters != null) {
10047
10236
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10237
+ if (input.Filters?.length === 0) {
10238
+ entries.Filters = [];
10239
+ }
10048
10240
  Object.entries(memberEntries).forEach(([key, value]) => {
10049
10241
  const loc = `Filters.${key}`;
10050
10242
  entries[loc] = value;
@@ -10068,6 +10260,9 @@ const serializeAws_queryDescribeDBProxyTargetsRequest = (input, context) => {
10068
10260
  }
10069
10261
  if (input.Filters != null) {
10070
10262
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10263
+ if (input.Filters?.length === 0) {
10264
+ entries.Filters = [];
10265
+ }
10071
10266
  Object.entries(memberEntries).forEach(([key, value]) => {
10072
10267
  const loc = `Filters.${key}`;
10073
10268
  entries[loc] = value;
@@ -10088,6 +10283,9 @@ const serializeAws_queryDescribeDBSecurityGroupsMessage = (input, context) => {
10088
10283
  }
10089
10284
  if (input.Filters != null) {
10090
10285
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10286
+ if (input.Filters?.length === 0) {
10287
+ entries.Filters = [];
10288
+ }
10091
10289
  Object.entries(memberEntries).forEach(([key, value]) => {
10092
10290
  const loc = `Filters.${key}`;
10093
10291
  entries[loc] = value;
@@ -10121,6 +10319,9 @@ const serializeAws_queryDescribeDBSnapshotsMessage = (input, context) => {
10121
10319
  }
10122
10320
  if (input.Filters != null) {
10123
10321
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10322
+ if (input.Filters?.length === 0) {
10323
+ entries.Filters = [];
10324
+ }
10124
10325
  Object.entries(memberEntries).forEach(([key, value]) => {
10125
10326
  const loc = `Filters.${key}`;
10126
10327
  entries[loc] = value;
@@ -10150,6 +10351,9 @@ const serializeAws_queryDescribeDBSubnetGroupsMessage = (input, context) => {
10150
10351
  }
10151
10352
  if (input.Filters != null) {
10152
10353
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10354
+ if (input.Filters?.length === 0) {
10355
+ entries.Filters = [];
10356
+ }
10153
10357
  Object.entries(memberEntries).forEach(([key, value]) => {
10154
10358
  const loc = `Filters.${key}`;
10155
10359
  entries[loc] = value;
@@ -10170,6 +10374,9 @@ const serializeAws_queryDescribeEngineDefaultClusterParametersMessage = (input,
10170
10374
  }
10171
10375
  if (input.Filters != null) {
10172
10376
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10377
+ if (input.Filters?.length === 0) {
10378
+ entries.Filters = [];
10379
+ }
10173
10380
  Object.entries(memberEntries).forEach(([key, value]) => {
10174
10381
  const loc = `Filters.${key}`;
10175
10382
  entries[loc] = value;
@@ -10190,6 +10397,9 @@ const serializeAws_queryDescribeEngineDefaultParametersMessage = (input, context
10190
10397
  }
10191
10398
  if (input.Filters != null) {
10192
10399
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10400
+ if (input.Filters?.length === 0) {
10401
+ entries.Filters = [];
10402
+ }
10193
10403
  Object.entries(memberEntries).forEach(([key, value]) => {
10194
10404
  const loc = `Filters.${key}`;
10195
10405
  entries[loc] = value;
@@ -10210,6 +10420,9 @@ const serializeAws_queryDescribeEventCategoriesMessage = (input, context) => {
10210
10420
  }
10211
10421
  if (input.Filters != null) {
10212
10422
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10423
+ if (input.Filters?.length === 0) {
10424
+ entries.Filters = [];
10425
+ }
10213
10426
  Object.entries(memberEntries).forEach(([key, value]) => {
10214
10427
  const loc = `Filters.${key}`;
10215
10428
  entries[loc] = value;
@@ -10236,6 +10449,9 @@ const serializeAws_queryDescribeEventsMessage = (input, context) => {
10236
10449
  }
10237
10450
  if (input.EventCategories != null) {
10238
10451
  const memberEntries = serializeAws_queryEventCategoriesList(input.EventCategories, context);
10452
+ if (input.EventCategories?.length === 0) {
10453
+ entries.EventCategories = [];
10454
+ }
10239
10455
  Object.entries(memberEntries).forEach(([key, value]) => {
10240
10456
  const loc = `EventCategories.${key}`;
10241
10457
  entries[loc] = value;
@@ -10243,6 +10459,9 @@ const serializeAws_queryDescribeEventsMessage = (input, context) => {
10243
10459
  }
10244
10460
  if (input.Filters != null) {
10245
10461
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10462
+ if (input.Filters?.length === 0) {
10463
+ entries.Filters = [];
10464
+ }
10246
10465
  Object.entries(memberEntries).forEach(([key, value]) => {
10247
10466
  const loc = `Filters.${key}`;
10248
10467
  entries[loc] = value;
@@ -10263,6 +10482,9 @@ const serializeAws_queryDescribeEventSubscriptionsMessage = (input, context) =>
10263
10482
  }
10264
10483
  if (input.Filters != null) {
10265
10484
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10485
+ if (input.Filters?.length === 0) {
10486
+ entries.Filters = [];
10487
+ }
10266
10488
  Object.entries(memberEntries).forEach(([key, value]) => {
10267
10489
  const loc = `Filters.${key}`;
10268
10490
  entries[loc] = value;
@@ -10286,6 +10508,9 @@ const serializeAws_queryDescribeExportTasksMessage = (input, context) => {
10286
10508
  }
10287
10509
  if (input.Filters != null) {
10288
10510
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10511
+ if (input.Filters?.length === 0) {
10512
+ entries.Filters = [];
10513
+ }
10289
10514
  Object.entries(memberEntries).forEach(([key, value]) => {
10290
10515
  const loc = `Filters.${key}`;
10291
10516
  entries[loc] = value;
@@ -10309,6 +10534,9 @@ const serializeAws_queryDescribeGlobalClustersMessage = (input, context) => {
10309
10534
  }
10310
10535
  if (input.Filters != null) {
10311
10536
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10537
+ if (input.Filters?.length === 0) {
10538
+ entries.Filters = [];
10539
+ }
10312
10540
  Object.entries(memberEntries).forEach(([key, value]) => {
10313
10541
  const loc = `Filters.${key}`;
10314
10542
  entries[loc] = value;
@@ -10332,6 +10560,9 @@ const serializeAws_queryDescribeOptionGroupOptionsMessage = (input, context) =>
10332
10560
  }
10333
10561
  if (input.Filters != null) {
10334
10562
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10563
+ if (input.Filters?.length === 0) {
10564
+ entries.Filters = [];
10565
+ }
10335
10566
  Object.entries(memberEntries).forEach(([key, value]) => {
10336
10567
  const loc = `Filters.${key}`;
10337
10568
  entries[loc] = value;
@@ -10352,6 +10583,9 @@ const serializeAws_queryDescribeOptionGroupsMessage = (input, context) => {
10352
10583
  }
10353
10584
  if (input.Filters != null) {
10354
10585
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10586
+ if (input.Filters?.length === 0) {
10587
+ entries.Filters = [];
10588
+ }
10355
10589
  Object.entries(memberEntries).forEach(([key, value]) => {
10356
10590
  const loc = `Filters.${key}`;
10357
10591
  entries[loc] = value;
@@ -10393,6 +10627,9 @@ const serializeAws_queryDescribeOrderableDBInstanceOptionsMessage = (input, cont
10393
10627
  }
10394
10628
  if (input.Filters != null) {
10395
10629
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10630
+ if (input.Filters?.length === 0) {
10631
+ entries.Filters = [];
10632
+ }
10396
10633
  Object.entries(memberEntries).forEach(([key, value]) => {
10397
10634
  const loc = `Filters.${key}`;
10398
10635
  entries[loc] = value;
@@ -10413,6 +10650,9 @@ const serializeAws_queryDescribePendingMaintenanceActionsMessage = (input, conte
10413
10650
  }
10414
10651
  if (input.Filters != null) {
10415
10652
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10653
+ if (input.Filters?.length === 0) {
10654
+ entries.Filters = [];
10655
+ }
10416
10656
  Object.entries(memberEntries).forEach(([key, value]) => {
10417
10657
  const loc = `Filters.${key}`;
10418
10658
  entries[loc] = value;
@@ -10454,6 +10694,9 @@ const serializeAws_queryDescribeReservedDBInstancesMessage = (input, context) =>
10454
10694
  }
10455
10695
  if (input.Filters != null) {
10456
10696
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10697
+ if (input.Filters?.length === 0) {
10698
+ entries.Filters = [];
10699
+ }
10457
10700
  Object.entries(memberEntries).forEach(([key, value]) => {
10458
10701
  const loc = `Filters.${key}`;
10459
10702
  entries[loc] = value;
@@ -10489,6 +10732,9 @@ const serializeAws_queryDescribeReservedDBInstancesOfferingsMessage = (input, co
10489
10732
  }
10490
10733
  if (input.Filters != null) {
10491
10734
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10735
+ if (input.Filters?.length === 0) {
10736
+ entries.Filters = [];
10737
+ }
10492
10738
  Object.entries(memberEntries).forEach(([key, value]) => {
10493
10739
  const loc = `Filters.${key}`;
10494
10740
  entries[loc] = value;
@@ -10515,6 +10761,9 @@ const serializeAws_queryDescribeSourceRegionsMessage = (input, context) => {
10515
10761
  }
10516
10762
  if (input.Filters != null) {
10517
10763
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10764
+ if (input.Filters?.length === 0) {
10765
+ entries.Filters = [];
10766
+ }
10518
10767
  Object.entries(memberEntries).forEach(([key, value]) => {
10519
10768
  const loc = `Filters.${key}`;
10520
10769
  entries[loc] = value;
@@ -10596,6 +10845,9 @@ const serializeAws_queryFilter = (input, context) => {
10596
10845
  }
10597
10846
  if (input.Values != null) {
10598
10847
  const memberEntries = serializeAws_queryFilterValueList(input.Values, context);
10848
+ if (input.Values?.length === 0) {
10849
+ entries.Values = [];
10850
+ }
10599
10851
  Object.entries(memberEntries).forEach(([key, value]) => {
10600
10852
  const loc = `Values.${key}`;
10601
10853
  entries[loc] = value;
@@ -10649,6 +10901,9 @@ const serializeAws_queryListTagsForResourceMessage = (input, context) => {
10649
10901
  }
10650
10902
  if (input.Filters != null) {
10651
10903
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
10904
+ if (input.Filters?.length === 0) {
10905
+ entries.Filters = [];
10906
+ }
10652
10907
  Object.entries(memberEntries).forEach(([key, value]) => {
10653
10908
  const loc = `Filters.${key}`;
10654
10909
  entries[loc] = value;
@@ -10730,6 +10985,9 @@ const serializeAws_queryModifyDBClusterEndpointMessage = (input, context) => {
10730
10985
  }
10731
10986
  if (input.StaticMembers != null) {
10732
10987
  const memberEntries = serializeAws_queryStringList(input.StaticMembers, context);
10988
+ if (input.StaticMembers?.length === 0) {
10989
+ entries.StaticMembers = [];
10990
+ }
10733
10991
  Object.entries(memberEntries).forEach(([key, value]) => {
10734
10992
  const loc = `StaticMembers.${key}`;
10735
10993
  entries[loc] = value;
@@ -10737,6 +10995,9 @@ const serializeAws_queryModifyDBClusterEndpointMessage = (input, context) => {
10737
10995
  }
10738
10996
  if (input.ExcludedMembers != null) {
10739
10997
  const memberEntries = serializeAws_queryStringList(input.ExcludedMembers, context);
10998
+ if (input.ExcludedMembers?.length === 0) {
10999
+ entries.ExcludedMembers = [];
11000
+ }
10740
11001
  Object.entries(memberEntries).forEach(([key, value]) => {
10741
11002
  const loc = `ExcludedMembers.${key}`;
10742
11003
  entries[loc] = value;
@@ -10763,6 +11024,9 @@ const serializeAws_queryModifyDBClusterMessage = (input, context) => {
10763
11024
  }
10764
11025
  if (input.VpcSecurityGroupIds != null) {
10765
11026
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
11027
+ if (input.VpcSecurityGroupIds?.length === 0) {
11028
+ entries.VpcSecurityGroupIds = [];
11029
+ }
10766
11030
  Object.entries(memberEntries).forEach(([key, value]) => {
10767
11031
  const loc = `VpcSecurityGroupIds.${key}`;
10768
11032
  entries[loc] = value;
@@ -10879,6 +11143,9 @@ const serializeAws_queryModifyDBClusterParameterGroupMessage = (input, context)
10879
11143
  }
10880
11144
  if (input.Parameters != null) {
10881
11145
  const memberEntries = serializeAws_queryParametersList(input.Parameters, context);
11146
+ if (input.Parameters?.length === 0) {
11147
+ entries.Parameters = [];
11148
+ }
10882
11149
  Object.entries(memberEntries).forEach(([key, value]) => {
10883
11150
  const loc = `Parameters.${key}`;
10884
11151
  entries[loc] = value;
@@ -10896,6 +11163,9 @@ const serializeAws_queryModifyDBClusterSnapshotAttributeMessage = (input, contex
10896
11163
  }
10897
11164
  if (input.ValuesToAdd != null) {
10898
11165
  const memberEntries = serializeAws_queryAttributeValueList(input.ValuesToAdd, context);
11166
+ if (input.ValuesToAdd?.length === 0) {
11167
+ entries.ValuesToAdd = [];
11168
+ }
10899
11169
  Object.entries(memberEntries).forEach(([key, value]) => {
10900
11170
  const loc = `ValuesToAdd.${key}`;
10901
11171
  entries[loc] = value;
@@ -10903,6 +11173,9 @@ const serializeAws_queryModifyDBClusterSnapshotAttributeMessage = (input, contex
10903
11173
  }
10904
11174
  if (input.ValuesToRemove != null) {
10905
11175
  const memberEntries = serializeAws_queryAttributeValueList(input.ValuesToRemove, context);
11176
+ if (input.ValuesToRemove?.length === 0) {
11177
+ entries.ValuesToRemove = [];
11178
+ }
10906
11179
  Object.entries(memberEntries).forEach(([key, value]) => {
10907
11180
  const loc = `ValuesToRemove.${key}`;
10908
11181
  entries[loc] = value;
@@ -10926,6 +11199,9 @@ const serializeAws_queryModifyDBInstanceMessage = (input, context) => {
10926
11199
  }
10927
11200
  if (input.DBSecurityGroups != null) {
10928
11201
  const memberEntries = serializeAws_queryDBSecurityGroupNameList(input.DBSecurityGroups, context);
11202
+ if (input.DBSecurityGroups?.length === 0) {
11203
+ entries.DBSecurityGroups = [];
11204
+ }
10929
11205
  Object.entries(memberEntries).forEach(([key, value]) => {
10930
11206
  const loc = `DBSecurityGroups.${key}`;
10931
11207
  entries[loc] = value;
@@ -10933,6 +11209,9 @@ const serializeAws_queryModifyDBInstanceMessage = (input, context) => {
10933
11209
  }
10934
11210
  if (input.VpcSecurityGroupIds != null) {
10935
11211
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
11212
+ if (input.VpcSecurityGroupIds?.length === 0) {
11213
+ entries.VpcSecurityGroupIds = [];
11214
+ }
10936
11215
  Object.entries(memberEntries).forEach(([key, value]) => {
10937
11216
  const loc = `VpcSecurityGroupIds.${key}`;
10938
11217
  entries[loc] = value;
@@ -11037,6 +11316,9 @@ const serializeAws_queryModifyDBInstanceMessage = (input, context) => {
11037
11316
  }
11038
11317
  if (input.ProcessorFeatures != null) {
11039
11318
  const memberEntries = serializeAws_queryProcessorFeatureList(input.ProcessorFeatures, context);
11319
+ if (input.ProcessorFeatures?.length === 0) {
11320
+ entries.ProcessorFeatures = [];
11321
+ }
11040
11322
  Object.entries(memberEntries).forEach(([key, value]) => {
11041
11323
  const loc = `ProcessorFeatures.${key}`;
11042
11324
  entries[loc] = value;
@@ -11072,6 +11354,9 @@ const serializeAws_queryModifyDBInstanceMessage = (input, context) => {
11072
11354
  if (input.NetworkType != null) {
11073
11355
  entries["NetworkType"] = input.NetworkType;
11074
11356
  }
11357
+ if (input.StorageThroughput != null) {
11358
+ entries["StorageThroughput"] = input.StorageThroughput;
11359
+ }
11075
11360
  return entries;
11076
11361
  };
11077
11362
  const serializeAws_queryModifyDBParameterGroupMessage = (input, context) => {
@@ -11081,6 +11366,9 @@ const serializeAws_queryModifyDBParameterGroupMessage = (input, context) => {
11081
11366
  }
11082
11367
  if (input.Parameters != null) {
11083
11368
  const memberEntries = serializeAws_queryParametersList(input.Parameters, context);
11369
+ if (input.Parameters?.length === 0) {
11370
+ entries.Parameters = [];
11371
+ }
11084
11372
  Object.entries(memberEntries).forEach(([key, value]) => {
11085
11373
  const loc = `Parameters.${key}`;
11086
11374
  entries[loc] = value;
@@ -11098,6 +11386,9 @@ const serializeAws_queryModifyDBProxyEndpointRequest = (input, context) => {
11098
11386
  }
11099
11387
  if (input.VpcSecurityGroupIds != null) {
11100
11388
  const memberEntries = serializeAws_queryStringList(input.VpcSecurityGroupIds, context);
11389
+ if (input.VpcSecurityGroupIds?.length === 0) {
11390
+ entries.VpcSecurityGroupIds = [];
11391
+ }
11101
11392
  Object.entries(memberEntries).forEach(([key, value]) => {
11102
11393
  const loc = `VpcSecurityGroupIds.${key}`;
11103
11394
  entries[loc] = value;
@@ -11115,6 +11406,9 @@ const serializeAws_queryModifyDBProxyRequest = (input, context) => {
11115
11406
  }
11116
11407
  if (input.Auth != null) {
11117
11408
  const memberEntries = serializeAws_queryUserAuthConfigList(input.Auth, context);
11409
+ if (input.Auth?.length === 0) {
11410
+ entries.Auth = [];
11411
+ }
11118
11412
  Object.entries(memberEntries).forEach(([key, value]) => {
11119
11413
  const loc = `Auth.${key}`;
11120
11414
  entries[loc] = value;
@@ -11134,6 +11428,9 @@ const serializeAws_queryModifyDBProxyRequest = (input, context) => {
11134
11428
  }
11135
11429
  if (input.SecurityGroups != null) {
11136
11430
  const memberEntries = serializeAws_queryStringList(input.SecurityGroups, context);
11431
+ if (input.SecurityGroups?.length === 0) {
11432
+ entries.SecurityGroups = [];
11433
+ }
11137
11434
  Object.entries(memberEntries).forEach(([key, value]) => {
11138
11435
  const loc = `SecurityGroups.${key}`;
11139
11436
  entries[loc] = value;
@@ -11171,6 +11468,9 @@ const serializeAws_queryModifyDBSnapshotAttributeMessage = (input, context) => {
11171
11468
  }
11172
11469
  if (input.ValuesToAdd != null) {
11173
11470
  const memberEntries = serializeAws_queryAttributeValueList(input.ValuesToAdd, context);
11471
+ if (input.ValuesToAdd?.length === 0) {
11472
+ entries.ValuesToAdd = [];
11473
+ }
11174
11474
  Object.entries(memberEntries).forEach(([key, value]) => {
11175
11475
  const loc = `ValuesToAdd.${key}`;
11176
11476
  entries[loc] = value;
@@ -11178,6 +11478,9 @@ const serializeAws_queryModifyDBSnapshotAttributeMessage = (input, context) => {
11178
11478
  }
11179
11479
  if (input.ValuesToRemove != null) {
11180
11480
  const memberEntries = serializeAws_queryAttributeValueList(input.ValuesToRemove, context);
11481
+ if (input.ValuesToRemove?.length === 0) {
11482
+ entries.ValuesToRemove = [];
11483
+ }
11181
11484
  Object.entries(memberEntries).forEach(([key, value]) => {
11182
11485
  const loc = `ValuesToRemove.${key}`;
11183
11486
  entries[loc] = value;
@@ -11208,6 +11511,9 @@ const serializeAws_queryModifyDBSubnetGroupMessage = (input, context) => {
11208
11511
  }
11209
11512
  if (input.SubnetIds != null) {
11210
11513
  const memberEntries = serializeAws_querySubnetIdentifierList(input.SubnetIds, context);
11514
+ if (input.SubnetIds?.length === 0) {
11515
+ entries.SubnetIds = [];
11516
+ }
11211
11517
  Object.entries(memberEntries).forEach(([key, value]) => {
11212
11518
  const loc = `SubnetIds.${key}`;
11213
11519
  entries[loc] = value;
@@ -11228,6 +11534,9 @@ const serializeAws_queryModifyEventSubscriptionMessage = (input, context) => {
11228
11534
  }
11229
11535
  if (input.EventCategories != null) {
11230
11536
  const memberEntries = serializeAws_queryEventCategoriesList(input.EventCategories, context);
11537
+ if (input.EventCategories?.length === 0) {
11538
+ entries.EventCategories = [];
11539
+ }
11231
11540
  Object.entries(memberEntries).forEach(([key, value]) => {
11232
11541
  const loc = `EventCategories.${key}`;
11233
11542
  entries[loc] = value;
@@ -11264,6 +11573,9 @@ const serializeAws_queryModifyOptionGroupMessage = (input, context) => {
11264
11573
  }
11265
11574
  if (input.OptionsToInclude != null) {
11266
11575
  const memberEntries = serializeAws_queryOptionConfigurationList(input.OptionsToInclude, context);
11576
+ if (input.OptionsToInclude?.length === 0) {
11577
+ entries.OptionsToInclude = [];
11578
+ }
11267
11579
  Object.entries(memberEntries).forEach(([key, value]) => {
11268
11580
  const loc = `OptionsToInclude.${key}`;
11269
11581
  entries[loc] = value;
@@ -11271,6 +11583,9 @@ const serializeAws_queryModifyOptionGroupMessage = (input, context) => {
11271
11583
  }
11272
11584
  if (input.OptionsToRemove != null) {
11273
11585
  const memberEntries = serializeAws_queryOptionNamesList(input.OptionsToRemove, context);
11586
+ if (input.OptionsToRemove?.length === 0) {
11587
+ entries.OptionsToRemove = [];
11588
+ }
11274
11589
  Object.entries(memberEntries).forEach(([key, value]) => {
11275
11590
  const loc = `OptionsToRemove.${key}`;
11276
11591
  entries[loc] = value;
@@ -11294,6 +11609,9 @@ const serializeAws_queryOptionConfiguration = (input, context) => {
11294
11609
  }
11295
11610
  if (input.DBSecurityGroupMemberships != null) {
11296
11611
  const memberEntries = serializeAws_queryDBSecurityGroupNameList(input.DBSecurityGroupMemberships, context);
11612
+ if (input.DBSecurityGroupMemberships?.length === 0) {
11613
+ entries.DBSecurityGroupMemberships = [];
11614
+ }
11297
11615
  Object.entries(memberEntries).forEach(([key, value]) => {
11298
11616
  const loc = `DBSecurityGroupMemberships.${key}`;
11299
11617
  entries[loc] = value;
@@ -11301,6 +11619,9 @@ const serializeAws_queryOptionConfiguration = (input, context) => {
11301
11619
  }
11302
11620
  if (input.VpcSecurityGroupMemberships != null) {
11303
11621
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupMemberships, context);
11622
+ if (input.VpcSecurityGroupMemberships?.length === 0) {
11623
+ entries.VpcSecurityGroupMemberships = [];
11624
+ }
11304
11625
  Object.entries(memberEntries).forEach(([key, value]) => {
11305
11626
  const loc = `VpcSecurityGroupMemberships.${key}`;
11306
11627
  entries[loc] = value;
@@ -11308,6 +11629,9 @@ const serializeAws_queryOptionConfiguration = (input, context) => {
11308
11629
  }
11309
11630
  if (input.OptionSettings != null) {
11310
11631
  const memberEntries = serializeAws_queryOptionSettingsList(input.OptionSettings, context);
11632
+ if (input.OptionSettings?.length === 0) {
11633
+ entries.OptionSettings = [];
11634
+ }
11311
11635
  Object.entries(memberEntries).forEach(([key, value]) => {
11312
11636
  const loc = `OptionSettings.${key}`;
11313
11637
  entries[loc] = value;
@@ -11422,6 +11746,9 @@ const serializeAws_queryParameter = (input, context) => {
11422
11746
  }
11423
11747
  if (input.SupportedEngineModes != null) {
11424
11748
  const memberEntries = serializeAws_queryEngineModeList(input.SupportedEngineModes, context);
11749
+ if (input.SupportedEngineModes?.length === 0) {
11750
+ entries.SupportedEngineModes = [];
11751
+ }
11425
11752
  Object.entries(memberEntries).forEach(([key, value]) => {
11426
11753
  const loc = `SupportedEngineModes.${key}`;
11427
11754
  entries[loc] = value;
@@ -11502,6 +11829,9 @@ const serializeAws_queryPurchaseReservedDBInstancesOfferingMessage = (input, con
11502
11829
  }
11503
11830
  if (input.Tags != null) {
11504
11831
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
11832
+ if (input.Tags?.length === 0) {
11833
+ entries.Tags = [];
11834
+ }
11505
11835
  Object.entries(memberEntries).forEach(([key, value]) => {
11506
11836
  const loc = `Tags.${key}`;
11507
11837
  entries[loc] = value;
@@ -11536,6 +11866,9 @@ const serializeAws_queryRegisterDBProxyTargetsRequest = (input, context) => {
11536
11866
  }
11537
11867
  if (input.DBInstanceIdentifiers != null) {
11538
11868
  const memberEntries = serializeAws_queryStringList(input.DBInstanceIdentifiers, context);
11869
+ if (input.DBInstanceIdentifiers?.length === 0) {
11870
+ entries.DBInstanceIdentifiers = [];
11871
+ }
11539
11872
  Object.entries(memberEntries).forEach(([key, value]) => {
11540
11873
  const loc = `DBInstanceIdentifiers.${key}`;
11541
11874
  entries[loc] = value;
@@ -11543,6 +11876,9 @@ const serializeAws_queryRegisterDBProxyTargetsRequest = (input, context) => {
11543
11876
  }
11544
11877
  if (input.DBClusterIdentifiers != null) {
11545
11878
  const memberEntries = serializeAws_queryStringList(input.DBClusterIdentifiers, context);
11879
+ if (input.DBClusterIdentifiers?.length === 0) {
11880
+ entries.DBClusterIdentifiers = [];
11881
+ }
11546
11882
  Object.entries(memberEntries).forEach(([key, value]) => {
11547
11883
  const loc = `DBClusterIdentifiers.${key}`;
11548
11884
  entries[loc] = value;
@@ -11603,6 +11939,9 @@ const serializeAws_queryRemoveTagsFromResourceMessage = (input, context) => {
11603
11939
  }
11604
11940
  if (input.TagKeys != null) {
11605
11941
  const memberEntries = serializeAws_queryKeyList(input.TagKeys, context);
11942
+ if (input.TagKeys?.length === 0) {
11943
+ entries.TagKeys = [];
11944
+ }
11606
11945
  Object.entries(memberEntries).forEach(([key, value]) => {
11607
11946
  const loc = `TagKeys.${key}`;
11608
11947
  entries[loc] = value;
@@ -11620,6 +11959,9 @@ const serializeAws_queryResetDBClusterParameterGroupMessage = (input, context) =
11620
11959
  }
11621
11960
  if (input.Parameters != null) {
11622
11961
  const memberEntries = serializeAws_queryParametersList(input.Parameters, context);
11962
+ if (input.Parameters?.length === 0) {
11963
+ entries.Parameters = [];
11964
+ }
11623
11965
  Object.entries(memberEntries).forEach(([key, value]) => {
11624
11966
  const loc = `Parameters.${key}`;
11625
11967
  entries[loc] = value;
@@ -11637,6 +11979,9 @@ const serializeAws_queryResetDBParameterGroupMessage = (input, context) => {
11637
11979
  }
11638
11980
  if (input.Parameters != null) {
11639
11981
  const memberEntries = serializeAws_queryParametersList(input.Parameters, context);
11982
+ if (input.Parameters?.length === 0) {
11983
+ entries.Parameters = [];
11984
+ }
11640
11985
  Object.entries(memberEntries).forEach(([key, value]) => {
11641
11986
  const loc = `Parameters.${key}`;
11642
11987
  entries[loc] = value;
@@ -11648,6 +11993,9 @@ const serializeAws_queryRestoreDBClusterFromS3Message = (input, context) => {
11648
11993
  const entries = {};
11649
11994
  if (input.AvailabilityZones != null) {
11650
11995
  const memberEntries = serializeAws_queryAvailabilityZones(input.AvailabilityZones, context);
11996
+ if (input.AvailabilityZones?.length === 0) {
11997
+ entries.AvailabilityZones = [];
11998
+ }
11651
11999
  Object.entries(memberEntries).forEach(([key, value]) => {
11652
12000
  const loc = `AvailabilityZones.${key}`;
11653
12001
  entries[loc] = value;
@@ -11670,6 +12018,9 @@ const serializeAws_queryRestoreDBClusterFromS3Message = (input, context) => {
11670
12018
  }
11671
12019
  if (input.VpcSecurityGroupIds != null) {
11672
12020
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
12021
+ if (input.VpcSecurityGroupIds?.length === 0) {
12022
+ entries.VpcSecurityGroupIds = [];
12023
+ }
11673
12024
  Object.entries(memberEntries).forEach(([key, value]) => {
11674
12025
  const loc = `VpcSecurityGroupIds.${key}`;
11675
12026
  entries[loc] = value;
@@ -11704,6 +12055,9 @@ const serializeAws_queryRestoreDBClusterFromS3Message = (input, context) => {
11704
12055
  }
11705
12056
  if (input.Tags != null) {
11706
12057
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
12058
+ if (input.Tags?.length === 0) {
12059
+ entries.Tags = [];
12060
+ }
11707
12061
  Object.entries(memberEntries).forEach(([key, value]) => {
11708
12062
  const loc = `Tags.${key}`;
11709
12063
  entries[loc] = value;
@@ -11738,6 +12092,9 @@ const serializeAws_queryRestoreDBClusterFromS3Message = (input, context) => {
11738
12092
  }
11739
12093
  if (input.EnableCloudwatchLogsExports != null) {
11740
12094
  const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
12095
+ if (input.EnableCloudwatchLogsExports?.length === 0) {
12096
+ entries.EnableCloudwatchLogsExports = [];
12097
+ }
11741
12098
  Object.entries(memberEntries).forEach(([key, value]) => {
11742
12099
  const loc = `EnableCloudwatchLogsExports.${key}`;
11743
12100
  entries[loc] = value;
@@ -11771,6 +12128,9 @@ const serializeAws_queryRestoreDBClusterFromSnapshotMessage = (input, context) =
11771
12128
  const entries = {};
11772
12129
  if (input.AvailabilityZones != null) {
11773
12130
  const memberEntries = serializeAws_queryAvailabilityZones(input.AvailabilityZones, context);
12131
+ if (input.AvailabilityZones?.length === 0) {
12132
+ entries.AvailabilityZones = [];
12133
+ }
11774
12134
  Object.entries(memberEntries).forEach(([key, value]) => {
11775
12135
  const loc = `AvailabilityZones.${key}`;
11776
12136
  entries[loc] = value;
@@ -11802,6 +12162,9 @@ const serializeAws_queryRestoreDBClusterFromSnapshotMessage = (input, context) =
11802
12162
  }
11803
12163
  if (input.VpcSecurityGroupIds != null) {
11804
12164
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
12165
+ if (input.VpcSecurityGroupIds?.length === 0) {
12166
+ entries.VpcSecurityGroupIds = [];
12167
+ }
11805
12168
  Object.entries(memberEntries).forEach(([key, value]) => {
11806
12169
  const loc = `VpcSecurityGroupIds.${key}`;
11807
12170
  entries[loc] = value;
@@ -11809,6 +12172,9 @@ const serializeAws_queryRestoreDBClusterFromSnapshotMessage = (input, context) =
11809
12172
  }
11810
12173
  if (input.Tags != null) {
11811
12174
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
12175
+ if (input.Tags?.length === 0) {
12176
+ entries.Tags = [];
12177
+ }
11812
12178
  Object.entries(memberEntries).forEach(([key, value]) => {
11813
12179
  const loc = `Tags.${key}`;
11814
12180
  entries[loc] = value;
@@ -11825,6 +12191,9 @@ const serializeAws_queryRestoreDBClusterFromSnapshotMessage = (input, context) =
11825
12191
  }
11826
12192
  if (input.EnableCloudwatchLogsExports != null) {
11827
12193
  const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
12194
+ if (input.EnableCloudwatchLogsExports?.length === 0) {
12195
+ entries.EnableCloudwatchLogsExports = [];
12196
+ }
11828
12197
  Object.entries(memberEntries).forEach(([key, value]) => {
11829
12198
  const loc = `EnableCloudwatchLogsExports.${key}`;
11830
12199
  entries[loc] = value;
@@ -11907,6 +12276,9 @@ const serializeAws_queryRestoreDBClusterToPointInTimeMessage = (input, context)
11907
12276
  }
11908
12277
  if (input.VpcSecurityGroupIds != null) {
11909
12278
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
12279
+ if (input.VpcSecurityGroupIds?.length === 0) {
12280
+ entries.VpcSecurityGroupIds = [];
12281
+ }
11910
12282
  Object.entries(memberEntries).forEach(([key, value]) => {
11911
12283
  const loc = `VpcSecurityGroupIds.${key}`;
11912
12284
  entries[loc] = value;
@@ -11914,6 +12286,9 @@ const serializeAws_queryRestoreDBClusterToPointInTimeMessage = (input, context)
11914
12286
  }
11915
12287
  if (input.Tags != null) {
11916
12288
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
12289
+ if (input.Tags?.length === 0) {
12290
+ entries.Tags = [];
12291
+ }
11917
12292
  Object.entries(memberEntries).forEach(([key, value]) => {
11918
12293
  const loc = `Tags.${key}`;
11919
12294
  entries[loc] = value;
@@ -11930,6 +12305,9 @@ const serializeAws_queryRestoreDBClusterToPointInTimeMessage = (input, context)
11930
12305
  }
11931
12306
  if (input.EnableCloudwatchLogsExports != null) {
11932
12307
  const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
12308
+ if (input.EnableCloudwatchLogsExports?.length === 0) {
12309
+ entries.EnableCloudwatchLogsExports = [];
12310
+ }
11933
12311
  Object.entries(memberEntries).forEach(([key, value]) => {
11934
12312
  const loc = `EnableCloudwatchLogsExports.${key}`;
11935
12313
  entries[loc] = value;
@@ -12030,6 +12408,9 @@ const serializeAws_queryRestoreDBInstanceFromDBSnapshotMessage = (input, context
12030
12408
  }
12031
12409
  if (input.Tags != null) {
12032
12410
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
12411
+ if (input.Tags?.length === 0) {
12412
+ entries.Tags = [];
12413
+ }
12033
12414
  Object.entries(memberEntries).forEach(([key, value]) => {
12034
12415
  const loc = `Tags.${key}`;
12035
12416
  entries[loc] = value;
@@ -12046,6 +12427,9 @@ const serializeAws_queryRestoreDBInstanceFromDBSnapshotMessage = (input, context
12046
12427
  }
12047
12428
  if (input.VpcSecurityGroupIds != null) {
12048
12429
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
12430
+ if (input.VpcSecurityGroupIds?.length === 0) {
12431
+ entries.VpcSecurityGroupIds = [];
12432
+ }
12049
12433
  Object.entries(memberEntries).forEach(([key, value]) => {
12050
12434
  const loc = `VpcSecurityGroupIds.${key}`;
12051
12435
  entries[loc] = value;
@@ -12065,6 +12449,9 @@ const serializeAws_queryRestoreDBInstanceFromDBSnapshotMessage = (input, context
12065
12449
  }
12066
12450
  if (input.EnableCloudwatchLogsExports != null) {
12067
12451
  const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
12452
+ if (input.EnableCloudwatchLogsExports?.length === 0) {
12453
+ entries.EnableCloudwatchLogsExports = [];
12454
+ }
12068
12455
  Object.entries(memberEntries).forEach(([key, value]) => {
12069
12456
  const loc = `EnableCloudwatchLogsExports.${key}`;
12070
12457
  entries[loc] = value;
@@ -12072,6 +12459,9 @@ const serializeAws_queryRestoreDBInstanceFromDBSnapshotMessage = (input, context
12072
12459
  }
12073
12460
  if (input.ProcessorFeatures != null) {
12074
12461
  const memberEntries = serializeAws_queryProcessorFeatureList(input.ProcessorFeatures, context);
12462
+ if (input.ProcessorFeatures?.length === 0) {
12463
+ entries.ProcessorFeatures = [];
12464
+ }
12075
12465
  Object.entries(memberEntries).forEach(([key, value]) => {
12076
12466
  const loc = `ProcessorFeatures.${key}`;
12077
12467
  entries[loc] = value;
@@ -12098,6 +12488,9 @@ const serializeAws_queryRestoreDBInstanceFromDBSnapshotMessage = (input, context
12098
12488
  if (input.NetworkType != null) {
12099
12489
  entries["NetworkType"] = input.NetworkType;
12100
12490
  }
12491
+ if (input.StorageThroughput != null) {
12492
+ entries["StorageThroughput"] = input.StorageThroughput;
12493
+ }
12101
12494
  return entries;
12102
12495
  };
12103
12496
  const serializeAws_queryRestoreDBInstanceFromS3Message = (input, context) => {
@@ -12125,6 +12518,9 @@ const serializeAws_queryRestoreDBInstanceFromS3Message = (input, context) => {
12125
12518
  }
12126
12519
  if (input.DBSecurityGroups != null) {
12127
12520
  const memberEntries = serializeAws_queryDBSecurityGroupNameList(input.DBSecurityGroups, context);
12521
+ if (input.DBSecurityGroups?.length === 0) {
12522
+ entries.DBSecurityGroups = [];
12523
+ }
12128
12524
  Object.entries(memberEntries).forEach(([key, value]) => {
12129
12525
  const loc = `DBSecurityGroups.${key}`;
12130
12526
  entries[loc] = value;
@@ -12132,6 +12528,9 @@ const serializeAws_queryRestoreDBInstanceFromS3Message = (input, context) => {
12132
12528
  }
12133
12529
  if (input.VpcSecurityGroupIds != null) {
12134
12530
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
12531
+ if (input.VpcSecurityGroupIds?.length === 0) {
12532
+ entries.VpcSecurityGroupIds = [];
12533
+ }
12135
12534
  Object.entries(memberEntries).forEach(([key, value]) => {
12136
12535
  const loc = `VpcSecurityGroupIds.${key}`;
12137
12536
  entries[loc] = value;
@@ -12181,6 +12580,9 @@ const serializeAws_queryRestoreDBInstanceFromS3Message = (input, context) => {
12181
12580
  }
12182
12581
  if (input.Tags != null) {
12183
12582
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
12583
+ if (input.Tags?.length === 0) {
12584
+ entries.Tags = [];
12585
+ }
12184
12586
  Object.entries(memberEntries).forEach(([key, value]) => {
12185
12587
  const loc = `Tags.${key}`;
12186
12588
  entries[loc] = value;
@@ -12233,6 +12635,9 @@ const serializeAws_queryRestoreDBInstanceFromS3Message = (input, context) => {
12233
12635
  }
12234
12636
  if (input.EnableCloudwatchLogsExports != null) {
12235
12637
  const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
12638
+ if (input.EnableCloudwatchLogsExports?.length === 0) {
12639
+ entries.EnableCloudwatchLogsExports = [];
12640
+ }
12236
12641
  Object.entries(memberEntries).forEach(([key, value]) => {
12237
12642
  const loc = `EnableCloudwatchLogsExports.${key}`;
12238
12643
  entries[loc] = value;
@@ -12240,6 +12645,9 @@ const serializeAws_queryRestoreDBInstanceFromS3Message = (input, context) => {
12240
12645
  }
12241
12646
  if (input.ProcessorFeatures != null) {
12242
12647
  const memberEntries = serializeAws_queryProcessorFeatureList(input.ProcessorFeatures, context);
12648
+ if (input.ProcessorFeatures?.length === 0) {
12649
+ entries.ProcessorFeatures = [];
12650
+ }
12243
12651
  Object.entries(memberEntries).forEach(([key, value]) => {
12244
12652
  const loc = `ProcessorFeatures.${key}`;
12245
12653
  entries[loc] = value;
@@ -12257,6 +12665,9 @@ const serializeAws_queryRestoreDBInstanceFromS3Message = (input, context) => {
12257
12665
  if (input.NetworkType != null) {
12258
12666
  entries["NetworkType"] = input.NetworkType;
12259
12667
  }
12668
+ if (input.StorageThroughput != null) {
12669
+ entries["StorageThroughput"] = input.StorageThroughput;
12670
+ }
12260
12671
  return entries;
12261
12672
  };
12262
12673
  const serializeAws_queryRestoreDBInstanceToPointInTimeMessage = (input, context) => {
@@ -12314,6 +12725,9 @@ const serializeAws_queryRestoreDBInstanceToPointInTimeMessage = (input, context)
12314
12725
  }
12315
12726
  if (input.Tags != null) {
12316
12727
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
12728
+ if (input.Tags?.length === 0) {
12729
+ entries.Tags = [];
12730
+ }
12317
12731
  Object.entries(memberEntries).forEach(([key, value]) => {
12318
12732
  const loc = `Tags.${key}`;
12319
12733
  entries[loc] = value;
@@ -12330,6 +12744,9 @@ const serializeAws_queryRestoreDBInstanceToPointInTimeMessage = (input, context)
12330
12744
  }
12331
12745
  if (input.VpcSecurityGroupIds != null) {
12332
12746
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
12747
+ if (input.VpcSecurityGroupIds?.length === 0) {
12748
+ entries.VpcSecurityGroupIds = [];
12749
+ }
12333
12750
  Object.entries(memberEntries).forEach(([key, value]) => {
12334
12751
  const loc = `VpcSecurityGroupIds.${key}`;
12335
12752
  entries[loc] = value;
@@ -12346,6 +12763,9 @@ const serializeAws_queryRestoreDBInstanceToPointInTimeMessage = (input, context)
12346
12763
  }
12347
12764
  if (input.EnableCloudwatchLogsExports != null) {
12348
12765
  const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
12766
+ if (input.EnableCloudwatchLogsExports?.length === 0) {
12767
+ entries.EnableCloudwatchLogsExports = [];
12768
+ }
12349
12769
  Object.entries(memberEntries).forEach(([key, value]) => {
12350
12770
  const loc = `EnableCloudwatchLogsExports.${key}`;
12351
12771
  entries[loc] = value;
@@ -12353,6 +12773,9 @@ const serializeAws_queryRestoreDBInstanceToPointInTimeMessage = (input, context)
12353
12773
  }
12354
12774
  if (input.ProcessorFeatures != null) {
12355
12775
  const memberEntries = serializeAws_queryProcessorFeatureList(input.ProcessorFeatures, context);
12776
+ if (input.ProcessorFeatures?.length === 0) {
12777
+ entries.ProcessorFeatures = [];
12778
+ }
12356
12779
  Object.entries(memberEntries).forEach(([key, value]) => {
12357
12780
  const loc = `ProcessorFeatures.${key}`;
12358
12781
  entries[loc] = value;
@@ -12388,6 +12811,9 @@ const serializeAws_queryRestoreDBInstanceToPointInTimeMessage = (input, context)
12388
12811
  if (input.NetworkType != null) {
12389
12812
  entries["NetworkType"] = input.NetworkType;
12390
12813
  }
12814
+ if (input.StorageThroughput != null) {
12815
+ entries["StorageThroughput"] = input.StorageThroughput;
12816
+ }
12391
12817
  return entries;
12392
12818
  };
12393
12819
  const serializeAws_queryRevokeDBSecurityGroupIngressMessage = (input, context) => {
@@ -12524,6 +12950,9 @@ const serializeAws_queryStartExportTaskMessage = (input, context) => {
12524
12950
  }
12525
12951
  if (input.ExportOnly != null) {
12526
12952
  const memberEntries = serializeAws_queryStringList(input.ExportOnly, context);
12953
+ if (input.ExportOnly?.length === 0) {
12954
+ entries.ExportOnly = [];
12955
+ }
12527
12956
  Object.entries(memberEntries).forEach(([key, value]) => {
12528
12957
  const loc = `ExportOnly.${key}`;
12529
12958
  entries[loc] = value;
@@ -14322,6 +14751,7 @@ const deserializeAws_queryDBInstance = (output, context) => {
14322
14751
  BackupTarget: undefined,
14323
14752
  NetworkType: undefined,
14324
14753
  ActivityStreamPolicyStatus: undefined,
14754
+ StorageThroughput: undefined,
14325
14755
  };
14326
14756
  if (output["DBInstanceIdentifier"] !== undefined) {
14327
14757
  contents.DBInstanceIdentifier = __expectString(output["DBInstanceIdentifier"]);
@@ -14599,6 +15029,9 @@ const deserializeAws_queryDBInstance = (output, context) => {
14599
15029
  if (output["ActivityStreamPolicyStatus"] !== undefined) {
14600
15030
  contents.ActivityStreamPolicyStatus = __expectString(output["ActivityStreamPolicyStatus"]);
14601
15031
  }
15032
+ if (output["StorageThroughput"] !== undefined) {
15033
+ contents.StorageThroughput = __strictParseInt32(output["StorageThroughput"]);
15034
+ }
14602
15035
  return contents;
14603
15036
  };
14604
15037
  const deserializeAws_queryDBInstanceAlreadyExistsFault = (output, context) => {
@@ -14639,6 +15072,7 @@ const deserializeAws_queryDBInstanceAutomatedBackup = (output, context) => {
14639
15072
  DBInstanceAutomatedBackupsArn: undefined,
14640
15073
  DBInstanceAutomatedBackupsReplications: undefined,
14641
15074
  BackupTarget: undefined,
15075
+ StorageThroughput: undefined,
14642
15076
  };
14643
15077
  if (output["DBInstanceArn"] !== undefined) {
14644
15078
  contents.DBInstanceArn = __expectString(output["DBInstanceArn"]);
@@ -14725,6 +15159,9 @@ const deserializeAws_queryDBInstanceAutomatedBackup = (output, context) => {
14725
15159
  if (output["BackupTarget"] !== undefined) {
14726
15160
  contents.BackupTarget = __expectString(output["BackupTarget"]);
14727
15161
  }
15162
+ if (output["StorageThroughput"] !== undefined) {
15163
+ contents.StorageThroughput = __strictParseInt32(output["StorageThroughput"]);
15164
+ }
14728
15165
  return contents;
14729
15166
  };
14730
15167
  const deserializeAws_queryDBInstanceAutomatedBackupList = (output, context) => {
@@ -15473,6 +15910,7 @@ const deserializeAws_queryDBSnapshot = (output, context) => {
15473
15910
  OriginalSnapshotCreateTime: undefined,
15474
15911
  SnapshotDatabaseTime: undefined,
15475
15912
  SnapshotTarget: undefined,
15913
+ StorageThroughput: undefined,
15476
15914
  };
15477
15915
  if (output["DBSnapshotIdentifier"] !== undefined) {
15478
15916
  contents.DBSnapshotIdentifier = __expectString(output["DBSnapshotIdentifier"]);
@@ -15577,6 +16015,9 @@ const deserializeAws_queryDBSnapshot = (output, context) => {
15577
16015
  if (output["SnapshotTarget"] !== undefined) {
15578
16016
  contents.SnapshotTarget = __expectString(output["SnapshotTarget"]);
15579
16017
  }
16018
+ if (output["StorageThroughput"] !== undefined) {
16019
+ contents.StorageThroughput = __strictParseInt32(output["StorageThroughput"]);
16020
+ }
15580
16021
  return contents;
15581
16022
  };
15582
16023
  const deserializeAws_queryDBSnapshotAlreadyExistsFault = (output, context) => {
@@ -17576,6 +18017,11 @@ const deserializeAws_queryOrderableDBInstanceOption = (output, context) => {
17576
18017
  SupportsGlobalDatabases: undefined,
17577
18018
  SupportsClusters: undefined,
17578
18019
  SupportedNetworkTypes: undefined,
18020
+ SupportsStorageThroughput: undefined,
18021
+ MinStorageThroughputPerDbInstance: undefined,
18022
+ MaxStorageThroughputPerDbInstance: undefined,
18023
+ MinStorageThroughputPerIops: undefined,
18024
+ MaxStorageThroughputPerIops: undefined,
17579
18025
  };
17580
18026
  if (output["Engine"] !== undefined) {
17581
18027
  contents.Engine = __expectString(output["Engine"]);
@@ -17685,6 +18131,21 @@ const deserializeAws_queryOrderableDBInstanceOption = (output, context) => {
17685
18131
  else if (output["SupportedNetworkTypes"] !== undefined && output["SupportedNetworkTypes"]["member"] !== undefined) {
17686
18132
  contents.SupportedNetworkTypes = deserializeAws_queryStringList(__getArrayIfSingleItem(output["SupportedNetworkTypes"]["member"]), context);
17687
18133
  }
18134
+ if (output["SupportsStorageThroughput"] !== undefined) {
18135
+ contents.SupportsStorageThroughput = __parseBoolean(output["SupportsStorageThroughput"]);
18136
+ }
18137
+ if (output["MinStorageThroughputPerDbInstance"] !== undefined) {
18138
+ contents.MinStorageThroughputPerDbInstance = __strictParseInt32(output["MinStorageThroughputPerDbInstance"]);
18139
+ }
18140
+ if (output["MaxStorageThroughputPerDbInstance"] !== undefined) {
18141
+ contents.MaxStorageThroughputPerDbInstance = __strictParseInt32(output["MaxStorageThroughputPerDbInstance"]);
18142
+ }
18143
+ if (output["MinStorageThroughputPerIops"] !== undefined) {
18144
+ contents.MinStorageThroughputPerIops = __strictParseFloat(output["MinStorageThroughputPerIops"]);
18145
+ }
18146
+ if (output["MaxStorageThroughputPerIops"] !== undefined) {
18147
+ contents.MaxStorageThroughputPerIops = __strictParseFloat(output["MaxStorageThroughputPerIops"]);
18148
+ }
17688
18149
  return contents;
17689
18150
  };
17690
18151
  const deserializeAws_queryOrderableDBInstanceOptionsList = (output, context) => {
@@ -17878,6 +18339,7 @@ const deserializeAws_queryPendingModifiedValues = (output, context) => {
17878
18339
  IAMDatabaseAuthenticationEnabled: undefined,
17879
18340
  AutomationMode: undefined,
17880
18341
  ResumeFullAutomationModeTime: undefined,
18342
+ StorageThroughput: undefined,
17881
18343
  };
17882
18344
  if (output["DBInstanceClass"] !== undefined) {
17883
18345
  contents.DBInstanceClass = __expectString(output["DBInstanceClass"]);
@@ -17937,6 +18399,9 @@ const deserializeAws_queryPendingModifiedValues = (output, context) => {
17937
18399
  if (output["ResumeFullAutomationModeTime"] !== undefined) {
17938
18400
  contents.ResumeFullAutomationModeTime = __expectNonNull(__parseRfc3339DateTime(output["ResumeFullAutomationModeTime"]));
17939
18401
  }
18402
+ if (output["StorageThroughput"] !== undefined) {
18403
+ contents.StorageThroughput = __strictParseInt32(output["StorageThroughput"]);
18404
+ }
17940
18405
  return contents;
17941
18406
  };
17942
18407
  const deserializeAws_queryPointInTimeRestoreNotEnabledFault = (output, context) => {
@@ -18964,6 +19429,8 @@ const deserializeAws_queryValidStorageOptions = (output, context) => {
18964
19429
  ProvisionedIops: undefined,
18965
19430
  IopsToStorageRatio: undefined,
18966
19431
  SupportsStorageAutoscaling: undefined,
19432
+ ProvisionedStorageThroughput: undefined,
19433
+ StorageThroughputToIopsRatio: undefined,
18967
19434
  };
18968
19435
  if (output["StorageType"] !== undefined) {
18969
19436
  contents.StorageType = __expectString(output["StorageType"]);
@@ -18989,6 +19456,20 @@ const deserializeAws_queryValidStorageOptions = (output, context) => {
18989
19456
  if (output["SupportsStorageAutoscaling"] !== undefined) {
18990
19457
  contents.SupportsStorageAutoscaling = __parseBoolean(output["SupportsStorageAutoscaling"]);
18991
19458
  }
19459
+ if (output.ProvisionedStorageThroughput === "") {
19460
+ contents.ProvisionedStorageThroughput = [];
19461
+ }
19462
+ else if (output["ProvisionedStorageThroughput"] !== undefined &&
19463
+ output["ProvisionedStorageThroughput"]["Range"] !== undefined) {
19464
+ contents.ProvisionedStorageThroughput = deserializeAws_queryRangeList(__getArrayIfSingleItem(output["ProvisionedStorageThroughput"]["Range"]), context);
19465
+ }
19466
+ if (output.StorageThroughputToIopsRatio === "") {
19467
+ contents.StorageThroughputToIopsRatio = [];
19468
+ }
19469
+ else if (output["StorageThroughputToIopsRatio"] !== undefined &&
19470
+ output["StorageThroughputToIopsRatio"]["DoubleRange"] !== undefined) {
19471
+ contents.StorageThroughputToIopsRatio = deserializeAws_queryDoubleRangeList(__getArrayIfSingleItem(output["StorageThroughputToIopsRatio"]["DoubleRange"]), context);
19472
+ }
18992
19473
  return contents;
18993
19474
  };
18994
19475
  const deserializeAws_queryValidStorageOptionsList = (output, context) => {