@aws-sdk/client-neptune 3.99.0 → 3.107.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +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 +4 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.deserializeAws_queryStopDBClusterCommand = exports.deserializeAws_queryStartDBClusterCommand = exports.deserializeAws_queryRestoreDBClusterToPointInTimeCommand = exports.deserializeAws_queryRestoreDBClusterFromSnapshotCommand = exports.deserializeAws_queryResetDBParameterGroupCommand = exports.deserializeAws_queryResetDBClusterParameterGroupCommand = exports.deserializeAws_queryRemoveTagsFromResourceCommand = exports.deserializeAws_queryRemoveSourceIdentifierFromSubscriptionCommand = exports.deserializeAws_queryRemoveRoleFromDBClusterCommand = exports.deserializeAws_queryRebootDBInstanceCommand = exports.deserializeAws_queryPromoteReadReplicaDBClusterCommand = exports.deserializeAws_queryModifyEventSubscriptionCommand = exports.deserializeAws_queryModifyDBSubnetGroupCommand = exports.deserializeAws_queryModifyDBParameterGroupCommand = exports.deserializeAws_queryModifyDBInstanceCommand = exports.deserializeAws_queryModifyDBClusterSnapshotAttributeCommand = exports.deserializeAws_queryModifyDBClusterParameterGroupCommand = exports.deserializeAws_queryModifyDBClusterEndpointCommand = exports.deserializeAws_queryModifyDBClusterCommand = exports.deserializeAws_queryListTagsForResourceCommand = exports.deserializeAws_queryFailoverDBClusterCommand = exports.deserializeAws_queryDescribeValidDBInstanceModificationsCommand = exports.deserializeAws_queryDescribePendingMaintenanceActionsCommand = exports.deserializeAws_queryDescribeOrderableDBInstanceOptionsCommand = exports.deserializeAws_queryDescribeEventSubscriptionsCommand = exports.deserializeAws_queryDescribeEventsCommand = void 0;
|
|
3
|
+
exports.serializeAws_queryModifyDBClusterEndpointCommand = exports.serializeAws_queryModifyDBClusterCommand = exports.serializeAws_queryListTagsForResourceCommand = exports.serializeAws_queryFailoverGlobalClusterCommand = exports.serializeAws_queryFailoverDBClusterCommand = exports.serializeAws_queryDescribeValidDBInstanceModificationsCommand = exports.serializeAws_queryDescribePendingMaintenanceActionsCommand = exports.serializeAws_queryDescribeOrderableDBInstanceOptionsCommand = exports.serializeAws_queryDescribeGlobalClustersCommand = exports.serializeAws_queryDescribeEventSubscriptionsCommand = exports.serializeAws_queryDescribeEventsCommand = exports.serializeAws_queryDescribeEventCategoriesCommand = exports.serializeAws_queryDescribeEngineDefaultParametersCommand = exports.serializeAws_queryDescribeEngineDefaultClusterParametersCommand = exports.serializeAws_queryDescribeDBSubnetGroupsCommand = exports.serializeAws_queryDescribeDBParametersCommand = exports.serializeAws_queryDescribeDBParameterGroupsCommand = exports.serializeAws_queryDescribeDBInstancesCommand = exports.serializeAws_queryDescribeDBEngineVersionsCommand = exports.serializeAws_queryDescribeDBClusterSnapshotsCommand = exports.serializeAws_queryDescribeDBClusterSnapshotAttributesCommand = exports.serializeAws_queryDescribeDBClustersCommand = exports.serializeAws_queryDescribeDBClusterParametersCommand = exports.serializeAws_queryDescribeDBClusterParameterGroupsCommand = exports.serializeAws_queryDescribeDBClusterEndpointsCommand = exports.serializeAws_queryDeleteGlobalClusterCommand = exports.serializeAws_queryDeleteEventSubscriptionCommand = exports.serializeAws_queryDeleteDBSubnetGroupCommand = exports.serializeAws_queryDeleteDBParameterGroupCommand = exports.serializeAws_queryDeleteDBInstanceCommand = exports.serializeAws_queryDeleteDBClusterSnapshotCommand = exports.serializeAws_queryDeleteDBClusterParameterGroupCommand = exports.serializeAws_queryDeleteDBClusterEndpointCommand = exports.serializeAws_queryDeleteDBClusterCommand = exports.serializeAws_queryCreateGlobalClusterCommand = exports.serializeAws_queryCreateEventSubscriptionCommand = exports.serializeAws_queryCreateDBSubnetGroupCommand = exports.serializeAws_queryCreateDBParameterGroupCommand = exports.serializeAws_queryCreateDBInstanceCommand = exports.serializeAws_queryCreateDBClusterSnapshotCommand = exports.serializeAws_queryCreateDBClusterParameterGroupCommand = exports.serializeAws_queryCreateDBClusterEndpointCommand = exports.serializeAws_queryCreateDBClusterCommand = exports.serializeAws_queryCopyDBParameterGroupCommand = exports.serializeAws_queryCopyDBClusterSnapshotCommand = exports.serializeAws_queryCopyDBClusterParameterGroupCommand = exports.serializeAws_queryApplyPendingMaintenanceActionCommand = exports.serializeAws_queryAddTagsToResourceCommand = exports.serializeAws_queryAddSourceIdentifierToSubscriptionCommand = exports.serializeAws_queryAddRoleToDBClusterCommand = void 0;
|
|
4
|
+
exports.deserializeAws_queryDescribeDBClusterSnapshotsCommand = exports.deserializeAws_queryDescribeDBClusterSnapshotAttributesCommand = exports.deserializeAws_queryDescribeDBClustersCommand = exports.deserializeAws_queryDescribeDBClusterParametersCommand = exports.deserializeAws_queryDescribeDBClusterParameterGroupsCommand = exports.deserializeAws_queryDescribeDBClusterEndpointsCommand = exports.deserializeAws_queryDeleteGlobalClusterCommand = exports.deserializeAws_queryDeleteEventSubscriptionCommand = exports.deserializeAws_queryDeleteDBSubnetGroupCommand = exports.deserializeAws_queryDeleteDBParameterGroupCommand = exports.deserializeAws_queryDeleteDBInstanceCommand = exports.deserializeAws_queryDeleteDBClusterSnapshotCommand = exports.deserializeAws_queryDeleteDBClusterParameterGroupCommand = exports.deserializeAws_queryDeleteDBClusterEndpointCommand = exports.deserializeAws_queryDeleteDBClusterCommand = exports.deserializeAws_queryCreateGlobalClusterCommand = exports.deserializeAws_queryCreateEventSubscriptionCommand = exports.deserializeAws_queryCreateDBSubnetGroupCommand = exports.deserializeAws_queryCreateDBParameterGroupCommand = exports.deserializeAws_queryCreateDBInstanceCommand = exports.deserializeAws_queryCreateDBClusterSnapshotCommand = exports.deserializeAws_queryCreateDBClusterParameterGroupCommand = exports.deserializeAws_queryCreateDBClusterEndpointCommand = exports.deserializeAws_queryCreateDBClusterCommand = exports.deserializeAws_queryCopyDBParameterGroupCommand = exports.deserializeAws_queryCopyDBClusterSnapshotCommand = exports.deserializeAws_queryCopyDBClusterParameterGroupCommand = exports.deserializeAws_queryApplyPendingMaintenanceActionCommand = exports.deserializeAws_queryAddTagsToResourceCommand = exports.deserializeAws_queryAddSourceIdentifierToSubscriptionCommand = exports.deserializeAws_queryAddRoleToDBClusterCommand = exports.serializeAws_queryStopDBClusterCommand = exports.serializeAws_queryStartDBClusterCommand = exports.serializeAws_queryRestoreDBClusterToPointInTimeCommand = exports.serializeAws_queryRestoreDBClusterFromSnapshotCommand = exports.serializeAws_queryResetDBParameterGroupCommand = exports.serializeAws_queryResetDBClusterParameterGroupCommand = exports.serializeAws_queryRemoveTagsFromResourceCommand = exports.serializeAws_queryRemoveSourceIdentifierFromSubscriptionCommand = exports.serializeAws_queryRemoveRoleFromDBClusterCommand = exports.serializeAws_queryRemoveFromGlobalClusterCommand = exports.serializeAws_queryRebootDBInstanceCommand = exports.serializeAws_queryPromoteReadReplicaDBClusterCommand = exports.serializeAws_queryModifyGlobalClusterCommand = exports.serializeAws_queryModifyEventSubscriptionCommand = exports.serializeAws_queryModifyDBSubnetGroupCommand = exports.serializeAws_queryModifyDBParameterGroupCommand = exports.serializeAws_queryModifyDBInstanceCommand = exports.serializeAws_queryModifyDBClusterSnapshotAttributeCommand = exports.serializeAws_queryModifyDBClusterParameterGroupCommand = void 0;
|
|
5
|
+
exports.deserializeAws_queryStopDBClusterCommand = exports.deserializeAws_queryStartDBClusterCommand = exports.deserializeAws_queryRestoreDBClusterToPointInTimeCommand = exports.deserializeAws_queryRestoreDBClusterFromSnapshotCommand = exports.deserializeAws_queryResetDBParameterGroupCommand = exports.deserializeAws_queryResetDBClusterParameterGroupCommand = exports.deserializeAws_queryRemoveTagsFromResourceCommand = exports.deserializeAws_queryRemoveSourceIdentifierFromSubscriptionCommand = exports.deserializeAws_queryRemoveRoleFromDBClusterCommand = exports.deserializeAws_queryRemoveFromGlobalClusterCommand = exports.deserializeAws_queryRebootDBInstanceCommand = exports.deserializeAws_queryPromoteReadReplicaDBClusterCommand = exports.deserializeAws_queryModifyGlobalClusterCommand = exports.deserializeAws_queryModifyEventSubscriptionCommand = exports.deserializeAws_queryModifyDBSubnetGroupCommand = exports.deserializeAws_queryModifyDBParameterGroupCommand = exports.deserializeAws_queryModifyDBInstanceCommand = exports.deserializeAws_queryModifyDBClusterSnapshotAttributeCommand = exports.deserializeAws_queryModifyDBClusterParameterGroupCommand = exports.deserializeAws_queryModifyDBClusterEndpointCommand = exports.deserializeAws_queryModifyDBClusterCommand = exports.deserializeAws_queryListTagsForResourceCommand = exports.deserializeAws_queryFailoverGlobalClusterCommand = exports.deserializeAws_queryFailoverDBClusterCommand = exports.deserializeAws_queryDescribeValidDBInstanceModificationsCommand = exports.deserializeAws_queryDescribePendingMaintenanceActionsCommand = exports.deserializeAws_queryDescribeOrderableDBInstanceOptionsCommand = exports.deserializeAws_queryDescribeGlobalClustersCommand = exports.deserializeAws_queryDescribeEventSubscriptionsCommand = exports.deserializeAws_queryDescribeEventsCommand = exports.deserializeAws_queryDescribeEventCategoriesCommand = exports.deserializeAws_queryDescribeEngineDefaultParametersCommand = exports.deserializeAws_queryDescribeEngineDefaultClusterParametersCommand = exports.deserializeAws_queryDescribeDBSubnetGroupsCommand = exports.deserializeAws_queryDescribeDBParametersCommand = exports.deserializeAws_queryDescribeDBParameterGroupsCommand = exports.deserializeAws_queryDescribeDBInstancesCommand = exports.deserializeAws_queryDescribeDBEngineVersionsCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
const entities_1 = require("entities");
|
|
@@ -204,6 +204,19 @@ const serializeAws_queryCreateEventSubscriptionCommand = async (input, context)
|
|
|
204
204
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
205
205
|
};
|
|
206
206
|
exports.serializeAws_queryCreateEventSubscriptionCommand = serializeAws_queryCreateEventSubscriptionCommand;
|
|
207
|
+
const serializeAws_queryCreateGlobalClusterCommand = async (input, context) => {
|
|
208
|
+
const headers = {
|
|
209
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
210
|
+
};
|
|
211
|
+
let body;
|
|
212
|
+
body = buildFormUrlencodedString({
|
|
213
|
+
...serializeAws_queryCreateGlobalClusterMessage(input, context),
|
|
214
|
+
Action: "CreateGlobalCluster",
|
|
215
|
+
Version: "2014-10-31",
|
|
216
|
+
});
|
|
217
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
218
|
+
};
|
|
219
|
+
exports.serializeAws_queryCreateGlobalClusterCommand = serializeAws_queryCreateGlobalClusterCommand;
|
|
207
220
|
const serializeAws_queryDeleteDBClusterCommand = async (input, context) => {
|
|
208
221
|
const headers = {
|
|
209
222
|
"content-type": "application/x-www-form-urlencoded",
|
|
@@ -308,6 +321,19 @@ const serializeAws_queryDeleteEventSubscriptionCommand = async (input, context)
|
|
|
308
321
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
309
322
|
};
|
|
310
323
|
exports.serializeAws_queryDeleteEventSubscriptionCommand = serializeAws_queryDeleteEventSubscriptionCommand;
|
|
324
|
+
const serializeAws_queryDeleteGlobalClusterCommand = async (input, context) => {
|
|
325
|
+
const headers = {
|
|
326
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
327
|
+
};
|
|
328
|
+
let body;
|
|
329
|
+
body = buildFormUrlencodedString({
|
|
330
|
+
...serializeAws_queryDeleteGlobalClusterMessage(input, context),
|
|
331
|
+
Action: "DeleteGlobalCluster",
|
|
332
|
+
Version: "2014-10-31",
|
|
333
|
+
});
|
|
334
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
335
|
+
};
|
|
336
|
+
exports.serializeAws_queryDeleteGlobalClusterCommand = serializeAws_queryDeleteGlobalClusterCommand;
|
|
311
337
|
const serializeAws_queryDescribeDBClusterEndpointsCommand = async (input, context) => {
|
|
312
338
|
const headers = {
|
|
313
339
|
"content-type": "application/x-www-form-urlencoded",
|
|
@@ -516,6 +542,19 @@ const serializeAws_queryDescribeEventSubscriptionsCommand = async (input, contex
|
|
|
516
542
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
517
543
|
};
|
|
518
544
|
exports.serializeAws_queryDescribeEventSubscriptionsCommand = serializeAws_queryDescribeEventSubscriptionsCommand;
|
|
545
|
+
const serializeAws_queryDescribeGlobalClustersCommand = async (input, context) => {
|
|
546
|
+
const headers = {
|
|
547
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
548
|
+
};
|
|
549
|
+
let body;
|
|
550
|
+
body = buildFormUrlencodedString({
|
|
551
|
+
...serializeAws_queryDescribeGlobalClustersMessage(input, context),
|
|
552
|
+
Action: "DescribeGlobalClusters",
|
|
553
|
+
Version: "2014-10-31",
|
|
554
|
+
});
|
|
555
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
556
|
+
};
|
|
557
|
+
exports.serializeAws_queryDescribeGlobalClustersCommand = serializeAws_queryDescribeGlobalClustersCommand;
|
|
519
558
|
const serializeAws_queryDescribeOrderableDBInstanceOptionsCommand = async (input, context) => {
|
|
520
559
|
const headers = {
|
|
521
560
|
"content-type": "application/x-www-form-urlencoded",
|
|
@@ -568,6 +607,19 @@ const serializeAws_queryFailoverDBClusterCommand = async (input, context) => {
|
|
|
568
607
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
569
608
|
};
|
|
570
609
|
exports.serializeAws_queryFailoverDBClusterCommand = serializeAws_queryFailoverDBClusterCommand;
|
|
610
|
+
const serializeAws_queryFailoverGlobalClusterCommand = async (input, context) => {
|
|
611
|
+
const headers = {
|
|
612
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
613
|
+
};
|
|
614
|
+
let body;
|
|
615
|
+
body = buildFormUrlencodedString({
|
|
616
|
+
...serializeAws_queryFailoverGlobalClusterMessage(input, context),
|
|
617
|
+
Action: "FailoverGlobalCluster",
|
|
618
|
+
Version: "2014-10-31",
|
|
619
|
+
});
|
|
620
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
621
|
+
};
|
|
622
|
+
exports.serializeAws_queryFailoverGlobalClusterCommand = serializeAws_queryFailoverGlobalClusterCommand;
|
|
571
623
|
const serializeAws_queryListTagsForResourceCommand = async (input, context) => {
|
|
572
624
|
const headers = {
|
|
573
625
|
"content-type": "application/x-www-form-urlencoded",
|
|
@@ -685,6 +737,19 @@ const serializeAws_queryModifyEventSubscriptionCommand = async (input, context)
|
|
|
685
737
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
686
738
|
};
|
|
687
739
|
exports.serializeAws_queryModifyEventSubscriptionCommand = serializeAws_queryModifyEventSubscriptionCommand;
|
|
740
|
+
const serializeAws_queryModifyGlobalClusterCommand = async (input, context) => {
|
|
741
|
+
const headers = {
|
|
742
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
743
|
+
};
|
|
744
|
+
let body;
|
|
745
|
+
body = buildFormUrlencodedString({
|
|
746
|
+
...serializeAws_queryModifyGlobalClusterMessage(input, context),
|
|
747
|
+
Action: "ModifyGlobalCluster",
|
|
748
|
+
Version: "2014-10-31",
|
|
749
|
+
});
|
|
750
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
751
|
+
};
|
|
752
|
+
exports.serializeAws_queryModifyGlobalClusterCommand = serializeAws_queryModifyGlobalClusterCommand;
|
|
688
753
|
const serializeAws_queryPromoteReadReplicaDBClusterCommand = async (input, context) => {
|
|
689
754
|
const headers = {
|
|
690
755
|
"content-type": "application/x-www-form-urlencoded",
|
|
@@ -711,6 +776,19 @@ const serializeAws_queryRebootDBInstanceCommand = async (input, context) => {
|
|
|
711
776
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
712
777
|
};
|
|
713
778
|
exports.serializeAws_queryRebootDBInstanceCommand = serializeAws_queryRebootDBInstanceCommand;
|
|
779
|
+
const serializeAws_queryRemoveFromGlobalClusterCommand = async (input, context) => {
|
|
780
|
+
const headers = {
|
|
781
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
782
|
+
};
|
|
783
|
+
let body;
|
|
784
|
+
body = buildFormUrlencodedString({
|
|
785
|
+
...serializeAws_queryRemoveFromGlobalClusterMessage(input, context),
|
|
786
|
+
Action: "RemoveFromGlobalCluster",
|
|
787
|
+
Version: "2014-10-31",
|
|
788
|
+
});
|
|
789
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
790
|
+
};
|
|
791
|
+
exports.serializeAws_queryRemoveFromGlobalClusterCommand = serializeAws_queryRemoveFromGlobalClusterCommand;
|
|
714
792
|
const serializeAws_queryRemoveRoleFromDBClusterCommand = async (input, context) => {
|
|
715
793
|
const headers = {
|
|
716
794
|
"content-type": "application/x-www-form-urlencoded",
|
|
@@ -1163,6 +1241,9 @@ const deserializeAws_queryCreateDBClusterCommandError = async (output, context)
|
|
|
1163
1241
|
case "DBSubnetGroupNotFoundFault":
|
|
1164
1242
|
case "com.amazonaws.neptune#DBSubnetGroupNotFoundFault":
|
|
1165
1243
|
throw await deserializeAws_queryDBSubnetGroupNotFoundFaultResponse(parsedOutput, context);
|
|
1244
|
+
case "GlobalClusterNotFoundFault":
|
|
1245
|
+
case "com.amazonaws.neptune#GlobalClusterNotFoundFault":
|
|
1246
|
+
throw await deserializeAws_queryGlobalClusterNotFoundFaultResponse(parsedOutput, context);
|
|
1166
1247
|
case "InsufficientStorageClusterCapacityFault":
|
|
1167
1248
|
case "com.amazonaws.neptune#InsufficientStorageClusterCapacityFault":
|
|
1168
1249
|
throw await deserializeAws_queryInsufficientStorageClusterCapacityFaultResponse(parsedOutput, context);
|
|
@@ -1175,6 +1256,9 @@ const deserializeAws_queryCreateDBClusterCommandError = async (output, context)
|
|
|
1175
1256
|
case "InvalidDBSubnetGroupStateFault":
|
|
1176
1257
|
case "com.amazonaws.neptune#InvalidDBSubnetGroupStateFault":
|
|
1177
1258
|
throw await deserializeAws_queryInvalidDBSubnetGroupStateFaultResponse(parsedOutput, context);
|
|
1259
|
+
case "InvalidGlobalClusterStateFault":
|
|
1260
|
+
case "com.amazonaws.neptune#InvalidGlobalClusterStateFault":
|
|
1261
|
+
throw await deserializeAws_queryInvalidGlobalClusterStateFaultResponse(parsedOutput, context);
|
|
1178
1262
|
case "InvalidSubnet":
|
|
1179
1263
|
case "com.amazonaws.neptune#InvalidSubnet":
|
|
1180
1264
|
throw await deserializeAws_queryInvalidSubnetResponse(parsedOutput, context);
|
|
@@ -1563,6 +1647,51 @@ const deserializeAws_queryCreateEventSubscriptionCommandError = async (output, c
|
|
|
1563
1647
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1564
1648
|
}
|
|
1565
1649
|
};
|
|
1650
|
+
const deserializeAws_queryCreateGlobalClusterCommand = async (output, context) => {
|
|
1651
|
+
if (output.statusCode >= 300) {
|
|
1652
|
+
return deserializeAws_queryCreateGlobalClusterCommandError(output, context);
|
|
1653
|
+
}
|
|
1654
|
+
const data = await parseBody(output.body, context);
|
|
1655
|
+
let contents = {};
|
|
1656
|
+
contents = deserializeAws_queryCreateGlobalClusterResult(data.CreateGlobalClusterResult, context);
|
|
1657
|
+
const response = {
|
|
1658
|
+
$metadata: deserializeMetadata(output),
|
|
1659
|
+
...contents,
|
|
1660
|
+
};
|
|
1661
|
+
return Promise.resolve(response);
|
|
1662
|
+
};
|
|
1663
|
+
exports.deserializeAws_queryCreateGlobalClusterCommand = deserializeAws_queryCreateGlobalClusterCommand;
|
|
1664
|
+
const deserializeAws_queryCreateGlobalClusterCommandError = async (output, context) => {
|
|
1665
|
+
const parsedOutput = {
|
|
1666
|
+
...output,
|
|
1667
|
+
body: await parseBody(output.body, context),
|
|
1668
|
+
};
|
|
1669
|
+
let response;
|
|
1670
|
+
let errorCode = "UnknownError";
|
|
1671
|
+
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1672
|
+
switch (errorCode) {
|
|
1673
|
+
case "DBClusterNotFoundFault":
|
|
1674
|
+
case "com.amazonaws.neptune#DBClusterNotFoundFault":
|
|
1675
|
+
throw await deserializeAws_queryDBClusterNotFoundFaultResponse(parsedOutput, context);
|
|
1676
|
+
case "GlobalClusterAlreadyExistsFault":
|
|
1677
|
+
case "com.amazonaws.neptune#GlobalClusterAlreadyExistsFault":
|
|
1678
|
+
throw await deserializeAws_queryGlobalClusterAlreadyExistsFaultResponse(parsedOutput, context);
|
|
1679
|
+
case "GlobalClusterQuotaExceededFault":
|
|
1680
|
+
case "com.amazonaws.neptune#GlobalClusterQuotaExceededFault":
|
|
1681
|
+
throw await deserializeAws_queryGlobalClusterQuotaExceededFaultResponse(parsedOutput, context);
|
|
1682
|
+
case "InvalidDBClusterStateFault":
|
|
1683
|
+
case "com.amazonaws.neptune#InvalidDBClusterStateFault":
|
|
1684
|
+
throw await deserializeAws_queryInvalidDBClusterStateFaultResponse(parsedOutput, context);
|
|
1685
|
+
default:
|
|
1686
|
+
const parsedBody = parsedOutput.body;
|
|
1687
|
+
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
1688
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1689
|
+
$fault: "client",
|
|
1690
|
+
$metadata: deserializeMetadata(output),
|
|
1691
|
+
});
|
|
1692
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1693
|
+
}
|
|
1694
|
+
};
|
|
1566
1695
|
const deserializeAws_queryDeleteDBClusterCommand = async (output, context) => {
|
|
1567
1696
|
if (output.statusCode >= 300) {
|
|
1568
1697
|
return deserializeAws_queryDeleteDBClusterCommandError(output, context);
|
|
@@ -1890,6 +2019,45 @@ const deserializeAws_queryDeleteEventSubscriptionCommandError = async (output, c
|
|
|
1890
2019
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1891
2020
|
}
|
|
1892
2021
|
};
|
|
2022
|
+
const deserializeAws_queryDeleteGlobalClusterCommand = async (output, context) => {
|
|
2023
|
+
if (output.statusCode >= 300) {
|
|
2024
|
+
return deserializeAws_queryDeleteGlobalClusterCommandError(output, context);
|
|
2025
|
+
}
|
|
2026
|
+
const data = await parseBody(output.body, context);
|
|
2027
|
+
let contents = {};
|
|
2028
|
+
contents = deserializeAws_queryDeleteGlobalClusterResult(data.DeleteGlobalClusterResult, context);
|
|
2029
|
+
const response = {
|
|
2030
|
+
$metadata: deserializeMetadata(output),
|
|
2031
|
+
...contents,
|
|
2032
|
+
};
|
|
2033
|
+
return Promise.resolve(response);
|
|
2034
|
+
};
|
|
2035
|
+
exports.deserializeAws_queryDeleteGlobalClusterCommand = deserializeAws_queryDeleteGlobalClusterCommand;
|
|
2036
|
+
const deserializeAws_queryDeleteGlobalClusterCommandError = async (output, context) => {
|
|
2037
|
+
const parsedOutput = {
|
|
2038
|
+
...output,
|
|
2039
|
+
body: await parseBody(output.body, context),
|
|
2040
|
+
};
|
|
2041
|
+
let response;
|
|
2042
|
+
let errorCode = "UnknownError";
|
|
2043
|
+
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2044
|
+
switch (errorCode) {
|
|
2045
|
+
case "GlobalClusterNotFoundFault":
|
|
2046
|
+
case "com.amazonaws.neptune#GlobalClusterNotFoundFault":
|
|
2047
|
+
throw await deserializeAws_queryGlobalClusterNotFoundFaultResponse(parsedOutput, context);
|
|
2048
|
+
case "InvalidGlobalClusterStateFault":
|
|
2049
|
+
case "com.amazonaws.neptune#InvalidGlobalClusterStateFault":
|
|
2050
|
+
throw await deserializeAws_queryInvalidGlobalClusterStateFaultResponse(parsedOutput, context);
|
|
2051
|
+
default:
|
|
2052
|
+
const parsedBody = parsedOutput.body;
|
|
2053
|
+
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
2054
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2055
|
+
$fault: "client",
|
|
2056
|
+
$metadata: deserializeMetadata(output),
|
|
2057
|
+
});
|
|
2058
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2059
|
+
}
|
|
2060
|
+
};
|
|
1893
2061
|
const deserializeAws_queryDescribeDBClusterEndpointsCommand = async (output, context) => {
|
|
1894
2062
|
if (output.statusCode >= 300) {
|
|
1895
2063
|
return deserializeAws_queryDescribeDBClusterEndpointsCommandError(output, context);
|
|
@@ -2451,6 +2619,42 @@ const deserializeAws_queryDescribeEventSubscriptionsCommandError = async (output
|
|
|
2451
2619
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2452
2620
|
}
|
|
2453
2621
|
};
|
|
2622
|
+
const deserializeAws_queryDescribeGlobalClustersCommand = async (output, context) => {
|
|
2623
|
+
if (output.statusCode >= 300) {
|
|
2624
|
+
return deserializeAws_queryDescribeGlobalClustersCommandError(output, context);
|
|
2625
|
+
}
|
|
2626
|
+
const data = await parseBody(output.body, context);
|
|
2627
|
+
let contents = {};
|
|
2628
|
+
contents = deserializeAws_queryGlobalClustersMessage(data.DescribeGlobalClustersResult, context);
|
|
2629
|
+
const response = {
|
|
2630
|
+
$metadata: deserializeMetadata(output),
|
|
2631
|
+
...contents,
|
|
2632
|
+
};
|
|
2633
|
+
return Promise.resolve(response);
|
|
2634
|
+
};
|
|
2635
|
+
exports.deserializeAws_queryDescribeGlobalClustersCommand = deserializeAws_queryDescribeGlobalClustersCommand;
|
|
2636
|
+
const deserializeAws_queryDescribeGlobalClustersCommandError = async (output, context) => {
|
|
2637
|
+
const parsedOutput = {
|
|
2638
|
+
...output,
|
|
2639
|
+
body: await parseBody(output.body, context),
|
|
2640
|
+
};
|
|
2641
|
+
let response;
|
|
2642
|
+
let errorCode = "UnknownError";
|
|
2643
|
+
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2644
|
+
switch (errorCode) {
|
|
2645
|
+
case "GlobalClusterNotFoundFault":
|
|
2646
|
+
case "com.amazonaws.neptune#GlobalClusterNotFoundFault":
|
|
2647
|
+
throw await deserializeAws_queryGlobalClusterNotFoundFaultResponse(parsedOutput, context);
|
|
2648
|
+
default:
|
|
2649
|
+
const parsedBody = parsedOutput.body;
|
|
2650
|
+
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
2651
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2652
|
+
$fault: "client",
|
|
2653
|
+
$metadata: deserializeMetadata(output),
|
|
2654
|
+
});
|
|
2655
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2656
|
+
}
|
|
2657
|
+
};
|
|
2454
2658
|
const deserializeAws_queryDescribeOrderableDBInstanceOptionsCommand = async (output, context) => {
|
|
2455
2659
|
if (output.statusCode >= 300) {
|
|
2456
2660
|
return deserializeAws_queryDescribeOrderableDBInstanceOptionsCommandError(output, context);
|
|
@@ -2601,6 +2805,51 @@ const deserializeAws_queryFailoverDBClusterCommandError = async (output, context
|
|
|
2601
2805
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2602
2806
|
}
|
|
2603
2807
|
};
|
|
2808
|
+
const deserializeAws_queryFailoverGlobalClusterCommand = async (output, context) => {
|
|
2809
|
+
if (output.statusCode >= 300) {
|
|
2810
|
+
return deserializeAws_queryFailoverGlobalClusterCommandError(output, context);
|
|
2811
|
+
}
|
|
2812
|
+
const data = await parseBody(output.body, context);
|
|
2813
|
+
let contents = {};
|
|
2814
|
+
contents = deserializeAws_queryFailoverGlobalClusterResult(data.FailoverGlobalClusterResult, context);
|
|
2815
|
+
const response = {
|
|
2816
|
+
$metadata: deserializeMetadata(output),
|
|
2817
|
+
...contents,
|
|
2818
|
+
};
|
|
2819
|
+
return Promise.resolve(response);
|
|
2820
|
+
};
|
|
2821
|
+
exports.deserializeAws_queryFailoverGlobalClusterCommand = deserializeAws_queryFailoverGlobalClusterCommand;
|
|
2822
|
+
const deserializeAws_queryFailoverGlobalClusterCommandError = async (output, context) => {
|
|
2823
|
+
const parsedOutput = {
|
|
2824
|
+
...output,
|
|
2825
|
+
body: await parseBody(output.body, context),
|
|
2826
|
+
};
|
|
2827
|
+
let response;
|
|
2828
|
+
let errorCode = "UnknownError";
|
|
2829
|
+
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2830
|
+
switch (errorCode) {
|
|
2831
|
+
case "DBClusterNotFoundFault":
|
|
2832
|
+
case "com.amazonaws.neptune#DBClusterNotFoundFault":
|
|
2833
|
+
throw await deserializeAws_queryDBClusterNotFoundFaultResponse(parsedOutput, context);
|
|
2834
|
+
case "GlobalClusterNotFoundFault":
|
|
2835
|
+
case "com.amazonaws.neptune#GlobalClusterNotFoundFault":
|
|
2836
|
+
throw await deserializeAws_queryGlobalClusterNotFoundFaultResponse(parsedOutput, context);
|
|
2837
|
+
case "InvalidDBClusterStateFault":
|
|
2838
|
+
case "com.amazonaws.neptune#InvalidDBClusterStateFault":
|
|
2839
|
+
throw await deserializeAws_queryInvalidDBClusterStateFaultResponse(parsedOutput, context);
|
|
2840
|
+
case "InvalidGlobalClusterStateFault":
|
|
2841
|
+
case "com.amazonaws.neptune#InvalidGlobalClusterStateFault":
|
|
2842
|
+
throw await deserializeAws_queryInvalidGlobalClusterStateFaultResponse(parsedOutput, context);
|
|
2843
|
+
default:
|
|
2844
|
+
const parsedBody = parsedOutput.body;
|
|
2845
|
+
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
2846
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2847
|
+
$fault: "client",
|
|
2848
|
+
$metadata: deserializeMetadata(output),
|
|
2849
|
+
});
|
|
2850
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2851
|
+
}
|
|
2852
|
+
};
|
|
2604
2853
|
const deserializeAws_queryListTagsForResourceCommand = async (output, context) => {
|
|
2605
2854
|
if (output.statusCode >= 300) {
|
|
2606
2855
|
return deserializeAws_queryListTagsForResourceCommandError(output, context);
|
|
@@ -3057,6 +3306,45 @@ const deserializeAws_queryModifyEventSubscriptionCommandError = async (output, c
|
|
|
3057
3306
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3058
3307
|
}
|
|
3059
3308
|
};
|
|
3309
|
+
const deserializeAws_queryModifyGlobalClusterCommand = async (output, context) => {
|
|
3310
|
+
if (output.statusCode >= 300) {
|
|
3311
|
+
return deserializeAws_queryModifyGlobalClusterCommandError(output, context);
|
|
3312
|
+
}
|
|
3313
|
+
const data = await parseBody(output.body, context);
|
|
3314
|
+
let contents = {};
|
|
3315
|
+
contents = deserializeAws_queryModifyGlobalClusterResult(data.ModifyGlobalClusterResult, context);
|
|
3316
|
+
const response = {
|
|
3317
|
+
$metadata: deserializeMetadata(output),
|
|
3318
|
+
...contents,
|
|
3319
|
+
};
|
|
3320
|
+
return Promise.resolve(response);
|
|
3321
|
+
};
|
|
3322
|
+
exports.deserializeAws_queryModifyGlobalClusterCommand = deserializeAws_queryModifyGlobalClusterCommand;
|
|
3323
|
+
const deserializeAws_queryModifyGlobalClusterCommandError = async (output, context) => {
|
|
3324
|
+
const parsedOutput = {
|
|
3325
|
+
...output,
|
|
3326
|
+
body: await parseBody(output.body, context),
|
|
3327
|
+
};
|
|
3328
|
+
let response;
|
|
3329
|
+
let errorCode = "UnknownError";
|
|
3330
|
+
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3331
|
+
switch (errorCode) {
|
|
3332
|
+
case "GlobalClusterNotFoundFault":
|
|
3333
|
+
case "com.amazonaws.neptune#GlobalClusterNotFoundFault":
|
|
3334
|
+
throw await deserializeAws_queryGlobalClusterNotFoundFaultResponse(parsedOutput, context);
|
|
3335
|
+
case "InvalidGlobalClusterStateFault":
|
|
3336
|
+
case "com.amazonaws.neptune#InvalidGlobalClusterStateFault":
|
|
3337
|
+
throw await deserializeAws_queryInvalidGlobalClusterStateFaultResponse(parsedOutput, context);
|
|
3338
|
+
default:
|
|
3339
|
+
const parsedBody = parsedOutput.body;
|
|
3340
|
+
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
3341
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3342
|
+
$fault: "client",
|
|
3343
|
+
$metadata: deserializeMetadata(output),
|
|
3344
|
+
});
|
|
3345
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3346
|
+
}
|
|
3347
|
+
};
|
|
3060
3348
|
const deserializeAws_queryPromoteReadReplicaDBClusterCommand = async (output, context) => {
|
|
3061
3349
|
if (output.statusCode >= 300) {
|
|
3062
3350
|
return deserializeAws_queryPromoteReadReplicaDBClusterCommandError(output, context);
|
|
@@ -3135,6 +3423,48 @@ const deserializeAws_queryRebootDBInstanceCommandError = async (output, context)
|
|
|
3135
3423
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3136
3424
|
}
|
|
3137
3425
|
};
|
|
3426
|
+
const deserializeAws_queryRemoveFromGlobalClusterCommand = async (output, context) => {
|
|
3427
|
+
if (output.statusCode >= 300) {
|
|
3428
|
+
return deserializeAws_queryRemoveFromGlobalClusterCommandError(output, context);
|
|
3429
|
+
}
|
|
3430
|
+
const data = await parseBody(output.body, context);
|
|
3431
|
+
let contents = {};
|
|
3432
|
+
contents = deserializeAws_queryRemoveFromGlobalClusterResult(data.RemoveFromGlobalClusterResult, context);
|
|
3433
|
+
const response = {
|
|
3434
|
+
$metadata: deserializeMetadata(output),
|
|
3435
|
+
...contents,
|
|
3436
|
+
};
|
|
3437
|
+
return Promise.resolve(response);
|
|
3438
|
+
};
|
|
3439
|
+
exports.deserializeAws_queryRemoveFromGlobalClusterCommand = deserializeAws_queryRemoveFromGlobalClusterCommand;
|
|
3440
|
+
const deserializeAws_queryRemoveFromGlobalClusterCommandError = async (output, context) => {
|
|
3441
|
+
const parsedOutput = {
|
|
3442
|
+
...output,
|
|
3443
|
+
body: await parseBody(output.body, context),
|
|
3444
|
+
};
|
|
3445
|
+
let response;
|
|
3446
|
+
let errorCode = "UnknownError";
|
|
3447
|
+
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3448
|
+
switch (errorCode) {
|
|
3449
|
+
case "DBClusterNotFoundFault":
|
|
3450
|
+
case "com.amazonaws.neptune#DBClusterNotFoundFault":
|
|
3451
|
+
throw await deserializeAws_queryDBClusterNotFoundFaultResponse(parsedOutput, context);
|
|
3452
|
+
case "GlobalClusterNotFoundFault":
|
|
3453
|
+
case "com.amazonaws.neptune#GlobalClusterNotFoundFault":
|
|
3454
|
+
throw await deserializeAws_queryGlobalClusterNotFoundFaultResponse(parsedOutput, context);
|
|
3455
|
+
case "InvalidGlobalClusterStateFault":
|
|
3456
|
+
case "com.amazonaws.neptune#InvalidGlobalClusterStateFault":
|
|
3457
|
+
throw await deserializeAws_queryInvalidGlobalClusterStateFaultResponse(parsedOutput, context);
|
|
3458
|
+
default:
|
|
3459
|
+
const parsedBody = parsedOutput.body;
|
|
3460
|
+
response = new NeptuneServiceException_1.NeptuneServiceException({
|
|
3461
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3462
|
+
$fault: "client",
|
|
3463
|
+
$metadata: deserializeMetadata(output),
|
|
3464
|
+
});
|
|
3465
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3466
|
+
}
|
|
3467
|
+
};
|
|
3138
3468
|
const deserializeAws_queryRemoveRoleFromDBClusterCommand = async (output, context) => {
|
|
3139
3469
|
if (output.statusCode >= 300) {
|
|
3140
3470
|
return deserializeAws_queryRemoveRoleFromDBClusterCommandError(output, context);
|
|
@@ -3849,6 +4179,33 @@ const deserializeAws_queryEventSubscriptionQuotaExceededFaultResponse = async (p
|
|
|
3849
4179
|
});
|
|
3850
4180
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3851
4181
|
};
|
|
4182
|
+
const deserializeAws_queryGlobalClusterAlreadyExistsFaultResponse = async (parsedOutput, context) => {
|
|
4183
|
+
const body = parsedOutput.body;
|
|
4184
|
+
const deserialized = deserializeAws_queryGlobalClusterAlreadyExistsFault(body.Error, context);
|
|
4185
|
+
const exception = new models_0_1.GlobalClusterAlreadyExistsFault({
|
|
4186
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
4187
|
+
...deserialized,
|
|
4188
|
+
});
|
|
4189
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
4190
|
+
};
|
|
4191
|
+
const deserializeAws_queryGlobalClusterNotFoundFaultResponse = async (parsedOutput, context) => {
|
|
4192
|
+
const body = parsedOutput.body;
|
|
4193
|
+
const deserialized = deserializeAws_queryGlobalClusterNotFoundFault(body.Error, context);
|
|
4194
|
+
const exception = new models_0_1.GlobalClusterNotFoundFault({
|
|
4195
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
4196
|
+
...deserialized,
|
|
4197
|
+
});
|
|
4198
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
4199
|
+
};
|
|
4200
|
+
const deserializeAws_queryGlobalClusterQuotaExceededFaultResponse = async (parsedOutput, context) => {
|
|
4201
|
+
const body = parsedOutput.body;
|
|
4202
|
+
const deserialized = deserializeAws_queryGlobalClusterQuotaExceededFault(body.Error, context);
|
|
4203
|
+
const exception = new models_0_1.GlobalClusterQuotaExceededFault({
|
|
4204
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
4205
|
+
...deserialized,
|
|
4206
|
+
});
|
|
4207
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
4208
|
+
};
|
|
3852
4209
|
const deserializeAws_queryInstanceQuotaExceededFaultResponse = async (parsedOutput, context) => {
|
|
3853
4210
|
const body = parsedOutput.body;
|
|
3854
4211
|
const deserialized = deserializeAws_queryInstanceQuotaExceededFault(body.Error, context);
|
|
@@ -3975,6 +4332,15 @@ const deserializeAws_queryInvalidEventSubscriptionStateFaultResponse = async (pa
|
|
|
3975
4332
|
});
|
|
3976
4333
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3977
4334
|
};
|
|
4335
|
+
const deserializeAws_queryInvalidGlobalClusterStateFaultResponse = async (parsedOutput, context) => {
|
|
4336
|
+
const body = parsedOutput.body;
|
|
4337
|
+
const deserialized = deserializeAws_queryInvalidGlobalClusterStateFault(body.Error, context);
|
|
4338
|
+
const exception = new models_0_1.InvalidGlobalClusterStateFault({
|
|
4339
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
4340
|
+
...deserialized,
|
|
4341
|
+
});
|
|
4342
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
4343
|
+
};
|
|
3978
4344
|
const deserializeAws_queryInvalidRestoreFaultResponse = async (parsedOutput, context) => {
|
|
3979
4345
|
const body = parsedOutput.body;
|
|
3980
4346
|
const deserialized = deserializeAws_queryInvalidRestoreFault(body.Error, context);
|
|
@@ -4434,6 +4800,9 @@ const serializeAws_queryCreateDBClusterMessage = (input, context) => {
|
|
|
4434
4800
|
if (input.DeletionProtection !== undefined && input.DeletionProtection !== null) {
|
|
4435
4801
|
entries["DeletionProtection"] = input.DeletionProtection;
|
|
4436
4802
|
}
|
|
4803
|
+
if (input.GlobalClusterIdentifier !== undefined && input.GlobalClusterIdentifier !== null) {
|
|
4804
|
+
entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier;
|
|
4805
|
+
}
|
|
4437
4806
|
return entries;
|
|
4438
4807
|
};
|
|
4439
4808
|
const serializeAws_queryCreateDBClusterParameterGroupMessage = (input, context) => {
|
|
@@ -4703,6 +5072,28 @@ const serializeAws_queryCreateEventSubscriptionMessage = (input, context) => {
|
|
|
4703
5072
|
}
|
|
4704
5073
|
return entries;
|
|
4705
5074
|
};
|
|
5075
|
+
const serializeAws_queryCreateGlobalClusterMessage = (input, context) => {
|
|
5076
|
+
const entries = {};
|
|
5077
|
+
if (input.GlobalClusterIdentifier !== undefined && input.GlobalClusterIdentifier !== null) {
|
|
5078
|
+
entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier;
|
|
5079
|
+
}
|
|
5080
|
+
if (input.SourceDBClusterIdentifier !== undefined && input.SourceDBClusterIdentifier !== null) {
|
|
5081
|
+
entries["SourceDBClusterIdentifier"] = input.SourceDBClusterIdentifier;
|
|
5082
|
+
}
|
|
5083
|
+
if (input.Engine !== undefined && input.Engine !== null) {
|
|
5084
|
+
entries["Engine"] = input.Engine;
|
|
5085
|
+
}
|
|
5086
|
+
if (input.EngineVersion !== undefined && input.EngineVersion !== null) {
|
|
5087
|
+
entries["EngineVersion"] = input.EngineVersion;
|
|
5088
|
+
}
|
|
5089
|
+
if (input.DeletionProtection !== undefined && input.DeletionProtection !== null) {
|
|
5090
|
+
entries["DeletionProtection"] = input.DeletionProtection;
|
|
5091
|
+
}
|
|
5092
|
+
if (input.StorageEncrypted !== undefined && input.StorageEncrypted !== null) {
|
|
5093
|
+
entries["StorageEncrypted"] = input.StorageEncrypted;
|
|
5094
|
+
}
|
|
5095
|
+
return entries;
|
|
5096
|
+
};
|
|
4706
5097
|
const serializeAws_queryDBSecurityGroupNameList = (input, context) => {
|
|
4707
5098
|
const entries = {};
|
|
4708
5099
|
let counter = 1;
|
|
@@ -4783,6 +5174,13 @@ const serializeAws_queryDeleteEventSubscriptionMessage = (input, context) => {
|
|
|
4783
5174
|
}
|
|
4784
5175
|
return entries;
|
|
4785
5176
|
};
|
|
5177
|
+
const serializeAws_queryDeleteGlobalClusterMessage = (input, context) => {
|
|
5178
|
+
const entries = {};
|
|
5179
|
+
if (input.GlobalClusterIdentifier !== undefined && input.GlobalClusterIdentifier !== null) {
|
|
5180
|
+
entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier;
|
|
5181
|
+
}
|
|
5182
|
+
return entries;
|
|
5183
|
+
};
|
|
4786
5184
|
const serializeAws_queryDescribeDBClusterEndpointsMessage = (input, context) => {
|
|
4787
5185
|
const entries = {};
|
|
4788
5186
|
if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
|
|
@@ -5139,6 +5537,19 @@ const serializeAws_queryDescribeEventSubscriptionsMessage = (input, context) =>
|
|
|
5139
5537
|
}
|
|
5140
5538
|
return entries;
|
|
5141
5539
|
};
|
|
5540
|
+
const serializeAws_queryDescribeGlobalClustersMessage = (input, context) => {
|
|
5541
|
+
const entries = {};
|
|
5542
|
+
if (input.GlobalClusterIdentifier !== undefined && input.GlobalClusterIdentifier !== null) {
|
|
5543
|
+
entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier;
|
|
5544
|
+
}
|
|
5545
|
+
if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
|
|
5546
|
+
entries["MaxRecords"] = input.MaxRecords;
|
|
5547
|
+
}
|
|
5548
|
+
if (input.Marker !== undefined && input.Marker !== null) {
|
|
5549
|
+
entries["Marker"] = input.Marker;
|
|
5550
|
+
}
|
|
5551
|
+
return entries;
|
|
5552
|
+
};
|
|
5142
5553
|
const serializeAws_queryDescribeOrderableDBInstanceOptionsMessage = (input, context) => {
|
|
5143
5554
|
const entries = {};
|
|
5144
5555
|
if (input.Engine !== undefined && input.Engine !== null) {
|
|
@@ -5220,6 +5631,16 @@ const serializeAws_queryFailoverDBClusterMessage = (input, context) => {
|
|
|
5220
5631
|
}
|
|
5221
5632
|
return entries;
|
|
5222
5633
|
};
|
|
5634
|
+
const serializeAws_queryFailoverGlobalClusterMessage = (input, context) => {
|
|
5635
|
+
const entries = {};
|
|
5636
|
+
if (input.GlobalClusterIdentifier !== undefined && input.GlobalClusterIdentifier !== null) {
|
|
5637
|
+
entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier;
|
|
5638
|
+
}
|
|
5639
|
+
if (input.TargetDbClusterIdentifier !== undefined && input.TargetDbClusterIdentifier !== null) {
|
|
5640
|
+
entries["TargetDbClusterIdentifier"] = input.TargetDbClusterIdentifier;
|
|
5641
|
+
}
|
|
5642
|
+
return entries;
|
|
5643
|
+
};
|
|
5223
5644
|
const serializeAws_queryFilter = (input, context) => {
|
|
5224
5645
|
const entries = {};
|
|
5225
5646
|
if (input.Name !== undefined && input.Name !== null) {
|
|
@@ -5608,6 +6029,25 @@ const serializeAws_queryModifyEventSubscriptionMessage = (input, context) => {
|
|
|
5608
6029
|
}
|
|
5609
6030
|
return entries;
|
|
5610
6031
|
};
|
|
6032
|
+
const serializeAws_queryModifyGlobalClusterMessage = (input, context) => {
|
|
6033
|
+
const entries = {};
|
|
6034
|
+
if (input.GlobalClusterIdentifier !== undefined && input.GlobalClusterIdentifier !== null) {
|
|
6035
|
+
entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier;
|
|
6036
|
+
}
|
|
6037
|
+
if (input.NewGlobalClusterIdentifier !== undefined && input.NewGlobalClusterIdentifier !== null) {
|
|
6038
|
+
entries["NewGlobalClusterIdentifier"] = input.NewGlobalClusterIdentifier;
|
|
6039
|
+
}
|
|
6040
|
+
if (input.DeletionProtection !== undefined && input.DeletionProtection !== null) {
|
|
6041
|
+
entries["DeletionProtection"] = input.DeletionProtection;
|
|
6042
|
+
}
|
|
6043
|
+
if (input.EngineVersion !== undefined && input.EngineVersion !== null) {
|
|
6044
|
+
entries["EngineVersion"] = input.EngineVersion;
|
|
6045
|
+
}
|
|
6046
|
+
if (input.AllowMajorVersionUpgrade !== undefined && input.AllowMajorVersionUpgrade !== null) {
|
|
6047
|
+
entries["AllowMajorVersionUpgrade"] = input.AllowMajorVersionUpgrade;
|
|
6048
|
+
}
|
|
6049
|
+
return entries;
|
|
6050
|
+
};
|
|
5611
6051
|
const serializeAws_queryParameter = (input, context) => {
|
|
5612
6052
|
const entries = {};
|
|
5613
6053
|
if (input.ParameterName !== undefined && input.ParameterName !== null) {
|
|
@@ -5674,6 +6114,16 @@ const serializeAws_queryRebootDBInstanceMessage = (input, context) => {
|
|
|
5674
6114
|
}
|
|
5675
6115
|
return entries;
|
|
5676
6116
|
};
|
|
6117
|
+
const serializeAws_queryRemoveFromGlobalClusterMessage = (input, context) => {
|
|
6118
|
+
const entries = {};
|
|
6119
|
+
if (input.GlobalClusterIdentifier !== undefined && input.GlobalClusterIdentifier !== null) {
|
|
6120
|
+
entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier;
|
|
6121
|
+
}
|
|
6122
|
+
if (input.DbClusterIdentifier !== undefined && input.DbClusterIdentifier !== null) {
|
|
6123
|
+
entries["DbClusterIdentifier"] = input.DbClusterIdentifier;
|
|
6124
|
+
}
|
|
6125
|
+
return entries;
|
|
6126
|
+
};
|
|
5677
6127
|
const serializeAws_queryRemoveRoleFromDBClusterMessage = (input, context) => {
|
|
5678
6128
|
const entries = {};
|
|
5679
6129
|
if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
|
|
@@ -6116,13 +6566,13 @@ const deserializeAws_queryCreateDBClusterEndpointOutput = (output, context) => {
|
|
|
6116
6566
|
if (output.StaticMembers === "") {
|
|
6117
6567
|
contents.StaticMembers = [];
|
|
6118
6568
|
}
|
|
6119
|
-
if (output["StaticMembers"] !== undefined && output["StaticMembers"]["member"] !== undefined) {
|
|
6569
|
+
else if (output["StaticMembers"] !== undefined && output["StaticMembers"]["member"] !== undefined) {
|
|
6120
6570
|
contents.StaticMembers = deserializeAws_queryStringList((0, smithy_client_1.getArrayIfSingleItem)(output["StaticMembers"]["member"]), context);
|
|
6121
6571
|
}
|
|
6122
6572
|
if (output.ExcludedMembers === "") {
|
|
6123
6573
|
contents.ExcludedMembers = [];
|
|
6124
6574
|
}
|
|
6125
|
-
if (output["ExcludedMembers"] !== undefined && output["ExcludedMembers"]["member"] !== undefined) {
|
|
6575
|
+
else if (output["ExcludedMembers"] !== undefined && output["ExcludedMembers"]["member"] !== undefined) {
|
|
6126
6576
|
contents.ExcludedMembers = deserializeAws_queryStringList((0, smithy_client_1.getArrayIfSingleItem)(output["ExcludedMembers"]["member"]), context);
|
|
6127
6577
|
}
|
|
6128
6578
|
if (output["DBClusterEndpointArn"] !== undefined) {
|
|
@@ -6193,6 +6643,15 @@ const deserializeAws_queryCreateEventSubscriptionResult = (output, context) => {
|
|
|
6193
6643
|
}
|
|
6194
6644
|
return contents;
|
|
6195
6645
|
};
|
|
6646
|
+
const deserializeAws_queryCreateGlobalClusterResult = (output, context) => {
|
|
6647
|
+
const contents = {
|
|
6648
|
+
GlobalCluster: undefined,
|
|
6649
|
+
};
|
|
6650
|
+
if (output["GlobalCluster"] !== undefined) {
|
|
6651
|
+
contents.GlobalCluster = deserializeAws_queryGlobalCluster(output["GlobalCluster"], context);
|
|
6652
|
+
}
|
|
6653
|
+
return contents;
|
|
6654
|
+
};
|
|
6196
6655
|
const deserializeAws_queryDBCluster = (output, context) => {
|
|
6197
6656
|
const contents = {
|
|
6198
6657
|
AllocatedStorage: undefined,
|
|
@@ -6242,7 +6701,8 @@ const deserializeAws_queryDBCluster = (output, context) => {
|
|
|
6242
6701
|
if (output.AvailabilityZones === "") {
|
|
6243
6702
|
contents.AvailabilityZones = [];
|
|
6244
6703
|
}
|
|
6245
|
-
if (output["AvailabilityZones"] !== undefined &&
|
|
6704
|
+
else if (output["AvailabilityZones"] !== undefined &&
|
|
6705
|
+
output["AvailabilityZones"]["AvailabilityZone"] !== undefined) {
|
|
6246
6706
|
contents.AvailabilityZones = deserializeAws_queryAvailabilityZones((0, smithy_client_1.getArrayIfSingleItem)(output["AvailabilityZones"]["AvailabilityZone"]), context);
|
|
6247
6707
|
}
|
|
6248
6708
|
if (output["BackupRetentionPeriod"] !== undefined) {
|
|
@@ -6299,7 +6759,7 @@ const deserializeAws_queryDBCluster = (output, context) => {
|
|
|
6299
6759
|
if (output.DBClusterOptionGroupMemberships === "") {
|
|
6300
6760
|
contents.DBClusterOptionGroupMemberships = [];
|
|
6301
6761
|
}
|
|
6302
|
-
if (output["DBClusterOptionGroupMemberships"] !== undefined &&
|
|
6762
|
+
else if (output["DBClusterOptionGroupMemberships"] !== undefined &&
|
|
6303
6763
|
output["DBClusterOptionGroupMemberships"]["DBClusterOptionGroup"] !== undefined) {
|
|
6304
6764
|
contents.DBClusterOptionGroupMemberships = deserializeAws_queryDBClusterOptionGroupMemberships((0, smithy_client_1.getArrayIfSingleItem)(output["DBClusterOptionGroupMemberships"]["DBClusterOptionGroup"]), context);
|
|
6305
6765
|
}
|
|
@@ -6315,20 +6775,20 @@ const deserializeAws_queryDBCluster = (output, context) => {
|
|
|
6315
6775
|
if (output.ReadReplicaIdentifiers === "") {
|
|
6316
6776
|
contents.ReadReplicaIdentifiers = [];
|
|
6317
6777
|
}
|
|
6318
|
-
if (output["ReadReplicaIdentifiers"] !== undefined &&
|
|
6778
|
+
else if (output["ReadReplicaIdentifiers"] !== undefined &&
|
|
6319
6779
|
output["ReadReplicaIdentifiers"]["ReadReplicaIdentifier"] !== undefined) {
|
|
6320
6780
|
contents.ReadReplicaIdentifiers = deserializeAws_queryReadReplicaIdentifierList((0, smithy_client_1.getArrayIfSingleItem)(output["ReadReplicaIdentifiers"]["ReadReplicaIdentifier"]), context);
|
|
6321
6781
|
}
|
|
6322
6782
|
if (output.DBClusterMembers === "") {
|
|
6323
6783
|
contents.DBClusterMembers = [];
|
|
6324
6784
|
}
|
|
6325
|
-
if (output["DBClusterMembers"] !== undefined && output["DBClusterMembers"]["DBClusterMember"] !== undefined) {
|
|
6785
|
+
else if (output["DBClusterMembers"] !== undefined && output["DBClusterMembers"]["DBClusterMember"] !== undefined) {
|
|
6326
6786
|
contents.DBClusterMembers = deserializeAws_queryDBClusterMemberList((0, smithy_client_1.getArrayIfSingleItem)(output["DBClusterMembers"]["DBClusterMember"]), context);
|
|
6327
6787
|
}
|
|
6328
6788
|
if (output.VpcSecurityGroups === "") {
|
|
6329
6789
|
contents.VpcSecurityGroups = [];
|
|
6330
6790
|
}
|
|
6331
|
-
if (output["VpcSecurityGroups"] !== undefined &&
|
|
6791
|
+
else if (output["VpcSecurityGroups"] !== undefined &&
|
|
6332
6792
|
output["VpcSecurityGroups"]["VpcSecurityGroupMembership"] !== undefined) {
|
|
6333
6793
|
contents.VpcSecurityGroups = deserializeAws_queryVpcSecurityGroupMembershipList((0, smithy_client_1.getArrayIfSingleItem)(output["VpcSecurityGroups"]["VpcSecurityGroupMembership"]), context);
|
|
6334
6794
|
}
|
|
@@ -6350,7 +6810,7 @@ const deserializeAws_queryDBCluster = (output, context) => {
|
|
|
6350
6810
|
if (output.AssociatedRoles === "") {
|
|
6351
6811
|
contents.AssociatedRoles = [];
|
|
6352
6812
|
}
|
|
6353
|
-
if (output["AssociatedRoles"] !== undefined && output["AssociatedRoles"]["DBClusterRole"] !== undefined) {
|
|
6813
|
+
else if (output["AssociatedRoles"] !== undefined && output["AssociatedRoles"]["DBClusterRole"] !== undefined) {
|
|
6354
6814
|
contents.AssociatedRoles = deserializeAws_queryDBClusterRoles((0, smithy_client_1.getArrayIfSingleItem)(output["AssociatedRoles"]["DBClusterRole"]), context);
|
|
6355
6815
|
}
|
|
6356
6816
|
if (output["IAMDatabaseAuthenticationEnabled"] !== undefined) {
|
|
@@ -6368,7 +6828,7 @@ const deserializeAws_queryDBCluster = (output, context) => {
|
|
|
6368
6828
|
if (output.EnabledCloudwatchLogsExports === "") {
|
|
6369
6829
|
contents.EnabledCloudwatchLogsExports = [];
|
|
6370
6830
|
}
|
|
6371
|
-
if (output["EnabledCloudwatchLogsExports"] !== undefined &&
|
|
6831
|
+
else if (output["EnabledCloudwatchLogsExports"] !== undefined &&
|
|
6372
6832
|
output["EnabledCloudwatchLogsExports"]["member"] !== undefined) {
|
|
6373
6833
|
contents.EnabledCloudwatchLogsExports = deserializeAws_queryLogTypeList((0, smithy_client_1.getArrayIfSingleItem)(output["EnabledCloudwatchLogsExports"]["member"]), context);
|
|
6374
6834
|
}
|
|
@@ -6429,13 +6889,13 @@ const deserializeAws_queryDBClusterEndpoint = (output, context) => {
|
|
|
6429
6889
|
if (output.StaticMembers === "") {
|
|
6430
6890
|
contents.StaticMembers = [];
|
|
6431
6891
|
}
|
|
6432
|
-
if (output["StaticMembers"] !== undefined && output["StaticMembers"]["member"] !== undefined) {
|
|
6892
|
+
else if (output["StaticMembers"] !== undefined && output["StaticMembers"]["member"] !== undefined) {
|
|
6433
6893
|
contents.StaticMembers = deserializeAws_queryStringList((0, smithy_client_1.getArrayIfSingleItem)(output["StaticMembers"]["member"]), context);
|
|
6434
6894
|
}
|
|
6435
6895
|
if (output.ExcludedMembers === "") {
|
|
6436
6896
|
contents.ExcludedMembers = [];
|
|
6437
6897
|
}
|
|
6438
|
-
if (output["ExcludedMembers"] !== undefined && output["ExcludedMembers"]["member"] !== undefined) {
|
|
6898
|
+
else if (output["ExcludedMembers"] !== undefined && output["ExcludedMembers"]["member"] !== undefined) {
|
|
6439
6899
|
contents.ExcludedMembers = deserializeAws_queryStringList((0, smithy_client_1.getArrayIfSingleItem)(output["ExcludedMembers"]["member"]), context);
|
|
6440
6900
|
}
|
|
6441
6901
|
if (output["DBClusterEndpointArn"] !== undefined) {
|
|
@@ -6473,7 +6933,7 @@ const deserializeAws_queryDBClusterEndpointMessage = (output, context) => {
|
|
|
6473
6933
|
if (output.DBClusterEndpoints === "") {
|
|
6474
6934
|
contents.DBClusterEndpoints = [];
|
|
6475
6935
|
}
|
|
6476
|
-
if (output["DBClusterEndpoints"] !== undefined &&
|
|
6936
|
+
else if (output["DBClusterEndpoints"] !== undefined &&
|
|
6477
6937
|
output["DBClusterEndpoints"]["DBClusterEndpointList"] !== undefined) {
|
|
6478
6938
|
contents.DBClusterEndpoints = deserializeAws_queryDBClusterEndpointList((0, smithy_client_1.getArrayIfSingleItem)(output["DBClusterEndpoints"]["DBClusterEndpointList"]), context);
|
|
6479
6939
|
}
|
|
@@ -6549,7 +7009,7 @@ const deserializeAws_queryDBClusterMessage = (output, context) => {
|
|
|
6549
7009
|
if (output.DBClusters === "") {
|
|
6550
7010
|
contents.DBClusters = [];
|
|
6551
7011
|
}
|
|
6552
|
-
if (output["DBClusters"] !== undefined && output["DBClusters"]["DBCluster"] !== undefined) {
|
|
7012
|
+
else if (output["DBClusters"] !== undefined && output["DBClusters"]["DBCluster"] !== undefined) {
|
|
6553
7013
|
contents.DBClusters = deserializeAws_queryDBClusterList((0, smithy_client_1.getArrayIfSingleItem)(output["DBClusters"]["DBCluster"]), context);
|
|
6554
7014
|
}
|
|
6555
7015
|
return contents;
|
|
@@ -6615,7 +7075,7 @@ const deserializeAws_queryDBClusterParameterGroupDetails = (output, context) =>
|
|
|
6615
7075
|
if (output.Parameters === "") {
|
|
6616
7076
|
contents.Parameters = [];
|
|
6617
7077
|
}
|
|
6618
|
-
if (output["Parameters"] !== undefined && output["Parameters"]["Parameter"] !== undefined) {
|
|
7078
|
+
else if (output["Parameters"] !== undefined && output["Parameters"]["Parameter"] !== undefined) {
|
|
6619
7079
|
contents.Parameters = deserializeAws_queryParametersList((0, smithy_client_1.getArrayIfSingleItem)(output["Parameters"]["Parameter"]), context);
|
|
6620
7080
|
}
|
|
6621
7081
|
if (output["Marker"] !== undefined) {
|
|
@@ -6662,7 +7122,7 @@ const deserializeAws_queryDBClusterParameterGroupsMessage = (output, context) =>
|
|
|
6662
7122
|
if (output.DBClusterParameterGroups === "") {
|
|
6663
7123
|
contents.DBClusterParameterGroups = [];
|
|
6664
7124
|
}
|
|
6665
|
-
if (output["DBClusterParameterGroups"] !== undefined &&
|
|
7125
|
+
else if (output["DBClusterParameterGroups"] !== undefined &&
|
|
6666
7126
|
output["DBClusterParameterGroups"]["DBClusterParameterGroup"] !== undefined) {
|
|
6667
7127
|
contents.DBClusterParameterGroups = deserializeAws_queryDBClusterParameterGroupList((0, smithy_client_1.getArrayIfSingleItem)(output["DBClusterParameterGroups"]["DBClusterParameterGroup"]), context);
|
|
6668
7128
|
}
|
|
@@ -6757,7 +7217,8 @@ const deserializeAws_queryDBClusterSnapshot = (output, context) => {
|
|
|
6757
7217
|
if (output.AvailabilityZones === "") {
|
|
6758
7218
|
contents.AvailabilityZones = [];
|
|
6759
7219
|
}
|
|
6760
|
-
if (output["AvailabilityZones"] !== undefined &&
|
|
7220
|
+
else if (output["AvailabilityZones"] !== undefined &&
|
|
7221
|
+
output["AvailabilityZones"]["AvailabilityZone"] !== undefined) {
|
|
6761
7222
|
contents.AvailabilityZones = deserializeAws_queryAvailabilityZones((0, smithy_client_1.getArrayIfSingleItem)(output["AvailabilityZones"]["AvailabilityZone"]), context);
|
|
6762
7223
|
}
|
|
6763
7224
|
if (output["DBClusterSnapshotIdentifier"] !== undefined) {
|
|
@@ -6839,7 +7300,7 @@ const deserializeAws_queryDBClusterSnapshotAttribute = (output, context) => {
|
|
|
6839
7300
|
if (output.AttributeValues === "") {
|
|
6840
7301
|
contents.AttributeValues = [];
|
|
6841
7302
|
}
|
|
6842
|
-
if (output["AttributeValues"] !== undefined && output["AttributeValues"]["AttributeValue"] !== undefined) {
|
|
7303
|
+
else if (output["AttributeValues"] !== undefined && output["AttributeValues"]["AttributeValue"] !== undefined) {
|
|
6843
7304
|
contents.AttributeValues = deserializeAws_queryAttributeValueList((0, smithy_client_1.getArrayIfSingleItem)(output["AttributeValues"]["AttributeValue"]), context);
|
|
6844
7305
|
}
|
|
6845
7306
|
return contents;
|
|
@@ -6865,7 +7326,7 @@ const deserializeAws_queryDBClusterSnapshotAttributesResult = (output, context)
|
|
|
6865
7326
|
if (output.DBClusterSnapshotAttributes === "") {
|
|
6866
7327
|
contents.DBClusterSnapshotAttributes = [];
|
|
6867
7328
|
}
|
|
6868
|
-
if (output["DBClusterSnapshotAttributes"] !== undefined &&
|
|
7329
|
+
else if (output["DBClusterSnapshotAttributes"] !== undefined &&
|
|
6869
7330
|
output["DBClusterSnapshotAttributes"]["DBClusterSnapshotAttribute"] !== undefined) {
|
|
6870
7331
|
contents.DBClusterSnapshotAttributes = deserializeAws_queryDBClusterSnapshotAttributeList((0, smithy_client_1.getArrayIfSingleItem)(output["DBClusterSnapshotAttributes"]["DBClusterSnapshotAttribute"]), context);
|
|
6871
7332
|
}
|
|
@@ -6892,7 +7353,8 @@ const deserializeAws_queryDBClusterSnapshotMessage = (output, context) => {
|
|
|
6892
7353
|
if (output.DBClusterSnapshots === "") {
|
|
6893
7354
|
contents.DBClusterSnapshots = [];
|
|
6894
7355
|
}
|
|
6895
|
-
if (output["DBClusterSnapshots"] !== undefined &&
|
|
7356
|
+
else if (output["DBClusterSnapshots"] !== undefined &&
|
|
7357
|
+
output["DBClusterSnapshots"]["DBClusterSnapshot"] !== undefined) {
|
|
6896
7358
|
contents.DBClusterSnapshots = deserializeAws_queryDBClusterSnapshotList((0, smithy_client_1.getArrayIfSingleItem)(output["DBClusterSnapshots"]["DBClusterSnapshot"]), context);
|
|
6897
7359
|
}
|
|
6898
7360
|
return contents;
|
|
@@ -6920,6 +7382,7 @@ const deserializeAws_queryDBEngineVersion = (output, context) => {
|
|
|
6920
7382
|
ExportableLogTypes: undefined,
|
|
6921
7383
|
SupportsLogExportsToCloudwatchLogs: undefined,
|
|
6922
7384
|
SupportsReadReplica: undefined,
|
|
7385
|
+
SupportsGlobalDatabases: undefined,
|
|
6923
7386
|
};
|
|
6924
7387
|
if (output["Engine"] !== undefined) {
|
|
6925
7388
|
contents.Engine = (0, smithy_client_1.expectString)(output["Engine"]);
|
|
@@ -6942,26 +7405,27 @@ const deserializeAws_queryDBEngineVersion = (output, context) => {
|
|
|
6942
7405
|
if (output.SupportedCharacterSets === "") {
|
|
6943
7406
|
contents.SupportedCharacterSets = [];
|
|
6944
7407
|
}
|
|
6945
|
-
if (output["SupportedCharacterSets"] !== undefined &&
|
|
7408
|
+
else if (output["SupportedCharacterSets"] !== undefined &&
|
|
6946
7409
|
output["SupportedCharacterSets"]["CharacterSet"] !== undefined) {
|
|
6947
7410
|
contents.SupportedCharacterSets = deserializeAws_querySupportedCharacterSetsList((0, smithy_client_1.getArrayIfSingleItem)(output["SupportedCharacterSets"]["CharacterSet"]), context);
|
|
6948
7411
|
}
|
|
6949
7412
|
if (output.ValidUpgradeTarget === "") {
|
|
6950
7413
|
contents.ValidUpgradeTarget = [];
|
|
6951
7414
|
}
|
|
6952
|
-
if (output["ValidUpgradeTarget"] !== undefined &&
|
|
7415
|
+
else if (output["ValidUpgradeTarget"] !== undefined &&
|
|
7416
|
+
output["ValidUpgradeTarget"]["UpgradeTarget"] !== undefined) {
|
|
6953
7417
|
contents.ValidUpgradeTarget = deserializeAws_queryValidUpgradeTargetList((0, smithy_client_1.getArrayIfSingleItem)(output["ValidUpgradeTarget"]["UpgradeTarget"]), context);
|
|
6954
7418
|
}
|
|
6955
7419
|
if (output.SupportedTimezones === "") {
|
|
6956
7420
|
contents.SupportedTimezones = [];
|
|
6957
7421
|
}
|
|
6958
|
-
if (output["SupportedTimezones"] !== undefined && output["SupportedTimezones"]["Timezone"] !== undefined) {
|
|
7422
|
+
else if (output["SupportedTimezones"] !== undefined && output["SupportedTimezones"]["Timezone"] !== undefined) {
|
|
6959
7423
|
contents.SupportedTimezones = deserializeAws_querySupportedTimezonesList((0, smithy_client_1.getArrayIfSingleItem)(output["SupportedTimezones"]["Timezone"]), context);
|
|
6960
7424
|
}
|
|
6961
7425
|
if (output.ExportableLogTypes === "") {
|
|
6962
7426
|
contents.ExportableLogTypes = [];
|
|
6963
7427
|
}
|
|
6964
|
-
if (output["ExportableLogTypes"] !== undefined && output["ExportableLogTypes"]["member"] !== undefined) {
|
|
7428
|
+
else if (output["ExportableLogTypes"] !== undefined && output["ExportableLogTypes"]["member"] !== undefined) {
|
|
6965
7429
|
contents.ExportableLogTypes = deserializeAws_queryLogTypeList((0, smithy_client_1.getArrayIfSingleItem)(output["ExportableLogTypes"]["member"]), context);
|
|
6966
7430
|
}
|
|
6967
7431
|
if (output["SupportsLogExportsToCloudwatchLogs"] !== undefined) {
|
|
@@ -6970,6 +7434,9 @@ const deserializeAws_queryDBEngineVersion = (output, context) => {
|
|
|
6970
7434
|
if (output["SupportsReadReplica"] !== undefined) {
|
|
6971
7435
|
contents.SupportsReadReplica = (0, smithy_client_1.parseBoolean)(output["SupportsReadReplica"]);
|
|
6972
7436
|
}
|
|
7437
|
+
if (output["SupportsGlobalDatabases"] !== undefined) {
|
|
7438
|
+
contents.SupportsGlobalDatabases = (0, smithy_client_1.parseBoolean)(output["SupportsGlobalDatabases"]);
|
|
7439
|
+
}
|
|
6973
7440
|
return contents;
|
|
6974
7441
|
};
|
|
6975
7442
|
const deserializeAws_queryDBEngineVersionList = (output, context) => {
|
|
@@ -6993,7 +7460,7 @@ const deserializeAws_queryDBEngineVersionMessage = (output, context) => {
|
|
|
6993
7460
|
if (output.DBEngineVersions === "") {
|
|
6994
7461
|
contents.DBEngineVersions = [];
|
|
6995
7462
|
}
|
|
6996
|
-
if (output["DBEngineVersions"] !== undefined && output["DBEngineVersions"]["DBEngineVersion"] !== undefined) {
|
|
7463
|
+
else if (output["DBEngineVersions"] !== undefined && output["DBEngineVersions"]["DBEngineVersion"] !== undefined) {
|
|
6997
7464
|
contents.DBEngineVersions = deserializeAws_queryDBEngineVersionList((0, smithy_client_1.getArrayIfSingleItem)(output["DBEngineVersions"]["DBEngineVersion"]), context);
|
|
6998
7465
|
}
|
|
6999
7466
|
return contents;
|
|
@@ -7090,20 +7557,21 @@ const deserializeAws_queryDBInstance = (output, context) => {
|
|
|
7090
7557
|
if (output.DBSecurityGroups === "") {
|
|
7091
7558
|
contents.DBSecurityGroups = [];
|
|
7092
7559
|
}
|
|
7093
|
-
if (output["DBSecurityGroups"] !== undefined && output["DBSecurityGroups"]["DBSecurityGroup"] !== undefined) {
|
|
7560
|
+
else if (output["DBSecurityGroups"] !== undefined && output["DBSecurityGroups"]["DBSecurityGroup"] !== undefined) {
|
|
7094
7561
|
contents.DBSecurityGroups = deserializeAws_queryDBSecurityGroupMembershipList((0, smithy_client_1.getArrayIfSingleItem)(output["DBSecurityGroups"]["DBSecurityGroup"]), context);
|
|
7095
7562
|
}
|
|
7096
7563
|
if (output.VpcSecurityGroups === "") {
|
|
7097
7564
|
contents.VpcSecurityGroups = [];
|
|
7098
7565
|
}
|
|
7099
|
-
if (output["VpcSecurityGroups"] !== undefined &&
|
|
7566
|
+
else if (output["VpcSecurityGroups"] !== undefined &&
|
|
7100
7567
|
output["VpcSecurityGroups"]["VpcSecurityGroupMembership"] !== undefined) {
|
|
7101
7568
|
contents.VpcSecurityGroups = deserializeAws_queryVpcSecurityGroupMembershipList((0, smithy_client_1.getArrayIfSingleItem)(output["VpcSecurityGroups"]["VpcSecurityGroupMembership"]), context);
|
|
7102
7569
|
}
|
|
7103
7570
|
if (output.DBParameterGroups === "") {
|
|
7104
7571
|
contents.DBParameterGroups = [];
|
|
7105
7572
|
}
|
|
7106
|
-
if (output["DBParameterGroups"] !== undefined &&
|
|
7573
|
+
else if (output["DBParameterGroups"] !== undefined &&
|
|
7574
|
+
output["DBParameterGroups"]["DBParameterGroup"] !== undefined) {
|
|
7107
7575
|
contents.DBParameterGroups = deserializeAws_queryDBParameterGroupStatusList((0, smithy_client_1.getArrayIfSingleItem)(output["DBParameterGroups"]["DBParameterGroup"]), context);
|
|
7108
7576
|
}
|
|
7109
7577
|
if (output["AvailabilityZone"] !== undefined) {
|
|
@@ -7136,14 +7604,14 @@ const deserializeAws_queryDBInstance = (output, context) => {
|
|
|
7136
7604
|
if (output.ReadReplicaDBInstanceIdentifiers === "") {
|
|
7137
7605
|
contents.ReadReplicaDBInstanceIdentifiers = [];
|
|
7138
7606
|
}
|
|
7139
|
-
if (output["ReadReplicaDBInstanceIdentifiers"] !== undefined &&
|
|
7607
|
+
else if (output["ReadReplicaDBInstanceIdentifiers"] !== undefined &&
|
|
7140
7608
|
output["ReadReplicaDBInstanceIdentifiers"]["ReadReplicaDBInstanceIdentifier"] !== undefined) {
|
|
7141
7609
|
contents.ReadReplicaDBInstanceIdentifiers = deserializeAws_queryReadReplicaDBInstanceIdentifierList((0, smithy_client_1.getArrayIfSingleItem)(output["ReadReplicaDBInstanceIdentifiers"]["ReadReplicaDBInstanceIdentifier"]), context);
|
|
7142
7610
|
}
|
|
7143
7611
|
if (output.ReadReplicaDBClusterIdentifiers === "") {
|
|
7144
7612
|
contents.ReadReplicaDBClusterIdentifiers = [];
|
|
7145
7613
|
}
|
|
7146
|
-
if (output["ReadReplicaDBClusterIdentifiers"] !== undefined &&
|
|
7614
|
+
else if (output["ReadReplicaDBClusterIdentifiers"] !== undefined &&
|
|
7147
7615
|
output["ReadReplicaDBClusterIdentifiers"]["ReadReplicaDBClusterIdentifier"] !== undefined) {
|
|
7148
7616
|
contents.ReadReplicaDBClusterIdentifiers = deserializeAws_queryReadReplicaDBClusterIdentifierList((0, smithy_client_1.getArrayIfSingleItem)(output["ReadReplicaDBClusterIdentifiers"]["ReadReplicaDBClusterIdentifier"]), context);
|
|
7149
7617
|
}
|
|
@@ -7156,7 +7624,7 @@ const deserializeAws_queryDBInstance = (output, context) => {
|
|
|
7156
7624
|
if (output.OptionGroupMemberships === "") {
|
|
7157
7625
|
contents.OptionGroupMemberships = [];
|
|
7158
7626
|
}
|
|
7159
|
-
if (output["OptionGroupMemberships"] !== undefined &&
|
|
7627
|
+
else if (output["OptionGroupMemberships"] !== undefined &&
|
|
7160
7628
|
output["OptionGroupMemberships"]["OptionGroupMembership"] !== undefined) {
|
|
7161
7629
|
contents.OptionGroupMemberships = deserializeAws_queryOptionGroupMembershipList((0, smithy_client_1.getArrayIfSingleItem)(output["OptionGroupMemberships"]["OptionGroupMembership"]), context);
|
|
7162
7630
|
}
|
|
@@ -7172,7 +7640,7 @@ const deserializeAws_queryDBInstance = (output, context) => {
|
|
|
7172
7640
|
if (output.StatusInfos === "") {
|
|
7173
7641
|
contents.StatusInfos = [];
|
|
7174
7642
|
}
|
|
7175
|
-
if (output["StatusInfos"] !== undefined && output["StatusInfos"]["DBInstanceStatusInfo"] !== undefined) {
|
|
7643
|
+
else if (output["StatusInfos"] !== undefined && output["StatusInfos"]["DBInstanceStatusInfo"] !== undefined) {
|
|
7176
7644
|
contents.StatusInfos = deserializeAws_queryDBInstanceStatusInfoList((0, smithy_client_1.getArrayIfSingleItem)(output["StatusInfos"]["DBInstanceStatusInfo"]), context);
|
|
7177
7645
|
}
|
|
7178
7646
|
if (output["StorageType"] !== undefined) {
|
|
@@ -7202,7 +7670,8 @@ const deserializeAws_queryDBInstance = (output, context) => {
|
|
|
7202
7670
|
if (output.DomainMemberships === "") {
|
|
7203
7671
|
contents.DomainMemberships = [];
|
|
7204
7672
|
}
|
|
7205
|
-
if (output["DomainMemberships"] !== undefined &&
|
|
7673
|
+
else if (output["DomainMemberships"] !== undefined &&
|
|
7674
|
+
output["DomainMemberships"]["DomainMembership"] !== undefined) {
|
|
7206
7675
|
contents.DomainMemberships = deserializeAws_queryDomainMembershipList((0, smithy_client_1.getArrayIfSingleItem)(output["DomainMemberships"]["DomainMembership"]), context);
|
|
7207
7676
|
}
|
|
7208
7677
|
if (output["CopyTagsToSnapshot"] !== undefined) {
|
|
@@ -7238,7 +7707,7 @@ const deserializeAws_queryDBInstance = (output, context) => {
|
|
|
7238
7707
|
if (output.EnabledCloudwatchLogsExports === "") {
|
|
7239
7708
|
contents.EnabledCloudwatchLogsExports = [];
|
|
7240
7709
|
}
|
|
7241
|
-
if (output["EnabledCloudwatchLogsExports"] !== undefined &&
|
|
7710
|
+
else if (output["EnabledCloudwatchLogsExports"] !== undefined &&
|
|
7242
7711
|
output["EnabledCloudwatchLogsExports"]["member"] !== undefined) {
|
|
7243
7712
|
contents.EnabledCloudwatchLogsExports = deserializeAws_queryLogTypeList((0, smithy_client_1.getArrayIfSingleItem)(output["EnabledCloudwatchLogsExports"]["member"]), context);
|
|
7244
7713
|
}
|
|
@@ -7277,7 +7746,7 @@ const deserializeAws_queryDBInstanceMessage = (output, context) => {
|
|
|
7277
7746
|
if (output.DBInstances === "") {
|
|
7278
7747
|
contents.DBInstances = [];
|
|
7279
7748
|
}
|
|
7280
|
-
if (output["DBInstances"] !== undefined && output["DBInstances"]["DBInstance"] !== undefined) {
|
|
7749
|
+
else if (output["DBInstances"] !== undefined && output["DBInstances"]["DBInstance"] !== undefined) {
|
|
7281
7750
|
contents.DBInstances = deserializeAws_queryDBInstanceList((0, smithy_client_1.getArrayIfSingleItem)(output["DBInstances"]["DBInstance"]), context);
|
|
7282
7751
|
}
|
|
7283
7752
|
return contents;
|
|
@@ -7360,7 +7829,7 @@ const deserializeAws_queryDBParameterGroupDetails = (output, context) => {
|
|
|
7360
7829
|
if (output.Parameters === "") {
|
|
7361
7830
|
contents.Parameters = [];
|
|
7362
7831
|
}
|
|
7363
|
-
if (output["Parameters"] !== undefined && output["Parameters"]["Parameter"] !== undefined) {
|
|
7832
|
+
else if (output["Parameters"] !== undefined && output["Parameters"]["Parameter"] !== undefined) {
|
|
7364
7833
|
contents.Parameters = deserializeAws_queryParametersList((0, smithy_client_1.getArrayIfSingleItem)(output["Parameters"]["Parameter"]), context);
|
|
7365
7834
|
}
|
|
7366
7835
|
if (output["Marker"] !== undefined) {
|
|
@@ -7416,7 +7885,8 @@ const deserializeAws_queryDBParameterGroupsMessage = (output, context) => {
|
|
|
7416
7885
|
if (output.DBParameterGroups === "") {
|
|
7417
7886
|
contents.DBParameterGroups = [];
|
|
7418
7887
|
}
|
|
7419
|
-
if (output["DBParameterGroups"] !== undefined &&
|
|
7888
|
+
else if (output["DBParameterGroups"] !== undefined &&
|
|
7889
|
+
output["DBParameterGroups"]["DBParameterGroup"] !== undefined) {
|
|
7420
7890
|
contents.DBParameterGroups = deserializeAws_queryDBParameterGroupList((0, smithy_client_1.getArrayIfSingleItem)(output["DBParameterGroups"]["DBParameterGroup"]), context);
|
|
7421
7891
|
}
|
|
7422
7892
|
return contents;
|
|
@@ -7518,7 +7988,7 @@ const deserializeAws_queryDBSubnetGroup = (output, context) => {
|
|
|
7518
7988
|
if (output.Subnets === "") {
|
|
7519
7989
|
contents.Subnets = [];
|
|
7520
7990
|
}
|
|
7521
|
-
if (output["Subnets"] !== undefined && output["Subnets"]["Subnet"] !== undefined) {
|
|
7991
|
+
else if (output["Subnets"] !== undefined && output["Subnets"]["Subnet"] !== undefined) {
|
|
7522
7992
|
contents.Subnets = deserializeAws_querySubnetList((0, smithy_client_1.getArrayIfSingleItem)(output["Subnets"]["Subnet"]), context);
|
|
7523
7993
|
}
|
|
7524
7994
|
if (output["DBSubnetGroupArn"] !== undefined) {
|
|
@@ -7555,7 +8025,7 @@ const deserializeAws_queryDBSubnetGroupMessage = (output, context) => {
|
|
|
7555
8025
|
if (output.DBSubnetGroups === "") {
|
|
7556
8026
|
contents.DBSubnetGroups = [];
|
|
7557
8027
|
}
|
|
7558
|
-
if (output["DBSubnetGroups"] !== undefined && output["DBSubnetGroups"]["DBSubnetGroup"] !== undefined) {
|
|
8028
|
+
else if (output["DBSubnetGroups"] !== undefined && output["DBSubnetGroups"]["DBSubnetGroup"] !== undefined) {
|
|
7559
8029
|
contents.DBSubnetGroups = deserializeAws_queryDBSubnetGroups((0, smithy_client_1.getArrayIfSingleItem)(output["DBSubnetGroups"]["DBSubnetGroup"]), context);
|
|
7560
8030
|
}
|
|
7561
8031
|
return contents;
|
|
@@ -7643,13 +8113,13 @@ const deserializeAws_queryDeleteDBClusterEndpointOutput = (output, context) => {
|
|
|
7643
8113
|
if (output.StaticMembers === "") {
|
|
7644
8114
|
contents.StaticMembers = [];
|
|
7645
8115
|
}
|
|
7646
|
-
if (output["StaticMembers"] !== undefined && output["StaticMembers"]["member"] !== undefined) {
|
|
8116
|
+
else if (output["StaticMembers"] !== undefined && output["StaticMembers"]["member"] !== undefined) {
|
|
7647
8117
|
contents.StaticMembers = deserializeAws_queryStringList((0, smithy_client_1.getArrayIfSingleItem)(output["StaticMembers"]["member"]), context);
|
|
7648
8118
|
}
|
|
7649
8119
|
if (output.ExcludedMembers === "") {
|
|
7650
8120
|
contents.ExcludedMembers = [];
|
|
7651
8121
|
}
|
|
7652
|
-
if (output["ExcludedMembers"] !== undefined && output["ExcludedMembers"]["member"] !== undefined) {
|
|
8122
|
+
else if (output["ExcludedMembers"] !== undefined && output["ExcludedMembers"]["member"] !== undefined) {
|
|
7653
8123
|
contents.ExcludedMembers = deserializeAws_queryStringList((0, smithy_client_1.getArrayIfSingleItem)(output["ExcludedMembers"]["member"]), context);
|
|
7654
8124
|
}
|
|
7655
8125
|
if (output["DBClusterEndpointArn"] !== undefined) {
|
|
@@ -7693,6 +8163,15 @@ const deserializeAws_queryDeleteEventSubscriptionResult = (output, context) => {
|
|
|
7693
8163
|
}
|
|
7694
8164
|
return contents;
|
|
7695
8165
|
};
|
|
8166
|
+
const deserializeAws_queryDeleteGlobalClusterResult = (output, context) => {
|
|
8167
|
+
const contents = {
|
|
8168
|
+
GlobalCluster: undefined,
|
|
8169
|
+
};
|
|
8170
|
+
if (output["GlobalCluster"] !== undefined) {
|
|
8171
|
+
contents.GlobalCluster = deserializeAws_queryGlobalCluster(output["GlobalCluster"], context);
|
|
8172
|
+
}
|
|
8173
|
+
return contents;
|
|
8174
|
+
};
|
|
7696
8175
|
const deserializeAws_queryDescribeDBClusterSnapshotAttributesResult = (output, context) => {
|
|
7697
8176
|
const contents = {
|
|
7698
8177
|
DBClusterSnapshotAttributesResult: undefined,
|
|
@@ -7824,7 +8303,7 @@ const deserializeAws_queryEngineDefaults = (output, context) => {
|
|
|
7824
8303
|
if (output.Parameters === "") {
|
|
7825
8304
|
contents.Parameters = [];
|
|
7826
8305
|
}
|
|
7827
|
-
if (output["Parameters"] !== undefined && output["Parameters"]["Parameter"] !== undefined) {
|
|
8306
|
+
else if (output["Parameters"] !== undefined && output["Parameters"]["Parameter"] !== undefined) {
|
|
7828
8307
|
contents.Parameters = deserializeAws_queryParametersList((0, smithy_client_1.getArrayIfSingleItem)(output["Parameters"]["Parameter"]), context);
|
|
7829
8308
|
}
|
|
7830
8309
|
return contents;
|
|
@@ -7850,7 +8329,7 @@ const deserializeAws_queryEvent = (output, context) => {
|
|
|
7850
8329
|
if (output.EventCategories === "") {
|
|
7851
8330
|
contents.EventCategories = [];
|
|
7852
8331
|
}
|
|
7853
|
-
if (output["EventCategories"] !== undefined && output["EventCategories"]["EventCategory"] !== undefined) {
|
|
8332
|
+
else if (output["EventCategories"] !== undefined && output["EventCategories"]["EventCategory"] !== undefined) {
|
|
7854
8333
|
contents.EventCategories = deserializeAws_queryEventCategoriesList((0, smithy_client_1.getArrayIfSingleItem)(output["EventCategories"]["EventCategory"]), context);
|
|
7855
8334
|
}
|
|
7856
8335
|
if (output["Date"] !== undefined) {
|
|
@@ -7882,7 +8361,7 @@ const deserializeAws_queryEventCategoriesMap = (output, context) => {
|
|
|
7882
8361
|
if (output.EventCategories === "") {
|
|
7883
8362
|
contents.EventCategories = [];
|
|
7884
8363
|
}
|
|
7885
|
-
if (output["EventCategories"] !== undefined && output["EventCategories"]["EventCategory"] !== undefined) {
|
|
8364
|
+
else if (output["EventCategories"] !== undefined && output["EventCategories"]["EventCategory"] !== undefined) {
|
|
7886
8365
|
contents.EventCategories = deserializeAws_queryEventCategoriesList((0, smithy_client_1.getArrayIfSingleItem)(output["EventCategories"]["EventCategory"]), context);
|
|
7887
8366
|
}
|
|
7888
8367
|
return contents;
|
|
@@ -7904,7 +8383,7 @@ const deserializeAws_queryEventCategoriesMessage = (output, context) => {
|
|
|
7904
8383
|
if (output.EventCategoriesMapList === "") {
|
|
7905
8384
|
contents.EventCategoriesMapList = [];
|
|
7906
8385
|
}
|
|
7907
|
-
if (output["EventCategoriesMapList"] !== undefined &&
|
|
8386
|
+
else if (output["EventCategoriesMapList"] !== undefined &&
|
|
7908
8387
|
output["EventCategoriesMapList"]["EventCategoriesMap"] !== undefined) {
|
|
7909
8388
|
contents.EventCategoriesMapList = deserializeAws_queryEventCategoriesMapList((0, smithy_client_1.getArrayIfSingleItem)(output["EventCategoriesMapList"]["EventCategoriesMap"]), context);
|
|
7910
8389
|
}
|
|
@@ -7931,7 +8410,7 @@ const deserializeAws_queryEventsMessage = (output, context) => {
|
|
|
7931
8410
|
if (output.Events === "") {
|
|
7932
8411
|
contents.Events = [];
|
|
7933
8412
|
}
|
|
7934
|
-
if (output["Events"] !== undefined && output["Events"]["Event"] !== undefined) {
|
|
8413
|
+
else if (output["Events"] !== undefined && output["Events"]["Event"] !== undefined) {
|
|
7935
8414
|
contents.Events = deserializeAws_queryEventList((0, smithy_client_1.getArrayIfSingleItem)(output["Events"]["Event"]), context);
|
|
7936
8415
|
}
|
|
7937
8416
|
return contents;
|
|
@@ -7970,13 +8449,14 @@ const deserializeAws_queryEventSubscription = (output, context) => {
|
|
|
7970
8449
|
if (output.SourceIdsList === "") {
|
|
7971
8450
|
contents.SourceIdsList = [];
|
|
7972
8451
|
}
|
|
7973
|
-
if (output["SourceIdsList"] !== undefined && output["SourceIdsList"]["SourceId"] !== undefined) {
|
|
8452
|
+
else if (output["SourceIdsList"] !== undefined && output["SourceIdsList"]["SourceId"] !== undefined) {
|
|
7974
8453
|
contents.SourceIdsList = deserializeAws_querySourceIdsList((0, smithy_client_1.getArrayIfSingleItem)(output["SourceIdsList"]["SourceId"]), context);
|
|
7975
8454
|
}
|
|
7976
8455
|
if (output.EventCategoriesList === "") {
|
|
7977
8456
|
contents.EventCategoriesList = [];
|
|
7978
8457
|
}
|
|
7979
|
-
if (output["EventCategoriesList"] !== undefined &&
|
|
8458
|
+
else if (output["EventCategoriesList"] !== undefined &&
|
|
8459
|
+
output["EventCategoriesList"]["EventCategory"] !== undefined) {
|
|
7980
8460
|
contents.EventCategoriesList = deserializeAws_queryEventCategoriesList((0, smithy_client_1.getArrayIfSingleItem)(output["EventCategoriesList"]["EventCategory"]), context);
|
|
7981
8461
|
}
|
|
7982
8462
|
if (output["Enabled"] !== undefined) {
|
|
@@ -8017,7 +8497,7 @@ const deserializeAws_queryEventSubscriptionsMessage = (output, context) => {
|
|
|
8017
8497
|
if (output.EventSubscriptionsList === "") {
|
|
8018
8498
|
contents.EventSubscriptionsList = [];
|
|
8019
8499
|
}
|
|
8020
|
-
if (output["EventSubscriptionsList"] !== undefined &&
|
|
8500
|
+
else if (output["EventSubscriptionsList"] !== undefined &&
|
|
8021
8501
|
output["EventSubscriptionsList"]["EventSubscription"] !== undefined) {
|
|
8022
8502
|
contents.EventSubscriptionsList = deserializeAws_queryEventSubscriptionsList((0, smithy_client_1.getArrayIfSingleItem)(output["EventSubscriptionsList"]["EventSubscription"]), context);
|
|
8023
8503
|
}
|
|
@@ -8032,6 +8512,143 @@ const deserializeAws_queryFailoverDBClusterResult = (output, context) => {
|
|
|
8032
8512
|
}
|
|
8033
8513
|
return contents;
|
|
8034
8514
|
};
|
|
8515
|
+
const deserializeAws_queryFailoverGlobalClusterResult = (output, context) => {
|
|
8516
|
+
const contents = {
|
|
8517
|
+
GlobalCluster: undefined,
|
|
8518
|
+
};
|
|
8519
|
+
if (output["GlobalCluster"] !== undefined) {
|
|
8520
|
+
contents.GlobalCluster = deserializeAws_queryGlobalCluster(output["GlobalCluster"], context);
|
|
8521
|
+
}
|
|
8522
|
+
return contents;
|
|
8523
|
+
};
|
|
8524
|
+
const deserializeAws_queryGlobalCluster = (output, context) => {
|
|
8525
|
+
const contents = {
|
|
8526
|
+
GlobalClusterIdentifier: undefined,
|
|
8527
|
+
GlobalClusterResourceId: undefined,
|
|
8528
|
+
GlobalClusterArn: undefined,
|
|
8529
|
+
Status: undefined,
|
|
8530
|
+
Engine: undefined,
|
|
8531
|
+
EngineVersion: undefined,
|
|
8532
|
+
StorageEncrypted: undefined,
|
|
8533
|
+
DeletionProtection: undefined,
|
|
8534
|
+
GlobalClusterMembers: undefined,
|
|
8535
|
+
};
|
|
8536
|
+
if (output["GlobalClusterIdentifier"] !== undefined) {
|
|
8537
|
+
contents.GlobalClusterIdentifier = (0, smithy_client_1.expectString)(output["GlobalClusterIdentifier"]);
|
|
8538
|
+
}
|
|
8539
|
+
if (output["GlobalClusterResourceId"] !== undefined) {
|
|
8540
|
+
contents.GlobalClusterResourceId = (0, smithy_client_1.expectString)(output["GlobalClusterResourceId"]);
|
|
8541
|
+
}
|
|
8542
|
+
if (output["GlobalClusterArn"] !== undefined) {
|
|
8543
|
+
contents.GlobalClusterArn = (0, smithy_client_1.expectString)(output["GlobalClusterArn"]);
|
|
8544
|
+
}
|
|
8545
|
+
if (output["Status"] !== undefined) {
|
|
8546
|
+
contents.Status = (0, smithy_client_1.expectString)(output["Status"]);
|
|
8547
|
+
}
|
|
8548
|
+
if (output["Engine"] !== undefined) {
|
|
8549
|
+
contents.Engine = (0, smithy_client_1.expectString)(output["Engine"]);
|
|
8550
|
+
}
|
|
8551
|
+
if (output["EngineVersion"] !== undefined) {
|
|
8552
|
+
contents.EngineVersion = (0, smithy_client_1.expectString)(output["EngineVersion"]);
|
|
8553
|
+
}
|
|
8554
|
+
if (output["StorageEncrypted"] !== undefined) {
|
|
8555
|
+
contents.StorageEncrypted = (0, smithy_client_1.parseBoolean)(output["StorageEncrypted"]);
|
|
8556
|
+
}
|
|
8557
|
+
if (output["DeletionProtection"] !== undefined) {
|
|
8558
|
+
contents.DeletionProtection = (0, smithy_client_1.parseBoolean)(output["DeletionProtection"]);
|
|
8559
|
+
}
|
|
8560
|
+
if (output.GlobalClusterMembers === "") {
|
|
8561
|
+
contents.GlobalClusterMembers = [];
|
|
8562
|
+
}
|
|
8563
|
+
else if (output["GlobalClusterMembers"] !== undefined &&
|
|
8564
|
+
output["GlobalClusterMembers"]["GlobalClusterMember"] !== undefined) {
|
|
8565
|
+
contents.GlobalClusterMembers = deserializeAws_queryGlobalClusterMemberList((0, smithy_client_1.getArrayIfSingleItem)(output["GlobalClusterMembers"]["GlobalClusterMember"]), context);
|
|
8566
|
+
}
|
|
8567
|
+
return contents;
|
|
8568
|
+
};
|
|
8569
|
+
const deserializeAws_queryGlobalClusterAlreadyExistsFault = (output, context) => {
|
|
8570
|
+
const contents = {
|
|
8571
|
+
message: undefined,
|
|
8572
|
+
};
|
|
8573
|
+
if (output["message"] !== undefined) {
|
|
8574
|
+
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
8575
|
+
}
|
|
8576
|
+
return contents;
|
|
8577
|
+
};
|
|
8578
|
+
const deserializeAws_queryGlobalClusterList = (output, context) => {
|
|
8579
|
+
return (output || [])
|
|
8580
|
+
.filter((e) => e != null)
|
|
8581
|
+
.map((entry) => {
|
|
8582
|
+
if (entry === null) {
|
|
8583
|
+
return null;
|
|
8584
|
+
}
|
|
8585
|
+
return deserializeAws_queryGlobalCluster(entry, context);
|
|
8586
|
+
});
|
|
8587
|
+
};
|
|
8588
|
+
const deserializeAws_queryGlobalClusterMember = (output, context) => {
|
|
8589
|
+
const contents = {
|
|
8590
|
+
DBClusterArn: undefined,
|
|
8591
|
+
Readers: undefined,
|
|
8592
|
+
IsWriter: undefined,
|
|
8593
|
+
};
|
|
8594
|
+
if (output["DBClusterArn"] !== undefined) {
|
|
8595
|
+
contents.DBClusterArn = (0, smithy_client_1.expectString)(output["DBClusterArn"]);
|
|
8596
|
+
}
|
|
8597
|
+
if (output.Readers === "") {
|
|
8598
|
+
contents.Readers = [];
|
|
8599
|
+
}
|
|
8600
|
+
else if (output["Readers"] !== undefined && output["Readers"]["member"] !== undefined) {
|
|
8601
|
+
contents.Readers = deserializeAws_queryReadersArnList((0, smithy_client_1.getArrayIfSingleItem)(output["Readers"]["member"]), context);
|
|
8602
|
+
}
|
|
8603
|
+
if (output["IsWriter"] !== undefined) {
|
|
8604
|
+
contents.IsWriter = (0, smithy_client_1.parseBoolean)(output["IsWriter"]);
|
|
8605
|
+
}
|
|
8606
|
+
return contents;
|
|
8607
|
+
};
|
|
8608
|
+
const deserializeAws_queryGlobalClusterMemberList = (output, context) => {
|
|
8609
|
+
return (output || [])
|
|
8610
|
+
.filter((e) => e != null)
|
|
8611
|
+
.map((entry) => {
|
|
8612
|
+
if (entry === null) {
|
|
8613
|
+
return null;
|
|
8614
|
+
}
|
|
8615
|
+
return deserializeAws_queryGlobalClusterMember(entry, context);
|
|
8616
|
+
});
|
|
8617
|
+
};
|
|
8618
|
+
const deserializeAws_queryGlobalClusterNotFoundFault = (output, context) => {
|
|
8619
|
+
const contents = {
|
|
8620
|
+
message: undefined,
|
|
8621
|
+
};
|
|
8622
|
+
if (output["message"] !== undefined) {
|
|
8623
|
+
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
8624
|
+
}
|
|
8625
|
+
return contents;
|
|
8626
|
+
};
|
|
8627
|
+
const deserializeAws_queryGlobalClusterQuotaExceededFault = (output, context) => {
|
|
8628
|
+
const contents = {
|
|
8629
|
+
message: undefined,
|
|
8630
|
+
};
|
|
8631
|
+
if (output["message"] !== undefined) {
|
|
8632
|
+
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
8633
|
+
}
|
|
8634
|
+
return contents;
|
|
8635
|
+
};
|
|
8636
|
+
const deserializeAws_queryGlobalClustersMessage = (output, context) => {
|
|
8637
|
+
const contents = {
|
|
8638
|
+
Marker: undefined,
|
|
8639
|
+
GlobalClusters: undefined,
|
|
8640
|
+
};
|
|
8641
|
+
if (output["Marker"] !== undefined) {
|
|
8642
|
+
contents.Marker = (0, smithy_client_1.expectString)(output["Marker"]);
|
|
8643
|
+
}
|
|
8644
|
+
if (output.GlobalClusters === "") {
|
|
8645
|
+
contents.GlobalClusters = [];
|
|
8646
|
+
}
|
|
8647
|
+
else if (output["GlobalClusters"] !== undefined && output["GlobalClusters"]["GlobalClusterMember"] !== undefined) {
|
|
8648
|
+
contents.GlobalClusters = deserializeAws_queryGlobalClusterList((0, smithy_client_1.getArrayIfSingleItem)(output["GlobalClusters"]["GlobalClusterMember"]), context);
|
|
8649
|
+
}
|
|
8650
|
+
return contents;
|
|
8651
|
+
};
|
|
8035
8652
|
const deserializeAws_queryInstanceQuotaExceededFault = (output, context) => {
|
|
8036
8653
|
const contents = {
|
|
8037
8654
|
message: undefined,
|
|
@@ -8158,6 +8775,15 @@ const deserializeAws_queryInvalidEventSubscriptionStateFault = (output, context)
|
|
|
8158
8775
|
}
|
|
8159
8776
|
return contents;
|
|
8160
8777
|
};
|
|
8778
|
+
const deserializeAws_queryInvalidGlobalClusterStateFault = (output, context) => {
|
|
8779
|
+
const contents = {
|
|
8780
|
+
message: undefined,
|
|
8781
|
+
};
|
|
8782
|
+
if (output["message"] !== undefined) {
|
|
8783
|
+
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
8784
|
+
}
|
|
8785
|
+
return contents;
|
|
8786
|
+
};
|
|
8161
8787
|
const deserializeAws_queryInvalidRestoreFault = (output, context) => {
|
|
8162
8788
|
const contents = {
|
|
8163
8789
|
message: undefined,
|
|
@@ -8241,13 +8867,13 @@ const deserializeAws_queryModifyDBClusterEndpointOutput = (output, context) => {
|
|
|
8241
8867
|
if (output.StaticMembers === "") {
|
|
8242
8868
|
contents.StaticMembers = [];
|
|
8243
8869
|
}
|
|
8244
|
-
if (output["StaticMembers"] !== undefined && output["StaticMembers"]["member"] !== undefined) {
|
|
8870
|
+
else if (output["StaticMembers"] !== undefined && output["StaticMembers"]["member"] !== undefined) {
|
|
8245
8871
|
contents.StaticMembers = deserializeAws_queryStringList((0, smithy_client_1.getArrayIfSingleItem)(output["StaticMembers"]["member"]), context);
|
|
8246
8872
|
}
|
|
8247
8873
|
if (output.ExcludedMembers === "") {
|
|
8248
8874
|
contents.ExcludedMembers = [];
|
|
8249
8875
|
}
|
|
8250
|
-
if (output["ExcludedMembers"] !== undefined && output["ExcludedMembers"]["member"] !== undefined) {
|
|
8876
|
+
else if (output["ExcludedMembers"] !== undefined && output["ExcludedMembers"]["member"] !== undefined) {
|
|
8251
8877
|
contents.ExcludedMembers = deserializeAws_queryStringList((0, smithy_client_1.getArrayIfSingleItem)(output["ExcludedMembers"]["member"]), context);
|
|
8252
8878
|
}
|
|
8253
8879
|
if (output["DBClusterEndpointArn"] !== undefined) {
|
|
@@ -8300,6 +8926,15 @@ const deserializeAws_queryModifyEventSubscriptionResult = (output, context) => {
|
|
|
8300
8926
|
}
|
|
8301
8927
|
return contents;
|
|
8302
8928
|
};
|
|
8929
|
+
const deserializeAws_queryModifyGlobalClusterResult = (output, context) => {
|
|
8930
|
+
const contents = {
|
|
8931
|
+
GlobalCluster: undefined,
|
|
8932
|
+
};
|
|
8933
|
+
if (output["GlobalCluster"] !== undefined) {
|
|
8934
|
+
contents.GlobalCluster = deserializeAws_queryGlobalCluster(output["GlobalCluster"], context);
|
|
8935
|
+
}
|
|
8936
|
+
return contents;
|
|
8937
|
+
};
|
|
8303
8938
|
const deserializeAws_queryOptionGroupMembership = (output, context) => {
|
|
8304
8939
|
const contents = {
|
|
8305
8940
|
OptionGroupName: undefined,
|
|
@@ -8354,6 +8989,7 @@ const deserializeAws_queryOrderableDBInstanceOption = (output, context) => {
|
|
|
8354
8989
|
MaxIopsPerDbInstance: undefined,
|
|
8355
8990
|
MinIopsPerGib: undefined,
|
|
8356
8991
|
MaxIopsPerGib: undefined,
|
|
8992
|
+
SupportsGlobalDatabases: undefined,
|
|
8357
8993
|
};
|
|
8358
8994
|
if (output["Engine"] !== undefined) {
|
|
8359
8995
|
contents.Engine = (0, smithy_client_1.expectString)(output["Engine"]);
|
|
@@ -8370,7 +9006,8 @@ const deserializeAws_queryOrderableDBInstanceOption = (output, context) => {
|
|
|
8370
9006
|
if (output.AvailabilityZones === "") {
|
|
8371
9007
|
contents.AvailabilityZones = [];
|
|
8372
9008
|
}
|
|
8373
|
-
if (output["AvailabilityZones"] !== undefined &&
|
|
9009
|
+
else if (output["AvailabilityZones"] !== undefined &&
|
|
9010
|
+
output["AvailabilityZones"]["AvailabilityZone"] !== undefined) {
|
|
8374
9011
|
contents.AvailabilityZones = deserializeAws_queryAvailabilityZoneList((0, smithy_client_1.getArrayIfSingleItem)(output["AvailabilityZones"]["AvailabilityZone"]), context);
|
|
8375
9012
|
}
|
|
8376
9013
|
if (output["MultiAZCapable"] !== undefined) {
|
|
@@ -8418,6 +9055,9 @@ const deserializeAws_queryOrderableDBInstanceOption = (output, context) => {
|
|
|
8418
9055
|
if (output["MaxIopsPerGib"] !== undefined) {
|
|
8419
9056
|
contents.MaxIopsPerGib = (0, smithy_client_1.strictParseFloat)(output["MaxIopsPerGib"]);
|
|
8420
9057
|
}
|
|
9058
|
+
if (output["SupportsGlobalDatabases"] !== undefined) {
|
|
9059
|
+
contents.SupportsGlobalDatabases = (0, smithy_client_1.parseBoolean)(output["SupportsGlobalDatabases"]);
|
|
9060
|
+
}
|
|
8421
9061
|
return contents;
|
|
8422
9062
|
};
|
|
8423
9063
|
const deserializeAws_queryOrderableDBInstanceOptionsList = (output, context) => {
|
|
@@ -8438,7 +9078,7 @@ const deserializeAws_queryOrderableDBInstanceOptionsMessage = (output, context)
|
|
|
8438
9078
|
if (output.OrderableDBInstanceOptions === "") {
|
|
8439
9079
|
contents.OrderableDBInstanceOptions = [];
|
|
8440
9080
|
}
|
|
8441
|
-
if (output["OrderableDBInstanceOptions"] !== undefined &&
|
|
9081
|
+
else if (output["OrderableDBInstanceOptions"] !== undefined &&
|
|
8442
9082
|
output["OrderableDBInstanceOptions"]["OrderableDBInstanceOption"] !== undefined) {
|
|
8443
9083
|
contents.OrderableDBInstanceOptions = deserializeAws_queryOrderableDBInstanceOptionsList((0, smithy_client_1.getArrayIfSingleItem)(output["OrderableDBInstanceOptions"]["OrderableDBInstanceOption"]), context);
|
|
8444
9084
|
}
|
|
@@ -8510,13 +9150,13 @@ const deserializeAws_queryPendingCloudwatchLogsExports = (output, context) => {
|
|
|
8510
9150
|
if (output.LogTypesToEnable === "") {
|
|
8511
9151
|
contents.LogTypesToEnable = [];
|
|
8512
9152
|
}
|
|
8513
|
-
if (output["LogTypesToEnable"] !== undefined && output["LogTypesToEnable"]["member"] !== undefined) {
|
|
9153
|
+
else if (output["LogTypesToEnable"] !== undefined && output["LogTypesToEnable"]["member"] !== undefined) {
|
|
8514
9154
|
contents.LogTypesToEnable = deserializeAws_queryLogTypeList((0, smithy_client_1.getArrayIfSingleItem)(output["LogTypesToEnable"]["member"]), context);
|
|
8515
9155
|
}
|
|
8516
9156
|
if (output.LogTypesToDisable === "") {
|
|
8517
9157
|
contents.LogTypesToDisable = [];
|
|
8518
9158
|
}
|
|
8519
|
-
if (output["LogTypesToDisable"] !== undefined && output["LogTypesToDisable"]["member"] !== undefined) {
|
|
9159
|
+
else if (output["LogTypesToDisable"] !== undefined && output["LogTypesToDisable"]["member"] !== undefined) {
|
|
8520
9160
|
contents.LogTypesToDisable = deserializeAws_queryLogTypeList((0, smithy_client_1.getArrayIfSingleItem)(output["LogTypesToDisable"]["member"]), context);
|
|
8521
9161
|
}
|
|
8522
9162
|
return contents;
|
|
@@ -8578,7 +9218,7 @@ const deserializeAws_queryPendingMaintenanceActionsMessage = (output, context) =
|
|
|
8578
9218
|
if (output.PendingMaintenanceActions === "") {
|
|
8579
9219
|
contents.PendingMaintenanceActions = [];
|
|
8580
9220
|
}
|
|
8581
|
-
if (output["PendingMaintenanceActions"] !== undefined &&
|
|
9221
|
+
else if (output["PendingMaintenanceActions"] !== undefined &&
|
|
8582
9222
|
output["PendingMaintenanceActions"]["ResourcePendingMaintenanceActions"] !== undefined) {
|
|
8583
9223
|
contents.PendingMaintenanceActions = deserializeAws_queryPendingMaintenanceActions((0, smithy_client_1.getArrayIfSingleItem)(output["PendingMaintenanceActions"]["ResourcePendingMaintenanceActions"]), context);
|
|
8584
9224
|
}
|
|
@@ -8693,6 +9333,16 @@ const deserializeAws_queryRangeList = (output, context) => {
|
|
|
8693
9333
|
return deserializeAws_queryRange(entry, context);
|
|
8694
9334
|
});
|
|
8695
9335
|
};
|
|
9336
|
+
const deserializeAws_queryReadersArnList = (output, context) => {
|
|
9337
|
+
return (output || [])
|
|
9338
|
+
.filter((e) => e != null)
|
|
9339
|
+
.map((entry) => {
|
|
9340
|
+
if (entry === null) {
|
|
9341
|
+
return null;
|
|
9342
|
+
}
|
|
9343
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
9344
|
+
});
|
|
9345
|
+
};
|
|
8696
9346
|
const deserializeAws_queryReadReplicaDBClusterIdentifierList = (output, context) => {
|
|
8697
9347
|
return (output || [])
|
|
8698
9348
|
.filter((e) => e != null)
|
|
@@ -8732,6 +9382,15 @@ const deserializeAws_queryRebootDBInstanceResult = (output, context) => {
|
|
|
8732
9382
|
}
|
|
8733
9383
|
return contents;
|
|
8734
9384
|
};
|
|
9385
|
+
const deserializeAws_queryRemoveFromGlobalClusterResult = (output, context) => {
|
|
9386
|
+
const contents = {
|
|
9387
|
+
GlobalCluster: undefined,
|
|
9388
|
+
};
|
|
9389
|
+
if (output["GlobalCluster"] !== undefined) {
|
|
9390
|
+
contents.GlobalCluster = deserializeAws_queryGlobalCluster(output["GlobalCluster"], context);
|
|
9391
|
+
}
|
|
9392
|
+
return contents;
|
|
9393
|
+
};
|
|
8735
9394
|
const deserializeAws_queryRemoveSourceIdentifierFromSubscriptionResult = (output, context) => {
|
|
8736
9395
|
const contents = {
|
|
8737
9396
|
EventSubscription: undefined,
|
|
@@ -8761,7 +9420,7 @@ const deserializeAws_queryResourcePendingMaintenanceActions = (output, context)
|
|
|
8761
9420
|
if (output.PendingMaintenanceActionDetails === "") {
|
|
8762
9421
|
contents.PendingMaintenanceActionDetails = [];
|
|
8763
9422
|
}
|
|
8764
|
-
if (output["PendingMaintenanceActionDetails"] !== undefined &&
|
|
9423
|
+
else if (output["PendingMaintenanceActionDetails"] !== undefined &&
|
|
8765
9424
|
output["PendingMaintenanceActionDetails"]["PendingMaintenanceAction"] !== undefined) {
|
|
8766
9425
|
contents.PendingMaintenanceActionDetails = deserializeAws_queryPendingMaintenanceActionDetails((0, smithy_client_1.getArrayIfSingleItem)(output["PendingMaintenanceActionDetails"]["PendingMaintenanceAction"]), context);
|
|
8767
9426
|
}
|
|
@@ -9008,7 +9667,7 @@ const deserializeAws_queryTagListMessage = (output, context) => {
|
|
|
9008
9667
|
if (output.TagList === "") {
|
|
9009
9668
|
contents.TagList = [];
|
|
9010
9669
|
}
|
|
9011
|
-
if (output["TagList"] !== undefined && output["TagList"]["Tag"] !== undefined) {
|
|
9670
|
+
else if (output["TagList"] !== undefined && output["TagList"]["Tag"] !== undefined) {
|
|
9012
9671
|
contents.TagList = deserializeAws_queryTagList((0, smithy_client_1.getArrayIfSingleItem)(output["TagList"]["Tag"]), context);
|
|
9013
9672
|
}
|
|
9014
9673
|
return contents;
|
|
@@ -9029,6 +9688,7 @@ const deserializeAws_queryUpgradeTarget = (output, context) => {
|
|
|
9029
9688
|
Description: undefined,
|
|
9030
9689
|
AutoUpgrade: undefined,
|
|
9031
9690
|
IsMajorVersionUpgrade: undefined,
|
|
9691
|
+
SupportsGlobalDatabases: undefined,
|
|
9032
9692
|
};
|
|
9033
9693
|
if (output["Engine"] !== undefined) {
|
|
9034
9694
|
contents.Engine = (0, smithy_client_1.expectString)(output["Engine"]);
|
|
@@ -9045,6 +9705,9 @@ const deserializeAws_queryUpgradeTarget = (output, context) => {
|
|
|
9045
9705
|
if (output["IsMajorVersionUpgrade"] !== undefined) {
|
|
9046
9706
|
contents.IsMajorVersionUpgrade = (0, smithy_client_1.parseBoolean)(output["IsMajorVersionUpgrade"]);
|
|
9047
9707
|
}
|
|
9708
|
+
if (output["SupportsGlobalDatabases"] !== undefined) {
|
|
9709
|
+
contents.SupportsGlobalDatabases = (0, smithy_client_1.parseBoolean)(output["SupportsGlobalDatabases"]);
|
|
9710
|
+
}
|
|
9048
9711
|
return contents;
|
|
9049
9712
|
};
|
|
9050
9713
|
const deserializeAws_queryValidDBInstanceModificationsMessage = (output, context) => {
|
|
@@ -9054,7 +9717,7 @@ const deserializeAws_queryValidDBInstanceModificationsMessage = (output, context
|
|
|
9054
9717
|
if (output.Storage === "") {
|
|
9055
9718
|
contents.Storage = [];
|
|
9056
9719
|
}
|
|
9057
|
-
if (output["Storage"] !== undefined && output["Storage"]["ValidStorageOptions"] !== undefined) {
|
|
9720
|
+
else if (output["Storage"] !== undefined && output["Storage"]["ValidStorageOptions"] !== undefined) {
|
|
9058
9721
|
contents.Storage = deserializeAws_queryValidStorageOptionsList((0, smithy_client_1.getArrayIfSingleItem)(output["Storage"]["ValidStorageOptions"]), context);
|
|
9059
9722
|
}
|
|
9060
9723
|
return contents;
|
|
@@ -9072,19 +9735,19 @@ const deserializeAws_queryValidStorageOptions = (output, context) => {
|
|
|
9072
9735
|
if (output.StorageSize === "") {
|
|
9073
9736
|
contents.StorageSize = [];
|
|
9074
9737
|
}
|
|
9075
|
-
if (output["StorageSize"] !== undefined && output["StorageSize"]["Range"] !== undefined) {
|
|
9738
|
+
else if (output["StorageSize"] !== undefined && output["StorageSize"]["Range"] !== undefined) {
|
|
9076
9739
|
contents.StorageSize = deserializeAws_queryRangeList((0, smithy_client_1.getArrayIfSingleItem)(output["StorageSize"]["Range"]), context);
|
|
9077
9740
|
}
|
|
9078
9741
|
if (output.ProvisionedIops === "") {
|
|
9079
9742
|
contents.ProvisionedIops = [];
|
|
9080
9743
|
}
|
|
9081
|
-
if (output["ProvisionedIops"] !== undefined && output["ProvisionedIops"]["Range"] !== undefined) {
|
|
9744
|
+
else if (output["ProvisionedIops"] !== undefined && output["ProvisionedIops"]["Range"] !== undefined) {
|
|
9082
9745
|
contents.ProvisionedIops = deserializeAws_queryRangeList((0, smithy_client_1.getArrayIfSingleItem)(output["ProvisionedIops"]["Range"]), context);
|
|
9083
9746
|
}
|
|
9084
9747
|
if (output.IopsToStorageRatio === "") {
|
|
9085
9748
|
contents.IopsToStorageRatio = [];
|
|
9086
9749
|
}
|
|
9087
|
-
if (output["IopsToStorageRatio"] !== undefined && output["IopsToStorageRatio"]["DoubleRange"] !== undefined) {
|
|
9750
|
+
else if (output["IopsToStorageRatio"] !== undefined && output["IopsToStorageRatio"]["DoubleRange"] !== undefined) {
|
|
9088
9751
|
contents.IopsToStorageRatio = deserializeAws_queryDoubleRangeList((0, smithy_client_1.getArrayIfSingleItem)(output["IopsToStorageRatio"]["DoubleRange"]), context);
|
|
9089
9752
|
}
|
|
9090
9753
|
return contents;
|