@aws-sdk/client-rds 3.36.1 → 3.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/dist-cjs/RDS.js +45 -0
  3. package/dist-cjs/commands/CreateCustomDBEngineVersionCommand.js +36 -0
  4. package/dist-cjs/commands/DeleteCustomDBEngineVersionCommand.js +36 -0
  5. package/dist-cjs/commands/DescribeDBProxyTargetsCommand.js +2 -1
  6. package/dist-cjs/commands/ModifyCustomDBEngineVersionCommand.js +37 -0
  7. package/dist-cjs/commands/index.js +143 -0
  8. package/dist-cjs/endpoints.js +167 -28
  9. package/dist-cjs/index.js +5 -181
  10. package/dist-cjs/models/models_0.js +70 -73
  11. package/dist-cjs/models/models_1.js +60 -4
  12. package/dist-cjs/pagination/index.js +39 -0
  13. package/dist-cjs/protocols/Aws_query.js +426 -6
  14. package/dist-cjs/runtimeConfig.browser.js +6 -3
  15. package/dist-cjs/runtimeConfig.js +5 -3
  16. package/dist-cjs/waiters/index.js +9 -0
  17. package/dist-es/RDS.js +45 -0
  18. package/dist-es/commands/CreateCustomDBEngineVersionCommand.js +39 -0
  19. package/dist-es/commands/DeleteCustomDBEngineVersionCommand.js +39 -0
  20. package/dist-es/commands/DescribeDBProxyTargetsCommand.js +2 -1
  21. package/dist-es/commands/ModifyCustomDBEngineVersionCommand.js +40 -0
  22. package/dist-es/commands/index.js +140 -0
  23. package/dist-es/endpoints.js +167 -28
  24. package/dist-es/index.js +5 -181
  25. package/dist-es/models/models_0.js +45 -54
  26. package/dist-es/models/models_1.js +48 -0
  27. package/dist-es/pagination/index.js +36 -0
  28. package/dist-es/protocols/Aws_query.js +431 -0
  29. package/dist-es/runtimeConfig.browser.js +3 -2
  30. package/dist-es/runtimeConfig.js +3 -3
  31. package/dist-es/waiters/index.js +6 -0
  32. package/dist-types/RDS.d.ts +103 -13
  33. package/dist-types/RDSClient.d.ts +13 -2
  34. package/dist-types/commands/AddRoleToDBInstanceCommand.d.ts +1 -0
  35. package/dist-types/commands/CopyDBClusterSnapshotCommand.d.ts +1 -2
  36. package/dist-types/commands/CopyDBSnapshotCommand.d.ts +2 -0
  37. package/dist-types/commands/CreateCustomDBEngineVersionCommand.d.ts +62 -0
  38. package/dist-types/commands/CreateDBParameterGroupCommand.d.ts +4 -3
  39. package/dist-types/commands/CreateOptionGroupCommand.d.ts +1 -0
  40. package/dist-types/commands/DeleteCustomDBEngineVersionCommand.d.ts +55 -0
  41. package/dist-types/commands/DescribeDBLogFilesCommand.d.ts +1 -0
  42. package/dist-types/commands/DescribeDBProxyTargetsCommand.d.ts +2 -1
  43. package/dist-types/commands/DescribeValidDBInstanceModificationsCommand.d.ts +3 -4
  44. package/dist-types/commands/DownloadDBLogFilePortionCommand.d.ts +1 -0
  45. package/dist-types/commands/ModifyCustomDBEngineVersionCommand.d.ts +46 -0
  46. package/dist-types/commands/ModifyDBSnapshotCommand.d.ts +2 -1
  47. package/dist-types/commands/PromoteReadReplicaCommand.d.ts +1 -1
  48. package/dist-types/commands/RebootDBInstanceCommand.d.ts +2 -0
  49. package/dist-types/commands/RestoreDBInstanceFromS3Command.d.ts +1 -0
  50. package/dist-types/commands/StartDBInstanceAutomatedBackupsReplicationCommand.d.ts +1 -0
  51. package/dist-types/commands/StartDBInstanceCommand.d.ts +1 -1
  52. package/dist-types/commands/StartExportTaskCommand.d.ts +1 -0
  53. package/dist-types/commands/StopDBInstanceAutomatedBackupsReplicationCommand.d.ts +1 -0
  54. package/dist-types/commands/StopDBInstanceCommand.d.ts +1 -1
  55. package/dist-types/commands/index.d.ts +140 -0
  56. package/dist-types/index.d.ts +5 -181
  57. package/dist-types/models/models_0.d.ts +697 -410
  58. package/dist-types/models/models_1.d.ts +468 -137
  59. package/dist-types/pagination/index.d.ts +36 -0
  60. package/dist-types/protocols/Aws_query.d.ts +9 -0
  61. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  62. package/dist-types/runtimeConfig.d.ts +2 -0
  63. package/dist-types/runtimeConfig.native.d.ts +2 -0
  64. package/dist-types/ts3.4/RDS.d.ts +15 -0
  65. package/dist-types/ts3.4/RDSClient.d.ts +9 -2
  66. package/dist-types/ts3.4/commands/CreateCustomDBEngineVersionCommand.d.ts +17 -0
  67. package/dist-types/ts3.4/commands/DeleteCustomDBEngineVersionCommand.d.ts +17 -0
  68. package/dist-types/ts3.4/commands/DescribeDBProxyTargetsCommand.d.ts +2 -1
  69. package/dist-types/ts3.4/commands/ModifyCustomDBEngineVersionCommand.d.ts +18 -0
  70. package/dist-types/ts3.4/commands/index.d.ts +140 -0
  71. package/dist-types/ts3.4/index.d.ts +5 -181
  72. package/dist-types/ts3.4/models/models_0.d.ts +190 -154
  73. package/dist-types/ts3.4/models/models_1.d.ts +97 -2
  74. package/dist-types/ts3.4/pagination/index.d.ts +36 -0
  75. package/dist-types/ts3.4/protocols/Aws_query.d.ts +9 -0
  76. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  77. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  78. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  79. package/dist-types/ts3.4/waiters/index.d.ts +6 -0
  80. package/dist-types/waiters/index.d.ts +6 -0
  81. package/package.json +34 -34
