@aws-sdk/client-rds 3.489.0 → 3.495.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/dist-cjs/RDS.js +1 -323
- package/dist-cjs/RDSClient.js +1 -56
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +1 -43
- package/dist-cjs/auth/httpAuthSchemeProvider.js +1 -1
- package/dist-cjs/commands/AddRoleToDBClusterCommand.js +1 -28
- package/dist-cjs/commands/AddRoleToDBInstanceCommand.js +1 -28
- package/dist-cjs/commands/AddSourceIdentifierToSubscriptionCommand.js +1 -28
- package/dist-cjs/commands/AddTagsToResourceCommand.js +1 -28
- package/dist-cjs/commands/ApplyPendingMaintenanceActionCommand.js +1 -28
- package/dist-cjs/commands/AuthorizeDBSecurityGroupIngressCommand.js +1 -28
- package/dist-cjs/commands/BacktrackDBClusterCommand.js +1 -28
- package/dist-cjs/commands/CancelExportTaskCommand.js +1 -28
- package/dist-cjs/commands/CopyDBClusterParameterGroupCommand.js +1 -28
- package/dist-cjs/commands/CopyDBClusterSnapshotCommand.js +1 -30
- package/dist-cjs/commands/CopyDBParameterGroupCommand.js +1 -28
- package/dist-cjs/commands/CopyDBSnapshotCommand.js +1 -30
- package/dist-cjs/commands/CopyOptionGroupCommand.js +1 -28
- package/dist-cjs/commands/CreateBlueGreenDeploymentCommand.js +1 -28
- package/dist-cjs/commands/CreateCustomDBEngineVersionCommand.js +1 -28
- package/dist-cjs/commands/CreateDBClusterCommand.js +1 -30
- package/dist-cjs/commands/CreateDBClusterEndpointCommand.js +1 -28
- package/dist-cjs/commands/CreateDBClusterParameterGroupCommand.js +1 -28
- package/dist-cjs/commands/CreateDBClusterSnapshotCommand.js +1 -28
- package/dist-cjs/commands/CreateDBInstanceCommand.js +1 -28
- package/dist-cjs/commands/CreateDBInstanceReadReplicaCommand.js +1 -30
- package/dist-cjs/commands/CreateDBParameterGroupCommand.js +1 -28
- package/dist-cjs/commands/CreateDBProxyCommand.js +1 -28
- package/dist-cjs/commands/CreateDBProxyEndpointCommand.js +1 -28
- package/dist-cjs/commands/CreateDBSecurityGroupCommand.js +1 -28
- package/dist-cjs/commands/CreateDBSnapshotCommand.js +1 -28
- package/dist-cjs/commands/CreateDBSubnetGroupCommand.js +1 -28
- package/dist-cjs/commands/CreateEventSubscriptionCommand.js +1 -28
- package/dist-cjs/commands/CreateGlobalClusterCommand.js +1 -28
- package/dist-cjs/commands/CreateIntegrationCommand.js +1 -28
- package/dist-cjs/commands/CreateOptionGroupCommand.js +1 -28
- package/dist-cjs/commands/CreateTenantDatabaseCommand.js +1 -29
- package/dist-cjs/commands/DeleteBlueGreenDeploymentCommand.js +1 -28
- package/dist-cjs/commands/DeleteCustomDBEngineVersionCommand.js +1 -28
- package/dist-cjs/commands/DeleteDBClusterAutomatedBackupCommand.js +1 -28
- package/dist-cjs/commands/DeleteDBClusterCommand.js +1 -28
- package/dist-cjs/commands/DeleteDBClusterEndpointCommand.js +1 -28
- package/dist-cjs/commands/DeleteDBClusterParameterGroupCommand.js +1 -28
- package/dist-cjs/commands/DeleteDBClusterSnapshotCommand.js +1 -28
- package/dist-cjs/commands/DeleteDBInstanceAutomatedBackupCommand.js +1 -28
- package/dist-cjs/commands/DeleteDBInstanceCommand.js +1 -28
- package/dist-cjs/commands/DeleteDBParameterGroupCommand.js +1 -28
- package/dist-cjs/commands/DeleteDBProxyCommand.js +1 -28
- package/dist-cjs/commands/DeleteDBProxyEndpointCommand.js +1 -28
- package/dist-cjs/commands/DeleteDBSecurityGroupCommand.js +1 -28
- package/dist-cjs/commands/DeleteDBSnapshotCommand.js +1 -28
- package/dist-cjs/commands/DeleteDBSubnetGroupCommand.js +1 -28
- package/dist-cjs/commands/DeleteEventSubscriptionCommand.js +1 -28
- package/dist-cjs/commands/DeleteGlobalClusterCommand.js +1 -28
- package/dist-cjs/commands/DeleteIntegrationCommand.js +1 -28
- package/dist-cjs/commands/DeleteOptionGroupCommand.js +1 -28
- package/dist-cjs/commands/DeleteTenantDatabaseCommand.js +1 -29
- package/dist-cjs/commands/DeregisterDBProxyTargetsCommand.js +1 -28
- package/dist-cjs/commands/DescribeAccountAttributesCommand.js +1 -28
- package/dist-cjs/commands/DescribeBlueGreenDeploymentsCommand.js +1 -28
- package/dist-cjs/commands/DescribeCertificatesCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBClusterAutomatedBackupsCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBClusterBacktracksCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBClusterEndpointsCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBClusterParameterGroupsCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBClusterParametersCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBClusterSnapshotAttributesCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBClusterSnapshotsCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBClustersCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBEngineVersionsCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBInstanceAutomatedBackupsCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBInstancesCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBLogFilesCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBParameterGroupsCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBParametersCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBProxiesCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBProxyEndpointsCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBProxyTargetGroupsCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBProxyTargetsCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBRecommendationsCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBSecurityGroupsCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBSnapshotAttributesCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBSnapshotTenantDatabasesCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBSnapshotsCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBSubnetGroupsCommand.js +1 -28
- package/dist-cjs/commands/DescribeEngineDefaultClusterParametersCommand.js +1 -28
- package/dist-cjs/commands/DescribeEngineDefaultParametersCommand.js +1 -28
- package/dist-cjs/commands/DescribeEventCategoriesCommand.js +1 -28
- package/dist-cjs/commands/DescribeEventSubscriptionsCommand.js +1 -28
- package/dist-cjs/commands/DescribeEventsCommand.js +1 -28
- package/dist-cjs/commands/DescribeExportTasksCommand.js +1 -28
- package/dist-cjs/commands/DescribeGlobalClustersCommand.js +1 -28
- package/dist-cjs/commands/DescribeIntegrationsCommand.js +1 -28
- package/dist-cjs/commands/DescribeOptionGroupOptionsCommand.js +1 -28
- package/dist-cjs/commands/DescribeOptionGroupsCommand.js +1 -28
- package/dist-cjs/commands/DescribeOrderableDBInstanceOptionsCommand.js +1 -28
- package/dist-cjs/commands/DescribePendingMaintenanceActionsCommand.js +1 -28
- package/dist-cjs/commands/DescribeReservedDBInstancesCommand.js +1 -28
- package/dist-cjs/commands/DescribeReservedDBInstancesOfferingsCommand.js +1 -28
- package/dist-cjs/commands/DescribeSourceRegionsCommand.js +1 -28
- package/dist-cjs/commands/DescribeTenantDatabasesCommand.js +1 -29
- package/dist-cjs/commands/DescribeValidDBInstanceModificationsCommand.js +1 -28
- package/dist-cjs/commands/DisableHttpEndpointCommand.js +1 -28
- package/dist-cjs/commands/DownloadDBLogFilePortionCommand.js +1 -28
- package/dist-cjs/commands/EnableHttpEndpointCommand.js +1 -28
- package/dist-cjs/commands/FailoverDBClusterCommand.js +1 -28
- package/dist-cjs/commands/FailoverGlobalClusterCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ModifyActivityStreamCommand.js +1 -28
- package/dist-cjs/commands/ModifyCertificatesCommand.js +1 -28
- package/dist-cjs/commands/ModifyCurrentDBClusterCapacityCommand.js +1 -28
- package/dist-cjs/commands/ModifyCustomDBEngineVersionCommand.js +1 -28
- package/dist-cjs/commands/ModifyDBClusterCommand.js +1 -28
- package/dist-cjs/commands/ModifyDBClusterEndpointCommand.js +1 -28
- package/dist-cjs/commands/ModifyDBClusterParameterGroupCommand.js +1 -28
- package/dist-cjs/commands/ModifyDBClusterSnapshotAttributeCommand.js +1 -28
- package/dist-cjs/commands/ModifyDBInstanceCommand.js +1 -28
- package/dist-cjs/commands/ModifyDBParameterGroupCommand.js +1 -28
- package/dist-cjs/commands/ModifyDBProxyCommand.js +1 -28
- package/dist-cjs/commands/ModifyDBProxyEndpointCommand.js +1 -28
- package/dist-cjs/commands/ModifyDBProxyTargetGroupCommand.js +1 -28
- package/dist-cjs/commands/ModifyDBRecommendationCommand.js +1 -28
- package/dist-cjs/commands/ModifyDBSnapshotAttributeCommand.js +1 -28
- package/dist-cjs/commands/ModifyDBSnapshotCommand.js +1 -28
- package/dist-cjs/commands/ModifyDBSubnetGroupCommand.js +1 -28
- package/dist-cjs/commands/ModifyEventSubscriptionCommand.js +1 -28
- package/dist-cjs/commands/ModifyGlobalClusterCommand.js +1 -28
- package/dist-cjs/commands/ModifyOptionGroupCommand.js +1 -28
- package/dist-cjs/commands/ModifyTenantDatabaseCommand.js +1 -29
- package/dist-cjs/commands/PromoteReadReplicaCommand.js +1 -28
- package/dist-cjs/commands/PromoteReadReplicaDBClusterCommand.js +1 -28
- package/dist-cjs/commands/PurchaseReservedDBInstancesOfferingCommand.js +1 -28
- package/dist-cjs/commands/RebootDBClusterCommand.js +1 -28
- package/dist-cjs/commands/RebootDBInstanceCommand.js +1 -28
- package/dist-cjs/commands/RegisterDBProxyTargetsCommand.js +1 -28
- package/dist-cjs/commands/RemoveFromGlobalClusterCommand.js +1 -28
- package/dist-cjs/commands/RemoveRoleFromDBClusterCommand.js +1 -28
- package/dist-cjs/commands/RemoveRoleFromDBInstanceCommand.js +1 -28
- package/dist-cjs/commands/RemoveSourceIdentifierFromSubscriptionCommand.js +1 -28
- package/dist-cjs/commands/RemoveTagsFromResourceCommand.js +1 -28
- package/dist-cjs/commands/ResetDBClusterParameterGroupCommand.js +1 -28
- package/dist-cjs/commands/ResetDBParameterGroupCommand.js +1 -28
- package/dist-cjs/commands/RestoreDBClusterFromS3Command.js +1 -28
- package/dist-cjs/commands/RestoreDBClusterFromSnapshotCommand.js +1 -28
- package/dist-cjs/commands/RestoreDBClusterToPointInTimeCommand.js +1 -28
- package/dist-cjs/commands/RestoreDBInstanceFromDBSnapshotCommand.js +1 -28
- package/dist-cjs/commands/RestoreDBInstanceFromS3Command.js +1 -28
- package/dist-cjs/commands/RestoreDBInstanceToPointInTimeCommand.js +1 -28
- package/dist-cjs/commands/RevokeDBSecurityGroupIngressCommand.js +1 -28
- package/dist-cjs/commands/StartActivityStreamCommand.js +1 -28
- package/dist-cjs/commands/StartDBClusterCommand.js +1 -28
- package/dist-cjs/commands/StartDBInstanceAutomatedBackupsReplicationCommand.js +1 -30
- package/dist-cjs/commands/StartDBInstanceCommand.js +1 -28
- package/dist-cjs/commands/StartExportTaskCommand.js +1 -28
- package/dist-cjs/commands/StopActivityStreamCommand.js +1 -28
- package/dist-cjs/commands/StopDBClusterCommand.js +1 -28
- package/dist-cjs/commands/StopDBInstanceAutomatedBackupsReplicationCommand.js +1 -28
- package/dist-cjs/commands/StopDBInstanceCommand.js +1 -28
- package/dist-cjs/commands/SwitchoverBlueGreenDeploymentCommand.js +1 -28
- package/dist-cjs/commands/SwitchoverGlobalClusterCommand.js +1 -28
- package/dist-cjs/commands/SwitchoverReadReplicaCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -159
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +29053 -12
- package/dist-cjs/models/RDSServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -5
- package/dist-cjs/models/models_0.js +1 -1618
- package/dist-cjs/models/models_1.js +1 -394
- package/dist-cjs/pagination/DescribeBlueGreenDeploymentsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeCertificatesPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBClusterAutomatedBackupsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBClusterBacktracksPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBClusterEndpointsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBClusterParameterGroupsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBClusterParametersPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBClusterSnapshotsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBClustersPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBEngineVersionsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBInstanceAutomatedBackupsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBInstancesPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBLogFilesPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBParameterGroupsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBParametersPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBProxiesPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBProxyEndpointsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBProxyTargetGroupsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBProxyTargetsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBRecommendationsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBSecurityGroupsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBSnapshotTenantDatabasesPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBSnapshotsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBSubnetGroupsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeEngineDefaultParametersPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeEventSubscriptionsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeEventsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeExportTasksPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeGlobalClustersPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeIntegrationsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeOptionGroupOptionsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeOptionGroupsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeOrderableDBInstanceOptionsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribePendingMaintenanceActionsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeReservedDBInstancesOfferingsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeReservedDBInstancesPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeSourceRegionsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeTenantDatabasesPaginator.js +1 -7
- package/dist-cjs/pagination/DownloadDBLogFilePortionPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/index.js +1 -43
- package/dist-cjs/protocols/Aws_query.js +1 -22137
- package/dist-cjs/runtimeConfig.shared.js +1 -1
- package/dist-cjs/runtimeExtensions.js +1 -25
- package/dist-cjs/waiters/index.js +1 -13
- package/dist-cjs/waiters/waitForDBClusterAvailable.js +1 -119
- package/dist-cjs/waiters/waitForDBClusterDeleted.js +1 -99
- package/dist-cjs/waiters/waitForDBClusterSnapshotAvailable.js +1 -119
- package/dist-cjs/waiters/waitForDBClusterSnapshotDeleted.js +1 -99
- package/dist-cjs/waiters/waitForDBInstanceAvailable.js +1 -119
- package/dist-cjs/waiters/waitForDBInstanceDeleted.js +1 -99
- package/dist-cjs/waiters/waitForDBSnapshotAvailable.js +1 -119
- package/dist-cjs/waiters/waitForDBSnapshotDeleted.js +1 -99
- package/dist-cjs/waiters/waitForTenantDatabaseAvailable.js +1 -89
- package/dist-cjs/waiters/waitForTenantDatabaseDeleted.js +1 -39
- package/dist-es/RDSClient.js +8 -8
- package/dist-es/auth/httpAuthSchemeProvider.js +2 -2
- package/dist-es/runtimeConfig.shared.js +2 -2
- package/dist-types/RDSClient.d.ts +2 -2
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +4 -4
- package/dist-types/ts3.4/RDSClient.d.ts +2 -2
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +6 -6
- package/package.json +42 -42
|
@@ -21,7 +21,7 @@ const getRuntimeConfig = (config) => {
|
|
|
21
21
|
{
|
|
22
22
|
schemeId: "aws.auth#sigv4",
|
|
23
23
|
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
24
|
-
signer: new core_1.
|
|
24
|
+
signer: new core_1.AwsSdkSigV4Signer(),
|
|
25
25
|
},
|
|
26
26
|
],
|
|
27
27
|
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
@@ -1,25 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveRuntimeExtensions = void 0;
|
|
4
|
-
const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const httpAuthExtensionConfiguration_1 = require("./auth/httpAuthExtensionConfiguration");
|
|
8
|
-
const asPartial = (t) => t;
|
|
9
|
-
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
10
|
-
const extensionConfiguration = {
|
|
11
|
-
...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
12
|
-
...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
13
|
-
...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
|
14
|
-
...asPartial((0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig)),
|
|
15
|
-
};
|
|
16
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
17
|
-
return {
|
|
18
|
-
...runtimeConfig,
|
|
19
|
-
...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
20
|
-
...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
21
|
-
...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
22
|
-
...(0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration),
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
|
1
|
+
module.exports = require("./index.js");
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./waitForDBClusterAvailable"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./waitForDBClusterDeleted"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./waitForDBClusterSnapshotAvailable"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./waitForDBClusterSnapshotDeleted"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("./waitForDBInstanceAvailable"), exports);
|
|
9
|
-
tslib_1.__exportStar(require("./waitForDBInstanceDeleted"), exports);
|
|
10
|
-
tslib_1.__exportStar(require("./waitForDBSnapshotAvailable"), exports);
|
|
11
|
-
tslib_1.__exportStar(require("./waitForDBSnapshotDeleted"), exports);
|
|
12
|
-
tslib_1.__exportStar(require("./waitForTenantDatabaseAvailable"), exports);
|
|
13
|
-
tslib_1.__exportStar(require("./waitForTenantDatabaseDeleted"), exports);
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,119 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.waitUntilDBClusterAvailable = exports.waitForDBClusterAvailable = void 0;
|
|
4
|
-
const util_waiter_1 = require("@smithy/util-waiter");
|
|
5
|
-
const DescribeDBClustersCommand_1 = require("../commands/DescribeDBClustersCommand");
|
|
6
|
-
const checkState = async (client, input) => {
|
|
7
|
-
let reason;
|
|
8
|
-
try {
|
|
9
|
-
const result = await client.send(new DescribeDBClustersCommand_1.DescribeDBClustersCommand(input));
|
|
10
|
-
reason = result;
|
|
11
|
-
try {
|
|
12
|
-
const returnComparator = () => {
|
|
13
|
-
const flat_1 = [].concat(...result.DBClusters);
|
|
14
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
15
|
-
return element_2.Status;
|
|
16
|
-
});
|
|
17
|
-
return projection_3;
|
|
18
|
-
};
|
|
19
|
-
let allStringEq_5 = returnComparator().length > 0;
|
|
20
|
-
for (const element_4 of returnComparator()) {
|
|
21
|
-
allStringEq_5 = allStringEq_5 && element_4 == "available";
|
|
22
|
-
}
|
|
23
|
-
if (allStringEq_5) {
|
|
24
|
-
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
catch (e) { }
|
|
28
|
-
try {
|
|
29
|
-
const returnComparator = () => {
|
|
30
|
-
const flat_1 = [].concat(...result.DBClusters);
|
|
31
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
32
|
-
return element_2.Status;
|
|
33
|
-
});
|
|
34
|
-
return projection_3;
|
|
35
|
-
};
|
|
36
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
37
|
-
if (anyStringEq_4 == "deleted") {
|
|
38
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
catch (e) { }
|
|
43
|
-
try {
|
|
44
|
-
const returnComparator = () => {
|
|
45
|
-
const flat_1 = [].concat(...result.DBClusters);
|
|
46
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
47
|
-
return element_2.Status;
|
|
48
|
-
});
|
|
49
|
-
return projection_3;
|
|
50
|
-
};
|
|
51
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
52
|
-
if (anyStringEq_4 == "deleting") {
|
|
53
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
catch (e) { }
|
|
58
|
-
try {
|
|
59
|
-
const returnComparator = () => {
|
|
60
|
-
const flat_1 = [].concat(...result.DBClusters);
|
|
61
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
62
|
-
return element_2.Status;
|
|
63
|
-
});
|
|
64
|
-
return projection_3;
|
|
65
|
-
};
|
|
66
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
67
|
-
if (anyStringEq_4 == "failed") {
|
|
68
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
catch (e) { }
|
|
73
|
-
try {
|
|
74
|
-
const returnComparator = () => {
|
|
75
|
-
const flat_1 = [].concat(...result.DBClusters);
|
|
76
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
77
|
-
return element_2.Status;
|
|
78
|
-
});
|
|
79
|
-
return projection_3;
|
|
80
|
-
};
|
|
81
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
82
|
-
if (anyStringEq_4 == "incompatible-restore") {
|
|
83
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
catch (e) { }
|
|
88
|
-
try {
|
|
89
|
-
const returnComparator = () => {
|
|
90
|
-
const flat_1 = [].concat(...result.DBClusters);
|
|
91
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
92
|
-
return element_2.Status;
|
|
93
|
-
});
|
|
94
|
-
return projection_3;
|
|
95
|
-
};
|
|
96
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
97
|
-
if (anyStringEq_4 == "incompatible-parameters") {
|
|
98
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
catch (e) { }
|
|
103
|
-
}
|
|
104
|
-
catch (exception) {
|
|
105
|
-
reason = exception;
|
|
106
|
-
}
|
|
107
|
-
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
108
|
-
};
|
|
109
|
-
const waitForDBClusterAvailable = async (params, input) => {
|
|
110
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
111
|
-
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
112
|
-
};
|
|
113
|
-
exports.waitForDBClusterAvailable = waitForDBClusterAvailable;
|
|
114
|
-
const waitUntilDBClusterAvailable = async (params, input) => {
|
|
115
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
116
|
-
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
117
|
-
return (0, util_waiter_1.checkExceptions)(result);
|
|
118
|
-
};
|
|
119
|
-
exports.waitUntilDBClusterAvailable = waitUntilDBClusterAvailable;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,99 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.waitUntilDBClusterDeleted = exports.waitForDBClusterDeleted = void 0;
|
|
4
|
-
const util_waiter_1 = require("@smithy/util-waiter");
|
|
5
|
-
const DescribeDBClustersCommand_1 = require("../commands/DescribeDBClustersCommand");
|
|
6
|
-
const checkState = async (client, input) => {
|
|
7
|
-
let reason;
|
|
8
|
-
try {
|
|
9
|
-
const result = await client.send(new DescribeDBClustersCommand_1.DescribeDBClustersCommand(input));
|
|
10
|
-
reason = result;
|
|
11
|
-
try {
|
|
12
|
-
const returnComparator = () => {
|
|
13
|
-
return result.DBClusters.length == 0.0;
|
|
14
|
-
};
|
|
15
|
-
if (returnComparator() == true) {
|
|
16
|
-
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
catch (e) { }
|
|
20
|
-
try {
|
|
21
|
-
const returnComparator = () => {
|
|
22
|
-
const flat_1 = [].concat(...result.DBClusters);
|
|
23
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
24
|
-
return element_2.Status;
|
|
25
|
-
});
|
|
26
|
-
return projection_3;
|
|
27
|
-
};
|
|
28
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
29
|
-
if (anyStringEq_4 == "creating") {
|
|
30
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
catch (e) { }
|
|
35
|
-
try {
|
|
36
|
-
const returnComparator = () => {
|
|
37
|
-
const flat_1 = [].concat(...result.DBClusters);
|
|
38
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
39
|
-
return element_2.Status;
|
|
40
|
-
});
|
|
41
|
-
return projection_3;
|
|
42
|
-
};
|
|
43
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
44
|
-
if (anyStringEq_4 == "modifying") {
|
|
45
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
catch (e) { }
|
|
50
|
-
try {
|
|
51
|
-
const returnComparator = () => {
|
|
52
|
-
const flat_1 = [].concat(...result.DBClusters);
|
|
53
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
54
|
-
return element_2.Status;
|
|
55
|
-
});
|
|
56
|
-
return projection_3;
|
|
57
|
-
};
|
|
58
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
59
|
-
if (anyStringEq_4 == "rebooting") {
|
|
60
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
catch (e) { }
|
|
65
|
-
try {
|
|
66
|
-
const returnComparator = () => {
|
|
67
|
-
const flat_1 = [].concat(...result.DBClusters);
|
|
68
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
69
|
-
return element_2.Status;
|
|
70
|
-
});
|
|
71
|
-
return projection_3;
|
|
72
|
-
};
|
|
73
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
74
|
-
if (anyStringEq_4 == "resetting-master-credentials") {
|
|
75
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
catch (e) { }
|
|
80
|
-
}
|
|
81
|
-
catch (exception) {
|
|
82
|
-
reason = exception;
|
|
83
|
-
if (exception.name && exception.name == "DBClusterNotFoundFault") {
|
|
84
|
-
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
88
|
-
};
|
|
89
|
-
const waitForDBClusterDeleted = async (params, input) => {
|
|
90
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
91
|
-
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
92
|
-
};
|
|
93
|
-
exports.waitForDBClusterDeleted = waitForDBClusterDeleted;
|
|
94
|
-
const waitUntilDBClusterDeleted = async (params, input) => {
|
|
95
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
96
|
-
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
97
|
-
return (0, util_waiter_1.checkExceptions)(result);
|
|
98
|
-
};
|
|
99
|
-
exports.waitUntilDBClusterDeleted = waitUntilDBClusterDeleted;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,119 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.waitUntilDBClusterSnapshotAvailable = exports.waitForDBClusterSnapshotAvailable = void 0;
|
|
4
|
-
const util_waiter_1 = require("@smithy/util-waiter");
|
|
5
|
-
const DescribeDBClusterSnapshotsCommand_1 = require("../commands/DescribeDBClusterSnapshotsCommand");
|
|
6
|
-
const checkState = async (client, input) => {
|
|
7
|
-
let reason;
|
|
8
|
-
try {
|
|
9
|
-
const result = await client.send(new DescribeDBClusterSnapshotsCommand_1.DescribeDBClusterSnapshotsCommand(input));
|
|
10
|
-
reason = result;
|
|
11
|
-
try {
|
|
12
|
-
const returnComparator = () => {
|
|
13
|
-
const flat_1 = [].concat(...result.DBClusterSnapshots);
|
|
14
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
15
|
-
return element_2.Status;
|
|
16
|
-
});
|
|
17
|
-
return projection_3;
|
|
18
|
-
};
|
|
19
|
-
let allStringEq_5 = returnComparator().length > 0;
|
|
20
|
-
for (const element_4 of returnComparator()) {
|
|
21
|
-
allStringEq_5 = allStringEq_5 && element_4 == "available";
|
|
22
|
-
}
|
|
23
|
-
if (allStringEq_5) {
|
|
24
|
-
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
catch (e) { }
|
|
28
|
-
try {
|
|
29
|
-
const returnComparator = () => {
|
|
30
|
-
const flat_1 = [].concat(...result.DBClusterSnapshots);
|
|
31
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
32
|
-
return element_2.Status;
|
|
33
|
-
});
|
|
34
|
-
return projection_3;
|
|
35
|
-
};
|
|
36
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
37
|
-
if (anyStringEq_4 == "deleted") {
|
|
38
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
catch (e) { }
|
|
43
|
-
try {
|
|
44
|
-
const returnComparator = () => {
|
|
45
|
-
const flat_1 = [].concat(...result.DBClusterSnapshots);
|
|
46
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
47
|
-
return element_2.Status;
|
|
48
|
-
});
|
|
49
|
-
return projection_3;
|
|
50
|
-
};
|
|
51
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
52
|
-
if (anyStringEq_4 == "deleting") {
|
|
53
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
catch (e) { }
|
|
58
|
-
try {
|
|
59
|
-
const returnComparator = () => {
|
|
60
|
-
const flat_1 = [].concat(...result.DBClusterSnapshots);
|
|
61
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
62
|
-
return element_2.Status;
|
|
63
|
-
});
|
|
64
|
-
return projection_3;
|
|
65
|
-
};
|
|
66
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
67
|
-
if (anyStringEq_4 == "failed") {
|
|
68
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
catch (e) { }
|
|
73
|
-
try {
|
|
74
|
-
const returnComparator = () => {
|
|
75
|
-
const flat_1 = [].concat(...result.DBClusterSnapshots);
|
|
76
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
77
|
-
return element_2.Status;
|
|
78
|
-
});
|
|
79
|
-
return projection_3;
|
|
80
|
-
};
|
|
81
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
82
|
-
if (anyStringEq_4 == "incompatible-restore") {
|
|
83
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
catch (e) { }
|
|
88
|
-
try {
|
|
89
|
-
const returnComparator = () => {
|
|
90
|
-
const flat_1 = [].concat(...result.DBClusterSnapshots);
|
|
91
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
92
|
-
return element_2.Status;
|
|
93
|
-
});
|
|
94
|
-
return projection_3;
|
|
95
|
-
};
|
|
96
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
97
|
-
if (anyStringEq_4 == "incompatible-parameters") {
|
|
98
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
catch (e) { }
|
|
103
|
-
}
|
|
104
|
-
catch (exception) {
|
|
105
|
-
reason = exception;
|
|
106
|
-
}
|
|
107
|
-
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
108
|
-
};
|
|
109
|
-
const waitForDBClusterSnapshotAvailable = async (params, input) => {
|
|
110
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
111
|
-
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
112
|
-
};
|
|
113
|
-
exports.waitForDBClusterSnapshotAvailable = waitForDBClusterSnapshotAvailable;
|
|
114
|
-
const waitUntilDBClusterSnapshotAvailable = async (params, input) => {
|
|
115
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
116
|
-
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
117
|
-
return (0, util_waiter_1.checkExceptions)(result);
|
|
118
|
-
};
|
|
119
|
-
exports.waitUntilDBClusterSnapshotAvailable = waitUntilDBClusterSnapshotAvailable;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,99 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.waitUntilDBClusterSnapshotDeleted = exports.waitForDBClusterSnapshotDeleted = void 0;
|
|
4
|
-
const util_waiter_1 = require("@smithy/util-waiter");
|
|
5
|
-
const DescribeDBClusterSnapshotsCommand_1 = require("../commands/DescribeDBClusterSnapshotsCommand");
|
|
6
|
-
const checkState = async (client, input) => {
|
|
7
|
-
let reason;
|
|
8
|
-
try {
|
|
9
|
-
const result = await client.send(new DescribeDBClusterSnapshotsCommand_1.DescribeDBClusterSnapshotsCommand(input));
|
|
10
|
-
reason = result;
|
|
11
|
-
try {
|
|
12
|
-
const returnComparator = () => {
|
|
13
|
-
return result.DBClusterSnapshots.length == 0.0;
|
|
14
|
-
};
|
|
15
|
-
if (returnComparator() == true) {
|
|
16
|
-
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
catch (e) { }
|
|
20
|
-
try {
|
|
21
|
-
const returnComparator = () => {
|
|
22
|
-
const flat_1 = [].concat(...result.DBClusterSnapshots);
|
|
23
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
24
|
-
return element_2.Status;
|
|
25
|
-
});
|
|
26
|
-
return projection_3;
|
|
27
|
-
};
|
|
28
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
29
|
-
if (anyStringEq_4 == "creating") {
|
|
30
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
catch (e) { }
|
|
35
|
-
try {
|
|
36
|
-
const returnComparator = () => {
|
|
37
|
-
const flat_1 = [].concat(...result.DBClusterSnapshots);
|
|
38
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
39
|
-
return element_2.Status;
|
|
40
|
-
});
|
|
41
|
-
return projection_3;
|
|
42
|
-
};
|
|
43
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
44
|
-
if (anyStringEq_4 == "modifying") {
|
|
45
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
catch (e) { }
|
|
50
|
-
try {
|
|
51
|
-
const returnComparator = () => {
|
|
52
|
-
const flat_1 = [].concat(...result.DBClusterSnapshots);
|
|
53
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
54
|
-
return element_2.Status;
|
|
55
|
-
});
|
|
56
|
-
return projection_3;
|
|
57
|
-
};
|
|
58
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
59
|
-
if (anyStringEq_4 == "rebooting") {
|
|
60
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
catch (e) { }
|
|
65
|
-
try {
|
|
66
|
-
const returnComparator = () => {
|
|
67
|
-
const flat_1 = [].concat(...result.DBClusterSnapshots);
|
|
68
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
69
|
-
return element_2.Status;
|
|
70
|
-
});
|
|
71
|
-
return projection_3;
|
|
72
|
-
};
|
|
73
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
74
|
-
if (anyStringEq_4 == "resetting-master-credentials") {
|
|
75
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
catch (e) { }
|
|
80
|
-
}
|
|
81
|
-
catch (exception) {
|
|
82
|
-
reason = exception;
|
|
83
|
-
if (exception.name && exception.name == "DBClusterSnapshotNotFoundFault") {
|
|
84
|
-
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
88
|
-
};
|
|
89
|
-
const waitForDBClusterSnapshotDeleted = async (params, input) => {
|
|
90
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
91
|
-
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
92
|
-
};
|
|
93
|
-
exports.waitForDBClusterSnapshotDeleted = waitForDBClusterSnapshotDeleted;
|
|
94
|
-
const waitUntilDBClusterSnapshotDeleted = async (params, input) => {
|
|
95
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
96
|
-
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
97
|
-
return (0, util_waiter_1.checkExceptions)(result);
|
|
98
|
-
};
|
|
99
|
-
exports.waitUntilDBClusterSnapshotDeleted = waitUntilDBClusterSnapshotDeleted;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,119 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.waitUntilDBInstanceAvailable = exports.waitForDBInstanceAvailable = void 0;
|
|
4
|
-
const util_waiter_1 = require("@smithy/util-waiter");
|
|
5
|
-
const DescribeDBInstancesCommand_1 = require("../commands/DescribeDBInstancesCommand");
|
|
6
|
-
const checkState = async (client, input) => {
|
|
7
|
-
let reason;
|
|
8
|
-
try {
|
|
9
|
-
const result = await client.send(new DescribeDBInstancesCommand_1.DescribeDBInstancesCommand(input));
|
|
10
|
-
reason = result;
|
|
11
|
-
try {
|
|
12
|
-
const returnComparator = () => {
|
|
13
|
-
const flat_1 = [].concat(...result.DBInstances);
|
|
14
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
15
|
-
return element_2.DBInstanceStatus;
|
|
16
|
-
});
|
|
17
|
-
return projection_3;
|
|
18
|
-
};
|
|
19
|
-
let allStringEq_5 = returnComparator().length > 0;
|
|
20
|
-
for (const element_4 of returnComparator()) {
|
|
21
|
-
allStringEq_5 = allStringEq_5 && element_4 == "available";
|
|
22
|
-
}
|
|
23
|
-
if (allStringEq_5) {
|
|
24
|
-
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
catch (e) { }
|
|
28
|
-
try {
|
|
29
|
-
const returnComparator = () => {
|
|
30
|
-
const flat_1 = [].concat(...result.DBInstances);
|
|
31
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
32
|
-
return element_2.DBInstanceStatus;
|
|
33
|
-
});
|
|
34
|
-
return projection_3;
|
|
35
|
-
};
|
|
36
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
37
|
-
if (anyStringEq_4 == "deleted") {
|
|
38
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
catch (e) { }
|
|
43
|
-
try {
|
|
44
|
-
const returnComparator = () => {
|
|
45
|
-
const flat_1 = [].concat(...result.DBInstances);
|
|
46
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
47
|
-
return element_2.DBInstanceStatus;
|
|
48
|
-
});
|
|
49
|
-
return projection_3;
|
|
50
|
-
};
|
|
51
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
52
|
-
if (anyStringEq_4 == "deleting") {
|
|
53
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
catch (e) { }
|
|
58
|
-
try {
|
|
59
|
-
const returnComparator = () => {
|
|
60
|
-
const flat_1 = [].concat(...result.DBInstances);
|
|
61
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
62
|
-
return element_2.DBInstanceStatus;
|
|
63
|
-
});
|
|
64
|
-
return projection_3;
|
|
65
|
-
};
|
|
66
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
67
|
-
if (anyStringEq_4 == "failed") {
|
|
68
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
catch (e) { }
|
|
73
|
-
try {
|
|
74
|
-
const returnComparator = () => {
|
|
75
|
-
const flat_1 = [].concat(...result.DBInstances);
|
|
76
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
77
|
-
return element_2.DBInstanceStatus;
|
|
78
|
-
});
|
|
79
|
-
return projection_3;
|
|
80
|
-
};
|
|
81
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
82
|
-
if (anyStringEq_4 == "incompatible-restore") {
|
|
83
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
catch (e) { }
|
|
88
|
-
try {
|
|
89
|
-
const returnComparator = () => {
|
|
90
|
-
const flat_1 = [].concat(...result.DBInstances);
|
|
91
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
92
|
-
return element_2.DBInstanceStatus;
|
|
93
|
-
});
|
|
94
|
-
return projection_3;
|
|
95
|
-
};
|
|
96
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
97
|
-
if (anyStringEq_4 == "incompatible-parameters") {
|
|
98
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
catch (e) { }
|
|
103
|
-
}
|
|
104
|
-
catch (exception) {
|
|
105
|
-
reason = exception;
|
|
106
|
-
}
|
|
107
|
-
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
108
|
-
};
|
|
109
|
-
const waitForDBInstanceAvailable = async (params, input) => {
|
|
110
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
111
|
-
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
112
|
-
};
|
|
113
|
-
exports.waitForDBInstanceAvailable = waitForDBInstanceAvailable;
|
|
114
|
-
const waitUntilDBInstanceAvailable = async (params, input) => {
|
|
115
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
116
|
-
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
117
|
-
return (0, util_waiter_1.checkExceptions)(result);
|
|
118
|
-
};
|
|
119
|
-
exports.waitUntilDBInstanceAvailable = waitUntilDBInstanceAvailable;
|
|
1
|
+
module.exports = require("../index.js");
|