@aws-sdk/client-rds 3.183.0 → 3.185.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 +11 -0
- package/dist-cjs/protocols/Aws_query.js +2 -2
- package/dist-es/RDS.js +557 -550
- package/dist-es/RDSClient.js +28 -22
- package/dist-es/commands/AddRoleToDBClusterCommand.js +29 -22
- package/dist-es/commands/AddRoleToDBInstanceCommand.js +29 -22
- package/dist-es/commands/AddSourceIdentifierToSubscriptionCommand.js +28 -21
- package/dist-es/commands/AddTagsToResourceCommand.js +29 -22
- package/dist-es/commands/ApplyPendingMaintenanceActionCommand.js +28 -21
- package/dist-es/commands/AuthorizeDBSecurityGroupIngressCommand.js +28 -21
- package/dist-es/commands/BacktrackDBClusterCommand.js +28 -21
- package/dist-es/commands/CancelExportTaskCommand.js +28 -21
- package/dist-es/commands/CopyDBClusterParameterGroupCommand.js +28 -21
- package/dist-es/commands/CopyDBClusterSnapshotCommand.js +28 -21
- package/dist-es/commands/CopyDBParameterGroupCommand.js +28 -21
- package/dist-es/commands/CopyDBSnapshotCommand.js +28 -21
- package/dist-es/commands/CopyOptionGroupCommand.js +28 -21
- package/dist-es/commands/CreateCustomDBEngineVersionCommand.js +28 -21
- package/dist-es/commands/CreateDBClusterCommand.js +28 -21
- package/dist-es/commands/CreateDBClusterEndpointCommand.js +28 -21
- package/dist-es/commands/CreateDBClusterParameterGroupCommand.js +28 -21
- package/dist-es/commands/CreateDBClusterSnapshotCommand.js +28 -21
- package/dist-es/commands/CreateDBInstanceCommand.js +28 -21
- package/dist-es/commands/CreateDBInstanceReadReplicaCommand.js +28 -21
- package/dist-es/commands/CreateDBParameterGroupCommand.js +28 -21
- package/dist-es/commands/CreateDBProxyCommand.js +28 -21
- package/dist-es/commands/CreateDBProxyEndpointCommand.js +28 -21
- package/dist-es/commands/CreateDBSecurityGroupCommand.js +28 -21
- package/dist-es/commands/CreateDBSnapshotCommand.js +28 -21
- package/dist-es/commands/CreateDBSubnetGroupCommand.js +28 -21
- package/dist-es/commands/CreateEventSubscriptionCommand.js +28 -21
- package/dist-es/commands/CreateGlobalClusterCommand.js +28 -21
- package/dist-es/commands/CreateOptionGroupCommand.js +28 -21
- package/dist-es/commands/DeleteCustomDBEngineVersionCommand.js +28 -21
- package/dist-es/commands/DeleteDBClusterCommand.js +28 -21
- package/dist-es/commands/DeleteDBClusterEndpointCommand.js +28 -21
- package/dist-es/commands/DeleteDBClusterParameterGroupCommand.js +29 -22
- package/dist-es/commands/DeleteDBClusterSnapshotCommand.js +28 -21
- package/dist-es/commands/DeleteDBInstanceAutomatedBackupCommand.js +28 -21
- package/dist-es/commands/DeleteDBInstanceCommand.js +28 -21
- package/dist-es/commands/DeleteDBParameterGroupCommand.js +29 -22
- package/dist-es/commands/DeleteDBProxyCommand.js +28 -21
- package/dist-es/commands/DeleteDBProxyEndpointCommand.js +28 -21
- package/dist-es/commands/DeleteDBSecurityGroupCommand.js +29 -22
- package/dist-es/commands/DeleteDBSnapshotCommand.js +28 -21
- package/dist-es/commands/DeleteDBSubnetGroupCommand.js +29 -22
- package/dist-es/commands/DeleteEventSubscriptionCommand.js +28 -21
- package/dist-es/commands/DeleteGlobalClusterCommand.js +28 -21
- package/dist-es/commands/DeleteOptionGroupCommand.js +29 -22
- package/dist-es/commands/DeregisterDBProxyTargetsCommand.js +28 -21
- package/dist-es/commands/DescribeAccountAttributesCommand.js +28 -21
- package/dist-es/commands/DescribeCertificatesCommand.js +28 -21
- package/dist-es/commands/DescribeDBClusterBacktracksCommand.js +28 -21
- package/dist-es/commands/DescribeDBClusterEndpointsCommand.js +28 -21
- package/dist-es/commands/DescribeDBClusterParameterGroupsCommand.js +28 -21
- package/dist-es/commands/DescribeDBClusterParametersCommand.js +28 -21
- package/dist-es/commands/DescribeDBClusterSnapshotAttributesCommand.js +28 -21
- package/dist-es/commands/DescribeDBClusterSnapshotsCommand.js +28 -21
- package/dist-es/commands/DescribeDBClustersCommand.js +28 -21
- package/dist-es/commands/DescribeDBEngineVersionsCommand.js +28 -21
- package/dist-es/commands/DescribeDBInstanceAutomatedBackupsCommand.js +28 -21
- package/dist-es/commands/DescribeDBInstancesCommand.js +28 -21
- package/dist-es/commands/DescribeDBLogFilesCommand.js +28 -21
- package/dist-es/commands/DescribeDBParameterGroupsCommand.js +28 -21
- package/dist-es/commands/DescribeDBParametersCommand.js +28 -21
- package/dist-es/commands/DescribeDBProxiesCommand.js +28 -21
- package/dist-es/commands/DescribeDBProxyEndpointsCommand.js +28 -21
- package/dist-es/commands/DescribeDBProxyTargetGroupsCommand.js +28 -21
- package/dist-es/commands/DescribeDBProxyTargetsCommand.js +28 -21
- package/dist-es/commands/DescribeDBSecurityGroupsCommand.js +28 -21
- package/dist-es/commands/DescribeDBSnapshotAttributesCommand.js +28 -21
- package/dist-es/commands/DescribeDBSnapshotsCommand.js +28 -21
- package/dist-es/commands/DescribeDBSubnetGroupsCommand.js +28 -21
- package/dist-es/commands/DescribeEngineDefaultClusterParametersCommand.js +28 -21
- package/dist-es/commands/DescribeEngineDefaultParametersCommand.js +28 -21
- package/dist-es/commands/DescribeEventCategoriesCommand.js +28 -21
- package/dist-es/commands/DescribeEventSubscriptionsCommand.js +28 -21
- package/dist-es/commands/DescribeEventsCommand.js +28 -21
- package/dist-es/commands/DescribeExportTasksCommand.js +28 -21
- package/dist-es/commands/DescribeGlobalClustersCommand.js +28 -21
- package/dist-es/commands/DescribeOptionGroupOptionsCommand.js +28 -21
- package/dist-es/commands/DescribeOptionGroupsCommand.js +28 -21
- package/dist-es/commands/DescribeOrderableDBInstanceOptionsCommand.js +28 -21
- package/dist-es/commands/DescribePendingMaintenanceActionsCommand.js +28 -21
- package/dist-es/commands/DescribeReservedDBInstancesCommand.js +28 -21
- package/dist-es/commands/DescribeReservedDBInstancesOfferingsCommand.js +28 -21
- package/dist-es/commands/DescribeSourceRegionsCommand.js +28 -21
- package/dist-es/commands/DescribeValidDBInstanceModificationsCommand.js +28 -21
- package/dist-es/commands/DownloadDBLogFilePortionCommand.js +28 -21
- package/dist-es/commands/FailoverDBClusterCommand.js +28 -21
- package/dist-es/commands/FailoverGlobalClusterCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/ModifyActivityStreamCommand.js +28 -21
- package/dist-es/commands/ModifyCertificatesCommand.js +28 -21
- package/dist-es/commands/ModifyCurrentDBClusterCapacityCommand.js +28 -21
- package/dist-es/commands/ModifyCustomDBEngineVersionCommand.js +28 -21
- package/dist-es/commands/ModifyDBClusterCommand.js +28 -21
- package/dist-es/commands/ModifyDBClusterEndpointCommand.js +28 -21
- package/dist-es/commands/ModifyDBClusterParameterGroupCommand.js +28 -21
- package/dist-es/commands/ModifyDBClusterSnapshotAttributeCommand.js +28 -21
- package/dist-es/commands/ModifyDBInstanceCommand.js +28 -21
- package/dist-es/commands/ModifyDBParameterGroupCommand.js +28 -21
- package/dist-es/commands/ModifyDBProxyCommand.js +28 -21
- package/dist-es/commands/ModifyDBProxyEndpointCommand.js +28 -21
- package/dist-es/commands/ModifyDBProxyTargetGroupCommand.js +28 -21
- package/dist-es/commands/ModifyDBSnapshotAttributeCommand.js +28 -21
- package/dist-es/commands/ModifyDBSnapshotCommand.js +28 -21
- package/dist-es/commands/ModifyDBSubnetGroupCommand.js +28 -21
- package/dist-es/commands/ModifyEventSubscriptionCommand.js +28 -21
- package/dist-es/commands/ModifyGlobalClusterCommand.js +28 -21
- package/dist-es/commands/ModifyOptionGroupCommand.js +28 -21
- package/dist-es/commands/PromoteReadReplicaCommand.js +28 -21
- package/dist-es/commands/PromoteReadReplicaDBClusterCommand.js +28 -21
- package/dist-es/commands/PurchaseReservedDBInstancesOfferingCommand.js +28 -21
- package/dist-es/commands/RebootDBClusterCommand.js +28 -21
- package/dist-es/commands/RebootDBInstanceCommand.js +28 -21
- package/dist-es/commands/RegisterDBProxyTargetsCommand.js +28 -21
- package/dist-es/commands/RemoveFromGlobalClusterCommand.js +28 -21
- package/dist-es/commands/RemoveRoleFromDBClusterCommand.js +29 -22
- package/dist-es/commands/RemoveRoleFromDBInstanceCommand.js +29 -22
- package/dist-es/commands/RemoveSourceIdentifierFromSubscriptionCommand.js +28 -21
- package/dist-es/commands/RemoveTagsFromResourceCommand.js +29 -22
- package/dist-es/commands/ResetDBClusterParameterGroupCommand.js +28 -21
- package/dist-es/commands/ResetDBParameterGroupCommand.js +28 -21
- package/dist-es/commands/RestoreDBClusterFromS3Command.js +28 -21
- package/dist-es/commands/RestoreDBClusterFromSnapshotCommand.js +28 -21
- package/dist-es/commands/RestoreDBClusterToPointInTimeCommand.js +28 -21
- package/dist-es/commands/RestoreDBInstanceFromDBSnapshotCommand.js +28 -21
- package/dist-es/commands/RestoreDBInstanceFromS3Command.js +28 -21
- package/dist-es/commands/RestoreDBInstanceToPointInTimeCommand.js +28 -21
- package/dist-es/commands/RevokeDBSecurityGroupIngressCommand.js +28 -21
- package/dist-es/commands/StartActivityStreamCommand.js +28 -21
- package/dist-es/commands/StartDBClusterCommand.js +28 -21
- package/dist-es/commands/StartDBInstanceAutomatedBackupsReplicationCommand.js +28 -21
- package/dist-es/commands/StartDBInstanceCommand.js +28 -21
- package/dist-es/commands/StartExportTaskCommand.js +28 -21
- package/dist-es/commands/StopActivityStreamCommand.js +28 -21
- package/dist-es/commands/StopDBClusterCommand.js +28 -21
- package/dist-es/commands/StopDBInstanceAutomatedBackupsReplicationCommand.js +28 -21
- package/dist-es/commands/StopDBInstanceCommand.js +28 -21
- package/dist-es/commands/SwitchoverReadReplicaCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/RDSServiceException.js +10 -5
- package/dist-es/models/models_0.js +1339 -1710
- package/dist-es/models/models_1.js +398 -707
- package/dist-es/pagination/DescribeCertificatesPaginator.js +68 -25
- package/dist-es/pagination/DescribeDBClusterBacktracksPaginator.js +68 -25
- package/dist-es/pagination/DescribeDBClusterEndpointsPaginator.js +68 -25
- package/dist-es/pagination/DescribeDBClusterParameterGroupsPaginator.js +68 -25
- package/dist-es/pagination/DescribeDBClusterParametersPaginator.js +68 -25
- package/dist-es/pagination/DescribeDBClusterSnapshotsPaginator.js +68 -25
- package/dist-es/pagination/DescribeDBClustersPaginator.js +68 -25
- package/dist-es/pagination/DescribeDBEngineVersionsPaginator.js +68 -25
- package/dist-es/pagination/DescribeDBInstanceAutomatedBackupsPaginator.js +68 -25
- package/dist-es/pagination/DescribeDBInstancesPaginator.js +68 -25
- package/dist-es/pagination/DescribeDBLogFilesPaginator.js +68 -25
- package/dist-es/pagination/DescribeDBParameterGroupsPaginator.js +68 -25
- package/dist-es/pagination/DescribeDBParametersPaginator.js +68 -25
- package/dist-es/pagination/DescribeDBProxiesPaginator.js +68 -25
- package/dist-es/pagination/DescribeDBProxyEndpointsPaginator.js +68 -25
- package/dist-es/pagination/DescribeDBProxyTargetGroupsPaginator.js +68 -25
- package/dist-es/pagination/DescribeDBProxyTargetsPaginator.js +68 -25
- package/dist-es/pagination/DescribeDBSecurityGroupsPaginator.js +68 -25
- package/dist-es/pagination/DescribeDBSnapshotsPaginator.js +68 -25
- package/dist-es/pagination/DescribeDBSubnetGroupsPaginator.js +68 -25
- package/dist-es/pagination/DescribeEngineDefaultParametersPaginator.js +68 -25
- package/dist-es/pagination/DescribeEventSubscriptionsPaginator.js +68 -25
- package/dist-es/pagination/DescribeEventsPaginator.js +68 -25
- package/dist-es/pagination/DescribeExportTasksPaginator.js +68 -25
- package/dist-es/pagination/DescribeGlobalClustersPaginator.js +68 -25
- package/dist-es/pagination/DescribeOptionGroupOptionsPaginator.js +68 -25
- package/dist-es/pagination/DescribeOptionGroupsPaginator.js +68 -25
- package/dist-es/pagination/DescribeOrderableDBInstanceOptionsPaginator.js +68 -25
- package/dist-es/pagination/DescribePendingMaintenanceActionsPaginator.js +68 -25
- package/dist-es/pagination/DescribeReservedDBInstancesOfferingsPaginator.js +68 -25
- package/dist-es/pagination/DescribeReservedDBInstancesPaginator.js +68 -25
- package/dist-es/pagination/DescribeSourceRegionsPaginator.js +68 -25
- package/dist-es/pagination/DownloadDBLogFilePortionPaginator.js +68 -25
- package/dist-es/protocols/Aws_query.js +13117 -10109
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/dist-es/waiters/waitForDBClusterAvailable.js +187 -106
- package/dist-es/waiters/waitForDBClusterDeleted.js +147 -86
- package/dist-es/waiters/waitForDBClusterSnapshotAvailable.js +187 -106
- package/dist-es/waiters/waitForDBClusterSnapshotDeleted.js +147 -86
- package/dist-es/waiters/waitForDBInstanceAvailable.js +187 -106
- package/dist-es/waiters/waitForDBInstanceDeleted.js +147 -86
- package/dist-es/waiters/waitForDBSnapshotAvailable.js +187 -106
- package/dist-es/waiters/waitForDBSnapshotDeleted.js +147 -86
- package/package.json +5 -5
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
1
2
|
import packageInfo from "../package.json";
|
|
2
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
@@ -11,30 +12,15 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
|
11
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
12
13
|
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
13
14
|
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
|
|
14
|
-
export
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
26
|
-
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
27
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
28
|
-
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
29
|
-
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
30
|
-
region: config?.region ?? invalidProvider("Region is missing"),
|
|
31
|
-
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
|
|
32
|
-
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
33
|
-
sha256: config?.sha256 ?? Sha256,
|
|
34
|
-
streamCollector: config?.streamCollector ?? streamCollector,
|
|
35
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
36
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
37
|
-
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
38
|
-
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
39
|
-
};
|
|
15
|
+
export var getRuntimeConfig = function (config) {
|
|
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); };
|
|
19
|
+
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
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 });
|
|
40
26
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
1
2
|
import packageInfo from "../package.json";
|
|
2
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
3
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";
|
|
@@ -14,35 +15,16 @@ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shar
|
|
|
14
15
|
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
15
16
|
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
16
17
|
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
17
|
-
export
|
|
18
|
+
export var getRuntimeConfig = function (config) {
|
|
19
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
18
20
|
emitWarningIfUnsupportedVersion(process.version);
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
return {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
29
|
-
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
30
|
-
credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
|
|
31
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
32
|
-
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
33
|
-
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
34
|
-
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
35
|
-
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
|
|
36
|
-
retryMode: config?.retryMode ??
|
|
37
|
-
loadNodeConfig({
|
|
38
|
-
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
39
|
-
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
40
|
-
}),
|
|
41
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
42
|
-
streamCollector: config?.streamCollector ?? streamCollector,
|
|
43
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
44
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
-
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
46
|
-
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
47
|
-
};
|
|
21
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
22
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
23
|
+
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
24
|
+
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) {
|
|
25
|
+
switch (_a.label) {
|
|
26
|
+
case 0: return [4, defaultConfigProvider()];
|
|
27
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
28
|
+
}
|
|
29
|
+
}); }); } })), 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 });
|
|
48
30
|
};
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
+
import { __assign } from "tslib";
|
|
1
2
|
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
3
|
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
...config,
|
|
8
|
-
runtime: "react-native",
|
|
9
|
-
sha256: config?.sha256 ?? Sha256,
|
|
10
|
-
};
|
|
4
|
+
export var getRuntimeConfig = function (config) {
|
|
5
|
+
var _a;
|
|
6
|
+
var browserDefaults = getBrowserRuntimeConfig(config);
|
|
7
|
+
return __assign(__assign(__assign({}, browserDefaults), config), { runtime: "react-native", sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : Sha256 });
|
|
11
8
|
};
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { parseUrl } from "@aws-sdk/url-parser";
|
|
2
2
|
import { defaultRegionInfoProvider } from "./endpoints";
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
export var getRuntimeConfig = function (config) {
|
|
4
|
+
var _a, _b, _c, _d, _e;
|
|
5
|
+
return ({
|
|
6
|
+
apiVersion: "2014-10-31",
|
|
7
|
+
disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
|
|
8
|
+
logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {},
|
|
9
|
+
regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : defaultRegionInfoProvider,
|
|
10
|
+
serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "RDS",
|
|
11
|
+
urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : parseUrl,
|
|
12
|
+
});
|
|
13
|
+
};
|
|
@@ -1,114 +1,195 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator, __read, __spreadArray, __values } from "tslib";
|
|
1
2
|
import { checkExceptions, createWaiter, WaiterState } from "@aws-sdk/util-waiter";
|
|
2
3
|
import { DescribeDBClustersCommand } from "../commands/DescribeDBClustersCommand";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
4
|
+
var checkState = function (client, input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
|
+
var reason, result_1, returnComparator, allStringEq_5, _a, _b, element_4, returnComparator, _c, _d, anyStringEq_4, returnComparator, _e, _f, anyStringEq_4, returnComparator, _g, _h, anyStringEq_4, returnComparator, _j, _k, anyStringEq_4, returnComparator, _l, _m, anyStringEq_4, exception_1;
|
|
6
|
+
var e_1, _o, e_2, _p, e_3, _q, e_4, _r, e_5, _s, e_6, _t;
|
|
7
|
+
return __generator(this, function (_u) {
|
|
8
|
+
switch (_u.label) {
|
|
9
|
+
case 0:
|
|
10
|
+
_u.trys.push([0, 2, , 3]);
|
|
11
|
+
return [4, client.send(new DescribeDBClustersCommand(input))];
|
|
12
|
+
case 1:
|
|
13
|
+
result_1 = _u.sent();
|
|
14
|
+
reason = result_1;
|
|
15
|
+
try {
|
|
16
|
+
returnComparator = function () {
|
|
17
|
+
var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.DBClusters), false));
|
|
18
|
+
var projection_3 = flat_1.map(function (element_2) {
|
|
19
|
+
return element_2.Status;
|
|
20
|
+
});
|
|
21
|
+
return projection_3;
|
|
22
|
+
};
|
|
23
|
+
allStringEq_5 = returnComparator().length > 0;
|
|
24
|
+
try {
|
|
25
|
+
for (_a = __values(returnComparator()), _b = _a.next(); !_b.done; _b = _a.next()) {
|
|
26
|
+
element_4 = _b.value;
|
|
27
|
+
allStringEq_5 = allStringEq_5 && element_4 == "available";
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
31
|
+
finally {
|
|
32
|
+
try {
|
|
33
|
+
if (_b && !_b.done && (_o = _a.return)) _o.call(_a);
|
|
34
|
+
}
|
|
35
|
+
finally { if (e_1) throw e_1.error; }
|
|
36
|
+
}
|
|
37
|
+
if (allStringEq_5) {
|
|
38
|
+
return [2, { state: WaiterState.SUCCESS, reason: reason }];
|
|
39
|
+
}
|
|
36
40
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
41
|
+
catch (e) { }
|
|
42
|
+
try {
|
|
43
|
+
returnComparator = function () {
|
|
44
|
+
var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.DBClusters), false));
|
|
45
|
+
var projection_3 = flat_1.map(function (element_2) {
|
|
46
|
+
return element_2.Status;
|
|
47
|
+
});
|
|
48
|
+
return projection_3;
|
|
49
|
+
};
|
|
50
|
+
try {
|
|
51
|
+
for (_c = __values(returnComparator()), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
52
|
+
anyStringEq_4 = _d.value;
|
|
53
|
+
if (anyStringEq_4 == "deleted") {
|
|
54
|
+
return [2, { state: WaiterState.FAILURE, reason: reason }];
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
59
|
+
finally {
|
|
60
|
+
try {
|
|
61
|
+
if (_d && !_d.done && (_p = _c.return)) _p.call(_c);
|
|
62
|
+
}
|
|
63
|
+
finally { if (e_2) throw e_2.error; }
|
|
64
|
+
}
|
|
51
65
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
+
catch (e) { }
|
|
67
|
+
try {
|
|
68
|
+
returnComparator = function () {
|
|
69
|
+
var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.DBClusters), false));
|
|
70
|
+
var projection_3 = flat_1.map(function (element_2) {
|
|
71
|
+
return element_2.Status;
|
|
72
|
+
});
|
|
73
|
+
return projection_3;
|
|
74
|
+
};
|
|
75
|
+
try {
|
|
76
|
+
for (_e = __values(returnComparator()), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
77
|
+
anyStringEq_4 = _f.value;
|
|
78
|
+
if (anyStringEq_4 == "deleting") {
|
|
79
|
+
return [2, { state: WaiterState.FAILURE, reason: reason }];
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
84
|
+
finally {
|
|
85
|
+
try {
|
|
86
|
+
if (_f && !_f.done && (_q = _e.return)) _q.call(_e);
|
|
87
|
+
}
|
|
88
|
+
finally { if (e_3) throw e_3.error; }
|
|
89
|
+
}
|
|
66
90
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
91
|
+
catch (e) { }
|
|
92
|
+
try {
|
|
93
|
+
returnComparator = function () {
|
|
94
|
+
var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.DBClusters), false));
|
|
95
|
+
var projection_3 = flat_1.map(function (element_2) {
|
|
96
|
+
return element_2.Status;
|
|
97
|
+
});
|
|
98
|
+
return projection_3;
|
|
99
|
+
};
|
|
100
|
+
try {
|
|
101
|
+
for (_g = __values(returnComparator()), _h = _g.next(); !_h.done; _h = _g.next()) {
|
|
102
|
+
anyStringEq_4 = _h.value;
|
|
103
|
+
if (anyStringEq_4 == "failed") {
|
|
104
|
+
return [2, { state: WaiterState.FAILURE, reason: reason }];
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
109
|
+
finally {
|
|
110
|
+
try {
|
|
111
|
+
if (_h && !_h.done && (_r = _g.return)) _r.call(_g);
|
|
112
|
+
}
|
|
113
|
+
finally { if (e_4) throw e_4.error; }
|
|
114
|
+
}
|
|
81
115
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
116
|
+
catch (e) { }
|
|
117
|
+
try {
|
|
118
|
+
returnComparator = function () {
|
|
119
|
+
var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.DBClusters), false));
|
|
120
|
+
var projection_3 = flat_1.map(function (element_2) {
|
|
121
|
+
return element_2.Status;
|
|
122
|
+
});
|
|
123
|
+
return projection_3;
|
|
124
|
+
};
|
|
125
|
+
try {
|
|
126
|
+
for (_j = __values(returnComparator()), _k = _j.next(); !_k.done; _k = _j.next()) {
|
|
127
|
+
anyStringEq_4 = _k.value;
|
|
128
|
+
if (anyStringEq_4 == "incompatible-restore") {
|
|
129
|
+
return [2, { state: WaiterState.FAILURE, reason: reason }];
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
134
|
+
finally {
|
|
135
|
+
try {
|
|
136
|
+
if (_k && !_k.done && (_s = _j.return)) _s.call(_j);
|
|
137
|
+
}
|
|
138
|
+
finally { if (e_5) throw e_5.error; }
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
catch (e) { }
|
|
142
|
+
try {
|
|
143
|
+
returnComparator = function () {
|
|
144
|
+
var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.DBClusters), false));
|
|
145
|
+
var projection_3 = flat_1.map(function (element_2) {
|
|
146
|
+
return element_2.Status;
|
|
147
|
+
});
|
|
148
|
+
return projection_3;
|
|
149
|
+
};
|
|
150
|
+
try {
|
|
151
|
+
for (_l = __values(returnComparator()), _m = _l.next(); !_m.done; _m = _l.next()) {
|
|
152
|
+
anyStringEq_4 = _m.value;
|
|
153
|
+
if (anyStringEq_4 == "incompatible-parameters") {
|
|
154
|
+
return [2, { state: WaiterState.FAILURE, reason: reason }];
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
|
159
|
+
finally {
|
|
160
|
+
try {
|
|
161
|
+
if (_m && !_m.done && (_t = _l.return)) _t.call(_l);
|
|
162
|
+
}
|
|
163
|
+
finally { if (e_6) throw e_6.error; }
|
|
164
|
+
}
|
|
96
165
|
}
|
|
97
|
-
|
|
166
|
+
catch (e) { }
|
|
167
|
+
return [3, 3];
|
|
168
|
+
case 2:
|
|
169
|
+
exception_1 = _u.sent();
|
|
170
|
+
reason = exception_1;
|
|
171
|
+
return [3, 3];
|
|
172
|
+
case 3: return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
}); };
|
|
176
|
+
export var waitForDBClusterAvailable = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
177
|
+
var serviceDefaults;
|
|
178
|
+
return __generator(this, function (_a) {
|
|
179
|
+
serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
180
|
+
return [2, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
181
|
+
});
|
|
182
|
+
}); };
|
|
183
|
+
export var waitUntilDBClusterAvailable = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
184
|
+
var serviceDefaults, result;
|
|
185
|
+
return __generator(this, function (_a) {
|
|
186
|
+
switch (_a.label) {
|
|
187
|
+
case 0:
|
|
188
|
+
serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
189
|
+
return [4, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
190
|
+
case 1:
|
|
191
|
+
result = _a.sent();
|
|
192
|
+
return [2, checkExceptions(result)];
|
|
98
193
|
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
catch (exception) {
|
|
102
|
-
reason = exception;
|
|
103
|
-
}
|
|
104
|
-
return { state: WaiterState.RETRY, reason };
|
|
105
|
-
};
|
|
106
|
-
export const waitForDBClusterAvailable = async (params, input) => {
|
|
107
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
108
|
-
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
109
|
-
};
|
|
110
|
-
export const waitUntilDBClusterAvailable = async (params, input) => {
|
|
111
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
112
|
-
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
113
|
-
return checkExceptions(result);
|
|
114
|
-
};
|
|
194
|
+
});
|
|
195
|
+
}); };
|