@aws-sdk/client-redshift 3.201.0 → 3.202.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7764,6 +7764,9 @@ const serializeAws_queryAuthorizeEndpointAccessMessage = (input, context) => {
7764
7764
  }
7765
7765
  if (input.VpcIds != null) {
7766
7766
  const memberEntries = serializeAws_queryVpcIdentifierList(input.VpcIds, context);
7767
+ if (input.VpcIds?.length === 0) {
7768
+ entries.VpcIds = [];
7769
+ }
7767
7770
  Object.entries(memberEntries).forEach(([key, value]) => {
7768
7771
  const loc = `VpcIds.${key}`;
7769
7772
  entries[loc] = value;
@@ -7791,6 +7794,9 @@ const serializeAws_queryBatchDeleteClusterSnapshotsRequest = (input, context) =>
7791
7794
  const entries = {};
7792
7795
  if (input.Identifiers != null) {
7793
7796
  const memberEntries = serializeAws_queryDeleteClusterSnapshotMessageList(input.Identifiers, context);
7797
+ if (input.Identifiers?.length === 0) {
7798
+ entries.Identifiers = [];
7799
+ }
7794
7800
  Object.entries(memberEntries).forEach(([key, value]) => {
7795
7801
  const loc = `Identifiers.${key}`;
7796
7802
  entries[loc] = value;
@@ -7802,6 +7808,9 @@ const serializeAws_queryBatchModifyClusterSnapshotsMessage = (input, context) =>
7802
7808
  const entries = {};
7803
7809
  if (input.SnapshotIdentifierList != null) {
7804
7810
  const memberEntries = serializeAws_querySnapshotIdentifierList(input.SnapshotIdentifierList, context);
7811
+ if (input.SnapshotIdentifierList?.length === 0) {
7812
+ entries.SnapshotIdentifierList = [];
7813
+ }
7805
7814
  Object.entries(memberEntries).forEach(([key, value]) => {
7806
7815
  const loc = `SnapshotIdentifierList.${key}`;
7807
7816
  entries[loc] = value;
@@ -7882,6 +7891,9 @@ const serializeAws_queryCreateClusterMessage = (input, context) => {
7882
7891
  }
7883
7892
  if (input.ClusterSecurityGroups != null) {
7884
7893
  const memberEntries = serializeAws_queryClusterSecurityGroupNameList(input.ClusterSecurityGroups, context);
7894
+ if (input.ClusterSecurityGroups?.length === 0) {
7895
+ entries.ClusterSecurityGroups = [];
7896
+ }
7885
7897
  Object.entries(memberEntries).forEach(([key, value]) => {
7886
7898
  const loc = `ClusterSecurityGroups.${key}`;
7887
7899
  entries[loc] = value;
@@ -7889,6 +7901,9 @@ const serializeAws_queryCreateClusterMessage = (input, context) => {
7889
7901
  }
7890
7902
  if (input.VpcSecurityGroupIds != null) {
7891
7903
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
7904
+ if (input.VpcSecurityGroupIds?.length === 0) {
7905
+ entries.VpcSecurityGroupIds = [];
7906
+ }
7892
7907
  Object.entries(memberEntries).forEach(([key, value]) => {
7893
7908
  const loc = `VpcSecurityGroupIds.${key}`;
7894
7909
  entries[loc] = value;
@@ -7941,6 +7956,9 @@ const serializeAws_queryCreateClusterMessage = (input, context) => {
7941
7956
  }
7942
7957
  if (input.Tags != null) {
7943
7958
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
7959
+ if (input.Tags?.length === 0) {
7960
+ entries.Tags = [];
7961
+ }
7944
7962
  Object.entries(memberEntries).forEach(([key, value]) => {
7945
7963
  const loc = `Tags.${key}`;
7946
7964
  entries[loc] = value;
@@ -7957,6 +7975,9 @@ const serializeAws_queryCreateClusterMessage = (input, context) => {
7957
7975
  }
7958
7976
  if (input.IamRoles != null) {
7959
7977
  const memberEntries = serializeAws_queryIamRoleArnList(input.IamRoles, context);
7978
+ if (input.IamRoles?.length === 0) {
7979
+ entries.IamRoles = [];
7980
+ }
7960
7981
  Object.entries(memberEntries).forEach(([key, value]) => {
7961
7982
  const loc = `IamRoles.${key}`;
7962
7983
  entries[loc] = value;
@@ -7995,6 +8016,9 @@ const serializeAws_queryCreateClusterParameterGroupMessage = (input, context) =>
7995
8016
  }
7996
8017
  if (input.Tags != null) {
7997
8018
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
8019
+ if (input.Tags?.length === 0) {
8020
+ entries.Tags = [];
8021
+ }
7998
8022
  Object.entries(memberEntries).forEach(([key, value]) => {
7999
8023
  const loc = `Tags.${key}`;
8000
8024
  entries[loc] = value;
@@ -8012,6 +8036,9 @@ const serializeAws_queryCreateClusterSecurityGroupMessage = (input, context) =>
8012
8036
  }
8013
8037
  if (input.Tags != null) {
8014
8038
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
8039
+ if (input.Tags?.length === 0) {
8040
+ entries.Tags = [];
8041
+ }
8015
8042
  Object.entries(memberEntries).forEach(([key, value]) => {
8016
8043
  const loc = `Tags.${key}`;
8017
8044
  entries[loc] = value;
@@ -8032,6 +8059,9 @@ const serializeAws_queryCreateClusterSnapshotMessage = (input, context) => {
8032
8059
  }
8033
8060
  if (input.Tags != null) {
8034
8061
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
8062
+ if (input.Tags?.length === 0) {
8063
+ entries.Tags = [];
8064
+ }
8035
8065
  Object.entries(memberEntries).forEach(([key, value]) => {
8036
8066
  const loc = `Tags.${key}`;
8037
8067
  entries[loc] = value;
@@ -8049,6 +8079,9 @@ const serializeAws_queryCreateClusterSubnetGroupMessage = (input, context) => {
8049
8079
  }
8050
8080
  if (input.SubnetIds != null) {
8051
8081
  const memberEntries = serializeAws_querySubnetIdentifierList(input.SubnetIds, context);
8082
+ if (input.SubnetIds?.length === 0) {
8083
+ entries.SubnetIds = [];
8084
+ }
8052
8085
  Object.entries(memberEntries).forEach(([key, value]) => {
8053
8086
  const loc = `SubnetIds.${key}`;
8054
8087
  entries[loc] = value;
@@ -8056,6 +8089,9 @@ const serializeAws_queryCreateClusterSubnetGroupMessage = (input, context) => {
8056
8089
  }
8057
8090
  if (input.Tags != null) {
8058
8091
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
8092
+ if (input.Tags?.length === 0) {
8093
+ entries.Tags = [];
8094
+ }
8059
8095
  Object.entries(memberEntries).forEach(([key, value]) => {
8060
8096
  const loc = `Tags.${key}`;
8061
8097
  entries[loc] = value;
@@ -8079,6 +8115,9 @@ const serializeAws_queryCreateEndpointAccessMessage = (input, context) => {
8079
8115
  }
8080
8116
  if (input.VpcSecurityGroupIds != null) {
8081
8117
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
8118
+ if (input.VpcSecurityGroupIds?.length === 0) {
8119
+ entries.VpcSecurityGroupIds = [];
8120
+ }
8082
8121
  Object.entries(memberEntries).forEach(([key, value]) => {
8083
8122
  const loc = `VpcSecurityGroupIds.${key}`;
8084
8123
  entries[loc] = value;
@@ -8099,6 +8138,9 @@ const serializeAws_queryCreateEventSubscriptionMessage = (input, context) => {
8099
8138
  }
8100
8139
  if (input.SourceIds != null) {
8101
8140
  const memberEntries = serializeAws_querySourceIdsList(input.SourceIds, context);
8141
+ if (input.SourceIds?.length === 0) {
8142
+ entries.SourceIds = [];
8143
+ }
8102
8144
  Object.entries(memberEntries).forEach(([key, value]) => {
8103
8145
  const loc = `SourceIds.${key}`;
8104
8146
  entries[loc] = value;
@@ -8106,6 +8148,9 @@ const serializeAws_queryCreateEventSubscriptionMessage = (input, context) => {
8106
8148
  }
8107
8149
  if (input.EventCategories != null) {
8108
8150
  const memberEntries = serializeAws_queryEventCategoriesList(input.EventCategories, context);
8151
+ if (input.EventCategories?.length === 0) {
8152
+ entries.EventCategories = [];
8153
+ }
8109
8154
  Object.entries(memberEntries).forEach(([key, value]) => {
8110
8155
  const loc = `EventCategories.${key}`;
8111
8156
  entries[loc] = value;
@@ -8119,6 +8164,9 @@ const serializeAws_queryCreateEventSubscriptionMessage = (input, context) => {
8119
8164
  }
8120
8165
  if (input.Tags != null) {
8121
8166
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
8167
+ if (input.Tags?.length === 0) {
8168
+ entries.Tags = [];
8169
+ }
8122
8170
  Object.entries(memberEntries).forEach(([key, value]) => {
8123
8171
  const loc = `Tags.${key}`;
8124
8172
  entries[loc] = value;
@@ -8133,6 +8181,9 @@ const serializeAws_queryCreateHsmClientCertificateMessage = (input, context) =>
8133
8181
  }
8134
8182
  if (input.Tags != null) {
8135
8183
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
8184
+ if (input.Tags?.length === 0) {
8185
+ entries.Tags = [];
8186
+ }
8136
8187
  Object.entries(memberEntries).forEach(([key, value]) => {
8137
8188
  const loc = `Tags.${key}`;
8138
8189
  entries[loc] = value;
@@ -8162,6 +8213,9 @@ const serializeAws_queryCreateHsmConfigurationMessage = (input, context) => {
8162
8213
  }
8163
8214
  if (input.Tags != null) {
8164
8215
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
8216
+ if (input.Tags?.length === 0) {
8217
+ entries.Tags = [];
8218
+ }
8165
8219
  Object.entries(memberEntries).forEach(([key, value]) => {
8166
8220
  const loc = `Tags.${key}`;
8167
8221
  entries[loc] = value;
@@ -8211,6 +8265,9 @@ const serializeAws_queryCreateSnapshotCopyGrantMessage = (input, context) => {
8211
8265
  }
8212
8266
  if (input.Tags != null) {
8213
8267
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
8268
+ if (input.Tags?.length === 0) {
8269
+ entries.Tags = [];
8270
+ }
8214
8271
  Object.entries(memberEntries).forEach(([key, value]) => {
8215
8272
  const loc = `Tags.${key}`;
8216
8273
  entries[loc] = value;
@@ -8222,6 +8279,9 @@ const serializeAws_queryCreateSnapshotScheduleMessage = (input, context) => {
8222
8279
  const entries = {};
8223
8280
  if (input.ScheduleDefinitions != null) {
8224
8281
  const memberEntries = serializeAws_queryScheduleDefinitionList(input.ScheduleDefinitions, context);
8282
+ if (input.ScheduleDefinitions?.length === 0) {
8283
+ entries.ScheduleDefinitions = [];
8284
+ }
8225
8285
  Object.entries(memberEntries).forEach(([key, value]) => {
8226
8286
  const loc = `ScheduleDefinitions.${key}`;
8227
8287
  entries[loc] = value;
@@ -8235,6 +8295,9 @@ const serializeAws_queryCreateSnapshotScheduleMessage = (input, context) => {
8235
8295
  }
8236
8296
  if (input.Tags != null) {
8237
8297
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
8298
+ if (input.Tags?.length === 0) {
8299
+ entries.Tags = [];
8300
+ }
8238
8301
  Object.entries(memberEntries).forEach(([key, value]) => {
8239
8302
  const loc = `Tags.${key}`;
8240
8303
  entries[loc] = value;
@@ -8255,6 +8318,9 @@ const serializeAws_queryCreateTagsMessage = (input, context) => {
8255
8318
  }
8256
8319
  if (input.Tags != null) {
8257
8320
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
8321
+ if (input.Tags?.length === 0) {
8322
+ entries.Tags = [];
8323
+ }
8258
8324
  Object.entries(memberEntries).forEach(([key, value]) => {
8259
8325
  const loc = `Tags.${key}`;
8260
8326
  entries[loc] = value;
@@ -8284,6 +8350,9 @@ const serializeAws_queryCreateUsageLimitMessage = (input, context) => {
8284
8350
  }
8285
8351
  if (input.Tags != null) {
8286
8352
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
8353
+ if (input.Tags?.length === 0) {
8354
+ entries.Tags = [];
8355
+ }
8287
8356
  Object.entries(memberEntries).forEach(([key, value]) => {
8288
8357
  const loc = `Tags.${key}`;
8289
8358
  entries[loc] = value;
@@ -8438,6 +8507,9 @@ const serializeAws_queryDeleteTagsMessage = (input, context) => {
8438
8507
  }
8439
8508
  if (input.TagKeys != null) {
8440
8509
  const memberEntries = serializeAws_queryTagKeyList(input.TagKeys, context);
8510
+ if (input.TagKeys?.length === 0) {
8511
+ entries.TagKeys = [];
8512
+ }
8441
8513
  Object.entries(memberEntries).forEach(([key, value]) => {
8442
8514
  const loc = `TagKeys.${key}`;
8443
8515
  entries[loc] = value;
@@ -8456,6 +8528,9 @@ const serializeAws_queryDescribeAccountAttributesMessage = (input, context) => {
8456
8528
  const entries = {};
8457
8529
  if (input.AttributeNames != null) {
8458
8530
  const memberEntries = serializeAws_queryAttributeNameList(input.AttributeNames, context);
8531
+ if (input.AttributeNames?.length === 0) {
8532
+ entries.AttributeNames = [];
8533
+ }
8459
8534
  Object.entries(memberEntries).forEach(([key, value]) => {
8460
8535
  const loc = `AttributeNames.${key}`;
8461
8536
  entries[loc] = value;
@@ -8496,6 +8571,9 @@ const serializeAws_queryDescribeClusterParameterGroupsMessage = (input, context)
8496
8571
  }
8497
8572
  if (input.TagKeys != null) {
8498
8573
  const memberEntries = serializeAws_queryTagKeyList(input.TagKeys, context);
8574
+ if (input.TagKeys?.length === 0) {
8575
+ entries.TagKeys = [];
8576
+ }
8499
8577
  Object.entries(memberEntries).forEach(([key, value]) => {
8500
8578
  const loc = `TagKeys.${key}`;
8501
8579
  entries[loc] = value;
@@ -8503,6 +8581,9 @@ const serializeAws_queryDescribeClusterParameterGroupsMessage = (input, context)
8503
8581
  }
8504
8582
  if (input.TagValues != null) {
8505
8583
  const memberEntries = serializeAws_queryTagValueList(input.TagValues, context);
8584
+ if (input.TagValues?.length === 0) {
8585
+ entries.TagValues = [];
8586
+ }
8506
8587
  Object.entries(memberEntries).forEach(([key, value]) => {
8507
8588
  const loc = `TagValues.${key}`;
8508
8589
  entries[loc] = value;
@@ -8539,6 +8620,9 @@ const serializeAws_queryDescribeClusterSecurityGroupsMessage = (input, context)
8539
8620
  }
8540
8621
  if (input.TagKeys != null) {
8541
8622
  const memberEntries = serializeAws_queryTagKeyList(input.TagKeys, context);
8623
+ if (input.TagKeys?.length === 0) {
8624
+ entries.TagKeys = [];
8625
+ }
8542
8626
  Object.entries(memberEntries).forEach(([key, value]) => {
8543
8627
  const loc = `TagKeys.${key}`;
8544
8628
  entries[loc] = value;
@@ -8546,6 +8630,9 @@ const serializeAws_queryDescribeClusterSecurityGroupsMessage = (input, context)
8546
8630
  }
8547
8631
  if (input.TagValues != null) {
8548
8632
  const memberEntries = serializeAws_queryTagValueList(input.TagValues, context);
8633
+ if (input.TagValues?.length === 0) {
8634
+ entries.TagValues = [];
8635
+ }
8549
8636
  Object.entries(memberEntries).forEach(([key, value]) => {
8550
8637
  const loc = `TagValues.${key}`;
8551
8638
  entries[loc] = value;
@@ -8566,6 +8653,9 @@ const serializeAws_queryDescribeClustersMessage = (input, context) => {
8566
8653
  }
8567
8654
  if (input.TagKeys != null) {
8568
8655
  const memberEntries = serializeAws_queryTagKeyList(input.TagKeys, context);
8656
+ if (input.TagKeys?.length === 0) {
8657
+ entries.TagKeys = [];
8658
+ }
8569
8659
  Object.entries(memberEntries).forEach(([key, value]) => {
8570
8660
  const loc = `TagKeys.${key}`;
8571
8661
  entries[loc] = value;
@@ -8573,6 +8663,9 @@ const serializeAws_queryDescribeClustersMessage = (input, context) => {
8573
8663
  }
8574
8664
  if (input.TagValues != null) {
8575
8665
  const memberEntries = serializeAws_queryTagValueList(input.TagValues, context);
8666
+ if (input.TagValues?.length === 0) {
8667
+ entries.TagValues = [];
8668
+ }
8576
8669
  Object.entries(memberEntries).forEach(([key, value]) => {
8577
8670
  const loc = `TagValues.${key}`;
8578
8671
  entries[loc] = value;
@@ -8611,6 +8704,9 @@ const serializeAws_queryDescribeClusterSnapshotsMessage = (input, context) => {
8611
8704
  }
8612
8705
  if (input.TagKeys != null) {
8613
8706
  const memberEntries = serializeAws_queryTagKeyList(input.TagKeys, context);
8707
+ if (input.TagKeys?.length === 0) {
8708
+ entries.TagKeys = [];
8709
+ }
8614
8710
  Object.entries(memberEntries).forEach(([key, value]) => {
8615
8711
  const loc = `TagKeys.${key}`;
8616
8712
  entries[loc] = value;
@@ -8618,6 +8714,9 @@ const serializeAws_queryDescribeClusterSnapshotsMessage = (input, context) => {
8618
8714
  }
8619
8715
  if (input.TagValues != null) {
8620
8716
  const memberEntries = serializeAws_queryTagValueList(input.TagValues, context);
8717
+ if (input.TagValues?.length === 0) {
8718
+ entries.TagValues = [];
8719
+ }
8621
8720
  Object.entries(memberEntries).forEach(([key, value]) => {
8622
8721
  const loc = `TagValues.${key}`;
8623
8722
  entries[loc] = value;
@@ -8628,6 +8727,9 @@ const serializeAws_queryDescribeClusterSnapshotsMessage = (input, context) => {
8628
8727
  }
8629
8728
  if (input.SortingEntities != null) {
8630
8729
  const memberEntries = serializeAws_querySnapshotSortingEntityList(input.SortingEntities, context);
8730
+ if (input.SortingEntities?.length === 0) {
8731
+ entries.SortingEntities = [];
8732
+ }
8631
8733
  Object.entries(memberEntries).forEach(([key, value]) => {
8632
8734
  const loc = `SortingEntities.${key}`;
8633
8735
  entries[loc] = value;
@@ -8648,6 +8750,9 @@ const serializeAws_queryDescribeClusterSubnetGroupsMessage = (input, context) =>
8648
8750
  }
8649
8751
  if (input.TagKeys != null) {
8650
8752
  const memberEntries = serializeAws_queryTagKeyList(input.TagKeys, context);
8753
+ if (input.TagKeys?.length === 0) {
8754
+ entries.TagKeys = [];
8755
+ }
8651
8756
  Object.entries(memberEntries).forEach(([key, value]) => {
8652
8757
  const loc = `TagKeys.${key}`;
8653
8758
  entries[loc] = value;
@@ -8655,6 +8760,9 @@ const serializeAws_queryDescribeClusterSubnetGroupsMessage = (input, context) =>
8655
8760
  }
8656
8761
  if (input.TagValues != null) {
8657
8762
  const memberEntries = serializeAws_queryTagValueList(input.TagValues, context);
8763
+ if (input.TagValues?.length === 0) {
8764
+ entries.TagValues = [];
8765
+ }
8658
8766
  Object.entries(memberEntries).forEach(([key, value]) => {
8659
8767
  const loc = `TagValues.${key}`;
8660
8768
  entries[loc] = value;
@@ -8835,6 +8943,9 @@ const serializeAws_queryDescribeEventSubscriptionsMessage = (input, context) =>
8835
8943
  }
8836
8944
  if (input.TagKeys != null) {
8837
8945
  const memberEntries = serializeAws_queryTagKeyList(input.TagKeys, context);
8946
+ if (input.TagKeys?.length === 0) {
8947
+ entries.TagKeys = [];
8948
+ }
8838
8949
  Object.entries(memberEntries).forEach(([key, value]) => {
8839
8950
  const loc = `TagKeys.${key}`;
8840
8951
  entries[loc] = value;
@@ -8842,6 +8953,9 @@ const serializeAws_queryDescribeEventSubscriptionsMessage = (input, context) =>
8842
8953
  }
8843
8954
  if (input.TagValues != null) {
8844
8955
  const memberEntries = serializeAws_queryTagValueList(input.TagValues, context);
8956
+ if (input.TagValues?.length === 0) {
8957
+ entries.TagValues = [];
8958
+ }
8845
8959
  Object.entries(memberEntries).forEach(([key, value]) => {
8846
8960
  const loc = `TagValues.${key}`;
8847
8961
  entries[loc] = value;
@@ -8862,6 +8976,9 @@ const serializeAws_queryDescribeHsmClientCertificatesMessage = (input, context)
8862
8976
  }
8863
8977
  if (input.TagKeys != null) {
8864
8978
  const memberEntries = serializeAws_queryTagKeyList(input.TagKeys, context);
8979
+ if (input.TagKeys?.length === 0) {
8980
+ entries.TagKeys = [];
8981
+ }
8865
8982
  Object.entries(memberEntries).forEach(([key, value]) => {
8866
8983
  const loc = `TagKeys.${key}`;
8867
8984
  entries[loc] = value;
@@ -8869,6 +8986,9 @@ const serializeAws_queryDescribeHsmClientCertificatesMessage = (input, context)
8869
8986
  }
8870
8987
  if (input.TagValues != null) {
8871
8988
  const memberEntries = serializeAws_queryTagValueList(input.TagValues, context);
8989
+ if (input.TagValues?.length === 0) {
8990
+ entries.TagValues = [];
8991
+ }
8872
8992
  Object.entries(memberEntries).forEach(([key, value]) => {
8873
8993
  const loc = `TagValues.${key}`;
8874
8994
  entries[loc] = value;
@@ -8889,6 +9009,9 @@ const serializeAws_queryDescribeHsmConfigurationsMessage = (input, context) => {
8889
9009
  }
8890
9010
  if (input.TagKeys != null) {
8891
9011
  const memberEntries = serializeAws_queryTagKeyList(input.TagKeys, context);
9012
+ if (input.TagKeys?.length === 0) {
9013
+ entries.TagKeys = [];
9014
+ }
8892
9015
  Object.entries(memberEntries).forEach(([key, value]) => {
8893
9016
  const loc = `TagKeys.${key}`;
8894
9017
  entries[loc] = value;
@@ -8896,6 +9019,9 @@ const serializeAws_queryDescribeHsmConfigurationsMessage = (input, context) => {
8896
9019
  }
8897
9020
  if (input.TagValues != null) {
8898
9021
  const memberEntries = serializeAws_queryTagValueList(input.TagValues, context);
9022
+ if (input.TagValues?.length === 0) {
9023
+ entries.TagValues = [];
9024
+ }
8899
9025
  Object.entries(memberEntries).forEach(([key, value]) => {
8900
9026
  const loc = `TagValues.${key}`;
8901
9027
  entries[loc] = value;
@@ -8929,6 +9055,9 @@ const serializeAws_queryDescribeNodeConfigurationOptionsMessage = (input, contex
8929
9055
  }
8930
9056
  if (input.Filters != null) {
8931
9057
  const memberEntries = serializeAws_queryNodeConfigurationOptionsFilterList(input.Filters, context);
9058
+ if (input.Filters?.length === 0) {
9059
+ entries.Filter = [];
9060
+ }
8932
9061
  Object.entries(memberEntries).forEach(([key, value]) => {
8933
9062
  const loc = `Filter.${key}`;
8934
9063
  entries[loc] = value;
@@ -9042,6 +9171,9 @@ const serializeAws_queryDescribeScheduledActionsMessage = (input, context) => {
9042
9171
  }
9043
9172
  if (input.Filters != null) {
9044
9173
  const memberEntries = serializeAws_queryScheduledActionFilterList(input.Filters, context);
9174
+ if (input.Filters?.length === 0) {
9175
+ entries.Filters = [];
9176
+ }
9045
9177
  Object.entries(memberEntries).forEach(([key, value]) => {
9046
9178
  const loc = `Filters.${key}`;
9047
9179
  entries[loc] = value;
@@ -9068,6 +9200,9 @@ const serializeAws_queryDescribeSnapshotCopyGrantsMessage = (input, context) =>
9068
9200
  }
9069
9201
  if (input.TagKeys != null) {
9070
9202
  const memberEntries = serializeAws_queryTagKeyList(input.TagKeys, context);
9203
+ if (input.TagKeys?.length === 0) {
9204
+ entries.TagKeys = [];
9205
+ }
9071
9206
  Object.entries(memberEntries).forEach(([key, value]) => {
9072
9207
  const loc = `TagKeys.${key}`;
9073
9208
  entries[loc] = value;
@@ -9075,6 +9210,9 @@ const serializeAws_queryDescribeSnapshotCopyGrantsMessage = (input, context) =>
9075
9210
  }
9076
9211
  if (input.TagValues != null) {
9077
9212
  const memberEntries = serializeAws_queryTagValueList(input.TagValues, context);
9213
+ if (input.TagValues?.length === 0) {
9214
+ entries.TagValues = [];
9215
+ }
9078
9216
  Object.entries(memberEntries).forEach(([key, value]) => {
9079
9217
  const loc = `TagValues.${key}`;
9080
9218
  entries[loc] = value;
@@ -9092,6 +9230,9 @@ const serializeAws_queryDescribeSnapshotSchedulesMessage = (input, context) => {
9092
9230
  }
9093
9231
  if (input.TagKeys != null) {
9094
9232
  const memberEntries = serializeAws_queryTagKeyList(input.TagKeys, context);
9233
+ if (input.TagKeys?.length === 0) {
9234
+ entries.TagKeys = [];
9235
+ }
9095
9236
  Object.entries(memberEntries).forEach(([key, value]) => {
9096
9237
  const loc = `TagKeys.${key}`;
9097
9238
  entries[loc] = value;
@@ -9099,6 +9240,9 @@ const serializeAws_queryDescribeSnapshotSchedulesMessage = (input, context) => {
9099
9240
  }
9100
9241
  if (input.TagValues != null) {
9101
9242
  const memberEntries = serializeAws_queryTagValueList(input.TagValues, context);
9243
+ if (input.TagValues?.length === 0) {
9244
+ entries.TagValues = [];
9245
+ }
9102
9246
  Object.entries(memberEntries).forEach(([key, value]) => {
9103
9247
  const loc = `TagValues.${key}`;
9104
9248
  entries[loc] = value;
@@ -9144,6 +9288,9 @@ const serializeAws_queryDescribeTagsMessage = (input, context) => {
9144
9288
  }
9145
9289
  if (input.TagKeys != null) {
9146
9290
  const memberEntries = serializeAws_queryTagKeyList(input.TagKeys, context);
9291
+ if (input.TagKeys?.length === 0) {
9292
+ entries.TagKeys = [];
9293
+ }
9147
9294
  Object.entries(memberEntries).forEach(([key, value]) => {
9148
9295
  const loc = `TagKeys.${key}`;
9149
9296
  entries[loc] = value;
@@ -9151,6 +9298,9 @@ const serializeAws_queryDescribeTagsMessage = (input, context) => {
9151
9298
  }
9152
9299
  if (input.TagValues != null) {
9153
9300
  const memberEntries = serializeAws_queryTagValueList(input.TagValues, context);
9301
+ if (input.TagValues?.length === 0) {
9302
+ entries.TagValues = [];
9303
+ }
9154
9304
  Object.entries(memberEntries).forEach(([key, value]) => {
9155
9305
  const loc = `TagValues.${key}`;
9156
9306
  entries[loc] = value;
@@ -9177,6 +9327,9 @@ const serializeAws_queryDescribeUsageLimitsMessage = (input, context) => {
9177
9327
  }
9178
9328
  if (input.TagKeys != null) {
9179
9329
  const memberEntries = serializeAws_queryTagKeyList(input.TagKeys, context);
9330
+ if (input.TagKeys?.length === 0) {
9331
+ entries.TagKeys = [];
9332
+ }
9180
9333
  Object.entries(memberEntries).forEach(([key, value]) => {
9181
9334
  const loc = `TagKeys.${key}`;
9182
9335
  entries[loc] = value;
@@ -9184,6 +9337,9 @@ const serializeAws_queryDescribeUsageLimitsMessage = (input, context) => {
9184
9337
  }
9185
9338
  if (input.TagValues != null) {
9186
9339
  const memberEntries = serializeAws_queryTagValueList(input.TagValues, context);
9340
+ if (input.TagValues?.length === 0) {
9341
+ entries.TagValues = [];
9342
+ }
9187
9343
  Object.entries(memberEntries).forEach(([key, value]) => {
9188
9344
  const loc = `TagValues.${key}`;
9189
9345
  entries[loc] = value;
@@ -9237,6 +9393,9 @@ const serializeAws_queryEnableLoggingMessage = (input, context) => {
9237
9393
  }
9238
9394
  if (input.LogExports != null) {
9239
9395
  const memberEntries = serializeAws_queryLogTypeList(input.LogExports, context);
9396
+ if (input.LogExports?.length === 0) {
9397
+ entries.LogExports = [];
9398
+ }
9240
9399
  Object.entries(memberEntries).forEach(([key, value]) => {
9241
9400
  const loc = `LogExports.${key}`;
9242
9401
  entries[loc] = value;
@@ -9294,6 +9453,9 @@ const serializeAws_queryGetClusterCredentialsMessage = (input, context) => {
9294
9453
  }
9295
9454
  if (input.DbGroups != null) {
9296
9455
  const memberEntries = serializeAws_queryDbGroupList(input.DbGroups, context);
9456
+ if (input.DbGroups?.length === 0) {
9457
+ entries.DbGroups = [];
9458
+ }
9297
9459
  Object.entries(memberEntries).forEach(([key, value]) => {
9298
9460
  const loc = `DbGroups.${key}`;
9299
9461
  entries[loc] = value;
@@ -9407,6 +9569,9 @@ const serializeAws_queryModifyClusterIamRolesMessage = (input, context) => {
9407
9569
  }
9408
9570
  if (input.AddIamRoles != null) {
9409
9571
  const memberEntries = serializeAws_queryIamRoleArnList(input.AddIamRoles, context);
9572
+ if (input.AddIamRoles?.length === 0) {
9573
+ entries.AddIamRoles = [];
9574
+ }
9410
9575
  Object.entries(memberEntries).forEach(([key, value]) => {
9411
9576
  const loc = `AddIamRoles.${key}`;
9412
9577
  entries[loc] = value;
@@ -9414,6 +9579,9 @@ const serializeAws_queryModifyClusterIamRolesMessage = (input, context) => {
9414
9579
  }
9415
9580
  if (input.RemoveIamRoles != null) {
9416
9581
  const memberEntries = serializeAws_queryIamRoleArnList(input.RemoveIamRoles, context);
9582
+ if (input.RemoveIamRoles?.length === 0) {
9583
+ entries.RemoveIamRoles = [];
9584
+ }
9417
9585
  Object.entries(memberEntries).forEach(([key, value]) => {
9418
9586
  const loc = `RemoveIamRoles.${key}`;
9419
9587
  entries[loc] = value;
@@ -9462,6 +9630,9 @@ const serializeAws_queryModifyClusterMessage = (input, context) => {
9462
9630
  }
9463
9631
  if (input.ClusterSecurityGroups != null) {
9464
9632
  const memberEntries = serializeAws_queryClusterSecurityGroupNameList(input.ClusterSecurityGroups, context);
9633
+ if (input.ClusterSecurityGroups?.length === 0) {
9634
+ entries.ClusterSecurityGroups = [];
9635
+ }
9465
9636
  Object.entries(memberEntries).forEach(([key, value]) => {
9466
9637
  const loc = `ClusterSecurityGroups.${key}`;
9467
9638
  entries[loc] = value;
@@ -9469,6 +9640,9 @@ const serializeAws_queryModifyClusterMessage = (input, context) => {
9469
9640
  }
9470
9641
  if (input.VpcSecurityGroupIds != null) {
9471
9642
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
9643
+ if (input.VpcSecurityGroupIds?.length === 0) {
9644
+ entries.VpcSecurityGroupIds = [];
9645
+ }
9472
9646
  Object.entries(memberEntries).forEach(([key, value]) => {
9473
9647
  const loc = `VpcSecurityGroupIds.${key}`;
9474
9648
  entries[loc] = value;
@@ -9540,6 +9714,9 @@ const serializeAws_queryModifyClusterParameterGroupMessage = (input, context) =>
9540
9714
  }
9541
9715
  if (input.Parameters != null) {
9542
9716
  const memberEntries = serializeAws_queryParametersList(input.Parameters, context);
9717
+ if (input.Parameters?.length === 0) {
9718
+ entries.Parameters = [];
9719
+ }
9543
9720
  Object.entries(memberEntries).forEach(([key, value]) => {
9544
9721
  const loc = `Parameters.${key}`;
9545
9722
  entries[loc] = value;
@@ -9583,6 +9760,9 @@ const serializeAws_queryModifyClusterSubnetGroupMessage = (input, context) => {
9583
9760
  }
9584
9761
  if (input.SubnetIds != null) {
9585
9762
  const memberEntries = serializeAws_querySubnetIdentifierList(input.SubnetIds, context);
9763
+ if (input.SubnetIds?.length === 0) {
9764
+ entries.SubnetIds = [];
9765
+ }
9586
9766
  Object.entries(memberEntries).forEach(([key, value]) => {
9587
9767
  const loc = `SubnetIds.${key}`;
9588
9768
  entries[loc] = value;
@@ -9597,6 +9777,9 @@ const serializeAws_queryModifyEndpointAccessMessage = (input, context) => {
9597
9777
  }
9598
9778
  if (input.VpcSecurityGroupIds != null) {
9599
9779
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
9780
+ if (input.VpcSecurityGroupIds?.length === 0) {
9781
+ entries.VpcSecurityGroupIds = [];
9782
+ }
9600
9783
  Object.entries(memberEntries).forEach(([key, value]) => {
9601
9784
  const loc = `VpcSecurityGroupIds.${key}`;
9602
9785
  entries[loc] = value;
@@ -9617,6 +9800,9 @@ const serializeAws_queryModifyEventSubscriptionMessage = (input, context) => {
9617
9800
  }
9618
9801
  if (input.SourceIds != null) {
9619
9802
  const memberEntries = serializeAws_querySourceIdsList(input.SourceIds, context);
9803
+ if (input.SourceIds?.length === 0) {
9804
+ entries.SourceIds = [];
9805
+ }
9620
9806
  Object.entries(memberEntries).forEach(([key, value]) => {
9621
9807
  const loc = `SourceIds.${key}`;
9622
9808
  entries[loc] = value;
@@ -9624,6 +9810,9 @@ const serializeAws_queryModifyEventSubscriptionMessage = (input, context) => {
9624
9810
  }
9625
9811
  if (input.EventCategories != null) {
9626
9812
  const memberEntries = serializeAws_queryEventCategoriesList(input.EventCategories, context);
9813
+ if (input.EventCategories?.length === 0) {
9814
+ entries.EventCategories = [];
9815
+ }
9627
9816
  Object.entries(memberEntries).forEach(([key, value]) => {
9628
9817
  const loc = `EventCategories.${key}`;
9629
9818
  entries[loc] = value;
@@ -9689,6 +9878,9 @@ const serializeAws_queryModifySnapshotScheduleMessage = (input, context) => {
9689
9878
  }
9690
9879
  if (input.ScheduleDefinitions != null) {
9691
9880
  const memberEntries = serializeAws_queryScheduleDefinitionList(input.ScheduleDefinitions, context);
9881
+ if (input.ScheduleDefinitions?.length === 0) {
9882
+ entries.ScheduleDefinitions = [];
9883
+ }
9692
9884
  Object.entries(memberEntries).forEach(([key, value]) => {
9693
9885
  const loc = `ScheduleDefinitions.${key}`;
9694
9886
  entries[loc] = value;
@@ -9719,6 +9911,9 @@ const serializeAws_queryNodeConfigurationOptionsFilter = (input, context) => {
9719
9911
  }
9720
9912
  if (input.Values != null) {
9721
9913
  const memberEntries = serializeAws_queryValueStringList(input.Values, context);
9914
+ if (input.Values?.length === 0) {
9915
+ entries.Value = [];
9916
+ }
9722
9917
  Object.entries(memberEntries).forEach(([key, value]) => {
9723
9918
  const loc = `Value.${key}`;
9724
9919
  entries[loc] = value;
@@ -9844,6 +10039,9 @@ const serializeAws_queryResetClusterParameterGroupMessage = (input, context) =>
9844
10039
  }
9845
10040
  if (input.Parameters != null) {
9846
10041
  const memberEntries = serializeAws_queryParametersList(input.Parameters, context);
10042
+ if (input.Parameters?.length === 0) {
10043
+ entries.Parameters = [];
10044
+ }
9847
10045
  Object.entries(memberEntries).forEach(([key, value]) => {
9848
10046
  const loc = `Parameters.${key}`;
9849
10047
  entries[loc] = value;
@@ -9922,6 +10120,9 @@ const serializeAws_queryRestoreFromClusterSnapshotMessage = (input, context) =>
9922
10120
  }
9923
10121
  if (input.ClusterSecurityGroups != null) {
9924
10122
  const memberEntries = serializeAws_queryClusterSecurityGroupNameList(input.ClusterSecurityGroups, context);
10123
+ if (input.ClusterSecurityGroups?.length === 0) {
10124
+ entries.ClusterSecurityGroups = [];
10125
+ }
9925
10126
  Object.entries(memberEntries).forEach(([key, value]) => {
9926
10127
  const loc = `ClusterSecurityGroups.${key}`;
9927
10128
  entries[loc] = value;
@@ -9929,6 +10130,9 @@ const serializeAws_queryRestoreFromClusterSnapshotMessage = (input, context) =>
9929
10130
  }
9930
10131
  if (input.VpcSecurityGroupIds != null) {
9931
10132
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
10133
+ if (input.VpcSecurityGroupIds?.length === 0) {
10134
+ entries.VpcSecurityGroupIds = [];
10135
+ }
9932
10136
  Object.entries(memberEntries).forEach(([key, value]) => {
9933
10137
  const loc = `VpcSecurityGroupIds.${key}`;
9934
10138
  entries[loc] = value;
@@ -9957,6 +10161,9 @@ const serializeAws_queryRestoreFromClusterSnapshotMessage = (input, context) =>
9957
10161
  }
9958
10162
  if (input.IamRoles != null) {
9959
10163
  const memberEntries = serializeAws_queryIamRoleArnList(input.IamRoles, context);
10164
+ if (input.IamRoles?.length === 0) {
10165
+ entries.IamRoles = [];
10166
+ }
9960
10167
  Object.entries(memberEntries).forEach(([key, value]) => {
9961
10168
  const loc = `IamRoles.${key}`;
9962
10169
  entries[loc] = value;
@@ -10055,6 +10262,9 @@ const serializeAws_queryRevokeEndpointAccessMessage = (input, context) => {
10055
10262
  }
10056
10263
  if (input.VpcIds != null) {
10057
10264
  const memberEntries = serializeAws_queryVpcIdentifierList(input.VpcIds, context);
10265
+ if (input.VpcIds?.length === 0) {
10266
+ entries.VpcIds = [];
10267
+ }
10058
10268
  Object.entries(memberEntries).forEach(([key, value]) => {
10059
10269
  const loc = `VpcIds.${key}`;
10060
10270
  entries[loc] = value;
@@ -10095,6 +10305,9 @@ const serializeAws_queryScheduledActionFilter = (input, context) => {
10095
10305
  }
10096
10306
  if (input.Values != null) {
10097
10307
  const memberEntries = serializeAws_queryValueStringList(input.Values, context);
10308
+ if (input.Values?.length === 0) {
10309
+ entries.Values = [];
10310
+ }
10098
10311
  Object.entries(memberEntries).forEach(([key, value]) => {
10099
10312
  const loc = `Values.${key}`;
10100
10313
  entries[loc] = value;