@aws-sdk/client-redshift 3.100.0 → 3.109.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.
Files changed (34) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist-cjs/Redshift.js +15 -0
  3. package/dist-cjs/RedshiftClient.js +2 -0
  4. package/dist-cjs/commands/DescribeHsmConfigurationsCommand.js +1 -2
  5. package/dist-cjs/commands/GetClusterCredentialsWithIAMCommand.js +37 -0
  6. package/dist-cjs/commands/index.js +1 -0
  7. package/dist-cjs/models/models_0.js +11 -10
  8. package/dist-cjs/models/models_1.js +15 -3
  9. package/dist-cjs/protocols/Aws_query.js +201 -96
  10. package/dist-es/Redshift.js +15 -0
  11. package/dist-es/RedshiftClient.js +2 -0
  12. package/dist-es/commands/DescribeHsmConfigurationsCommand.js +1 -2
  13. package/dist-es/commands/GetClusterCredentialsWithIAMCommand.js +40 -0
  14. package/dist-es/commands/index.js +1 -0
  15. package/dist-es/models/models_0.js +4 -4
  16. package/dist-es/models/models_1.js +8 -0
  17. package/dist-es/protocols/Aws_query.js +209 -92
  18. package/dist-types/Redshift.d.ts +16 -0
  19. package/dist-types/RedshiftClient.d.ts +3 -2
  20. package/dist-types/commands/DescribeHsmConfigurationsCommand.d.ts +1 -2
  21. package/dist-types/commands/GetClusterCredentialsWithIAMCommand.d.ts +45 -0
  22. package/dist-types/commands/index.d.ts +1 -0
  23. package/dist-types/models/models_0.d.ts +26 -56
  24. package/dist-types/models/models_1.d.ts +81 -3
  25. package/dist-types/protocols/Aws_query.d.ts +3 -0
  26. package/dist-types/ts3.4/Redshift.d.ts +5 -0
  27. package/dist-types/ts3.4/RedshiftClient.d.ts +3 -2
  28. package/dist-types/ts3.4/commands/DescribeHsmConfigurationsCommand.d.ts +1 -2
  29. package/dist-types/ts3.4/commands/GetClusterCredentialsWithIAMCommand.d.ts +18 -0
  30. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  31. package/dist-types/ts3.4/models/models_0.d.ts +14 -17
  32. package/dist-types/ts3.4/models/models_1.d.ts +29 -0
  33. package/dist-types/ts3.4/protocols/Aws_query.d.ts +3 -0
  34. package/package.json +30 -29
@@ -869,6 +869,16 @@ export var serializeAws_queryGetClusterCredentialsCommand = function (input, con
869
869
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
870
870
  });
871
871
  }); };
872
+ export var serializeAws_queryGetClusterCredentialsWithIAMCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
873
+ var headers, body;
874
+ return __generator(this, function (_a) {
875
+ headers = {
876
+ "content-type": "application/x-www-form-urlencoded",
877
+ };
878
+ body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_queryGetClusterCredentialsWithIAMMessage(input, context)), { Action: "GetClusterCredentialsWithIAM", Version: "2012-12-01" }));
879
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
880
+ });
881
+ }); };
872
882
  export var serializeAws_queryGetReservedNodeExchangeConfigurationOptionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
873
883
  var headers, body;
874
884
  return __generator(this, function (_a) {
@@ -6233,6 +6243,60 @@ var deserializeAws_queryGetClusterCredentialsCommandError = function (output, co
6233
6243
  }
6234
6244
  });
6235
6245
  }); };
6246
+ export var deserializeAws_queryGetClusterCredentialsWithIAMCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6247
+ var data, contents, response;
6248
+ return __generator(this, function (_a) {
6249
+ switch (_a.label) {
6250
+ case 0:
6251
+ if (output.statusCode >= 300) {
6252
+ return [2, deserializeAws_queryGetClusterCredentialsWithIAMCommandError(output, context)];
6253
+ }
6254
+ return [4, parseBody(output.body, context)];
6255
+ case 1:
6256
+ data = _a.sent();
6257
+ contents = {};
6258
+ contents = deserializeAws_queryClusterExtendedCredentials(data.GetClusterCredentialsWithIAMResult, context);
6259
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
6260
+ return [2, Promise.resolve(response)];
6261
+ }
6262
+ });
6263
+ }); };
6264
+ var deserializeAws_queryGetClusterCredentialsWithIAMCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6265
+ var parsedOutput, _a, response, errorCode, _b, parsedBody;
6266
+ var _c;
6267
+ return __generator(this, function (_d) {
6268
+ switch (_d.label) {
6269
+ case 0:
6270
+ _a = [__assign({}, output)];
6271
+ _c = {};
6272
+ return [4, parseBody(output.body, context)];
6273
+ case 1:
6274
+ parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
6275
+ errorCode = "UnknownError";
6276
+ errorCode = loadQueryErrorCode(output, parsedOutput.body);
6277
+ _b = errorCode;
6278
+ switch (_b) {
6279
+ case "ClusterNotFoundFault": return [3, 2];
6280
+ case "com.amazonaws.redshift#ClusterNotFoundFault": return [3, 2];
6281
+ case "UnsupportedOperationFault": return [3, 4];
6282
+ case "com.amazonaws.redshift#UnsupportedOperationFault": return [3, 4];
6283
+ }
6284
+ return [3, 6];
6285
+ case 2: return [4, deserializeAws_queryClusterNotFoundFaultResponse(parsedOutput, context)];
6286
+ case 3: throw _d.sent();
6287
+ case 4: return [4, deserializeAws_queryUnsupportedOperationFaultResponse(parsedOutput, context)];
6288
+ case 5: throw _d.sent();
6289
+ case 6:
6290
+ parsedBody = parsedOutput.body;
6291
+ response = new __BaseException({
6292
+ name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
6293
+ $fault: "client",
6294
+ $metadata: deserializeMetadata(output),
6295
+ });
6296
+ throw __decorateServiceException(response, parsedBody.Error);
6297
+ }
6298
+ });
6299
+ }); };
6236
6300
  export var deserializeAws_queryGetReservedNodeExchangeConfigurationOptionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6237
6301
  var data, contents, response;
