@aws-sdk/client-rds 3.46.0 → 3.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +39 -0
- package/dist-cjs/endpoints.js +0 -28
- package/dist-cjs/models/models_0.js +4 -594
- package/dist-cjs/models/models_1.js +3 -141
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +10 -2
- package/dist-es/endpoints.js +0 -28
- package/dist-es/models/models_0.js +0 -392
- package/dist-es/models/models_1.js +0 -92
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -4
- package/dist-types/RDS.d.ts +13 -10
- package/dist-types/RDSClient.d.ts +5 -1
- package/dist-types/commands/CreateEventSubscriptionCommand.d.ts +3 -3
- package/dist-types/commands/DescribeEventCategoriesCommand.d.ts +7 -4
- package/dist-types/commands/DescribeEventsCommand.d.ts +3 -3
- package/dist-types/models/models_0.d.ts +19 -597
- package/dist-types/models/models_1.d.ts +11 -148
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/RDSClient.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +0 -392
- package/dist-types/ts3.4/models/models_1.d.ts +1 -93
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +37 -37
|
@@ -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
|
|
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
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,19 +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 { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
16
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
15
17
|
export var getRuntimeConfig = function (config) {
|
|
16
18
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
19
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
17
21
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
18
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new
|
|
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 });
|
|
19
28
|
};
|
package/dist-types/RDS.d.ts
CHANGED
|
@@ -630,10 +630,10 @@ export declare class RDS extends RDSClient {
|
|
|
630
630
|
* <code>Backup</code>.</p>
|
|
631
631
|
*
|
|
632
632
|
* <p>If you specify both the <code>SourceType</code> and <code>SourceIds</code>, such as <code>SourceType</code> = <code>db-instance</code>
|
|
633
|
-
* and <code>
|
|
634
|
-
* the specified source. If you specify a <code>SourceType</code> but do not specify
|
|
633
|
+
* and <code>SourceIds</code> = <code>myDBInstance1</code>, you are notified of all the <code>db-instance</code> events for
|
|
634
|
+
* the specified source. If you specify a <code>SourceType</code> but do not specify <code>SourceIds</code>,
|
|
635
635
|
* you receive notice of the events for that source type for all your RDS sources. If you
|
|
636
|
-
* don't specify either the SourceType or the <code>
|
|
636
|
+
* don't specify either the SourceType or the <code>SourceIds</code>, you are notified of events
|
|
637
637
|
* generated from all RDS sources belonging to your customer account.</p>
|
|
638
638
|
* <note>
|
|
639
639
|
* <p>RDS event notification is only available for unencrypted SNS topics. If you specify an
|
|
@@ -1157,20 +1157,23 @@ export declare class RDS extends RDSClient {
|
|
|
1157
1157
|
describeEngineDefaultParameters(args: DescribeEngineDefaultParametersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeEngineDefaultParametersCommandOutput) => void): void;
|
|
1158
1158
|
/**
|
|
1159
1159
|
* <p>Displays a list of categories for all event source types, or, if specified, for a specified source type.
|
|
1160
|
-
* You can see
|
|
1161
|
-
*
|
|
1162
|
-
*
|
|
1163
|
-
*
|
|
1160
|
+
* You can also see this list in the "Amazon RDS event categories and event messages" section of the <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Events.Messages.html">
|
|
1161
|
+
* <i>Amazon RDS User Guide</i>
|
|
1162
|
+
* </a> or the
|
|
1163
|
+
* <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Events.Messages.html">
|
|
1164
|
+
* <i>Amazon Aurora User Guide</i>
|
|
1165
|
+
* </a>.
|
|
1166
|
+
* </p>
|
|
1164
1167
|
*/
|
|
1165
1168
|
describeEventCategories(args: DescribeEventCategoriesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeEventCategoriesCommandOutput>;
|
|
1166
1169
|
describeEventCategories(args: DescribeEventCategoriesCommandInput, cb: (err: any, data?: DescribeEventCategoriesCommandOutput) => void): void;
|
|
1167
1170
|
describeEventCategories(args: DescribeEventCategoriesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeEventCategoriesCommandOutput) => void): void;
|
|
1168
1171
|
/**
|
|
1169
|
-
* <p>Returns events related to DB instances, DB clusters, DB parameter groups, DB security groups, DB snapshots,
|
|
1170
|
-
* Events specific to a particular DB
|
|
1172
|
+
* <p>Returns events related to DB instances, DB clusters, DB parameter groups, DB security groups, DB snapshots, DB cluster snapshots, and RDS Proxies for the past 14 days.
|
|
1173
|
+
* Events specific to a particular DB instance, DB cluster, DB parameter group, DB security group, DB snapshot, DB cluster snapshot group, or RDS Proxy can be
|
|
1171
1174
|
* obtained by providing the name as a parameter.</p>
|
|
1172
1175
|
* <note>
|
|
1173
|
-
* <p>By default,
|
|
1176
|
+
* <p>By default, RDS returns events that were generated in the past hour.</p>
|
|
1174
1177
|
* </note>
|
|
1175
1178
|
*/
|
|
1176
1179
|
describeEvents(args: DescribeEventsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeEventsCommandOutput>;
|
|
@@ -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
|
/**
|
|
@@ -21,10 +21,10 @@ export interface CreateEventSubscriptionCommandOutput extends CreateEventSubscri
|
|
|
21
21
|
* <code>Backup</code>.</p>
|
|
22
22
|
*
|
|
23
23
|
* <p>If you specify both the <code>SourceType</code> and <code>SourceIds</code>, such as <code>SourceType</code> = <code>db-instance</code>
|
|
24
|
-
* and <code>
|
|
25
|
-
* the specified source. If you specify a <code>SourceType</code> but do not specify
|
|
24
|
+
* and <code>SourceIds</code> = <code>myDBInstance1</code>, you are notified of all the <code>db-instance</code> events for
|
|
25
|
+
* the specified source. If you specify a <code>SourceType</code> but do not specify <code>SourceIds</code>,
|
|
26
26
|
* you receive notice of the events for that source type for all your RDS sources. If you
|
|
27
|
-
* don't specify either the SourceType or the <code>
|
|
27
|
+
* don't specify either the SourceType or the <code>SourceIds</code>, you are notified of events
|
|
28
28
|
* generated from all RDS sources belonging to your customer account.</p>
|
|
29
29
|
* <note>
|
|
30
30
|
* <p>RDS event notification is only available for unencrypted SNS topics. If you specify an
|
|
@@ -8,10 +8,13 @@ export interface DescribeEventCategoriesCommandOutput extends EventCategoriesMes
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* <p>Displays a list of categories for all event source types, or, if specified, for a specified source type.
|
|
11
|
-
* You can see
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
11
|
+
* You can also see this list in the "Amazon RDS event categories and event messages" section of the <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Events.Messages.html">
|
|
12
|
+
* <i>Amazon RDS User Guide</i>
|
|
13
|
+
* </a> or the
|
|
14
|
+
* <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Events.Messages.html">
|
|
15
|
+
* <i>Amazon Aurora User Guide</i>
|
|
16
|
+
* </a>.
|
|
17
|
+
* </p>
|
|
15
18
|
* @example
|
|
16
19
|
* Use a bare-bones client and the command you need to make an API call.
|
|
17
20
|
* ```javascript
|
|
@@ -7,11 +7,11 @@ export interface DescribeEventsCommandInput extends DescribeEventsMessage {
|
|
|
7
7
|
export interface DescribeEventsCommandOutput extends EventsMessage, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>Returns events related to DB instances, DB clusters, DB parameter groups, DB security groups, DB snapshots,
|
|
11
|
-
* Events specific to a particular DB
|
|
10
|
+
* <p>Returns events related to DB instances, DB clusters, DB parameter groups, DB security groups, DB snapshots, DB cluster snapshots, and RDS Proxies for the past 14 days.
|
|
11
|
+
* Events specific to a particular DB instance, DB cluster, DB parameter group, DB security group, DB snapshot, DB cluster snapshot group, or RDS Proxy can be
|
|
12
12
|
* obtained by providing the name as a parameter.</p>
|
|
13
13
|
* <note>
|
|
14
|
-
* <p>By default,
|
|
14
|
+
* <p>By default, RDS returns events that were generated in the past hour.</p>
|
|
15
15
|
* </note>
|
|
16
16
|
* @example
|
|
17
17
|
* Use a bare-bones client and the command you need to make an API call.
|