@aws-sdk/client-rds 3.45.0 → 3.47.2

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.
@@ -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,6 @@ 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 = {}));
530
490
  export var RebootDBClusterMessage;
531
491
  (function (RebootDBClusterMessage) {
532
492
  RebootDBClusterMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -543,14 +503,6 @@ export var RebootDBInstanceResult;
543
503
  (function (RebootDBInstanceResult) {
544
504
  RebootDBInstanceResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
545
505
  })(RebootDBInstanceResult || (RebootDBInstanceResult = {}));
546
- export var DBProxyTargetAlreadyRegisteredFault;
547
- (function (DBProxyTargetAlreadyRegisteredFault) {
548
- DBProxyTargetAlreadyRegisteredFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
549
- })(DBProxyTargetAlreadyRegisteredFault || (DBProxyTargetAlreadyRegisteredFault = {}));
550
- export var InsufficientAvailableIPsInSubnetFault;
551
- (function (InsufficientAvailableIPsInSubnetFault) {
552
- InsufficientAvailableIPsInSubnetFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
553
- })(InsufficientAvailableIPsInSubnetFault || (InsufficientAvailableIPsInSubnetFault = {}));
554
506
  export var RegisterDBProxyTargetsRequest;
555
507
  (function (RegisterDBProxyTargetsRequest) {
556
508
  RegisterDBProxyTargetsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -567,18 +519,10 @@ export var RemoveFromGlobalClusterResult;
567
519
  (function (RemoveFromGlobalClusterResult) {
568
520
  RemoveFromGlobalClusterResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
569
521
  })(RemoveFromGlobalClusterResult || (RemoveFromGlobalClusterResult = {}));
570
- export var DBClusterRoleNotFoundFault;
571
- (function (DBClusterRoleNotFoundFault) {
572
- DBClusterRoleNotFoundFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
573
- })(DBClusterRoleNotFoundFault || (DBClusterRoleNotFoundFault = {}));
574
522
  export var RemoveRoleFromDBClusterMessage;
575
523
  (function (RemoveRoleFromDBClusterMessage) {
576
524
  RemoveRoleFromDBClusterMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
577
525
  })(RemoveRoleFromDBClusterMessage || (RemoveRoleFromDBClusterMessage = {}));
578
- export var DBInstanceRoleNotFoundFault;
579
- (function (DBInstanceRoleNotFoundFault) {
580
- DBInstanceRoleNotFoundFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
581
- })(DBInstanceRoleNotFoundFault || (DBInstanceRoleNotFoundFault = {}));
582
526
  export var RemoveRoleFromDBInstanceMessage;
583
527
  (function (RemoveRoleFromDBInstanceMessage) {
584
528
  RemoveRoleFromDBInstanceMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -603,10 +547,6 @@ export var ResetDBParameterGroupMessage;
603
547
  (function (ResetDBParameterGroupMessage) {
604
548
  ResetDBParameterGroupMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
605
549
  })(ResetDBParameterGroupMessage || (ResetDBParameterGroupMessage = {}));
606
- export var InvalidS3BucketFault;
607
- (function (InvalidS3BucketFault) {
608
- InvalidS3BucketFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
609
- })(InvalidS3BucketFault || (InvalidS3BucketFault = {}));
610
550
  export var RestoreDBClusterFromS3Message;
611
551
  (function (RestoreDBClusterFromS3Message) {
612
552
  RestoreDBClusterFromS3Message.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -615,14 +555,6 @@ export var RestoreDBClusterFromS3Result;
615
555
  (function (RestoreDBClusterFromS3Result) {
616
556
  RestoreDBClusterFromS3Result.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
617
557
  })(RestoreDBClusterFromS3Result || (RestoreDBClusterFromS3Result = {}));
618
- export var InsufficientDBClusterCapacityFault;
619
- (function (InsufficientDBClusterCapacityFault) {
620
- InsufficientDBClusterCapacityFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
621
- })(InsufficientDBClusterCapacityFault || (InsufficientDBClusterCapacityFault = {}));
622
- export var InvalidRestoreFault;
623
- (function (InvalidRestoreFault) {
624
- InvalidRestoreFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
625
- })(InvalidRestoreFault || (InvalidRestoreFault = {}));
626
558
  export var RestoreDBClusterFromSnapshotMessage;
627
559
  (function (RestoreDBClusterFromSnapshotMessage) {
628
560
  RestoreDBClusterFromSnapshotMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -655,10 +587,6 @@ export var RestoreDBInstanceFromS3Result;
655
587
  (function (RestoreDBInstanceFromS3Result) {
656
588
  RestoreDBInstanceFromS3Result.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
657
589
  })(RestoreDBInstanceFromS3Result || (RestoreDBInstanceFromS3Result = {}));
658
- export var PointInTimeRestoreNotEnabledFault;
659
- (function (PointInTimeRestoreNotEnabledFault) {
660
- PointInTimeRestoreNotEnabledFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
661
- })(PointInTimeRestoreNotEnabledFault || (PointInTimeRestoreNotEnabledFault = {}));
662
590
  export var RestoreDBInstanceToPointInTimeMessage;
663
591
  (function (RestoreDBInstanceToPointInTimeMessage) {
664
592
  RestoreDBInstanceToPointInTimeMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -707,26 +635,6 @@ export var StartDBInstanceAutomatedBackupsReplicationResult;
707
635
  (function (StartDBInstanceAutomatedBackupsReplicationResult) {
708
636
  StartDBInstanceAutomatedBackupsReplicationResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
709
637
  })(StartDBInstanceAutomatedBackupsReplicationResult || (StartDBInstanceAutomatedBackupsReplicationResult = {}));
710
- export var ExportTaskAlreadyExistsFault;
711
- (function (ExportTaskAlreadyExistsFault) {
712
- ExportTaskAlreadyExistsFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
713
- })(ExportTaskAlreadyExistsFault || (ExportTaskAlreadyExistsFault = {}));
714
- export var IamRoleMissingPermissionsFault;
715
- (function (IamRoleMissingPermissionsFault) {
716
- IamRoleMissingPermissionsFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
717
- })(IamRoleMissingPermissionsFault || (IamRoleMissingPermissionsFault = {}));
718
- export var IamRoleNotFoundFault;
719
- (function (IamRoleNotFoundFault) {
720
- IamRoleNotFoundFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
721
- })(IamRoleNotFoundFault || (IamRoleNotFoundFault = {}));
722
- export var InvalidExportOnlyFault;
723
- (function (InvalidExportOnlyFault) {
724
- InvalidExportOnlyFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
725
- })(InvalidExportOnlyFault || (InvalidExportOnlyFault = {}));
726
- export var InvalidExportSourceStateFault;
727
- (function (InvalidExportSourceStateFault) {
728
- InvalidExportSourceStateFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
729
- })(InvalidExportSourceStateFault || (InvalidExportSourceStateFault = {}));
730
638
  export var StartExportTaskMessage;
731
639
  (function (StartExportTaskMessage) {
732
640
  StartExportTaskMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -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
  };
@@ -1,21 +1,28 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
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
- import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
7
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
8
8
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
9
- import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
9
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
10
10
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
11
11
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
12
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
13
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
- import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
15
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
16
17
  export var getRuntimeConfig = function (config) {
17
18
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
18
- emitWarningIfUnsupportedVersion(process.version);
19
+ var defaultsMode = resolveDefaultsModeConfig(config);
20
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
19
21
  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, 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 });
22
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", 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 : 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 RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
23
+ switch (_a.label) {
24
+ case 0: return [4, defaultConfigProvider()];
25
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
26
+ }
27
+ }); }); } })), 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
28
  };
@@ -410,7 +410,7 @@ export declare class RDS extends RDSClient {
410
410
  * RU/RUR.</p>
411
411
  * <p>Amazon RDS, which is a fully managed service, supplies the Amazon Machine Image (AMI) and database software.
412
412
  * The Amazon RDS database software is preinstalled, so you need only select a DB engine and version, and create
413
- * your database. With Amazon RDS Custom, you upload your database installation files in Amazon S3.</p>
413
+ * your database. With Amazon RDS Custom for Oracle, you upload your database installation files in Amazon S3.</p>
414
414
  * <p>When you create a custom engine version, you specify the files in a JSON document called a CEV manifest.
415
415
  * This document describes installation .zip files stored in Amazon S3. RDS Custom creates your CEV from
416
416
  * the installation files that you provided. This service model is called Bring Your Own Media (BYOM).</p>
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
4
4
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
8
  import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { AddRoleToDBClusterCommandInput, AddRoleToDBClusterCommandOutput } from "./commands/AddRoleToDBClusterCommand";
10
10
  import { AddRoleToDBInstanceCommandInput, AddRoleToDBInstanceCommandOutput } from "./commands/AddRoleToDBInstanceCommand";
@@ -249,6 +249,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
249
249
  * @internal
250
250
  */
251
251
  defaultUserAgentProvider?: Provider<__UserAgent>;
252
+ /**
253
+ * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
254
+ */
255
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
252
256
  }
253
257
  declare type RDSClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
254
258
  /**
@@ -12,7 +12,7 @@ export interface CreateCustomDBEngineVersionCommandOutput extends DBEngineVersio
12
12
  * RU/RUR.</p>
13
13
  * <p>Amazon RDS, which is a fully managed service, supplies the Amazon Machine Image (AMI) and database software.
14
14
  * The Amazon RDS database software is preinstalled, so you need only select a DB engine and version, and create
15
- * your database. With Amazon RDS Custom, you upload your database installation files in Amazon S3.</p>
15
+ * your database. With Amazon RDS Custom for Oracle, you upload your database installation files in Amazon S3.</p>
16
16
  * <p>When you create a custom engine version, you specify the files in a JSON document called a CEV manifest.
17
17
  * This document describes installation .zip files stored in Amazon S3. RDS Custom creates your CEV from
18
18
  * the installation files that you provided. This service model is called Bring Your Own Media (BYOM).</p>