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