@@ -143,6 +143,16 @@ export var serializeAws_queryCreateCustomAvailabilityZoneCommand = function (inp
143
143
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
144
144
  });
145
145
  }); };
146
+ export var serializeAws_queryCreateCustomDBEngineVersionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
147
+ var headers, body;
148
+ return __generator(this, function (_a) {
149
+ headers = {
150
+ "content-type": "application/x-www-form-urlencoded",
151
+ };
152
+ body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_queryCreateCustomDBEngineVersionMessage(input, context)), { Action: "CreateCustomDBEngineVersion", Version: "2014-10-31" }));
153
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
154
+ });
155
+ }); };
146
156
  export var serializeAws_queryCreateDBClusterCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
147
157
  var headers, body;
148
158
  return __generator(this, function (_a) {
@@ -303,6 +313,16 @@ export var serializeAws_queryDeleteCustomAvailabilityZoneCommand = function (inp
303
313
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
304
314
  });
305
315
  }); };
316
+ export var serializeAws_queryDeleteCustomDBEngineVersionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
317
+ var headers, body;
318
+ return __generator(this, function (_a) {
319
+ headers = {
320
+ "content-type": "application/x-www-form-urlencoded",
321
+ };
322
+ body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_queryDeleteCustomDBEngineVersionMessage(input, context)), { Action: "DeleteCustomDBEngineVersion", Version: "2014-10-31" }));
323
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
324
+ });
325
+ }); };
306
326
  export var serializeAws_queryDeleteDBClusterCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
307
327
  var headers, body;
308
328
  return __generator(this, function (_a) {
@@ -943,6 +963,16 @@ export var serializeAws_queryModifyCurrentDBClusterCapacityCommand = function (i
943
963
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
944
964
  });
945
965
  }); };
966
+ export var serializeAws_queryModifyCustomDBEngineVersionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
967
+ var headers, body;
968
+ return __generator(this, function (_a) {
969
+ headers = {
970
+ "content-type": "application/x-www-form-urlencoded",
971
+ };
972
+ body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_queryModifyCustomDBEngineVersionMessage(input, context)), { Action: "ModifyCustomDBEngineVersion", Version: "2014-10-31" }));
973
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
974
+ });
975
+ }); };
946
976
  export var serializeAws_queryModifyDBClusterCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
947
977
  var headers, body;
948
978
  return __generator(this, function (_a) {
@@ -2445,6 +2475,78 @@ var deserializeAws_queryCreateCustomAvailabilityZoneCommandError = function (out
2445
2475
  }
2446
2476
  });
2447
2477
  }); };
