@aws-sdk/client-rds 3.42.0 → 3.47.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 (74) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/dist-cjs/RDS.js +15 -0
  3. package/dist-cjs/commands/RebootDBClusterCommand.js +36 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/endpoints.js +1 -28
  6. package/dist-cjs/models/models_0.js +4 -594
  7. package/dist-cjs/models/models_1.js +11 -137
  8. package/dist-cjs/protocols/Aws_query.js +248 -4
  9. package/dist-cjs/runtimeConfig.browser.js +7 -2
  10. package/dist-cjs/runtimeConfig.js +9 -3
  11. package/dist-es/RDS.js +15 -0
  12. package/dist-es/commands/RebootDBClusterCommand.js +39 -0
  13. package/dist-es/commands/index.js +1 -0
  14. package/dist-es/endpoints.js +1 -28
  15. package/dist-es/models/models_0.js +0 -392
  16. package/dist-es/models/models_1.js +8 -92
  17. package/dist-es/protocols/Aws_query.js +250 -0
  18. package/dist-es/runtimeConfig.browser.js +12 -3
  19. package/dist-es/runtimeConfig.js +13 -6
  20. package/dist-types/RDS.d.ts +199 -118
  21. package/dist-types/RDSClient.d.ts +8 -3
  22. package/dist-types/commands/AddRoleToDBClusterCommand.d.ts +1 -6
  23. package/dist-types/commands/AuthorizeDBSecurityGroupIngressCommand.d.ts +1 -1
  24. package/dist-types/commands/CopyDBClusterParameterGroupCommand.d.ts +0 -3
  25. package/dist-types/commands/CopyDBClusterSnapshotCommand.d.ts +11 -7
  26. package/dist-types/commands/CreateCustomDBEngineVersionCommand.d.ts +5 -9
  27. package/dist-types/commands/CreateDBClusterCommand.d.ts +11 -8
  28. package/dist-types/commands/CreateDBClusterEndpointCommand.d.ts +3 -3
  29. package/dist-types/commands/CreateDBClusterParameterGroupCommand.d.ts +11 -5
  30. package/dist-types/commands/CreateDBClusterSnapshotCommand.d.ts +8 -4
  31. package/dist-types/commands/DeleteDBClusterCommand.d.ts +6 -3
  32. package/dist-types/commands/DeleteDBClusterParameterGroupCommand.d.ts +6 -2
  33. package/dist-types/commands/DeleteDBClusterSnapshotCommand.d.ts +6 -2
  34. package/dist-types/commands/DescribeDBClusterBacktracksCommand.d.ts +1 -1
  35. package/dist-types/commands/DescribeDBClusterParameterGroupsCommand.d.ts +6 -2
  36. package/dist-types/commands/DescribeDBClusterParametersCommand.d.ts +6 -2
  37. package/dist-types/commands/DescribeDBClusterSnapshotAttributesCommand.d.ts +0 -3
  38. package/dist-types/commands/DescribeDBClusterSnapshotsCommand.d.ts +7 -3
  39. package/dist-types/commands/DescribeDBClustersCommand.d.ts +9 -4
  40. package/dist-types/commands/DescribeEngineDefaultClusterParametersCommand.d.ts +1 -1
  41. package/dist-types/commands/DescribeGlobalClustersCommand.d.ts +1 -1
  42. package/dist-types/commands/DescribeOrderableDBInstanceOptionsCommand.d.ts +1 -1
  43. package/dist-types/commands/FailoverDBClusterCommand.d.ts +16 -8
  44. package/dist-types/commands/ModifyCustomDBEngineVersionCommand.d.ts +1 -1
  45. package/dist-types/commands/ModifyDBClusterCommand.d.ts +11 -7
  46. package/dist-types/commands/ModifyDBClusterParameterGroupCommand.d.ts +9 -5
  47. package/dist-types/commands/ModifyDBClusterSnapshotAttributeCommand.d.ts +0 -3
  48. package/dist-types/commands/ModifyGlobalClusterCommand.d.ts +1 -1
  49. package/dist-types/commands/PromoteReadReplicaDBClusterCommand.d.ts +0 -3
  50. package/dist-types/commands/RebootDBClusterCommand.d.ts +52 -0
  51. package/dist-types/commands/RemoveFromGlobalClusterCommand.d.ts +1 -1
  52. package/dist-types/commands/RemoveRoleFromDBClusterCommand.d.ts +11 -4
  53. package/dist-types/commands/ResetDBClusterParameterGroupCommand.d.ts +7 -4
  54. package/dist-types/commands/RestoreDBClusterFromS3Command.d.ts +1 -1
  55. package/dist-types/commands/RestoreDBClusterFromSnapshotCommand.d.ts +8 -5
  56. package/dist-types/commands/RestoreDBClusterToPointInTimeCommand.d.ts +8 -4
  57. package/dist-types/commands/index.d.ts +1 -0
  58. package/dist-types/models/models_0.d.ts +571 -809
  59. package/dist-types/models/models_1.d.ts +686 -285
  60. package/dist-types/protocols/Aws_query.d.ts +3 -0
  61. package/dist-types/runtimeConfig.browser.d.ts +3 -2
  62. package/dist-types/runtimeConfig.d.ts +4 -3
  63. package/dist-types/runtimeConfig.native.d.ts +1 -0
  64. package/dist-types/ts3.4/RDS.d.ts +5 -0
  65. package/dist-types/ts3.4/RDSClient.d.ts +6 -3
  66. package/dist-types/ts3.4/commands/RebootDBClusterCommand.d.ts +17 -0
  67. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  68. package/dist-types/ts3.4/models/models_0.d.ts +50 -392
  69. package/dist-types/ts3.4/models/models_1.d.ts +56 -90
  70. package/dist-types/ts3.4/protocols/Aws_query.d.ts +3 -0
  71. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
  72. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
  73. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  74. package/package.json +40 -47