6238
6302
  return __generator(this, function (_a) {
@@ -11264,6 +11328,19 @@ var serializeAws_queryGetClusterCredentialsMessage = function (input, context) {
11264
11328
  }
11265
11329
  return entries;
11266
11330
  };
11331
+ var serializeAws_queryGetClusterCredentialsWithIAMMessage = function (input, context) {
11332
+ var entries = {};
11333
+ if (input.DbName !== undefined && input.DbName !== null) {
11334
+ entries["DbName"] = input.DbName;
11335
+ }
11336
+ if (input.ClusterIdentifier !== undefined && input.ClusterIdentifier !== null) {
11337
+ entries["ClusterIdentifier"] = input.ClusterIdentifier;
11338
+ }
11339
+ if (input.DurationSeconds !== undefined && input.DurationSeconds !== null) {
11340
+ entries["DurationSeconds"] = input.DurationSeconds;
11341
+ }
11342
+ return entries;
11343
+ };
11267
11344
  var serializeAws_queryGetReservedNodeExchangeConfigurationOptionsInputMessage = function (input, context) {
11268
11345
  var entries = {};
11269
11346
  if (input.ActionType !== undefined && input.ActionType !== null) {
@@ -12506,7 +12583,8 @@ var deserializeAws_queryAccountAttribute = function (output, context) {
12506
12583
  if (output.AttributeValues === "") {
12507
12584
  contents.AttributeValues = [];
12508
12585
  }
12509
- if (output["AttributeValues"] !== undefined && output["AttributeValues"]["AttributeValueTarget"] !== undefined) {
12586
+ else if (output["AttributeValues"] !== undefined &&
12587
+ output["AttributeValues"]["AttributeValueTarget"] !== undefined) {
12510
12588
  contents.AttributeValues = deserializeAws_queryAttributeValueList(__getArrayIfSingleItem(output["AttributeValues"]["AttributeValueTarget"]), context);
12511
12589
  }
12512
12590
  return contents;
@@ -12518,7 +12596,8 @@ var deserializeAws_queryAccountAttributeList = function (output, context) {
12518
12596
  if (output.AccountAttributes === "") {
12519
12597
  contents.AccountAttributes = [];
12520
12598
  }
12521
- if (output["AccountAttributes"] !== undefined && output["AccountAttributes"]["AccountAttribute"] !== undefined) {
12599
+ else if (output["AccountAttributes"] !== undefined &&
12600
+ output["AccountAttributes"]["AccountAttribute"] !== undefined) {
12522
12601
  contents.AccountAttributes = deserializeAws_queryAttributeList(__getArrayIfSingleItem(output["AccountAttributes"]["AccountAttribute"]), context);
12523
12602
  }
12524
12603
  return contents;
@@ -12704,7 +12783,8 @@ var deserializeAws_queryAvailabilityZone = function (output, context) {
12704
12783
  if (output.SupportedPlatforms === "") {
12705
12784
  contents.SupportedPlatforms = [];
12706
12785
  }
12707
- if (output["SupportedPlatforms"] !== undefined && output["SupportedPlatforms"]["SupportedPlatform"] !== undefined) {
12786
+ else if (output["SupportedPlatforms"] !== undefined &&
12787
+ output["SupportedPlatforms"]["SupportedPlatform"] !== undefined) {
12708
12788
  contents.SupportedPlatforms = deserializeAws_querySupportedPlatformsList(__getArrayIfSingleItem(output["SupportedPlatforms"]["SupportedPlatform"]), context);
12709
12789
  }
12710
12790
  return contents;
@@ -12727,13 +12807,13 @@ var deserializeAws_queryBatchDeleteClusterSnapshotsResult = function (output, co
12727
12807
  if (output.Resources === "") {
12728
12808
  contents.Resources = [];
12729
12809
  }
12730
- if (output["Resources"] !== undefined && output["Resources"]["String"] !== undefined) {
12810
+ else if (output["Resources"] !== undefined && output["Resources"]["String"] !== undefined) {
12731
12811
  contents.Resources = deserializeAws_querySnapshotIdentifierList(__getArrayIfSingleItem(output["Resources"]["String"]), context);
12732
12812
  }
12733
12813
  if (output.Errors === "") {
12734
12814
  contents.Errors = [];
12735
12815
  }
12736
- if (output["Errors"] !== undefined && output["Errors"]["SnapshotErrorMessage"] !== undefined) {
12816
+ else if (output["Errors"] !== undefined && output["Errors"]["SnapshotErrorMessage"] !== undefined) {
12737
12817
  contents.Errors = deserializeAws_queryBatchSnapshotOperationErrorList(__getArrayIfSingleItem(output["Errors"]["SnapshotErrorMessage"]), context);
12738
12818
  }
12739
12819
  return contents;
@@ -12764,13 +12844,13 @@ var deserializeAws_queryBatchModifyClusterSnapshotsOutputMessage = function (out
12764
12844
  if (output.Resources === "") {
12765
12845
  contents.Resources = [];
12766
12846
  }
12767
- if (output["Resources"] !== undefined && output["Resources"]["String"] !== undefined) {
12847
+ else if (output["Resources"] !== undefined && output["Resources"]["String"] !== undefined) {
12768
12848
  contents.Resources = deserializeAws_querySnapshotIdentifierList(__getArrayIfSingleItem(output["Resources"]["String"]), context);
12769
12849
  }
12770
12850
  if (output.Errors === "") {
12771
12851
  contents.Errors = [];
12772
12852
  }
12773
- if (output["Errors"] !== undefined && output["Errors"]["SnapshotErrorMessage"] !== undefined) {
12853
+ else if (output["Errors"] !== undefined && output["Errors"]["SnapshotErrorMessage"] !== undefined) {
12774
12854
  contents.Errors = deserializeAws_queryBatchSnapshotOperationErrors(__getArrayIfSingleItem(output["Errors"]["SnapshotErrorMessage"]), context);
12775
12855
  }
12776
12856
  return contents;
@@ -12895,20 +12975,21 @@ var deserializeAws_queryCluster = function (output, context) {
12895
12975
  if (output.ClusterSecurityGroups === "") {
12896
12976
  contents.ClusterSecurityGroups = [];
12897
12977
  }
12898
- if (output["ClusterSecurityGroups"] !== undefined &&
12978
+ else if (output["ClusterSecurityGroups"] !== undefined &&
12899
12979
  output["ClusterSecurityGroups"]["ClusterSecurityGroup"] !== undefined) {
12900
12980
  contents.ClusterSecurityGroups = deserializeAws_queryClusterSecurityGroupMembershipList(__getArrayIfSingleItem(output["ClusterSecurityGroups"]["ClusterSecurityGroup"]), context);
12901
12981
  }
12902
12982
  if (output.VpcSecurityGroups === "") {
12903
12983
  contents.VpcSecurityGroups = [];
12904
12984
  }
12905
- if (output["VpcSecurityGroups"] !== undefined && output["VpcSecurityGroups"]["VpcSecurityGroup"] !== undefined) {
12985
+ else if (output["VpcSecurityGroups"] !== undefined &&
12986
+ output["VpcSecurityGroups"]["VpcSecurityGroup"] !== undefined) {
12906
12987
  contents.VpcSecurityGroups = deserializeAws_queryVpcSecurityGroupMembershipList(__getArrayIfSingleItem(output["VpcSecurityGroups"]["VpcSecurityGroup"]), context);
12907
12988
  }
12908
12989
  if (output.ClusterParameterGroups === "") {
12909
12990
  contents.ClusterParameterGroups = [];
12910
12991
  }
12911
- if (output["ClusterParameterGroups"] !== undefined &&
12992
+ else if (output["ClusterParameterGroups"] !== undefined &&
12912
12993
  output["ClusterParameterGroups"]["ClusterParameterGroup"] !== undefined) {
12913
12994
  contents.ClusterParameterGroups = deserializeAws_queryClusterParameterGroupStatusList(__getArrayIfSingleItem(output["ClusterParameterGroups"]["ClusterParameterGroup"]), context);
12914
12995
  }
@@ -12960,7 +13041,7 @@ var deserializeAws_queryCluster = function (output, context) {
12960
13041
  if (output.ClusterNodes === "") {
12961
13042
  contents.ClusterNodes = [];
12962
13043
  }
12963
- if (output["ClusterNodes"] !== undefined && output["ClusterNodes"]["member"] !== undefined) {
13044
+ else if (output["ClusterNodes"] !== undefined && output["ClusterNodes"]["member"] !== undefined) {
12964
13045
  contents.ClusterNodes = deserializeAws_queryClusterNodesList(__getArrayIfSingleItem(output["ClusterNodes"]["member"]), context);
12965
13046
  }
12966
13047
  if (output["ElasticIpStatus"] !== undefined) {
@@ -12972,7 +13053,7 @@ var deserializeAws_queryCluster = function (output, context) {
12972
13053
  if (output.Tags === "") {
12973
13054
  contents.Tags = [];
12974
13055
  }
12975
- if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) {
13056
+ else if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) {
12976
13057
  contents.Tags = deserializeAws_queryTagList(__getArrayIfSingleItem(output["Tags"]["Tag"]), context);
12977
13058
  }
12978
13059
  if (output["KmsKeyId"] !== undefined) {
@@ -12984,13 +13065,13 @@ var deserializeAws_queryCluster = function (output, context) {
12984
13065
  if (output.IamRoles === "") {
12985
13066
  contents.IamRoles = [];
12986
13067
  }
12987
- if (output["IamRoles"] !== undefined && output["IamRoles"]["ClusterIamRole"] !== undefined) {
13068
+ else if (output["IamRoles"] !== undefined && output["IamRoles"]["ClusterIamRole"] !== undefined) {
12988
13069
  contents.IamRoles = deserializeAws_queryClusterIamRoleList(__getArrayIfSingleItem(output["IamRoles"]["ClusterIamRole"]), context);
12989
13070
  }
12990
13071
  if (output.PendingActions === "") {
12991
13072
  contents.PendingActions = [];
12992
13073
  }
12993
- if (output["PendingActions"] !== undefined && output["PendingActions"]["member"] !== undefined) {
13074
+ else if (output["PendingActions"] !== undefined && output["PendingActions"]["member"] !== undefined) {
12994
13075
  contents.PendingActions = deserializeAws_queryPendingActionsList(__getArrayIfSingleItem(output["PendingActions"]["member"]), context);
12995
13076
  }
12996
13077
  if (output["MaintenanceTrackName"] !== undefined) {
@@ -13002,7 +13083,7 @@ var deserializeAws_queryCluster = function (output, context) {
13002
13083
  if (output.DeferredMaintenanceWindows === "") {
13003
13084
  contents.DeferredMaintenanceWindows = [];
13004
13085
  }
13005
- if (output["DeferredMaintenanceWindows"] !== undefined &&
13086
+ else if (output["DeferredMaintenanceWindows"] !== undefined &&
13006
13087
  output["DeferredMaintenanceWindows"]["DeferredMaintenanceWindow"] !== undefined) {
13007
13088
  contents.DeferredMaintenanceWindows = deserializeAws_queryDeferredMaintenanceWindowsList(__getArrayIfSingleItem(output["DeferredMaintenanceWindows"]["DeferredMaintenanceWindow"]), context);
13008
13089
  }
@@ -13102,7 +13183,7 @@ var deserializeAws_queryClusterDbRevision = function (output, context) {
13102
13183
  if (output.RevisionTargets === "") {
13103
13184
  contents.RevisionTargets = [];
13104
13185
  }
13105
- if (output["RevisionTargets"] !== undefined && output["RevisionTargets"]["RevisionTarget"] !== undefined) {
13186
+ else if (output["RevisionTargets"] !== undefined && output["RevisionTargets"]["RevisionTarget"] !== undefined) {
13106
13187
  contents.RevisionTargets = deserializeAws_queryRevisionTargetsList(__getArrayIfSingleItem(output["RevisionTargets"]["RevisionTarget"]), context);
13107
13188
  }
13108
13189
  return contents;
@@ -13128,11 +13209,33 @@ var deserializeAws_queryClusterDbRevisionsMessage = function (output, context) {
13128
13209
  if (output.ClusterDbRevisions === "") {
13129
13210
  contents.ClusterDbRevisions = [];
13130
13211
  }
13131
- if (output["ClusterDbRevisions"] !== undefined && output["ClusterDbRevisions"]["ClusterDbRevision"] !== undefined) {
13212
+ else if (output["ClusterDbRevisions"] !== undefined &&
13213
+ output["ClusterDbRevisions"]["ClusterDbRevision"] !== undefined) {
13132
13214
  contents.ClusterDbRevisions = deserializeAws_queryClusterDbRevisionsList(__getArrayIfSingleItem(output["ClusterDbRevisions"]["ClusterDbRevision"]), context);
13133
13215
  }
13134
13216
  return contents;
13135
13217
  };
13218
+ var deserializeAws_queryClusterExtendedCredentials = function (output, context) {
13219
+ var contents = {
13220
+ DbUser: undefined,
13221
+ DbPassword: undefined,
13222
+ Expiration: undefined,
13223
+ NextRefreshTime: undefined,
13224
+ };
13225
+ if (output["DbUser"] !== undefined) {
13226
+ contents.DbUser = __expectString(output["DbUser"]);
13227
+ }
13228
+ if (output["DbPassword"] !== undefined) {
13229
+ contents.DbPassword = __expectString(output["DbPassword"]);
13230
+ }
13231
+ if (output["Expiration"] !== undefined) {
13232
+ contents.Expiration = __expectNonNull(__parseRfc3339DateTime(output["Expiration"]));
13233
+ }
13234
+ if (output["NextRefreshTime"] !== undefined) {
13235
+ contents.NextRefreshTime = __expectNonNull(__parseRfc3339DateTime(output["NextRefreshTime"]));
13236
+ }
13237
+ return contents;
13238
+ };
13136
13239
  var deserializeAws_queryClusterIamRole = function (output, context) {
13137
13240
  var contents = {
13138
13241
  IamRoleArn: undefined,
@@ -13230,7 +13333,7 @@ var deserializeAws_queryClusterParameterGroup = function (output, context) {
13230
13333
  if (output.Tags === "") {
13231
13334
  contents.Tags = [];
13232
13335
  }
13233
- if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) {
13336
+ else if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) {
13234
13337
  contents.Tags = deserializeAws_queryTagList(__getArrayIfSingleItem(output["Tags"]["Tag"]), context);
13235
13338
  }
13236
13339
  return contents;
@@ -13252,7 +13355,7 @@ var deserializeAws_queryClusterParameterGroupDetails = function (output, context
13252
13355
  if (output.Parameters === "") {
13253
13356
  contents.Parameters = [];
13254
13357
  }
13255
- if (output["Parameters"] !== undefined && output["Parameters"]["Parameter"] !== undefined) {
13358
+ else if (output["Parameters"] !== undefined && output["Parameters"]["Parameter"] !== undefined) {
13256
13359
  contents.Parameters = deserializeAws_queryParametersList(__getArrayIfSingleItem(output["Parameters"]["Parameter"]), context);
13257
13360
  }
13258
13361
  if (output["Marker"] !== undefined) {
@@ -13302,7 +13405,8 @@ var deserializeAws_queryClusterParameterGroupsMessage = function (output, contex
13302
13405
  if (output.ParameterGroups === "") {
13303
13406
  contents.ParameterGroups = [];
13304
13407
  }
13305
- if (output["ParameterGroups"] !== undefined && output["ParameterGroups"]["ClusterParameterGroup"] !== undefined) {
13408
+ else if (output["ParameterGroups"] !== undefined &&
13409
+ output["ParameterGroups"]["ClusterParameterGroup"] !== undefined) {
13306
13410
  contents.ParameterGroups = deserializeAws_queryParameterGroupList(__getArrayIfSingleItem(output["ParameterGroups"]["ClusterParameterGroup"]), context);
13307
13411
  }
13308
13412
  return contents;
@@ -13322,7 +13426,7 @@ var deserializeAws_queryClusterParameterGroupStatus = function (output, context)
13322
13426
  if (output.ClusterParameterStatusList === "") {
13323
13427
  contents.ClusterParameterStatusList = [];
13324
13428
  }
13325
- if (output["ClusterParameterStatusList"] !== undefined &&
13429
+ else if (output["ClusterParameterStatusList"] !== undefined &&
13326
13430
  output["ClusterParameterStatusList"]["member"] !== undefined) {
13327
13431
  contents.ClusterParameterStatusList = deserializeAws_queryClusterParameterStatusList(__getArrayIfSingleItem(output["ClusterParameterStatusList"]["member"]), context);
13328
13432
  }
@@ -13391,19 +13495,20 @@ var deserializeAws_queryClusterSecurityGroup = function (output, context) {
13391
13495
  if (output.EC2SecurityGroups === "") {
13392
13496
  contents.EC2SecurityGroups = [];
13393
13497
  }
13394
- if (output["EC2SecurityGroups"] !== undefined && output["EC2SecurityGroups"]["EC2SecurityGroup"] !== undefined) {
13498
+ else if (output["EC2SecurityGroups"] !== undefined &&
13499
+ output["EC2SecurityGroups"]["EC2SecurityGroup"] !== undefined) {
13395
13500
  contents.EC2SecurityGroups = deserializeAws_queryEC2SecurityGroupList(__getArrayIfSingleItem(output["EC2SecurityGroups"]["EC2SecurityGroup"]), context);
13396
13501
  }
13397
13502
  if (output.IPRanges === "") {
13398
13503
  contents.IPRanges = [];
13399
13504
  }
13400
- if (output["IPRanges"] !== undefined && output["IPRanges"]["IPRange"] !== undefined) {
13505
+ else if (output["IPRanges"] !== undefined && output["IPRanges"]["IPRange"] !== undefined) {
13401
13506
  contents.IPRanges = deserializeAws_queryIPRangeList(__getArrayIfSingleItem(output["IPRanges"]["IPRange"]), context);
13402
13507
  }
13403
13508
  if (output.Tags === "") {
13404
13509
  contents.Tags = [];
13405
13510
  }
13406
- if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) {
13511
+ else if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) {
13407
13512
  contents.Tags = deserializeAws_queryTagList(__getArrayIfSingleItem(output["Tags"]["Tag"]), context);
13408
13513
  }
13409
13514
  return contents;
@@ -13451,7 +13556,7 @@ var deserializeAws_queryClusterSecurityGroupMessage = function (output, context)
13451
13556
  if (output.ClusterSecurityGroups === "") {
13452
13557
  contents.ClusterSecurityGroups = [];
13453
13558
  }
13454
- if (output["ClusterSecurityGroups"] !== undefined &&
13559
+ else if (output["ClusterSecurityGroups"] !== undefined &&
13455
13560
  output["ClusterSecurityGroups"]["ClusterSecurityGroup"] !== undefined) {
13456
13561
  contents.ClusterSecurityGroups = deserializeAws_queryClusterSecurityGroups(__getArrayIfSingleItem(output["ClusterSecurityGroups"]["ClusterSecurityGroup"]), context);
13457
13562
  }
@@ -13496,7 +13601,7 @@ var deserializeAws_queryClustersMessage = function (output, context) {
13496
13601
  if (output.Clusters === "") {
13497
13602
  contents.Clusters = [];
13498
13603
  }
13499
- if (output["Clusters"] !== undefined && output["Clusters"]["Cluster"] !== undefined) {
13604
+ else if (output["Clusters"] !== undefined && output["Clusters"]["Cluster"] !== undefined) {
13500
13605
  contents.Clusters = deserializeAws_queryClusterList(__getArrayIfSingleItem(output["Clusters"]["Cluster"]), context);
13501
13606
  }
13502
13607
  return contents;
@@ -13573,13 +13678,13 @@ var deserializeAws_queryClusterSubnetGroup = function (output, context) {
13573
13678
  if (output.Subnets === "") {
13574
13679
  contents.Subnets = [];
13575
13680
  }
13576
- if (output["Subnets"] !== undefined && output["Subnets"]["Subnet"] !== undefined) {
13681
+ else if (output["Subnets"] !== undefined && output["Subnets"]["Subnet"] !== undefined) {
13577
13682
  contents.Subnets = deserializeAws_querySubnetList(__getArrayIfSingleItem(output["Subnets"]["Subnet"]), context);
13578
13683
  }
13579
13684
  if (output.Tags === "") {
13580
13685
  contents.Tags = [];
13581
13686
  }
13582
- if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) {
13687
+ else if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) {
13583
13688
  contents.Tags = deserializeAws_queryTagList(__getArrayIfSingleItem(output["Tags"]["Tag"]), context);
13584
13689
  }
13585
13690
  return contents;
@@ -13604,7 +13709,7 @@ var deserializeAws_queryClusterSubnetGroupMessage = function (output, context) {
13604
13709
  if (output.ClusterSubnetGroups === "") {
13605
13710
  contents.ClusterSubnetGroups = [];
13606
13711
  }
13607
- if (output["ClusterSubnetGroups"] !== undefined &&
13712
+ else if (output["ClusterSubnetGroups"] !== undefined &&
13608
13713
  output["ClusterSubnetGroups"]["ClusterSubnetGroup"] !== undefined) {
13609
13714
  contents.ClusterSubnetGroups = deserializeAws_queryClusterSubnetGroups(__getArrayIfSingleItem(output["ClusterSubnetGroups"]["ClusterSubnetGroup"]), context);
13610
13715
  }
@@ -13685,7 +13790,7 @@ var deserializeAws_queryClusterVersionsMessage = function (output, context) {
13685
13790
  if (output.ClusterVersions === "") {
13686
13791
  contents.ClusterVersions = [];
13687
13792
  }
13688
- if (output["ClusterVersions"] !== undefined && output["ClusterVersions"]["ClusterVersion"] !== undefined) {
13793
+ else if (output["ClusterVersions"] !== undefined && output["ClusterVersions"]["ClusterVersion"] !== undefined) {
13689
13794
  contents.ClusterVersions = deserializeAws_queryClusterVersionList(__getArrayIfSingleItem(output["ClusterVersions"]["ClusterVersion"]), context);
13690
13795
  }
13691
13796
  return contents;
@@ -13835,7 +13940,7 @@ var deserializeAws_queryDataShare = function (output, context) {
13835
13940
  if (output.DataShareAssociations === "") {
13836
13941
  contents.DataShareAssociations = [];
13837
13942
  }
13838
- if (output["DataShareAssociations"] !== undefined && output["DataShareAssociations"]["member"] !== undefined) {
13943
+ else if (output["DataShareAssociations"] !== undefined && output["DataShareAssociations"]["member"] !== undefined) {
13839
13944
  contents.DataShareAssociations = deserializeAws_queryDataShareAssociationList(__getArrayIfSingleItem(output["DataShareAssociations"]["member"]), context);
13840
13945
  }
13841
13946
  if (output["ManagedBy"] !== undefined) {
@@ -13932,7 +14037,7 @@ var deserializeAws_queryDefaultClusterParameters = function (output, context) {
13932
14037
  if (output.Parameters === "") {
13933
14038
  contents.Parameters = [];
13934
14039
  }
13935
- if (output["Parameters"] !== undefined && output["Parameters"]["Parameter"] !== undefined) {
14040
+ else if (output["Parameters"] !== undefined && output["Parameters"]["Parameter"] !== undefined) {
13936
14041
  contents.Parameters = deserializeAws_queryParametersList(__getArrayIfSingleItem(output["Parameters"]["Parameter"]), context);
13937
14042
  }
13938
14043
  return contents;
@@ -14016,7 +14121,8 @@ var deserializeAws_queryDescribeAuthenticationProfilesResult = function (output,
14016
14121
  if (output.AuthenticationProfiles === "") {
14017
14122
  contents.AuthenticationProfiles = [];
14018
14123
  }
14019
- if (output["AuthenticationProfiles"] !== undefined && output["AuthenticationProfiles"]["member"] !== undefined) {
14124
+ else if (output["AuthenticationProfiles"] !== undefined &&
14125
+ output["AuthenticationProfiles"]["member"] !== undefined) {
14020
14126
  contents.AuthenticationProfiles = deserializeAws_queryAuthenticationProfileList(__getArrayIfSingleItem(output["AuthenticationProfiles"]["member"]), context);
14021
14127
  }
14022
14128
  return contents;
@@ -14029,7 +14135,7 @@ var deserializeAws_queryDescribeDataSharesForConsumerResult = function (output,
14029
14135
  if (output.DataShares === "") {
14030
14136
  contents.DataShares = [];
14031
14137
  }
14032
- if (output["DataShares"] !== undefined && output["DataShares"]["member"] !== undefined) {
14138
+ else if (output["DataShares"] !== undefined && output["DataShares"]["member"] !== undefined) {
14033
14139
  contents.DataShares = deserializeAws_queryDataShareList(__getArrayIfSingleItem(output["DataShares"]["member"]), context);
14034
14140
  }
14035
14141
  if (output["Marker"] !== undefined) {
@@ -14045,7 +14151,7 @@ var deserializeAws_queryDescribeDataSharesForProducerResult = function (output,
14045
14151
  if (output.DataShares === "") {
14046
14152
  contents.DataShares = [];
14047
14153
  }
14048
- if (output["DataShares"] !== undefined && output["DataShares"]["member"] !== undefined) {
14154
+ else if (output["DataShares"] !== undefined && output["DataShares"]["member"] !== undefined) {
14049
14155
  contents.DataShares = deserializeAws_queryDataShareList(__getArrayIfSingleItem(output["DataShares"]["member"]), context);
14050
14156
  }
14051
14157
  if (output["Marker"] !== undefined) {
@@ -14061,7 +14167,7 @@ var deserializeAws_queryDescribeDataSharesResult = function (output, context) {
14061
14167
  if (output.DataShares === "") {
14062
14168
  contents.DataShares = [];
14063
14169
  }
14064
- if (output["DataShares"] !== undefined && output["DataShares"]["member"] !== undefined) {
14170
+ else if (output["DataShares"] !== undefined && output["DataShares"]["member"] !== undefined) {
14065
14171
  contents.DataShares = deserializeAws_queryDataShareList(__getArrayIfSingleItem(output["DataShares"]["member"]), context);
14066
14172
  }
14067
14173
  if (output["Marker"] !== undefined) {
@@ -14085,7 +14191,7 @@ var deserializeAws_queryDescribePartnersOutputMessage = function (output, contex
14085
14191
  if (output.PartnerIntegrationInfoList === "") {
14086
14192
  contents.PartnerIntegrationInfoList = [];
14087
14193
  }
14088
- if (output["PartnerIntegrationInfoList"] !== undefined &&
14194
+ else if (output["PartnerIntegrationInfoList"] !== undefined &&
14089
14195
  output["PartnerIntegrationInfoList"]["PartnerIntegrationInfo"] !== undefined) {
14090
14196
  contents.PartnerIntegrationInfoList = deserializeAws_queryPartnerIntegrationInfoList(__getArrayIfSingleItem(output["PartnerIntegrationInfoList"]["PartnerIntegrationInfo"]), context);
14091
14197
  }
@@ -14099,7 +14205,7 @@ var deserializeAws_queryDescribeReservedNodeExchangeStatusOutputMessage = functi
14099
14205
  if (output.ReservedNodeExchangeStatusDetails === "") {
14100
14206
  contents.ReservedNodeExchangeStatusDetails = [];
14101
14207
  }
14102
- if (output["ReservedNodeExchangeStatusDetails"] !== undefined &&
14208
+ else if (output["ReservedNodeExchangeStatusDetails"] !== undefined &&
14103
14209
  output["ReservedNodeExchangeStatusDetails"]["ReservedNodeExchangeStatus"] !== undefined) {
14104
14210
  contents.ReservedNodeExchangeStatusDetails = deserializeAws_queryReservedNodeExchangeStatusList(__getArrayIfSingleItem(output["ReservedNodeExchangeStatusDetails"]["ReservedNodeExchangeStatus"]), context);
14105
14211
  }
@@ -14116,7 +14222,8 @@ var deserializeAws_queryDescribeSnapshotSchedulesOutputMessage = function (outpu
14116
14222
  if (output.SnapshotSchedules === "") {
14117
14223
  contents.SnapshotSchedules = [];
14118
14224
  }
14119
- if (output["SnapshotSchedules"] !== undefined && output["SnapshotSchedules"]["SnapshotSchedule"] !== undefined) {
14225
+ else if (output["SnapshotSchedules"] !== undefined &&
14226
+ output["SnapshotSchedules"]["SnapshotSchedule"] !== undefined) {
14120
14227
  contents.SnapshotSchedules = deserializeAws_querySnapshotScheduleList(__getArrayIfSingleItem(output["SnapshotSchedules"]["SnapshotSchedule"]), context);
14121
14228
  }
14122
14229
  if (output["Marker"] !== undefined) {
@@ -14152,7 +14259,7 @@ var deserializeAws_queryEC2SecurityGroup = function (output, context) {
14152
14259
  if (output.Tags === "") {
14153
14260
  contents.Tags = [];
14154
14261
  }
14155
- if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) {
14262
+ else if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) {
14156
14263
  contents.Tags = deserializeAws_queryTagList(__getArrayIfSingleItem(output["Tags"]["Tag"]), context);
14157
14264
  }
14158
14265
  return contents;
@@ -14214,7 +14321,7 @@ var deserializeAws_queryEndpoint = function (output, context) {
14214
14321
  if (output.VpcEndpoints === "") {
14215
14322
  contents.VpcEndpoints = [];
14216
14323
  }
14217
- if (output["VpcEndpoints"] !== undefined && output["VpcEndpoints"]["VpcEndpoint"] !== undefined) {
14324
+ else if (output["VpcEndpoints"] !== undefined && output["VpcEndpoints"]["VpcEndpoint"] !== undefined) {
14218
14325
  contents.VpcEndpoints = deserializeAws_queryVpcEndpointsList(__getArrayIfSingleItem(output["VpcEndpoints"]["VpcEndpoint"]), context);
14219
14326
  }
14220
14327
  return contents;
@@ -14259,7 +14366,8 @@ var deserializeAws_queryEndpointAccess = function (output, context) {
14259
14366
  if (output.VpcSecurityGroups === "") {
14260
14367
  contents.VpcSecurityGroups = [];
14261
14368
  }
14262
- if (output["VpcSecurityGroups"] !== undefined && output["VpcSecurityGroups"]["VpcSecurityGroup"] !== undefined) {
14369
+ else if (output["VpcSecurityGroups"] !== undefined &&
14370
+ output["VpcSecurityGroups"]["VpcSecurityGroup"] !== undefined) {
14263
14371
  contents.VpcSecurityGroups = deserializeAws_queryVpcSecurityGroupMembershipList(__getArrayIfSingleItem(output["VpcSecurityGroups"]["VpcSecurityGroup"]), context);
14264
14372
  }
14265
14373
  if (output["VpcEndpoint"] !== undefined) {
@@ -14285,7 +14393,7 @@ var deserializeAws_queryEndpointAccessList = function (output, context) {
14285
14393
  if (output.EndpointAccessList === "") {
14286
14394
  contents.EndpointAccessList = [];
14287
14395
  }
14288
- if (output["EndpointAccessList"] !== undefined && output["EndpointAccessList"]["member"] !== undefined) {
14396
+ else if (output["EndpointAccessList"] !== undefined && output["EndpointAccessList"]["member"] !== undefined) {
14289
14397
  contents.EndpointAccessList = deserializeAws_queryEndpointAccesses(__getArrayIfSingleItem(output["EndpointAccessList"]["member"]), context);
14290
14398
  }
14291
14399
  if (output["Marker"] !== undefined) {
@@ -14338,7 +14446,7 @@ var deserializeAws_queryEndpointAuthorization = function (output, context) {
14338
14446
  if (output.AllowedVPCs === "") {
14339
14447
  contents.AllowedVPCs = [];
14340
14448
  }
14341
- if (output["AllowedVPCs"] !== undefined && output["AllowedVPCs"]["VpcIdentifier"] !== undefined) {
14449
+ else if (output["AllowedVPCs"] !== undefined && output["AllowedVPCs"]["VpcIdentifier"] !== undefined) {
14342
14450
  contents.AllowedVPCs = deserializeAws_queryVpcIdentifierList(__getArrayIfSingleItem(output["AllowedVPCs"]["VpcIdentifier"]), context);
14343
14451
  }
14344
14452
  if (output["EndpointCount"] !== undefined) {
@@ -14363,7 +14471,7 @@ var deserializeAws_queryEndpointAuthorizationList = function (output, context) {
14363
14471
  if (output.EndpointAuthorizationList === "") {
14364
14472
  contents.EndpointAuthorizationList = [];
14365
14473
  }
14366
- if (output["EndpointAuthorizationList"] !== undefined &&
14474
+ else if (output["EndpointAuthorizationList"] !== undefined &&
14367
14475
  output["EndpointAuthorizationList"]["member"] !== undefined) {
14368
14476
  contents.EndpointAuthorizationList = deserializeAws_queryEndpointAuthorizations(__getArrayIfSingleItem(output["EndpointAuthorizationList"]["member"]), context);
14369
14477
  }
@@ -14449,7 +14557,7 @@ var deserializeAws_queryEvent = function (output, context) {
14449
14557
  if (output.EventCategories === "") {
14450
14558
  contents.EventCategories = [];
14451
14559
  }
14452
- if (output["EventCategories"] !== undefined && output["EventCategories"]["EventCategory"] !== undefined) {
14560
+ else if (output["EventCategories"] !== undefined && output["EventCategories"]["EventCategory"] !== undefined) {
14453
14561
  contents.EventCategories = deserializeAws_queryEventCategoriesList(__getArrayIfSingleItem(output["EventCategories"]["EventCategory"]), context);
14454
14562
  }
14455
14563
  if (output["Severity"] !== undefined) {
@@ -14484,7 +14592,7 @@ var deserializeAws_queryEventCategoriesMap = function (output, context) {
14484
14592
  if (output.Events === "") {
14485
14593
  contents.Events = [];
14486
14594
  }
14487
- if (output["Events"] !== undefined && output["Events"]["EventInfoMap"] !== undefined) {
14595
+ else if (output["Events"] !== undefined && output["Events"]["EventInfoMap"] !== undefined) {
14488
14596
  contents.Events = deserializeAws_queryEventInfoMapList(__getArrayIfSingleItem(output["Events"]["EventInfoMap"]), context);
14489
14597
  }
14490
14598
  return contents;
@@ -14506,7 +14614,7 @@ var deserializeAws_queryEventCategoriesMessage = function (output, context) {
14506
14614
  if (output.EventCategoriesMapList === "") {
14507
14615
  contents.EventCategoriesMapList = [];
14508
14616
  }
14509
- if (output["EventCategoriesMapList"] !== undefined &&
14617
+ else if (output["EventCategoriesMapList"] !== undefined &&
14510
14618
  output["EventCategoriesMapList"]["EventCategoriesMap"] !== undefined) {
14511
14619
  contents.EventCategoriesMapList = deserializeAws_queryEventCategoriesMapList(__getArrayIfSingleItem(output["EventCategoriesMapList"]["EventCategoriesMap"]), context);
14512
14620
  }
@@ -14525,7 +14633,7 @@ var deserializeAws_queryEventInfoMap = function (output, context) {
14525
14633
  if (output.EventCategories === "") {
14526
14634
  contents.EventCategories = [];
14527
14635
  }
14528
- if (output["EventCategories"] !== undefined && output["EventCategories"]["EventCategory"] !== undefined) {
14636
+ else if (output["EventCategories"] !== undefined && output["EventCategories"]["EventCategory"] !== undefined) {
14529
14637
  contents.EventCategories = deserializeAws_queryEventCategoriesList(__getArrayIfSingleItem(output["EventCategories"]["EventCategory"]), context);
14530
14638
  }
14531
14639
  if (output["EventDescription"] !== undefined) {
@@ -14567,7 +14675,7 @@ var deserializeAws_queryEventsMessage = function (output, context) {
14567
14675
  if (output.Events === "") {
14568
14676
  contents.Events = [];
14569
14677
  }
14570
- if (output["Events"] !== undefined && output["Events"]["Event"] !== undefined) {
14678
+ else if (output["Events"] !== undefined && output["Events"]["Event"] !== undefined) {
14571
14679
  contents.Events = deserializeAws_queryEventList(__getArrayIfSingleItem(output["Events"]["Event"]), context);
14572
14680
  }
14573
14681
  return contents;
@@ -14607,13 +14715,14 @@ var deserializeAws_queryEventSubscription = function (output, context) {
14607
14715
  if (output.SourceIdsList === "") {
14608
14716
  contents.SourceIdsList = [];
14609
14717
  }
14610
- if (output["SourceIdsList"] !== undefined && output["SourceIdsList"]["SourceId"] !== undefined) {
14718
+ else if (output["SourceIdsList"] !== undefined && output["SourceIdsList"]["SourceId"] !== undefined) {
14611
14719
  contents.SourceIdsList = deserializeAws_querySourceIdsList(__getArrayIfSingleItem(output["SourceIdsList"]["SourceId"]), context);
14612
14720
  }
14613
14721
  if (output.EventCategoriesList === "") {
14614
14722
  contents.EventCategoriesList = [];
14615
14723
  }
14616
- if (output["EventCategoriesList"] !== undefined && output["EventCategoriesList"]["EventCategory"] !== undefined) {
14724
+ else if (output["EventCategoriesList"] !== undefined &&
14725
+ output["EventCategoriesList"]["EventCategory"] !== undefined) {
14617
14726
  contents.EventCategoriesList = deserializeAws_queryEventCategoriesList(__getArrayIfSingleItem(output["EventCategoriesList"]["EventCategory"]), context);
14618
14727
  }
14619
14728
  if (output["Severity"] !== undefined) {
@@ -14625,7 +14734,7 @@ var deserializeAws_queryEventSubscription = function (output, context) {
14625
14734
  if (output.Tags === "") {
14626
14735
  contents.Tags = [];
14627
14736
  }
14628
- if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) {
14737
+ else if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) {
14629
14738
  contents.Tags = deserializeAws_queryTagList(__getArrayIfSingleItem(output["Tags"]["Tag"]), context);
14630
14739
  }
14631
14740
  return contents;
@@ -14660,7 +14769,7 @@ var deserializeAws_queryEventSubscriptionsMessage = function (output, context) {
14660
14769
  if (output.EventSubscriptionsList === "") {
14661
14770
  contents.EventSubscriptionsList = [];
14662
14771
  }
14663
- if (output["EventSubscriptionsList"] !== undefined &&
14772
+ else if (output["EventSubscriptionsList"] !== undefined &&
14664
14773
  output["EventSubscriptionsList"]["EventSubscription"] !== undefined) {
14665
14774
  contents.EventSubscriptionsList = deserializeAws_queryEventSubscriptionsList(__getArrayIfSingleItem(output["EventSubscriptionsList"]["EventSubscription"]), context);
14666
14775
  }
@@ -14677,7 +14786,7 @@ var deserializeAws_queryGetReservedNodeExchangeConfigurationOptionsOutputMessage
14677
14786
  if (output.ReservedNodeConfigurationOptionList === "") {
14678
14787
  contents.ReservedNodeConfigurationOptionList = [];
14679
14788
  }
14680
- if (output["ReservedNodeConfigurationOptionList"] !== undefined &&
14789
+ else if (output["ReservedNodeConfigurationOptionList"] !== undefined &&
14681
14790
  output["ReservedNodeConfigurationOptionList"]["ReservedNodeConfigurationOption"] !== undefined) {
14682
14791
  contents.ReservedNodeConfigurationOptionList = deserializeAws_queryReservedNodeConfigurationOptionList(__getArrayIfSingleItem(output["ReservedNodeConfigurationOptionList"]["ReservedNodeConfigurationOption"]), context);
14683
14792
  }
@@ -14694,7 +14803,7 @@ var deserializeAws_queryGetReservedNodeExchangeOfferingsOutputMessage = function
14694
14803
  if (output.ReservedNodeOfferings === "") {
14695
14804
  contents.ReservedNodeOfferings = [];
14696
14805
  }
14697
- if (output["ReservedNodeOfferings"] !== undefined &&
14806
+ else if (output["ReservedNodeOfferings"] !== undefined &&
14698
14807
  output["ReservedNodeOfferings"]["ReservedNodeOffering"] !== undefined) {
14699
14808
  contents.ReservedNodeOfferings = deserializeAws_queryReservedNodeOfferingList(__getArrayIfSingleItem(output["ReservedNodeOfferings"]["ReservedNodeOffering"]), context);
14700
14809
  }
@@ -14715,7 +14824,7 @@ var deserializeAws_queryHsmClientCertificate = function (output, context) {
14715
14824
  if (output.Tags === "") {
14716
14825
  contents.Tags = [];
14717
14826
  }
14718
- if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) {
14827
+ else if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) {
14719
14828
  contents.Tags = deserializeAws_queryTagList(__getArrayIfSingleItem(output["Tags"]["Tag"]), context);
14720
14829
  }
14721
14830
  return contents;
@@ -14750,7 +14859,7 @@ var deserializeAws_queryHsmClientCertificateMessage = function (output, context)
14750
14859
  if (output.HsmClientCertificates === "") {
14751
14860
  contents.HsmClientCertificates = [];
14752
14861
  }
14753
- if (output["HsmClientCertificates"] !== undefined &&
14862
+ else if (output["HsmClientCertificates"] !== undefined &&
14754
14863
  output["HsmClientCertificates"]["HsmClientCertificate"] !== undefined) {
14755
14864
  contents.HsmClientCertificates = deserializeAws_queryHsmClientCertificateList(__getArrayIfSingleItem(output["HsmClientCertificates"]["HsmClientCertificate"]), context);
14756
14865
  }
@@ -14797,7 +14906,7 @@ var deserializeAws_queryHsmConfiguration = function (output, context) {
14797
14906
  if (output.Tags === "") {
14798
14907
  contents.Tags = [];
14799
14908
  }
14800
- if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) {
14909
+ else if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) {
14801
14910
  contents.Tags = deserializeAws_queryTagList(__getArrayIfSingleItem(output["Tags"]["Tag"]), context);
14802
14911
  }
14803
14912
  return contents;
@@ -14832,7 +14941,8 @@ var deserializeAws_queryHsmConfigurationMessage = function (output, context) {
14832
14941
  if (output.HsmConfigurations === "") {
14833
14942
  contents.HsmConfigurations = [];
14834
14943
  }
14835
- if (output["HsmConfigurations"] !== undefined && output["HsmConfigurations"]["HsmConfiguration"] !== undefined) {
14944
+ else if (output["HsmConfigurations"] !== undefined &&
14945
+ output["HsmConfigurations"]["HsmConfiguration"] !== undefined) {
14836
14946
  contents.HsmConfigurations = deserializeAws_queryHsmConfigurationList(__getArrayIfSingleItem(output["HsmConfigurations"]["HsmConfiguration"]), context);
14837
14947
  }
14838
14948
  return contents;
@@ -15223,7 +15333,7 @@ var deserializeAws_queryIPRange = function (output, context) {
15223
15333
  if (output.Tags === "") {
15224
15334
  contents.Tags = [];
15225
15335
  }
15226
- if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) {
15336
+ else if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) {
15227
15337
  contents.Tags = deserializeAws_queryTagList(__getArrayIfSingleItem(output["Tags"]["Tag"]), context);
15228
15338
  }
15229
15339
  return contents;
@@ -15282,7 +15392,7 @@ var deserializeAws_queryLoggingStatus = function (output, context) {
15282
15392
  if (output.LogExports === "") {
15283
15393
  contents.LogExports = [];
15284
15394
  }
15285
- if (output["LogExports"] !== undefined && output["LogExports"]["member"] !== undefined) {
15395
+ else if (output["LogExports"] !== undefined && output["LogExports"]["member"] !== undefined) {
15286
15396
  contents.LogExports = deserializeAws_queryLogTypeList(__getArrayIfSingleItem(output["LogExports"]["member"]), context);
15287
15397
  }
15288
15398
  return contents;
@@ -15312,7 +15422,7 @@ var deserializeAws_queryMaintenanceTrack = function (output, context) {
15312
15422
  if (output.UpdateTargets === "") {
15313
15423
  contents.UpdateTargets = [];
15314
15424
  }
15315
- if (output["UpdateTargets"] !== undefined && output["UpdateTargets"]["UpdateTarget"] !== undefined) {
15425
+ else if (output["UpdateTargets"] !== undefined && output["UpdateTargets"]["UpdateTarget"] !== undefined) {
15316
15426
  contents.UpdateTargets = deserializeAws_queryEligibleTracksToUpdateList(__getArrayIfSingleItem(output["UpdateTargets"]["UpdateTarget"]), context);
15317
15427
  }
15318
15428
  return contents;
@@ -15481,7 +15591,7 @@ var deserializeAws_queryNodeConfigurationOptionsMessage = function (output, cont
15481
15591
  if (output.NodeConfigurationOptionList === "") {
15482
15592
  contents.NodeConfigurationOptionList = [];
15483
15593
  }
15484
- if (output["NodeConfigurationOptionList"] !== undefined &&
15594
+ else if (output["NodeConfigurationOptionList"] !== undefined &&
15485
15595
  output["NodeConfigurationOptionList"]["NodeConfigurationOption"] !== undefined) {
15486
15596
  contents.NodeConfigurationOptionList = deserializeAws_queryNodeConfigurationOptionList(__getArrayIfSingleItem(output["NodeConfigurationOptionList"]["NodeConfigurationOption"]), context);
15487
15597
  }
@@ -15527,7 +15637,8 @@ var deserializeAws_queryOrderableClusterOption = function (output, context) {
15527
15637
  if (output.AvailabilityZones === "") {
15528
15638
  contents.AvailabilityZones = [];
15529
15639
  }
15530
- if (output["AvailabilityZones"] !== undefined && output["AvailabilityZones"]["AvailabilityZone"] !== undefined) {
15640
+ else if (output["AvailabilityZones"] !== undefined &&
15641
+ output["AvailabilityZones"]["AvailabilityZone"] !== undefined) {
15531
15642
  contents.AvailabilityZones = deserializeAws_queryAvailabilityZoneList(__getArrayIfSingleItem(output["AvailabilityZones"]["AvailabilityZone"]), context);
15532
15643
  }
15533
15644
  return contents;
@@ -15550,7 +15661,7 @@ var deserializeAws_queryOrderableClusterOptionsMessage = function (output, conte
15550
15661
  if (output.OrderableClusterOptions === "") {
15551
15662
  contents.OrderableClusterOptions = [];
15552
15663
  }
15553
- if (output["OrderableClusterOptions"] !== undefined &&
15664
+ else if (output["OrderableClusterOptions"] !== undefined &&
15554
15665
  output["OrderableClusterOptions"]["OrderableClusterOption"] !== undefined) {
15555
15666
  contents.OrderableClusterOptions = deserializeAws_queryOrderableClusterOptionsList(__getArrayIfSingleItem(output["OrderableClusterOptions"]["OrderableClusterOption"]), context);
15556
15667
  }
@@ -15851,7 +15962,7 @@ var deserializeAws_queryReservedNode = function (output, context) {
15851
15962
  if (output.RecurringCharges === "") {
15852
15963
  contents.RecurringCharges = [];
15853
15964
  }
15854
- if (output["RecurringCharges"] !== undefined && output["RecurringCharges"]["RecurringCharge"] !== undefined) {
15965
+ else if (output["RecurringCharges"] !== undefined && output["RecurringCharges"]["RecurringCharge"] !== undefined) {
15855
15966
  contents.RecurringCharges = deserializeAws_queryRecurringChargeList(__getArrayIfSingleItem(output["RecurringCharges"]["RecurringCharge"]), context);
15856
15967
  }
15857
15968
  if (output["ReservedNodeOfferingType"] !== undefined) {
@@ -16019,7 +16130,7 @@ var deserializeAws_queryReservedNodeOffering = function (output, context) {
16019
16130
  if (output.RecurringCharges === "") {
16020
16131
  contents.RecurringCharges = [];
16021
16132
  }
16022
- if (output["RecurringCharges"] !== undefined && output["RecurringCharges"]["RecurringCharge"] !== undefined) {
16133
+ else if (output["RecurringCharges"] !== undefined && output["RecurringCharges"]["RecurringCharge"] !== undefined) {
16023
16134
  contents.RecurringCharges = deserializeAws_queryRecurringChargeList(__getArrayIfSingleItem(output["RecurringCharges"]["RecurringCharge"]), context);
16024
16135
  }
16025
16136
  if (output["ReservedNodeOfferingType"] !== undefined) {
@@ -16057,7 +16168,7 @@ var deserializeAws_queryReservedNodeOfferingsMessage = function (output, context
16057
16168
  if (output.ReservedNodeOfferings === "") {
16058
16169
  contents.ReservedNodeOfferings = [];
16059
16170
  }
16060
- if (output["ReservedNodeOfferings"] !== undefined &&
16171
+ else if (output["ReservedNodeOfferings"] !== undefined &&
16061
16172
  output["ReservedNodeOfferings"]["ReservedNodeOffering"] !== undefined) {
16062
16173
  contents.ReservedNodeOfferings = deserializeAws_queryReservedNodeOfferingList(__getArrayIfSingleItem(output["ReservedNodeOfferings"]["ReservedNodeOffering"]), context);
16063
16174
  }
@@ -16083,7 +16194,7 @@ var deserializeAws_queryReservedNodesMessage = function (output, context) {
16083
16194
  if (output.ReservedNodes === "") {
16084
16195
  contents.ReservedNodes = [];
16085
16196
  }
16086
- if (output["ReservedNodes"] !== undefined && output["ReservedNodes"]["ReservedNode"] !== undefined) {
16197
+ else if (output["ReservedNodes"] !== undefined && output["ReservedNodes"]["ReservedNode"] !== undefined) {
16087
16198
  contents.ReservedNodes = deserializeAws_queryReservedNodeList(__getArrayIfSingleItem(output["ReservedNodes"]["ReservedNode"]), context);
16088
16199
  }
16089
16200
  return contents;
@@ -16186,19 +16297,21 @@ var deserializeAws_queryResizeProgressMessage = function (output, context) {
16186
16297
  if (output.ImportTablesCompleted === "") {
16187
16298
  contents.ImportTablesCompleted = [];
16188
16299
  }
16189
- if (output["ImportTablesCompleted"] !== undefined && output["ImportTablesCompleted"]["member"] !== undefined) {
16300
+ else if (output["ImportTablesCompleted"] !== undefined && output["ImportTablesCompleted"]["member"] !== undefined) {
16190
16301
  contents.ImportTablesCompleted = deserializeAws_queryImportTablesCompleted(__getArrayIfSingleItem(output["ImportTablesCompleted"]["member"]), context);
16191
16302
  }
16192
16303
  if (output.ImportTablesInProgress === "") {
16193
16304
  contents.ImportTablesInProgress = [];
16194
16305
  }
16195
- if (output["ImportTablesInProgress"] !== undefined && output["ImportTablesInProgress"]["member"] !== undefined) {
16306
+ else if (output["ImportTablesInProgress"] !== undefined &&
16307
+ output["ImportTablesInProgress"]["member"] !== undefined) {
16196
16308
  contents.ImportTablesInProgress = deserializeAws_queryImportTablesInProgress(__getArrayIfSingleItem(output["ImportTablesInProgress"]["member"]), context);
16197
16309
  }
16198
16310
  if (output.ImportTablesNotStarted === "") {
16199
16311
  contents.ImportTablesNotStarted = [];
16200
16312
  }
16201
- if (output["ImportTablesNotStarted"] !== undefined && output["ImportTablesNotStarted"]["member"] !== undefined) {
16313
+ else if (output["ImportTablesNotStarted"] !== undefined &&
16314
+ output["ImportTablesNotStarted"]["member"] !== undefined) {
16202
16315
  contents.ImportTablesNotStarted = deserializeAws_queryImportTablesNotStarted(__getArrayIfSingleItem(output["ImportTablesNotStarted"]["member"]), context);
16203
16316
  }
16204
16317
  if (output["AvgResizeRateInMegaBytesPerSecond"] !== undefined) {
@@ -16401,7 +16514,8 @@ var deserializeAws_queryScheduledAction = function (output, context) {
16401
16514
  if (output.NextInvocations === "") {
16402
16515
  contents.NextInvocations = [];
16403
16516
  }
16404
- if (output["NextInvocations"] !== undefined && output["NextInvocations"]["ScheduledActionTime"] !== undefined) {
16517
+ else if (output["NextInvocations"] !== undefined &&
16518
+ output["NextInvocations"]["ScheduledActionTime"] !== undefined) {
16405
16519
  contents.NextInvocations = deserializeAws_queryScheduledActionTimeList(__getArrayIfSingleItem(output["NextInvocations"]["ScheduledActionTime"]), context);
16406
16520
  }
16407
16521
  if (output["StartTime"] !== undefined) {
@@ -16460,7 +16574,7 @@ var deserializeAws_queryScheduledActionsMessage = function (output, context) {
16460
16574
  if (output.ScheduledActions === "") {
16461
16575
  contents.ScheduledActions = [];
16462
16576
  }
16463
- if (output["ScheduledActions"] !== undefined && output["ScheduledActions"]["ScheduledAction"] !== undefined) {
16577
+ else if (output["ScheduledActions"] !== undefined && output["ScheduledActions"]["ScheduledAction"] !== undefined) {
16464
16578
  contents.ScheduledActions = deserializeAws_queryScheduledActionList(__getArrayIfSingleItem(output["ScheduledActions"]["ScheduledAction"]), context);
16465
16579
  }
16466
16580
  return contents;
@@ -16624,7 +16738,7 @@ var deserializeAws_querySnapshot = function (output, context) {
16624
16738
  if (output.AccountsWithRestoreAccess === "") {
16625
16739
  contents.AccountsWithRestoreAccess = [];
16626
16740
  }
16627
- if (output["AccountsWithRestoreAccess"] !== undefined &&
16741
+ else if (output["AccountsWithRestoreAccess"] !== undefined &&
16628
16742
  output["AccountsWithRestoreAccess"]["AccountWithRestoreAccess"] !== undefined) {
16629
16743
  contents.AccountsWithRestoreAccess = deserializeAws_queryAccountsWithRestoreAccessList(__getArrayIfSingleItem(output["AccountsWithRestoreAccess"]["AccountWithRestoreAccess"]), context);
16630
16744
  }
@@ -16655,13 +16769,13 @@ var deserializeAws_querySnapshot = function (output, context) {
16655
16769
  if (output.Tags === "") {
16656
16770
  contents.Tags = [];
16657
16771
  }
16658
- if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) {
16772
+ else if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) {
16659
16773
  contents.Tags = deserializeAws_queryTagList(__getArrayIfSingleItem(output["Tags"]["Tag"]), context);
16660
16774
  }
16661
16775
  if (output.RestorableNodeTypes === "") {
16662
16776
  contents.RestorableNodeTypes = [];
16663
16777
  }
16664
- if (output["RestorableNodeTypes"] !== undefined && output["RestorableNodeTypes"]["NodeType"] !== undefined) {
16778
+ else if (output["RestorableNodeTypes"] !== undefined && output["RestorableNodeTypes"]["NodeType"] !== undefined) {
16665
16779
  contents.RestorableNodeTypes = deserializeAws_queryRestorableNodeTypeList(__getArrayIfSingleItem(output["RestorableNodeTypes"]["NodeType"]), context);
16666
16780
  }
16667
16781
  if (output["EnhancedVpcRouting"] !== undefined) {
@@ -16723,7 +16837,7 @@ var deserializeAws_querySnapshotCopyGrant = function (output, context) {
16723
16837
  if (output.Tags === "") {
16724
16838
  contents.Tags = [];
16725
16839
  }
16726
- if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) {
16840
+ else if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) {
16727
16841
  contents.Tags = deserializeAws_queryTagList(__getArrayIfSingleItem(output["Tags"]["Tag"]), context);
16728
16842
  }
16729
16843
  return contents;
@@ -16758,7 +16872,8 @@ var deserializeAws_querySnapshotCopyGrantMessage = function (output, context) {
16758
16872
  if (output.SnapshotCopyGrants === "") {
16759
16873
  contents.SnapshotCopyGrants = [];
16760
16874
  }
16761
- if (output["SnapshotCopyGrants"] !== undefined && output["SnapshotCopyGrants"]["SnapshotCopyGrant"] !== undefined) {
16875
+ else if (output["SnapshotCopyGrants"] !== undefined &&
16876
+ output["SnapshotCopyGrants"]["SnapshotCopyGrant"] !== undefined) {
16762
16877
  contents.SnapshotCopyGrants = deserializeAws_querySnapshotCopyGrantList(__getArrayIfSingleItem(output["SnapshotCopyGrants"]["SnapshotCopyGrant"]), context);
16763
16878
  }
16764
16879
  return contents;
@@ -16833,7 +16948,7 @@ var deserializeAws_querySnapshotMessage = function (output, context) {
16833
16948
  if (output.Snapshots === "") {
16834
16949
  contents.Snapshots = [];
16835
16950
  }
16836
- if (output["Snapshots"] !== undefined && output["Snapshots"]["Snapshot"] !== undefined) {
16951
+ else if (output["Snapshots"] !== undefined && output["Snapshots"]["Snapshot"] !== undefined) {
16837
16952
  contents.Snapshots = deserializeAws_querySnapshotList(__getArrayIfSingleItem(output["Snapshots"]["Snapshot"]), context);
16838
16953
  }
16839
16954
  return contents;
@@ -16851,7 +16966,7 @@ var deserializeAws_querySnapshotSchedule = function (output, context) {
16851
16966
  if (output.ScheduleDefinitions === "") {
16852
16967
  contents.ScheduleDefinitions = [];
16853
16968
  }
16854
- if (output["ScheduleDefinitions"] !== undefined &&
16969
+ else if (output["ScheduleDefinitions"] !== undefined &&
16855
16970
  output["ScheduleDefinitions"]["ScheduleDefinition"] !== undefined) {
16856
16971
  contents.ScheduleDefinitions = deserializeAws_queryScheduleDefinitionList(__getArrayIfSingleItem(output["ScheduleDefinitions"]["ScheduleDefinition"]), context);
16857
16972
  }
@@ -16864,13 +16979,13 @@ var deserializeAws_querySnapshotSchedule = function (output, context) {
16864
16979
  if (output.Tags === "") {
16865
16980
  contents.Tags = [];
16866
16981
  }
16867
- if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) {
16982
+ else if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) {
16868
16983
  contents.Tags = deserializeAws_queryTagList(__getArrayIfSingleItem(output["Tags"]["Tag"]), context);
16869
16984
  }
16870
16985
  if (output.NextInvocations === "") {
16871
16986
  contents.NextInvocations = [];
16872
16987
  }
16873
- if (output["NextInvocations"] !== undefined && output["NextInvocations"]["SnapshotTime"] !== undefined) {
16988
+ else if (output["NextInvocations"] !== undefined && output["NextInvocations"]["SnapshotTime"] !== undefined) {
16874
16989
  contents.NextInvocations = deserializeAws_queryScheduledSnapshotTimeList(__getArrayIfSingleItem(output["NextInvocations"]["SnapshotTime"]), context);
16875
16990
  }
16876
16991
  if (output["AssociatedClusterCount"] !== undefined) {
@@ -16879,7 +16994,7 @@ var deserializeAws_querySnapshotSchedule = function (output, context) {
16879
16994
  if (output.AssociatedClusters === "") {
16880
16995
  contents.AssociatedClusters = [];
16881
16996
  }
16882
- if (output["AssociatedClusters"] !== undefined &&
16997
+ else if (output["AssociatedClusters"] !== undefined &&
16883
16998
  output["AssociatedClusters"]["ClusterAssociatedToSchedule"] !== undefined) {
16884
16999
  contents.AssociatedClusters = deserializeAws_queryAssociatedClusterList(__getArrayIfSingleItem(output["AssociatedClusters"]["ClusterAssociatedToSchedule"]), context);
16885
17000
  }
@@ -17193,7 +17308,7 @@ var deserializeAws_queryTableRestoreStatusMessage = function (output, context) {
17193
17308
  if (output.TableRestoreStatusDetails === "") {
17194
17309
  contents.TableRestoreStatusDetails = [];
17195
17310
  }
17196
- if (output["TableRestoreStatusDetails"] !== undefined &&
17311
+ else if (output["TableRestoreStatusDetails"] !== undefined &&
17197
17312
  output["TableRestoreStatusDetails"]["TableRestoreStatus"] !== undefined) {
17198
17313
  contents.TableRestoreStatusDetails = deserializeAws_queryTableRestoreStatusList(__getArrayIfSingleItem(output["TableRestoreStatusDetails"]["TableRestoreStatus"]), context);
17199
17314
  }
@@ -17250,7 +17365,7 @@ var deserializeAws_queryTaggedResourceListMessage = function (output, context) {
17250
17365
  if (output.TaggedResources === "") {
17251
17366
  contents.TaggedResources = [];
17252
17367
  }
17253
- if (output["TaggedResources"] !== undefined && output["TaggedResources"]["TaggedResource"] !== undefined) {
17368
+ else if (output["TaggedResources"] !== undefined && output["TaggedResources"]["TaggedResource"] !== undefined) {
17254
17369
  contents.TaggedResources = deserializeAws_queryTaggedResourceList(__getArrayIfSingleItem(output["TaggedResources"]["TaggedResource"]), context);
17255
17370
  }
17256
17371
  if (output["Marker"] !== undefined) {
@@ -17295,7 +17410,8 @@ var deserializeAws_queryTrackListMessage = function (output, context) {
17295
17410
  if (output.MaintenanceTracks === "") {
17296
17411
  contents.MaintenanceTracks = [];
17297
17412
  }
17298
- if (output["MaintenanceTracks"] !== undefined && output["MaintenanceTracks"]["MaintenanceTrack"] !== undefined) {
17413
+ else if (output["MaintenanceTracks"] !== undefined &&
17414
+ output["MaintenanceTracks"]["MaintenanceTrack"] !== undefined) {
17299
17415
  contents.MaintenanceTracks = deserializeAws_queryTrackList(__getArrayIfSingleItem(output["MaintenanceTracks"]["MaintenanceTrack"]), context);
17300
17416
  }
17301
17417
  if (output["Marker"] !== undefined) {
@@ -17363,7 +17479,7 @@ var deserializeAws_queryUpdateTarget = function (output, context) {
17363
17479
  if (output.SupportedOperations === "") {
17364
17480
  contents.SupportedOperations = [];
17365
17481
  }
17366
- if (output["SupportedOperations"] !== undefined &&
17482
+ else if (output["SupportedOperations"] !== undefined &&
17367
17483
  output["SupportedOperations"]["SupportedOperation"] !== undefined) {
17368
17484
  contents.SupportedOperations = deserializeAws_querySupportedOperationList(__getArrayIfSingleItem(output["SupportedOperations"]["SupportedOperation"]), context);
17369
17485
  }
@@ -17404,7 +17520,7 @@ var deserializeAws_queryUsageLimit = function (output, context) {
17404
17520
  if (output.Tags === "") {
17405
17521
  contents.Tags = [];
17406
17522
  }
17407
- if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) {
17523
+ else if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) {
17408
17524
  contents.Tags = deserializeAws_queryTagList(__getArrayIfSingleItem(output["Tags"]["Tag"]), context);
17409
17525
  }
17410
17526
  return contents;
@@ -17426,7 +17542,7 @@ var deserializeAws_queryUsageLimitList = function (output, context) {
17426
17542
  if (output.UsageLimits === "") {
17427
17543
  contents.UsageLimits = [];
17428
17544
  }
17429
- if (output["UsageLimits"] !== undefined && output["UsageLimits"]["member"] !== undefined) {
17545
+ else if (output["UsageLimits"] !== undefined && output["UsageLimits"]["member"] !== undefined) {
17430
17546
  contents.UsageLimits = deserializeAws_queryUsageLimits(__getArrayIfSingleItem(output["UsageLimits"]["member"]), context);
17431
17547
  }
17432
17548
  if (output["Marker"] !== undefined) {
@@ -17468,7 +17584,8 @@ var deserializeAws_queryVpcEndpoint = function (output, context) {
17468
17584
  if (output.NetworkInterfaces === "") {
17469
17585
  contents.NetworkInterfaces = [];
17470
17586
  }
17471
- if (output["NetworkInterfaces"] !== undefined && output["NetworkInterfaces"]["NetworkInterface"] !== undefined) {
17587
+ else if (output["NetworkInterfaces"] !== undefined &&
17588
+ output["NetworkInterfaces"]["NetworkInterface"] !== undefined) {
17472
17589
  contents.NetworkInterfaces = deserializeAws_queryNetworkInterfaceList(__getArrayIfSingleItem(output["NetworkInterfaces"]["NetworkInterface"]), context);
17473
17590
  }
17474
17591
  return contents;