2478
+ export var deserializeAws_queryCreateCustomDBEngineVersionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2479
+ var data, contents, response;
2480
+ return __generator(this, function (_a) {
2481
+ switch (_a.label) {
2482
+ case 0:
2483
+ if (output.statusCode >= 300) {
2484
+ return [2, deserializeAws_queryCreateCustomDBEngineVersionCommandError(output, context)];
2485
+ }
2486
+ return [4, parseBody(output.body, context)];
2487
+ case 1:
2488
+ data = _a.sent();
2489
+ contents = {};
2490
+ contents = deserializeAws_queryDBEngineVersion(data.CreateCustomDBEngineVersionResult, context);
2491
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
2492
+ return [2, Promise.resolve(response)];
2493
+ }
2494
+ });
2495
+ }); };
2496
+ var deserializeAws_queryCreateCustomDBEngineVersionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2497
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
2498
+ var _f;
2499
+ return __generator(this, function (_g) {
2500
+ switch (_g.label) {
2501
+ case 0:
2502
+ _a = [__assign({}, output)];
2503
+ _f = {};
2504
+ return [4, parseBody(output.body, context)];
2505
+ case 1:
2506
+ parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
2507
+ errorCode = "UnknownError";
2508
+ errorCode = loadQueryErrorCode(output, parsedOutput.body);
2509
+ _b = errorCode;
2510
+ switch (_b) {
2511
+ case "CustomDBEngineVersionAlreadyExistsFault": return [3, 2];
2512
+ case "com.amazonaws.rds#CustomDBEngineVersionAlreadyExistsFault": return [3, 2];
2513
+ case "CustomDBEngineVersionQuotaExceededFault": return [3, 4];
2514
+ case "com.amazonaws.rds#CustomDBEngineVersionQuotaExceededFault": return [3, 4];
2515
+ case "KMSKeyNotAccessibleFault": return [3, 6];
2516
+ case "com.amazonaws.rds#KMSKeyNotAccessibleFault": return [3, 6];
2517
+ }
2518
+ return [3, 8];
2519
+ case 2:
2520
+ _c = [{}];
2521
+ return [4, deserializeAws_queryCustomDBEngineVersionAlreadyExistsFaultResponse(parsedOutput, context)];
2522
+ case 3:
2523
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2524
+ return [3, 9];
2525
+ case 4:
2526
+ _d = [{}];
2527
+ return [4, deserializeAws_queryCustomDBEngineVersionQuotaExceededFaultResponse(parsedOutput, context)];
2528
+ case 5:
2529
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2530
+ return [3, 9];
2531
+ case 6:
2532
+ _e = [{}];
2533
+ return [4, deserializeAws_queryKMSKeyNotAccessibleFaultResponse(parsedOutput, context)];
2534
+ case 7:
2535
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2536
+ return [3, 9];
2537
+ case 8:
2538
+ parsedBody = parsedOutput.body;
2539
+ errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
2540
+ response = __assign(__assign({}, parsedBody.Error), { name: "" + errorCode, message: parsedBody.Error.message || parsedBody.Error.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
2541
+ _g.label = 9;
2542
+ case 9:
2543
+ message = response.message || response.Message || errorCode;
2544
+ response.message = message;
2545
+ delete response.Message;
2546
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2547
+ }
2548
+ });
2549
+ }); };
2448
2550
  export var deserializeAws_queryCreateDBClusterCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2449
2551
  var data, contents, response;
2450
2552
  return __generator(this, function (_a) {
@@ -4061,6 +4163,70 @@ var deserializeAws_queryDeleteCustomAvailabilityZoneCommandError = function (out
4061
4163
  }
4062
4164
  });
4063
4165
  }); };
4166
+ export var deserializeAws_queryDeleteCustomDBEngineVersionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4167
+ var data, contents, response;
4168
+ return __generator(this, function (_a) {
4169
+ switch (_a.label) {
4170
+ case 0:
4171
+ if (output.statusCode >= 300) {
4172
+ return [2, deserializeAws_queryDeleteCustomDBEngineVersionCommandError(output, context)];
4173
+ }
4174
+ return [4, parseBody(output.body, context)];
4175
+ case 1:
4176
+ data = _a.sent();
4177
+ contents = {};
4178
+ contents = deserializeAws_queryDBEngineVersion(data.DeleteCustomDBEngineVersionResult, context);
4179
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
4180
+ return [2, Promise.resolve(response)];
4181
+ }
4182
+ });
4183
+ }); };
4184
+ var deserializeAws_queryDeleteCustomDBEngineVersionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4185
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
4186
+ var _e;
4187
+ return __generator(this, function (_f) {
4188
+ switch (_f.label) {
4189
+ case 0:
4190
+ _a = [__assign({}, output)];
4191
+ _e = {};
4192
+ return [4, parseBody(output.body, context)];
4193
+ case 1:
4194
+ parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
4195
+ errorCode = "UnknownError";
4196
+ errorCode = loadQueryErrorCode(output, parsedOutput.body);
4197
+ _b = errorCode;
4198
+ switch (_b) {
4199
+ case "CustomDBEngineVersionNotFoundFault": return [3, 2];
4200
+ case "com.amazonaws.rds#CustomDBEngineVersionNotFoundFault": return [3, 2];
4201
+ case "InvalidCustomDBEngineVersionStateFault": return [3, 4];
4202
+ case "com.amazonaws.rds#InvalidCustomDBEngineVersionStateFault": return [3, 4];
4203
+ }
4204
+ return [3, 6];
4205
+ case 2:
4206
+ _c = [{}];
4207
+ return [4, deserializeAws_queryCustomDBEngineVersionNotFoundFaultResponse(parsedOutput, context)];
4208
+ case 3:
4209
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4210
+ return [3, 7];
4211
+ case 4:
4212
+ _d = [{}];
4213
+ return [4, deserializeAws_queryInvalidCustomDBEngineVersionStateFaultResponse(parsedOutput, context)];
4214
+ case 5:
4215
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4216
+ return [3, 7];
4217
+ case 6:
4218
+ parsedBody = parsedOutput.body;
4219
+ errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
4220
+ response = __assign(__assign({}, parsedBody.Error), { name: "" + errorCode, message: parsedBody.Error.message || parsedBody.Error.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
4221
+ _f.label = 7;
4222
+ case 7:
4223
+ message = response.message || response.Message || errorCode;
4224
+ response.message = message;
4225
+ delete response.Message;
4226
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
4227
+ }
4228
+ });
4229
+ }); };
4064
4230
  export var deserializeAws_queryDeleteDBClusterCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4065
