@aws-sdk/client-neptune 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.
- package/CHANGELOG.md +35 -0
- package/dist-cjs/Neptune.js +90 -0
- package/dist-cjs/NeptuneClient.js +2 -0
- package/dist-cjs/commands/CreateGlobalClusterCommand.js +36 -0
- package/dist-cjs/commands/DeleteGlobalClusterCommand.js +36 -0
- package/dist-cjs/commands/DescribeGlobalClustersCommand.js +36 -0
- package/dist-cjs/commands/FailoverGlobalClusterCommand.js +36 -0
- package/dist-cjs/commands/ModifyGlobalClusterCommand.js +36 -0
- package/dist-cjs/commands/RemoveFromGlobalClusterCommand.js +36 -0
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/models/models_0.js +141 -5
- package/dist-cjs/protocols/Aws_query.js +727 -64
- package/dist-es/Neptune.js +90 -0
- package/dist-es/NeptuneClient.js +2 -0
- package/dist-es/commands/CreateGlobalClusterCommand.js +39 -0
- package/dist-es/commands/DeleteGlobalClusterCommand.js +39 -0
- package/dist-es/commands/DescribeGlobalClustersCommand.js +39 -0
- package/dist-es/commands/FailoverGlobalClusterCommand.js +39 -0
- package/dist-es/commands/ModifyGlobalClusterCommand.js +39 -0
- package/dist-es/commands/RemoveFromGlobalClusterCommand.js +39 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/models/models_0.js +104 -0
- package/dist-es/protocols/Aws_query.js +851 -110
- package/dist-types/Neptune.d.ts +72 -0
- package/dist-types/NeptuneClient.d.ts +8 -2
- package/dist-types/commands/CreateGlobalClusterCommand.d.ts +44 -0
- package/dist-types/commands/DeleteGlobalClusterCommand.d.ts +36 -0
- package/dist-types/commands/DescribeGlobalClustersCommand.d.ts +36 -0
- package/dist-types/commands/FailoverGlobalClusterCommand.d.ts +49 -0
- package/dist-types/commands/ModifyGlobalClusterCommand.d.ts +37 -0
- package/dist-types/commands/RemoveFromGlobalClusterCommand.d.ts +38 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +449 -1
- package/dist-types/protocols/Aws_query.d.ts +18 -0
- package/dist-types/ts3.4/Neptune.d.ts +30 -0
- package/dist-types/ts3.4/NeptuneClient.d.ts +8 -2
- package/dist-types/ts3.4/commands/CreateGlobalClusterCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteGlobalClusterCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeGlobalClustersCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/FailoverGlobalClusterCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ModifyGlobalClusterCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/RemoveFromGlobalClusterCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +198 -0
- package/dist-types/ts3.4/protocols/Aws_query.d.ts +18 -0
- package/package.json +31 -30
|
@@ -3,7 +3,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
3
3
|
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTime as __parseRfc3339DateTime, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { decodeHTML } from "entities";
|
|
5
5
|
import { parse as xmlParse } from "fast-xml-parser";
|
|
6
|
-
import { AuthorizationNotFoundFault, CertificateNotFoundFault, DBClusterAlreadyExistsFault, DBClusterEndpointAlreadyExistsFault, DBClusterEndpointNotFoundFault, DBClusterEndpointQuotaExceededFault, DBClusterNotFoundFault, DBClusterParameterGroupNotFoundFault, DBClusterQuotaExceededFault, DBClusterRoleAlreadyExistsFault, DBClusterRoleNotFoundFault, DBClusterRoleQuotaExceededFault, DBClusterSnapshotAlreadyExistsFault, DBClusterSnapshotNotFoundFault, DBInstanceAlreadyExistsFault, DBInstanceNotFoundFault, DBParameterGroupAlreadyExistsFault, DBParameterGroupNotFoundFault, DBParameterGroupQuotaExceededFault, DBSecurityGroupNotFoundFault, DBSnapshotAlreadyExistsFault, DBSnapshotNotFoundFault, DBSubnetGroupAlreadyExistsFault, DBSubnetGroupDoesNotCoverEnoughAZs, DBSubnetGroupNotFoundFault, DBSubnetGroupQuotaExceededFault, DBSubnetQuotaExceededFault, DBUpgradeDependencyFailureFault, DomainNotFoundFault, EventSubscriptionQuotaExceededFault, InstanceQuotaExceededFault, InsufficientDBClusterCapacityFault, InsufficientDBInstanceCapacityFault, InsufficientStorageClusterCapacityFault, InvalidDBClusterEndpointStateFault, InvalidDBClusterSnapshotStateFault, InvalidDBClusterStateFault, InvalidDBInstanceStateFault, InvalidDBParameterGroupStateFault, InvalidDBSecurityGroupStateFault, InvalidDBSnapshotStateFault, InvalidDBSubnetGroupStateFault, InvalidDBSubnetStateFault, InvalidEventSubscriptionStateFault, InvalidRestoreFault, InvalidSubnet, InvalidVPCNetworkStateFault, KMSKeyNotAccessibleFault, OptionGroupNotFoundFault, ProvisionedIopsNotAvailableInAZFault, ResourceNotFoundFault, SharedSnapshotQuotaExceededFault, SnapshotQuotaExceededFault, SNSInvalidTopicFault, SNSNoAuthorizationFault, SNSTopicArnNotFoundFault, SourceNotFoundFault, StorageQuotaExceededFault, StorageTypeNotSupportedFault, SubnetAlreadyInUse, SubscriptionAlreadyExistFault, SubscriptionCategoryNotFoundFault, SubscriptionNotFoundFault, } from "../models/models_0";
|
|
6
|
+
import { AuthorizationNotFoundFault, CertificateNotFoundFault, DBClusterAlreadyExistsFault, DBClusterEndpointAlreadyExistsFault, DBClusterEndpointNotFoundFault, DBClusterEndpointQuotaExceededFault, DBClusterNotFoundFault, DBClusterParameterGroupNotFoundFault, DBClusterQuotaExceededFault, DBClusterRoleAlreadyExistsFault, DBClusterRoleNotFoundFault, DBClusterRoleQuotaExceededFault, DBClusterSnapshotAlreadyExistsFault, DBClusterSnapshotNotFoundFault, DBInstanceAlreadyExistsFault, DBInstanceNotFoundFault, DBParameterGroupAlreadyExistsFault, DBParameterGroupNotFoundFault, DBParameterGroupQuotaExceededFault, DBSecurityGroupNotFoundFault, DBSnapshotAlreadyExistsFault, DBSnapshotNotFoundFault, DBSubnetGroupAlreadyExistsFault, DBSubnetGroupDoesNotCoverEnoughAZs, DBSubnetGroupNotFoundFault, DBSubnetGroupQuotaExceededFault, DBSubnetQuotaExceededFault, DBUpgradeDependencyFailureFault, DomainNotFoundFault, EventSubscriptionQuotaExceededFault, GlobalClusterAlreadyExistsFault, GlobalClusterNotFoundFault, GlobalClusterQuotaExceededFault, InstanceQuotaExceededFault, InsufficientDBClusterCapacityFault, InsufficientDBInstanceCapacityFault, InsufficientStorageClusterCapacityFault, InvalidDBClusterEndpointStateFault, InvalidDBClusterSnapshotStateFault, InvalidDBClusterStateFault, InvalidDBInstanceStateFault, InvalidDBParameterGroupStateFault, InvalidDBSecurityGroupStateFault, InvalidDBSnapshotStateFault, InvalidDBSubnetGroupStateFault, InvalidDBSubnetStateFault, InvalidEventSubscriptionStateFault, InvalidGlobalClusterStateFault, InvalidRestoreFault, InvalidSubnet, InvalidVPCNetworkStateFault, KMSKeyNotAccessibleFault, OptionGroupNotFoundFault, ProvisionedIopsNotAvailableInAZFault, ResourceNotFoundFault, SharedSnapshotQuotaExceededFault, SnapshotQuotaExceededFault, SNSInvalidTopicFault, SNSNoAuthorizationFault, SNSTopicArnNotFoundFault, SourceNotFoundFault, StorageQuotaExceededFault, StorageTypeNotSupportedFault, SubnetAlreadyInUse, SubscriptionAlreadyExistFault, SubscriptionCategoryNotFoundFault, SubscriptionNotFoundFault, } from "../models/models_0";
|
|
7
7
|
import { NeptuneServiceException as __BaseException } from "../models/NeptuneServiceException";
|
|
8
8
|
export var serializeAws_queryAddRoleToDBClusterCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
9
9
|
var headers, body;
|
|
@@ -155,6 +155,16 @@ export var serializeAws_queryCreateEventSubscriptionCommand = function (input, c
|
|
|
155
155
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
156
156
|
});
|
|
157
157
|
}); };
|
|
158
|
+
export var serializeAws_queryCreateGlobalClusterCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
159
|
+
var headers, body;
|
|
160
|
+
return __generator(this, function (_a) {
|
|
161
|
+
headers = {
|
|
162
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
163
|
+
};
|
|
164
|
+
body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_queryCreateGlobalClusterMessage(input, context)), { Action: "CreateGlobalCluster", Version: "2014-10-31" }));
|
|
165
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
166
|
+
});
|
|
167
|
+
}); };
|
|
158
168
|
export var serializeAws_queryDeleteDBClusterCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
159
169
|
var headers, body;
|
|
160
170
|
return __generator(this, function (_a) {
|
|
@@ -235,6 +245,16 @@ export var serializeAws_queryDeleteEventSubscriptionCommand = function (input, c
|
|
|
235
245
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
236
246
|
});
|
|
237
247
|
}); };
|
|
248
|
+
export var serializeAws_queryDeleteGlobalClusterCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
249
|
+
var headers, body;
|
|
250
|
+
return __generator(this, function (_a) {
|
|
251
|
+
headers = {
|
|
252
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
253
|
+
};
|
|
254
|
+
body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_queryDeleteGlobalClusterMessage(input, context)), { Action: "DeleteGlobalCluster", Version: "2014-10-31" }));
|
|
255
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
256
|
+
});
|
|
257
|
+
}); };
|
|
238
258
|
export var serializeAws_queryDescribeDBClusterEndpointsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
239
259
|
var headers, body;
|
|
240
260
|
return __generator(this, function (_a) {
|
|
@@ -395,6 +415,16 @@ export var serializeAws_queryDescribeEventSubscriptionsCommand = function (input
|
|
|
395
415
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
396
416
|
});
|
|
397
417
|
}); };
|
|
418
|
+
export var serializeAws_queryDescribeGlobalClustersCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
419
|
+
var headers, body;
|
|
420
|
+
return __generator(this, function (_a) {
|
|
421
|
+
headers = {
|
|
422
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
423
|
+
};
|
|
424
|
+
body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_queryDescribeGlobalClustersMessage(input, context)), { Action: "DescribeGlobalClusters", Version: "2014-10-31" }));
|
|
425
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
426
|
+
});
|
|
427
|
+
}); };
|
|
398
428
|
export var serializeAws_queryDescribeOrderableDBInstanceOptionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
399
429
|
var headers, body;
|
|
400
430
|
return __generator(this, function (_a) {
|
|
@@ -435,6 +465,16 @@ export var serializeAws_queryFailoverDBClusterCommand = function (input, context
|
|
|
435
465
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
436
466
|
});
|
|
437
467
|
}); };
|
|
468
|
+
export var serializeAws_queryFailoverGlobalClusterCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
469
|
+
var headers, body;
|
|
470
|
+
return __generator(this, function (_a) {
|
|
471
|
+
headers = {
|
|
472
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
473
|
+
};
|
|
474
|
+
body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_queryFailoverGlobalClusterMessage(input, context)), { Action: "FailoverGlobalCluster", Version: "2014-10-31" }));
|
|
475
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
476
|
+
});
|
|
477
|
+
}); };
|
|
438
478
|
export var serializeAws_queryListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
439
479
|
var headers, body;
|
|
440
480
|
return __generator(this, function (_a) {
|
|
@@ -525,6 +565,16 @@ export var serializeAws_queryModifyEventSubscriptionCommand = function (input, c
|
|
|
525
565
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
526
566
|
});
|
|
527
567
|
}); };
|
|
568
|
+
export var serializeAws_queryModifyGlobalClusterCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
569
|
+
var headers, body;
|
|
570
|
+
return __generator(this, function (_a) {
|
|
571
|
+
headers = {
|
|
572
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
573
|
+
};
|
|
574
|
+
body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_queryModifyGlobalClusterMessage(input, context)), { Action: "ModifyGlobalCluster", Version: "2014-10-31" }));
|
|
575
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
576
|
+
});
|
|
577
|
+
}); };
|
|
528
578
|
export var serializeAws_queryPromoteReadReplicaDBClusterCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
529
579
|
var headers, body;
|
|
530
580
|
return __generator(this, function (_a) {
|
|
@@ -545,6 +595,16 @@ export var serializeAws_queryRebootDBInstanceCommand = function (input, context)
|
|
|
545
595
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
546
596
|
});
|
|
547
597
|
}); };
|
|
598
|
+
export var serializeAws_queryRemoveFromGlobalClusterCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
599
|
+
var headers, body;
|
|
600
|
+
return __generator(this, function (_a) {
|
|
601
|
+
headers = {
|
|
602
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
603
|
+
};
|
|
604
|
+
body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_queryRemoveFromGlobalClusterMessage(input, context)), { Action: "RemoveFromGlobalCluster", Version: "2014-10-31" }));
|
|
605
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
606
|
+
});
|
|
607
|
+
}); };
|
|
548
608
|
export var serializeAws_queryRemoveRoleFromDBClusterCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
549
609
|
var headers, body;
|
|
550
610
|
return __generator(this, function (_a) {
|
|
@@ -1092,24 +1152,28 @@ var deserializeAws_queryCreateDBClusterCommandError = function (output, context)
|
|
|
1092
1152
|
case "com.amazonaws.neptune#DBSubnetGroupDoesNotCoverEnoughAZs": return [3, 12];
|
|
1093
1153
|
case "DBSubnetGroupNotFoundFault": return [3, 14];
|
|
1094
1154
|
case "com.amazonaws.neptune#DBSubnetGroupNotFoundFault": return [3, 14];
|
|
1095
|
-
case "
|
|
1096
|
-
case "com.amazonaws.neptune#
|
|
1097
|
-
case "
|
|
1098
|
-
case "com.amazonaws.neptune#
|
|
1099
|
-
case "
|
|
1100
|
-
case "com.amazonaws.neptune#
|
|
1101
|
-
case "
|
|
1102
|
-
case "com.amazonaws.neptune#
|
|
1103
|
-
case "
|
|
1104
|
-
case "com.amazonaws.neptune#
|
|
1105
|
-
case "
|
|
1106
|
-
case "com.amazonaws.neptune#
|
|
1107
|
-
case "
|
|
1108
|
-
case "com.amazonaws.neptune#
|
|
1109
|
-
case "
|
|
1110
|
-
case "com.amazonaws.neptune#
|
|
1155
|
+
case "GlobalClusterNotFoundFault": return [3, 16];
|
|
1156
|
+
case "com.amazonaws.neptune#GlobalClusterNotFoundFault": return [3, 16];
|
|
1157
|
+
case "InsufficientStorageClusterCapacityFault": return [3, 18];
|
|
1158
|
+
case "com.amazonaws.neptune#InsufficientStorageClusterCapacityFault": return [3, 18];
|
|
1159
|
+
case "InvalidDBClusterStateFault": return [3, 20];
|
|
1160
|
+
case "com.amazonaws.neptune#InvalidDBClusterStateFault": return [3, 20];
|
|
1161
|
+
case "InvalidDBInstanceStateFault": return [3, 22];
|
|
1162
|
+
case "com.amazonaws.neptune#InvalidDBInstanceStateFault": return [3, 22];
|
|
1163
|
+
case "InvalidDBSubnetGroupStateFault": return [3, 24];
|
|
1164
|
+
case "com.amazonaws.neptune#InvalidDBSubnetGroupStateFault": return [3, 24];
|
|
1165
|
+
case "InvalidGlobalClusterStateFault": return [3, 26];
|
|
1166
|
+
case "com.amazonaws.neptune#InvalidGlobalClusterStateFault": return [3, 26];
|
|
1167
|
+
case "InvalidSubnet": return [3, 28];
|
|
1168
|
+
case "com.amazonaws.neptune#InvalidSubnet": return [3, 28];
|
|
1169
|
+
case "InvalidVPCNetworkStateFault": return [3, 30];
|
|
1170
|
+
case "com.amazonaws.neptune#InvalidVPCNetworkStateFault": return [3, 30];
|
|
1171
|
+
case "KMSKeyNotAccessibleFault": return [3, 32];
|
|
1172
|
+
case "com.amazonaws.neptune#KMSKeyNotAccessibleFault": return [3, 32];
|
|
1173
|
+
case "StorageQuotaExceededFault": return [3, 34];
|
|
1174
|
+
case "com.amazonaws.neptune#StorageQuotaExceededFault": return [3, 34];
|
|
1111
1175
|
}
|
|
1112
|
-
return [3,
|
|
1176
|
+
return [3, 36];
|
|
1113
1177
|
case 2: return [4, deserializeAws_queryDBClusterAlreadyExistsFaultResponse(parsedOutput, context)];
|
|
1114
1178
|
case 3: throw _d.sent();
|
|
1115
1179
|
case 4: return [4, deserializeAws_queryDBClusterNotFoundFaultResponse(parsedOutput, context)];
|
|
@@ -1124,23 +1188,27 @@ var deserializeAws_queryCreateDBClusterCommandError = function (output, context)
|
|
|
1124
1188
|
case 13: throw _d.sent();
|
|
1125
1189
|
case 14: return [4, deserializeAws_queryDBSubnetGroupNotFoundFaultResponse(parsedOutput, context)];
|
|
1126
1190
|
case 15: throw _d.sent();
|
|
1127
|
-
case 16: return [4,
|
|
1191
|
+
case 16: return [4, deserializeAws_queryGlobalClusterNotFoundFaultResponse(parsedOutput, context)];
|
|
1128
1192
|
case 17: throw _d.sent();
|
|
1129
|
-
case 18: return [4,
|
|
1193
|
+
case 18: return [4, deserializeAws_queryInsufficientStorageClusterCapacityFaultResponse(parsedOutput, context)];
|
|
1130
1194
|
case 19: throw _d.sent();
|
|
1131
|
-
case 20: return [4,
|
|
1195
|
+
case 20: return [4, deserializeAws_queryInvalidDBClusterStateFaultResponse(parsedOutput, context)];
|
|
1132
1196
|
case 21: throw _d.sent();
|
|
1133
|
-
case 22: return [4,
|
|
1197
|
+
case 22: return [4, deserializeAws_queryInvalidDBInstanceStateFaultResponse(parsedOutput, context)];
|
|
1134
1198
|
case 23: throw _d.sent();
|
|
1135
|
-
case 24: return [4,
|
|
1199
|
+
case 24: return [4, deserializeAws_queryInvalidDBSubnetGroupStateFaultResponse(parsedOutput, context)];
|
|
1136
1200
|
case 25: throw _d.sent();
|
|
1137
|
-
case 26: return [4,
|
|
1201
|
+
case 26: return [4, deserializeAws_queryInvalidGlobalClusterStateFaultResponse(parsedOutput, context)];
|
|
1138
1202
|
case 27: throw _d.sent();
|
|
1139
|
-
case 28: return [4,
|
|
1203
|
+
case 28: return [4, deserializeAws_queryInvalidSubnetResponse(parsedOutput, context)];
|
|
1140
1204
|
case 29: throw _d.sent();
|
|
1141
|
-
case 30: return [4,
|
|
1205
|
+
case 30: return [4, deserializeAws_queryInvalidVPCNetworkStateFaultResponse(parsedOutput, context)];
|
|
1142
1206
|
case 31: throw _d.sent();
|
|
1143
|
-
case 32:
|
|
1207
|
+
case 32: return [4, deserializeAws_queryKMSKeyNotAccessibleFaultResponse(parsedOutput, context)];
|
|
1208
|
+
case 33: throw _d.sent();
|
|
1209
|
+
case 34: return [4, deserializeAws_queryStorageQuotaExceededFaultResponse(parsedOutput, context)];
|
|
1210
|
+
case 35: throw _d.sent();
|
|
1211
|
+
case 36:
|
|
1144
1212
|
parsedBody = parsedOutput.body;
|
|
1145
1213
|
response = new __BaseException({
|
|
1146
1214
|
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
@@ -1653,6 +1721,68 @@ var deserializeAws_queryCreateEventSubscriptionCommandError = function (output,
|
|
|
1653
1721
|
}
|
|
1654
1722
|
});
|
|
1655
1723
|
}); };
|
|
1724
|
+
export var deserializeAws_queryCreateGlobalClusterCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1725
|
+
var data, contents, response;
|
|
1726
|
+
return __generator(this, function (_a) {
|
|
1727
|
+
switch (_a.label) {
|
|
1728
|
+
case 0:
|
|
1729
|
+
if (output.statusCode >= 300) {
|
|
1730
|
+
return [2, deserializeAws_queryCreateGlobalClusterCommandError(output, context)];
|
|
1731
|
+
}
|
|
1732
|
+
return [4, parseBody(output.body, context)];
|
|
1733
|
+
case 1:
|
|
1734
|
+
data = _a.sent();
|
|
1735
|
+
contents = {};
|
|
1736
|
+
contents = deserializeAws_queryCreateGlobalClusterResult(data.CreateGlobalClusterResult, context);
|
|
1737
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1738
|
+
return [2, Promise.resolve(response)];
|
|
1739
|
+
}
|
|
1740
|
+
});
|
|
1741
|
+
}); };
|
|
1742
|
+
var deserializeAws_queryCreateGlobalClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1743
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1744
|
+
var _c;
|
|
1745
|
+
return __generator(this, function (_d) {
|
|
1746
|
+
switch (_d.label) {
|
|
1747
|
+
case 0:
|
|
1748
|
+
_a = [__assign({}, output)];
|
|
1749
|
+
_c = {};
|
|
1750
|
+
return [4, parseBody(output.body, context)];
|
|
1751
|
+
case 1:
|
|
1752
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1753
|
+
errorCode = "UnknownError";
|
|
1754
|
+
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1755
|
+
_b = errorCode;
|
|
1756
|
+
switch (_b) {
|
|
1757
|
+
case "DBClusterNotFoundFault": return [3, 2];
|
|
1758
|
+
case "com.amazonaws.neptune#DBClusterNotFoundFault": return [3, 2];
|
|
1759
|
+
case "GlobalClusterAlreadyExistsFault": return [3, 4];
|
|
1760
|
+
case "com.amazonaws.neptune#GlobalClusterAlreadyExistsFault": return [3, 4];
|
|
1761
|
+
case "GlobalClusterQuotaExceededFault": return [3, 6];
|
|
1762
|
+
case "com.amazonaws.neptune#GlobalClusterQuotaExceededFault": return [3, 6];
|
|
1763
|
+
case "InvalidDBClusterStateFault": return [3, 8];
|
|
1764
|
+
case "com.amazonaws.neptune#InvalidDBClusterStateFault": return [3, 8];
|
|
1765
|
+
}
|
|
1766
|
+
return [3, 10];
|
|
1767
|
+
case 2: return [4, deserializeAws_queryDBClusterNotFoundFaultResponse(parsedOutput, context)];
|
|
1768
|
+
case 3: throw _d.sent();
|
|
1769
|
+
case 4: return [4, deserializeAws_queryGlobalClusterAlreadyExistsFaultResponse(parsedOutput, context)];
|
|
1770
|
+
case 5: throw _d.sent();
|
|
1771
|
+
case 6: return [4, deserializeAws_queryGlobalClusterQuotaExceededFaultResponse(parsedOutput, context)];
|
|
1772
|
+
case 7: throw _d.sent();
|
|
1773
|
+
case 8: return [4, deserializeAws_queryInvalidDBClusterStateFaultResponse(parsedOutput, context)];
|
|
1774
|
+
case 9: throw _d.sent();
|
|
1775
|
+
case 10:
|
|
1776
|
+
parsedBody = parsedOutput.body;
|
|
1777
|
+
response = new __BaseException({
|
|
1778
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1779
|
+
$fault: "client",
|
|
1780
|
+
$metadata: deserializeMetadata(output),
|
|
1781
|
+
});
|
|
1782
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1783
|
+
}
|
|
1784
|
+
});
|
|
1785
|
+
}); };
|
|
1656
1786
|
export var deserializeAws_queryDeleteDBClusterCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1657
1787
|
var data, contents, response;
|
|
1658
1788
|
return __generator(this, function (_a) {
|
|
@@ -2117,6 +2247,60 @@ var deserializeAws_queryDeleteEventSubscriptionCommandError = function (output,
|
|
|
2117
2247
|
}
|
|
2118
2248
|
});
|
|
2119
2249
|
}); };
|
|
2250
|
+
export var deserializeAws_queryDeleteGlobalClusterCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2251
|
+
var data, contents, response;
|
|
2252
|
+
return __generator(this, function (_a) {
|
|
2253
|
+
switch (_a.label) {
|
|
2254
|
+
case 0:
|
|
2255
|
+
if (output.statusCode >= 300) {
|
|
2256
|
+
return [2, deserializeAws_queryDeleteGlobalClusterCommandError(output, context)];
|
|
2257
|
+
}
|
|
2258
|
+
return [4, parseBody(output.body, context)];
|
|
2259
|
+
case 1:
|
|
2260
|
+
data = _a.sent();
|
|
2261
|
+
contents = {};
|
|
2262
|
+
contents = deserializeAws_queryDeleteGlobalClusterResult(data.DeleteGlobalClusterResult, context);
|
|
2263
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2264
|
+
return [2, Promise.resolve(response)];
|
|
2265
|
+
}
|
|
2266
|
+
});
|
|
2267
|
+
}); };
|
|
2268
|
+
var deserializeAws_queryDeleteGlobalClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2269
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2270
|
+
var _c;
|
|
2271
|
+
return __generator(this, function (_d) {
|
|
2272
|
+
switch (_d.label) {
|
|
2273
|
+
case 0:
|
|
2274
|
+
_a = [__assign({}, output)];
|
|
2275
|
+
_c = {};
|
|
2276
|
+
return [4, parseBody(output.body, context)];
|
|
2277
|
+
case 1:
|
|
2278
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2279
|
+
errorCode = "UnknownError";
|
|
2280
|
+
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2281
|
+
_b = errorCode;
|
|
2282
|
+
switch (_b) {
|
|
2283
|
+
case "GlobalClusterNotFoundFault": return [3, 2];
|
|
2284
|
+
case "com.amazonaws.neptune#GlobalClusterNotFoundFault": return [3, 2];
|
|
2285
|
+
case "InvalidGlobalClusterStateFault": return [3, 4];
|
|
2286
|
+
case "com.amazonaws.neptune#InvalidGlobalClusterStateFault": return [3, 4];
|
|
2287
|
+
}
|
|
2288
|
+
return [3, 6];
|
|
2289
|
+
case 2: return [4, deserializeAws_queryGlobalClusterNotFoundFaultResponse(parsedOutput, context)];
|
|
2290
|
+
case 3: throw _d.sent();
|
|
2291
|
+
case 4: return [4, deserializeAws_queryInvalidGlobalClusterStateFaultResponse(parsedOutput, context)];
|
|
2292
|
+
case 5: throw _d.sent();
|
|
2293
|
+
case 6:
|
|
2294
|
+
parsedBody = parsedOutput.body;
|
|
2295
|
+
response = new __BaseException({
|
|
2296
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2297
|
+
$fault: "client",
|
|
2298
|
+
$metadata: deserializeMetadata(output),
|
|
2299
|
+
});
|
|
2300
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
2301
|
+
}
|
|
2302
|
+
});
|
|
2303
|
+
}); };
|
|
2120
2304
|
export var deserializeAws_queryDescribeDBClusterEndpointsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2121
2305
|
var data, contents, response;
|
|
2122
2306
|
return __generator(this, function (_a) {
|
|
@@ -2892,6 +3076,56 @@ var deserializeAws_queryDescribeEventSubscriptionsCommandError = function (outpu
|
|
|
2892
3076
|
}
|
|
2893
3077
|
});
|
|
2894
3078
|
}); };
|
|
3079
|
+
export var deserializeAws_queryDescribeGlobalClustersCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3080
|
+
var data, contents, response;
|
|
3081
|
+
return __generator(this, function (_a) {
|
|
3082
|
+
switch (_a.label) {
|
|
3083
|
+
case 0:
|
|
3084
|
+
if (output.statusCode >= 300) {
|
|
3085
|
+
return [2, deserializeAws_queryDescribeGlobalClustersCommandError(output, context)];
|
|
3086
|
+
}
|
|
3087
|
+
return [4, parseBody(output.body, context)];
|
|
3088
|
+
case 1:
|
|
3089
|
+
data = _a.sent();
|
|
3090
|
+
contents = {};
|
|
3091
|
+
contents = deserializeAws_queryGlobalClustersMessage(data.DescribeGlobalClustersResult, context);
|
|
3092
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3093
|
+
return [2, Promise.resolve(response)];
|
|
3094
|
+
}
|
|
3095
|
+
});
|
|
3096
|
+
}); };
|
|
3097
|
+
var deserializeAws_queryDescribeGlobalClustersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3098
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3099
|
+
var _c;
|
|
3100
|
+
return __generator(this, function (_d) {
|
|
3101
|
+
switch (_d.label) {
|
|
3102
|
+
case 0:
|
|
3103
|
+
_a = [__assign({}, output)];
|
|
3104
|
+
_c = {};
|
|
3105
|
+
return [4, parseBody(output.body, context)];
|
|
3106
|
+
case 1:
|
|
3107
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3108
|
+
errorCode = "UnknownError";
|
|
3109
|
+
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3110
|
+
_b = errorCode;
|
|
3111
|
+
switch (_b) {
|
|
3112
|
+
case "GlobalClusterNotFoundFault": return [3, 2];
|
|
3113
|
+
case "com.amazonaws.neptune#GlobalClusterNotFoundFault": return [3, 2];
|
|
3114
|
+
}
|
|
3115
|
+
return [3, 4];
|
|
3116
|
+
case 2: return [4, deserializeAws_queryGlobalClusterNotFoundFaultResponse(parsedOutput, context)];
|
|
3117
|
+
case 3: throw _d.sent();
|
|
3118
|
+
case 4:
|
|
3119
|
+
parsedBody = parsedOutput.body;
|
|
3120
|
+
response = new __BaseException({
|
|
3121
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3122
|
+
$fault: "client",
|
|
3123
|
+
$metadata: deserializeMetadata(output),
|
|
3124
|
+
});
|
|
3125
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
3126
|
+
}
|
|
3127
|
+
});
|
|
3128
|
+
}); };
|
|
2895
3129
|
export var deserializeAws_queryDescribeOrderableDBInstanceOptionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2896
3130
|
var data, contents, response;
|
|
2897
3131
|
return __generator(this, function (_a) {
|
|
@@ -3099,6 +3333,68 @@ var deserializeAws_queryFailoverDBClusterCommandError = function (output, contex
|
|
|
3099
3333
|
}
|
|
3100
3334
|
});
|
|
3101
3335
|
}); };
|
|
3336
|
+
export var deserializeAws_queryFailoverGlobalClusterCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3337
|
+
var data, contents, response;
|
|
3338
|
+
return __generator(this, function (_a) {
|
|
3339
|
+
switch (_a.label) {
|
|
3340
|
+
case 0:
|
|
3341
|
+
if (output.statusCode >= 300) {
|
|
3342
|
+
return [2, deserializeAws_queryFailoverGlobalClusterCommandError(output, context)];
|
|
3343
|
+
}
|
|
3344
|
+
return [4, parseBody(output.body, context)];
|
|
3345
|
+
case 1:
|
|
3346
|
+
data = _a.sent();
|
|
3347
|
+
contents = {};
|
|
3348
|
+
contents = deserializeAws_queryFailoverGlobalClusterResult(data.FailoverGlobalClusterResult, context);
|
|
3349
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3350
|
+
return [2, Promise.resolve(response)];
|
|
3351
|
+
}
|
|
3352
|
+
});
|
|
3353
|
+
}); };
|
|
3354
|
+
var deserializeAws_queryFailoverGlobalClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3355
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3356
|
+
var _c;
|
|
3357
|
+
return __generator(this, function (_d) {
|
|
3358
|
+
switch (_d.label) {
|
|
3359
|
+
case 0:
|
|
3360
|
+
_a = [__assign({}, output)];
|
|
3361
|
+
_c = {};
|
|
3362
|
+
return [4, parseBody(output.body, context)];
|
|
3363
|
+
case 1:
|
|
3364
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3365
|
+
errorCode = "UnknownError";
|
|
3366
|
+
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3367
|
+
_b = errorCode;
|
|
3368
|
+
switch (_b) {
|
|
3369
|
+
case "DBClusterNotFoundFault": return [3, 2];
|
|
3370
|
+
case "com.amazonaws.neptune#DBClusterNotFoundFault": return [3, 2];
|
|
3371
|
+
case "GlobalClusterNotFoundFault": return [3, 4];
|
|
3372
|
+
case "com.amazonaws.neptune#GlobalClusterNotFoundFault": return [3, 4];
|
|
3373
|
+
case "InvalidDBClusterStateFault": return [3, 6];
|
|
3374
|
+
case "com.amazonaws.neptune#InvalidDBClusterStateFault": return [3, 6];
|
|
3375
|
+
case "InvalidGlobalClusterStateFault": return [3, 8];
|
|
3376
|
+
case "com.amazonaws.neptune#InvalidGlobalClusterStateFault": return [3, 8];
|
|
3377
|
+
}
|
|
3378
|
+
return [3, 10];
|
|
3379
|
+
case 2: return [4, deserializeAws_queryDBClusterNotFoundFaultResponse(parsedOutput, context)];
|
|
3380
|
+
case 3: throw _d.sent();
|
|
3381
|
+
case 4: return [4, deserializeAws_queryGlobalClusterNotFoundFaultResponse(parsedOutput, context)];
|
|
3382
|
+
case 5: throw _d.sent();
|
|
3383
|
+
case 6: return [4, deserializeAws_queryInvalidDBClusterStateFaultResponse(parsedOutput, context)];
|
|
3384
|
+
case 7: throw _d.sent();
|
|
3385
|
+
case 8: return [4, deserializeAws_queryInvalidGlobalClusterStateFaultResponse(parsedOutput, context)];
|
|
3386
|
+
case 9: throw _d.sent();
|
|
3387
|
+
case 10:
|
|
3388
|
+
parsedBody = parsedOutput.body;
|
|
3389
|
+
response = new __BaseException({
|
|
3390
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3391
|
+
$fault: "client",
|
|
3392
|
+
$metadata: deserializeMetadata(output),
|
|
3393
|
+
});
|
|
3394
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
3395
|
+
}
|
|
3396
|
+
});
|
|
3397
|
+
}); };
|
|
3102
3398
|
export var deserializeAws_queryListTagsForResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3103
3399
|
var data, contents, response;
|
|
3104
3400
|
return __generator(this, function (_a) {
|
|
@@ -3725,25 +4021,133 @@ var deserializeAws_queryModifyEventSubscriptionCommandError = function (output,
|
|
|
3725
4021
|
}
|
|
3726
4022
|
});
|
|
3727
4023
|
}); };
|
|
3728
|
-
export var
|
|
4024
|
+
export var deserializeAws_queryModifyGlobalClusterCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4025
|
+
var data, contents, response;
|
|
4026
|
+
return __generator(this, function (_a) {
|
|
4027
|
+
switch (_a.label) {
|
|
4028
|
+
case 0:
|
|
4029
|
+
if (output.statusCode >= 300) {
|
|
4030
|
+
return [2, deserializeAws_queryModifyGlobalClusterCommandError(output, context)];
|
|
4031
|
+
}
|
|
4032
|
+
return [4, parseBody(output.body, context)];
|
|
4033
|
+
case 1:
|
|
4034
|
+
data = _a.sent();
|
|
4035
|
+
contents = {};
|
|
4036
|
+
contents = deserializeAws_queryModifyGlobalClusterResult(data.ModifyGlobalClusterResult, context);
|
|
4037
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
4038
|
+
return [2, Promise.resolve(response)];
|
|
4039
|
+
}
|
|
4040
|
+
});
|
|
4041
|
+
}); };
|
|
4042
|
+
var deserializeAws_queryModifyGlobalClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4043
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4044
|
+
var _c;
|
|
4045
|
+
return __generator(this, function (_d) {
|
|
4046
|
+
switch (_d.label) {
|
|
4047
|
+
case 0:
|
|
4048
|
+
_a = [__assign({}, output)];
|
|
4049
|
+
_c = {};
|
|
4050
|
+
return [4, parseBody(output.body, context)];
|
|
4051
|
+
case 1:
|
|
4052
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4053
|
+
errorCode = "UnknownError";
|
|
4054
|
+
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4055
|
+
_b = errorCode;
|
|
4056
|
+
switch (_b) {
|
|
4057
|
+
case "GlobalClusterNotFoundFault": return [3, 2];
|
|
4058
|
+
case "com.amazonaws.neptune#GlobalClusterNotFoundFault": return [3, 2];
|
|
4059
|
+
case "InvalidGlobalClusterStateFault": return [3, 4];
|
|
4060
|
+
case "com.amazonaws.neptune#InvalidGlobalClusterStateFault": return [3, 4];
|
|
4061
|
+
}
|
|
4062
|
+
return [3, 6];
|
|
4063
|
+
case 2: return [4, deserializeAws_queryGlobalClusterNotFoundFaultResponse(parsedOutput, context)];
|
|
4064
|
+
case 3: throw _d.sent();
|
|
4065
|
+
case 4: return [4, deserializeAws_queryInvalidGlobalClusterStateFaultResponse(parsedOutput, context)];
|
|
4066
|
+
case 5: throw _d.sent();
|
|
4067
|
+
case 6:
|
|
4068
|
+
parsedBody = parsedOutput.body;
|
|
4069
|
+
response = new __BaseException({
|
|
4070
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4071
|
+
$fault: "client",
|
|
4072
|
+
$metadata: deserializeMetadata(output),
|
|
4073
|
+
});
|
|
4074
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
4075
|
+
}
|
|
4076
|
+
});
|
|
4077
|
+
}); };
|
|
4078
|
+
export var deserializeAws_queryPromoteReadReplicaDBClusterCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4079
|
+
var data, contents, response;
|
|
4080
|
+
return __generator(this, function (_a) {
|
|
4081
|
+
switch (_a.label) {
|
|
4082
|
+
case 0:
|
|
4083
|
+
if (output.statusCode >= 300) {
|
|
4084
|
+
return [2, deserializeAws_queryPromoteReadReplicaDBClusterCommandError(output, context)];
|
|
4085
|
+
}
|
|
4086
|
+
return [4, parseBody(output.body, context)];
|
|
4087
|
+
case 1:
|
|
4088
|
+
data = _a.sent();
|
|
4089
|
+
contents = {};
|
|
4090
|
+
contents = deserializeAws_queryPromoteReadReplicaDBClusterResult(data.PromoteReadReplicaDBClusterResult, context);
|
|
4091
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
4092
|
+
return [2, Promise.resolve(response)];
|
|
4093
|
+
}
|
|
4094
|
+
});
|
|
4095
|
+
}); };
|
|
4096
|
+
var deserializeAws_queryPromoteReadReplicaDBClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4097
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4098
|
+
var _c;
|
|
4099
|
+
return __generator(this, function (_d) {
|
|
4100
|
+
switch (_d.label) {
|
|
4101
|
+
case 0:
|
|
4102
|
+
_a = [__assign({}, output)];
|
|
4103
|
+
_c = {};
|
|
4104
|
+
return [4, parseBody(output.body, context)];
|
|
4105
|
+
case 1:
|
|
4106
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4107
|
+
errorCode = "UnknownError";
|
|
4108
|
+
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4109
|
+
_b = errorCode;
|
|
4110
|
+
switch (_b) {
|
|
4111
|
+
case "DBClusterNotFoundFault": return [3, 2];
|
|
4112
|
+
case "com.amazonaws.neptune#DBClusterNotFoundFault": return [3, 2];
|
|
4113
|
+
case "InvalidDBClusterStateFault": return [3, 4];
|
|
4114
|
+
case "com.amazonaws.neptune#InvalidDBClusterStateFault": return [3, 4];
|
|
4115
|
+
}
|
|
4116
|
+
return [3, 6];
|
|
4117
|
+
case 2: return [4, deserializeAws_queryDBClusterNotFoundFaultResponse(parsedOutput, context)];
|
|
4118
|
+
case 3: throw _d.sent();
|
|
4119
|
+
case 4: return [4, deserializeAws_queryInvalidDBClusterStateFaultResponse(parsedOutput, context)];
|
|
4120
|
+
case 5: throw _d.sent();
|
|
4121
|
+
case 6:
|
|
4122
|
+
parsedBody = parsedOutput.body;
|
|
4123
|
+
response = new __BaseException({
|
|
4124
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4125
|
+
$fault: "client",
|
|
4126
|
+
$metadata: deserializeMetadata(output),
|
|
4127
|
+
});
|
|
4128
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
4129
|
+
}
|
|
4130
|
+
});
|
|
4131
|
+
}); };
|
|
4132
|
+
export var deserializeAws_queryRebootDBInstanceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3729
4133
|
var data, contents, response;
|
|
3730
4134
|
return __generator(this, function (_a) {
|
|
3731
4135
|
switch (_a.label) {
|
|
3732
4136
|
case 0:
|
|
3733
4137
|
if (output.statusCode >= 300) {
|
|
3734
|
-
return [2,
|
|
4138
|
+
return [2, deserializeAws_queryRebootDBInstanceCommandError(output, context)];
|
|
3735
4139
|
}
|
|
3736
4140
|
return [4, parseBody(output.body, context)];
|
|
3737
4141
|
case 1:
|
|
3738
4142
|
data = _a.sent();
|
|
3739
4143
|
contents = {};
|
|
3740
|
-
contents =
|
|
4144
|
+
contents = deserializeAws_queryRebootDBInstanceResult(data.RebootDBInstanceResult, context);
|
|
3741
4145
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3742
4146
|
return [2, Promise.resolve(response)];
|
|
3743
4147
|
}
|
|
3744
4148
|
});
|
|
3745
4149
|
}); };
|
|
3746
|
-
var
|
|
4150
|
+
var deserializeAws_queryRebootDBInstanceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3747
4151
|
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3748
4152
|
var _c;
|
|
3749
4153
|
return __generator(this, function (_d) {
|
|
@@ -3758,15 +4162,15 @@ var deserializeAws_queryPromoteReadReplicaDBClusterCommandError = function (outp
|
|
|
3758
4162
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3759
4163
|
_b = errorCode;
|
|
3760
4164
|
switch (_b) {
|
|
3761
|
-
case "
|
|
3762
|
-
case "com.amazonaws.neptune#
|
|
3763
|
-
case "
|
|
3764
|
-
case "com.amazonaws.neptune#
|
|
4165
|
+
case "DBInstanceNotFoundFault": return [3, 2];
|
|
4166
|
+
case "com.amazonaws.neptune#DBInstanceNotFoundFault": return [3, 2];
|
|
4167
|
+
case "InvalidDBInstanceStateFault": return [3, 4];
|
|
4168
|
+
case "com.amazonaws.neptune#InvalidDBInstanceStateFault": return [3, 4];
|
|
3765
4169
|
}
|
|
3766
4170
|
return [3, 6];
|
|
3767
|
-
case 2: return [4,
|
|
4171
|
+
case 2: return [4, deserializeAws_queryDBInstanceNotFoundFaultResponse(parsedOutput, context)];
|
|
3768
4172
|
case 3: throw _d.sent();
|
|
3769
|
-
case 4: return [4,
|
|
4173
|
+
case 4: return [4, deserializeAws_queryInvalidDBInstanceStateFaultResponse(parsedOutput, context)];
|
|
3770
4174
|
case 5: throw _d.sent();
|
|
3771
4175
|
case 6:
|
|
3772
4176
|
parsedBody = parsedOutput.body;
|
|
@@ -3779,25 +4183,25 @@ var deserializeAws_queryPromoteReadReplicaDBClusterCommandError = function (outp
|
|
|
3779
4183
|
}
|
|
3780
4184
|
});
|
|
3781
4185
|
}); };
|
|
3782
|
-
export var
|
|
4186
|
+
export var deserializeAws_queryRemoveFromGlobalClusterCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3783
4187
|
var data, contents, response;
|
|
3784
4188
|
return __generator(this, function (_a) {
|
|
3785
4189
|
switch (_a.label) {
|
|
3786
4190
|
case 0:
|
|
3787
4191
|
if (output.statusCode >= 300) {
|
|
3788
|
-
return [2,
|
|
4192
|
+
return [2, deserializeAws_queryRemoveFromGlobalClusterCommandError(output, context)];
|
|
3789
4193
|
}
|
|
3790
4194
|
return [4, parseBody(output.body, context)];
|
|
3791
4195
|
case 1:
|
|
3792
4196
|
data = _a.sent();
|
|
3793
4197
|
contents = {};
|
|
3794
|
-
contents =
|
|
4198
|
+
contents = deserializeAws_queryRemoveFromGlobalClusterResult(data.RemoveFromGlobalClusterResult, context);
|
|
3795
4199
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3796
4200
|
return [2, Promise.resolve(response)];
|
|
3797
4201
|
}
|
|
3798
4202
|
});
|
|
3799
4203
|
}); };
|
|
3800
|
-
var
|
|
4204
|
+
var deserializeAws_queryRemoveFromGlobalClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3801
4205
|
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3802
4206
|
var _c;
|
|
3803
4207
|
return __generator(this, function (_d) {
|
|
@@ -3812,17 +4216,21 @@ var deserializeAws_queryRebootDBInstanceCommandError = function (output, context
|
|
|
3812
4216
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3813
4217
|
_b = errorCode;
|
|
3814
4218
|
switch (_b) {
|
|
3815
|
-
case "
|
|
3816
|
-
case "com.amazonaws.neptune#
|
|
3817
|
-
case "
|
|
3818
|
-
case "com.amazonaws.neptune#
|
|
4219
|
+
case "DBClusterNotFoundFault": return [3, 2];
|
|
4220
|
+
case "com.amazonaws.neptune#DBClusterNotFoundFault": return [3, 2];
|
|
4221
|
+
case "GlobalClusterNotFoundFault": return [3, 4];
|
|
4222
|
+
case "com.amazonaws.neptune#GlobalClusterNotFoundFault": return [3, 4];
|
|
4223
|
+
case "InvalidGlobalClusterStateFault": return [3, 6];
|
|
4224
|
+
case "com.amazonaws.neptune#InvalidGlobalClusterStateFault": return [3, 6];
|
|
3819
4225
|
}
|
|
3820
|
-
return [3,
|
|
3821
|
-
case 2: return [4,
|
|
4226
|
+
return [3, 8];
|
|
4227
|
+
case 2: return [4, deserializeAws_queryDBClusterNotFoundFaultResponse(parsedOutput, context)];
|
|
3822
4228
|
case 3: throw _d.sent();
|
|
3823
|
-
case 4: return [4,
|
|
4229
|
+
case 4: return [4, deserializeAws_queryGlobalClusterNotFoundFaultResponse(parsedOutput, context)];
|
|
3824
4230
|
case 5: throw _d.sent();
|
|
3825
|
-
case 6:
|
|
4231
|
+
case 6: return [4, deserializeAws_queryInvalidGlobalClusterStateFaultResponse(parsedOutput, context)];
|
|
4232
|
+
case 7: throw _d.sent();
|
|
4233
|
+
case 8:
|
|
3826
4234
|
parsedBody = parsedOutput.body;
|
|
3827
4235
|
response = new __BaseException({
|
|
3828
4236
|
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
@@ -4721,6 +5129,33 @@ var deserializeAws_queryEventSubscriptionQuotaExceededFaultResponse = function (
|
|
|
4721
5129
|
return [2, __decorateServiceException(exception, body)];
|
|
4722
5130
|
});
|
|
4723
5131
|
}); };
|
|
5132
|
+
var deserializeAws_queryGlobalClusterAlreadyExistsFaultResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5133
|
+
var body, deserialized, exception;
|
|
5134
|
+
return __generator(this, function (_a) {
|
|
5135
|
+
body = parsedOutput.body;
|
|
5136
|
+
deserialized = deserializeAws_queryGlobalClusterAlreadyExistsFault(body.Error, context);
|
|
5137
|
+
exception = new GlobalClusterAlreadyExistsFault(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
5138
|
+
return [2, __decorateServiceException(exception, body)];
|
|
5139
|
+
});
|
|
5140
|
+
}); };
|
|
5141
|
+
var deserializeAws_queryGlobalClusterNotFoundFaultResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5142
|
+
var body, deserialized, exception;
|
|
5143
|
+
return __generator(this, function (_a) {
|
|
5144
|
+
body = parsedOutput.body;
|
|
5145
|
+
deserialized = deserializeAws_queryGlobalClusterNotFoundFault(body.Error, context);
|
|
5146
|
+
exception = new GlobalClusterNotFoundFault(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
5147
|
+
return [2, __decorateServiceException(exception, body)];
|
|
5148
|
+
});
|
|
5149
|
+
}); };
|
|
5150
|
+
var deserializeAws_queryGlobalClusterQuotaExceededFaultResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5151
|
+
var body, deserialized, exception;
|
|
5152
|
+
return __generator(this, function (_a) {
|
|
5153
|
+
body = parsedOutput.body;
|
|
5154
|
+
deserialized = deserializeAws_queryGlobalClusterQuotaExceededFault(body.Error, context);
|
|
5155
|
+
exception = new GlobalClusterQuotaExceededFault(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
5156
|
+
return [2, __decorateServiceException(exception, body)];
|
|
5157
|
+
});
|
|
5158
|
+
}); };
|
|
4724
5159
|
var deserializeAws_queryInstanceQuotaExceededFaultResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4725
5160
|
var body, deserialized, exception;
|
|
4726
5161
|
return __generator(this, function (_a) {
|
|
@@ -4847,6 +5282,15 @@ var deserializeAws_queryInvalidEventSubscriptionStateFaultResponse = function (p
|
|
|
4847
5282
|
return [2, __decorateServiceException(exception, body)];
|
|
4848
5283
|
});
|
|
4849
5284
|
}); };
|
|
5285
|
+
var deserializeAws_queryInvalidGlobalClusterStateFaultResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5286
|
+
var body, deserialized, exception;
|
|
5287
|
+
return __generator(this, function (_a) {
|
|
5288
|
+
body = parsedOutput.body;
|
|
5289
|
+
deserialized = deserializeAws_queryInvalidGlobalClusterStateFault(body.Error, context);
|
|
5290
|
+
exception = new InvalidGlobalClusterStateFault(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
5291
|
+
return [2, __decorateServiceException(exception, body)];
|
|
5292
|
+
});
|
|
5293
|
+
}); };
|
|
4850
5294
|
var deserializeAws_queryInvalidRestoreFaultResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4851
5295
|
var body, deserialized, exception;
|
|
4852
5296
|
return __generator(this, function (_a) {
|
|
@@ -5341,6 +5785,9 @@ var serializeAws_queryCreateDBClusterMessage = function (input, context) {
|
|
|
5341
5785
|
if (input.DeletionProtection !== undefined && input.DeletionProtection !== null) {
|
|
5342
5786
|
entries["DeletionProtection"] = input.DeletionProtection;
|
|
5343
5787
|
}
|
|
5788
|
+
if (input.GlobalClusterIdentifier !== undefined && input.GlobalClusterIdentifier !== null) {
|
|
5789
|
+
entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier;
|
|
5790
|
+
}
|
|
5344
5791
|
return entries;
|
|
5345
5792
|
};
|
|
5346
5793
|
var serializeAws_queryCreateDBClusterParameterGroupMessage = function (input, context) {
|
|
@@ -5622,6 +6069,28 @@ var serializeAws_queryCreateEventSubscriptionMessage = function (input, context)
|
|
|
5622
6069
|
}
|
|
5623
6070
|
return entries;
|
|
5624
6071
|
};
|
|
6072
|
+
var serializeAws_queryCreateGlobalClusterMessage = function (input, context) {
|
|
6073
|
+
var entries = {};
|
|
6074
|
+
if (input.GlobalClusterIdentifier !== undefined && input.GlobalClusterIdentifier !== null) {
|
|
6075
|
+
entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier;
|
|
6076
|
+
}
|
|
6077
|
+
if (input.SourceDBClusterIdentifier !== undefined && input.SourceDBClusterIdentifier !== null) {
|
|
6078
|
+
entries["SourceDBClusterIdentifier"] = input.SourceDBClusterIdentifier;
|
|
6079
|
+
}
|
|
6080
|
+
if (input.Engine !== undefined && input.Engine !== null) {
|
|
6081
|
+
entries["Engine"] = input.Engine;
|
|
6082
|
+
}
|
|
6083
|
+
if (input.EngineVersion !== undefined && input.EngineVersion !== null) {
|
|
6084
|
+
entries["EngineVersion"] = input.EngineVersion;
|
|
6085
|
+
}
|
|
6086
|
+
if (input.DeletionProtection !== undefined && input.DeletionProtection !== null) {
|
|
6087
|
+
entries["DeletionProtection"] = input.DeletionProtection;
|
|
6088
|
+
}
|
|
6089
|
+
if (input.StorageEncrypted !== undefined && input.StorageEncrypted !== null) {
|
|
6090
|
+
entries["StorageEncrypted"] = input.StorageEncrypted;
|
|
6091
|
+
}
|
|
6092
|
+
return entries;
|
|
6093
|
+
};
|
|
5625
6094
|
var serializeAws_queryDBSecurityGroupNameList = function (input, context) {
|
|
5626
6095
|
var e_3, _a;
|
|
5627
6096
|
var entries = {};
|
|
@@ -5713,6 +6182,13 @@ var serializeAws_queryDeleteEventSubscriptionMessage = function (input, context)
|
|
|
5713
6182
|
}
|
|
5714
6183
|
return entries;
|
|
5715
6184
|
};
|
|
6185
|
+
var serializeAws_queryDeleteGlobalClusterMessage = function (input, context) {
|
|
6186
|
+
var entries = {};
|
|
6187
|
+
if (input.GlobalClusterIdentifier !== undefined && input.GlobalClusterIdentifier !== null) {
|
|
6188
|
+
entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier;
|
|
6189
|
+
}
|
|
6190
|
+
return entries;
|
|
6191
|
+
};
|
|
5716
6192
|
var serializeAws_queryDescribeDBClusterEndpointsMessage = function (input, context) {
|
|
5717
6193
|
var entries = {};
|
|
5718
6194
|
if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
|
|
@@ -6085,6 +6561,19 @@ var serializeAws_queryDescribeEventSubscriptionsMessage = function (input, conte
|
|
|
6085
6561
|
}
|
|
6086
6562
|
return entries;
|
|
6087
6563
|
};
|
|
6564
|
+
var serializeAws_queryDescribeGlobalClustersMessage = function (input, context) {
|
|
6565
|
+
var entries = {};
|
|
6566
|
+
if (input.GlobalClusterIdentifier !== undefined && input.GlobalClusterIdentifier !== null) {
|
|
6567
|
+
entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier;
|
|
6568
|
+
}
|
|
6569
|
+
if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
|
|
6570
|
+
entries["MaxRecords"] = input.MaxRecords;
|
|
6571
|
+
}
|
|
6572
|
+
if (input.Marker !== undefined && input.Marker !== null) {
|
|
6573
|
+
entries["Marker"] = input.Marker;
|
|
6574
|
+
}
|
|
6575
|
+
return entries;
|
|
6576
|
+
};
|
|
6088
6577
|
var serializeAws_queryDescribeOrderableDBInstanceOptionsMessage = function (input, context) {
|
|
6089
6578
|
var entries = {};
|
|
6090
6579
|
if (input.Engine !== undefined && input.Engine !== null) {
|
|
@@ -6179,6 +6668,16 @@ var serializeAws_queryFailoverDBClusterMessage = function (input, context) {
|
|
|
6179
6668
|
}
|
|
6180
6669
|
return entries;
|
|
6181
6670
|
};
|
|
6671
|
+
var serializeAws_queryFailoverGlobalClusterMessage = function (input, context) {
|
|
6672
|
+
var entries = {};
|
|
6673
|
+
if (input.GlobalClusterIdentifier !== undefined && input.GlobalClusterIdentifier !== null) {
|
|
6674
|
+
entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier;
|
|
6675
|
+
}
|
|
6676
|
+
if (input.TargetDbClusterIdentifier !== undefined && input.TargetDbClusterIdentifier !== null) {
|
|
6677
|
+
entries["TargetDbClusterIdentifier"] = input.TargetDbClusterIdentifier;
|
|
6678
|
+
}
|
|
6679
|
+
return entries;
|
|
6680
|
+
};
|
|
6182
6681
|
var serializeAws_queryFilter = function (input, context) {
|
|
6183
6682
|
var entries = {};
|
|
6184
6683
|
if (input.Name !== undefined && input.Name !== null) {
|
|
@@ -6627,6 +7126,25 @@ var serializeAws_queryModifyEventSubscriptionMessage = function (input, context)
|
|
|
6627
7126
|
}
|
|
6628
7127
|
return entries;
|
|
6629
7128
|
};
|
|
7129
|
+
var serializeAws_queryModifyGlobalClusterMessage = function (input, context) {
|
|
7130
|
+
var entries = {};
|
|
7131
|
+
if (input.GlobalClusterIdentifier !== undefined && input.GlobalClusterIdentifier !== null) {
|
|
7132
|
+
entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier;
|
|
7133
|
+
}
|
|
7134
|
+
if (input.NewGlobalClusterIdentifier !== undefined && input.NewGlobalClusterIdentifier !== null) {
|
|
7135
|
+
entries["NewGlobalClusterIdentifier"] = input.NewGlobalClusterIdentifier;
|
|
7136
|
+
}
|
|
7137
|
+
if (input.DeletionProtection !== undefined && input.DeletionProtection !== null) {
|
|
7138
|
+
entries["DeletionProtection"] = input.DeletionProtection;
|
|
7139
|
+
}
|
|
7140
|
+
if (input.EngineVersion !== undefined && input.EngineVersion !== null) {
|
|
7141
|
+
entries["EngineVersion"] = input.EngineVersion;
|
|
7142
|
+
}
|
|
7143
|
+
if (input.AllowMajorVersionUpgrade !== undefined && input.AllowMajorVersionUpgrade !== null) {
|
|
7144
|
+
entries["AllowMajorVersionUpgrade"] = input.AllowMajorVersionUpgrade;
|
|
7145
|
+
}
|
|
7146
|
+
return entries;
|
|
7147
|
+
};
|
|
6630
7148
|
var serializeAws_queryParameter = function (input, context) {
|
|
6631
7149
|
var entries = {};
|
|
6632
7150
|
if (input.ParameterName !== undefined && input.ParameterName !== null) {
|
|
@@ -6705,6 +7223,16 @@ var serializeAws_queryRebootDBInstanceMessage = function (input, context) {
|
|
|
6705
7223
|
}
|
|
6706
7224
|
return entries;
|
|
6707
7225
|
};
|
|
7226
|
+
var serializeAws_queryRemoveFromGlobalClusterMessage = function (input, context) {
|
|
7227
|
+
var entries = {};
|
|
7228
|
+
if (input.GlobalClusterIdentifier !== undefined && input.GlobalClusterIdentifier !== null) {
|
|
7229
|
+
entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier;
|
|
7230
|
+
}
|
|
7231
|
+
if (input.DbClusterIdentifier !== undefined && input.DbClusterIdentifier !== null) {
|
|
7232
|
+
entries["DbClusterIdentifier"] = input.DbClusterIdentifier;
|
|
7233
|
+
}
|
|
7234
|
+
return entries;
|
|
7235
|
+
};
|
|
6708
7236
|
var serializeAws_queryRemoveRoleFromDBClusterMessage = function (input, context) {
|
|
6709
7237
|
var entries = {};
|
|
6710
7238
|
if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
|
|
@@ -7213,13 +7741,13 @@ var deserializeAws_queryCreateDBClusterEndpointOutput = function (output, contex
|
|
|
7213
7741
|
if (output.StaticMembers === "") {
|
|
7214
7742
|
contents.StaticMembers = [];
|
|
7215
7743
|
}
|
|
7216
|
-
if (output["StaticMembers"] !== undefined && output["StaticMembers"]["member"] !== undefined) {
|
|
7744
|
+
else if (output["StaticMembers"] !== undefined && output["StaticMembers"]["member"] !== undefined) {
|
|
7217
7745
|
contents.StaticMembers = deserializeAws_queryStringList(__getArrayIfSingleItem(output["StaticMembers"]["member"]), context);
|
|
7218
7746
|
}
|
|
7219
7747
|
if (output.ExcludedMembers === "") {
|
|
7220
7748
|
contents.ExcludedMembers = [];
|
|
7221
7749
|
}
|
|
7222
|
-
if (output["ExcludedMembers"] !== undefined && output["ExcludedMembers"]["member"] !== undefined) {
|
|
7750
|
+
else if (output["ExcludedMembers"] !== undefined && output["ExcludedMembers"]["member"] !== undefined) {
|
|
7223
7751
|
contents.ExcludedMembers = deserializeAws_queryStringList(__getArrayIfSingleItem(output["ExcludedMembers"]["member"]), context);
|
|
7224
7752
|
}
|
|
7225
7753
|
if (output["DBClusterEndpointArn"] !== undefined) {
|
|
@@ -7290,6 +7818,15 @@ var deserializeAws_queryCreateEventSubscriptionResult = function (output, contex
|
|
|
7290
7818
|
}
|
|
7291
7819
|
return contents;
|
|
7292
7820
|
};
|
|
7821
|
+
var deserializeAws_queryCreateGlobalClusterResult = function (output, context) {
|
|
7822
|
+
var contents = {
|
|
7823
|
+
GlobalCluster: undefined,
|
|
7824
|
+
};
|
|
7825
|
+
if (output["GlobalCluster"] !== undefined) {
|
|
7826
|
+
contents.GlobalCluster = deserializeAws_queryGlobalCluster(output["GlobalCluster"], context);
|
|
7827
|
+
}
|
|
7828
|
+
return contents;
|
|
7829
|
+
};
|
|
7293
7830
|
var deserializeAws_queryDBCluster = function (output, context) {
|
|
7294
7831
|
var contents = {
|
|
7295
7832
|
AllocatedStorage: undefined,
|
|
@@ -7339,7 +7876,8 @@ var deserializeAws_queryDBCluster = function (output, context) {
|
|
|
7339
7876
|
if (output.AvailabilityZones === "") {
|
|
7340
7877
|
contents.AvailabilityZones = [];
|
|
7341
7878
|
}
|
|
7342
|
-
if (output["AvailabilityZones"] !== undefined &&
|
|
7879
|
+
else if (output["AvailabilityZones"] !== undefined &&
|
|
7880
|
+
output["AvailabilityZones"]["AvailabilityZone"] !== undefined) {
|
|
7343
7881
|
contents.AvailabilityZones = deserializeAws_queryAvailabilityZones(__getArrayIfSingleItem(output["AvailabilityZones"]["AvailabilityZone"]), context);
|
|
7344
7882
|
}
|
|
7345
7883
|
if (output["BackupRetentionPeriod"] !== undefined) {
|
|
@@ -7396,7 +7934,7 @@ var deserializeAws_queryDBCluster = function (output, context) {
|
|
|
7396
7934
|
if (output.DBClusterOptionGroupMemberships === "") {
|
|
7397
7935
|
contents.DBClusterOptionGroupMemberships = [];
|
|
7398
7936
|
}
|
|
7399
|
-
if (output["DBClusterOptionGroupMemberships"] !== undefined &&
|
|
7937
|
+
else if (output["DBClusterOptionGroupMemberships"] !== undefined &&
|
|
7400
7938
|
output["DBClusterOptionGroupMemberships"]["DBClusterOptionGroup"] !== undefined) {
|
|
7401
7939
|
contents.DBClusterOptionGroupMemberships = deserializeAws_queryDBClusterOptionGroupMemberships(__getArrayIfSingleItem(output["DBClusterOptionGroupMemberships"]["DBClusterOptionGroup"]), context);
|
|
7402
7940
|
}
|
|
@@ -7412,20 +7950,20 @@ var deserializeAws_queryDBCluster = function (output, context) {
|
|
|
7412
7950
|
if (output.ReadReplicaIdentifiers === "") {
|
|
7413
7951
|
contents.ReadReplicaIdentifiers = [];
|
|
7414
7952
|
}
|
|
7415
|
-
if (output["ReadReplicaIdentifiers"] !== undefined &&
|
|
7953
|
+
else if (output["ReadReplicaIdentifiers"] !== undefined &&
|
|
7416
7954
|
output["ReadReplicaIdentifiers"]["ReadReplicaIdentifier"] !== undefined) {
|
|
7417
7955
|
contents.ReadReplicaIdentifiers = deserializeAws_queryReadReplicaIdentifierList(__getArrayIfSingleItem(output["ReadReplicaIdentifiers"]["ReadReplicaIdentifier"]), context);
|
|
7418
7956
|
}
|
|
7419
7957
|
if (output.DBClusterMembers === "") {
|
|
7420
7958
|
contents.DBClusterMembers = [];
|
|
7421
7959
|
}
|
|
7422
|
-
if (output["DBClusterMembers"] !== undefined && output["DBClusterMembers"]["DBClusterMember"] !== undefined) {
|
|
7960
|
+
else if (output["DBClusterMembers"] !== undefined && output["DBClusterMembers"]["DBClusterMember"] !== undefined) {
|
|
7423
7961
|
contents.DBClusterMembers = deserializeAws_queryDBClusterMemberList(__getArrayIfSingleItem(output["DBClusterMembers"]["DBClusterMember"]), context);
|
|
7424
7962
|
}
|
|
7425
7963
|
if (output.VpcSecurityGroups === "") {
|
|
7426
7964
|
contents.VpcSecurityGroups = [];
|
|
7427
7965
|
}
|
|
7428
|
-
if (output["VpcSecurityGroups"] !== undefined &&
|
|
7966
|
+
else if (output["VpcSecurityGroups"] !== undefined &&
|
|
7429
7967
|
output["VpcSecurityGroups"]["VpcSecurityGroupMembership"] !== undefined) {
|
|
7430
7968
|
contents.VpcSecurityGroups = deserializeAws_queryVpcSecurityGroupMembershipList(__getArrayIfSingleItem(output["VpcSecurityGroups"]["VpcSecurityGroupMembership"]), context);
|
|
7431
7969
|
}
|
|
@@ -7447,7 +7985,7 @@ var deserializeAws_queryDBCluster = function (output, context) {
|
|
|
7447
7985
|
if (output.AssociatedRoles === "") {
|
|
7448
7986
|
contents.AssociatedRoles = [];
|
|
7449
7987
|
}
|
|
7450
|
-
if (output["AssociatedRoles"] !== undefined && output["AssociatedRoles"]["DBClusterRole"] !== undefined) {
|
|
7988
|
+
else if (output["AssociatedRoles"] !== undefined && output["AssociatedRoles"]["DBClusterRole"] !== undefined) {
|
|
7451
7989
|
contents.AssociatedRoles = deserializeAws_queryDBClusterRoles(__getArrayIfSingleItem(output["AssociatedRoles"]["DBClusterRole"]), context);
|
|
7452
7990
|
}
|
|
7453
7991
|
if (output["IAMDatabaseAuthenticationEnabled"] !== undefined) {
|
|
@@ -7465,7 +8003,7 @@ var deserializeAws_queryDBCluster = function (output, context) {
|
|
|
7465
8003
|
if (output.EnabledCloudwatchLogsExports === "") {
|
|
7466
8004
|
contents.EnabledCloudwatchLogsExports = [];
|
|
7467
8005
|
}
|
|
7468
|
-
if (output["EnabledCloudwatchLogsExports"] !== undefined &&
|
|
8006
|
+
else if (output["EnabledCloudwatchLogsExports"] !== undefined &&
|
|
7469
8007
|
output["EnabledCloudwatchLogsExports"]["member"] !== undefined) {
|
|
7470
8008
|
contents.EnabledCloudwatchLogsExports = deserializeAws_queryLogTypeList(__getArrayIfSingleItem(output["EnabledCloudwatchLogsExports"]["member"]), context);
|
|
7471
8009
|
}
|
|
@@ -7526,13 +8064,13 @@ var deserializeAws_queryDBClusterEndpoint = function (output, context) {
|
|
|
7526
8064
|
if (output.StaticMembers === "") {
|
|
7527
8065
|
contents.StaticMembers = [];
|
|
7528
8066
|
}
|
|
7529
|
-
if (output["StaticMembers"] !== undefined && output["StaticMembers"]["member"] !== undefined) {
|
|
8067
|
+
else if (output["StaticMembers"] !== undefined && output["StaticMembers"]["member"] !== undefined) {
|
|
7530
8068
|
contents.StaticMembers = deserializeAws_queryStringList(__getArrayIfSingleItem(output["StaticMembers"]["member"]), context);
|
|
7531
8069
|
}
|
|
7532
8070
|
if (output.ExcludedMembers === "") {
|
|
7533
8071
|
contents.ExcludedMembers = [];
|
|
7534
8072
|
}
|
|
7535
|
-
if (output["ExcludedMembers"] !== undefined && output["ExcludedMembers"]["member"] !== undefined) {
|
|
8073
|
+
else if (output["ExcludedMembers"] !== undefined && output["ExcludedMembers"]["member"] !== undefined) {
|
|
7536
8074
|
contents.ExcludedMembers = deserializeAws_queryStringList(__getArrayIfSingleItem(output["ExcludedMembers"]["member"]), context);
|
|
7537
8075
|
}
|
|
7538
8076
|
if (output["DBClusterEndpointArn"] !== undefined) {
|
|
@@ -7570,7 +8108,7 @@ var deserializeAws_queryDBClusterEndpointMessage = function (output, context) {
|
|
|
7570
8108
|
if (output.DBClusterEndpoints === "") {
|
|
7571
8109
|
contents.DBClusterEndpoints = [];
|
|
7572
8110
|
}
|
|
7573
|
-
if (output["DBClusterEndpoints"] !== undefined &&
|
|
8111
|
+
else if (output["DBClusterEndpoints"] !== undefined &&
|
|
7574
8112
|
output["DBClusterEndpoints"]["DBClusterEndpointList"] !== undefined) {
|
|
7575
8113
|
contents.DBClusterEndpoints = deserializeAws_queryDBClusterEndpointList(__getArrayIfSingleItem(output["DBClusterEndpoints"]["DBClusterEndpointList"]), context);
|
|
7576
8114
|
}
|
|
@@ -7646,7 +8184,7 @@ var deserializeAws_queryDBClusterMessage = function (output, context) {
|
|
|
7646
8184
|
if (output.DBClusters === "") {
|
|
7647
8185
|
contents.DBClusters = [];
|
|
7648
8186
|
}
|
|
7649
|
-
if (output["DBClusters"] !== undefined && output["DBClusters"]["DBCluster"] !== undefined) {
|
|
8187
|
+
else if (output["DBClusters"] !== undefined && output["DBClusters"]["DBCluster"] !== undefined) {
|
|
7650
8188
|
contents.DBClusters = deserializeAws_queryDBClusterList(__getArrayIfSingleItem(output["DBClusters"]["DBCluster"]), context);
|
|
7651
8189
|
}
|
|
7652
8190
|
return contents;
|
|
@@ -7712,7 +8250,7 @@ var deserializeAws_queryDBClusterParameterGroupDetails = function (output, conte
|
|
|
7712
8250
|
if (output.Parameters === "") {
|
|
7713
8251
|
contents.Parameters = [];
|
|
7714
8252
|
}
|
|
7715
|
-
if (output["Parameters"] !== undefined && output["Parameters"]["Parameter"] !== undefined) {
|
|
8253
|
+
else if (output["Parameters"] !== undefined && output["Parameters"]["Parameter"] !== undefined) {
|
|
7716
8254
|
contents.Parameters = deserializeAws_queryParametersList(__getArrayIfSingleItem(output["Parameters"]["Parameter"]), context);
|
|
7717
8255
|
}
|
|
7718
8256
|
if (output["Marker"] !== undefined) {
|
|
@@ -7759,7 +8297,7 @@ var deserializeAws_queryDBClusterParameterGroupsMessage = function (output, cont
|
|
|
7759
8297
|
if (output.DBClusterParameterGroups === "") {
|
|
7760
8298
|
contents.DBClusterParameterGroups = [];
|
|
7761
8299
|
}
|
|
7762
|
-
if (output["DBClusterParameterGroups"] !== undefined &&
|
|
8300
|
+
else if (output["DBClusterParameterGroups"] !== undefined &&
|
|
7763
8301
|
output["DBClusterParameterGroups"]["DBClusterParameterGroup"] !== undefined) {
|
|
7764
8302
|
contents.DBClusterParameterGroups = deserializeAws_queryDBClusterParameterGroupList(__getArrayIfSingleItem(output["DBClusterParameterGroups"]["DBClusterParameterGroup"]), context);
|
|
7765
8303
|
}
|
|
@@ -7854,7 +8392,8 @@ var deserializeAws_queryDBClusterSnapshot = function (output, context) {
|
|
|
7854
8392
|
if (output.AvailabilityZones === "") {
|
|
7855
8393
|
contents.AvailabilityZones = [];
|
|
7856
8394
|
}
|
|
7857
|
-
if (output["AvailabilityZones"] !== undefined &&
|
|
8395
|
+
else if (output["AvailabilityZones"] !== undefined &&
|
|
8396
|
+
output["AvailabilityZones"]["AvailabilityZone"] !== undefined) {
|
|
7858
8397
|
contents.AvailabilityZones = deserializeAws_queryAvailabilityZones(__getArrayIfSingleItem(output["AvailabilityZones"]["AvailabilityZone"]), context);
|
|
7859
8398
|
}
|
|
7860
8399
|
if (output["DBClusterSnapshotIdentifier"] !== undefined) {
|
|
@@ -7936,7 +8475,7 @@ var deserializeAws_queryDBClusterSnapshotAttribute = function (output, context)
|
|
|
7936
8475
|
if (output.AttributeValues === "") {
|
|
7937
8476
|
contents.AttributeValues = [];
|
|
7938
8477
|
}
|
|
7939
|
-
if (output["AttributeValues"] !== undefined && output["AttributeValues"]["AttributeValue"] !== undefined) {
|
|
8478
|
+
else if (output["AttributeValues"] !== undefined && output["AttributeValues"]["AttributeValue"] !== undefined) {
|
|
7940
8479
|
contents.AttributeValues = deserializeAws_queryAttributeValueList(__getArrayIfSingleItem(output["AttributeValues"]["AttributeValue"]), context);
|
|
7941
8480
|
}
|
|
7942
8481
|
return contents;
|
|
@@ -7962,7 +8501,7 @@ var deserializeAws_queryDBClusterSnapshotAttributesResult = function (output, co
|
|
|
7962
8501
|
if (output.DBClusterSnapshotAttributes === "") {
|
|
7963
8502
|
contents.DBClusterSnapshotAttributes = [];
|
|
7964
8503
|
}
|
|
7965
|
-
if (output["DBClusterSnapshotAttributes"] !== undefined &&
|
|
8504
|
+
else if (output["DBClusterSnapshotAttributes"] !== undefined &&
|
|
7966
8505
|
output["DBClusterSnapshotAttributes"]["DBClusterSnapshotAttribute"] !== undefined) {
|
|
7967
8506
|
contents.DBClusterSnapshotAttributes = deserializeAws_queryDBClusterSnapshotAttributeList(__getArrayIfSingleItem(output["DBClusterSnapshotAttributes"]["DBClusterSnapshotAttribute"]), context);
|
|
7968
8507
|
}
|
|
@@ -7989,7 +8528,8 @@ var deserializeAws_queryDBClusterSnapshotMessage = function (output, context) {
|
|
|
7989
8528
|
if (output.DBClusterSnapshots === "") {
|
|
7990
8529
|
contents.DBClusterSnapshots = [];
|
|
7991
8530
|
}
|
|
7992
|
-
if (output["DBClusterSnapshots"] !== undefined &&
|
|
8531
|
+
else if (output["DBClusterSnapshots"] !== undefined &&
|
|
8532
|
+
output["DBClusterSnapshots"]["DBClusterSnapshot"] !== undefined) {
|
|
7993
8533
|
contents.DBClusterSnapshots = deserializeAws_queryDBClusterSnapshotList(__getArrayIfSingleItem(output["DBClusterSnapshots"]["DBClusterSnapshot"]), context);
|
|
7994
8534
|
}
|
|
7995
8535
|
return contents;
|
|
@@ -8017,6 +8557,7 @@ var deserializeAws_queryDBEngineVersion = function (output, context) {
|
|
|
8017
8557
|
ExportableLogTypes: undefined,
|
|
8018
8558
|
SupportsLogExportsToCloudwatchLogs: undefined,
|
|
8019
8559
|
SupportsReadReplica: undefined,
|
|
8560
|
+
SupportsGlobalDatabases: undefined,
|
|
8020
8561
|
};
|
|
8021
8562
|
if (output["Engine"] !== undefined) {
|
|
8022
8563
|
contents.Engine = __expectString(output["Engine"]);
|
|
@@ -8039,26 +8580,27 @@ var deserializeAws_queryDBEngineVersion = function (output, context) {
|
|
|
8039
8580
|
if (output.SupportedCharacterSets === "") {
|
|
8040
8581
|
contents.SupportedCharacterSets = [];
|
|
8041
8582
|
}
|
|
8042
|
-
if (output["SupportedCharacterSets"] !== undefined &&
|
|
8583
|
+
else if (output["SupportedCharacterSets"] !== undefined &&
|
|
8043
8584
|
output["SupportedCharacterSets"]["CharacterSet"] !== undefined) {
|
|
8044
8585
|
contents.SupportedCharacterSets = deserializeAws_querySupportedCharacterSetsList(__getArrayIfSingleItem(output["SupportedCharacterSets"]["CharacterSet"]), context);
|
|
8045
8586
|
}
|
|
8046
8587
|
if (output.ValidUpgradeTarget === "") {
|
|
8047
8588
|
contents.ValidUpgradeTarget = [];
|
|
8048
8589
|
}
|
|
8049
|
-
if (output["ValidUpgradeTarget"] !== undefined &&
|
|
8590
|
+
else if (output["ValidUpgradeTarget"] !== undefined &&
|
|
8591
|
+
output["ValidUpgradeTarget"]["UpgradeTarget"] !== undefined) {
|
|
8050
8592
|
contents.ValidUpgradeTarget = deserializeAws_queryValidUpgradeTargetList(__getArrayIfSingleItem(output["ValidUpgradeTarget"]["UpgradeTarget"]), context);
|
|
8051
8593
|
}
|
|
8052
8594
|
if (output.SupportedTimezones === "") {
|
|
8053
8595
|
contents.SupportedTimezones = [];
|
|
8054
8596
|
}
|
|
8055
|
-
if (output["SupportedTimezones"] !== undefined && output["SupportedTimezones"]["Timezone"] !== undefined) {
|
|
8597
|
+
else if (output["SupportedTimezones"] !== undefined && output["SupportedTimezones"]["Timezone"] !== undefined) {
|
|
8056
8598
|
contents.SupportedTimezones = deserializeAws_querySupportedTimezonesList(__getArrayIfSingleItem(output["SupportedTimezones"]["Timezone"]), context);
|
|
8057
8599
|
}
|
|
8058
8600
|
if (output.ExportableLogTypes === "") {
|
|
8059
8601
|
contents.ExportableLogTypes = [];
|
|
8060
8602
|
}
|
|
8061
|
-
if (output["ExportableLogTypes"] !== undefined && output["ExportableLogTypes"]["member"] !== undefined) {
|
|
8603
|
+
else if (output["ExportableLogTypes"] !== undefined && output["ExportableLogTypes"]["member"] !== undefined) {
|
|
8062
8604
|
contents.ExportableLogTypes = deserializeAws_queryLogTypeList(__getArrayIfSingleItem(output["ExportableLogTypes"]["member"]), context);
|
|
8063
8605
|
}
|
|
8064
8606
|
if (output["SupportsLogExportsToCloudwatchLogs"] !== undefined) {
|
|
@@ -8067,6 +8609,9 @@ var deserializeAws_queryDBEngineVersion = function (output, context) {
|
|
|
8067
8609
|
if (output["SupportsReadReplica"] !== undefined) {
|
|
8068
8610
|
contents.SupportsReadReplica = __parseBoolean(output["SupportsReadReplica"]);
|
|
8069
8611
|
}
|
|
8612
|
+
if (output["SupportsGlobalDatabases"] !== undefined) {
|
|
8613
|
+
contents.SupportsGlobalDatabases = __parseBoolean(output["SupportsGlobalDatabases"]);
|
|
8614
|
+
}
|
|
8070
8615
|
return contents;
|
|
8071
8616
|
};
|
|
8072
8617
|
var deserializeAws_queryDBEngineVersionList = function (output, context) {
|
|
@@ -8090,7 +8635,7 @@ var deserializeAws_queryDBEngineVersionMessage = function (output, context) {
|
|
|
8090
8635
|
if (output.DBEngineVersions === "") {
|
|
8091
8636
|
contents.DBEngineVersions = [];
|
|
8092
8637
|
}
|
|
8093
|
-
if (output["DBEngineVersions"] !== undefined && output["DBEngineVersions"]["DBEngineVersion"] !== undefined) {
|
|
8638
|
+
else if (output["DBEngineVersions"] !== undefined && output["DBEngineVersions"]["DBEngineVersion"] !== undefined) {
|
|
8094
8639
|
contents.DBEngineVersions = deserializeAws_queryDBEngineVersionList(__getArrayIfSingleItem(output["DBEngineVersions"]["DBEngineVersion"]), context);
|
|
8095
8640
|
}
|
|
8096
8641
|
return contents;
|
|
@@ -8187,20 +8732,21 @@ var deserializeAws_queryDBInstance = function (output, context) {
|
|
|
8187
8732
|
if (output.DBSecurityGroups === "") {
|
|
8188
8733
|
contents.DBSecurityGroups = [];
|
|
8189
8734
|
}
|
|
8190
|
-
if (output["DBSecurityGroups"] !== undefined && output["DBSecurityGroups"]["DBSecurityGroup"] !== undefined) {
|
|
8735
|
+
else if (output["DBSecurityGroups"] !== undefined && output["DBSecurityGroups"]["DBSecurityGroup"] !== undefined) {
|
|
8191
8736
|
contents.DBSecurityGroups = deserializeAws_queryDBSecurityGroupMembershipList(__getArrayIfSingleItem(output["DBSecurityGroups"]["DBSecurityGroup"]), context);
|
|
8192
8737
|
}
|
|
8193
8738
|
if (output.VpcSecurityGroups === "") {
|
|
8194
8739
|
contents.VpcSecurityGroups = [];
|
|
8195
8740
|
}
|
|
8196
|
-
if (output["VpcSecurityGroups"] !== undefined &&
|
|
8741
|
+
else if (output["VpcSecurityGroups"] !== undefined &&
|
|
8197
8742
|
output["VpcSecurityGroups"]["VpcSecurityGroupMembership"] !== undefined) {
|
|
8198
8743
|
contents.VpcSecurityGroups = deserializeAws_queryVpcSecurityGroupMembershipList(__getArrayIfSingleItem(output["VpcSecurityGroups"]["VpcSecurityGroupMembership"]), context);
|
|
8199
8744
|
}
|
|
8200
8745
|
if (output.DBParameterGroups === "") {
|
|
8201
8746
|
contents.DBParameterGroups = [];
|
|
8202
8747
|
}
|
|
8203
|
-
if (output["DBParameterGroups"] !== undefined &&
|
|
8748
|
+
else if (output["DBParameterGroups"] !== undefined &&
|
|
8749
|
+
output["DBParameterGroups"]["DBParameterGroup"] !== undefined) {
|
|
8204
8750
|
contents.DBParameterGroups = deserializeAws_queryDBParameterGroupStatusList(__getArrayIfSingleItem(output["DBParameterGroups"]["DBParameterGroup"]), context);
|
|
8205
8751
|
}
|
|
8206
8752
|
if (output["AvailabilityZone"] !== undefined) {
|
|
@@ -8233,14 +8779,14 @@ var deserializeAws_queryDBInstance = function (output, context) {
|
|
|
8233
8779
|
if (output.ReadReplicaDBInstanceIdentifiers === "") {
|
|
8234
8780
|
contents.ReadReplicaDBInstanceIdentifiers = [];
|
|
8235
8781
|
}
|
|
8236
|
-
if (output["ReadReplicaDBInstanceIdentifiers"] !== undefined &&
|
|
8782
|
+
else if (output["ReadReplicaDBInstanceIdentifiers"] !== undefined &&
|
|
8237
8783
|
output["ReadReplicaDBInstanceIdentifiers"]["ReadReplicaDBInstanceIdentifier"] !== undefined) {
|
|
8238
8784
|
contents.ReadReplicaDBInstanceIdentifiers = deserializeAws_queryReadReplicaDBInstanceIdentifierList(__getArrayIfSingleItem(output["ReadReplicaDBInstanceIdentifiers"]["ReadReplicaDBInstanceIdentifier"]), context);
|
|
8239
8785
|
}
|
|
8240
8786
|
if (output.ReadReplicaDBClusterIdentifiers === "") {
|
|
8241
8787
|
contents.ReadReplicaDBClusterIdentifiers = [];
|
|
8242
8788
|
}
|
|
8243
|
-
if (output["ReadReplicaDBClusterIdentifiers"] !== undefined &&
|
|
8789
|
+
else if (output["ReadReplicaDBClusterIdentifiers"] !== undefined &&
|
|
8244
8790
|
output["ReadReplicaDBClusterIdentifiers"]["ReadReplicaDBClusterIdentifier"] !== undefined) {
|
|
8245
8791
|
contents.ReadReplicaDBClusterIdentifiers = deserializeAws_queryReadReplicaDBClusterIdentifierList(__getArrayIfSingleItem(output["ReadReplicaDBClusterIdentifiers"]["ReadReplicaDBClusterIdentifier"]), context);
|
|
8246
8792
|
}
|
|
@@ -8253,7 +8799,7 @@ var deserializeAws_queryDBInstance = function (output, context) {
|
|
|
8253
8799
|
if (output.OptionGroupMemberships === "") {
|
|
8254
8800
|
contents.OptionGroupMemberships = [];
|
|
8255
8801
|
}
|
|
8256
|
-
if (output["OptionGroupMemberships"] !== undefined &&
|
|
8802
|
+
else if (output["OptionGroupMemberships"] !== undefined &&
|
|
8257
8803
|
output["OptionGroupMemberships"]["OptionGroupMembership"] !== undefined) {
|
|
8258
8804
|
contents.OptionGroupMemberships = deserializeAws_queryOptionGroupMembershipList(__getArrayIfSingleItem(output["OptionGroupMemberships"]["OptionGroupMembership"]), context);
|
|
8259
8805
|
}
|
|
@@ -8269,7 +8815,7 @@ var deserializeAws_queryDBInstance = function (output, context) {
|
|
|
8269
8815
|
if (output.StatusInfos === "") {
|
|
8270
8816
|
contents.StatusInfos = [];
|
|
8271
8817
|
}
|
|
8272
|
-
if (output["StatusInfos"] !== undefined && output["StatusInfos"]["DBInstanceStatusInfo"] !== undefined) {
|
|
8818
|
+
else if (output["StatusInfos"] !== undefined && output["StatusInfos"]["DBInstanceStatusInfo"] !== undefined) {
|
|
8273
8819
|
contents.StatusInfos = deserializeAws_queryDBInstanceStatusInfoList(__getArrayIfSingleItem(output["StatusInfos"]["DBInstanceStatusInfo"]), context);
|
|
8274
8820
|
}
|
|
8275
8821
|
if (output["StorageType"] !== undefined) {
|
|
@@ -8299,7 +8845,8 @@ var deserializeAws_queryDBInstance = function (output, context) {
|
|
|
8299
8845
|
if (output.DomainMemberships === "") {
|
|
8300
8846
|
contents.DomainMemberships = [];
|
|
8301
8847
|
}
|
|
8302
|
-
if (output["DomainMemberships"] !== undefined &&
|
|
8848
|
+
else if (output["DomainMemberships"] !== undefined &&
|
|
8849
|
+
output["DomainMemberships"]["DomainMembership"] !== undefined) {
|
|
8303
8850
|
contents.DomainMemberships = deserializeAws_queryDomainMembershipList(__getArrayIfSingleItem(output["DomainMemberships"]["DomainMembership"]), context);
|
|
8304
8851
|
}
|
|
8305
8852
|
if (output["CopyTagsToSnapshot"] !== undefined) {
|
|
@@ -8335,7 +8882,7 @@ var deserializeAws_queryDBInstance = function (output, context) {
|
|
|
8335
8882
|
if (output.EnabledCloudwatchLogsExports === "") {
|
|
8336
8883
|
contents.EnabledCloudwatchLogsExports = [];
|
|
8337
8884
|
}
|
|
8338
|
-
if (output["EnabledCloudwatchLogsExports"] !== undefined &&
|
|
8885
|
+
else if (output["EnabledCloudwatchLogsExports"] !== undefined &&
|
|
8339
8886
|
output["EnabledCloudwatchLogsExports"]["member"] !== undefined) {
|
|
8340
8887
|
contents.EnabledCloudwatchLogsExports = deserializeAws_queryLogTypeList(__getArrayIfSingleItem(output["EnabledCloudwatchLogsExports"]["member"]), context);
|
|
8341
8888
|
}
|
|
@@ -8374,7 +8921,7 @@ var deserializeAws_queryDBInstanceMessage = function (output, context) {
|
|
|
8374
8921
|
if (output.DBInstances === "") {
|
|
8375
8922
|
contents.DBInstances = [];
|
|
8376
8923
|
}
|
|
8377
|
-
if (output["DBInstances"] !== undefined && output["DBInstances"]["DBInstance"] !== undefined) {
|
|
8924
|
+
else if (output["DBInstances"] !== undefined && output["DBInstances"]["DBInstance"] !== undefined) {
|
|
8378
8925
|
contents.DBInstances = deserializeAws_queryDBInstanceList(__getArrayIfSingleItem(output["DBInstances"]["DBInstance"]), context);
|
|
8379
8926
|
}
|
|
8380
8927
|
return contents;
|
|
@@ -8457,7 +9004,7 @@ var deserializeAws_queryDBParameterGroupDetails = function (output, context) {
|
|
|
8457
9004
|
if (output.Parameters === "") {
|
|
8458
9005
|
contents.Parameters = [];
|
|
8459
9006
|
}
|
|
8460
|
-
if (output["Parameters"] !== undefined && output["Parameters"]["Parameter"] !== undefined) {
|
|
9007
|
+
else if (output["Parameters"] !== undefined && output["Parameters"]["Parameter"] !== undefined) {
|
|
8461
9008
|
contents.Parameters = deserializeAws_queryParametersList(__getArrayIfSingleItem(output["Parameters"]["Parameter"]), context);
|
|
8462
9009
|
}
|
|
8463
9010
|
if (output["Marker"] !== undefined) {
|
|
@@ -8513,7 +9060,8 @@ var deserializeAws_queryDBParameterGroupsMessage = function (output, context) {
|
|
|
8513
9060
|
if (output.DBParameterGroups === "") {
|
|
8514
9061
|
contents.DBParameterGroups = [];
|
|
8515
9062
|
}
|
|
8516
|
-
if (output["DBParameterGroups"] !== undefined &&
|
|
9063
|
+
else if (output["DBParameterGroups"] !== undefined &&
|
|
9064
|
+
output["DBParameterGroups"]["DBParameterGroup"] !== undefined) {
|
|
8517
9065
|
contents.DBParameterGroups = deserializeAws_queryDBParameterGroupList(__getArrayIfSingleItem(output["DBParameterGroups"]["DBParameterGroup"]), context);
|
|
8518
9066
|
}
|
|
8519
9067
|
return contents;
|
|
@@ -8615,7 +9163,7 @@ var deserializeAws_queryDBSubnetGroup = function (output, context) {
|
|
|
8615
9163
|
if (output.Subnets === "") {
|
|
8616
9164
|
contents.Subnets = [];
|
|
8617
9165
|
}
|
|
8618
|
-
if (output["Subnets"] !== undefined && output["Subnets"]["Subnet"] !== undefined) {
|
|
9166
|
+
else if (output["Subnets"] !== undefined && output["Subnets"]["Subnet"] !== undefined) {
|
|
8619
9167
|
contents.Subnets = deserializeAws_querySubnetList(__getArrayIfSingleItem(output["Subnets"]["Subnet"]), context);
|
|
8620
9168
|
}
|
|
8621
9169
|
if (output["DBSubnetGroupArn"] !== undefined) {
|
|
@@ -8652,7 +9200,7 @@ var deserializeAws_queryDBSubnetGroupMessage = function (output, context) {
|
|
|
8652
9200
|
if (output.DBSubnetGroups === "") {
|
|
8653
9201
|
contents.DBSubnetGroups = [];
|
|
8654
9202
|
}
|
|
8655
|
-
if (output["DBSubnetGroups"] !== undefined && output["DBSubnetGroups"]["DBSubnetGroup"] !== undefined) {
|
|
9203
|
+
else if (output["DBSubnetGroups"] !== undefined && output["DBSubnetGroups"]["DBSubnetGroup"] !== undefined) {
|
|
8656
9204
|
contents.DBSubnetGroups = deserializeAws_queryDBSubnetGroups(__getArrayIfSingleItem(output["DBSubnetGroups"]["DBSubnetGroup"]), context);
|
|
8657
9205
|
}
|
|
8658
9206
|
return contents;
|
|
@@ -8740,13 +9288,13 @@ var deserializeAws_queryDeleteDBClusterEndpointOutput = function (output, contex
|
|
|
8740
9288
|
if (output.StaticMembers === "") {
|
|
8741
9289
|
contents.StaticMembers = [];
|
|
8742
9290
|
}
|
|
8743
|
-
if (output["StaticMembers"] !== undefined && output["StaticMembers"]["member"] !== undefined) {
|
|
9291
|
+
else if (output["StaticMembers"] !== undefined && output["StaticMembers"]["member"] !== undefined) {
|
|
8744
9292
|
contents.StaticMembers = deserializeAws_queryStringList(__getArrayIfSingleItem(output["StaticMembers"]["member"]), context);
|
|
8745
9293
|
}
|
|
8746
9294
|
if (output.ExcludedMembers === "") {
|
|
8747
9295
|
contents.ExcludedMembers = [];
|
|
8748
9296
|
}
|
|
8749
|
-
if (output["ExcludedMembers"] !== undefined && output["ExcludedMembers"]["member"] !== undefined) {
|
|
9297
|
+
else if (output["ExcludedMembers"] !== undefined && output["ExcludedMembers"]["member"] !== undefined) {
|
|
8750
9298
|
contents.ExcludedMembers = deserializeAws_queryStringList(__getArrayIfSingleItem(output["ExcludedMembers"]["member"]), context);
|
|
8751
9299
|
}
|
|
8752
9300
|
if (output["DBClusterEndpointArn"] !== undefined) {
|
|
@@ -8790,6 +9338,15 @@ var deserializeAws_queryDeleteEventSubscriptionResult = function (output, contex
|
|
|
8790
9338
|
}
|
|
8791
9339
|
return contents;
|
|
8792
9340
|
};
|
|
9341
|
+
var deserializeAws_queryDeleteGlobalClusterResult = function (output, context) {
|
|
9342
|
+
var contents = {
|
|
9343
|
+
GlobalCluster: undefined,
|
|
9344
|
+
};
|
|
9345
|
+
if (output["GlobalCluster"] !== undefined) {
|
|
9346
|
+
contents.GlobalCluster = deserializeAws_queryGlobalCluster(output["GlobalCluster"], context);
|
|
9347
|
+
}
|
|
9348
|
+
return contents;
|
|
9349
|
+
};
|
|
8793
9350
|
var deserializeAws_queryDescribeDBClusterSnapshotAttributesResult = function (output, context) {
|
|
8794
9351
|
var contents = {
|
|
8795
9352
|
DBClusterSnapshotAttributesResult: undefined,
|
|
@@ -8921,7 +9478,7 @@ var deserializeAws_queryEngineDefaults = function (output, context) {
|
|
|
8921
9478
|
if (output.Parameters === "") {
|
|
8922
9479
|
contents.Parameters = [];
|
|
8923
9480
|
}
|
|
8924
|
-
if (output["Parameters"] !== undefined && output["Parameters"]["Parameter"] !== undefined) {
|
|
9481
|
+
else if (output["Parameters"] !== undefined && output["Parameters"]["Parameter"] !== undefined) {
|
|
8925
9482
|
contents.Parameters = deserializeAws_queryParametersList(__getArrayIfSingleItem(output["Parameters"]["Parameter"]), context);
|
|
8926
9483
|
}
|
|
8927
9484
|
return contents;
|
|
@@ -8947,7 +9504,7 @@ var deserializeAws_queryEvent = function (output, context) {
|
|
|
8947
9504
|
if (output.EventCategories === "") {
|
|
8948
9505
|
contents.EventCategories = [];
|
|
8949
9506
|
}
|
|
8950
|
-
if (output["EventCategories"] !== undefined && output["EventCategories"]["EventCategory"] !== undefined) {
|
|
9507
|
+
else if (output["EventCategories"] !== undefined && output["EventCategories"]["EventCategory"] !== undefined) {
|
|
8951
9508
|
contents.EventCategories = deserializeAws_queryEventCategoriesList(__getArrayIfSingleItem(output["EventCategories"]["EventCategory"]), context);
|
|
8952
9509
|
}
|
|
8953
9510
|
if (output["Date"] !== undefined) {
|
|
@@ -8979,7 +9536,7 @@ var deserializeAws_queryEventCategoriesMap = function (output, context) {
|
|
|
8979
9536
|
if (output.EventCategories === "") {
|
|
8980
9537
|
contents.EventCategories = [];
|
|
8981
9538
|
}
|
|
8982
|
-
if (output["EventCategories"] !== undefined && output["EventCategories"]["EventCategory"] !== undefined) {
|
|
9539
|
+
else if (output["EventCategories"] !== undefined && output["EventCategories"]["EventCategory"] !== undefined) {
|
|
8983
9540
|
contents.EventCategories = deserializeAws_queryEventCategoriesList(__getArrayIfSingleItem(output["EventCategories"]["EventCategory"]), context);
|
|
8984
9541
|
}
|
|
8985
9542
|
return contents;
|
|
@@ -9001,7 +9558,7 @@ var deserializeAws_queryEventCategoriesMessage = function (output, context) {
|
|
|
9001
9558
|
if (output.EventCategoriesMapList === "") {
|
|
9002
9559
|
contents.EventCategoriesMapList = [];
|
|
9003
9560
|
}
|
|
9004
|
-
if (output["EventCategoriesMapList"] !== undefined &&
|
|
9561
|
+
else if (output["EventCategoriesMapList"] !== undefined &&
|
|
9005
9562
|
output["EventCategoriesMapList"]["EventCategoriesMap"] !== undefined) {
|
|
9006
9563
|
contents.EventCategoriesMapList = deserializeAws_queryEventCategoriesMapList(__getArrayIfSingleItem(output["EventCategoriesMapList"]["EventCategoriesMap"]), context);
|
|
9007
9564
|
}
|
|
@@ -9028,7 +9585,7 @@ var deserializeAws_queryEventsMessage = function (output, context) {
|
|
|
9028
9585
|
if (output.Events === "") {
|
|
9029
9586
|
contents.Events = [];
|
|
9030
9587
|
}
|
|
9031
|
-
if (output["Events"] !== undefined && output["Events"]["Event"] !== undefined) {
|
|
9588
|
+
else if (output["Events"] !== undefined && output["Events"]["Event"] !== undefined) {
|
|
9032
9589
|
contents.Events = deserializeAws_queryEventList(__getArrayIfSingleItem(output["Events"]["Event"]), context);
|
|
9033
9590
|
}
|
|
9034
9591
|
return contents;
|
|
@@ -9067,13 +9624,14 @@ var deserializeAws_queryEventSubscription = function (output, context) {
|
|
|
9067
9624
|
if (output.SourceIdsList === "") {
|
|
9068
9625
|
contents.SourceIdsList = [];
|
|
9069
9626
|
}
|
|
9070
|
-
if (output["SourceIdsList"] !== undefined && output["SourceIdsList"]["SourceId"] !== undefined) {
|
|
9627
|
+
else if (output["SourceIdsList"] !== undefined && output["SourceIdsList"]["SourceId"] !== undefined) {
|
|
9071
9628
|
contents.SourceIdsList = deserializeAws_querySourceIdsList(__getArrayIfSingleItem(output["SourceIdsList"]["SourceId"]), context);
|
|
9072
9629
|
}
|
|
9073
9630
|
if (output.EventCategoriesList === "") {
|
|
9074
9631
|
contents.EventCategoriesList = [];
|
|
9075
9632
|
}
|
|
9076
|
-
if (output["EventCategoriesList"] !== undefined &&
|
|
9633
|
+
else if (output["EventCategoriesList"] !== undefined &&
|
|
9634
|
+
output["EventCategoriesList"]["EventCategory"] !== undefined) {
|
|
9077
9635
|
contents.EventCategoriesList = deserializeAws_queryEventCategoriesList(__getArrayIfSingleItem(output["EventCategoriesList"]["EventCategory"]), context);
|
|
9078
9636
|
}
|
|
9079
9637
|
if (output["Enabled"] !== undefined) {
|
|
@@ -9114,7 +9672,7 @@ var deserializeAws_queryEventSubscriptionsMessage = function (output, context) {
|
|
|
9114
9672
|
if (output.EventSubscriptionsList === "") {
|
|
9115
9673
|
contents.EventSubscriptionsList = [];
|
|
9116
9674
|
}
|
|
9117
|
-
if (output["EventSubscriptionsList"] !== undefined &&
|
|
9675
|
+
else if (output["EventSubscriptionsList"] !== undefined &&
|
|
9118
9676
|
output["EventSubscriptionsList"]["EventSubscription"] !== undefined) {
|
|
9119
9677
|
contents.EventSubscriptionsList = deserializeAws_queryEventSubscriptionsList(__getArrayIfSingleItem(output["EventSubscriptionsList"]["EventSubscription"]), context);
|
|
9120
9678
|
}
|
|
@@ -9129,6 +9687,143 @@ var deserializeAws_queryFailoverDBClusterResult = function (output, context) {
|
|
|
9129
9687
|
}
|
|
9130
9688
|
return contents;
|
|
9131
9689
|
};
|
|
9690
|
+
var deserializeAws_queryFailoverGlobalClusterResult = function (output, context) {
|
|
9691
|
+
var contents = {
|
|
9692
|
+
GlobalCluster: undefined,
|
|
9693
|
+
};
|
|
9694
|
+
if (output["GlobalCluster"] !== undefined) {
|
|
9695
|
+
contents.GlobalCluster = deserializeAws_queryGlobalCluster(output["GlobalCluster"], context);
|
|
9696
|
+
}
|
|
9697
|
+
return contents;
|
|
9698
|
+
};
|
|
9699
|
+
var deserializeAws_queryGlobalCluster = function (output, context) {
|
|
9700
|
+
var contents = {
|
|
9701
|
+
GlobalClusterIdentifier: undefined,
|
|
9702
|
+
GlobalClusterResourceId: undefined,
|
|
9703
|
+
GlobalClusterArn: undefined,
|
|
9704
|
+
Status: undefined,
|
|
9705
|
+
Engine: undefined,
|
|
9706
|
+
EngineVersion: undefined,
|
|
9707
|
+
StorageEncrypted: undefined,
|
|
9708
|
+
DeletionProtection: undefined,
|
|
9709
|
+
GlobalClusterMembers: undefined,
|
|
9710
|
+
};
|
|
9711
|
+
if (output["GlobalClusterIdentifier"] !== undefined) {
|
|
9712
|
+
contents.GlobalClusterIdentifier = __expectString(output["GlobalClusterIdentifier"]);
|
|
9713
|
+
}
|
|
9714
|
+
if (output["GlobalClusterResourceId"] !== undefined) {
|
|
9715
|
+
contents.GlobalClusterResourceId = __expectString(output["GlobalClusterResourceId"]);
|
|
9716
|
+
}
|
|
9717
|
+
if (output["GlobalClusterArn"] !== undefined) {
|
|
9718
|
+
contents.GlobalClusterArn = __expectString(output["GlobalClusterArn"]);
|
|
9719
|
+
}
|
|
9720
|
+
if (output["Status"] !== undefined) {
|
|
9721
|
+
contents.Status = __expectString(output["Status"]);
|
|
9722
|
+
}
|
|
9723
|
+
if (output["Engine"] !== undefined) {
|
|
9724
|
+
contents.Engine = __expectString(output["Engine"]);
|
|
9725
|
+
}
|
|
9726
|
+
if (output["EngineVersion"] !== undefined) {
|
|
9727
|
+
contents.EngineVersion = __expectString(output["EngineVersion"]);
|
|
9728
|
+
}
|
|
9729
|
+
if (output["StorageEncrypted"] !== undefined) {
|
|
9730
|
+
contents.StorageEncrypted = __parseBoolean(output["StorageEncrypted"]);
|
|
9731
|
+
}
|
|
9732
|
+
if (output["DeletionProtection"] !== undefined) {
|
|
9733
|
+
contents.DeletionProtection = __parseBoolean(output["DeletionProtection"]);
|
|
9734
|
+
}
|
|
9735
|
+
if (output.GlobalClusterMembers === "") {
|
|
9736
|
+
contents.GlobalClusterMembers = [];
|
|
9737
|
+
}
|
|
9738
|
+
else if (output["GlobalClusterMembers"] !== undefined &&
|
|
9739
|
+
output["GlobalClusterMembers"]["GlobalClusterMember"] !== undefined) {
|
|
9740
|
+
contents.GlobalClusterMembers = deserializeAws_queryGlobalClusterMemberList(__getArrayIfSingleItem(output["GlobalClusterMembers"]["GlobalClusterMember"]), context);
|
|
9741
|
+
}
|
|
9742
|
+
return contents;
|
|
9743
|
+
};
|
|
9744
|
+
var deserializeAws_queryGlobalClusterAlreadyExistsFault = function (output, context) {
|
|
9745
|
+
var contents = {
|
|
9746
|
+
message: undefined,
|
|
9747
|
+
};
|
|
9748
|
+
if (output["message"] !== undefined) {
|
|
9749
|
+
contents.message = __expectString(output["message"]);
|
|
9750
|
+
}
|
|
9751
|
+
return contents;
|
|
9752
|
+
};
|
|
9753
|
+
var deserializeAws_queryGlobalClusterList = function (output, context) {
|
|
9754
|
+
return (output || [])
|
|
9755
|
+
.filter(function (e) { return e != null; })
|
|
9756
|
+
.map(function (entry) {
|
|
9757
|
+
if (entry === null) {
|
|
9758
|
+
return null;
|
|
9759
|
+
}
|
|
9760
|
+
return deserializeAws_queryGlobalCluster(entry, context);
|
|
9761
|
+
});
|
|
9762
|
+
};
|
|
9763
|
+
var deserializeAws_queryGlobalClusterMember = function (output, context) {
|
|
9764
|
+
var contents = {
|
|
9765
|
+
DBClusterArn: undefined,
|
|
9766
|
+
Readers: undefined,
|
|
9767
|
+
IsWriter: undefined,
|
|
9768
|
+
};
|
|
9769
|
+
if (output["DBClusterArn"] !== undefined) {
|
|
9770
|
+
contents.DBClusterArn = __expectString(output["DBClusterArn"]);
|
|
9771
|
+
}
|
|
9772
|
+
if (output.Readers === "") {
|
|
9773
|
+
contents.Readers = [];
|
|
9774
|
+
}
|
|
9775
|
+
else if (output["Readers"] !== undefined && output["Readers"]["member"] !== undefined) {
|
|
9776
|
+
contents.Readers = deserializeAws_queryReadersArnList(__getArrayIfSingleItem(output["Readers"]["member"]), context);
|
|
9777
|
+
}
|
|
9778
|
+
if (output["IsWriter"] !== undefined) {
|
|
9779
|
+
contents.IsWriter = __parseBoolean(output["IsWriter"]);
|
|
9780
|
+
}
|
|
9781
|
+
return contents;
|
|
9782
|
+
};
|
|
9783
|
+
var deserializeAws_queryGlobalClusterMemberList = function (output, context) {
|
|
9784
|
+
return (output || [])
|
|
9785
|
+
.filter(function (e) { return e != null; })
|
|
9786
|
+
.map(function (entry) {
|
|
9787
|
+
if (entry === null) {
|
|
9788
|
+
return null;
|
|
9789
|
+
}
|
|
9790
|
+
return deserializeAws_queryGlobalClusterMember(entry, context);
|
|
9791
|
+
});
|
|
9792
|
+
};
|
|
9793
|
+
var deserializeAws_queryGlobalClusterNotFoundFault = function (output, context) {
|
|
9794
|
+
var contents = {
|
|
9795
|
+
message: undefined,
|
|
9796
|
+
};
|
|
9797
|
+
if (output["message"] !== undefined) {
|
|
9798
|
+
contents.message = __expectString(output["message"]);
|
|
9799
|
+
}
|
|
9800
|
+
return contents;
|
|
9801
|
+
};
|
|
9802
|
+
var deserializeAws_queryGlobalClusterQuotaExceededFault = function (output, context) {
|
|
9803
|
+
var contents = {
|
|
9804
|
+
message: undefined,
|
|
9805
|
+
};
|
|
9806
|
+
if (output["message"] !== undefined) {
|
|
9807
|
+
contents.message = __expectString(output["message"]);
|
|
9808
|
+
}
|
|
9809
|
+
return contents;
|
|
9810
|
+
};
|
|
9811
|
+
var deserializeAws_queryGlobalClustersMessage = function (output, context) {
|
|
9812
|
+
var contents = {
|
|
9813
|
+
Marker: undefined,
|
|
9814
|
+
GlobalClusters: undefined,
|
|
9815
|
+
};
|
|
9816
|
+
if (output["Marker"] !== undefined) {
|
|
9817
|
+
contents.Marker = __expectString(output["Marker"]);
|
|
9818
|
+
}
|
|
9819
|
+
if (output.GlobalClusters === "") {
|
|
9820
|
+
contents.GlobalClusters = [];
|
|
9821
|
+
}
|
|
9822
|
+
else if (output["GlobalClusters"] !== undefined && output["GlobalClusters"]["GlobalClusterMember"] !== undefined) {
|
|
9823
|
+
contents.GlobalClusters = deserializeAws_queryGlobalClusterList(__getArrayIfSingleItem(output["GlobalClusters"]["GlobalClusterMember"]), context);
|
|
9824
|
+
}
|
|
9825
|
+
return contents;
|
|
9826
|
+
};
|
|
9132
9827
|
var deserializeAws_queryInstanceQuotaExceededFault = function (output, context) {
|
|
9133
9828
|
var contents = {
|
|
9134
9829
|
message: undefined,
|
|
@@ -9255,6 +9950,15 @@ var deserializeAws_queryInvalidEventSubscriptionStateFault = function (output, c
|
|
|
9255
9950
|
}
|
|
9256
9951
|
return contents;
|
|
9257
9952
|
};
|
|
9953
|
+
var deserializeAws_queryInvalidGlobalClusterStateFault = function (output, context) {
|
|
9954
|
+
var contents = {
|
|
9955
|
+
message: undefined,
|
|
9956
|
+
};
|
|
9957
|
+
if (output["message"] !== undefined) {
|
|
9958
|
+
contents.message = __expectString(output["message"]);
|
|
9959
|
+
}
|
|
9960
|
+
return contents;
|
|
9961
|
+
};
|
|
9258
9962
|
var deserializeAws_queryInvalidRestoreFault = function (output, context) {
|
|
9259
9963
|
var contents = {
|
|
9260
9964
|
message: undefined,
|
|
@@ -9338,13 +10042,13 @@ var deserializeAws_queryModifyDBClusterEndpointOutput = function (output, contex
|
|
|
9338
10042
|
if (output.StaticMembers === "") {
|
|
9339
10043
|
contents.StaticMembers = [];
|
|
9340
10044
|
}
|
|
9341
|
-
if (output["StaticMembers"] !== undefined && output["StaticMembers"]["member"] !== undefined) {
|
|
10045
|
+
else if (output["StaticMembers"] !== undefined && output["StaticMembers"]["member"] !== undefined) {
|
|
9342
10046
|
contents.StaticMembers = deserializeAws_queryStringList(__getArrayIfSingleItem(output["StaticMembers"]["member"]), context);
|
|
9343
10047
|
}
|
|
9344
10048
|
if (output.ExcludedMembers === "") {
|
|
9345
10049
|
contents.ExcludedMembers = [];
|
|
9346
10050
|
}
|
|
9347
|
-
if (output["ExcludedMembers"] !== undefined && output["ExcludedMembers"]["member"] !== undefined) {
|
|
10051
|
+
else if (output["ExcludedMembers"] !== undefined && output["ExcludedMembers"]["member"] !== undefined) {
|
|
9348
10052
|
contents.ExcludedMembers = deserializeAws_queryStringList(__getArrayIfSingleItem(output["ExcludedMembers"]["member"]), context);
|
|
9349
10053
|
}
|
|
9350
10054
|
if (output["DBClusterEndpointArn"] !== undefined) {
|
|
@@ -9397,6 +10101,15 @@ var deserializeAws_queryModifyEventSubscriptionResult = function (output, contex
|
|
|
9397
10101
|
}
|
|
9398
10102
|
return contents;
|
|
9399
10103
|
};
|
|
10104
|
+
var deserializeAws_queryModifyGlobalClusterResult = function (output, context) {
|
|
10105
|
+
var contents = {
|
|
10106
|
+
GlobalCluster: undefined,
|
|
10107
|
+
};
|
|
10108
|
+
if (output["GlobalCluster"] !== undefined) {
|
|
10109
|
+
contents.GlobalCluster = deserializeAws_queryGlobalCluster(output["GlobalCluster"], context);
|
|
10110
|
+
}
|
|
10111
|
+
return contents;
|
|
10112
|
+
};
|
|
9400
10113
|
var deserializeAws_queryOptionGroupMembership = function (output, context) {
|
|
9401
10114
|
var contents = {
|
|
9402
10115
|
OptionGroupName: undefined,
|
|
@@ -9451,6 +10164,7 @@ var deserializeAws_queryOrderableDBInstanceOption = function (output, context) {
|
|
|
9451
10164
|
MaxIopsPerDbInstance: undefined,
|
|
9452
10165
|
MinIopsPerGib: undefined,
|
|
9453
10166
|
MaxIopsPerGib: undefined,
|
|
10167
|
+
SupportsGlobalDatabases: undefined,
|
|
9454
10168
|
};
|
|
9455
10169
|
if (output["Engine"] !== undefined) {
|
|
9456
10170
|
contents.Engine = __expectString(output["Engine"]);
|
|
@@ -9467,7 +10181,8 @@ var deserializeAws_queryOrderableDBInstanceOption = function (output, context) {
|
|
|
9467
10181
|
if (output.AvailabilityZones === "") {
|
|
9468
10182
|
contents.AvailabilityZones = [];
|
|
9469
10183
|
}
|
|
9470
|
-
if (output["AvailabilityZones"] !== undefined &&
|
|
10184
|
+
else if (output["AvailabilityZones"] !== undefined &&
|
|
10185
|
+
output["AvailabilityZones"]["AvailabilityZone"] !== undefined) {
|
|
9471
10186
|
contents.AvailabilityZones = deserializeAws_queryAvailabilityZoneList(__getArrayIfSingleItem(output["AvailabilityZones"]["AvailabilityZone"]), context);
|
|
9472
10187
|
}
|
|
9473
10188
|
if (output["MultiAZCapable"] !== undefined) {
|
|
@@ -9515,6 +10230,9 @@ var deserializeAws_queryOrderableDBInstanceOption = function (output, context) {
|
|
|
9515
10230
|
if (output["MaxIopsPerGib"] !== undefined) {
|
|
9516
10231
|
contents.MaxIopsPerGib = __strictParseFloat(output["MaxIopsPerGib"]);
|
|
9517
10232
|
}
|
|
10233
|
+
if (output["SupportsGlobalDatabases"] !== undefined) {
|
|
10234
|
+
contents.SupportsGlobalDatabases = __parseBoolean(output["SupportsGlobalDatabases"]);
|
|
10235
|
+
}
|
|
9518
10236
|
return contents;
|
|
9519
10237
|
};
|
|
9520
10238
|
var deserializeAws_queryOrderableDBInstanceOptionsList = function (output, context) {
|
|
@@ -9535,7 +10253,7 @@ var deserializeAws_queryOrderableDBInstanceOptionsMessage = function (output, co
|
|
|
9535
10253
|
if (output.OrderableDBInstanceOptions === "") {
|
|
9536
10254
|
contents.OrderableDBInstanceOptions = [];
|
|
9537
10255
|
}
|
|
9538
|
-
if (output["OrderableDBInstanceOptions"] !== undefined &&
|
|
10256
|
+
else if (output["OrderableDBInstanceOptions"] !== undefined &&
|
|
9539
10257
|
output["OrderableDBInstanceOptions"]["OrderableDBInstanceOption"] !== undefined) {
|
|
9540
10258
|
contents.OrderableDBInstanceOptions = deserializeAws_queryOrderableDBInstanceOptionsList(__getArrayIfSingleItem(output["OrderableDBInstanceOptions"]["OrderableDBInstanceOption"]), context);
|
|
9541
10259
|
}
|
|
@@ -9607,13 +10325,13 @@ var deserializeAws_queryPendingCloudwatchLogsExports = function (output, context
|
|
|
9607
10325
|
if (output.LogTypesToEnable === "") {
|
|
9608
10326
|
contents.LogTypesToEnable = [];
|
|
9609
10327
|
}
|
|
9610
|
-
if (output["LogTypesToEnable"] !== undefined && output["LogTypesToEnable"]["member"] !== undefined) {
|
|
10328
|
+
else if (output["LogTypesToEnable"] !== undefined && output["LogTypesToEnable"]["member"] !== undefined) {
|
|
9611
10329
|
contents.LogTypesToEnable = deserializeAws_queryLogTypeList(__getArrayIfSingleItem(output["LogTypesToEnable"]["member"]), context);
|
|
9612
10330
|
}
|
|
9613
10331
|
if (output.LogTypesToDisable === "") {
|
|
9614
10332
|
contents.LogTypesToDisable = [];
|
|
9615
10333
|
}
|
|
9616
|
-
if (output["LogTypesToDisable"] !== undefined && output["LogTypesToDisable"]["member"] !== undefined) {
|
|
10334
|
+
else if (output["LogTypesToDisable"] !== undefined && output["LogTypesToDisable"]["member"] !== undefined) {
|
|
9617
10335
|
contents.LogTypesToDisable = deserializeAws_queryLogTypeList(__getArrayIfSingleItem(output["LogTypesToDisable"]["member"]), context);
|
|
9618
10336
|
}
|
|
9619
10337
|
return contents;
|
|
@@ -9675,7 +10393,7 @@ var deserializeAws_queryPendingMaintenanceActionsMessage = function (output, con
|
|
|
9675
10393
|
if (output.PendingMaintenanceActions === "") {
|
|
9676
10394
|
contents.PendingMaintenanceActions = [];
|
|
9677
10395
|
}
|
|
9678
|
-
if (output["PendingMaintenanceActions"] !== undefined &&
|
|
10396
|
+
else if (output["PendingMaintenanceActions"] !== undefined &&
|
|
9679
10397
|
output["PendingMaintenanceActions"]["ResourcePendingMaintenanceActions"] !== undefined) {
|
|
9680
10398
|
contents.PendingMaintenanceActions = deserializeAws_queryPendingMaintenanceActions(__getArrayIfSingleItem(output["PendingMaintenanceActions"]["ResourcePendingMaintenanceActions"]), context);
|
|
9681
10399
|
}
|
|
@@ -9790,6 +10508,16 @@ var deserializeAws_queryRangeList = function (output, context) {
|
|
|
9790
10508
|
return deserializeAws_queryRange(entry, context);
|
|
9791
10509
|
});
|
|
9792
10510
|
};
|
|
10511
|
+
var deserializeAws_queryReadersArnList = function (output, context) {
|
|
10512
|
+
return (output || [])
|
|
10513
|
+
.filter(function (e) { return e != null; })
|
|
10514
|
+
.map(function (entry) {
|
|
10515
|
+
if (entry === null) {
|
|
10516
|
+
return null;
|
|
10517
|
+
}
|
|
10518
|
+
return __expectString(entry);
|
|
10519
|
+
});
|
|
10520
|
+
};
|
|
9793
10521
|
var deserializeAws_queryReadReplicaDBClusterIdentifierList = function (output, context) {
|
|
9794
10522
|
return (output || [])
|
|
9795
10523
|
.filter(function (e) { return e != null; })
|
|
@@ -9829,6 +10557,15 @@ var deserializeAws_queryRebootDBInstanceResult = function (output, context) {
|
|
|
9829
10557
|
}
|
|
9830
10558
|
return contents;
|
|
9831
10559
|
};
|
|
10560
|
+
var deserializeAws_queryRemoveFromGlobalClusterResult = function (output, context) {
|
|
10561
|
+
var contents = {
|
|
10562
|
+
GlobalCluster: undefined,
|
|
10563
|
+
};
|
|
10564
|
+
if (output["GlobalCluster"] !== undefined) {
|
|
10565
|
+
contents.GlobalCluster = deserializeAws_queryGlobalCluster(output["GlobalCluster"], context);
|
|
10566
|
+
}
|
|
10567
|
+
return contents;
|
|
10568
|
+
};
|
|
9832
10569
|
var deserializeAws_queryRemoveSourceIdentifierFromSubscriptionResult = function (output, context) {
|
|
9833
10570
|
var contents = {
|
|
9834
10571
|
EventSubscription: undefined,
|
|
@@ -9858,7 +10595,7 @@ var deserializeAws_queryResourcePendingMaintenanceActions = function (output, co
|
|
|
9858
10595
|
if (output.PendingMaintenanceActionDetails === "") {
|
|
9859
10596
|
contents.PendingMaintenanceActionDetails = [];
|
|
9860
10597
|
}
|
|
9861
|
-
if (output["PendingMaintenanceActionDetails"] !== undefined &&
|
|
10598
|
+
else if (output["PendingMaintenanceActionDetails"] !== undefined &&
|
|
9862
10599
|
output["PendingMaintenanceActionDetails"]["PendingMaintenanceAction"] !== undefined) {
|
|
9863
10600
|
contents.PendingMaintenanceActionDetails = deserializeAws_queryPendingMaintenanceActionDetails(__getArrayIfSingleItem(output["PendingMaintenanceActionDetails"]["PendingMaintenanceAction"]), context);
|
|
9864
10601
|
}
|
|
@@ -10105,7 +10842,7 @@ var deserializeAws_queryTagListMessage = function (output, context) {
|
|
|
10105
10842
|
if (output.TagList === "") {
|
|
10106
10843
|
contents.TagList = [];
|
|
10107
10844
|
}
|
|
10108
|
-
if (output["TagList"] !== undefined && output["TagList"]["Tag"] !== undefined) {
|
|
10845
|
+
else if (output["TagList"] !== undefined && output["TagList"]["Tag"] !== undefined) {
|
|
10109
10846
|
contents.TagList = deserializeAws_queryTagList(__getArrayIfSingleItem(output["TagList"]["Tag"]), context);
|
|
10110
10847
|
}
|
|
10111
10848
|
return contents;
|
|
@@ -10126,6 +10863,7 @@ var deserializeAws_queryUpgradeTarget = function (output, context) {
|
|
|
10126
10863
|
Description: undefined,
|
|
10127
10864
|
AutoUpgrade: undefined,
|
|
10128
10865
|
IsMajorVersionUpgrade: undefined,
|
|
10866
|
+
SupportsGlobalDatabases: undefined,
|
|
10129
10867
|
};
|
|
10130
10868
|
if (output["Engine"] !== undefined) {
|
|
10131
10869
|
contents.Engine = __expectString(output["Engine"]);
|
|
@@ -10142,6 +10880,9 @@ var deserializeAws_queryUpgradeTarget = function (output, context) {
|
|
|
10142
10880
|
if (output["IsMajorVersionUpgrade"] !== undefined) {
|
|
10143
10881
|
contents.IsMajorVersionUpgrade = __parseBoolean(output["IsMajorVersionUpgrade"]);
|
|
10144
10882
|
}
|
|
10883
|
+
if (output["SupportsGlobalDatabases"] !== undefined) {
|
|
10884
|
+
contents.SupportsGlobalDatabases = __parseBoolean(output["SupportsGlobalDatabases"]);
|
|
10885
|
+
}
|
|
10145
10886
|
return contents;
|
|
10146
10887
|
};
|
|
10147
10888
|
var deserializeAws_queryValidDBInstanceModificationsMessage = function (output, context) {
|
|
@@ -10151,7 +10892,7 @@ var deserializeAws_queryValidDBInstanceModificationsMessage = function (output,
|
|
|
10151
10892
|
if (output.Storage === "") {
|
|
10152
10893
|
contents.Storage = [];
|
|
10153
10894
|
}
|
|
10154
|
-
if (output["Storage"] !== undefined && output["Storage"]["ValidStorageOptions"] !== undefined) {
|
|
10895
|
+
else if (output["Storage"] !== undefined && output["Storage"]["ValidStorageOptions"] !== undefined) {
|
|
10155
10896
|
contents.Storage = deserializeAws_queryValidStorageOptionsList(__getArrayIfSingleItem(output["Storage"]["ValidStorageOptions"]), context);
|
|
10156
10897
|
}
|
|
10157
10898
|
return contents;
|
|
@@ -10169,19 +10910,19 @@ var deserializeAws_queryValidStorageOptions = function (output, context) {
|
|
|
10169
10910
|
if (output.StorageSize === "") {
|
|
10170
10911
|
contents.StorageSize = [];
|
|
10171
10912
|
}
|
|
10172
|
-
if (output["StorageSize"] !== undefined && output["StorageSize"]["Range"] !== undefined) {
|
|
10913
|
+
else if (output["StorageSize"] !== undefined && output["StorageSize"]["Range"] !== undefined) {
|
|
10173
10914
|
contents.StorageSize = deserializeAws_queryRangeList(__getArrayIfSingleItem(output["StorageSize"]["Range"]), context);
|
|
10174
10915
|
}
|
|
10175
10916
|
if (output.ProvisionedIops === "") {
|
|
10176
10917
|
contents.ProvisionedIops = [];
|
|
10177
10918
|
}
|
|
10178
|
-
if (output["ProvisionedIops"] !== undefined && output["ProvisionedIops"]["Range"] !== undefined) {
|
|
10919
|
+
else if (output["ProvisionedIops"] !== undefined && output["ProvisionedIops"]["Range"] !== undefined) {
|
|
10179
10920
|
contents.ProvisionedIops = deserializeAws_queryRangeList(__getArrayIfSingleItem(output["ProvisionedIops"]["Range"]), context);
|
|
10180
10921
|
}
|
|
10181
10922
|
if (output.IopsToStorageRatio === "") {
|
|
10182
10923
|
contents.IopsToStorageRatio = [];
|
|
10183
10924
|
}
|
|
10184
|
-
if (output["IopsToStorageRatio"] !== undefined && output["IopsToStorageRatio"]["DoubleRange"] !== undefined) {
|
|
10925
|
+
else if (output["IopsToStorageRatio"] !== undefined && output["IopsToStorageRatio"]["DoubleRange"] !== undefined) {
|
|
10185
10926
|
contents.IopsToStorageRatio = deserializeAws_queryDoubleRangeList(__getArrayIfSingleItem(output["IopsToStorageRatio"]["DoubleRange"]), context);
|
|
10186
10927
|
}
|
|
10187
10928
|
return contents;
|