@@ -225,10 +225,6 @@ export var ReservedDBInstanceMessage;
225
225
  (function (ReservedDBInstanceMessage) {
226
226
  ReservedDBInstanceMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
227
227
  })(ReservedDBInstanceMessage || (ReservedDBInstanceMessage = {}));
228
- export var ReservedDBInstanceNotFoundFault;
229
- (function (ReservedDBInstanceNotFoundFault) {
230
- ReservedDBInstanceNotFoundFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
231
- })(ReservedDBInstanceNotFoundFault || (ReservedDBInstanceNotFoundFault = {}));
232
228
  export var DescribeReservedDBInstancesOfferingsMessage;
233
229
  (function (DescribeReservedDBInstancesOfferingsMessage) {
234
230
  DescribeReservedDBInstancesOfferingsMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -241,10 +237,6 @@ export var ReservedDBInstancesOfferingMessage;
241
237
  (function (ReservedDBInstancesOfferingMessage) {
242
238
  ReservedDBInstancesOfferingMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
243
239
  })(ReservedDBInstancesOfferingMessage || (ReservedDBInstancesOfferingMessage = {}));
244
- export var ReservedDBInstancesOfferingNotFoundFault;
245
- (function (ReservedDBInstancesOfferingNotFoundFault) {
246
- ReservedDBInstancesOfferingNotFoundFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
247
- })(ReservedDBInstancesOfferingNotFoundFault || (ReservedDBInstancesOfferingNotFoundFault = {}));
248
240
  export var DescribeSourceRegionsMessage;
249
241
  (function (DescribeSourceRegionsMessage) {
250
242
  DescribeSourceRegionsMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -281,10 +273,6 @@ export var DescribeValidDBInstanceModificationsResult;
281
273
  (function (DescribeValidDBInstanceModificationsResult) {
282
274
  DescribeValidDBInstanceModificationsResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
283
275
  })(DescribeValidDBInstanceModificationsResult || (DescribeValidDBInstanceModificationsResult = {}));
284
- export var DBLogFileNotFoundFault;
285
- (function (DBLogFileNotFoundFault) {
286
- DBLogFileNotFoundFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
287
- })(DBLogFileNotFoundFault || (DBLogFileNotFoundFault = {}));
288
276
  export var DownloadDBLogFilePortionDetails;
289
277
  (function (DownloadDBLogFilePortionDetails) {
290
278
  DownloadDBLogFilePortionDetails.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -313,10 +301,6 @@ export var ImportInstallationMediaMessage;
313
301
  (function (ImportInstallationMediaMessage) {
314
302
  ImportInstallationMediaMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
315
303
  })(ImportInstallationMediaMessage || (ImportInstallationMediaMessage = {}));
316
- export var InstallationMediaAlreadyExistsFault;
317
- (function (InstallationMediaAlreadyExistsFault) {
318
- InstallationMediaAlreadyExistsFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
319
- })(InstallationMediaAlreadyExistsFault || (InstallationMediaAlreadyExistsFault = {}));
320
304
  export var ListTagsForResourceMessage;
321
305
  (function (ListTagsForResourceMessage) {
322
306
  ListTagsForResourceMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -337,10 +321,6 @@ export var DBClusterCapacityInfo;
337
321
  (function (DBClusterCapacityInfo) {
338
322
  DBClusterCapacityInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
339
323
  })(DBClusterCapacityInfo || (DBClusterCapacityInfo = {}));
340
- export var InvalidDBClusterCapacityFault;
341
- (function (InvalidDBClusterCapacityFault) {
342
- InvalidDBClusterCapacityFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
343
- })(InvalidDBClusterCapacityFault || (InvalidDBClusterCapacityFault = {}));
344
324
  export var ModifyCurrentDBClusterCapacityMessage;
345
325
  (function (ModifyCurrentDBClusterCapacityMessage) {
346
326
  ModifyCurrentDBClusterCapacityMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -387,14 +367,6 @@ export var ModifyDBClusterSnapshotAttributeResult;
387
367
  (function (ModifyDBClusterSnapshotAttributeResult) {
388
368
  ModifyDBClusterSnapshotAttributeResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
389
369
  })(ModifyDBClusterSnapshotAttributeResult || (ModifyDBClusterSnapshotAttributeResult = {}));
390
- export var SharedSnapshotQuotaExceededFault;
391
- (function (SharedSnapshotQuotaExceededFault) {
392
- SharedSnapshotQuotaExceededFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
393
- })(SharedSnapshotQuotaExceededFault || (SharedSnapshotQuotaExceededFault = {}));
394
- export var DBUpgradeDependencyFailureFault;
395
- (function (DBUpgradeDependencyFailureFault) {
396
- DBUpgradeDependencyFailureFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
397
- })(DBUpgradeDependencyFailureFault || (DBUpgradeDependencyFailureFault = {}));
398
370
  export var ModifyDBInstanceMessage;
399
371
  (function (ModifyDBInstanceMessage) {
400
372
  ModifyDBInstanceMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -463,10 +435,6 @@ export var ModifyDBSubnetGroupResult;
463
435
  (function (ModifyDBSubnetGroupResult) {
464
436
  ModifyDBSubnetGroupResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
465
437
  })(ModifyDBSubnetGroupResult || (ModifyDBSubnetGroupResult = {}));
466
- export var SubnetAlreadyInUse;
467
- (function (SubnetAlreadyInUse) {
468
- SubnetAlreadyInUse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
469
- })(SubnetAlreadyInUse || (SubnetAlreadyInUse = {}));
470
438
  export var ModifyEventSubscriptionMessage;
471
439
  (function (ModifyEventSubscriptionMessage) {
472
440
  ModifyEventSubscriptionMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -519,14 +487,14 @@ export var PurchaseReservedDBInstancesOfferingResult;
519
487
  (function (PurchaseReservedDBInstancesOfferingResult) {
520
488
  PurchaseReservedDBInstancesOfferingResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
521
489
  })(PurchaseReservedDBInstancesOfferingResult || (PurchaseReservedDBInstancesOfferingResult = {}));
522
- export var ReservedDBInstanceAlreadyExistsFault;
523
- (function (ReservedDBInstanceAlreadyExistsFault) {
524
- ReservedDBInstanceAlreadyExistsFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
525
- })(ReservedDBInstanceAlreadyExistsFault || (ReservedDBInstanceAlreadyExistsFault = {}));
526
- export var ReservedDBInstanceQuotaExceededFault;
527
- (function (ReservedDBInstanceQuotaExceededFault) {
528
- ReservedDBInstanceQuotaExceededFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
529
- })(ReservedDBInstanceQuotaExceededFault || (ReservedDBInstanceQuotaExceededFault = {}));
490
+ export var RebootDBClusterMessage;
491
+ (function (RebootDBClusterMessage) {
492
+ RebootDBClusterMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
493
+ })(RebootDBClusterMessage || (RebootDBClusterMessage = {}));
494
+ export var RebootDBClusterResult;
495
+ (function (RebootDBClusterResult) {
496
+ RebootDBClusterResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
497
+ })(RebootDBClusterResult || (RebootDBClusterResult = {}));
530
498
  export var RebootDBInstanceMessage;
531
499
  (function (RebootDBInstanceMessage) {
532
500
  RebootDBInstanceMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -535,14 +503,6 @@ export var RebootDBInstanceResult;
535
503
  (function (RebootDBInstanceResult) {
536
504
  RebootDBInstanceResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
537
505
  })(RebootDBInstanceResult || (RebootDBInstanceResult = {}));
538
- export var DBProxyTargetAlreadyRegisteredFault;
539
- (function (DBProxyTargetAlreadyRegisteredFault) {
540
- DBProxyTargetAlreadyRegisteredFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
541
- })(DBProxyTargetAlreadyRegisteredFault || (DBProxyTargetAlreadyRegisteredFault = {}));
542
- export var InsufficientAvailableIPsInSubnetFault;
543
- (function (InsufficientAvailableIPsInSubnetFault) {
544
- InsufficientAvailableIPsInSubnetFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
545
- })(InsufficientAvailableIPsInSubnetFault || (InsufficientAvailableIPsInSubnetFault = {}));
546
506
  export var RegisterDBProxyTargetsRequest;
547
507
  (function (RegisterDBProxyTargetsRequest) {
548
508
  RegisterDBProxyTargetsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -559,18 +519,10 @@ export var RemoveFromGlobalClusterResult;
559
519
  (function (RemoveFromGlobalClusterResult) {
560
520
  RemoveFromGlobalClusterResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
561
521
  })(RemoveFromGlobalClusterResult || (RemoveFromGlobalClusterResult = {}));
562
- export var DBClusterRoleNotFoundFault;
563
- (function (DBClusterRoleNotFoundFault) {
564
- DBClusterRoleNotFoundFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
565
- })(DBClusterRoleNotFoundFault || (DBClusterRoleNotFoundFault = {}));
566
522
  export var RemoveRoleFromDBClusterMessage;
567
523
  (function (RemoveRoleFromDBClusterMessage) {
568
524
  RemoveRoleFromDBClusterMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
569
525
  })(RemoveRoleFromDBClusterMessage || (RemoveRoleFromDBClusterMessage = {}));
570
- export var DBInstanceRoleNotFoundFault;
571
- (function (DBInstanceRoleNotFoundFault) {
572
- DBInstanceRoleNotFoundFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
573
- })(DBInstanceRoleNotFoundFault || (DBInstanceRoleNotFoundFault = {}));
574
526
  export var RemoveRoleFromDBInstanceMessage;
575
527
  (function (RemoveRoleFromDBInstanceMessage) {
576
528
  RemoveRoleFromDBInstanceMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -595,10 +547,6 @@ export var ResetDBParameterGroupMessage;
595
547
  (function (ResetDBParameterGroupMessage) {
596
548
  ResetDBParameterGroupMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
597
549
  })(ResetDBParameterGroupMessage || (ResetDBParameterGroupMessage = {}));
598
- export var InvalidS3BucketFault;
599
- (function (InvalidS3BucketFault) {
600
- InvalidS3BucketFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
601
- })(InvalidS3BucketFault || (InvalidS3BucketFault = {}));
602
550
  export var RestoreDBClusterFromS3Message;
603
551
  (function (RestoreDBClusterFromS3Message) {
604
552
  RestoreDBClusterFromS3Message.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -607,14 +555,6 @@ export var RestoreDBClusterFromS3Result;
607
555
  (function (RestoreDBClusterFromS3Result) {
608
556
  RestoreDBClusterFromS3Result.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
609
557
  })(RestoreDBClusterFromS3Result || (RestoreDBClusterFromS3Result = {}));
610
- export var InsufficientDBClusterCapacityFault;
611
- (function (InsufficientDBClusterCapacityFault) {
612
- InsufficientDBClusterCapacityFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
613
- })(InsufficientDBClusterCapacityFault || (InsufficientDBClusterCapacityFault = {}));
614
- export var InvalidRestoreFault;
615
- (function (InvalidRestoreFault) {
616
- InvalidRestoreFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
617
- })(InvalidRestoreFault || (InvalidRestoreFault = {}));
618
558
  export var RestoreDBClusterFromSnapshotMessage;
619
559
  (function (RestoreDBClusterFromSnapshotMessage) {
620
560
  RestoreDBClusterFromSnapshotMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -647,10 +587,6 @@ export var RestoreDBInstanceFromS3Result;
647
587
  (function (RestoreDBInstanceFromS3Result) {
648
588
  RestoreDBInstanceFromS3Result.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
649
589
  })(RestoreDBInstanceFromS3Result || (RestoreDBInstanceFromS3Result = {}));
650
- export var PointInTimeRestoreNotEnabledFault;
651
- (function (PointInTimeRestoreNotEnabledFault) {
652
- PointInTimeRestoreNotEnabledFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
653
- })(PointInTimeRestoreNotEnabledFault || (PointInTimeRestoreNotEnabledFault = {}));
654
590
  export var RestoreDBInstanceToPointInTimeMessage;
655
591
  (function (RestoreDBInstanceToPointInTimeMessage) {
656
592
  RestoreDBInstanceToPointInTimeMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -699,26 +635,6 @@ export var StartDBInstanceAutomatedBackupsReplicationResult;
699
635
  (function (StartDBInstanceAutomatedBackupsReplicationResult) {
700
636
  StartDBInstanceAutomatedBackupsReplicationResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
701
637
  })(StartDBInstanceAutomatedBackupsReplicationResult || (StartDBInstanceAutomatedBackupsReplicationResult = {}));
702
- export var ExportTaskAlreadyExistsFault;
703
- (function (ExportTaskAlreadyExistsFault) {
704
- ExportTaskAlreadyExistsFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
705
- })(ExportTaskAlreadyExistsFault || (ExportTaskAlreadyExistsFault = {}));
706
- export var IamRoleMissingPermissionsFault;
707
- (function (IamRoleMissingPermissionsFault) {
708
- IamRoleMissingPermissionsFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
709
- })(IamRoleMissingPermissionsFault || (IamRoleMissingPermissionsFault = {}));
710
- export var IamRoleNotFoundFault;
711
- (function (IamRoleNotFoundFault) {
712
- IamRoleNotFoundFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
713
- })(IamRoleNotFoundFault || (IamRoleNotFoundFault = {}));
714
- export var InvalidExportOnlyFault;
715
- (function (InvalidExportOnlyFault) {
716
- InvalidExportOnlyFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
717
- })(InvalidExportOnlyFault || (InvalidExportOnlyFault = {}));
718
- export var InvalidExportSourceStateFault;
719
- (function (InvalidExportSourceStateFault) {
720
- InvalidExportSourceStateFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
721
- })(InvalidExportSourceStateFault || (InvalidExportSourceStateFault = {}));
722
638
  export var StartExportTaskMessage;
723
639
  (function (StartExportTaskMessage) {
724
640
  StartExportTaskMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -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,
@@ -1,8 +1,8 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
5
- import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
+ import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
6
6
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
7
7
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
8
8
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
10
10
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
11
11
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
12
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
14
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
13
15
  export var getRuntimeConfig = function (config) {
14
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
+ var defaultsMode = resolveDefaultsModeConfig(config);
18
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
15
19
  var clientSharedValues = getSharedRuntimeConfig(config);
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 });
20
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, 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 RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
21
+ switch (_a.label) {
22
+ case 0: return [4, defaultConfigProvider()];
23
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
24
+ }
25
+ }); }); }), 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 });
17
26
  };