4231
  var data, contents, response;
4066
4232
  return __generator(this, function (_a) {
@@ -7921,6 +8087,70 @@ var deserializeAws_queryModifyCurrentDBClusterCapacityCommandError = function (o
7921
8087
  }
7922
8088
  });
7923
8089
  }); };
8090
+ export var deserializeAws_queryModifyCustomDBEngineVersionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
8091
+ var data, contents, response;
8092
+ return __generator(this, function (_a) {
8093
+ switch (_a.label) {
8094
+ case 0:
8095
+ if (output.statusCode >= 300) {
8096
+ return [2, deserializeAws_queryModifyCustomDBEngineVersionCommandError(output, context)];
8097
+ }
8098
+ return [4, parseBody(output.body, context)];
8099
+ case 1:
8100
+ data = _a.sent();
8101
+ contents = {};
8102
+ contents = deserializeAws_queryDBEngineVersion(data.ModifyCustomDBEngineVersionResult, context);
8103
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
8104
+ return [2, Promise.resolve(response)];
8105
+ }
8106
+ });
8107
+ }); };
8108
+ var deserializeAws_queryModifyCustomDBEngineVersionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
8109
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
8110
+ var _e;
8111
+ return __generator(this, function (_f) {
8112
+ switch (_f.label) {
8113
+ case 0:
8114
+ _a = [__assign({}, output)];
8115
+ _e = {};
8116
+ return [4, parseBody(output.body, context)];
8117
+ case 1:
8118
+ parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
8119
+ errorCode = "UnknownError";
8120
+ errorCode = loadQueryErrorCode(output, parsedOutput.body);
8121
+ _b = errorCode;
8122
+ switch (_b) {
8123
+ case "CustomDBEngineVersionNotFoundFault": return [3, 2];
8124
+ case "com.amazonaws.rds#CustomDBEngineVersionNotFoundFault": return [3, 2];
8125
+ case "InvalidCustomDBEngineVersionStateFault": return [3, 4];
8126
+ case "com.amazonaws.rds#InvalidCustomDBEngineVersionStateFault": return [3, 4];
8127
+ }
8128
+ return [3, 6];
8129
+ case 2:
8130
+ _c = [{}];
8131
+ return [4, deserializeAws_queryCustomDBEngineVersionNotFoundFaultResponse(parsedOutput, context)];
8132
+ case 3:
8133
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
8134
+ return [3, 7];
8135
+ case 4:
8136
+ _d = [{}];
8137
+ return [4, deserializeAws_queryInvalidCustomDBEngineVersionStateFaultResponse(parsedOutput, context)];
8138
+ case 5:
8139
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
8140
+ return [3, 7];
8141
+ case 6:
8142
+ parsedBody = parsedOutput.body;
8143
+ errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
8144
+ response = __assign(__assign({}, parsedBody.Error), { name: "" + errorCode, message: parsedBody.Error.message || parsedBody.Error.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
8145
+ _f.label = 7;
8146
+ case 7:
8147
+ message = response.message || response.Message || errorCode;
8148
+ response.message = message;
8149
+ delete response.Message;
8150
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
8151
+ }
8152
+ });
8153
+ }); };
7924
8154
  export var deserializeAws_queryModifyDBClusterCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
7925
8155
  var data, contents, response;
7926
8156
  return __generator(this, function (_a) {
@@ -12233,6 +12463,33 @@ var deserializeAws_queryCustomAvailabilityZoneQuotaExceededFaultResponse = funct
12233
12463
  return [2, contents];
12234
12464
  });
12235
12465
  }); };
12466
+ var deserializeAws_queryCustomDBEngineVersionAlreadyExistsFaultResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
12467
+ var body, deserialized, contents;
12468
+ return __generator(this, function (_a) {
12469
+ body = parsedOutput.body;
12470
+ deserialized = deserializeAws_queryCustomDBEngineVersionAlreadyExistsFault(body.Error, context);
12471
+ contents = __assign({ name: "CustomDBEngineVersionAlreadyExistsFault", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
12472
+ return [2, contents];
12473
+ });
12474
+ }); };
12475
+ var deserializeAws_queryCustomDBEngineVersionNotFoundFaultResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
12476
+ var body, deserialized, contents;
12477
+ return __generator(this, function (_a) {
12478
+ body = parsedOutput.body;
12479
+ deserialized = deserializeAws_queryCustomDBEngineVersionNotFoundFault(body.Error, context);
12480
+ contents = __assign({ name: "CustomDBEngineVersionNotFoundFault", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
12481
+ return [2, contents];
12482
+ });
12483
+ }); };
12484
+ var deserializeAws_queryCustomDBEngineVersionQuotaExceededFaultResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
12485
+ var body, deserialized, contents;
12486
+ return __generator(this, function (_a) {
12487
+ body = parsedOutput.body;
12488
+ deserialized = deserializeAws_queryCustomDBEngineVersionQuotaExceededFault(body.Error, context);
12489
+ contents = __assign({ name: "CustomDBEngineVersionQuotaExceededFault", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
12490
+ return [2, contents];
12491
+ });
12492
+ }); };
12236
12493
  var deserializeAws_queryDBClusterAlreadyExistsFaultResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
