@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,155 +1,94 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator, __read, __spreadArray, __values } from "tslib";
|
|
2
1
|
import { checkExceptions, createWaiter, WaiterState } from "@aws-sdk/util-waiter";
|
|
3
2
|
import { DescribeDBSnapshotsCommand } from "../commands/DescribeDBSnapshotsCommand";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
reason
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
});
|
|
30
|
-
return projection_3;
|
|
31
|
-
};
|
|
32
|
-
try {
|
|
33
|
-
for (_a = __values(returnComparator()), _b = _a.next(); !_b.done; _b = _a.next()) {
|
|
34
|
-
anyStringEq_4 = _b.value;
|
|
35
|
-
if (anyStringEq_4 == "creating") {
|
|
36
|
-
return [2, { state: WaiterState.FAILURE, reason: reason }];
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
41
|
-
finally {
|
|
42
|
-
try {
|
|
43
|
-
if (_b && !_b.done && (_j = _a.return)) _j.call(_a);
|
|
44
|
-
}
|
|
45
|
-
finally { if (e_1) throw e_1.error; }
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
catch (e) { }
|
|
49
|
-
try {
|
|
50
|
-
returnComparator = function () {
|
|
51
|
-
var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.DBSnapshots), false));
|
|
52
|
-
var projection_3 = flat_1.map(function (element_2) {
|
|
53
|
-
return element_2.Status;
|
|
54
|
-
});
|
|
55
|
-
return projection_3;
|
|
56
|
-
};
|
|
57
|
-
try {
|
|
58
|
-
for (_c = __values(returnComparator()), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
59
|
-
anyStringEq_4 = _d.value;
|
|
60
|
-
if (anyStringEq_4 == "modifying") {
|
|
61
|
-
return [2, { state: WaiterState.FAILURE, reason: reason }];
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
66
|
-
finally {
|
|
67
|
-
try {
|
|
68
|
-
if (_d && !_d.done && (_k = _c.return)) _k.call(_c);
|
|
69
|
-
}
|
|
70
|
-
finally { if (e_2) throw e_2.error; }
|
|
71
|
-
}
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new DescribeDBSnapshotsCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.DBSnapshots.length == 0.0;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() == true) {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
const flat_1 = [].concat(...result.DBSnapshots);
|
|
20
|
+
const projection_3 = flat_1.map((element_2) => {
|
|
21
|
+
return element_2.Status;
|
|
22
|
+
});
|
|
23
|
+
return projection_3;
|
|
24
|
+
};
|
|
25
|
+
for (const anyStringEq_4 of returnComparator()) {
|
|
26
|
+
if (anyStringEq_4 == "creating") {
|
|
27
|
+
return { state: WaiterState.FAILURE, reason };
|
|
72
28
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
91
|
-
finally {
|
|
92
|
-
try {
|
|
93
|
-
if (_f && !_f.done && (_l = _e.return)) _l.call(_e);
|
|
94
|
-
}
|
|
95
|
-
finally { if (e_3) throw e_3.error; }
|
|
96
|
-
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
catch (e) { }
|
|
32
|
+
try {
|
|
33
|
+
const returnComparator = () => {
|
|
34
|
+
const flat_1 = [].concat(...result.DBSnapshots);
|
|
35
|
+
const projection_3 = flat_1.map((element_2) => {
|
|
36
|
+
return element_2.Status;
|
|
37
|
+
});
|
|
38
|
+
return projection_3;
|
|
39
|
+
};
|
|
40
|
+
for (const anyStringEq_4 of returnComparator()) {
|
|
41
|
+
if (anyStringEq_4 == "modifying") {
|
|
42
|
+
return { state: WaiterState.FAILURE, reason };
|
|
97
43
|
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
116
|
-
finally {
|
|
117
|
-
try {
|
|
118
|
-
if (_h && !_h.done && (_m = _g.return)) _m.call(_g);
|
|
119
|
-
}
|
|
120
|
-
finally { if (e_4) throw e_4.error; }
|
|
121
|
-
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
catch (e) { }
|
|
47
|
+
try {
|
|
48
|
+
const returnComparator = () => {
|
|
49
|
+
const flat_1 = [].concat(...result.DBSnapshots);
|
|
50
|
+
const projection_3 = flat_1.map((element_2) => {
|
|
51
|
+
return element_2.Status;
|
|
52
|
+
});
|
|
53
|
+
return projection_3;
|
|
54
|
+
};
|
|
55
|
+
for (const anyStringEq_4 of returnComparator()) {
|
|
56
|
+
if (anyStringEq_4 == "rebooting") {
|
|
57
|
+
return { state: WaiterState.FAILURE, reason };
|
|
122
58
|
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
catch (e) { }
|
|
62
|
+
try {
|
|
63
|
+
const returnComparator = () => {
|
|
64
|
+
const flat_1 = [].concat(...result.DBSnapshots);
|
|
65
|
+
const projection_3 = flat_1.map((element_2) => {
|
|
66
|
+
return element_2.Status;
|
|
67
|
+
});
|
|
68
|
+
return projection_3;
|
|
69
|
+
};
|
|
70
|
+
for (const anyStringEq_4 of returnComparator()) {
|
|
71
|
+
if (anyStringEq_4 == "resetting-master-credentials") {
|
|
72
|
+
return { state: WaiterState.FAILURE, reason };
|
|
130
73
|
}
|
|
131
|
-
|
|
132
|
-
case 3: return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
74
|
+
}
|
|
133
75
|
}
|
|
134
|
-
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
return [2, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
141
|
-
});
|
|
142
|
-
}); };
|
|
143
|
-
export var waitUntilDBSnapshotDeleted = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
144
|
-
var serviceDefaults, result;
|
|
145
|
-
return __generator(this, function (_a) {
|
|
146
|
-
switch (_a.label) {
|
|
147
|
-
case 0:
|
|
148
|
-
serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
149
|
-
return [4, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
150
|
-
case 1:
|
|
151
|
-
result = _a.sent();
|
|
152
|
-
return [2, checkExceptions(result)];
|
|
76
|
+
catch (e) { }
|
|
77
|
+
}
|
|
78
|
+
catch (exception) {
|
|
79
|
+
reason = exception;
|
|
80
|
+
if (exception.name && exception.name == "DBSnapshotNotFound") {
|
|
81
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
153
82
|
}
|
|
154
|
-
}
|
|
155
|
-
|
|
83
|
+
}
|
|
84
|
+
return { state: WaiterState.RETRY, reason };
|
|
85
|
+
};
|
|
86
|
+
export const waitForDBSnapshotDeleted = async (params, input) => {
|
|
87
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
88
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
89
|
+
};
|
|
90
|
+
export const waitUntilDBSnapshotDeleted = async (params, input) => {
|
|
91
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
92
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
93
|
+
return checkExceptions(result);
|
|
94
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-rds",
|
|
3
3
|
"description": "AWS SDK for JavaScript Rds Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.183.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -19,45 +19,45 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
-
"@aws-sdk/config-resolver": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
26
|
-
"@aws-sdk/hash-node": "3.
|
|
27
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
28
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
29
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
30
|
-
"@aws-sdk/middleware-logger": "3.
|
|
31
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
32
|
-
"@aws-sdk/middleware-retry": "3.
|
|
33
|
-
"@aws-sdk/middleware-sdk-rds": "3.
|
|
34
|
-
"@aws-sdk/middleware-serde": "3.
|
|
35
|
-
"@aws-sdk/middleware-signing": "3.
|
|
36
|
-
"@aws-sdk/middleware-stack": "3.
|
|
37
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
38
|
-
"@aws-sdk/node-config-provider": "3.
|
|
39
|
-
"@aws-sdk/node-http-handler": "3.
|
|
40
|
-
"@aws-sdk/protocol-http": "3.
|
|
41
|
-
"@aws-sdk/smithy-client": "3.
|
|
42
|
-
"@aws-sdk/types": "3.
|
|
43
|
-
"@aws-sdk/url-parser": "3.
|
|
44
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
45
|
-
"@aws-sdk/util-base64-node": "3.
|
|
46
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
47
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
48
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
51
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
52
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
53
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
54
|
-
"@aws-sdk/util-waiter": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.183.0",
|
|
23
|
+
"@aws-sdk/config-resolver": "3.183.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.183.0",
|
|
25
|
+
"@aws-sdk/fetch-http-handler": "3.183.0",
|
|
26
|
+
"@aws-sdk/hash-node": "3.183.0",
|
|
27
|
+
"@aws-sdk/invalid-dependency": "3.183.0",
|
|
28
|
+
"@aws-sdk/middleware-content-length": "3.183.0",
|
|
29
|
+
"@aws-sdk/middleware-host-header": "3.183.0",
|
|
30
|
+
"@aws-sdk/middleware-logger": "3.183.0",
|
|
31
|
+
"@aws-sdk/middleware-recursion-detection": "3.183.0",
|
|
32
|
+
"@aws-sdk/middleware-retry": "3.183.0",
|
|
33
|
+
"@aws-sdk/middleware-sdk-rds": "3.183.0",
|
|
34
|
+
"@aws-sdk/middleware-serde": "3.183.0",
|
|
35
|
+
"@aws-sdk/middleware-signing": "3.183.0",
|
|
36
|
+
"@aws-sdk/middleware-stack": "3.183.0",
|
|
37
|
+
"@aws-sdk/middleware-user-agent": "3.183.0",
|
|
38
|
+
"@aws-sdk/node-config-provider": "3.183.0",
|
|
39
|
+
"@aws-sdk/node-http-handler": "3.183.0",
|
|
40
|
+
"@aws-sdk/protocol-http": "3.183.0",
|
|
41
|
+
"@aws-sdk/smithy-client": "3.183.0",
|
|
42
|
+
"@aws-sdk/types": "3.183.0",
|
|
43
|
+
"@aws-sdk/url-parser": "3.183.0",
|
|
44
|
+
"@aws-sdk/util-base64-browser": "3.183.0",
|
|
45
|
+
"@aws-sdk/util-base64-node": "3.183.0",
|
|
46
|
+
"@aws-sdk/util-body-length-browser": "3.183.0",
|
|
47
|
+
"@aws-sdk/util-body-length-node": "3.183.0",
|
|
48
|
+
"@aws-sdk/util-defaults-mode-browser": "3.183.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.183.0",
|
|
50
|
+
"@aws-sdk/util-user-agent-browser": "3.183.0",
|
|
51
|
+
"@aws-sdk/util-user-agent-node": "3.183.0",
|
|
52
|
+
"@aws-sdk/util-utf8-browser": "3.183.0",
|
|
53
|
+
"@aws-sdk/util-utf8-node": "3.183.0",
|
|
54
|
+
"@aws-sdk/util-waiter": "3.183.0",
|
|
55
55
|
"entities": "2.2.0",
|
|
56
56
|
"fast-xml-parser": "3.19.0",
|
|
57
57
|
"tslib": "^2.3.1"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
60
|
+
"@aws-sdk/service-client-documentation-generator": "3.183.0",
|
|
61
61
|
"@tsconfig/recommended": "1.0.1",
|
|
62
62
|
"@types/node": "^12.7.5",
|
|
63
63
|
"concurrently": "7.0.0",
|