@aws-sdk/client-rds 3.41.0 → 3.46.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 +51 -0
- package/dist-cjs/RDS.js +15 -0
- package/dist-cjs/commands/RebootDBClusterCommand.js +36 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/endpoints.js +9 -0
- package/dist-cjs/models/models_1.js +14 -2
- package/dist-cjs/protocols/Aws_query.js +248 -4
- package/dist-cjs/runtimeConfig.js +0 -2
- package/dist-es/RDS.js +15 -0
- package/dist-es/commands/RebootDBClusterCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/endpoints.js +9 -0
- package/dist-es/models/models_1.js +8 -0
- package/dist-es/protocols/Aws_query.js +250 -0
- package/dist-es/runtimeConfig.js +0 -2
- package/dist-types/RDS.d.ts +199 -118
- package/dist-types/RDSClient.d.ts +3 -2
- package/dist-types/commands/AddRoleToDBClusterCommand.d.ts +1 -6
- package/dist-types/commands/AuthorizeDBSecurityGroupIngressCommand.d.ts +1 -1
- package/dist-types/commands/CopyDBClusterParameterGroupCommand.d.ts +0 -3
- package/dist-types/commands/CopyDBClusterSnapshotCommand.d.ts +11 -7
- package/dist-types/commands/CreateCustomDBEngineVersionCommand.d.ts +5 -9
- package/dist-types/commands/CreateDBClusterCommand.d.ts +11 -8
- package/dist-types/commands/CreateDBClusterEndpointCommand.d.ts +3 -3
- package/dist-types/commands/CreateDBClusterParameterGroupCommand.d.ts +11 -5
- package/dist-types/commands/CreateDBClusterSnapshotCommand.d.ts +8 -4
- package/dist-types/commands/DeleteDBClusterCommand.d.ts +6 -3
- package/dist-types/commands/DeleteDBClusterParameterGroupCommand.d.ts +6 -2
- package/dist-types/commands/DeleteDBClusterSnapshotCommand.d.ts +6 -2
- package/dist-types/commands/DescribeDBClusterBacktracksCommand.d.ts +1 -1
- package/dist-types/commands/DescribeDBClusterParameterGroupsCommand.d.ts +6 -2
- package/dist-types/commands/DescribeDBClusterParametersCommand.d.ts +6 -2
- package/dist-types/commands/DescribeDBClusterSnapshotAttributesCommand.d.ts +0 -3
- package/dist-types/commands/DescribeDBClusterSnapshotsCommand.d.ts +7 -3
- package/dist-types/commands/DescribeDBClustersCommand.d.ts +9 -4
- package/dist-types/commands/DescribeEngineDefaultClusterParametersCommand.d.ts +1 -1
- package/dist-types/commands/DescribeGlobalClustersCommand.d.ts +1 -1
- package/dist-types/commands/DescribeOrderableDBInstanceOptionsCommand.d.ts +1 -1
- package/dist-types/commands/FailoverDBClusterCommand.d.ts +16 -8
- package/dist-types/commands/ModifyCustomDBEngineVersionCommand.d.ts +1 -1
- package/dist-types/commands/ModifyDBClusterCommand.d.ts +11 -7
- package/dist-types/commands/ModifyDBClusterParameterGroupCommand.d.ts +9 -5
- package/dist-types/commands/ModifyDBClusterSnapshotAttributeCommand.d.ts +0 -3
- package/dist-types/commands/ModifyGlobalClusterCommand.d.ts +1 -1
- package/dist-types/commands/PromoteReadReplicaDBClusterCommand.d.ts +0 -3
- package/dist-types/commands/RebootDBClusterCommand.d.ts +52 -0
- package/dist-types/commands/RemoveFromGlobalClusterCommand.d.ts +1 -1
- package/dist-types/commands/RemoveRoleFromDBClusterCommand.d.ts +11 -4
- package/dist-types/commands/ResetDBClusterParameterGroupCommand.d.ts +7 -4
- package/dist-types/commands/RestoreDBClusterFromS3Command.d.ts +1 -1
- package/dist-types/commands/RestoreDBClusterFromSnapshotCommand.d.ts +8 -5
- package/dist-types/commands/RestoreDBClusterToPointInTimeCommand.d.ts +8 -4
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +546 -196
- package/dist-types/models/models_1.d.ts +690 -151
- package/dist-types/protocols/Aws_query.d.ts +3 -0
- package/dist-types/ts3.4/RDS.d.ts +5 -0
- package/dist-types/ts3.4/RDSClient.d.ts +3 -2
- package/dist-types/ts3.4/commands/RebootDBClusterCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +50 -0
- package/dist-types/ts3.4/models/models_1.d.ts +58 -0
- package/dist-types/ts3.4/protocols/Aws_query.d.ts +3 -0
- package/package.json +38 -45
|
@@ -1153,6 +1153,16 @@ export var serializeAws_queryPurchaseReservedDBInstancesOfferingCommand = functi
|
|
|
1153
1153
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
1154
1154
|
});
|
|
1155
1155
|
}); };
|
|
1156
|
+
export var serializeAws_queryRebootDBClusterCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1157
|
+
var headers, body;
|
|
1158
|
+
return __generator(this, function (_a) {
|
|
1159
|
+
headers = {
|
|
1160
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
1161
|
+
};
|
|
1162
|
+
body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_queryRebootDBClusterMessage(input, context)), { Action: "RebootDBCluster", Version: "2014-10-31" }));
|
|
1163
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
1164
|
+
});
|
|
1165
|
+
}); };
|
|
1156
1166
|
export var serializeAws_queryRebootDBInstanceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1157
1167
|
var headers, body;
|
|
1158
1168
|
return __generator(this, function (_a) {
|
|
@@ -9663,6 +9673,78 @@ var deserializeAws_queryPurchaseReservedDBInstancesOfferingCommandError = functi
|
|
|
9663
9673
|
}
|
|
9664
9674
|
});
|
|
9665
9675
|
}); };
|
|
9676
|
+
export var deserializeAws_queryRebootDBClusterCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
9677
|
+
var data, contents, response;
|
|
9678
|
+
return __generator(this, function (_a) {
|
|
9679
|
+
switch (_a.label) {
|
|
9680
|
+
case 0:
|
|
9681
|
+
if (output.statusCode >= 300) {
|
|
9682
|
+
return [2, deserializeAws_queryRebootDBClusterCommandError(output, context)];
|
|
9683
|
+
}
|
|
9684
|
+
return [4, parseBody(output.body, context)];
|
|
9685
|
+
case 1:
|
|
9686
|
+
data = _a.sent();
|
|
9687
|
+
contents = {};
|
|
9688
|
+
contents = deserializeAws_queryRebootDBClusterResult(data.RebootDBClusterResult, context);
|
|
9689
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
9690
|
+
return [2, Promise.resolve(response)];
|
|
9691
|
+
}
|
|
9692
|
+
});
|
|
9693
|
+
}); };
|
|
9694
|
+
var deserializeAws_queryRebootDBClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
9695
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
9696
|
+
var _f;
|
|
9697
|
+
return __generator(this, function (_g) {
|
|
9698
|
+
switch (_g.label) {
|
|
9699
|
+
case 0:
|
|
9700
|
+
_a = [__assign({}, output)];
|
|
9701
|
+
_f = {};
|
|
9702
|
+
return [4, parseBody(output.body, context)];
|
|
9703
|
+
case 1:
|
|
9704
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
9705
|
+
errorCode = "UnknownError";
|
|
9706
|
+
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
9707
|
+
_b = errorCode;
|
|
9708
|
+
switch (_b) {
|
|
9709
|
+
case "DBClusterNotFoundFault": return [3, 2];
|
|
9710
|
+
case "com.amazonaws.rds#DBClusterNotFoundFault": return [3, 2];
|
|
9711
|
+
case "InvalidDBClusterStateFault": return [3, 4];
|
|
9712
|
+
case "com.amazonaws.rds#InvalidDBClusterStateFault": return [3, 4];
|
|
9713
|
+
case "InvalidDBInstanceStateFault": return [3, 6];
|
|
9714
|
+
case "com.amazonaws.rds#InvalidDBInstanceStateFault": return [3, 6];
|
|
9715
|
+
}
|
|
9716
|
+
return [3, 8];
|
|
9717
|
+
case 2:
|
|
9718
|
+
_c = [{}];
|
|
9719
|
+
return [4, deserializeAws_queryDBClusterNotFoundFaultResponse(parsedOutput, context)];
|
|
9720
|
+
case 3:
|
|
9721
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
9722
|
+
return [3, 9];
|
|
9723
|
+
case 4:
|
|
9724
|
+
_d = [{}];
|
|
9725
|
+
return [4, deserializeAws_queryInvalidDBClusterStateFaultResponse(parsedOutput, context)];
|
|
9726
|
+
case 5:
|
|
9727
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
9728
|
+
return [3, 9];
|
|
9729
|
+
case 6:
|
|
9730
|
+
_e = [{}];
|
|
9731
|
+
return [4, deserializeAws_queryInvalidDBInstanceStateFaultResponse(parsedOutput, context)];
|
|
9732
|
+
case 7:
|
|
9733
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
9734
|
+
return [3, 9];
|
|
9735
|
+
case 8:
|
|
9736
|
+
parsedBody = parsedOutput.body;
|
|
9737
|
+
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
9738
|
+
response = __assign(__assign({}, parsedBody.Error), { name: "" + errorCode, message: parsedBody.Error.message || parsedBody.Error.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
9739
|
+
_g.label = 9;
|
|
9740
|
+
case 9:
|
|
9741
|
+
message = response.message || response.Message || errorCode;
|
|
9742
|
+
response.message = message;
|
|
9743
|
+
delete response.Message;
|
|
9744
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
9745
|
+
}
|
|
9746
|
+
});
|
|
9747
|
+
}); };
|
|
9666
9748
|
export var deserializeAws_queryRebootDBInstanceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
9667
9749
|
var data, contents, response;
|
|
9668
9750
|
return __generator(this, function (_a) {
|
|
@@ -14016,6 +14098,39 @@ var serializeAws_queryCreateDBClusterMessage = function (input, context) {
|
|
|
14016
14098
|
if (input.EnableGlobalWriteForwarding !== undefined && input.EnableGlobalWriteForwarding !== null) {
|
|
14017
14099
|
entries["EnableGlobalWriteForwarding"] = input.EnableGlobalWriteForwarding;
|
|
14018
14100
|
}
|
|
14101
|
+
if (input.DBClusterInstanceClass !== undefined && input.DBClusterInstanceClass !== null) {
|
|
14102
|
+
entries["DBClusterInstanceClass"] = input.DBClusterInstanceClass;
|
|
14103
|
+
}
|
|
14104
|
+
if (input.AllocatedStorage !== undefined && input.AllocatedStorage !== null) {
|
|
14105
|
+
entries["AllocatedStorage"] = input.AllocatedStorage;
|
|
14106
|
+
}
|
|
14107
|
+
if (input.StorageType !== undefined && input.StorageType !== null) {
|
|
14108
|
+
entries["StorageType"] = input.StorageType;
|
|
14109
|
+
}
|
|
14110
|
+
if (input.Iops !== undefined && input.Iops !== null) {
|
|
14111
|
+
entries["Iops"] = input.Iops;
|
|
14112
|
+
}
|
|
14113
|
+
if (input.PubliclyAccessible !== undefined && input.PubliclyAccessible !== null) {
|
|
14114
|
+
entries["PubliclyAccessible"] = input.PubliclyAccessible;
|
|
14115
|
+
}
|
|
14116
|
+
if (input.AutoMinorVersionUpgrade !== undefined && input.AutoMinorVersionUpgrade !== null) {
|
|
14117
|
+
entries["AutoMinorVersionUpgrade"] = input.AutoMinorVersionUpgrade;
|
|
14118
|
+
}
|
|
14119
|
+
if (input.MonitoringInterval !== undefined && input.MonitoringInterval !== null) {
|
|
14120
|
+
entries["MonitoringInterval"] = input.MonitoringInterval;
|
|
14121
|
+
}
|
|
14122
|
+
if (input.MonitoringRoleArn !== undefined && input.MonitoringRoleArn !== null) {
|
|
14123
|
+
entries["MonitoringRoleArn"] = input.MonitoringRoleArn;
|
|
14124
|
+
}
|
|
14125
|
+
if (input.EnablePerformanceInsights !== undefined && input.EnablePerformanceInsights !== null) {
|
|
14126
|
+
entries["EnablePerformanceInsights"] = input.EnablePerformanceInsights;
|
|
14127
|
+
}
|
|
14128
|
+
if (input.PerformanceInsightsKMSKeyId !== undefined && input.PerformanceInsightsKMSKeyId !== null) {
|
|
14129
|
+
entries["PerformanceInsightsKMSKeyId"] = input.PerformanceInsightsKMSKeyId;
|
|
14130
|
+
}
|
|
14131
|
+
if (input.PerformanceInsightsRetentionPeriod !== undefined && input.PerformanceInsightsRetentionPeriod !== null) {
|
|
14132
|
+
entries["PerformanceInsightsRetentionPeriod"] = input.PerformanceInsightsRetentionPeriod;
|
|
14133
|
+
}
|
|
14019
14134
|
return entries;
|
|
14020
14135
|
};
|
|
14021
14136
|
var serializeAws_queryCreateDBClusterParameterGroupMessage = function (input, context) {
|
|
@@ -14231,6 +14346,9 @@ var serializeAws_queryCreateDBInstanceMessage = function (input, context) {
|
|
|
14231
14346
|
if (input.CustomIamInstanceProfile !== undefined && input.CustomIamInstanceProfile !== null) {
|
|
14232
14347
|
entries["CustomIamInstanceProfile"] = input.CustomIamInstanceProfile;
|
|
14233
14348
|
}
|
|
14349
|
+
if (input.BackupTarget !== undefined && input.BackupTarget !== null) {
|
|
14350
|
+
entries["BackupTarget"] = input.BackupTarget;
|
|
14351
|
+
}
|
|
14234
14352
|
return entries;
|
|
14235
14353
|
};
|
|
14236
14354
|
var serializeAws_queryCreateDBInstanceReadReplicaMessage = function (input, context) {
|
|
@@ -16141,6 +16259,36 @@ var serializeAws_queryModifyDBClusterMessage = function (input, context) {
|
|
|
16141
16259
|
if (input.EnableGlobalWriteForwarding !== undefined && input.EnableGlobalWriteForwarding !== null) {
|
|
16142
16260
|
entries["EnableGlobalWriteForwarding"] = input.EnableGlobalWriteForwarding;
|
|
16143
16261
|
}
|
|
16262
|
+
if (input.DBClusterInstanceClass !== undefined && input.DBClusterInstanceClass !== null) {
|
|
16263
|
+
entries["DBClusterInstanceClass"] = input.DBClusterInstanceClass;
|
|
16264
|
+
}
|
|
16265
|
+
if (input.AllocatedStorage !== undefined && input.AllocatedStorage !== null) {
|
|
16266
|
+
entries["AllocatedStorage"] = input.AllocatedStorage;
|
|
16267
|
+
}
|
|
16268
|
+
if (input.StorageType !== undefined && input.StorageType !== null) {
|
|
16269
|
+
entries["StorageType"] = input.StorageType;
|
|
16270
|
+
}
|
|
16271
|
+
if (input.Iops !== undefined && input.Iops !== null) {
|
|
16272
|
+
entries["Iops"] = input.Iops;
|
|
16273
|
+
}
|
|
16274
|
+
if (input.AutoMinorVersionUpgrade !== undefined && input.AutoMinorVersionUpgrade !== null) {
|
|
16275
|
+
entries["AutoMinorVersionUpgrade"] = input.AutoMinorVersionUpgrade;
|
|
16276
|
+
}
|
|
16277
|
+
if (input.MonitoringInterval !== undefined && input.MonitoringInterval !== null) {
|
|
16278
|
+
entries["MonitoringInterval"] = input.MonitoringInterval;
|
|
16279
|
+
}
|
|
16280
|
+
if (input.MonitoringRoleArn !== undefined && input.MonitoringRoleArn !== null) {
|
|
16281
|
+
entries["MonitoringRoleArn"] = input.MonitoringRoleArn;
|
|
16282
|
+
}
|
|
16283
|
+
if (input.EnablePerformanceInsights !== undefined && input.EnablePerformanceInsights !== null) {
|
|
16284
|
+
entries["EnablePerformanceInsights"] = input.EnablePerformanceInsights;
|
|
16285
|
+
}
|
|
16286
|
+
if (input.PerformanceInsightsKMSKeyId !== undefined && input.PerformanceInsightsKMSKeyId !== null) {
|
|
16287
|
+
entries["PerformanceInsightsKMSKeyId"] = input.PerformanceInsightsKMSKeyId;
|
|
16288
|
+
}
|
|
16289
|
+
if (input.PerformanceInsightsRetentionPeriod !== undefined && input.PerformanceInsightsRetentionPeriod !== null) {
|
|
16290
|
+
entries["PerformanceInsightsRetentionPeriod"] = input.PerformanceInsightsRetentionPeriod;
|
|
16291
|
+
}
|
|
16144
16292
|
return entries;
|
|
16145
16293
|
};
|
|
16146
16294
|
var serializeAws_queryModifyDBClusterParameterGroupMessage = function (input, context) {
|
|
@@ -16859,6 +17007,13 @@ var serializeAws_queryPurchaseReservedDBInstancesOfferingMessage = function (inp
|
|
|
16859
17007
|
}
|
|
16860
17008
|
return entries;
|
|
16861
17009
|
};
|
|
17010
|
+
var serializeAws_queryRebootDBClusterMessage = function (input, context) {
|
|
17011
|
+
var entries = {};
|
|
17012
|
+
if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
|
|
17013
|
+
entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
|
|
17014
|
+
}
|
|
17015
|
+
return entries;
|
|
17016
|
+
};
|
|
16862
17017
|
var serializeAws_queryRebootDBInstanceMessage = function (input, context) {
|
|
16863
17018
|
var entries = {};
|
|
16864
17019
|
if (input.DBInstanceIdentifier !== undefined && input.DBInstanceIdentifier !== null) {
|
|
@@ -17202,6 +17357,18 @@ var serializeAws_queryRestoreDBClusterFromSnapshotMessage = function (input, con
|
|
|
17202
17357
|
if (input.DomainIAMRoleName !== undefined && input.DomainIAMRoleName !== null) {
|
|
17203
17358
|
entries["DomainIAMRoleName"] = input.DomainIAMRoleName;
|
|
17204
17359
|
}
|
|
17360
|
+
if (input.DBClusterInstanceClass !== undefined && input.DBClusterInstanceClass !== null) {
|
|
17361
|
+
entries["DBClusterInstanceClass"] = input.DBClusterInstanceClass;
|
|
17362
|
+
}
|
|
17363
|
+
if (input.StorageType !== undefined && input.StorageType !== null) {
|
|
17364
|
+
entries["StorageType"] = input.StorageType;
|
|
17365
|
+
}
|
|
17366
|
+
if (input.Iops !== undefined && input.Iops !== null) {
|
|
17367
|
+
entries["Iops"] = input.Iops;
|
|
17368
|
+
}
|
|
17369
|
+
if (input.PubliclyAccessible !== undefined && input.PubliclyAccessible !== null) {
|
|
17370
|
+
entries["PubliclyAccessible"] = input.PubliclyAccessible;
|
|
17371
|
+
}
|
|
17205
17372
|
return entries;
|
|
17206
17373
|
};
|
|
17207
17374
|
var serializeAws_queryRestoreDBClusterToPointInTimeMessage = function (input, context) {
|
|
@@ -17289,6 +17456,18 @@ var serializeAws_queryRestoreDBClusterToPointInTimeMessage = function (input, co
|
|
|
17289
17456
|
if (input.EngineMode !== undefined && input.EngineMode !== null) {
|
|
17290
17457
|
entries["EngineMode"] = input.EngineMode;
|
|
17291
17458
|
}
|
|
17459
|
+
if (input.DBClusterInstanceClass !== undefined && input.DBClusterInstanceClass !== null) {
|
|
17460
|
+
entries["DBClusterInstanceClass"] = input.DBClusterInstanceClass;
|
|
17461
|
+
}
|
|
17462
|
+
if (input.StorageType !== undefined && input.StorageType !== null) {
|
|
17463
|
+
entries["StorageType"] = input.StorageType;
|
|
17464
|
+
}
|
|
17465
|
+
if (input.PubliclyAccessible !== undefined && input.PubliclyAccessible !== null) {
|
|
17466
|
+
entries["PubliclyAccessible"] = input.PubliclyAccessible;
|
|
17467
|
+
}
|
|
17468
|
+
if (input.Iops !== undefined && input.Iops !== null) {
|
|
17469
|
+
entries["Iops"] = input.Iops;
|
|
17470
|
+
}
|
|
17292
17471
|
return entries;
|
|
17293
17472
|
};
|
|
17294
17473
|
var serializeAws_queryRestoreDBInstanceFromDBSnapshotMessage = function (input, context) {
|
|
@@ -17403,6 +17582,9 @@ var serializeAws_queryRestoreDBInstanceFromDBSnapshotMessage = function (input,
|
|
|
17403
17582
|
if (input.CustomIamInstanceProfile !== undefined && input.CustomIamInstanceProfile !== null) {
|
|
17404
17583
|
entries["CustomIamInstanceProfile"] = input.CustomIamInstanceProfile;
|
|
17405
17584
|
}
|
|
17585
|
+
if (input.BackupTarget !== undefined && input.BackupTarget !== null) {
|
|
17586
|
+
entries["BackupTarget"] = input.BackupTarget;
|
|
17587
|
+
}
|
|
17406
17588
|
return entries;
|
|
17407
17589
|
};
|
|
17408
17590
|
var serializeAws_queryRestoreDBInstanceFromS3Message = function (input, context) {
|
|
@@ -17693,6 +17875,9 @@ var serializeAws_queryRestoreDBInstanceToPointInTimeMessage = function (input, c
|
|
|
17693
17875
|
if (input.CustomIamInstanceProfile !== undefined && input.CustomIamInstanceProfile !== null) {
|
|
17694
17876
|
entries["CustomIamInstanceProfile"] = input.CustomIamInstanceProfile;
|
|
17695
17877
|
}
|
|
17878
|
+
if (input.BackupTarget !== undefined && input.BackupTarget !== null) {
|
|
17879
|
+
entries["BackupTarget"] = input.BackupTarget;
|
|
17880
|
+
}
|
|
17696
17881
|
return entries;
|
|
17697
17882
|
};
|
|
17698
17883
|
var serializeAws_queryRevokeDBSecurityGroupIngressMessage = function (input, context) {
|
|
@@ -18681,6 +18866,16 @@ var deserializeAws_queryDBCluster = function (output, context) {
|
|
|
18681
18866
|
GlobalWriteForwardingStatus: undefined,
|
|
18682
18867
|
GlobalWriteForwardingRequested: undefined,
|
|
18683
18868
|
PendingModifiedValues: undefined,
|
|
18869
|
+
DBClusterInstanceClass: undefined,
|
|
18870
|
+
StorageType: undefined,
|
|
18871
|
+
Iops: undefined,
|
|
18872
|
+
PubliclyAccessible: undefined,
|
|
18873
|
+
AutoMinorVersionUpgrade: undefined,
|
|
18874
|
+
MonitoringInterval: undefined,
|
|
18875
|
+
MonitoringRoleArn: undefined,
|
|
18876
|
+
PerformanceInsightsEnabled: undefined,
|
|
18877
|
+
PerformanceInsightsKMSKeyId: undefined,
|
|
18878
|
+
PerformanceInsightsRetentionPeriod: undefined,
|
|
18684
18879
|
};
|
|
18685
18880
|
if (output["AllocatedStorage"] !== undefined) {
|
|
18686
18881
|
contents.AllocatedStorage = __strictParseInt32(output["AllocatedStorage"]);
|
|
@@ -18887,6 +19082,36 @@ var deserializeAws_queryDBCluster = function (output, context) {
|
|
|
18887
19082
|
if (output["PendingModifiedValues"] !== undefined) {
|
|
18888
19083
|
contents.PendingModifiedValues = deserializeAws_queryClusterPendingModifiedValues(output["PendingModifiedValues"], context);
|
|
18889
19084
|
}
|
|
19085
|
+
if (output["DBClusterInstanceClass"] !== undefined) {
|
|
19086
|
+
contents.DBClusterInstanceClass = __expectString(output["DBClusterInstanceClass"]);
|
|
19087
|
+
}
|
|
19088
|
+
if (output["StorageType"] !== undefined) {
|
|
19089
|
+
contents.StorageType = __expectString(output["StorageType"]);
|
|
19090
|
+
}
|
|
19091
|
+
if (output["Iops"] !== undefined) {
|
|
19092
|
+
contents.Iops = __strictParseInt32(output["Iops"]);
|
|
19093
|
+
}
|
|
19094
|
+
if (output["PubliclyAccessible"] !== undefined) {
|
|
19095
|
+
contents.PubliclyAccessible = __parseBoolean(output["PubliclyAccessible"]);
|
|
19096
|
+
}
|
|
19097
|
+
if (output["AutoMinorVersionUpgrade"] !== undefined) {
|
|
19098
|
+
contents.AutoMinorVersionUpgrade = __parseBoolean(output["AutoMinorVersionUpgrade"]);
|
|
19099
|
+
}
|
|
19100
|
+
if (output["MonitoringInterval"] !== undefined) {
|
|
19101
|
+
contents.MonitoringInterval = __strictParseInt32(output["MonitoringInterval"]);
|
|
19102
|
+
}
|
|
19103
|
+
if (output["MonitoringRoleArn"] !== undefined) {
|
|
19104
|
+
contents.MonitoringRoleArn = __expectString(output["MonitoringRoleArn"]);
|
|
19105
|
+
}
|
|
19106
|
+
if (output["PerformanceInsightsEnabled"] !== undefined) {
|
|
19107
|
+
contents.PerformanceInsightsEnabled = __parseBoolean(output["PerformanceInsightsEnabled"]);
|
|
19108
|
+
}
|
|
19109
|
+
if (output["PerformanceInsightsKMSKeyId"] !== undefined) {
|
|
19110
|
+
contents.PerformanceInsightsKMSKeyId = __expectString(output["PerformanceInsightsKMSKeyId"]);
|
|
19111
|
+
}
|
|
19112
|
+
if (output["PerformanceInsightsRetentionPeriod"] !== undefined) {
|
|
19113
|
+
contents.PerformanceInsightsRetentionPeriod = __strictParseInt32(output["PerformanceInsightsRetentionPeriod"]);
|
|
19114
|
+
}
|
|
18890
19115
|
return contents;
|
|
18891
19116
|
};
|
|
18892
19117
|
var deserializeAws_queryDBClusterAlreadyExistsFault = function (output, context) {
|
|
@@ -19745,6 +19970,7 @@ var deserializeAws_queryDBInstance = function (output, context) {
|
|
|
19745
19970
|
AutomationMode: undefined,
|
|
19746
19971
|
ResumeFullAutomationModeTime: undefined,
|
|
19747
19972
|
CustomIamInstanceProfile: undefined,
|
|
19973
|
+
BackupTarget: undefined,
|
|
19748
19974
|
};
|
|
19749
19975
|
if (output["DBInstanceIdentifier"] !== undefined) {
|
|
19750
19976
|
contents.DBInstanceIdentifier = __expectString(output["DBInstanceIdentifier"]);
|
|
@@ -20010,6 +20236,9 @@ var deserializeAws_queryDBInstance = function (output, context) {
|
|
|
20010
20236
|
if (output["CustomIamInstanceProfile"] !== undefined) {
|
|
20011
20237
|
contents.CustomIamInstanceProfile = __expectString(output["CustomIamInstanceProfile"]);
|
|
20012
20238
|
}
|
|
20239
|
+
if (output["BackupTarget"] !== undefined) {
|
|
20240
|
+
contents.BackupTarget = __expectString(output["BackupTarget"]);
|
|
20241
|
+
}
|
|
20013
20242
|
return contents;
|
|
20014
20243
|
};
|
|
20015
20244
|
var deserializeAws_queryDBInstanceAlreadyExistsFault = function (output, context) {
|
|
@@ -20049,6 +20278,7 @@ var deserializeAws_queryDBInstanceAutomatedBackup = function (output, context) {
|
|
|
20049
20278
|
BackupRetentionPeriod: undefined,
|
|
20050
20279
|
DBInstanceAutomatedBackupsArn: undefined,
|
|
20051
20280
|
DBInstanceAutomatedBackupsReplications: undefined,
|
|
20281
|
+
BackupTarget: undefined,
|
|
20052
20282
|
};
|
|
20053
20283
|
if (output["DBInstanceArn"] !== undefined) {
|
|
20054
20284
|
contents.DBInstanceArn = __expectString(output["DBInstanceArn"]);
|
|
@@ -20132,6 +20362,9 @@ var deserializeAws_queryDBInstanceAutomatedBackup = function (output, context) {
|
|
|
20132
20362
|
output["DBInstanceAutomatedBackupsReplications"]["DBInstanceAutomatedBackupsReplication"] !== undefined) {
|
|
20133
20363
|
contents.DBInstanceAutomatedBackupsReplications = deserializeAws_queryDBInstanceAutomatedBackupsReplicationList(__getArrayIfSingleItem(output["DBInstanceAutomatedBackupsReplications"]["DBInstanceAutomatedBackupsReplication"]), context);
|
|
20134
20364
|
}
|
|
20365
|
+
if (output["BackupTarget"] !== undefined) {
|
|
20366
|
+
contents.BackupTarget = __expectString(output["BackupTarget"]);
|
|
20367
|
+
}
|
|
20135
20368
|
return contents;
|
|
20136
20369
|
};
|
|
20137
20370
|
var deserializeAws_queryDBInstanceAutomatedBackupList = function (output, context) {
|
|
@@ -20909,6 +21142,7 @@ var deserializeAws_queryDBSnapshot = function (output, context) {
|
|
|
20909
21142
|
DbiResourceId: undefined,
|
|
20910
21143
|
TagList: undefined,
|
|
20911
21144
|
OriginalSnapshotCreateTime: undefined,
|
|
21145
|
+
SnapshotTarget: undefined,
|
|
20912
21146
|
};
|
|
20913
21147
|
if (output["DBSnapshotIdentifier"] !== undefined) {
|
|
20914
21148
|
contents.DBSnapshotIdentifier = __expectString(output["DBSnapshotIdentifier"]);
|
|
@@ -21006,6 +21240,9 @@ var deserializeAws_queryDBSnapshot = function (output, context) {
|
|
|
21006
21240
|
if (output["OriginalSnapshotCreateTime"] !== undefined) {
|
|
21007
21241
|
contents.OriginalSnapshotCreateTime = __expectNonNull(__parseRfc3339DateTime(output["OriginalSnapshotCreateTime"]));
|
|
21008
21242
|
}
|
|
21243
|
+
if (output["SnapshotTarget"] !== undefined) {
|
|
21244
|
+
contents.SnapshotTarget = __expectString(output["SnapshotTarget"]);
|
|
21245
|
+
}
|
|
21009
21246
|
return contents;
|
|
21010
21247
|
};
|
|
21011
21248
|
var deserializeAws_queryDBSnapshotAlreadyExistsFault = function (output, context) {
|
|
@@ -23135,6 +23372,7 @@ var deserializeAws_queryOrderableDBInstanceOption = function (output, context) {
|
|
|
23135
23372
|
OutpostCapable: undefined,
|
|
23136
23373
|
SupportedActivityStreamModes: undefined,
|
|
23137
23374
|
SupportsGlobalDatabases: undefined,
|
|
23375
|
+
SupportsClusters: undefined,
|
|
23138
23376
|
};
|
|
23139
23377
|
if (output["Engine"] !== undefined) {
|
|
23140
23378
|
contents.Engine = __expectString(output["Engine"]);
|
|
@@ -23234,6 +23472,9 @@ var deserializeAws_queryOrderableDBInstanceOption = function (output, context) {
|
|
|
23234
23472
|
if (output["SupportsGlobalDatabases"] !== undefined) {
|
|
23235
23473
|
contents.SupportsGlobalDatabases = __parseBoolean(output["SupportsGlobalDatabases"]);
|
|
23236
23474
|
}
|
|
23475
|
+
if (output["SupportsClusters"] !== undefined) {
|
|
23476
|
+
contents.SupportsClusters = __parseBoolean(output["SupportsClusters"]);
|
|
23477
|
+
}
|
|
23237
23478
|
return contents;
|
|
23238
23479
|
};
|
|
23239
23480
|
var deserializeAws_queryOrderableDBInstanceOptionsList = function (output, context) {
|
|
@@ -23634,6 +23875,15 @@ var deserializeAws_queryReadReplicaIdentifierList = function (output, context) {
|
|
|
23634
23875
|
return __expectString(entry);
|
|
23635
23876
|
});
|
|
23636
23877
|
};
|
|
23878
|
+
var deserializeAws_queryRebootDBClusterResult = function (output, context) {
|
|
23879
|
+
var contents = {
|
|
23880
|
+
DBCluster: undefined,
|
|
23881
|
+
};
|
|
23882
|
+
if (output["DBCluster"] !== undefined) {
|
|
23883
|
+
contents.DBCluster = deserializeAws_queryDBCluster(output["DBCluster"], context);
|
|
23884
|
+
}
|
|
23885
|
+
return contents;
|
|
23886
|
+
};
|
|
23637
23887
|
var deserializeAws_queryRebootDBInstanceResult = function (output, context) {
|
|
23638
23888
|
var contents = {
|
|
23639
23889
|
DBInstance: undefined,
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -12,10 +12,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
|
12
12
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
13
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
|
-
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
16
15
|
export var getRuntimeConfig = function (config) {
|
|
17
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
18
|
-
emitWarningIfUnsupportedVersion(process.version);
|
|
19
17
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
18
|
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
21
19
|
};
|