12237
12494
  var body, deserialized, contents;
12238
12495
  return __generator(this, function (_a) {
@@ -12791,6 +13048,15 @@ var deserializeAws_queryInsufficientStorageClusterCapacityFaultResponse = functi
12791
13048
  return [2, contents];
12792
13049
  });
12793
13050
  }); };
13051
+ var deserializeAws_queryInvalidCustomDBEngineVersionStateFaultResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
13052
+ var body, deserialized, contents;
13053
+ return __generator(this, function (_a) {
13054
+ body = parsedOutput.body;
13055
+ deserialized = deserializeAws_queryInvalidCustomDBEngineVersionStateFault(body.Error, context);
13056
+ contents = __assign({ name: "InvalidCustomDBEngineVersionStateFault", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
13057
+ return [2, contents];
13058
+ });
13059
+ }); };
12794
13060
  var deserializeAws_queryInvalidDBClusterCapacityFaultResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
12795
13061
  var body, deserialized, contents;
12796
13062
  return __generator(this, function (_a) {
@@ -13553,6 +13819,40 @@ var serializeAws_queryCreateCustomAvailabilityZoneMessage = function (input, con
13553
13819
  }
13554
13820
  return entries;
13555
13821
  };
13822
+ var serializeAws_queryCreateCustomDBEngineVersionMessage = function (input, context) {
13823
+ var entries = {};
13824
+ if (input.Engine !== undefined && input.Engine !== null) {
13825
+ entries["Engine"] = input.Engine;
13826
+ }
13827
+ if (input.EngineVersion !== undefined && input.EngineVersion !== null) {
13828
+ entries["EngineVersion"] = input.EngineVersion;
13829
+ }
13830
+ if (input.DatabaseInstallationFilesS3BucketName !== undefined &&
13831
+ input.DatabaseInstallationFilesS3BucketName !== null) {
13832
+ entries["DatabaseInstallationFilesS3BucketName"] = input.DatabaseInstallationFilesS3BucketName;
13833
+ }
13834
+ if (input.DatabaseInstallationFilesS3Prefix !== undefined && input.DatabaseInstallationFilesS3Prefix !== null) {
13835
+ entries["DatabaseInstallationFilesS3Prefix"] = input.DatabaseInstallationFilesS3Prefix;
13836
+ }
13837
+ if (input.KMSKeyId !== undefined && input.KMSKeyId !== null) {
13838
+ entries["KMSKeyId"] = input.KMSKeyId;
13839
+ }
13840
+ if (input.Description !== undefined && input.Description !== null) {
13841
+ entries["Description"] = input.Description;
13842
+ }
13843
+ if (input.Manifest !== undefined && input.Manifest !== null) {
13844
+ entries["Manifest"] = input.Manifest;
13845
+ }
13846
+ if (input.Tags !== undefined && input.Tags !== null) {
13847
+ var memberEntries = serializeAws_queryTagList(input.Tags, context);
13848
+ Object.entries(memberEntries).forEach(function (_a) {
13849
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
13850
+ var loc = "Tags." + key;
13851
+ entries[loc] = value;
13852
+ });
13853
+ }
13854
+ return entries;
13855
+ };
13556
13856
  var serializeAws_queryCreateDBClusterEndpointMessage = function (input, context) {
13557
13857
  var entries = {};
13558
13858
  if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
@@ -13928,6 +14228,9 @@ var serializeAws_queryCreateDBInstanceMessage = function (input, context) {
13928
14228
  if (input.EnableCustomerOwnedIp !== undefined && input.EnableCustomerOwnedIp !== null) {
13929
14229
  entries["EnableCustomerOwnedIp"] = input.EnableCustomerOwnedIp;
13930
14230
  }
14231
+ if (input.CustomIamInstanceProfile !== undefined && input.CustomIamInstanceProfile !== null) {
14232
+ entries["CustomIamInstanceProfile"] = input.CustomIamInstanceProfile;
14233
+ }
13931
14234
  return entries;
13932
14235
  };
13933
14236
  var serializeAws_queryCreateDBInstanceReadReplicaMessage = function (input, context) {
@@ -14048,6 +14351,9 @@ var serializeAws_queryCreateDBInstanceReadReplicaMessage = function (input, cont
14048
14351
  if (input.MaxAllocatedStorage !== undefined && input.MaxAllocatedStorage !== null) {
14049
14352
  entries["MaxAllocatedStorage"] = input.MaxAllocatedStorage;
14050
14353
  }
14354
+ if (input.CustomIamInstanceProfile !== undefined && input.CustomIamInstanceProfile !== null) {
14355
+ entries["CustomIamInstanceProfile"] = input.CustomIamInstanceProfile;
14356
+ }
14051
14357
  return entries;
14052
14358
  };
14053
14359
  var serializeAws_queryCreateDBParameterGroupMessage = function (input, context) {
@@ -14343,6 +14649,16 @@ var serializeAws_queryDeleteCustomAvailabilityZoneMessage = function (input, con
14343
14649
  }
14344
14650
  return entries;
14345
14651
  };
14652
+ var serializeAws_queryDeleteCustomDBEngineVersionMessage = function (input, context) {
14653
+ var entries = {};
14654
+ if (input.Engine !== undefined && input.Engine !== null) {
14655
+ entries["Engine"] = input.Engine;
14656
+ }
14657
+ if (input.EngineVersion !== undefined && input.EngineVersion !== null) {
14658
+ entries["EngineVersion"] = input.EngineVersion;
14659
+ }
14660
+ return entries;
14661
+ };
14346
14662
  var serializeAws_queryDeleteDBClusterEndpointMessage = function (input, context) {
14347
14663
  var entries = {};
14348
14664
  if (input.DBClusterEndpointIdentifier !== undefined && input.DBClusterEndpointIdentifier !== null) {
@@ -15694,6 +16010,22 @@ var serializeAws_queryModifyCurrentDBClusterCapacityMessage = function (input, c
15694
16010
  }
15695
16011
  return entries;
15696
16012
  };
16013
+ var serializeAws_queryModifyCustomDBEngineVersionMessage = function (input, context) {
16014
+ var entries = {};
16015
+ if (input.Engine !== undefined && input.Engine !== null) {
16016
+ entries["Engine"] = input.Engine;
16017
+ }
16018
+ if (input.EngineVersion !== undefined && input.EngineVersion !== null) {
16019
+ entries["EngineVersion"] = input.EngineVersion;
16020
+ }
16021
+ if (input.Description !== undefined && input.Description !== null) {
16022
+ entries["Description"] = input.Description;
16023
+ }
16024
+ if (input.Status !== undefined && input.Status !== null) {
16025
+ entries["Status"] = input.Status;
16026
+ }
16027
+ return entries;
16028
+ };
15697
16029
  var serializeAws_queryModifyDBClusterEndpointMessage = function (input, context) {
15698
16030
  var entries = {};
15699
16031
  if (input.DBClusterEndpointIdentifier !== undefined && input.DBClusterEndpointIdentifier !== null) {
@@ -16009,6 +16341,12 @@ var serializeAws_queryModifyDBInstanceMessage = function (input, context) {
16009
16341
  if (input.AwsBackupRecoveryPointArn !== undefined && input.AwsBackupRecoveryPointArn !== null) {
16010
16342
  entries["AwsBackupRecoveryPointArn"] = input.AwsBackupRecoveryPointArn;
16011
16343
  }
16344
+ if (input.AutomationMode !== undefined && input.AutomationMode !== null) {
16345
+ entries["AutomationMode"] = input.AutomationMode;
16346
+ }
16347
+ if (input.ResumeFullAutomationModeMinutes !== undefined && input.ResumeFullAutomationModeMinutes !== null) {
16348
+ entries["ResumeFullAutomationModeMinutes"] = input.ResumeFullAutomationModeMinutes;
16349
+ }
16012
16350
  return entries;
16013
16351
  };
16014
16352
  var serializeAws_queryModifyDBParameterGroupMessage = function (input, context) {
@@ -17062,6 +17400,9 @@ var serializeAws_queryRestoreDBInstanceFromDBSnapshotMessage = function (input,
17062
17400
  if (input.EnableCustomerOwnedIp !== undefined && input.EnableCustomerOwnedIp !== null) {
17063
17401
  entries["EnableCustomerOwnedIp"] = input.EnableCustomerOwnedIp;
17064
17402
  }
17403
+ if (input.CustomIamInstanceProfile !== undefined && input.CustomIamInstanceProfile !== null) {
17404
+ entries["CustomIamInstanceProfile"] = input.CustomIamInstanceProfile;
17405
+ }
17065
17406
  return entries;
17066
17407
  };
17067
17408
  var serializeAws_queryRestoreDBInstanceFromS3Message = function (input, context) {
@@ -17349,6 +17690,9 @@ var serializeAws_queryRestoreDBInstanceToPointInTimeMessage = function (input, c
17349
17690
  if (input.EnableCustomerOwnedIp !== undefined && input.EnableCustomerOwnedIp !== null) {
17350
17691
  entries["EnableCustomerOwnedIp"] = input.EnableCustomerOwnedIp;
17351
17692
  }
17693
+ if (input.CustomIamInstanceProfile !== undefined && input.CustomIamInstanceProfile !== null) {
17694
+ entries["CustomIamInstanceProfile"] = input.CustomIamInstanceProfile;
17695
+ }
17352
17696
  return entries;
17353
17697
  };
17354
17698
  var serializeAws_queryRevokeDBSecurityGroupIngressMessage = function (input, context) {
@@ -18251,6 +18595,33 @@ var deserializeAws_queryCustomAvailabilityZoneQuotaExceededFault = function (out
18251
18595
  }
18252
18596
  return contents;
18253
18597
  };
18598
+ var deserializeAws_queryCustomDBEngineVersionAlreadyExistsFault = function (output, context) {
18599
+ var contents = {
18600
+ message: undefined,
18601
+ };
18602
+ if (output["message"] !== undefined) {
18603
+ contents.message = __expectString(output["message"]);
18604
+ }
18605
+ return contents;
18606
+ };
18607
+ var deserializeAws_queryCustomDBEngineVersionNotFoundFault = function (output, context) {
18608
+ var contents = {
18609
+ message: undefined,
18610
+ };
18611
+ if (output["message"] !== undefined) {
18612
+ contents.message = __expectString(output["message"]);
18613
+ }
18614
+ return contents;
18615
+ };
18616
+ var deserializeAws_queryCustomDBEngineVersionQuotaExceededFault = function (output, context) {
18617
+ var contents = {
18618
+ message: undefined,
18619
+ };
18620
+ if (output["message"] !== undefined) {
18621
+ contents.message = __expectString(output["message"]);
18622
+ }
18623
+ return contents;
18624
+ };
18254
18625
  var deserializeAws_queryDBCluster = function (output, context) {
18255
18626
  var contents = {
18256
18627
  AllocatedStorage: undefined,
@@ -19162,6 +19533,13 @@ var deserializeAws_queryDBEngineVersion = function (output, context) {
19162
19533
  Status: undefined,
19163
19534
  SupportsParallelQuery: undefined,
19164
19535
  SupportsGlobalDatabases: undefined,
19536
+ MajorEngineVersion: undefined,
19537
+ DatabaseInstallationFilesS3BucketName: undefined,
19538
+ DatabaseInstallationFilesS3Prefix: undefined,
19539
+ DBEngineVersionArn: undefined,
19540
+ KMSKeyId: undefined,
19541
+ CreateTime: undefined,
19542
+ TagList: undefined,
19165
19543
  };
19166
19544
  if (output["Engine"] !== undefined) {
19167
19545
  contents.Engine = __expectString(output["Engine"]);
@@ -19240,6 +19618,30 @@ var deserializeAws_queryDBEngineVersion = function (output, context) {
19240
19618
  if (output["SupportsGlobalDatabases"] !== undefined) {
19241
19619
  contents.SupportsGlobalDatabases = __parseBoolean(output["SupportsGlobalDatabases"]);
19242
19620
  }
19621
+ if (output["MajorEngineVersion"] !== undefined) {
19622
+ contents.MajorEngineVersion = __expectString(output["MajorEngineVersion"]);
19623
+ }
19624
+ if (output["DatabaseInstallationFilesS3BucketName"] !== undefined) {
19625
+ contents.DatabaseInstallationFilesS3BucketName = __expectString(output["DatabaseInstallationFilesS3BucketName"]);
19626
+ }
19627
+ if (output["DatabaseInstallationFilesS3Prefix"] !== undefined) {
19628
+ contents.DatabaseInstallationFilesS3Prefix = __expectString(output["DatabaseInstallationFilesS3Prefix"]);
19629
+ }
19630
+ if (output["DBEngineVersionArn"] !== undefined) {
19631
+ contents.DBEngineVersionArn = __expectString(output["DBEngineVersionArn"]);
19632
+ }
19633
+ if (output["KMSKeyId"] !== undefined) {
19634
+ contents.KMSKeyId = __expectString(output["KMSKeyId"]);
19635
+ }
19636
+ if (output["CreateTime"] !== undefined) {
19637
+ contents.CreateTime = __expectNonNull(__parseRfc3339DateTime(output["CreateTime"]));
19638
+ }
19639
+ if (output.TagList === "") {
19640
+ contents.TagList = [];
19641
+ }
19642
+ if (output["TagList"] !== undefined && output["TagList"]["Tag"] !== undefined) {
19643
+ contents.TagList = deserializeAws_queryTagList(__getArrayIfSingleItem(output["TagList"]["Tag"]), context);
19644
+ }
19243
19645
  return contents;
19244
19646
  };
19245
19647
  var deserializeAws_queryDBEngineVersionList = function (output, context) {
@@ -19340,6 +19742,9 @@ var deserializeAws_queryDBInstance = function (output, context) {
19340
19742
  ActivityStreamKinesisStreamName: undefined,
19341
19743
  ActivityStreamMode: undefined,
19342
19744
  ActivityStreamEngineNativeAuditFieldsIncluded: undefined,
19745
+ AutomationMode: undefined,
19746
+ ResumeFullAutomationModeTime: undefined,
19747
+ CustomIamInstanceProfile: undefined,
19343
19748
  };
19344
19749
  if (output["DBInstanceIdentifier"] !== undefined) {
19345
19750
  contents.DBInstanceIdentifier = __expectString(output["DBInstanceIdentifier"]);
@@ -19596,6 +20001,15 @@ var deserializeAws_queryDBInstance = function (output, context) {
19596
20001
  if (output["ActivityStreamEngineNativeAuditFieldsIncluded"] !== undefined) {
19597
20002
  contents.ActivityStreamEngineNativeAuditFieldsIncluded = __parseBoolean(output["ActivityStreamEngineNativeAuditFieldsIncluded"]);
19598
20003
  }
20004
+ if (output["AutomationMode"] !== undefined) {
20005
+ contents.AutomationMode = __expectString(output["AutomationMode"]);
20006
+ }
20007
+ if (output["ResumeFullAutomationModeTime"] !== undefined) {
20008
+ contents.ResumeFullAutomationModeTime = __expectNonNull(__parseRfc3339DateTime(output["ResumeFullAutomationModeTime"]));
20009
+ }
20010
+ if (output["CustomIamInstanceProfile"] !== undefined) {
20011
+ contents.CustomIamInstanceProfile = __expectString(output["CustomIamInstanceProfile"]);
20012
+ }
19599
20013
  return contents;
19600
20014
  };
19601
20015
  var deserializeAws_queryDBInstanceAlreadyExistsFault = function (output, context) {
@@ -21851,6 +22265,15 @@ var deserializeAws_queryInsufficientStorageClusterCapacityFault = function (outp
21851
22265
  }
21852
22266
  return contents;
21853
22267
  };
22268
+ var deserializeAws_queryInvalidCustomDBEngineVersionStateFault = function (output, context) {
22269
+ var contents = {
22270
+ message: undefined,
22271
+ };
22272
+ if (output["message"] !== undefined) {
22273
+ contents.message = __expectString(output["message"]);
22274
+ }
22275
+ return contents;
22276
+ };
21854
22277
  var deserializeAws_queryInvalidDBClusterCapacityFault = function (output, context) {
21855
22278
  var contents = {
21856
22279
  message: undefined,
@@ -23014,6 +23437,8 @@ var deserializeAws_queryPendingModifiedValues = function (output, context) {
23014
23437
  PendingCloudwatchLogsExports: undefined,
23015
23438
  ProcessorFeatures: undefined,
23016
23439
  IAMDatabaseAuthenticationEnabled: undefined,
23440
+ AutomationMode: undefined,
23441
+ ResumeFullAutomationModeTime: undefined,
23017
23442
  };
23018
23443
  if (output["DBInstanceClass"] !== undefined) {
23019
23444
  contents.DBInstanceClass = __expectString(output["DBInstanceClass"]);
@@ -23066,6 +23491,12 @@ var deserializeAws_queryPendingModifiedValues = function (output, context) {
23066
23491
  if (output["IAMDatabaseAuthenticationEnabled"] !== undefined) {
23067
23492
  contents.IAMDatabaseAuthenticationEnabled = __parseBoolean(output["IAMDatabaseAuthenticationEnabled"]);
23068
23493
  }
23494
+ if (output["AutomationMode"] !== undefined) {
23495
+ contents.AutomationMode = __expectString(output["AutomationMode"]);
23496
+ }
23497
+ if (output["ResumeFullAutomationModeTime"] !== undefined) {
23498
+ contents.ResumeFullAutomationModeTime = __expectNonNull(__parseRfc3339DateTime(output["ResumeFullAutomationModeTime"]));
23499
+ }
23069
23500
  return contents;
23070
23501
  };
23071
23502
  var deserializeAws_queryPointInTimeRestoreNotEnabledFault = function (output, context) {
@@ -1,6 +1,7 @@
1
1
  import { __assign } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
+ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
4
5
  import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
6
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
6
7
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
@@ -10,7 +11,7 @@ import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
10
11
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
11
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
12
13
  export var getRuntimeConfig = function (config) {
13
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
14
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
14
15
  var clientSharedValues = getSharedRuntimeConfig(config);
15
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", 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 : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), 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 : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
16
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", 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 : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), 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 : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : 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 : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), 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 });
16
17
  };
@@ -1,7 +1,7 @@
1
1
  import { __assign } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
- import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
4
+ import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
5
5
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
6
6
  import { Hash } from "@aws-sdk/hash-node";
7
7
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
@@ -14,8 +14,8 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
15
  import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
16
16
  export var getRuntimeConfig = function (config) {
17
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
17
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
18
18
  emitWarningIfUnsupportedVersion(process.version);
19
19
  var clientSharedValues = getSharedRuntimeConfig(config);
20
- 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, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
20
+ 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
21
  };
@@ -0,0 +1,6 @@
1
+ export * from "./waitForDBClusterSnapshotAvailable";
2
+ export * from "./waitForDBClusterSnapshotDeleted";
3
+ export * from "./waitForDBInstanceAvailable";
4
+ export * from "./waitForDBInstanceDeleted";
5
+ export * from "./waitForDBSnapshotAvailable";
6
+ export * from "./waitForDBSnapshotDeleted";