@aws-sdk/client-rds 3.67.0 → 3.72.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 +11 -0
- package/dist-cjs/RDS.js +0 -90
- package/dist-cjs/commands/DescribeDBProxyTargetsCommand.js +1 -2
- package/dist-cjs/commands/DescribeDBSecurityGroupsCommand.js +3 -3
- package/dist-cjs/commands/DescribeDBSnapshotAttributesCommand.js +3 -3
- package/dist-cjs/commands/DescribeDBSnapshotsCommand.js +2 -1
- package/dist-cjs/commands/index.js +0 -6
- package/dist-cjs/models/models_0.js +91 -122
- package/dist-cjs/models/models_1.js +4 -121
- package/dist-cjs/pagination/index.js +1 -3
- package/dist-cjs/protocols/Aws_query.js +6 -640
- package/dist-es/RDS.js +0 -90
- package/dist-es/commands/DescribeDBProxyTargetsCommand.js +1 -2
- package/dist-es/commands/DescribeDBSecurityGroupsCommand.js +1 -1
- package/dist-es/commands/DescribeDBSnapshotAttributesCommand.js +1 -1
- package/dist-es/commands/DescribeDBSnapshotsCommand.js +2 -1
- package/dist-es/commands/index.js +0 -6
- package/dist-es/models/models_0.js +66 -89
- package/dist-es/models/models_1.js +0 -90
- package/dist-es/pagination/index.js +1 -3
- package/dist-es/protocols/Aws_query.js +33 -739
- package/dist-types/RDS.d.ts +1 -61
- package/dist-types/RDSClient.d.ts +2 -8
- package/dist-types/commands/DescribeDBProxyTargetsCommand.d.ts +1 -2
- package/dist-types/commands/DescribeDBSecurityGroupsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeDBSnapshotAttributesCommand.d.ts +1 -1
- package/dist-types/commands/DescribeDBSnapshotsCommand.d.ts +2 -1
- package/dist-types/commands/ModifyCertificatesCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +0 -6
- package/dist-types/models/models_0.d.ts +280 -308
- package/dist-types/models/models_1.d.ts +199 -420
- package/dist-types/pagination/index.d.ts +1 -3
- package/dist-types/protocols/Aws_query.d.ts +0 -18
- package/dist-types/ts3.4/RDS.d.ts +0 -30
- package/dist-types/ts3.4/RDSClient.d.ts +2 -8
- package/dist-types/ts3.4/commands/DescribeDBProxyTargetsCommand.d.ts +1 -2
- package/dist-types/ts3.4/commands/DescribeDBSecurityGroupsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeDBSnapshotAttributesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeDBSnapshotsCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/index.d.ts +0 -6
- package/dist-types/ts3.4/models/models_0.d.ts +144 -158
- package/dist-types/ts3.4/models/models_1.d.ts +1 -192
- package/dist-types/ts3.4/pagination/index.d.ts +1 -3
- package/dist-types/ts3.4/protocols/Aws_query.d.ts +0 -18
- package/package.json +6 -6
- package/dist-cjs/commands/CreateCustomAvailabilityZoneCommand.js +0 -36
- package/dist-cjs/commands/DeleteCustomAvailabilityZoneCommand.js +0 -36
- package/dist-cjs/commands/DeleteInstallationMediaCommand.js +0 -36
- package/dist-cjs/commands/DescribeCustomAvailabilityZonesCommand.js +0 -36
- package/dist-cjs/commands/DescribeInstallationMediaCommand.js +0 -36
- package/dist-cjs/commands/ImportInstallationMediaCommand.js +0 -37
- package/dist-cjs/pagination/DescribeCustomAvailabilityZonesPaginator.js +0 -35
- package/dist-cjs/pagination/DescribeInstallationMediaPaginator.js +0 -35
- package/dist-es/commands/CreateCustomAvailabilityZoneCommand.js +0 -39
- package/dist-es/commands/DeleteCustomAvailabilityZoneCommand.js +0 -39
- package/dist-es/commands/DeleteInstallationMediaCommand.js +0 -39
- package/dist-es/commands/DescribeCustomAvailabilityZonesCommand.js +0 -39
- package/dist-es/commands/DescribeInstallationMediaCommand.js +0 -39
- package/dist-es/commands/ImportInstallationMediaCommand.js +0 -40
- package/dist-es/pagination/DescribeCustomAvailabilityZonesPaginator.js +0 -74
- package/dist-es/pagination/DescribeInstallationMediaPaginator.js +0 -74
- package/dist-types/commands/CreateCustomAvailabilityZoneCommand.d.ts +0 -40
- package/dist-types/commands/DeleteCustomAvailabilityZoneCommand.d.ts +0 -40
- package/dist-types/commands/DeleteInstallationMediaCommand.d.ts +0 -36
- package/dist-types/commands/DescribeCustomAvailabilityZonesCommand.d.ts +0 -40
- package/dist-types/commands/DescribeInstallationMediaCommand.d.ts +0 -36
- package/dist-types/commands/ImportInstallationMediaCommand.d.ts +0 -37
- package/dist-types/pagination/DescribeCustomAvailabilityZonesPaginator.d.ts +0 -4
- package/dist-types/pagination/DescribeInstallationMediaPaginator.d.ts +0 -4
- package/dist-types/ts3.4/commands/CreateCustomAvailabilityZoneCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/DeleteCustomAvailabilityZoneCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/DeleteInstallationMediaCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/DescribeCustomAvailabilityZonesCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/DescribeInstallationMediaCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/ImportInstallationMediaCommand.d.ts +0 -18
- package/dist-types/ts3.4/pagination/DescribeCustomAvailabilityZonesPaginator.d.ts +0 -4
- package/dist-types/ts3.4/pagination/DescribeInstallationMediaPaginator.d.ts +0 -4
|
@@ -3,8 +3,8 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
3
3
|
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTime as __parseRfc3339DateTime, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { decodeHTML } from "entities";
|
|
5
5
|
import { parse as xmlParse } from "fast-xml-parser";
|
|
6
|
-
import { AuthorizationAlreadyExistsFault, AuthorizationNotFoundFault, AuthorizationQuotaExceededFault, BackupPolicyNotFoundFault, CertificateNotFoundFault,
|
|
7
|
-
import { DBClusterRoleNotFoundFault, DBInstanceRoleNotFoundFault, DBLogFileNotFoundFault, DBProxyTargetAlreadyRegisteredFault, DBUpgradeDependencyFailureFault, ExportTaskAlreadyExistsFault, IamRoleMissingPermissionsFault, IamRoleNotFoundFault,
|
|
6
|
+
import { AuthorizationAlreadyExistsFault, AuthorizationNotFoundFault, AuthorizationQuotaExceededFault, BackupPolicyNotFoundFault, CertificateNotFoundFault, CustomAvailabilityZoneNotFoundFault, CustomDBEngineVersionAlreadyExistsFault, CustomDBEngineVersionNotFoundFault, CustomDBEngineVersionQuotaExceededFault, DBClusterAlreadyExistsFault, DBClusterBacktrackNotFoundFault, DBClusterEndpointAlreadyExistsFault, DBClusterEndpointNotFoundFault, DBClusterEndpointQuotaExceededFault, DBClusterNotFoundFault, DBClusterParameterGroupNotFoundFault, DBClusterQuotaExceededFault, DBClusterRoleAlreadyExistsFault, DBClusterRoleQuotaExceededFault, DBClusterSnapshotAlreadyExistsFault, DBClusterSnapshotNotFoundFault, DBInstanceAlreadyExistsFault, DBInstanceAutomatedBackupNotFoundFault, DBInstanceAutomatedBackupQuotaExceededFault, DBInstanceNotFoundFault, DBInstanceRoleAlreadyExistsFault, DBInstanceRoleQuotaExceededFault, DBParameterGroupAlreadyExistsFault, DBParameterGroupNotFoundFault, DBParameterGroupQuotaExceededFault, DBProxyAlreadyExistsFault, DBProxyEndpointAlreadyExistsFault, DBProxyEndpointNotFoundFault, DBProxyEndpointQuotaExceededFault, DBProxyNotFoundFault, DBProxyQuotaExceededFault, DBProxyTargetGroupNotFoundFault, DBProxyTargetNotFoundFault, DBSecurityGroupAlreadyExistsFault, DBSecurityGroupNotFoundFault, DBSecurityGroupNotSupportedFault, DBSecurityGroupQuotaExceededFault, DBSnapshotAlreadyExistsFault, DBSnapshotNotFoundFault, DBSubnetGroupAlreadyExistsFault, DBSubnetGroupDoesNotCoverEnoughAZs, DBSubnetGroupNotAllowedFault, DBSubnetGroupNotFoundFault, DBSubnetGroupQuotaExceededFault, DBSubnetQuotaExceededFault, DomainNotFoundFault, EventSubscriptionQuotaExceededFault, ExportTaskNotFoundFault, GlobalClusterAlreadyExistsFault, GlobalClusterNotFoundFault, GlobalClusterQuotaExceededFault, InstanceQuotaExceededFault, InsufficientDBInstanceCapacityFault, InsufficientStorageClusterCapacityFault, InvalidCustomDBEngineVersionStateFault, InvalidDBClusterEndpointStateFault, InvalidDBClusterSnapshotStateFault, InvalidDBClusterStateFault, InvalidDBInstanceAutomatedBackupStateFault, InvalidDBInstanceStateFault, InvalidDBParameterGroupStateFault, InvalidDBProxyEndpointStateFault, InvalidDBProxyStateFault, InvalidDBSecurityGroupStateFault, InvalidDBSnapshotStateFault, InvalidDBSubnetGroupFault, InvalidDBSubnetGroupStateFault, InvalidDBSubnetStateFault, InvalidEventSubscriptionStateFault, InvalidExportTaskStateFault, InvalidGlobalClusterStateFault, InvalidOptionGroupStateFault, InvalidSubnet, InvalidVPCNetworkStateFault, KMSKeyNotAccessibleFault, OptionGroupAlreadyExistsFault, OptionGroupNotFoundFault, OptionGroupQuotaExceededFault, ProvisionedIopsNotAvailableInAZFault, ResourceNotFoundFault, SnapshotQuotaExceededFault, SNSInvalidTopicFault, SNSNoAuthorizationFault, SNSTopicArnNotFoundFault, SourceNotFoundFault, StorageQuotaExceededFault, StorageTypeNotSupportedFault, SubscriptionAlreadyExistFault, SubscriptionCategoryNotFoundFault, SubscriptionNotFoundFault, } from "../models/models_0";
|
|
7
|
+
import { DBClusterRoleNotFoundFault, DBInstanceRoleNotFoundFault, DBLogFileNotFoundFault, DBProxyTargetAlreadyRegisteredFault, DBUpgradeDependencyFailureFault, ExportTaskAlreadyExistsFault, IamRoleMissingPermissionsFault, IamRoleNotFoundFault, InsufficientAvailableIPsInSubnetFault, InsufficientDBClusterCapacityFault, InvalidDBClusterCapacityFault, InvalidExportOnlyFault, InvalidExportSourceStateFault, InvalidRestoreFault, InvalidS3BucketFault, PointInTimeRestoreNotEnabledFault, ReservedDBInstanceAlreadyExistsFault, ReservedDBInstanceNotFoundFault, ReservedDBInstanceQuotaExceededFault, ReservedDBInstancesOfferingNotFoundFault, SharedSnapshotQuotaExceededFault, SubnetAlreadyInUse, } from "../models/models_1";
|
|
8
8
|
import { RDSServiceException as __BaseException } from "../models/RDSServiceException";
|
|
9
9
|
export var serializeAws_queryAddRoleToDBClusterCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10
10
|
var headers, body;
|
|
@@ -136,16 +136,6 @@ export var serializeAws_queryCopyOptionGroupCommand = function (input, context)
|
|
|
136
136
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
137
137
|
});
|
|
138
138
|
}); };
|
|
139
|
-
export var serializeAws_queryCreateCustomAvailabilityZoneCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
140
|
-
var headers, body;
|
|
141
|
-
return __generator(this, function (_a) {
|
|
142
|
-
headers = {
|
|
143
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
144
|
-
};
|
|
145
|
-
body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_queryCreateCustomAvailabilityZoneMessage(input, context)), { Action: "CreateCustomAvailabilityZone", Version: "2014-10-31" }));
|
|
146
|
-
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
147
|
-
});
|
|
148
|
-
}); };
|
|
149
139
|
export var serializeAws_queryCreateCustomDBEngineVersionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
150
140
|
var headers, body;
|
|
151
141
|
return __generator(this, function (_a) {
|
|
@@ -306,16 +296,6 @@ export var serializeAws_queryCreateOptionGroupCommand = function (input, context
|
|
|
306
296
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
307
297
|
});
|
|
308
298
|
}); };
|
|
309
|
-
export var serializeAws_queryDeleteCustomAvailabilityZoneCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
310
|
-
var headers, body;
|
|
311
|
-
return __generator(this, function (_a) {
|
|
312
|
-
headers = {
|
|
313
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
314
|
-
};
|
|
315
|
-
body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_queryDeleteCustomAvailabilityZoneMessage(input, context)), { Action: "DeleteCustomAvailabilityZone", Version: "2014-10-31" }));
|
|
316
|
-
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
317
|
-
});
|
|
318
|
-
}); };
|
|
319
299
|
export var serializeAws_queryDeleteCustomDBEngineVersionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
320
300
|
var headers, body;
|
|
321
301
|
return __generator(this, function (_a) {
|
|
@@ -466,16 +446,6 @@ export var serializeAws_queryDeleteGlobalClusterCommand = function (input, conte
|
|
|
466
446
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
467
447
|
});
|
|
468
448
|
}); };
|
|
469
|
-
export var serializeAws_queryDeleteInstallationMediaCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
470
|
-
var headers, body;
|
|
471
|
-
return __generator(this, function (_a) {
|
|
472
|
-
headers = {
|
|
473
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
474
|
-
};
|
|
475
|
-
body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_queryDeleteInstallationMediaMessage(input, context)), { Action: "DeleteInstallationMedia", Version: "2014-10-31" }));
|
|
476
|
-
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
477
|
-
});
|
|
478
|
-
}); };
|
|
479
449
|
export var serializeAws_queryDeleteOptionGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
480
450
|
var headers, body;
|
|
481
451
|
return __generator(this, function (_a) {
|
|
@@ -516,16 +486,6 @@ export var serializeAws_queryDescribeCertificatesCommand = function (input, cont
|
|
|
516
486
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
517
487
|
});
|
|
518
488
|
}); };
|
|
519
|
-
export var serializeAws_queryDescribeCustomAvailabilityZonesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
520
|
-
var headers, body;
|
|
521
|
-
return __generator(this, function (_a) {
|
|
522
|
-
headers = {
|
|
523
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
524
|
-
};
|
|
525
|
-
body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_queryDescribeCustomAvailabilityZonesMessage(input, context)), { Action: "DescribeCustomAvailabilityZones", Version: "2014-10-31" }));
|
|
526
|
-
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
527
|
-
});
|
|
528
|
-
}); };
|
|
529
489
|
export var serializeAws_queryDescribeDBClusterBacktracksCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
530
490
|
var headers, body;
|
|
531
491
|
return __generator(this, function (_a) {
|
|
@@ -806,16 +766,6 @@ export var serializeAws_queryDescribeGlobalClustersCommand = function (input, co
|
|
|
806
766
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
807
767
|
});
|
|
808
768
|
}); };
|
|
809
|
-
export var serializeAws_queryDescribeInstallationMediaCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
810
|
-
var headers, body;
|
|
811
|
-
return __generator(this, function (_a) {
|
|
812
|
-
headers = {
|
|
813
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
814
|
-
};
|
|
815
|
-
body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_queryDescribeInstallationMediaMessage(input, context)), { Action: "DescribeInstallationMedia", Version: "2014-10-31" }));
|
|
816
|
-
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
817
|
-
});
|
|
818
|
-
}); };
|
|
819
769
|
export var serializeAws_queryDescribeOptionGroupOptionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
820
770
|
var headers, body;
|
|
821
771
|
return __generator(this, function (_a) {
|
|
@@ -926,16 +876,6 @@ export var serializeAws_queryFailoverGlobalClusterCommand = function (input, con
|
|
|
926
876
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
927
877
|
});
|
|
928
878
|
}); };
|
|
929
|
-
export var serializeAws_queryImportInstallationMediaCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
930
|
-
var headers, body;
|
|
931
|
-
return __generator(this, function (_a) {
|
|
932
|
-
headers = {
|
|
933
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
934
|
-
};
|
|
935
|
-
body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_queryImportInstallationMediaMessage(input, context)), { Action: "ImportInstallationMedia", Version: "2014-10-31" }));
|
|
936
|
-
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
937
|
-
});
|
|
938
|
-
}); };
|
|
939
879
|
export var serializeAws_queryListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
940
880
|
var headers, body;
|
|
941
881
|
return __generator(this, function (_a) {
|
|
@@ -2202,64 +2142,6 @@ var deserializeAws_queryCopyOptionGroupCommandError = function (output, context)
|
|
|
2202
2142
|
}
|
|
2203
2143
|
});
|
|
2204
2144
|
}); };
|
|
2205
|
-
export var deserializeAws_queryCreateCustomAvailabilityZoneCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2206
|
-
var data, contents, response;
|
|
2207
|
-
return __generator(this, function (_a) {
|
|
2208
|
-
switch (_a.label) {
|
|
2209
|
-
case 0:
|
|
2210
|
-
if (output.statusCode >= 300) {
|
|
2211
|
-
return [2, deserializeAws_queryCreateCustomAvailabilityZoneCommandError(output, context)];
|
|
2212
|
-
}
|
|
2213
|
-
return [4, parseBody(output.body, context)];
|
|
2214
|
-
case 1:
|
|
2215
|
-
data = _a.sent();
|
|
2216
|
-
contents = {};
|
|
2217
|
-
contents = deserializeAws_queryCreateCustomAvailabilityZoneResult(data.CreateCustomAvailabilityZoneResult, context);
|
|
2218
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2219
|
-
return [2, Promise.resolve(response)];
|
|
2220
|
-
}
|
|
2221
|
-
});
|
|
2222
|
-
}); };
|
|
2223
|
-
var deserializeAws_queryCreateCustomAvailabilityZoneCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2224
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2225
|
-
var _c;
|
|
2226
|
-
return __generator(this, function (_d) {
|
|
2227
|
-
switch (_d.label) {
|
|
2228
|
-
case 0:
|
|
2229
|
-
_a = [__assign({}, output)];
|
|
2230
|
-
_c = {};
|
|
2231
|
-
return [4, parseBody(output.body, context)];
|
|
2232
|
-
case 1:
|
|
2233
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2234
|
-
errorCode = "UnknownError";
|
|
2235
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2236
|
-
_b = errorCode;
|
|
2237
|
-
switch (_b) {
|
|
2238
|
-
case "CustomAvailabilityZoneAlreadyExistsFault": return [3, 2];
|
|
2239
|
-
case "com.amazonaws.rds#CustomAvailabilityZoneAlreadyExistsFault": return [3, 2];
|
|
2240
|
-
case "CustomAvailabilityZoneQuotaExceededFault": return [3, 4];
|
|
2241
|
-
case "com.amazonaws.rds#CustomAvailabilityZoneQuotaExceededFault": return [3, 4];
|
|
2242
|
-
case "KMSKeyNotAccessibleFault": return [3, 6];
|
|
2243
|
-
case "com.amazonaws.rds#KMSKeyNotAccessibleFault": return [3, 6];
|
|
2244
|
-
}
|
|
2245
|
-
return [3, 8];
|
|
2246
|
-
case 2: return [4, deserializeAws_queryCustomAvailabilityZoneAlreadyExistsFaultResponse(parsedOutput, context)];
|
|
2247
|
-
case 3: throw _d.sent();
|
|
2248
|
-
case 4: return [4, deserializeAws_queryCustomAvailabilityZoneQuotaExceededFaultResponse(parsedOutput, context)];
|
|
2249
|
-
case 5: throw _d.sent();
|
|
2250
|
-
case 6: return [4, deserializeAws_queryKMSKeyNotAccessibleFaultResponse(parsedOutput, context)];
|
|
2251
|
-
case 7: throw _d.sent();
|
|
2252
|
-
case 8:
|
|
2253
|
-
parsedBody = parsedOutput.body;
|
|
2254
|
-
response = new __BaseException({
|
|
2255
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2256
|
-
$fault: "client",
|
|
2257
|
-
$metadata: deserializeMetadata(output),
|
|
2258
|
-
});
|
|
2259
|
-
throw __decorateServiceException(response, parsedBody.Error);
|
|
2260
|
-
}
|
|
2261
|
-
});
|
|
2262
|
-
}); };
|
|
2263
2145
|
export var deserializeAws_queryCreateCustomDBEngineVersionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2264
2146
|
var data, contents, response;
|
|
2265
2147
|
return __generator(this, function (_a) {
|
|
@@ -3424,60 +3306,6 @@ var deserializeAws_queryCreateOptionGroupCommandError = function (output, contex
|
|
|
3424
3306
|
}
|
|
3425
3307
|
});
|
|
3426
3308
|
}); };
|
|
3427
|
-
export var deserializeAws_queryDeleteCustomAvailabilityZoneCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3428
|
-
var data, contents, response;
|
|
3429
|
-
return __generator(this, function (_a) {
|
|
3430
|
-
switch (_a.label) {
|
|
3431
|
-
case 0:
|
|
3432
|
-
if (output.statusCode >= 300) {
|
|
3433
|
-
return [2, deserializeAws_queryDeleteCustomAvailabilityZoneCommandError(output, context)];
|
|
3434
|
-
}
|
|
3435
|
-
return [4, parseBody(output.body, context)];
|
|
3436
|
-
case 1:
|
|
3437
|
-
data = _a.sent();
|
|
3438
|
-
contents = {};
|
|
3439
|
-
contents = deserializeAws_queryDeleteCustomAvailabilityZoneResult(data.DeleteCustomAvailabilityZoneResult, context);
|
|
3440
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3441
|
-
return [2, Promise.resolve(response)];
|
|
3442
|
-
}
|
|
3443
|
-
});
|
|
3444
|
-
}); };
|
|
3445
|
-
var deserializeAws_queryDeleteCustomAvailabilityZoneCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3446
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3447
|
-
var _c;
|
|
3448
|
-
return __generator(this, function (_d) {
|
|
3449
|
-
switch (_d.label) {
|
|
3450
|
-
case 0:
|
|
3451
|
-
_a = [__assign({}, output)];
|
|
3452
|
-
_c = {};
|
|
3453
|
-
return [4, parseBody(output.body, context)];
|
|
3454
|
-
case 1:
|
|
3455
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3456
|
-
errorCode = "UnknownError";
|
|
3457
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3458
|
-
_b = errorCode;
|
|
3459
|
-
switch (_b) {
|
|
3460
|
-
case "CustomAvailabilityZoneNotFoundFault": return [3, 2];
|
|
3461
|
-
case "com.amazonaws.rds#CustomAvailabilityZoneNotFoundFault": return [3, 2];
|
|
3462
|
-
case "KMSKeyNotAccessibleFault": return [3, 4];
|
|
3463
|
-
case "com.amazonaws.rds#KMSKeyNotAccessibleFault": return [3, 4];
|
|
3464
|
-
}
|
|
3465
|
-
return [3, 6];
|
|
3466
|
-
case 2: return [4, deserializeAws_queryCustomAvailabilityZoneNotFoundFaultResponse(parsedOutput, context)];
|
|
3467
|
-
case 3: throw _d.sent();
|
|
3468
|
-
case 4: return [4, deserializeAws_queryKMSKeyNotAccessibleFaultResponse(parsedOutput, context)];
|
|
3469
|
-
case 5: throw _d.sent();
|
|
3470
|
-
case 6:
|
|
3471
|
-
parsedBody = parsedOutput.body;
|
|
3472
|
-
response = new __BaseException({
|
|
3473
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3474
|
-
$fault: "client",
|
|
3475
|
-
$metadata: deserializeMetadata(output),
|
|
3476
|
-
});
|
|
3477
|
-
throw __decorateServiceException(response, parsedBody.Error);
|
|
3478
|
-
}
|
|
3479
|
-
});
|
|
3480
|
-
}); };
|
|
3481
3309
|
export var deserializeAws_queryDeleteCustomDBEngineVersionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3482
3310
|
var data, contents, response;
|
|
3483
3311
|
return __generator(this, function (_a) {
|
|
@@ -4324,56 +4152,6 @@ var deserializeAws_queryDeleteGlobalClusterCommandError = function (output, cont
|
|
|
4324
4152
|
}
|
|
4325
4153
|
});
|
|
4326
4154
|
}); };
|
|
4327
|
-
export var deserializeAws_queryDeleteInstallationMediaCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4328
|
-
var data, contents, response;
|
|
4329
|
-
return __generator(this, function (_a) {
|
|
4330
|
-
switch (_a.label) {
|
|
4331
|
-
case 0:
|
|
4332
|
-
if (output.statusCode >= 300) {
|
|
4333
|
-
return [2, deserializeAws_queryDeleteInstallationMediaCommandError(output, context)];
|
|
4334
|
-
}
|
|
4335
|
-
return [4, parseBody(output.body, context)];
|
|
4336
|
-
case 1:
|
|
4337
|
-
data = _a.sent();
|
|
4338
|
-
contents = {};
|
|
4339
|
-
contents = deserializeAws_queryInstallationMedia(data.DeleteInstallationMediaResult, context);
|
|
4340
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
4341
|
-
return [2, Promise.resolve(response)];
|
|
4342
|
-
}
|
|
4343
|
-
});
|
|
4344
|
-
}); };
|
|
4345
|
-
var deserializeAws_queryDeleteInstallationMediaCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4346
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4347
|
-
var _c;
|
|
4348
|
-
return __generator(this, function (_d) {
|
|
4349
|
-
switch (_d.label) {
|
|
4350
|
-
case 0:
|
|
4351
|
-
_a = [__assign({}, output)];
|
|
4352
|
-
_c = {};
|
|
4353
|
-
return [4, parseBody(output.body, context)];
|
|
4354
|
-
case 1:
|
|
4355
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4356
|
-
errorCode = "UnknownError";
|
|
4357
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4358
|
-
_b = errorCode;
|
|
4359
|
-
switch (_b) {
|
|
4360
|
-
case "InstallationMediaNotFoundFault": return [3, 2];
|
|
4361
|
-
case "com.amazonaws.rds#InstallationMediaNotFoundFault": return [3, 2];
|
|
4362
|
-
}
|
|
4363
|
-
return [3, 4];
|
|
4364
|
-
case 2: return [4, deserializeAws_queryInstallationMediaNotFoundFaultResponse(parsedOutput, context)];
|
|
4365
|
-
case 3: throw _d.sent();
|
|
4366
|
-
case 4:
|
|
4367
|
-
parsedBody = parsedOutput.body;
|
|
4368
|
-
response = new __BaseException({
|
|
4369
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4370
|
-
$fault: "client",
|
|
4371
|
-
$metadata: deserializeMetadata(output),
|
|
4372
|
-
});
|
|
4373
|
-
throw __decorateServiceException(response, parsedBody.Error);
|
|
4374
|
-
}
|
|
4375
|
-
});
|
|
4376
|
-
}); };
|
|
4377
4155
|
export var deserializeAws_queryDeleteOptionGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4378
4156
|
var response;
|
|
4379
4157
|
return __generator(this, function (_a) {
|
|
@@ -4585,56 +4363,6 @@ var deserializeAws_queryDescribeCertificatesCommandError = function (output, con
|
|
|
4585
4363
|
}
|
|
4586
4364
|
});
|
|
4587
4365
|
}); };
|
|
4588
|
-
export var deserializeAws_queryDescribeCustomAvailabilityZonesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4589
|
-
var data, contents, response;
|
|
4590
|
-
return __generator(this, function (_a) {
|
|
4591
|
-
switch (_a.label) {
|
|
4592
|
-
case 0:
|
|
4593
|
-
if (output.statusCode >= 300) {
|
|
4594
|
-
return [2, deserializeAws_queryDescribeCustomAvailabilityZonesCommandError(output, context)];
|
|
4595
|
-
}
|
|
4596
|
-
return [4, parseBody(output.body, context)];
|
|
4597
|
-
case 1:
|
|
4598
|
-
data = _a.sent();
|
|
4599
|
-
contents = {};
|
|
4600
|
-
contents = deserializeAws_queryCustomAvailabilityZoneMessage(data.DescribeCustomAvailabilityZonesResult, context);
|
|
4601
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
4602
|
-
return [2, Promise.resolve(response)];
|
|
4603
|
-
}
|
|
4604
|
-
});
|
|
4605
|
-
}); };
|
|
4606
|
-
var deserializeAws_queryDescribeCustomAvailabilityZonesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4607
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4608
|
-
var _c;
|
|
4609
|
-
return __generator(this, function (_d) {
|
|
4610
|
-
switch (_d.label) {
|
|
4611
|
-
case 0:
|
|
4612
|
-
_a = [__assign({}, output)];
|
|
4613
|
-
_c = {};
|
|
4614
|
-
return [4, parseBody(output.body, context)];
|
|
4615
|
-
case 1:
|
|
4616
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4617
|
-
errorCode = "UnknownError";
|
|
4618
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4619
|
-
_b = errorCode;
|
|
4620
|
-
switch (_b) {
|
|
4621
|
-
case "CustomAvailabilityZoneNotFoundFault": return [3, 2];
|
|
4622
|
-
case "com.amazonaws.rds#CustomAvailabilityZoneNotFoundFault": return [3, 2];
|
|
4623
|
-
}
|
|
4624
|
-
return [3, 4];
|
|
4625
|
-
case 2: return [4, deserializeAws_queryCustomAvailabilityZoneNotFoundFaultResponse(parsedOutput, context)];
|
|
4626
|
-
case 3: throw _d.sent();
|
|
4627
|
-
case 4:
|
|
4628
|
-
parsedBody = parsedOutput.body;
|
|
4629
|
-
response = new __BaseException({
|
|
4630
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4631
|
-
$fault: "client",
|
|
4632
|
-
$metadata: deserializeMetadata(output),
|
|
4633
|
-
});
|
|
4634
|
-
throw __decorateServiceException(response, parsedBody.Error);
|
|
4635
|
-
}
|
|
4636
|
-
});
|
|
4637
|
-
}); };
|
|
4638
4366
|
export var deserializeAws_queryDescribeDBClusterBacktracksCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4639
4367
|
var data, contents, response;
|
|
4640
4368
|
return __generator(this, function (_a) {
|
|
@@ -6038,56 +5766,6 @@ var deserializeAws_queryDescribeGlobalClustersCommandError = function (output, c
|
|
|
6038
5766
|
}
|
|
6039
5767
|
});
|
|
6040
5768
|
}); };
|
|
6041
|
-
export var deserializeAws_queryDescribeInstallationMediaCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6042
|
-
var data, contents, response;
|
|
6043
|
-
return __generator(this, function (_a) {
|
|
6044
|
-
switch (_a.label) {
|
|
6045
|
-
case 0:
|
|
6046
|
-
if (output.statusCode >= 300) {
|
|
6047
|
-
return [2, deserializeAws_queryDescribeInstallationMediaCommandError(output, context)];
|
|
6048
|
-
}
|
|
6049
|
-
return [4, parseBody(output.body, context)];
|
|
6050
|
-
case 1:
|
|
6051
|
-
data = _a.sent();
|
|
6052
|
-
contents = {};
|
|
6053
|
-
contents = deserializeAws_queryInstallationMediaMessage(data.DescribeInstallationMediaResult, context);
|
|
6054
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
6055
|
-
return [2, Promise.resolve(response)];
|
|
6056
|
-
}
|
|
6057
|
-
});
|
|
6058
|
-
}); };
|
|
6059
|
-
var deserializeAws_queryDescribeInstallationMediaCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6060
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
6061
|
-
var _c;
|
|
6062
|
-
return __generator(this, function (_d) {
|
|
6063
|
-
switch (_d.label) {
|
|
6064
|
-
case 0:
|
|
6065
|
-
_a = [__assign({}, output)];
|
|
6066
|
-
_c = {};
|
|
6067
|
-
return [4, parseBody(output.body, context)];
|
|
6068
|
-
case 1:
|
|
6069
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6070
|
-
errorCode = "UnknownError";
|
|
6071
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
6072
|
-
_b = errorCode;
|
|
6073
|
-
switch (_b) {
|
|
6074
|
-
case "InstallationMediaNotFoundFault": return [3, 2];
|
|
6075
|
-
case "com.amazonaws.rds#InstallationMediaNotFoundFault": return [3, 2];
|
|
6076
|
-
}
|
|
6077
|
-
return [3, 4];
|
|
6078
|
-
case 2: return [4, deserializeAws_queryInstallationMediaNotFoundFaultResponse(parsedOutput, context)];
|
|
6079
|
-
case 3: throw _d.sent();
|
|
6080
|
-
case 4:
|
|
6081
|
-
parsedBody = parsedOutput.body;
|
|
6082
|
-
response = new __BaseException({
|
|
6083
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
6084
|
-
$fault: "client",
|
|
6085
|
-
$metadata: deserializeMetadata(output),
|
|
6086
|
-
});
|
|
6087
|
-
throw __decorateServiceException(response, parsedBody.Error);
|
|
6088
|
-
}
|
|
6089
|
-
});
|
|
6090
|
-
}); };
|
|
6091
5769
|
export var deserializeAws_queryDescribeOptionGroupOptionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6092
5770
|
var data, contents, response;
|
|
6093
5771
|
return __generator(this, function (_a) {
|
|
@@ -6563,84 +6241,22 @@ var deserializeAws_queryFailoverDBClusterCommandError = function (output, contex
|
|
|
6563
6241
|
errorCode = "UnknownError";
|
|
6564
6242
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
6565
6243
|
_b = errorCode;
|
|
6566
|
-
switch (_b) {
|
|
6567
|
-
case "DBClusterNotFoundFault": return [3, 2];
|
|
6568
|
-
case "com.amazonaws.rds#DBClusterNotFoundFault": return [3, 2];
|
|
6569
|
-
case "InvalidDBClusterStateFault": return [3, 4];
|
|
6570
|
-
case "com.amazonaws.rds#InvalidDBClusterStateFault": return [3, 4];
|
|
6571
|
-
case "InvalidDBInstanceStateFault": return [3, 6];
|
|
6572
|
-
case "com.amazonaws.rds#InvalidDBInstanceStateFault": return [3, 6];
|
|
6573
|
-
}
|
|
6574
|
-
return [3, 8];
|
|
6575
|
-
case 2: return [4, deserializeAws_queryDBClusterNotFoundFaultResponse(parsedOutput, context)];
|
|
6576
|
-
case 3: throw _d.sent();
|
|
6577
|
-
case 4: return [4, deserializeAws_queryInvalidDBClusterStateFaultResponse(parsedOutput, context)];
|
|
6578
|
-
case 5: throw _d.sent();
|
|
6579
|
-
case 6: return [4, deserializeAws_queryInvalidDBInstanceStateFaultResponse(parsedOutput, context)];
|
|
6580
|
-
case 7: throw _d.sent();
|
|
6581
|
-
case 8:
|
|
6582
|
-
parsedBody = parsedOutput.body;
|
|
6583
|
-
response = new __BaseException({
|
|
6584
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
6585
|
-
$fault: "client",
|
|
6586
|
-
$metadata: deserializeMetadata(output),
|
|
6587
|
-
});
|
|
6588
|
-
throw __decorateServiceException(response, parsedBody.Error);
|
|
6589
|
-
}
|
|
6590
|
-
});
|
|
6591
|
-
}); };
|
|
6592
|
-
export var deserializeAws_queryFailoverGlobalClusterCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6593
|
-
var data, contents, response;
|
|
6594
|
-
return __generator(this, function (_a) {
|
|
6595
|
-
switch (_a.label) {
|
|
6596
|
-
case 0:
|
|
6597
|
-
if (output.statusCode >= 300) {
|
|
6598
|
-
return [2, deserializeAws_queryFailoverGlobalClusterCommandError(output, context)];
|
|
6599
|
-
}
|
|
6600
|
-
return [4, parseBody(output.body, context)];
|
|
6601
|
-
case 1:
|
|
6602
|
-
data = _a.sent();
|
|
6603
|
-
contents = {};
|
|
6604
|
-
contents = deserializeAws_queryFailoverGlobalClusterResult(data.FailoverGlobalClusterResult, context);
|
|
6605
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
6606
|
-
return [2, Promise.resolve(response)];
|
|
6607
|
-
}
|
|
6608
|
-
});
|
|
6609
|
-
}); };
|
|
6610
|
-
var deserializeAws_queryFailoverGlobalClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6611
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
6612
|
-
var _c;
|
|
6613
|
-
return __generator(this, function (_d) {
|
|
6614
|
-
switch (_d.label) {
|
|
6615
|
-
case 0:
|
|
6616
|
-
_a = [__assign({}, output)];
|
|
6617
|
-
_c = {};
|
|
6618
|
-
return [4, parseBody(output.body, context)];
|
|
6619
|
-
case 1:
|
|
6620
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6621
|
-
errorCode = "UnknownError";
|
|
6622
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
6623
|
-
_b = errorCode;
|
|
6624
|
-
switch (_b) {
|
|
6625
|
-
case "DBClusterNotFoundFault": return [3, 2];
|
|
6626
|
-
case "com.amazonaws.rds#DBClusterNotFoundFault": return [3, 2];
|
|
6627
|
-
case "GlobalClusterNotFoundFault": return [3, 4];
|
|
6628
|
-
case "com.amazonaws.rds#GlobalClusterNotFoundFault": return [3, 4];
|
|
6629
|
-
case "InvalidDBClusterStateFault": return [3, 6];
|
|
6630
|
-
case "com.amazonaws.rds#InvalidDBClusterStateFault": return [3, 6];
|
|
6631
|
-
case "InvalidGlobalClusterStateFault": return [3, 8];
|
|
6632
|
-
case "com.amazonaws.rds#InvalidGlobalClusterStateFault": return [3, 8];
|
|
6244
|
+
switch (_b) {
|
|
6245
|
+
case "DBClusterNotFoundFault": return [3, 2];
|
|
6246
|
+
case "com.amazonaws.rds#DBClusterNotFoundFault": return [3, 2];
|
|
6247
|
+
case "InvalidDBClusterStateFault": return [3, 4];
|
|
6248
|
+
case "com.amazonaws.rds#InvalidDBClusterStateFault": return [3, 4];
|
|
6249
|
+
case "InvalidDBInstanceStateFault": return [3, 6];
|
|
6250
|
+
case "com.amazonaws.rds#InvalidDBInstanceStateFault": return [3, 6];
|
|
6633
6251
|
}
|
|
6634
|
-
return [3,
|
|
6252
|
+
return [3, 8];
|
|
6635
6253
|
case 2: return [4, deserializeAws_queryDBClusterNotFoundFaultResponse(parsedOutput, context)];
|
|
6636
6254
|
case 3: throw _d.sent();
|
|
6637
|
-
case 4: return [4,
|
|
6255
|
+
case 4: return [4, deserializeAws_queryInvalidDBClusterStateFaultResponse(parsedOutput, context)];
|
|
6638
6256
|
case 5: throw _d.sent();
|
|
6639
|
-
case 6: return [4,
|
|
6257
|
+
case 6: return [4, deserializeAws_queryInvalidDBInstanceStateFaultResponse(parsedOutput, context)];
|
|
6640
6258
|
case 7: throw _d.sent();
|
|
6641
|
-
case 8:
|
|
6642
|
-
case 9: throw _d.sent();
|
|
6643
|
-
case 10:
|
|
6259
|
+
case 8:
|
|
6644
6260
|
parsedBody = parsedOutput.body;
|
|
6645
6261
|
response = new __BaseException({
|
|
6646
6262
|
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
@@ -6651,25 +6267,25 @@ var deserializeAws_queryFailoverGlobalClusterCommandError = function (output, co
|
|
|
6651
6267
|
}
|
|
6652
6268
|
});
|
|
6653
6269
|
}); };
|
|
6654
|
-
export var
|
|
6270
|
+
export var deserializeAws_queryFailoverGlobalClusterCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6655
6271
|
var data, contents, response;
|
|
6656
6272
|
return __generator(this, function (_a) {
|
|
6657
6273
|
switch (_a.label) {
|
|
6658
6274
|
case 0:
|
|
6659
6275
|
if (output.statusCode >= 300) {
|
|
6660
|
-
return [2,
|
|
6276
|
+
return [2, deserializeAws_queryFailoverGlobalClusterCommandError(output, context)];
|
|
6661
6277
|
}
|
|
6662
6278
|
return [4, parseBody(output.body, context)];
|
|
6663
6279
|
case 1:
|
|
6664
6280
|
data = _a.sent();
|
|
6665
6281
|
contents = {};
|
|
6666
|
-
contents =
|
|
6282
|
+
contents = deserializeAws_queryFailoverGlobalClusterResult(data.FailoverGlobalClusterResult, context);
|
|
6667
6283
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
6668
6284
|
return [2, Promise.resolve(response)];
|
|
6669
6285
|
}
|
|
6670
6286
|
});
|
|
6671
6287
|
}); };
|
|
6672
|
-
var
|
|
6288
|
+
var deserializeAws_queryFailoverGlobalClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6673
6289
|
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
6674
6290
|
var _c;
|
|
6675
6291
|
return __generator(this, function (_d) {
|
|
@@ -6684,17 +6300,25 @@ var deserializeAws_queryImportInstallationMediaCommandError = function (output,
|
|
|
6684
6300
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
6685
6301
|
_b = errorCode;
|
|
6686
6302
|
switch (_b) {
|
|
6687
|
-
case "
|
|
6688
|
-
case "com.amazonaws.rds#
|
|
6689
|
-
case "
|
|
6690
|
-
case "com.amazonaws.rds#
|
|
6303
|
+
case "DBClusterNotFoundFault": return [3, 2];
|
|
6304
|
+
case "com.amazonaws.rds#DBClusterNotFoundFault": return [3, 2];
|
|
6305
|
+
case "GlobalClusterNotFoundFault": return [3, 4];
|
|
6306
|
+
case "com.amazonaws.rds#GlobalClusterNotFoundFault": return [3, 4];
|
|
6307
|
+
case "InvalidDBClusterStateFault": return [3, 6];
|
|
6308
|
+
case "com.amazonaws.rds#InvalidDBClusterStateFault": return [3, 6];
|
|
6309
|
+
case "InvalidGlobalClusterStateFault": return [3, 8];
|
|
6310
|
+
case "com.amazonaws.rds#InvalidGlobalClusterStateFault": return [3, 8];
|
|
6691
6311
|
}
|
|
6692
|
-
return [3,
|
|
6693
|
-
case 2: return [4,
|
|
6312
|
+
return [3, 10];
|
|
6313
|
+
case 2: return [4, deserializeAws_queryDBClusterNotFoundFaultResponse(parsedOutput, context)];
|
|
6694
6314
|
case 3: throw _d.sent();
|
|
6695
|
-
case 4: return [4,
|
|
6315
|
+
case 4: return [4, deserializeAws_queryGlobalClusterNotFoundFaultResponse(parsedOutput, context)];
|
|
6696
6316
|
case 5: throw _d.sent();
|
|
6697
|
-
case 6:
|
|
6317
|
+
case 6: return [4, deserializeAws_queryInvalidDBClusterStateFaultResponse(parsedOutput, context)];
|
|
6318
|
+
case 7: throw _d.sent();
|
|
6319
|
+
case 8: return [4, deserializeAws_queryInvalidGlobalClusterStateFaultResponse(parsedOutput, context)];
|
|
6320
|
+
case 9: throw _d.sent();
|
|
6321
|
+
case 10:
|
|
6698
6322
|
parsedBody = parsedOutput.body;
|
|
6699
6323
|
response = new __BaseException({
|
|
6700
6324
|
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
@@ -10102,15 +9726,6 @@ var deserializeAws_queryCertificateNotFoundFaultResponse = function (parsedOutpu
|
|
|
10102
9726
|
return [2, __decorateServiceException(exception, body)];
|
|
10103
9727
|
});
|
|
10104
9728
|
}); };
|
|
10105
|
-
var deserializeAws_queryCustomAvailabilityZoneAlreadyExistsFaultResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10106
|
-
var body, deserialized, exception;
|
|
10107
|
-
return __generator(this, function (_a) {
|
|
10108
|
-
body = parsedOutput.body;
|
|
10109
|
-
deserialized = deserializeAws_queryCustomAvailabilityZoneAlreadyExistsFault(body.Error, context);
|
|
10110
|
-
exception = new CustomAvailabilityZoneAlreadyExistsFault(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
10111
|
-
return [2, __decorateServiceException(exception, body)];
|
|
10112
|
-
});
|
|
10113
|
-
}); };
|
|
10114
9729
|
var deserializeAws_queryCustomAvailabilityZoneNotFoundFaultResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10115
9730
|
var body, deserialized, exception;
|
|
10116
9731
|
return __generator(this, function (_a) {
|
|
@@ -10120,15 +9735,6 @@ var deserializeAws_queryCustomAvailabilityZoneNotFoundFaultResponse = function (
|
|
|
10120
9735
|
return [2, __decorateServiceException(exception, body)];
|
|
10121
9736
|
});
|
|
10122
9737
|
}); };
|
|
10123
|
-
var deserializeAws_queryCustomAvailabilityZoneQuotaExceededFaultResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10124
|
-
var body, deserialized, exception;
|
|
10125
|
-
return __generator(this, function (_a) {
|
|
10126
|
-
body = parsedOutput.body;
|
|
10127
|
-
deserialized = deserializeAws_queryCustomAvailabilityZoneQuotaExceededFault(body.Error, context);
|
|
10128
|
-
exception = new CustomAvailabilityZoneQuotaExceededFault(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
10129
|
-
return [2, __decorateServiceException(exception, body)];
|
|
10130
|
-
});
|
|
10131
|
-
}); };
|
|
10132
9738
|
var deserializeAws_queryCustomDBEngineVersionAlreadyExistsFaultResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10133
9739
|
var body, deserialized, exception;
|
|
10134
9740
|
return __generator(this, function (_a) {
|
|
@@ -10651,24 +10257,6 @@ var deserializeAws_queryIamRoleNotFoundFaultResponse = function (parsedOutput, c
|
|
|
10651
10257
|
return [2, __decorateServiceException(exception, body)];
|
|
10652
10258
|
});
|
|
10653
10259
|
}); };
|
|
10654
|
-
var deserializeAws_queryInstallationMediaAlreadyExistsFaultResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10655
|
-
var body, deserialized, exception;
|
|
10656
|
-
return __generator(this, function (_a) {
|
|
10657
|
-
body = parsedOutput.body;
|
|
10658
|
-
deserialized = deserializeAws_queryInstallationMediaAlreadyExistsFault(body.Error, context);
|
|
10659
|
-
exception = new InstallationMediaAlreadyExistsFault(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
10660
|
-
return [2, __decorateServiceException(exception, body)];
|
|
10661
|
-
});
|
|
10662
|
-
}); };
|
|
10663
|
-
var deserializeAws_queryInstallationMediaNotFoundFaultResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10664
|
-
var body, deserialized, exception;
|
|
10665
|
-
return __generator(this, function (_a) {
|
|
10666
|
-
body = parsedOutput.body;
|
|
10667
|
-
deserialized = deserializeAws_queryInstallationMediaNotFoundFault(body.Error, context);
|
|
10668
|
-
exception = new InstallationMediaNotFoundFault(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
10669
|
-
return [2, __decorateServiceException(exception, body)];
|
|
10670
|
-
});
|
|
10671
|
-
}); };
|
|
10672
10260
|
var deserializeAws_queryInstanceQuotaExceededFaultResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10673
10261
|
var body, deserialized, exception;
|
|
10674
10262
|
return __generator(this, function (_a) {
|
|
@@ -11469,22 +11057,6 @@ var serializeAws_queryCopyOptionGroupMessage = function (input, context) {
|
|
|
11469
11057
|
}
|
|
11470
11058
|
return entries;
|
|
11471
11059
|
};
|
|
11472
|
-
var serializeAws_queryCreateCustomAvailabilityZoneMessage = function (input, context) {
|
|
11473
|
-
var entries = {};
|
|
11474
|
-
if (input.CustomAvailabilityZoneName !== undefined && input.CustomAvailabilityZoneName !== null) {
|
|
11475
|
-
entries["CustomAvailabilityZoneName"] = input.CustomAvailabilityZoneName;
|
|
11476
|
-
}
|
|
11477
|
-
if (input.ExistingVpnId !== undefined && input.ExistingVpnId !== null) {
|
|
11478
|
-
entries["ExistingVpnId"] = input.ExistingVpnId;
|
|
11479
|
-
}
|
|
11480
|
-
if (input.NewVpnTunnelName !== undefined && input.NewVpnTunnelName !== null) {
|
|
11481
|
-
entries["NewVpnTunnelName"] = input.NewVpnTunnelName;
|
|
11482
|
-
}
|
|
11483
|
-
if (input.VpnTunnelOriginatorIP !== undefined && input.VpnTunnelOriginatorIP !== null) {
|
|
11484
|
-
entries["VpnTunnelOriginatorIP"] = input.VpnTunnelOriginatorIP;
|
|
11485
|
-
}
|
|
11486
|
-
return entries;
|
|
11487
|
-
};
|
|
11488
11060
|
var serializeAws_queryCreateCustomDBEngineVersionMessage = function (input, context) {
|
|
11489
11061
|
var entries = {};
|
|
11490
11062
|
if (input.Engine !== undefined && input.Engine !== null) {
|
|
@@ -12344,13 +11916,6 @@ var serializeAws_queryDBSecurityGroupNameList = function (input, context) {
|
|
|
12344
11916
|
}
|
|
12345
11917
|
return entries;
|
|
12346
11918
|
};
|
|
12347
|
-
var serializeAws_queryDeleteCustomAvailabilityZoneMessage = function (input, context) {
|
|
12348
|
-
var entries = {};
|
|
12349
|
-
if (input.CustomAvailabilityZoneId !== undefined && input.CustomAvailabilityZoneId !== null) {
|
|
12350
|
-
entries["CustomAvailabilityZoneId"] = input.CustomAvailabilityZoneId;
|
|
12351
|
-
}
|
|
12352
|
-
return entries;
|
|
12353
|
-
};
|
|
12354
11919
|
var serializeAws_queryDeleteCustomDBEngineVersionMessage = function (input, context) {
|
|
12355
11920
|
var entries = {};
|
|
12356
11921
|
if (input.Engine !== undefined && input.Engine !== null) {
|
|
@@ -12477,13 +12042,6 @@ var serializeAws_queryDeleteGlobalClusterMessage = function (input, context) {
|
|
|
12477
12042
|
}
|
|
12478
12043
|
return entries;
|
|
12479
12044
|
};
|
|
12480
|
-
var serializeAws_queryDeleteInstallationMediaMessage = function (input, context) {
|
|
12481
|
-
var entries = {};
|
|
12482
|
-
if (input.InstallationMediaId !== undefined && input.InstallationMediaId !== null) {
|
|
12483
|
-
entries["InstallationMediaId"] = input.InstallationMediaId;
|
|
12484
|
-
}
|
|
12485
|
-
return entries;
|
|
12486
|
-
};
|
|
12487
12045
|
var serializeAws_queryDeleteOptionGroupMessage = function (input, context) {
|
|
12488
12046
|
var entries = {};
|
|
12489
12047
|
if (input.OptionGroupName !== undefined && input.OptionGroupName !== null) {
|
|
@@ -12542,27 +12100,6 @@ var serializeAws_queryDescribeCertificatesMessage = function (input, context) {
|
|
|
12542
12100
|
}
|
|
12543
12101
|
return entries;
|
|
12544
12102
|
};
|
|
12545
|
-
var serializeAws_queryDescribeCustomAvailabilityZonesMessage = function (input, context) {
|
|
12546
|
-
var entries = {};
|
|
12547
|
-
if (input.CustomAvailabilityZoneId !== undefined && input.CustomAvailabilityZoneId !== null) {
|
|
12548
|
-
entries["CustomAvailabilityZoneId"] = input.CustomAvailabilityZoneId;
|
|
12549
|
-
}
|
|
12550
|
-
if (input.Filters !== undefined && input.Filters !== null) {
|
|
12551
|
-
var memberEntries = serializeAws_queryFilterList(input.Filters, context);
|
|
12552
|
-
Object.entries(memberEntries).forEach(function (_a) {
|
|
12553
|
-
var _b = __read(_a, 2), key = _b[0], value = _b[1];
|
|
12554
|
-
var loc = "Filters.".concat(key);
|
|
12555
|
-
entries[loc] = value;
|
|
12556
|
-
});
|
|
12557
|
-
}
|
|
12558
|
-
if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
|
|
12559
|
-
entries["MaxRecords"] = input.MaxRecords;
|
|
12560
|
-
}
|
|
12561
|
-
if (input.Marker !== undefined && input.Marker !== null) {
|
|
12562
|
-
entries["Marker"] = input.Marker;
|
|
12563
|
-
}
|
|
12564
|
-
return entries;
|
|
12565
|
-
};
|
|
12566
12103
|
var serializeAws_queryDescribeDBClusterBacktracksMessage = function (input, context) {
|
|
12567
12104
|
var entries = {};
|
|
12568
12105
|
if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
|
|
@@ -13224,27 +12761,6 @@ var serializeAws_queryDescribeGlobalClustersMessage = function (input, context)
|
|
|
13224
12761
|
}
|
|
13225
12762
|
return entries;
|
|
13226
12763
|
};
|
|
13227
|
-
var serializeAws_queryDescribeInstallationMediaMessage = function (input, context) {
|
|
13228
|
-
var entries = {};
|
|
13229
|
-
if (input.InstallationMediaId !== undefined && input.InstallationMediaId !== null) {
|
|
13230
|
-
entries["InstallationMediaId"] = input.InstallationMediaId;
|
|
13231
|
-
}
|
|
13232
|
-
if (input.Filters !== undefined && input.Filters !== null) {
|
|
13233
|
-
var memberEntries = serializeAws_queryFilterList(input.Filters, context);
|
|
13234
|
-
Object.entries(memberEntries).forEach(function (_a) {
|
|
13235
|
-
var _b = __read(_a, 2), key = _b[0], value = _b[1];
|
|
13236
|
-
var loc = "Filters.".concat(key);
|
|
13237
|
-
entries[loc] = value;
|
|
13238
|
-
});
|
|
13239
|
-
}
|
|
13240
|
-
if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
|
|
13241
|
-
entries["MaxRecords"] = input.MaxRecords;
|
|
13242
|
-
}
|
|
13243
|
-
if (input.Marker !== undefined && input.Marker !== null) {
|
|
13244
|
-
entries["Marker"] = input.Marker;
|
|
13245
|
-
}
|
|
13246
|
-
return entries;
|
|
13247
|
-
};
|
|
13248
12764
|
var serializeAws_queryDescribeOptionGroupOptionsMessage = function (input, context) {
|
|
13249
12765
|
var entries = {};
|
|
13250
12766
|
if (input.EngineName !== undefined && input.EngineName !== null) {
|
|
@@ -13606,25 +13122,6 @@ var serializeAws_queryFilterValueList = function (input, context) {
|
|
|
13606
13122
|
}
|
|
13607
13123
|
return entries;
|
|
13608
13124
|
};
|
|
13609
|
-
var serializeAws_queryImportInstallationMediaMessage = function (input, context) {
|
|
13610
|
-
var entries = {};
|
|
13611
|
-
if (input.CustomAvailabilityZoneId !== undefined && input.CustomAvailabilityZoneId !== null) {
|
|
13612
|
-
entries["CustomAvailabilityZoneId"] = input.CustomAvailabilityZoneId;
|
|
13613
|
-
}
|
|
13614
|
-
if (input.Engine !== undefined && input.Engine !== null) {
|
|
13615
|
-
entries["Engine"] = input.Engine;
|
|
13616
|
-
}
|
|
13617
|
-
if (input.EngineVersion !== undefined && input.EngineVersion !== null) {
|
|
13618
|
-
entries["EngineVersion"] = input.EngineVersion;
|
|
13619
|
-
}
|
|
13620
|
-
if (input.EngineInstallationMediaPath !== undefined && input.EngineInstallationMediaPath !== null) {
|
|
13621
|
-
entries["EngineInstallationMediaPath"] = input.EngineInstallationMediaPath;
|
|
13622
|
-
}
|
|
13623
|
-
if (input.OSInstallationMediaPath !== undefined && input.OSInstallationMediaPath !== null) {
|
|
13624
|
-
entries["OSInstallationMediaPath"] = input.OSInstallationMediaPath;
|
|
13625
|
-
}
|
|
13626
|
-
return entries;
|
|
13627
|
-
};
|
|
13628
13125
|
var serializeAws_queryKeyList = function (input, context) {
|
|
13629
13126
|
var e_8, _a;
|
|
13630
13127
|
var entries = {};
|
|
@@ -16154,15 +15651,6 @@ var deserializeAws_queryCopyOptionGroupResult = function (output, context) {
|
|
|
16154
15651
|
}
|
|
16155
15652
|
return contents;
|
|
16156
15653
|
};
|
|
16157
|
-
var deserializeAws_queryCreateCustomAvailabilityZoneResult = function (output, context) {
|
|
16158
|
-
var contents = {
|
|
16159
|
-
CustomAvailabilityZone: undefined,
|
|
16160
|
-
};
|
|
16161
|
-
if (output["CustomAvailabilityZone"] !== undefined) {
|
|
16162
|
-
contents.CustomAvailabilityZone = deserializeAws_queryCustomAvailabilityZone(output["CustomAvailabilityZone"], context);
|
|
16163
|
-
}
|
|
16164
|
-
return contents;
|
|
16165
|
-
};
|
|
16166
15654
|
var deserializeAws_queryCreateDBClusterParameterGroupResult = function (output, context) {
|
|
16167
15655
|
var contents = {
|
|
16168
15656
|
DBClusterParameterGroup: undefined,
|
|
@@ -16289,63 +15777,6 @@ var deserializeAws_queryCreateOptionGroupResult = function (output, context) {
|
|
|
16289
15777
|
}
|
|
16290
15778
|
return contents;
|
|
16291
15779
|
};
|
|
16292
|
-
var deserializeAws_queryCustomAvailabilityZone = function (output, context) {
|
|
16293
|
-
var contents = {
|
|
16294
|
-
CustomAvailabilityZoneId: undefined,
|
|
16295
|
-
CustomAvailabilityZoneName: undefined,
|
|
16296
|
-
CustomAvailabilityZoneStatus: undefined,
|
|
16297
|
-
VpnDetails: undefined,
|
|
16298
|
-
};
|
|
16299
|
-
if (output["CustomAvailabilityZoneId"] !== undefined) {
|
|
16300
|
-
contents.CustomAvailabilityZoneId = __expectString(output["CustomAvailabilityZoneId"]);
|
|
16301
|
-
}
|
|
16302
|
-
if (output["CustomAvailabilityZoneName"] !== undefined) {
|
|
16303
|
-
contents.CustomAvailabilityZoneName = __expectString(output["CustomAvailabilityZoneName"]);
|
|
16304
|
-
}
|
|
16305
|
-
if (output["CustomAvailabilityZoneStatus"] !== undefined) {
|
|
16306
|
-
contents.CustomAvailabilityZoneStatus = __expectString(output["CustomAvailabilityZoneStatus"]);
|
|
16307
|
-
}
|
|
16308
|
-
if (output["VpnDetails"] !== undefined) {
|
|
16309
|
-
contents.VpnDetails = deserializeAws_queryVpnDetails(output["VpnDetails"], context);
|
|
16310
|
-
}
|
|
16311
|
-
return contents;
|
|
16312
|
-
};
|
|
16313
|
-
var deserializeAws_queryCustomAvailabilityZoneAlreadyExistsFault = function (output, context) {
|
|
16314
|
-
var contents = {
|
|
16315
|
-
message: undefined,
|
|
16316
|
-
};
|
|
16317
|
-
if (output["message"] !== undefined) {
|
|
16318
|
-
contents.message = __expectString(output["message"]);
|
|
16319
|
-
}
|
|
16320
|
-
return contents;
|
|
16321
|
-
};
|
|
16322
|
-
var deserializeAws_queryCustomAvailabilityZoneList = function (output, context) {
|
|
16323
|
-
return (output || [])
|
|
16324
|
-
.filter(function (e) { return e != null; })
|
|
16325
|
-
.map(function (entry) {
|
|
16326
|
-
if (entry === null) {
|
|
16327
|
-
return null;
|
|
16328
|
-
}
|
|
16329
|
-
return deserializeAws_queryCustomAvailabilityZone(entry, context);
|
|
16330
|
-
});
|
|
16331
|
-
};
|
|
16332
|
-
var deserializeAws_queryCustomAvailabilityZoneMessage = function (output, context) {
|
|
16333
|
-
var contents = {
|
|
16334
|
-
Marker: undefined,
|
|
16335
|
-
CustomAvailabilityZones: undefined,
|
|
16336
|
-
};
|
|
16337
|
-
if (output["Marker"] !== undefined) {
|
|
16338
|
-
contents.Marker = __expectString(output["Marker"]);
|
|
16339
|
-
}
|
|
16340
|
-
if (output.CustomAvailabilityZones === "") {
|
|
16341
|
-
contents.CustomAvailabilityZones = [];
|
|
16342
|
-
}
|
|
16343
|
-
if (output["CustomAvailabilityZones"] !== undefined &&
|
|
16344
|
-
output["CustomAvailabilityZones"]["CustomAvailabilityZone"] !== undefined) {
|
|
16345
|
-
contents.CustomAvailabilityZones = deserializeAws_queryCustomAvailabilityZoneList(__getArrayIfSingleItem(output["CustomAvailabilityZones"]["CustomAvailabilityZone"]), context);
|
|
16346
|
-
}
|
|
16347
|
-
return contents;
|
|
16348
|
-
};
|
|
16349
15780
|
var deserializeAws_queryCustomAvailabilityZoneNotFoundFault = function (output, context) {
|
|
16350
15781
|
var contents = {
|
|
16351
15782
|
message: undefined,
|
|
@@ -16355,15 +15786,6 @@ var deserializeAws_queryCustomAvailabilityZoneNotFoundFault = function (output,
|
|
|
16355
15786
|
}
|
|
16356
15787
|
return contents;
|
|
16357
15788
|
};
|
|
16358
|
-
var deserializeAws_queryCustomAvailabilityZoneQuotaExceededFault = function (output, context) {
|
|
16359
|
-
var contents = {
|
|
16360
|
-
message: undefined,
|
|
16361
|
-
};
|
|
16362
|
-
if (output["message"] !== undefined) {
|
|
16363
|
-
contents.message = __expectString(output["message"]);
|
|
16364
|
-
}
|
|
16365
|
-
return contents;
|
|
16366
|
-
};
|
|
16367
15789
|
var deserializeAws_queryCustomDBEngineVersionAlreadyExistsFault = function (output, context) {
|
|
16368
15790
|
var contents = {
|
|
16369
15791
|
message: undefined,
|
|
@@ -19041,15 +18463,6 @@ var deserializeAws_queryDBUpgradeDependencyFailureFault = function (output, cont
|
|
|
19041
18463
|
}
|
|
19042
18464
|
return contents;
|
|
19043
18465
|
};
|
|
19044
|
-
var deserializeAws_queryDeleteCustomAvailabilityZoneResult = function (output, context) {
|
|
19045
|
-
var contents = {
|
|
19046
|
-
CustomAvailabilityZone: undefined,
|
|
19047
|
-
};
|
|
19048
|
-
if (output["CustomAvailabilityZone"] !== undefined) {
|
|
19049
|
-
contents.CustomAvailabilityZone = deserializeAws_queryCustomAvailabilityZone(output["CustomAvailabilityZone"], context);
|
|
19050
|
-
}
|
|
19051
|
-
return contents;
|
|
19052
|
-
};
|
|
19053
18466
|
var deserializeAws_queryDeleteDBClusterResult = function (output, context) {
|
|
19054
18467
|
var contents = {
|
|
19055
18468
|
DBCluster: undefined,
|
|
@@ -19955,96 +19368,6 @@ var deserializeAws_queryIamRoleNotFoundFault = function (output, context) {
|
|
|
19955
19368
|
}
|
|
19956
19369
|
return contents;
|
|
19957
19370
|
};
|
|
19958
|
-
var deserializeAws_queryInstallationMedia = function (output, context) {
|
|
19959
|
-
var contents = {
|
|
19960
|
-
InstallationMediaId: undefined,
|
|
19961
|
-
CustomAvailabilityZoneId: undefined,
|
|
19962
|
-
Engine: undefined,
|
|
19963
|
-
EngineVersion: undefined,
|
|
19964
|
-
EngineInstallationMediaPath: undefined,
|
|
19965
|
-
OSInstallationMediaPath: undefined,
|
|
19966
|
-
Status: undefined,
|
|
19967
|
-
FailureCause: undefined,
|
|
19968
|
-
};
|
|
19969
|
-
if (output["InstallationMediaId"] !== undefined) {
|
|
19970
|
-
contents.InstallationMediaId = __expectString(output["InstallationMediaId"]);
|
|
19971
|
-
}
|
|
19972
|
-
if (output["CustomAvailabilityZoneId"] !== undefined) {
|
|
19973
|
-
contents.CustomAvailabilityZoneId = __expectString(output["CustomAvailabilityZoneId"]);
|
|
19974
|
-
}
|
|
19975
|
-
if (output["Engine"] !== undefined) {
|
|
19976
|
-
contents.Engine = __expectString(output["Engine"]);
|
|
19977
|
-
}
|
|
19978
|
-
if (output["EngineVersion"] !== undefined) {
|
|
19979
|
-
contents.EngineVersion = __expectString(output["EngineVersion"]);
|
|
19980
|
-
}
|
|
19981
|
-
if (output["EngineInstallationMediaPath"] !== undefined) {
|
|
19982
|
-
contents.EngineInstallationMediaPath = __expectString(output["EngineInstallationMediaPath"]);
|
|
19983
|
-
}
|
|
19984
|
-
if (output["OSInstallationMediaPath"] !== undefined) {
|
|
19985
|
-
contents.OSInstallationMediaPath = __expectString(output["OSInstallationMediaPath"]);
|
|
19986
|
-
}
|
|
19987
|
-
if (output["Status"] !== undefined) {
|
|
19988
|
-
contents.Status = __expectString(output["Status"]);
|
|
19989
|
-
}
|
|
19990
|
-
if (output["FailureCause"] !== undefined) {
|
|
19991
|
-
contents.FailureCause = deserializeAws_queryInstallationMediaFailureCause(output["FailureCause"], context);
|
|
19992
|
-
}
|
|
19993
|
-
return contents;
|
|
19994
|
-
};
|
|
19995
|
-
var deserializeAws_queryInstallationMediaAlreadyExistsFault = function (output, context) {
|
|
19996
|
-
var contents = {
|
|
19997
|
-
message: undefined,
|
|
19998
|
-
};
|
|
19999
|
-
if (output["message"] !== undefined) {
|
|
20000
|
-
contents.message = __expectString(output["message"]);
|
|
20001
|
-
}
|
|
20002
|
-
return contents;
|
|
20003
|
-
};
|
|
20004
|
-
var deserializeAws_queryInstallationMediaFailureCause = function (output, context) {
|
|
20005
|
-
var contents = {
|
|
20006
|
-
Message: undefined,
|
|
20007
|
-
};
|
|
20008
|
-
if (output["Message"] !== undefined) {
|
|
20009
|
-
contents.Message = __expectString(output["Message"]);
|
|
20010
|
-
}
|
|
20011
|
-
return contents;
|
|
20012
|
-
};
|
|
20013
|
-
var deserializeAws_queryInstallationMediaList = function (output, context) {
|
|
20014
|
-
return (output || [])
|
|
20015
|
-
.filter(function (e) { return e != null; })
|
|
20016
|
-
.map(function (entry) {
|
|
20017
|
-
if (entry === null) {
|
|
20018
|
-
return null;
|
|
20019
|
-
}
|
|
20020
|
-
return deserializeAws_queryInstallationMedia(entry, context);
|
|
20021
|
-
});
|
|
20022
|
-
};
|
|
20023
|
-
var deserializeAws_queryInstallationMediaMessage = function (output, context) {
|
|
20024
|
-
var contents = {
|
|
20025
|
-
Marker: undefined,
|
|
20026
|
-
InstallationMedia: undefined,
|
|
20027
|
-
};
|
|
20028
|
-
if (output["Marker"] !== undefined) {
|
|
20029
|
-
contents.Marker = __expectString(output["Marker"]);
|
|
20030
|
-
}
|
|
20031
|
-
if (output.InstallationMedia === "") {
|
|
20032
|
-
contents.InstallationMedia = [];
|
|
20033
|
-
}
|
|
20034
|
-
if (output["InstallationMedia"] !== undefined && output["InstallationMedia"]["InstallationMedia"] !== undefined) {
|
|
20035
|
-
contents.InstallationMedia = deserializeAws_queryInstallationMediaList(__getArrayIfSingleItem(output["InstallationMedia"]["InstallationMedia"]), context);
|
|
20036
|
-
}
|
|
20037
|
-
return contents;
|
|
20038
|
-
};
|
|
20039
|
-
var deserializeAws_queryInstallationMediaNotFoundFault = function (output, context) {
|
|
20040
|
-
var contents = {
|
|
20041
|
-
message: undefined,
|
|
20042
|
-
};
|
|
20043
|
-
if (output["message"] !== undefined) {
|
|
20044
|
-
contents.message = __expectString(output["message"]);
|
|
20045
|
-
}
|
|
20046
|
-
return contents;
|
|
20047
|
-
};
|
|
20048
19371
|
var deserializeAws_queryInstanceQuotaExceededFault = function (output, context) {
|
|
20049
19372
|
var contents = {
|
|
20050
19373
|
message: undefined,
|
|
@@ -22458,35 +21781,6 @@ var deserializeAws_queryVpcSecurityGroupMembershipList = function (output, conte
|
|
|
22458
21781
|
return deserializeAws_queryVpcSecurityGroupMembership(entry, context);
|
|
22459
21782
|
});
|
|
22460
21783
|
};
|
|
22461
|
-
var deserializeAws_queryVpnDetails = function (output, context) {
|
|
22462
|
-
var contents = {
|
|
22463
|
-
VpnId: undefined,
|
|
22464
|
-
VpnTunnelOriginatorIP: undefined,
|
|
22465
|
-
VpnGatewayIp: undefined,
|
|
22466
|
-
VpnPSK: undefined,
|
|
22467
|
-
VpnName: undefined,
|
|
22468
|
-
VpnState: undefined,
|
|
22469
|
-
};
|
|
22470
|
-
if (output["VpnId"] !== undefined) {
|
|
22471
|
-
contents.VpnId = __expectString(output["VpnId"]);
|
|
22472
|
-
}
|
|
22473
|
-
if (output["VpnTunnelOriginatorIP"] !== undefined) {
|
|
22474
|
-
contents.VpnTunnelOriginatorIP = __expectString(output["VpnTunnelOriginatorIP"]);
|
|
22475
|
-
}
|
|
22476
|
-
if (output["VpnGatewayIp"] !== undefined) {
|
|
22477
|
-
contents.VpnGatewayIp = __expectString(output["VpnGatewayIp"]);
|
|
22478
|
-
}
|
|
22479
|
-
if (output["VpnPSK"] !== undefined) {
|
|
22480
|
-
contents.VpnPSK = __expectString(output["VpnPSK"]);
|
|
22481
|
-
}
|
|
22482
|
-
if (output["VpnName"] !== undefined) {
|
|
22483
|
-
contents.VpnName = __expectString(output["VpnName"]);
|
|
22484
|
-
}
|
|
22485
|
-
if (output["VpnState"] !== undefined) {
|
|
22486
|
-
contents.VpnState = __expectString(output["VpnState"]);
|
|
22487
|
-
}
|
|
22488
|
-
return contents;
|
|
22489
|
-
};
|
|
22490
21784
|
var deserializeMetadata = function (output) {
|
|
22491
21785
|
var _a;
|
|
22492
21786
|
return ({
|