@aws-sdk/client-elasticache 3.105.0 → 3.107.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.107.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.106.0...v3.107.0) (2022-06-08)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **clients:** handle empty xml tags ([#3623](https://github.com/aws/aws-sdk-js-v3/issues/3623)) ([543a0ce](https://github.com/aws/aws-sdk-js-v3/commit/543a0ce13bebc6e8a5f4cc8e1bd4de67692d4034))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.105.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.104.0...v3.105.0) (2022-06-06)
7
18
 
8
19
 
@@ -6786,13 +6786,14 @@ const deserializeAws_queryAllowedNodeTypeModificationsMessage = (output, context
6786
6786
  if (output.ScaleUpModifications === "") {
6787
6787
  contents.ScaleUpModifications = [];
6788
6788
  }
6789
- if (output["ScaleUpModifications"] !== undefined && output["ScaleUpModifications"]["member"] !== undefined) {
6789
+ else if (output["ScaleUpModifications"] !== undefined && output["ScaleUpModifications"]["member"] !== undefined) {
6790
6790
  contents.ScaleUpModifications = deserializeAws_queryNodeTypeList((0, smithy_client_1.getArrayIfSingleItem)(output["ScaleUpModifications"]["member"]), context);
6791
6791
  }
6792
6792
  if (output.ScaleDownModifications === "") {
6793
6793
  contents.ScaleDownModifications = [];
6794
6794
  }
6795
- if (output["ScaleDownModifications"] !== undefined && output["ScaleDownModifications"]["member"] !== undefined) {
6795
+ else if (output["ScaleDownModifications"] !== undefined &&
6796
+ output["ScaleDownModifications"]["member"] !== undefined) {
6796
6797
  contents.ScaleDownModifications = deserializeAws_queryNodeTypeList((0, smithy_client_1.getArrayIfSingleItem)(output["ScaleDownModifications"]["member"]), context);
6797
6798
  }
6798
6799
  return contents;
@@ -6943,7 +6944,7 @@ const deserializeAws_queryCacheCluster = (output, context) => {
6943
6944
  if (output.CacheSecurityGroups === "") {
6944
6945
  contents.CacheSecurityGroups = [];
6945
6946
  }
6946
- if (output["CacheSecurityGroups"] !== undefined &&
6947
+ else if (output["CacheSecurityGroups"] !== undefined &&
6947
6948
  output["CacheSecurityGroups"]["CacheSecurityGroup"] !== undefined) {
6948
6949
  contents.CacheSecurityGroups = deserializeAws_queryCacheSecurityGroupMembershipList((0, smithy_client_1.getArrayIfSingleItem)(output["CacheSecurityGroups"]["CacheSecurityGroup"]), context);
6949
6950
  }
@@ -6956,7 +6957,7 @@ const deserializeAws_queryCacheCluster = (output, context) => {
6956
6957
  if (output.CacheNodes === "") {
6957
6958
  contents.CacheNodes = [];
6958
6959
  }
6959
- if (output["CacheNodes"] !== undefined && output["CacheNodes"]["CacheNode"] !== undefined) {
6960
+ else if (output["CacheNodes"] !== undefined && output["CacheNodes"]["CacheNode"] !== undefined) {
6960
6961
  contents.CacheNodes = deserializeAws_queryCacheNodeList((0, smithy_client_1.getArrayIfSingleItem)(output["CacheNodes"]["CacheNode"]), context);
6961
6962
  }
6962
6963
  if (output["AutoMinorVersionUpgrade"] !== undefined) {
@@ -6965,7 +6966,7 @@ const deserializeAws_queryCacheCluster = (output, context) => {
6965
6966
  if (output.SecurityGroups === "") {
6966
6967
  contents.SecurityGroups = [];
6967
6968
  }
6968
- if (output["SecurityGroups"] !== undefined && output["SecurityGroups"]["member"] !== undefined) {
6969
+ else if (output["SecurityGroups"] !== undefined && output["SecurityGroups"]["member"] !== undefined) {
6969
6970
  contents.SecurityGroups = deserializeAws_querySecurityGroupMembershipList((0, smithy_client_1.getArrayIfSingleItem)(output["SecurityGroups"]["member"]), context);
6970
6971
  }
6971
6972
  if (output["ReplicationGroupId"] !== undefined) {
@@ -6998,7 +6999,7 @@ const deserializeAws_queryCacheCluster = (output, context) => {
6998
6999
  if (output.LogDeliveryConfigurations === "") {
6999
7000
  contents.LogDeliveryConfigurations = [];
7000
7001
  }
7001
- if (output["LogDeliveryConfigurations"] !== undefined &&
7002
+ else if (output["LogDeliveryConfigurations"] !== undefined &&
7002
7003
  output["LogDeliveryConfigurations"]["LogDeliveryConfiguration"] !== undefined) {
7003
7004
  contents.LogDeliveryConfigurations = deserializeAws_queryLogDeliveryConfigurationList((0, smithy_client_1.getArrayIfSingleItem)(output["LogDeliveryConfigurations"]["LogDeliveryConfiguration"]), context);
7004
7005
  }
@@ -7034,7 +7035,7 @@ const deserializeAws_queryCacheClusterMessage = (output, context) => {
7034
7035
  if (output.CacheClusters === "") {
7035
7036
  contents.CacheClusters = [];
7036
7037
  }
7037
- if (output["CacheClusters"] !== undefined && output["CacheClusters"]["CacheCluster"] !== undefined) {
7038
+ else if (output["CacheClusters"] !== undefined && output["CacheClusters"]["CacheCluster"] !== undefined) {
7038
7039
  contents.CacheClusters = deserializeAws_queryCacheClusterList((0, smithy_client_1.getArrayIfSingleItem)(output["CacheClusters"]["CacheCluster"]), context);
7039
7040
  }
7040
7041
  return contents;
@@ -7094,7 +7095,7 @@ const deserializeAws_queryCacheEngineVersionMessage = (output, context) => {
7094
7095
  if (output.CacheEngineVersions === "") {
7095
7096
  contents.CacheEngineVersions = [];
7096
7097
  }
7097
- if (output["CacheEngineVersions"] !== undefined &&
7098
+ else if (output["CacheEngineVersions"] !== undefined &&
7098
7099
  output["CacheEngineVersions"]["CacheEngineVersion"] !== undefined) {
7099
7100
  contents.CacheEngineVersions = deserializeAws_queryCacheEngineVersionList((0, smithy_client_1.getArrayIfSingleItem)(output["CacheEngineVersions"]["CacheEngineVersion"]), context);
7100
7101
  }
@@ -7193,7 +7194,7 @@ const deserializeAws_queryCacheNodeTypeSpecificParameter = (output, context) =>
7193
7194
  if (output.CacheNodeTypeSpecificValues === "") {
7194
7195
  contents.CacheNodeTypeSpecificValues = [];
7195
7196
  }
7196
- if (output["CacheNodeTypeSpecificValues"] !== undefined &&
7197
+ else if (output["CacheNodeTypeSpecificValues"] !== undefined &&
7197
7198
  output["CacheNodeTypeSpecificValues"]["CacheNodeTypeSpecificValue"] !== undefined) {
7198
7199
  contents.CacheNodeTypeSpecificValues = deserializeAws_queryCacheNodeTypeSpecificValueList((0, smithy_client_1.getArrayIfSingleItem)(output["CacheNodeTypeSpecificValues"]["CacheNodeTypeSpecificValue"]), context);
7199
7200
  }
@@ -7328,13 +7329,13 @@ const deserializeAws_queryCacheParameterGroupDetails = (output, context) => {
7328
7329
  if (output.Parameters === "") {
7329
7330
  contents.Parameters = [];
7330
7331
  }
7331
- if (output["Parameters"] !== undefined && output["Parameters"]["Parameter"] !== undefined) {
7332
+ else if (output["Parameters"] !== undefined && output["Parameters"]["Parameter"] !== undefined) {
7332
7333
  contents.Parameters = deserializeAws_queryParametersList((0, smithy_client_1.getArrayIfSingleItem)(output["Parameters"]["Parameter"]), context);
7333
7334
  }
7334
7335
  if (output.CacheNodeTypeSpecificParameters === "") {
7335
7336
  contents.CacheNodeTypeSpecificParameters = [];
7336
7337
  }
7337
- if (output["CacheNodeTypeSpecificParameters"] !== undefined &&
7338
+ else if (output["CacheNodeTypeSpecificParameters"] !== undefined &&
7338
7339
  output["CacheNodeTypeSpecificParameters"]["CacheNodeTypeSpecificParameter"] !== undefined) {
7339
7340
  contents.CacheNodeTypeSpecificParameters = deserializeAws_queryCacheNodeTypeSpecificParametersList((0, smithy_client_1.getArrayIfSingleItem)(output["CacheNodeTypeSpecificParameters"]["CacheNodeTypeSpecificParameter"]), context);
7340
7341
  }
@@ -7388,7 +7389,7 @@ const deserializeAws_queryCacheParameterGroupsMessage = (output, context) => {
7388
7389
  if (output.CacheParameterGroups === "") {
7389
7390
  contents.CacheParameterGroups = [];
7390
7391
  }
7391
- if (output["CacheParameterGroups"] !== undefined &&
7392
+ else if (output["CacheParameterGroups"] !== undefined &&
7392
7393
  output["CacheParameterGroups"]["CacheParameterGroup"] !== undefined) {
7393
7394
  contents.CacheParameterGroups = deserializeAws_queryCacheParameterGroupList((0, smithy_client_1.getArrayIfSingleItem)(output["CacheParameterGroups"]["CacheParameterGroup"]), context);
7394
7395
  }
@@ -7409,7 +7410,8 @@ const deserializeAws_queryCacheParameterGroupStatus = (output, context) => {
7409
7410
  if (output.CacheNodeIdsToReboot === "") {
7410
7411
  contents.CacheNodeIdsToReboot = [];
7411
7412
  }
7412
- if (output["CacheNodeIdsToReboot"] !== undefined && output["CacheNodeIdsToReboot"]["CacheNodeId"] !== undefined) {
7413
+ else if (output["CacheNodeIdsToReboot"] !== undefined &&
7414
+ output["CacheNodeIdsToReboot"]["CacheNodeId"] !== undefined) {
7413
7415
  contents.CacheNodeIdsToReboot = deserializeAws_queryCacheNodeIdsList((0, smithy_client_1.getArrayIfSingleItem)(output["CacheNodeIdsToReboot"]["CacheNodeId"]), context);
7414
7416
  }
7415
7417
  return contents;
@@ -7434,7 +7436,8 @@ const deserializeAws_queryCacheSecurityGroup = (output, context) => {
7434
7436
  if (output.EC2SecurityGroups === "") {
7435
7437
  contents.EC2SecurityGroups = [];
7436
7438
  }
7437
- if (output["EC2SecurityGroups"] !== undefined && output["EC2SecurityGroups"]["EC2SecurityGroup"] !== undefined) {
7439
+ else if (output["EC2SecurityGroups"] !== undefined &&
7440
+ output["EC2SecurityGroups"]["EC2SecurityGroup"] !== undefined) {
7438
7441
  contents.EC2SecurityGroups = deserializeAws_queryEC2SecurityGroupList((0, smithy_client_1.getArrayIfSingleItem)(output["EC2SecurityGroups"]["EC2SecurityGroup"]), context);
7439
7442
  }
7440
7443
  if (output["ARN"] !== undefined) {
@@ -7485,7 +7488,7 @@ const deserializeAws_queryCacheSecurityGroupMessage = (output, context) => {
7485
7488
  if (output.CacheSecurityGroups === "") {
7486
7489
  contents.CacheSecurityGroups = [];
7487
7490
  }
7488
- if (output["CacheSecurityGroups"] !== undefined &&
7491
+ else if (output["CacheSecurityGroups"] !== undefined &&
7489
7492
  output["CacheSecurityGroups"]["CacheSecurityGroup"] !== undefined) {
7490
7493
  contents.CacheSecurityGroups = deserializeAws_queryCacheSecurityGroups((0, smithy_client_1.getArrayIfSingleItem)(output["CacheSecurityGroups"]["CacheSecurityGroup"]), context);
7491
7494
  }
@@ -7539,7 +7542,7 @@ const deserializeAws_queryCacheSubnetGroup = (output, context) => {
7539
7542
  if (output.Subnets === "") {
7540
7543
  contents.Subnets = [];
7541
7544
  }
7542
- if (output["Subnets"] !== undefined && output["Subnets"]["Subnet"] !== undefined) {
7545
+ else if (output["Subnets"] !== undefined && output["Subnets"]["Subnet"] !== undefined) {
7543
7546
  contents.Subnets = deserializeAws_querySubnetList((0, smithy_client_1.getArrayIfSingleItem)(output["Subnets"]["Subnet"]), context);
7544
7547
  }
7545
7548
  if (output["ARN"] !== undefined) {
@@ -7576,7 +7579,8 @@ const deserializeAws_queryCacheSubnetGroupMessage = (output, context) => {
7576
7579
  if (output.CacheSubnetGroups === "") {
7577
7580
  contents.CacheSubnetGroups = [];
7578
7581
  }
7579
- if (output["CacheSubnetGroups"] !== undefined && output["CacheSubnetGroups"]["CacheSubnetGroup"] !== undefined) {
7582
+ else if (output["CacheSubnetGroups"] !== undefined &&
7583
+ output["CacheSubnetGroups"]["CacheSubnetGroup"] !== undefined) {
7580
7584
  contents.CacheSubnetGroups = deserializeAws_queryCacheSubnetGroups((0, smithy_client_1.getArrayIfSingleItem)(output["CacheSubnetGroups"]["CacheSubnetGroup"]), context);
7581
7585
  }
7582
7586
  return contents;
@@ -7819,7 +7823,7 @@ const deserializeAws_queryDescribeGlobalReplicationGroupsResult = (output, conte
7819
7823
  if (output.GlobalReplicationGroups === "") {
7820
7824
  contents.GlobalReplicationGroups = [];
7821
7825
  }
7822
- if (output["GlobalReplicationGroups"] !== undefined &&
7826
+ else if (output["GlobalReplicationGroups"] !== undefined &&
7823
7827
  output["GlobalReplicationGroups"]["GlobalReplicationGroup"] !== undefined) {
7824
7828
  contents.GlobalReplicationGroups = deserializeAws_queryGlobalReplicationGroupList((0, smithy_client_1.getArrayIfSingleItem)(output["GlobalReplicationGroups"]["GlobalReplicationGroup"]), context);
7825
7829
  }
@@ -7836,7 +7840,7 @@ const deserializeAws_queryDescribeSnapshotsListMessage = (output, context) => {
7836
7840
  if (output.Snapshots === "") {
7837
7841
  contents.Snapshots = [];
7838
7842
  }
7839
- if (output["Snapshots"] !== undefined && output["Snapshots"]["Snapshot"] !== undefined) {
7843
+ else if (output["Snapshots"] !== undefined && output["Snapshots"]["Snapshot"] !== undefined) {
7840
7844
  contents.Snapshots = deserializeAws_querySnapshotList((0, smithy_client_1.getArrayIfSingleItem)(output["Snapshots"]["Snapshot"]), context);
7841
7845
  }
7842
7846
  return contents;
@@ -7849,7 +7853,7 @@ const deserializeAws_queryDescribeUserGroupsResult = (output, context) => {
7849
7853
  if (output.UserGroups === "") {
7850
7854
  contents.UserGroups = [];
7851
7855
  }
7852
- if (output["UserGroups"] !== undefined && output["UserGroups"]["member"] !== undefined) {
7856
+ else if (output["UserGroups"] !== undefined && output["UserGroups"]["member"] !== undefined) {
7853
7857
  contents.UserGroups = deserializeAws_queryUserGroupList((0, smithy_client_1.getArrayIfSingleItem)(output["UserGroups"]["member"]), context);
7854
7858
  }
7855
7859
  if (output["Marker"] !== undefined) {
@@ -7865,7 +7869,7 @@ const deserializeAws_queryDescribeUsersResult = (output, context) => {
7865
7869
  if (output.Users === "") {
7866
7870
  contents.Users = [];
7867
7871
  }
7868
- if (output["Users"] !== undefined && output["Users"]["member"] !== undefined) {
7872
+ else if (output["Users"] !== undefined && output["Users"]["member"] !== undefined) {
7869
7873
  contents.Users = deserializeAws_queryUserList((0, smithy_client_1.getArrayIfSingleItem)(output["Users"]["member"]), context);
7870
7874
  }
7871
7875
  if (output["Marker"] !== undefined) {
@@ -7960,13 +7964,13 @@ const deserializeAws_queryEngineDefaults = (output, context) => {
7960
7964
  if (output.Parameters === "") {
7961
7965
  contents.Parameters = [];
7962
7966
  }
7963
- if (output["Parameters"] !== undefined && output["Parameters"]["Parameter"] !== undefined) {
7967
+ else if (output["Parameters"] !== undefined && output["Parameters"]["Parameter"] !== undefined) {
7964
7968
  contents.Parameters = deserializeAws_queryParametersList((0, smithy_client_1.getArrayIfSingleItem)(output["Parameters"]["Parameter"]), context);
7965
7969
  }
7966
7970
  if (output.CacheNodeTypeSpecificParameters === "") {
7967
7971
  contents.CacheNodeTypeSpecificParameters = [];
7968
7972
  }
7969
- if (output["CacheNodeTypeSpecificParameters"] !== undefined &&
7973
+ else if (output["CacheNodeTypeSpecificParameters"] !== undefined &&
7970
7974
  output["CacheNodeTypeSpecificParameters"]["CacheNodeTypeSpecificParameter"] !== undefined) {
7971
7975
  contents.CacheNodeTypeSpecificParameters = deserializeAws_queryCacheNodeTypeSpecificParametersList((0, smithy_client_1.getArrayIfSingleItem)(output["CacheNodeTypeSpecificParameters"]["CacheNodeTypeSpecificParameter"]), context);
7972
7976
  }
@@ -8014,7 +8018,7 @@ const deserializeAws_queryEventsMessage = (output, context) => {
8014
8018
  if (output.Events === "") {
8015
8019
  contents.Events = [];
8016
8020
  }
8017
- if (output["Events"] !== undefined && output["Events"]["Event"] !== undefined) {
8021
+ else if (output["Events"] !== undefined && output["Events"]["Event"] !== undefined) {
8018
8022
  contents.Events = deserializeAws_queryEventList((0, smithy_client_1.getArrayIfSingleItem)(output["Events"]["Event"]), context);
8019
8023
  }
8020
8024
  return contents;
@@ -8088,7 +8092,7 @@ const deserializeAws_queryGlobalReplicationGroup = (output, context) => {
8088
8092
  if (output.Members === "") {
8089
8093
  contents.Members = [];
8090
8094
  }
8091
- if (output["Members"] !== undefined && output["Members"]["GlobalReplicationGroupMember"] !== undefined) {
8095
+ else if (output["Members"] !== undefined && output["Members"]["GlobalReplicationGroupMember"] !== undefined) {
8092
8096
  contents.Members = deserializeAws_queryGlobalReplicationGroupMemberList((0, smithy_client_1.getArrayIfSingleItem)(output["Members"]["GlobalReplicationGroupMember"]), context);
8093
8097
  }
8094
8098
  if (output["ClusterEnabled"] !== undefined) {
@@ -8097,7 +8101,7 @@ const deserializeAws_queryGlobalReplicationGroup = (output, context) => {
8097
8101
  if (output.GlobalNodeGroups === "") {
8098
8102
  contents.GlobalNodeGroups = [];
8099
8103
  }
8100
- if (output["GlobalNodeGroups"] !== undefined && output["GlobalNodeGroups"]["GlobalNodeGroup"] !== undefined) {
8104
+ else if (output["GlobalNodeGroups"] !== undefined && output["GlobalNodeGroups"]["GlobalNodeGroup"] !== undefined) {
8101
8105
  contents.GlobalNodeGroups = deserializeAws_queryGlobalNodeGroupList((0, smithy_client_1.getArrayIfSingleItem)(output["GlobalNodeGroups"]["GlobalNodeGroup"]), context);
8102
8106
  }
8103
8107
  if (output["AuthTokenEnabled"] !== undefined) {
@@ -8463,7 +8467,7 @@ const deserializeAws_queryNodeGroup = (output, context) => {
8463
8467
  if (output.NodeGroupMembers === "") {
8464
8468
  contents.NodeGroupMembers = [];
8465
8469
  }
8466
- if (output["NodeGroupMembers"] !== undefined && output["NodeGroupMembers"]["NodeGroupMember"] !== undefined) {
8470
+ else if (output["NodeGroupMembers"] !== undefined && output["NodeGroupMembers"]["NodeGroupMember"] !== undefined) {
8467
8471
  contents.NodeGroupMembers = deserializeAws_queryNodeGroupMemberList((0, smithy_client_1.getArrayIfSingleItem)(output["NodeGroupMembers"]["NodeGroupMember"]), context);
8468
8472
  }
8469
8473
  return contents;
@@ -8493,7 +8497,7 @@ const deserializeAws_queryNodeGroupConfiguration = (output, context) => {
8493
8497
  if (output.ReplicaAvailabilityZones === "") {
8494
8498
  contents.ReplicaAvailabilityZones = [];
8495
8499
  }
8496
- if (output["ReplicaAvailabilityZones"] !== undefined &&
8500
+ else if (output["ReplicaAvailabilityZones"] !== undefined &&
8497
8501
  output["ReplicaAvailabilityZones"]["AvailabilityZone"] !== undefined) {
8498
8502
  contents.ReplicaAvailabilityZones = deserializeAws_queryAvailabilityZonesList((0, smithy_client_1.getArrayIfSingleItem)(output["ReplicaAvailabilityZones"]["AvailabilityZone"]), context);
8499
8503
  }
@@ -8503,7 +8507,7 @@ const deserializeAws_queryNodeGroupConfiguration = (output, context) => {
8503
8507
  if (output.ReplicaOutpostArns === "") {
8504
8508
  contents.ReplicaOutpostArns = [];
8505
8509
  }
8506
- if (output["ReplicaOutpostArns"] !== undefined && output["ReplicaOutpostArns"]["OutpostArn"] !== undefined) {
8510
+ else if (output["ReplicaOutpostArns"] !== undefined && output["ReplicaOutpostArns"]["OutpostArn"] !== undefined) {
8507
8511
  contents.ReplicaOutpostArns = deserializeAws_queryOutpostArnsList((0, smithy_client_1.getArrayIfSingleItem)(output["ReplicaOutpostArns"]["OutpostArn"]), context);
8508
8512
  }
8509
8513
  return contents;
@@ -8637,7 +8641,7 @@ const deserializeAws_queryNodeGroupUpdateStatus = (output, context) => {
8637
8641
  if (output.NodeGroupMemberUpdateStatus === "") {
8638
8642
  contents.NodeGroupMemberUpdateStatus = [];
8639
8643
  }
8640
- if (output["NodeGroupMemberUpdateStatus"] !== undefined &&
8644
+ else if (output["NodeGroupMemberUpdateStatus"] !== undefined &&
8641
8645
  output["NodeGroupMemberUpdateStatus"]["NodeGroupMemberUpdateStatus"] !== undefined) {
8642
8646
  contents.NodeGroupMemberUpdateStatus = deserializeAws_queryNodeGroupMemberUpdateStatusList((0, smithy_client_1.getArrayIfSingleItem)(output["NodeGroupMemberUpdateStatus"]["NodeGroupMemberUpdateStatus"]), context);
8643
8647
  }
@@ -8853,7 +8857,8 @@ const deserializeAws_queryPendingModifiedValues = (output, context) => {
8853
8857
  if (output.CacheNodeIdsToRemove === "") {
8854
8858
  contents.CacheNodeIdsToRemove = [];
8855
8859
  }
8856
- if (output["CacheNodeIdsToRemove"] !== undefined && output["CacheNodeIdsToRemove"]["CacheNodeId"] !== undefined) {
8860
+ else if (output["CacheNodeIdsToRemove"] !== undefined &&
8861
+ output["CacheNodeIdsToRemove"]["CacheNodeId"] !== undefined) {
8857
8862
  contents.CacheNodeIdsToRemove = deserializeAws_queryCacheNodeIdsList((0, smithy_client_1.getArrayIfSingleItem)(output["CacheNodeIdsToRemove"]["CacheNodeId"]), context);
8858
8863
  }
8859
8864
  if (output["EngineVersion"] !== undefined) {
@@ -8868,7 +8873,7 @@ const deserializeAws_queryPendingModifiedValues = (output, context) => {
8868
8873
  if (output.LogDeliveryConfigurations === "") {
8869
8874
  contents.LogDeliveryConfigurations = [];
8870
8875
  }
8871
- if (output["LogDeliveryConfigurations"] !== undefined &&
8876
+ else if (output["LogDeliveryConfigurations"] !== undefined &&
8872
8877
  output["LogDeliveryConfigurations"]["member"] !== undefined) {
8873
8878
  contents.LogDeliveryConfigurations = deserializeAws_queryPendingLogDeliveryConfigurationList((0, smithy_client_1.getArrayIfSingleItem)(output["LogDeliveryConfigurations"]["member"]), context);
8874
8879
  }
@@ -9002,13 +9007,13 @@ const deserializeAws_queryReplicationGroup = (output, context) => {
9002
9007
  if (output.MemberClusters === "") {
9003
9008
  contents.MemberClusters = [];
9004
9009
  }
9005
- if (output["MemberClusters"] !== undefined && output["MemberClusters"]["ClusterId"] !== undefined) {
9010
+ else if (output["MemberClusters"] !== undefined && output["MemberClusters"]["ClusterId"] !== undefined) {
9006
9011
  contents.MemberClusters = deserializeAws_queryClusterIdList((0, smithy_client_1.getArrayIfSingleItem)(output["MemberClusters"]["ClusterId"]), context);
9007
9012
  }
9008
9013
  if (output.NodeGroups === "") {
9009
9014
  contents.NodeGroups = [];
9010
9015
  }
9011
- if (output["NodeGroups"] !== undefined && output["NodeGroups"]["NodeGroup"] !== undefined) {
9016
+ else if (output["NodeGroups"] !== undefined && output["NodeGroups"]["NodeGroup"] !== undefined) {
9012
9017
  contents.NodeGroups = deserializeAws_queryNodeGroupList((0, smithy_client_1.getArrayIfSingleItem)(output["NodeGroups"]["NodeGroup"]), context);
9013
9018
  }
9014
9019
  if (output["SnapshottingClusterId"] !== undefined) {
@@ -9050,7 +9055,7 @@ const deserializeAws_queryReplicationGroup = (output, context) => {
9050
9055
  if (output.MemberClustersOutpostArns === "") {
9051
9056
  contents.MemberClustersOutpostArns = [];
9052
9057
  }
9053
- if (output["MemberClustersOutpostArns"] !== undefined &&
9058
+ else if (output["MemberClustersOutpostArns"] !== undefined &&
9054
9059
  output["MemberClustersOutpostArns"]["ReplicationGroupOutpostArn"] !== undefined) {
9055
9060
  contents.MemberClustersOutpostArns = deserializeAws_queryReplicationGroupOutpostArnList((0, smithy_client_1.getArrayIfSingleItem)(output["MemberClustersOutpostArns"]["ReplicationGroupOutpostArn"]), context);
9056
9061
  }
@@ -9063,13 +9068,13 @@ const deserializeAws_queryReplicationGroup = (output, context) => {
9063
9068
  if (output.UserGroupIds === "") {
9064
9069
  contents.UserGroupIds = [];
9065
9070
  }
9066
- if (output["UserGroupIds"] !== undefined && output["UserGroupIds"]["member"] !== undefined) {
9071
+ else if (output["UserGroupIds"] !== undefined && output["UserGroupIds"]["member"] !== undefined) {
9067
9072
  contents.UserGroupIds = deserializeAws_queryUserGroupIdList((0, smithy_client_1.getArrayIfSingleItem)(output["UserGroupIds"]["member"]), context);
9068
9073
  }
9069
9074
  if (output.LogDeliveryConfigurations === "") {
9070
9075
  contents.LogDeliveryConfigurations = [];
9071
9076
  }
9072
- if (output["LogDeliveryConfigurations"] !== undefined &&
9077
+ else if (output["LogDeliveryConfigurations"] !== undefined &&
9073
9078
  output["LogDeliveryConfigurations"]["LogDeliveryConfiguration"] !== undefined) {
9074
9079
  contents.LogDeliveryConfigurations = deserializeAws_queryLogDeliveryConfigurationList((0, smithy_client_1.getArrayIfSingleItem)(output["LogDeliveryConfigurations"]["LogDeliveryConfiguration"]), context);
9075
9080
  }
@@ -9120,7 +9125,8 @@ const deserializeAws_queryReplicationGroupMessage = (output, context) => {
9120
9125
  if (output.ReplicationGroups === "") {
9121
9126
  contents.ReplicationGroups = [];
9122
9127
  }
9123
- if (output["ReplicationGroups"] !== undefined && output["ReplicationGroups"]["ReplicationGroup"] !== undefined) {
9128
+ else if (output["ReplicationGroups"] !== undefined &&
9129
+ output["ReplicationGroups"]["ReplicationGroup"] !== undefined) {
9124
9130
  contents.ReplicationGroups = deserializeAws_queryReplicationGroupList((0, smithy_client_1.getArrayIfSingleItem)(output["ReplicationGroups"]["ReplicationGroup"]), context);
9125
9131
  }
9126
9132
  return contents;
@@ -9180,7 +9186,7 @@ const deserializeAws_queryReplicationGroupPendingModifiedValues = (output, conte
9180
9186
  if (output.LogDeliveryConfigurations === "") {
9181
9187
  contents.LogDeliveryConfigurations = [];
9182
9188
  }
9183
- if (output["LogDeliveryConfigurations"] !== undefined &&
9189
+ else if (output["LogDeliveryConfigurations"] !== undefined &&
9184
9190
  output["LogDeliveryConfigurations"]["member"] !== undefined) {
9185
9191
  contents.LogDeliveryConfigurations = deserializeAws_queryPendingLogDeliveryConfigurationList((0, smithy_client_1.getArrayIfSingleItem)(output["LogDeliveryConfigurations"]["member"]), context);
9186
9192
  }
@@ -9238,7 +9244,7 @@ const deserializeAws_queryReservedCacheNode = (output, context) => {
9238
9244
  if (output.RecurringCharges === "") {
9239
9245
  contents.RecurringCharges = [];
9240
9246
  }
9241
- if (output["RecurringCharges"] !== undefined && output["RecurringCharges"]["RecurringCharge"] !== undefined) {
9247
+ else if (output["RecurringCharges"] !== undefined && output["RecurringCharges"]["RecurringCharge"] !== undefined) {
9242
9248
  contents.RecurringCharges = deserializeAws_queryRecurringChargeList((0, smithy_client_1.getArrayIfSingleItem)(output["RecurringCharges"]["RecurringCharge"]), context);
9243
9249
  }
9244
9250
  if (output["ReservationARN"] !== undefined) {
@@ -9276,7 +9282,8 @@ const deserializeAws_queryReservedCacheNodeMessage = (output, context) => {
9276
9282
  if (output.ReservedCacheNodes === "") {
9277
9283
  contents.ReservedCacheNodes = [];
9278
9284
  }
9279
- if (output["ReservedCacheNodes"] !== undefined && output["ReservedCacheNodes"]["ReservedCacheNode"] !== undefined) {
9285
+ else if (output["ReservedCacheNodes"] !== undefined &&
9286
+ output["ReservedCacheNodes"]["ReservedCacheNode"] !== undefined) {
9280
9287
  contents.ReservedCacheNodes = deserializeAws_queryReservedCacheNodeList((0, smithy_client_1.getArrayIfSingleItem)(output["ReservedCacheNodes"]["ReservedCacheNode"]), context);
9281
9288
  }
9282
9289
  return contents;
@@ -9334,7 +9341,7 @@ const deserializeAws_queryReservedCacheNodesOffering = (output, context) => {
9334
9341
  if (output.RecurringCharges === "") {
9335
9342
  contents.RecurringCharges = [];
9336
9343
  }
9337
- if (output["RecurringCharges"] !== undefined && output["RecurringCharges"]["RecurringCharge"] !== undefined) {
9344
+ else if (output["RecurringCharges"] !== undefined && output["RecurringCharges"]["RecurringCharge"] !== undefined) {
9338
9345
  contents.RecurringCharges = deserializeAws_queryRecurringChargeList((0, smithy_client_1.getArrayIfSingleItem)(output["RecurringCharges"]["RecurringCharge"]), context);
9339
9346
  }
9340
9347
  return contents;
@@ -9360,7 +9367,7 @@ const deserializeAws_queryReservedCacheNodesOfferingMessage = (output, context)
9360
9367
  if (output.ReservedCacheNodesOfferings === "") {
9361
9368
  contents.ReservedCacheNodesOfferings = [];
9362
9369
  }
9363
- if (output["ReservedCacheNodesOfferings"] !== undefined &&
9370
+ else if (output["ReservedCacheNodesOfferings"] !== undefined &&
9364
9371
  output["ReservedCacheNodesOfferings"]["ReservedCacheNodesOffering"] !== undefined) {
9365
9372
  contents.ReservedCacheNodesOfferings = deserializeAws_queryReservedCacheNodesOfferingList((0, smithy_client_1.getArrayIfSingleItem)(output["ReservedCacheNodesOfferings"]["ReservedCacheNodesOffering"]), context);
9366
9373
  }
@@ -9508,7 +9515,7 @@ const deserializeAws_queryServiceUpdatesMessage = (output, context) => {
9508
9515
  if (output.ServiceUpdates === "") {
9509
9516
  contents.ServiceUpdates = [];
9510
9517
  }
9511
- if (output["ServiceUpdates"] !== undefined && output["ServiceUpdates"]["ServiceUpdate"] !== undefined) {
9518
+ else if (output["ServiceUpdates"] !== undefined && output["ServiceUpdates"]["ServiceUpdate"] !== undefined) {
9512
9519
  contents.ServiceUpdates = deserializeAws_queryServiceUpdateList((0, smithy_client_1.getArrayIfSingleItem)(output["ServiceUpdates"]["ServiceUpdate"]), context);
9513
9520
  }
9514
9521
  return contents;
@@ -9628,7 +9635,7 @@ const deserializeAws_querySnapshot = (output, context) => {
9628
9635
  if (output.NodeSnapshots === "") {
9629
9636
  contents.NodeSnapshots = [];
9630
9637
  }
9631
- if (output["NodeSnapshots"] !== undefined && output["NodeSnapshots"]["NodeSnapshot"] !== undefined) {
9638
+ else if (output["NodeSnapshots"] !== undefined && output["NodeSnapshots"]["NodeSnapshot"] !== undefined) {
9632
9639
  contents.NodeSnapshots = deserializeAws_queryNodeSnapshotList((0, smithy_client_1.getArrayIfSingleItem)(output["NodeSnapshots"]["NodeSnapshot"]), context);
9633
9640
  }
9634
9641
  if (output["KmsKeyId"] !== undefined) {
@@ -9781,7 +9788,7 @@ const deserializeAws_queryTagListMessage = (output, context) => {
9781
9788
  if (output.TagList === "") {
9782
9789
  contents.TagList = [];
9783
9790
  }
9784
- if (output["TagList"] !== undefined && output["TagList"]["Tag"] !== undefined) {
9791
+ else if (output["TagList"] !== undefined && output["TagList"]["Tag"] !== undefined) {
9785
9792
  contents.TagList = deserializeAws_queryTagList((0, smithy_client_1.getArrayIfSingleItem)(output["TagList"]["Tag"]), context);
9786
9793
  }
9787
9794
  return contents;
@@ -9929,14 +9936,14 @@ const deserializeAws_queryUpdateAction = (output, context) => {
9929
9936
  if (output.NodeGroupUpdateStatus === "") {
9930
9937
  contents.NodeGroupUpdateStatus = [];
9931
9938
  }
9932
- if (output["NodeGroupUpdateStatus"] !== undefined &&
9939
+ else if (output["NodeGroupUpdateStatus"] !== undefined &&
9933
9940
  output["NodeGroupUpdateStatus"]["NodeGroupUpdateStatus"] !== undefined) {
9934
9941
  contents.NodeGroupUpdateStatus = deserializeAws_queryNodeGroupUpdateStatusList((0, smithy_client_1.getArrayIfSingleItem)(output["NodeGroupUpdateStatus"]["NodeGroupUpdateStatus"]), context);
9935
9942
  }
9936
9943
  if (output.CacheNodeUpdateStatus === "") {
9937
9944
  contents.CacheNodeUpdateStatus = [];
9938
9945
  }
9939
- if (output["CacheNodeUpdateStatus"] !== undefined &&
9946
+ else if (output["CacheNodeUpdateStatus"] !== undefined &&
9940
9947
  output["CacheNodeUpdateStatus"]["CacheNodeUpdateStatus"] !== undefined) {
9941
9948
  contents.CacheNodeUpdateStatus = deserializeAws_queryCacheNodeUpdateStatusList((0, smithy_client_1.getArrayIfSingleItem)(output["CacheNodeUpdateStatus"]["CacheNodeUpdateStatus"]), context);
9942
9949
  }
@@ -9966,14 +9973,14 @@ const deserializeAws_queryUpdateActionResultsMessage = (output, context) => {
9966
9973
  if (output.ProcessedUpdateActions === "") {
9967
9974
  contents.ProcessedUpdateActions = [];
9968
9975
  }
9969
- if (output["ProcessedUpdateActions"] !== undefined &&
9976
+ else if (output["ProcessedUpdateActions"] !== undefined &&
9970
9977
  output["ProcessedUpdateActions"]["ProcessedUpdateAction"] !== undefined) {
9971
9978
  contents.ProcessedUpdateActions = deserializeAws_queryProcessedUpdateActionList((0, smithy_client_1.getArrayIfSingleItem)(output["ProcessedUpdateActions"]["ProcessedUpdateAction"]), context);
9972
9979
  }
9973
9980
  if (output.UnprocessedUpdateActions === "") {
9974
9981
  contents.UnprocessedUpdateActions = [];
9975
9982
  }
9976
- if (output["UnprocessedUpdateActions"] !== undefined &&
9983
+ else if (output["UnprocessedUpdateActions"] !== undefined &&
9977
9984
  output["UnprocessedUpdateActions"]["UnprocessedUpdateAction"] !== undefined) {
9978
9985
  contents.UnprocessedUpdateActions = deserializeAws_queryUnprocessedUpdateActionList((0, smithy_client_1.getArrayIfSingleItem)(output["UnprocessedUpdateActions"]["UnprocessedUpdateAction"]), context);
9979
9986
  }
@@ -9990,7 +9997,7 @@ const deserializeAws_queryUpdateActionsMessage = (output, context) => {
9990
9997
  if (output.UpdateActions === "") {
9991
9998
  contents.UpdateActions = [];
9992
9999
  }
9993
- if (output["UpdateActions"] !== undefined && output["UpdateActions"]["UpdateAction"] !== undefined) {
10000
+ else if (output["UpdateActions"] !== undefined && output["UpdateActions"]["UpdateAction"] !== undefined) {
9994
10001
  contents.UpdateActions = deserializeAws_queryUpdateActionList((0, smithy_client_1.getArrayIfSingleItem)(output["UpdateActions"]["UpdateAction"]), context);
9995
10002
  }
9996
10003
  return contents;
@@ -10028,7 +10035,7 @@ const deserializeAws_queryUser = (output, context) => {
10028
10035
  if (output.UserGroupIds === "") {
10029
10036
  contents.UserGroupIds = [];
10030
10037
  }
10031
- if (output["UserGroupIds"] !== undefined && output["UserGroupIds"]["member"] !== undefined) {
10038
+ else if (output["UserGroupIds"] !== undefined && output["UserGroupIds"]["member"] !== undefined) {
10032
10039
  contents.UserGroupIds = deserializeAws_queryUserGroupIdList((0, smithy_client_1.getArrayIfSingleItem)(output["UserGroupIds"]["member"]), context);
10033
10040
  }
10034
10041
  if (output["Authentication"] !== undefined) {
@@ -10071,7 +10078,7 @@ const deserializeAws_queryUserGroup = (output, context) => {
10071
10078
  if (output.UserIds === "") {
10072
10079
  contents.UserIds = [];
10073
10080
  }
10074
- if (output["UserIds"] !== undefined && output["UserIds"]["member"] !== undefined) {
10081
+ else if (output["UserIds"] !== undefined && output["UserIds"]["member"] !== undefined) {
10075
10082
  contents.UserIds = deserializeAws_queryUserIdList((0, smithy_client_1.getArrayIfSingleItem)(output["UserIds"]["member"]), context);
10076
10083
  }
10077
10084
  if (output["MinimumEngineVersion"] !== undefined) {
@@ -10083,7 +10090,7 @@ const deserializeAws_queryUserGroup = (output, context) => {
10083
10090
  if (output.ReplicationGroups === "") {
10084
10091
  contents.ReplicationGroups = [];
10085
10092
  }
10086
- if (output["ReplicationGroups"] !== undefined && output["ReplicationGroups"]["member"] !== undefined) {
10093
+ else if (output["ReplicationGroups"] !== undefined && output["ReplicationGroups"]["member"] !== undefined) {
10087
10094
  contents.ReplicationGroups = deserializeAws_queryUGReplicationGroupIdList((0, smithy_client_1.getArrayIfSingleItem)(output["ReplicationGroups"]["member"]), context);
10088
10095
  }
10089
10096
  if (output["ARN"] !== undefined) {
@@ -10137,13 +10144,13 @@ const deserializeAws_queryUserGroupPendingChanges = (output, context) => {
10137
10144
  if (output.UserIdsToRemove === "") {
10138
10145
  contents.UserIdsToRemove = [];
10139
10146
  }
10140
- if (output["UserIdsToRemove"] !== undefined && output["UserIdsToRemove"]["member"] !== undefined) {
10147
+ else if (output["UserIdsToRemove"] !== undefined && output["UserIdsToRemove"]["member"] !== undefined) {
10141
10148
  contents.UserIdsToRemove = deserializeAws_queryUserIdList((0, smithy_client_1.getArrayIfSingleItem)(output["UserIdsToRemove"]["member"]), context);
10142
10149
  }
10143
10150
  if (output.UserIdsToAdd === "") {
10144
10151
  contents.UserIdsToAdd = [];
10145
10152
  }
10146
- if (output["UserIdsToAdd"] !== undefined && output["UserIdsToAdd"]["member"] !== undefined) {
10153
+ else if (output["UserIdsToAdd"] !== undefined && output["UserIdsToAdd"]["member"] !== undefined) {
10147
10154
  contents.UserIdsToAdd = deserializeAws_queryUserIdList((0, smithy_client_1.getArrayIfSingleItem)(output["UserIdsToAdd"]["member"]), context);
10148
10155
  }
10149
10156
  return contents;
@@ -10165,13 +10172,13 @@ const deserializeAws_queryUserGroupsUpdateStatus = (output, context) => {
10165
10172
  if (output.UserGroupIdsToAdd === "") {
10166
10173
  contents.UserGroupIdsToAdd = [];
10167
10174
  }
10168
- if (output["UserGroupIdsToAdd"] !== undefined && output["UserGroupIdsToAdd"]["member"] !== undefined) {
10175
+ else if (output["UserGroupIdsToAdd"] !== undefined && output["UserGroupIdsToAdd"]["member"] !== undefined) {
10169
10176
  contents.UserGroupIdsToAdd = deserializeAws_queryUserGroupIdList((0, smithy_client_1.getArrayIfSingleItem)(output["UserGroupIdsToAdd"]["member"]), context);
10170
10177
  }
10171
10178
  if (output.UserGroupIdsToRemove === "") {
10172
10179
  contents.UserGroupIdsToRemove = [];
10173
10180
  }
10174
- if (output["UserGroupIdsToRemove"] !== undefined && output["UserGroupIdsToRemove"]["member"] !== undefined) {
10181
+ else if (output["UserGroupIdsToRemove"] !== undefined && output["UserGroupIdsToRemove"]["member"] !== undefined) {
10175
10182
  contents.UserGroupIdsToRemove = deserializeAws_queryUserGroupIdList((0, smithy_client_1.getArrayIfSingleItem)(output["UserGroupIdsToRemove"]["member"]), context);
10176
10183
  }
10177
10184
  return contents;
@@ -8235,13 +8235,14 @@ var deserializeAws_queryAllowedNodeTypeModificationsMessage = function (output,
8235
8235
  if (output.ScaleUpModifications === "") {
8236
8236
  contents.ScaleUpModifications = [];
8237
8237
  }
8238
- if (output["ScaleUpModifications"] !== undefined && output["ScaleUpModifications"]["member"] !== undefined) {
8238
+ else if (output["ScaleUpModifications"] !== undefined && output["ScaleUpModifications"]["member"] !== undefined) {
8239
8239
  contents.ScaleUpModifications = deserializeAws_queryNodeTypeList(__getArrayIfSingleItem(output["ScaleUpModifications"]["member"]), context);
8240
8240
  }
8241
8241
  if (output.ScaleDownModifications === "") {
8242
8242
  contents.ScaleDownModifications = [];
8243
8243
  }
8244
- if (output["ScaleDownModifications"] !== undefined && output["ScaleDownModifications"]["member"] !== undefined) {
8244
+ else if (output["ScaleDownModifications"] !== undefined &&
8245
+ output["ScaleDownModifications"]["member"] !== undefined) {
8245
8246
  contents.ScaleDownModifications = deserializeAws_queryNodeTypeList(__getArrayIfSingleItem(output["ScaleDownModifications"]["member"]), context);
8246
8247
  }
8247
8248
  return contents;
@@ -8392,7 +8393,7 @@ var deserializeAws_queryCacheCluster = function (output, context) {
8392
8393
  if (output.CacheSecurityGroups === "") {
8393
8394
  contents.CacheSecurityGroups = [];
8394
8395
  }
8395
- if (output["CacheSecurityGroups"] !== undefined &&
8396
+ else if (output["CacheSecurityGroups"] !== undefined &&
8396
8397
  output["CacheSecurityGroups"]["CacheSecurityGroup"] !== undefined) {
8397
8398
  contents.CacheSecurityGroups = deserializeAws_queryCacheSecurityGroupMembershipList(__getArrayIfSingleItem(output["CacheSecurityGroups"]["CacheSecurityGroup"]), context);
8398
8399
  }
@@ -8405,7 +8406,7 @@ var deserializeAws_queryCacheCluster = function (output, context) {
8405
8406
  if (output.CacheNodes === "") {
8406
8407
  contents.CacheNodes = [];
8407
8408
  }
8408
- if (output["CacheNodes"] !== undefined && output["CacheNodes"]["CacheNode"] !== undefined) {
8409
+ else if (output["CacheNodes"] !== undefined && output["CacheNodes"]["CacheNode"] !== undefined) {
8409
8410
  contents.CacheNodes = deserializeAws_queryCacheNodeList(__getArrayIfSingleItem(output["CacheNodes"]["CacheNode"]), context);
8410
8411
  }
8411
8412
  if (output["AutoMinorVersionUpgrade"] !== undefined) {
@@ -8414,7 +8415,7 @@ var deserializeAws_queryCacheCluster = function (output, context) {
8414
8415
  if (output.SecurityGroups === "") {
8415
8416
  contents.SecurityGroups = [];
8416
8417
  }
8417
- if (output["SecurityGroups"] !== undefined && output["SecurityGroups"]["member"] !== undefined) {
8418
+ else if (output["SecurityGroups"] !== undefined && output["SecurityGroups"]["member"] !== undefined) {
8418
8419
  contents.SecurityGroups = deserializeAws_querySecurityGroupMembershipList(__getArrayIfSingleItem(output["SecurityGroups"]["member"]), context);
8419
8420
  }
8420
8421
  if (output["ReplicationGroupId"] !== undefined) {
@@ -8447,7 +8448,7 @@ var deserializeAws_queryCacheCluster = function (output, context) {
8447
8448
  if (output.LogDeliveryConfigurations === "") {
8448
8449
  contents.LogDeliveryConfigurations = [];
8449
8450
  }
8450
- if (output["LogDeliveryConfigurations"] !== undefined &&
8451
+ else if (output["LogDeliveryConfigurations"] !== undefined &&
8451
8452
  output["LogDeliveryConfigurations"]["LogDeliveryConfiguration"] !== undefined) {
8452
8453
  contents.LogDeliveryConfigurations = deserializeAws_queryLogDeliveryConfigurationList(__getArrayIfSingleItem(output["LogDeliveryConfigurations"]["LogDeliveryConfiguration"]), context);
8453
8454
  }
@@ -8483,7 +8484,7 @@ var deserializeAws_queryCacheClusterMessage = function (output, context) {
8483
8484
  if (output.CacheClusters === "") {
8484
8485
  contents.CacheClusters = [];
8485
8486
  }
8486
- if (output["CacheClusters"] !== undefined && output["CacheClusters"]["CacheCluster"] !== undefined) {
8487
+ else if (output["CacheClusters"] !== undefined && output["CacheClusters"]["CacheCluster"] !== undefined) {
8487
8488
  contents.CacheClusters = deserializeAws_queryCacheClusterList(__getArrayIfSingleItem(output["CacheClusters"]["CacheCluster"]), context);
8488
8489
  }
8489
8490
  return contents;
@@ -8543,7 +8544,7 @@ var deserializeAws_queryCacheEngineVersionMessage = function (output, context) {
8543
8544
  if (output.CacheEngineVersions === "") {
8544
8545
  contents.CacheEngineVersions = [];
8545
8546
  }
8546
- if (output["CacheEngineVersions"] !== undefined &&
8547
+ else if (output["CacheEngineVersions"] !== undefined &&
8547
8548
  output["CacheEngineVersions"]["CacheEngineVersion"] !== undefined) {
8548
8549
  contents.CacheEngineVersions = deserializeAws_queryCacheEngineVersionList(__getArrayIfSingleItem(output["CacheEngineVersions"]["CacheEngineVersion"]), context);
8549
8550
  }
@@ -8642,7 +8643,7 @@ var deserializeAws_queryCacheNodeTypeSpecificParameter = function (output, conte
8642
8643
  if (output.CacheNodeTypeSpecificValues === "") {
8643
8644
  contents.CacheNodeTypeSpecificValues = [];
8644
8645
  }
8645
- if (output["CacheNodeTypeSpecificValues"] !== undefined &&
8646
+ else if (output["CacheNodeTypeSpecificValues"] !== undefined &&
8646
8647
  output["CacheNodeTypeSpecificValues"]["CacheNodeTypeSpecificValue"] !== undefined) {
8647
8648
  contents.CacheNodeTypeSpecificValues = deserializeAws_queryCacheNodeTypeSpecificValueList(__getArrayIfSingleItem(output["CacheNodeTypeSpecificValues"]["CacheNodeTypeSpecificValue"]), context);
8648
8649
  }
@@ -8777,13 +8778,13 @@ var deserializeAws_queryCacheParameterGroupDetails = function (output, context)
8777
8778
  if (output.Parameters === "") {
8778
8779
  contents.Parameters = [];
8779
8780
  }
8780
- if (output["Parameters"] !== undefined && output["Parameters"]["Parameter"] !== undefined) {
8781
+ else if (output["Parameters"] !== undefined && output["Parameters"]["Parameter"] !== undefined) {
8781
8782
  contents.Parameters = deserializeAws_queryParametersList(__getArrayIfSingleItem(output["Parameters"]["Parameter"]), context);
8782
8783
  }
8783
8784
  if (output.CacheNodeTypeSpecificParameters === "") {
8784
8785
  contents.CacheNodeTypeSpecificParameters = [];
8785
8786
  }
8786
- if (output["CacheNodeTypeSpecificParameters"] !== undefined &&
8787
+ else if (output["CacheNodeTypeSpecificParameters"] !== undefined &&
8787
8788
  output["CacheNodeTypeSpecificParameters"]["CacheNodeTypeSpecificParameter"] !== undefined) {
8788
8789
  contents.CacheNodeTypeSpecificParameters = deserializeAws_queryCacheNodeTypeSpecificParametersList(__getArrayIfSingleItem(output["CacheNodeTypeSpecificParameters"]["CacheNodeTypeSpecificParameter"]), context);
8789
8790
  }
@@ -8837,7 +8838,7 @@ var deserializeAws_queryCacheParameterGroupsMessage = function (output, context)
8837
8838
  if (output.CacheParameterGroups === "") {
8838
8839
  contents.CacheParameterGroups = [];
8839
8840
  }
8840
- if (output["CacheParameterGroups"] !== undefined &&
8841
+ else if (output["CacheParameterGroups"] !== undefined &&
8841
8842
  output["CacheParameterGroups"]["CacheParameterGroup"] !== undefined) {
8842
8843
  contents.CacheParameterGroups = deserializeAws_queryCacheParameterGroupList(__getArrayIfSingleItem(output["CacheParameterGroups"]["CacheParameterGroup"]), context);
8843
8844
  }
@@ -8858,7 +8859,8 @@ var deserializeAws_queryCacheParameterGroupStatus = function (output, context) {
8858
8859
  if (output.CacheNodeIdsToReboot === "") {
8859
8860
  contents.CacheNodeIdsToReboot = [];
8860
8861
  }
8861
- if (output["CacheNodeIdsToReboot"] !== undefined && output["CacheNodeIdsToReboot"]["CacheNodeId"] !== undefined) {
8862
+ else if (output["CacheNodeIdsToReboot"] !== undefined &&
8863
+ output["CacheNodeIdsToReboot"]["CacheNodeId"] !== undefined) {
8862
8864
  contents.CacheNodeIdsToReboot = deserializeAws_queryCacheNodeIdsList(__getArrayIfSingleItem(output["CacheNodeIdsToReboot"]["CacheNodeId"]), context);
8863
8865
  }
8864
8866
  return contents;
@@ -8883,7 +8885,8 @@ var deserializeAws_queryCacheSecurityGroup = function (output, context) {
8883
8885
  if (output.EC2SecurityGroups === "") {
8884
8886
  contents.EC2SecurityGroups = [];
8885
8887
  }
8886
- if (output["EC2SecurityGroups"] !== undefined && output["EC2SecurityGroups"]["EC2SecurityGroup"] !== undefined) {
8888
+ else if (output["EC2SecurityGroups"] !== undefined &&
8889
+ output["EC2SecurityGroups"]["EC2SecurityGroup"] !== undefined) {
8887
8890
  contents.EC2SecurityGroups = deserializeAws_queryEC2SecurityGroupList(__getArrayIfSingleItem(output["EC2SecurityGroups"]["EC2SecurityGroup"]), context);
8888
8891
  }
8889
8892
  if (output["ARN"] !== undefined) {
@@ -8934,7 +8937,7 @@ var deserializeAws_queryCacheSecurityGroupMessage = function (output, context) {
8934
8937
  if (output.CacheSecurityGroups === "") {
8935
8938
  contents.CacheSecurityGroups = [];
8936
8939
  }
8937
- if (output["CacheSecurityGroups"] !== undefined &&
8940
+ else if (output["CacheSecurityGroups"] !== undefined &&
8938
8941
  output["CacheSecurityGroups"]["CacheSecurityGroup"] !== undefined) {
8939
8942
  contents.CacheSecurityGroups = deserializeAws_queryCacheSecurityGroups(__getArrayIfSingleItem(output["CacheSecurityGroups"]["CacheSecurityGroup"]), context);
8940
8943
  }
@@ -8988,7 +8991,7 @@ var deserializeAws_queryCacheSubnetGroup = function (output, context) {
8988
8991
  if (output.Subnets === "") {
8989
8992
  contents.Subnets = [];
8990
8993
  }
8991
- if (output["Subnets"] !== undefined && output["Subnets"]["Subnet"] !== undefined) {
8994
+ else if (output["Subnets"] !== undefined && output["Subnets"]["Subnet"] !== undefined) {
8992
8995
  contents.Subnets = deserializeAws_querySubnetList(__getArrayIfSingleItem(output["Subnets"]["Subnet"]), context);
8993
8996
  }
8994
8997
  if (output["ARN"] !== undefined) {
@@ -9025,7 +9028,8 @@ var deserializeAws_queryCacheSubnetGroupMessage = function (output, context) {
9025
9028
  if (output.CacheSubnetGroups === "") {
9026
9029
  contents.CacheSubnetGroups = [];
9027
9030
  }
9028
- if (output["CacheSubnetGroups"] !== undefined && output["CacheSubnetGroups"]["CacheSubnetGroup"] !== undefined) {
9031
+ else if (output["CacheSubnetGroups"] !== undefined &&
9032
+ output["CacheSubnetGroups"]["CacheSubnetGroup"] !== undefined) {
9029
9033
  contents.CacheSubnetGroups = deserializeAws_queryCacheSubnetGroups(__getArrayIfSingleItem(output["CacheSubnetGroups"]["CacheSubnetGroup"]), context);
9030
9034
  }
9031
9035
  return contents;
@@ -9268,7 +9272,7 @@ var deserializeAws_queryDescribeGlobalReplicationGroupsResult = function (output
9268
9272
  if (output.GlobalReplicationGroups === "") {
9269
9273
  contents.GlobalReplicationGroups = [];
9270
9274
  }
9271
- if (output["GlobalReplicationGroups"] !== undefined &&
9275
+ else if (output["GlobalReplicationGroups"] !== undefined &&
9272
9276
  output["GlobalReplicationGroups"]["GlobalReplicationGroup"] !== undefined) {
9273
9277
  contents.GlobalReplicationGroups = deserializeAws_queryGlobalReplicationGroupList(__getArrayIfSingleItem(output["GlobalReplicationGroups"]["GlobalReplicationGroup"]), context);
9274
9278
  }
@@ -9285,7 +9289,7 @@ var deserializeAws_queryDescribeSnapshotsListMessage = function (output, context
9285
9289
  if (output.Snapshots === "") {
9286
9290
  contents.Snapshots = [];
9287
9291
  }
9288
- if (output["Snapshots"] !== undefined && output["Snapshots"]["Snapshot"] !== undefined) {
9292
+ else if (output["Snapshots"] !== undefined && output["Snapshots"]["Snapshot"] !== undefined) {
9289
9293
  contents.Snapshots = deserializeAws_querySnapshotList(__getArrayIfSingleItem(output["Snapshots"]["Snapshot"]), context);
9290
9294
  }
9291
9295
  return contents;
@@ -9298,7 +9302,7 @@ var deserializeAws_queryDescribeUserGroupsResult = function (output, context) {
9298
9302
  if (output.UserGroups === "") {
9299
9303
  contents.UserGroups = [];
9300
9304
  }
9301
- if (output["UserGroups"] !== undefined && output["UserGroups"]["member"] !== undefined) {
9305
+ else if (output["UserGroups"] !== undefined && output["UserGroups"]["member"] !== undefined) {
9302
9306
  contents.UserGroups = deserializeAws_queryUserGroupList(__getArrayIfSingleItem(output["UserGroups"]["member"]), context);
9303
9307
  }
9304
9308
  if (output["Marker"] !== undefined) {
@@ -9314,7 +9318,7 @@ var deserializeAws_queryDescribeUsersResult = function (output, context) {
9314
9318
  if (output.Users === "") {
9315
9319
  contents.Users = [];
9316
9320
  }
9317
- if (output["Users"] !== undefined && output["Users"]["member"] !== undefined) {
9321
+ else if (output["Users"] !== undefined && output["Users"]["member"] !== undefined) {
9318
9322
  contents.Users = deserializeAws_queryUserList(__getArrayIfSingleItem(output["Users"]["member"]), context);
9319
9323
  }
9320
9324
  if (output["Marker"] !== undefined) {
@@ -9409,13 +9413,13 @@ var deserializeAws_queryEngineDefaults = function (output, context) {
9409
9413
  if (output.Parameters === "") {
9410
9414
  contents.Parameters = [];
9411
9415
  }
9412
- if (output["Parameters"] !== undefined && output["Parameters"]["Parameter"] !== undefined) {
9416
+ else if (output["Parameters"] !== undefined && output["Parameters"]["Parameter"] !== undefined) {
9413
9417
  contents.Parameters = deserializeAws_queryParametersList(__getArrayIfSingleItem(output["Parameters"]["Parameter"]), context);
9414
9418
  }
9415
9419
  if (output.CacheNodeTypeSpecificParameters === "") {
9416
9420
  contents.CacheNodeTypeSpecificParameters = [];
9417
9421
  }
9418
- if (output["CacheNodeTypeSpecificParameters"] !== undefined &&
9422
+ else if (output["CacheNodeTypeSpecificParameters"] !== undefined &&
9419
9423
  output["CacheNodeTypeSpecificParameters"]["CacheNodeTypeSpecificParameter"] !== undefined) {
9420
9424
  contents.CacheNodeTypeSpecificParameters = deserializeAws_queryCacheNodeTypeSpecificParametersList(__getArrayIfSingleItem(output["CacheNodeTypeSpecificParameters"]["CacheNodeTypeSpecificParameter"]), context);
9421
9425
  }
@@ -9463,7 +9467,7 @@ var deserializeAws_queryEventsMessage = function (output, context) {
9463
9467
  if (output.Events === "") {
9464
9468
  contents.Events = [];
9465
9469
  }
9466
- if (output["Events"] !== undefined && output["Events"]["Event"] !== undefined) {
9470
+ else if (output["Events"] !== undefined && output["Events"]["Event"] !== undefined) {
9467
9471
  contents.Events = deserializeAws_queryEventList(__getArrayIfSingleItem(output["Events"]["Event"]), context);
9468
9472
  }
9469
9473
  return contents;
@@ -9537,7 +9541,7 @@ var deserializeAws_queryGlobalReplicationGroup = function (output, context) {
9537
9541
  if (output.Members === "") {
9538
9542
  contents.Members = [];
9539
9543
  }
9540
- if (output["Members"] !== undefined && output["Members"]["GlobalReplicationGroupMember"] !== undefined) {
9544
+ else if (output["Members"] !== undefined && output["Members"]["GlobalReplicationGroupMember"] !== undefined) {
9541
9545
  contents.Members = deserializeAws_queryGlobalReplicationGroupMemberList(__getArrayIfSingleItem(output["Members"]["GlobalReplicationGroupMember"]), context);
9542
9546
  }
9543
9547
  if (output["ClusterEnabled"] !== undefined) {
@@ -9546,7 +9550,7 @@ var deserializeAws_queryGlobalReplicationGroup = function (output, context) {
9546
9550
  if (output.GlobalNodeGroups === "") {
9547
9551
  contents.GlobalNodeGroups = [];
9548
9552
  }
9549
- if (output["GlobalNodeGroups"] !== undefined && output["GlobalNodeGroups"]["GlobalNodeGroup"] !== undefined) {
9553
+ else if (output["GlobalNodeGroups"] !== undefined && output["GlobalNodeGroups"]["GlobalNodeGroup"] !== undefined) {
9550
9554
  contents.GlobalNodeGroups = deserializeAws_queryGlobalNodeGroupList(__getArrayIfSingleItem(output["GlobalNodeGroups"]["GlobalNodeGroup"]), context);
9551
9555
  }
9552
9556
  if (output["AuthTokenEnabled"] !== undefined) {
@@ -9912,7 +9916,7 @@ var deserializeAws_queryNodeGroup = function (output, context) {
9912
9916
  if (output.NodeGroupMembers === "") {
9913
9917
  contents.NodeGroupMembers = [];
9914
9918
  }
9915
- if (output["NodeGroupMembers"] !== undefined && output["NodeGroupMembers"]["NodeGroupMember"] !== undefined) {
9919
+ else if (output["NodeGroupMembers"] !== undefined && output["NodeGroupMembers"]["NodeGroupMember"] !== undefined) {
9916
9920
  contents.NodeGroupMembers = deserializeAws_queryNodeGroupMemberList(__getArrayIfSingleItem(output["NodeGroupMembers"]["NodeGroupMember"]), context);
9917
9921
  }
9918
9922
  return contents;
@@ -9942,7 +9946,7 @@ var deserializeAws_queryNodeGroupConfiguration = function (output, context) {
9942
9946
  if (output.ReplicaAvailabilityZones === "") {
9943
9947
  contents.ReplicaAvailabilityZones = [];
9944
9948
  }
9945
- if (output["ReplicaAvailabilityZones"] !== undefined &&
9949
+ else if (output["ReplicaAvailabilityZones"] !== undefined &&
9946
9950
  output["ReplicaAvailabilityZones"]["AvailabilityZone"] !== undefined) {
9947
9951
  contents.ReplicaAvailabilityZones = deserializeAws_queryAvailabilityZonesList(__getArrayIfSingleItem(output["ReplicaAvailabilityZones"]["AvailabilityZone"]), context);
9948
9952
  }
@@ -9952,7 +9956,7 @@ var deserializeAws_queryNodeGroupConfiguration = function (output, context) {
9952
9956
  if (output.ReplicaOutpostArns === "") {
9953
9957
  contents.ReplicaOutpostArns = [];
9954
9958
  }
9955
- if (output["ReplicaOutpostArns"] !== undefined && output["ReplicaOutpostArns"]["OutpostArn"] !== undefined) {
9959
+ else if (output["ReplicaOutpostArns"] !== undefined && output["ReplicaOutpostArns"]["OutpostArn"] !== undefined) {
9956
9960
  contents.ReplicaOutpostArns = deserializeAws_queryOutpostArnsList(__getArrayIfSingleItem(output["ReplicaOutpostArns"]["OutpostArn"]), context);
9957
9961
  }
9958
9962
  return contents;
@@ -10086,7 +10090,7 @@ var deserializeAws_queryNodeGroupUpdateStatus = function (output, context) {
10086
10090
  if (output.NodeGroupMemberUpdateStatus === "") {
10087
10091
  contents.NodeGroupMemberUpdateStatus = [];
10088
10092
  }
10089
- if (output["NodeGroupMemberUpdateStatus"] !== undefined &&
10093
+ else if (output["NodeGroupMemberUpdateStatus"] !== undefined &&
10090
10094
  output["NodeGroupMemberUpdateStatus"]["NodeGroupMemberUpdateStatus"] !== undefined) {
10091
10095
  contents.NodeGroupMemberUpdateStatus = deserializeAws_queryNodeGroupMemberUpdateStatusList(__getArrayIfSingleItem(output["NodeGroupMemberUpdateStatus"]["NodeGroupMemberUpdateStatus"]), context);
10092
10096
  }
@@ -10302,7 +10306,8 @@ var deserializeAws_queryPendingModifiedValues = function (output, context) {
10302
10306
  if (output.CacheNodeIdsToRemove === "") {
10303
10307
  contents.CacheNodeIdsToRemove = [];
10304
10308
  }
10305
- if (output["CacheNodeIdsToRemove"] !== undefined && output["CacheNodeIdsToRemove"]["CacheNodeId"] !== undefined) {
10309
+ else if (output["CacheNodeIdsToRemove"] !== undefined &&
10310
+ output["CacheNodeIdsToRemove"]["CacheNodeId"] !== undefined) {
10306
10311
  contents.CacheNodeIdsToRemove = deserializeAws_queryCacheNodeIdsList(__getArrayIfSingleItem(output["CacheNodeIdsToRemove"]["CacheNodeId"]), context);
10307
10312
  }
10308
10313
  if (output["EngineVersion"] !== undefined) {
@@ -10317,7 +10322,7 @@ var deserializeAws_queryPendingModifiedValues = function (output, context) {
10317
10322
  if (output.LogDeliveryConfigurations === "") {
10318
10323
  contents.LogDeliveryConfigurations = [];
10319
10324
  }
10320
- if (output["LogDeliveryConfigurations"] !== undefined &&
10325
+ else if (output["LogDeliveryConfigurations"] !== undefined &&
10321
10326
  output["LogDeliveryConfigurations"]["member"] !== undefined) {
10322
10327
  contents.LogDeliveryConfigurations = deserializeAws_queryPendingLogDeliveryConfigurationList(__getArrayIfSingleItem(output["LogDeliveryConfigurations"]["member"]), context);
10323
10328
  }
@@ -10451,13 +10456,13 @@ var deserializeAws_queryReplicationGroup = function (output, context) {
10451
10456
  if (output.MemberClusters === "") {
10452
10457
  contents.MemberClusters = [];
10453
10458
  }
10454
- if (output["MemberClusters"] !== undefined && output["MemberClusters"]["ClusterId"] !== undefined) {
10459
+ else if (output["MemberClusters"] !== undefined && output["MemberClusters"]["ClusterId"] !== undefined) {
10455
10460
  contents.MemberClusters = deserializeAws_queryClusterIdList(__getArrayIfSingleItem(output["MemberClusters"]["ClusterId"]), context);
10456
10461
  }
10457
10462
  if (output.NodeGroups === "") {
10458
10463
  contents.NodeGroups = [];
10459
10464
  }
10460
- if (output["NodeGroups"] !== undefined && output["NodeGroups"]["NodeGroup"] !== undefined) {
10465
+ else if (output["NodeGroups"] !== undefined && output["NodeGroups"]["NodeGroup"] !== undefined) {
10461
10466
  contents.NodeGroups = deserializeAws_queryNodeGroupList(__getArrayIfSingleItem(output["NodeGroups"]["NodeGroup"]), context);
10462
10467
  }
10463
10468
  if (output["SnapshottingClusterId"] !== undefined) {
@@ -10499,7 +10504,7 @@ var deserializeAws_queryReplicationGroup = function (output, context) {
10499
10504
  if (output.MemberClustersOutpostArns === "") {
10500
10505
  contents.MemberClustersOutpostArns = [];
10501
10506
  }
10502
- if (output["MemberClustersOutpostArns"] !== undefined &&
10507
+ else if (output["MemberClustersOutpostArns"] !== undefined &&
10503
10508
  output["MemberClustersOutpostArns"]["ReplicationGroupOutpostArn"] !== undefined) {
10504
10509
  contents.MemberClustersOutpostArns = deserializeAws_queryReplicationGroupOutpostArnList(__getArrayIfSingleItem(output["MemberClustersOutpostArns"]["ReplicationGroupOutpostArn"]), context);
10505
10510
  }
@@ -10512,13 +10517,13 @@ var deserializeAws_queryReplicationGroup = function (output, context) {
10512
10517
  if (output.UserGroupIds === "") {
10513
10518
  contents.UserGroupIds = [];
10514
10519
  }
10515
- if (output["UserGroupIds"] !== undefined && output["UserGroupIds"]["member"] !== undefined) {
10520
+ else if (output["UserGroupIds"] !== undefined && output["UserGroupIds"]["member"] !== undefined) {
10516
10521
  contents.UserGroupIds = deserializeAws_queryUserGroupIdList(__getArrayIfSingleItem(output["UserGroupIds"]["member"]), context);
10517
10522
  }
10518
10523
  if (output.LogDeliveryConfigurations === "") {
10519
10524
  contents.LogDeliveryConfigurations = [];
10520
10525
  }
10521
- if (output["LogDeliveryConfigurations"] !== undefined &&
10526
+ else if (output["LogDeliveryConfigurations"] !== undefined &&
10522
10527
  output["LogDeliveryConfigurations"]["LogDeliveryConfiguration"] !== undefined) {
10523
10528
  contents.LogDeliveryConfigurations = deserializeAws_queryLogDeliveryConfigurationList(__getArrayIfSingleItem(output["LogDeliveryConfigurations"]["LogDeliveryConfiguration"]), context);
10524
10529
  }
@@ -10569,7 +10574,8 @@ var deserializeAws_queryReplicationGroupMessage = function (output, context) {
10569
10574
  if (output.ReplicationGroups === "") {
10570
10575
  contents.ReplicationGroups = [];
10571
10576
  }
10572
- if (output["ReplicationGroups"] !== undefined && output["ReplicationGroups"]["ReplicationGroup"] !== undefined) {
10577
+ else if (output["ReplicationGroups"] !== undefined &&
10578
+ output["ReplicationGroups"]["ReplicationGroup"] !== undefined) {
10573
10579
  contents.ReplicationGroups = deserializeAws_queryReplicationGroupList(__getArrayIfSingleItem(output["ReplicationGroups"]["ReplicationGroup"]), context);
10574
10580
  }
10575
10581
  return contents;
@@ -10629,7 +10635,7 @@ var deserializeAws_queryReplicationGroupPendingModifiedValues = function (output
10629
10635
  if (output.LogDeliveryConfigurations === "") {
10630
10636
  contents.LogDeliveryConfigurations = [];
10631
10637
  }
10632
- if (output["LogDeliveryConfigurations"] !== undefined &&
10638
+ else if (output["LogDeliveryConfigurations"] !== undefined &&
10633
10639
  output["LogDeliveryConfigurations"]["member"] !== undefined) {
10634
10640
  contents.LogDeliveryConfigurations = deserializeAws_queryPendingLogDeliveryConfigurationList(__getArrayIfSingleItem(output["LogDeliveryConfigurations"]["member"]), context);
10635
10641
  }
@@ -10687,7 +10693,7 @@ var deserializeAws_queryReservedCacheNode = function (output, context) {
10687
10693
  if (output.RecurringCharges === "") {
10688
10694
  contents.RecurringCharges = [];
10689
10695
  }
10690
- if (output["RecurringCharges"] !== undefined && output["RecurringCharges"]["RecurringCharge"] !== undefined) {
10696
+ else if (output["RecurringCharges"] !== undefined && output["RecurringCharges"]["RecurringCharge"] !== undefined) {
10691
10697
  contents.RecurringCharges = deserializeAws_queryRecurringChargeList(__getArrayIfSingleItem(output["RecurringCharges"]["RecurringCharge"]), context);
10692
10698
  }
10693
10699
  if (output["ReservationARN"] !== undefined) {
@@ -10725,7 +10731,8 @@ var deserializeAws_queryReservedCacheNodeMessage = function (output, context) {
10725
10731
  if (output.ReservedCacheNodes === "") {
10726
10732
  contents.ReservedCacheNodes = [];
10727
10733
  }
10728
- if (output["ReservedCacheNodes"] !== undefined && output["ReservedCacheNodes"]["ReservedCacheNode"] !== undefined) {
10734
+ else if (output["ReservedCacheNodes"] !== undefined &&
10735
+ output["ReservedCacheNodes"]["ReservedCacheNode"] !== undefined) {
10729
10736
  contents.ReservedCacheNodes = deserializeAws_queryReservedCacheNodeList(__getArrayIfSingleItem(output["ReservedCacheNodes"]["ReservedCacheNode"]), context);
10730
10737
  }
10731
10738
  return contents;
@@ -10783,7 +10790,7 @@ var deserializeAws_queryReservedCacheNodesOffering = function (output, context)
10783
10790
  if (output.RecurringCharges === "") {
10784
10791
  contents.RecurringCharges = [];
10785
10792
  }
10786
- if (output["RecurringCharges"] !== undefined && output["RecurringCharges"]["RecurringCharge"] !== undefined) {
10793
+ else if (output["RecurringCharges"] !== undefined && output["RecurringCharges"]["RecurringCharge"] !== undefined) {
10787
10794
  contents.RecurringCharges = deserializeAws_queryRecurringChargeList(__getArrayIfSingleItem(output["RecurringCharges"]["RecurringCharge"]), context);
10788
10795
  }
10789
10796
  return contents;
@@ -10809,7 +10816,7 @@ var deserializeAws_queryReservedCacheNodesOfferingMessage = function (output, co
10809
10816
  if (output.ReservedCacheNodesOfferings === "") {
10810
10817
  contents.ReservedCacheNodesOfferings = [];
10811
10818
  }
10812
- if (output["ReservedCacheNodesOfferings"] !== undefined &&
10819
+ else if (output["ReservedCacheNodesOfferings"] !== undefined &&
10813
10820
  output["ReservedCacheNodesOfferings"]["ReservedCacheNodesOffering"] !== undefined) {
10814
10821
  contents.ReservedCacheNodesOfferings = deserializeAws_queryReservedCacheNodesOfferingList(__getArrayIfSingleItem(output["ReservedCacheNodesOfferings"]["ReservedCacheNodesOffering"]), context);
10815
10822
  }
@@ -10957,7 +10964,7 @@ var deserializeAws_queryServiceUpdatesMessage = function (output, context) {
10957
10964
  if (output.ServiceUpdates === "") {
10958
10965
  contents.ServiceUpdates = [];
10959
10966
  }
10960
- if (output["ServiceUpdates"] !== undefined && output["ServiceUpdates"]["ServiceUpdate"] !== undefined) {
10967
+ else if (output["ServiceUpdates"] !== undefined && output["ServiceUpdates"]["ServiceUpdate"] !== undefined) {
10961
10968
  contents.ServiceUpdates = deserializeAws_queryServiceUpdateList(__getArrayIfSingleItem(output["ServiceUpdates"]["ServiceUpdate"]), context);
10962
10969
  }
10963
10970
  return contents;
@@ -11077,7 +11084,7 @@ var deserializeAws_querySnapshot = function (output, context) {
11077
11084
  if (output.NodeSnapshots === "") {
11078
11085
  contents.NodeSnapshots = [];
11079
11086
  }
11080
- if (output["NodeSnapshots"] !== undefined && output["NodeSnapshots"]["NodeSnapshot"] !== undefined) {
11087
+ else if (output["NodeSnapshots"] !== undefined && output["NodeSnapshots"]["NodeSnapshot"] !== undefined) {
11081
11088
  contents.NodeSnapshots = deserializeAws_queryNodeSnapshotList(__getArrayIfSingleItem(output["NodeSnapshots"]["NodeSnapshot"]), context);
11082
11089
  }
11083
11090
  if (output["KmsKeyId"] !== undefined) {
@@ -11230,7 +11237,7 @@ var deserializeAws_queryTagListMessage = function (output, context) {
11230
11237
  if (output.TagList === "") {
11231
11238
  contents.TagList = [];
11232
11239
  }
11233
- if (output["TagList"] !== undefined && output["TagList"]["Tag"] !== undefined) {
11240
+ else if (output["TagList"] !== undefined && output["TagList"]["Tag"] !== undefined) {
11234
11241
  contents.TagList = deserializeAws_queryTagList(__getArrayIfSingleItem(output["TagList"]["Tag"]), context);
11235
11242
  }
11236
11243
  return contents;
@@ -11378,14 +11385,14 @@ var deserializeAws_queryUpdateAction = function (output, context) {
11378
11385
  if (output.NodeGroupUpdateStatus === "") {
11379
11386
  contents.NodeGroupUpdateStatus = [];
11380
11387
  }
11381
- if (output["NodeGroupUpdateStatus"] !== undefined &&
11388
+ else if (output["NodeGroupUpdateStatus"] !== undefined &&
11382
11389
  output["NodeGroupUpdateStatus"]["NodeGroupUpdateStatus"] !== undefined) {
11383
11390
  contents.NodeGroupUpdateStatus = deserializeAws_queryNodeGroupUpdateStatusList(__getArrayIfSingleItem(output["NodeGroupUpdateStatus"]["NodeGroupUpdateStatus"]), context);
11384
11391
  }
11385
11392
  if (output.CacheNodeUpdateStatus === "") {
11386
11393
  contents.CacheNodeUpdateStatus = [];
11387
11394
  }
11388
- if (output["CacheNodeUpdateStatus"] !== undefined &&
11395
+ else if (output["CacheNodeUpdateStatus"] !== undefined &&
11389
11396
  output["CacheNodeUpdateStatus"]["CacheNodeUpdateStatus"] !== undefined) {
11390
11397
  contents.CacheNodeUpdateStatus = deserializeAws_queryCacheNodeUpdateStatusList(__getArrayIfSingleItem(output["CacheNodeUpdateStatus"]["CacheNodeUpdateStatus"]), context);
11391
11398
  }
@@ -11415,14 +11422,14 @@ var deserializeAws_queryUpdateActionResultsMessage = function (output, context)
11415
11422
  if (output.ProcessedUpdateActions === "") {
11416
11423
  contents.ProcessedUpdateActions = [];
11417
11424
  }
11418
- if (output["ProcessedUpdateActions"] !== undefined &&
11425
+ else if (output["ProcessedUpdateActions"] !== undefined &&
11419
11426
  output["ProcessedUpdateActions"]["ProcessedUpdateAction"] !== undefined) {
11420
11427
  contents.ProcessedUpdateActions = deserializeAws_queryProcessedUpdateActionList(__getArrayIfSingleItem(output["ProcessedUpdateActions"]["ProcessedUpdateAction"]), context);
11421
11428
  }
11422
11429
  if (output.UnprocessedUpdateActions === "") {
11423
11430
  contents.UnprocessedUpdateActions = [];
11424
11431
  }
11425
- if (output["UnprocessedUpdateActions"] !== undefined &&
11432
+ else if (output["UnprocessedUpdateActions"] !== undefined &&
11426
11433
  output["UnprocessedUpdateActions"]["UnprocessedUpdateAction"] !== undefined) {
11427
11434
  contents.UnprocessedUpdateActions = deserializeAws_queryUnprocessedUpdateActionList(__getArrayIfSingleItem(output["UnprocessedUpdateActions"]["UnprocessedUpdateAction"]), context);
11428
11435
  }
@@ -11439,7 +11446,7 @@ var deserializeAws_queryUpdateActionsMessage = function (output, context) {
11439
11446
  if (output.UpdateActions === "") {
11440
11447
  contents.UpdateActions = [];
11441
11448
  }
11442
- if (output["UpdateActions"] !== undefined && output["UpdateActions"]["UpdateAction"] !== undefined) {
11449
+ else if (output["UpdateActions"] !== undefined && output["UpdateActions"]["UpdateAction"] !== undefined) {
11443
11450
  contents.UpdateActions = deserializeAws_queryUpdateActionList(__getArrayIfSingleItem(output["UpdateActions"]["UpdateAction"]), context);
11444
11451
  }
11445
11452
  return contents;
@@ -11477,7 +11484,7 @@ var deserializeAws_queryUser = function (output, context) {
11477
11484
  if (output.UserGroupIds === "") {
11478
11485
  contents.UserGroupIds = [];
11479
11486
  }
11480
- if (output["UserGroupIds"] !== undefined && output["UserGroupIds"]["member"] !== undefined) {
11487
+ else if (output["UserGroupIds"] !== undefined && output["UserGroupIds"]["member"] !== undefined) {
11481
11488
  contents.UserGroupIds = deserializeAws_queryUserGroupIdList(__getArrayIfSingleItem(output["UserGroupIds"]["member"]), context);
11482
11489
  }
11483
11490
  if (output["Authentication"] !== undefined) {
@@ -11520,7 +11527,7 @@ var deserializeAws_queryUserGroup = function (output, context) {
11520
11527
  if (output.UserIds === "") {
11521
11528
  contents.UserIds = [];
11522
11529
  }
11523
- if (output["UserIds"] !== undefined && output["UserIds"]["member"] !== undefined) {
11530
+ else if (output["UserIds"] !== undefined && output["UserIds"]["member"] !== undefined) {
11524
11531
  contents.UserIds = deserializeAws_queryUserIdList(__getArrayIfSingleItem(output["UserIds"]["member"]), context);
11525
11532
  }
11526
11533
  if (output["MinimumEngineVersion"] !== undefined) {
@@ -11532,7 +11539,7 @@ var deserializeAws_queryUserGroup = function (output, context) {
11532
11539
  if (output.ReplicationGroups === "") {
11533
11540
  contents.ReplicationGroups = [];
11534
11541
  }
11535
- if (output["ReplicationGroups"] !== undefined && output["ReplicationGroups"]["member"] !== undefined) {
11542
+ else if (output["ReplicationGroups"] !== undefined && output["ReplicationGroups"]["member"] !== undefined) {
11536
11543
  contents.ReplicationGroups = deserializeAws_queryUGReplicationGroupIdList(__getArrayIfSingleItem(output["ReplicationGroups"]["member"]), context);
11537
11544
  }
11538
11545
  if (output["ARN"] !== undefined) {
@@ -11586,13 +11593,13 @@ var deserializeAws_queryUserGroupPendingChanges = function (output, context) {
11586
11593
  if (output.UserIdsToRemove === "") {
11587
11594
  contents.UserIdsToRemove = [];
11588
11595
  }
11589
- if (output["UserIdsToRemove"] !== undefined && output["UserIdsToRemove"]["member"] !== undefined) {
11596
+ else if (output["UserIdsToRemove"] !== undefined && output["UserIdsToRemove"]["member"] !== undefined) {
11590
11597
  contents.UserIdsToRemove = deserializeAws_queryUserIdList(__getArrayIfSingleItem(output["UserIdsToRemove"]["member"]), context);
11591
11598
  }
11592
11599
  if (output.UserIdsToAdd === "") {
11593
11600
  contents.UserIdsToAdd = [];
11594
11601
  }
11595
- if (output["UserIdsToAdd"] !== undefined && output["UserIdsToAdd"]["member"] !== undefined) {
11602
+ else if (output["UserIdsToAdd"] !== undefined && output["UserIdsToAdd"]["member"] !== undefined) {
11596
11603
  contents.UserIdsToAdd = deserializeAws_queryUserIdList(__getArrayIfSingleItem(output["UserIdsToAdd"]["member"]), context);
11597
11604
  }
11598
11605
  return contents;
@@ -11614,13 +11621,13 @@ var deserializeAws_queryUserGroupsUpdateStatus = function (output, context) {
11614
11621
  if (output.UserGroupIdsToAdd === "") {
11615
11622
  contents.UserGroupIdsToAdd = [];
11616
11623
  }
11617
- if (output["UserGroupIdsToAdd"] !== undefined && output["UserGroupIdsToAdd"]["member"] !== undefined) {
11624
+ else if (output["UserGroupIdsToAdd"] !== undefined && output["UserGroupIdsToAdd"]["member"] !== undefined) {
11618
11625
  contents.UserGroupIdsToAdd = deserializeAws_queryUserGroupIdList(__getArrayIfSingleItem(output["UserGroupIdsToAdd"]["member"]), context);
11619
11626
  }
11620
11627
  if (output.UserGroupIdsToRemove === "") {
11621
11628
  contents.UserGroupIdsToRemove = [];
11622
11629
  }
11623
- if (output["UserGroupIdsToRemove"] !== undefined && output["UserGroupIdsToRemove"]["member"] !== undefined) {
11630
+ else if (output["UserGroupIdsToRemove"] !== undefined && output["UserGroupIdsToRemove"]["member"] !== undefined) {
11624
11631
  contents.UserGroupIdsToRemove = deserializeAws_queryUserGroupIdList(__getArrayIfSingleItem(output["UserGroupIdsToRemove"]["member"]), context);
11625
11632
  }
11626
11633
  return contents;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-elasticache",
3
3
  "description": "AWS SDK for JavaScript Elasticache Client for Node.js, Browser and React Native",
4
- "version": "3.105.0",
4
+ "version": "3.107.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",