@aws-sdk/client-database-migration-service 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/DatabaseMigrationService.js +262 -269
- package/dist-es/DatabaseMigrationServiceClient.js +22 -28
- package/dist-es/commands/AddTagsToResourceCommand.js +21 -28
- package/dist-es/commands/ApplyPendingMaintenanceActionCommand.js +21 -28
- package/dist-es/commands/CancelReplicationTaskAssessmentRunCommand.js +21 -28
- package/dist-es/commands/CreateEndpointCommand.js +21 -28
- package/dist-es/commands/CreateEventSubscriptionCommand.js +21 -28
- package/dist-es/commands/CreateFleetAdvisorCollectorCommand.js +21 -28
- package/dist-es/commands/CreateReplicationInstanceCommand.js +21 -28
- package/dist-es/commands/CreateReplicationSubnetGroupCommand.js +21 -28
- package/dist-es/commands/CreateReplicationTaskCommand.js +21 -28
- package/dist-es/commands/DeleteCertificateCommand.js +21 -28
- package/dist-es/commands/DeleteConnectionCommand.js +21 -28
- package/dist-es/commands/DeleteEndpointCommand.js +21 -28
- package/dist-es/commands/DeleteEventSubscriptionCommand.js +21 -28
- package/dist-es/commands/DeleteFleetAdvisorCollectorCommand.js +22 -29
- package/dist-es/commands/DeleteFleetAdvisorDatabasesCommand.js +21 -28
- package/dist-es/commands/DeleteReplicationInstanceCommand.js +21 -28
- package/dist-es/commands/DeleteReplicationSubnetGroupCommand.js +21 -28
- package/dist-es/commands/DeleteReplicationTaskAssessmentRunCommand.js +21 -28
- package/dist-es/commands/DeleteReplicationTaskCommand.js +21 -28
- package/dist-es/commands/DescribeAccountAttributesCommand.js +21 -28
- package/dist-es/commands/DescribeApplicableIndividualAssessmentsCommand.js +21 -28
- package/dist-es/commands/DescribeCertificatesCommand.js +21 -28
- package/dist-es/commands/DescribeConnectionsCommand.js +21 -28
- package/dist-es/commands/DescribeEndpointSettingsCommand.js +21 -28
- package/dist-es/commands/DescribeEndpointTypesCommand.js +21 -28
- package/dist-es/commands/DescribeEndpointsCommand.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/DescribeFleetAdvisorCollectorsCommand.js +21 -28
- package/dist-es/commands/DescribeFleetAdvisorDatabasesCommand.js +21 -28
- package/dist-es/commands/DescribeFleetAdvisorLsaAnalysisCommand.js +21 -28
- package/dist-es/commands/DescribeFleetAdvisorSchemaObjectSummaryCommand.js +21 -28
- package/dist-es/commands/DescribeFleetAdvisorSchemasCommand.js +21 -28
- package/dist-es/commands/DescribeOrderableReplicationInstancesCommand.js +21 -28
- package/dist-es/commands/DescribePendingMaintenanceActionsCommand.js +21 -28
- package/dist-es/commands/DescribeRefreshSchemasStatusCommand.js +21 -28
- package/dist-es/commands/DescribeReplicationInstanceTaskLogsCommand.js +21 -28
- package/dist-es/commands/DescribeReplicationInstancesCommand.js +21 -28
- package/dist-es/commands/DescribeReplicationSubnetGroupsCommand.js +21 -28
- package/dist-es/commands/DescribeReplicationTaskAssessmentResultsCommand.js +21 -28
- package/dist-es/commands/DescribeReplicationTaskAssessmentRunsCommand.js +21 -28
- package/dist-es/commands/DescribeReplicationTaskIndividualAssessmentsCommand.js +21 -28
- package/dist-es/commands/DescribeReplicationTasksCommand.js +21 -28
- package/dist-es/commands/DescribeSchemasCommand.js +21 -28
- package/dist-es/commands/DescribeTableStatisticsCommand.js +21 -28
- package/dist-es/commands/ImportCertificateCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/ModifyEndpointCommand.js +21 -28
- package/dist-es/commands/ModifyEventSubscriptionCommand.js +21 -28
- package/dist-es/commands/ModifyReplicationInstanceCommand.js +21 -28
- package/dist-es/commands/ModifyReplicationSubnetGroupCommand.js +21 -28
- package/dist-es/commands/ModifyReplicationTaskCommand.js +21 -28
- package/dist-es/commands/MoveReplicationTaskCommand.js +21 -28
- package/dist-es/commands/RebootReplicationInstanceCommand.js +21 -28
- package/dist-es/commands/RefreshSchemasCommand.js +21 -28
- package/dist-es/commands/ReloadTablesCommand.js +21 -28
- package/dist-es/commands/RemoveTagsFromResourceCommand.js +21 -28
- package/dist-es/commands/RunFleetAdvisorLsaAnalysisCommand.js +22 -29
- package/dist-es/commands/StartReplicationTaskAssessmentCommand.js +21 -28
- package/dist-es/commands/StartReplicationTaskAssessmentRunCommand.js +21 -28
- package/dist-es/commands/StartReplicationTaskCommand.js +21 -28
- package/dist-es/commands/StopReplicationTaskCommand.js +21 -28
- package/dist-es/commands/TestConnectionCommand.js +21 -28
- package/dist-es/commands/UpdateSubscriptionsToEventBridgeCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/DatabaseMigrationServiceServiceException.js +5 -10
- package/dist-es/models/models_0.js +904 -471
- package/dist-es/pagination/DescribeApplicableIndividualAssessmentsPaginator.js +25 -68
- package/dist-es/pagination/DescribeCertificatesPaginator.js +25 -68
- package/dist-es/pagination/DescribeConnectionsPaginator.js +25 -68
- package/dist-es/pagination/DescribeEndpointSettingsPaginator.js +25 -68
- package/dist-es/pagination/DescribeEndpointTypesPaginator.js +25 -68
- package/dist-es/pagination/DescribeEndpointsPaginator.js +25 -68
- package/dist-es/pagination/DescribeEventSubscriptionsPaginator.js +25 -68
- package/dist-es/pagination/DescribeEventsPaginator.js +25 -68
- package/dist-es/pagination/DescribeFleetAdvisorCollectorsPaginator.js +25 -68
- package/dist-es/pagination/DescribeFleetAdvisorDatabasesPaginator.js +25 -68
- package/dist-es/pagination/DescribeFleetAdvisorLsaAnalysisPaginator.js +25 -68
- package/dist-es/pagination/DescribeFleetAdvisorSchemaObjectSummaryPaginator.js +25 -68
- package/dist-es/pagination/DescribeFleetAdvisorSchemasPaginator.js +25 -68
- package/dist-es/pagination/DescribeOrderableReplicationInstancesPaginator.js +25 -68
- package/dist-es/pagination/DescribePendingMaintenanceActionsPaginator.js +25 -68
- package/dist-es/pagination/DescribeReplicationInstanceTaskLogsPaginator.js +25 -68
- package/dist-es/pagination/DescribeReplicationInstancesPaginator.js +25 -68
- package/dist-es/pagination/DescribeReplicationSubnetGroupsPaginator.js +25 -68
- package/dist-es/pagination/DescribeReplicationTaskAssessmentResultsPaginator.js +25 -68
- package/dist-es/pagination/DescribeReplicationTaskAssessmentRunsPaginator.js +25 -68
- package/dist-es/pagination/DescribeReplicationTaskIndividualAssessmentsPaginator.js +25 -68
- package/dist-es/pagination/DescribeReplicationTasksPaginator.js +25 -68
- package/dist-es/pagination/DescribeSchemasPaginator.js +25 -68
- package/dist-es/pagination/DescribeTableStatisticsPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +4646 -5431
- 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/waitForEndpointDeleted.js +49 -90
- package/dist-es/waiters/waitForReplicationInstanceAvailable.js +92 -163
- package/dist-es/waiters/waitForReplicationInstanceDeleted.js +35 -66
- package/dist-es/waiters/waitForReplicationTaskDeleted.js +91 -162
- package/dist-es/waiters/waitForReplicationTaskReady.js +148 -259
- package/dist-es/waiters/waitForReplicationTaskRunning.js +148 -259
- package/dist-es/waiters/waitForReplicationTaskStopped.js +134 -235
- package/dist-es/waiters/waitForTestConnectionSucceeds.js +50 -91
- package/package.json +34 -34
|
@@ -1,71 +1,40 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator, __read, __spreadArray, __values } from "tslib";
|
|
2
1
|
import { checkExceptions, createWaiter, WaiterState } from "@aws-sdk/util-waiter";
|
|
3
2
|
import { DescribeReplicationInstancesCommand, } from "../commands/DescribeReplicationInstancesCommand";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
});
|
|
21
|
-
return projection_3;
|
|
22
|
-
};
|
|
23
|
-
try {
|
|
24
|
-
for (_a = __values(returnComparator()), _b = _a.next(); !_b.done; _b = _a.next()) {
|
|
25
|
-
anyStringEq_4 = _b.value;
|
|
26
|
-
if (anyStringEq_4 == "available") {
|
|
27
|
-
return [2, { state: WaiterState.FAILURE, reason: reason }];
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
32
|
-
finally {
|
|
33
|
-
try {
|
|
34
|
-
if (_b && !_b.done && (_c = _a.return)) _c.call(_a);
|
|
35
|
-
}
|
|
36
|
-
finally { if (e_1) throw e_1.error; }
|
|
37
|
-
}
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new DescribeReplicationInstancesCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
const flat_1 = [].concat(...result.ReplicationInstances);
|
|
11
|
+
const projection_3 = flat_1.map((element_2) => {
|
|
12
|
+
return element_2.ReplicationInstanceStatus;
|
|
13
|
+
});
|
|
14
|
+
return projection_3;
|
|
15
|
+
};
|
|
16
|
+
for (const anyStringEq_4 of returnComparator()) {
|
|
17
|
+
if (anyStringEq_4 == "available") {
|
|
18
|
+
return { state: WaiterState.FAILURE, reason };
|
|
38
19
|
}
|
|
39
|
-
|
|
40
|
-
return [3, 3];
|
|
41
|
-
case 2:
|
|
42
|
-
exception_1 = _d.sent();
|
|
43
|
-
reason = exception_1;
|
|
44
|
-
if (exception_1.name && exception_1.name == "ResourceNotFoundFault") {
|
|
45
|
-
return [2, { state: WaiterState.SUCCESS, reason: reason }];
|
|
46
|
-
}
|
|
47
|
-
return [3, 3];
|
|
48
|
-
case 3: return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
20
|
+
}
|
|
49
21
|
}
|
|
50
|
-
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
return [2, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
57
|
-
});
|
|
58
|
-
}); };
|
|
59
|
-
export var waitUntilReplicationInstanceDeleted = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
60
|
-
var serviceDefaults, result;
|
|
61
|
-
return __generator(this, function (_a) {
|
|
62
|
-
switch (_a.label) {
|
|
63
|
-
case 0:
|
|
64
|
-
serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
65
|
-
return [4, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
66
|
-
case 1:
|
|
67
|
-
result = _a.sent();
|
|
68
|
-
return [2, checkExceptions(result)];
|
|
22
|
+
catch (e) { }
|
|
23
|
+
}
|
|
24
|
+
catch (exception) {
|
|
25
|
+
reason = exception;
|
|
26
|
+
if (exception.name && exception.name == "ResourceNotFoundFault") {
|
|
27
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
69
28
|
}
|
|
70
|
-
}
|
|
71
|
-
|
|
29
|
+
}
|
|
30
|
+
return { state: WaiterState.RETRY, reason };
|
|
31
|
+
};
|
|
32
|
+
export const waitForReplicationInstanceDeleted = async (params, input) => {
|
|
33
|
+
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
34
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
35
|
+
};
|
|
36
|
+
export const waitUntilReplicationInstanceDeleted = async (params, input) => {
|
|
37
|
+
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
38
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
39
|
+
return checkExceptions(result);
|
|
40
|
+
};
|
|
@@ -1,171 +1,100 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator, __read, __spreadArray, __values } from "tslib";
|
|
2
1
|
import { checkExceptions, createWaiter, WaiterState } from "@aws-sdk/util-waiter";
|
|
3
2
|
import { DescribeReplicationTasksCommand, } from "../commands/DescribeReplicationTasksCommand";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
});
|
|
21
|
-
return projection_3;
|
|
22
|
-
};
|
|
23
|
-
try {
|
|
24
|
-
for (_a = __values(returnComparator()), _b = _a.next(); !_b.done; _b = _a.next()) {
|
|
25
|
-
anyStringEq_4 = _b.value;
|
|
26
|
-
if (anyStringEq_4 == "ready") {
|
|
27
|
-
return [2, { state: WaiterState.FAILURE, reason: reason }];
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
32
|
-
finally {
|
|
33
|
-
try {
|
|
34
|
-
if (_b && !_b.done && (_l = _a.return)) _l.call(_a);
|
|
35
|
-
}
|
|
36
|
-
finally { if (e_1) throw e_1.error; }
|
|
37
|
-
}
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new DescribeReplicationTasksCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
const flat_1 = [].concat(...result.ReplicationTasks);
|
|
11
|
+
const projection_3 = flat_1.map((element_2) => {
|
|
12
|
+
return element_2.Status;
|
|
13
|
+
});
|
|
14
|
+
return projection_3;
|
|
15
|
+
};
|
|
16
|
+
for (const anyStringEq_4 of returnComparator()) {
|
|
17
|
+
if (anyStringEq_4 == "ready") {
|
|
18
|
+
return { state: WaiterState.FAILURE, reason };
|
|
38
19
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
57
|
-
finally {
|
|
58
|
-
try {
|
|
59
|
-
if (_d && !_d.done && (_m = _c.return)) _m.call(_c);
|
|
60
|
-
}
|
|
61
|
-
finally { if (e_2) throw e_2.error; }
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
catch (e) { }
|
|
65
|
-
try {
|
|
66
|
-
returnComparator = function () {
|
|
67
|
-
var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.ReplicationTasks), false));
|
|
68
|
-
var projection_3 = flat_1.map(function (element_2) {
|
|
69
|
-
return element_2.Status;
|
|
70
|
-
});
|
|
71
|
-
return projection_3;
|
|
72
|
-
};
|
|
73
|
-
try {
|
|
74
|
-
for (_e = __values(returnComparator()), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
75
|
-
anyStringEq_4 = _f.value;
|
|
76
|
-
if (anyStringEq_4 == "stopped") {
|
|
77
|
-
return [2, { state: WaiterState.FAILURE, reason: reason }];
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
82
|
-
finally {
|
|
83
|
-
try {
|
|
84
|
-
if (_f && !_f.done && (_o = _e.return)) _o.call(_e);
|
|
85
|
-
}
|
|
86
|
-
finally { if (e_3) throw e_3.error; }
|
|
87
|
-
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
catch (e) { }
|
|
23
|
+
try {
|
|
24
|
+
const returnComparator = () => {
|
|
25
|
+
const flat_1 = [].concat(...result.ReplicationTasks);
|
|
26
|
+
const projection_3 = flat_1.map((element_2) => {
|
|
27
|
+
return element_2.Status;
|
|
28
|
+
});
|
|
29
|
+
return projection_3;
|
|
30
|
+
};
|
|
31
|
+
for (const anyStringEq_4 of returnComparator()) {
|
|
32
|
+
if (anyStringEq_4 == "creating") {
|
|
33
|
+
return { state: WaiterState.FAILURE, reason };
|
|
88
34
|
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
107
|
-
finally {
|
|
108
|
-
try {
|
|
109
|
-
if (_h && !_h.done && (_p = _g.return)) _p.call(_g);
|
|
110
|
-
}
|
|
111
|
-
finally { if (e_4) throw e_4.error; }
|
|
112
|
-
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
catch (e) { }
|
|
38
|
+
try {
|
|
39
|
+
const returnComparator = () => {
|
|
40
|
+
const flat_1 = [].concat(...result.ReplicationTasks);
|
|
41
|
+
const projection_3 = flat_1.map((element_2) => {
|
|
42
|
+
return element_2.Status;
|
|
43
|
+
});
|
|
44
|
+
return projection_3;
|
|
45
|
+
};
|
|
46
|
+
for (const anyStringEq_4 of returnComparator()) {
|
|
47
|
+
if (anyStringEq_4 == "stopped") {
|
|
48
|
+
return { state: WaiterState.FAILURE, reason };
|
|
113
49
|
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
132
|
-
finally {
|
|
133
|
-
try {
|
|
134
|
-
if (_k && !_k.done && (_q = _j.return)) _q.call(_j);
|
|
135
|
-
}
|
|
136
|
-
finally { if (e_5) throw e_5.error; }
|
|
137
|
-
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
catch (e) { }
|
|
53
|
+
try {
|
|
54
|
+
const returnComparator = () => {
|
|
55
|
+
const flat_1 = [].concat(...result.ReplicationTasks);
|
|
56
|
+
const projection_3 = flat_1.map((element_2) => {
|
|
57
|
+
return element_2.Status;
|
|
58
|
+
});
|
|
59
|
+
return projection_3;
|
|
60
|
+
};
|
|
61
|
+
for (const anyStringEq_4 of returnComparator()) {
|
|
62
|
+
if (anyStringEq_4 == "running") {
|
|
63
|
+
return { state: WaiterState.FAILURE, reason };
|
|
138
64
|
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
catch (e) { }
|
|
68
|
+
try {
|
|
69
|
+
const returnComparator = () => {
|
|
70
|
+
const flat_1 = [].concat(...result.ReplicationTasks);
|
|
71
|
+
const projection_3 = flat_1.map((element_2) => {
|
|
72
|
+
return element_2.Status;
|
|
73
|
+
});
|
|
74
|
+
return projection_3;
|
|
75
|
+
};
|
|
76
|
+
for (const anyStringEq_4 of returnComparator()) {
|
|
77
|
+
if (anyStringEq_4 == "failed") {
|
|
78
|
+
return { state: WaiterState.FAILURE, reason };
|
|
146
79
|
}
|
|
147
|
-
|
|
148
|
-
case 3: return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
80
|
+
}
|
|
149
81
|
}
|
|
150
|
-
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
return [2, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
157
|
-
});
|
|
158
|
-
}); };
|
|
159
|
-
export var waitUntilReplicationTaskDeleted = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
160
|
-
var serviceDefaults, result;
|
|
161
|
-
return __generator(this, function (_a) {
|
|
162
|
-
switch (_a.label) {
|
|
163
|
-
case 0:
|
|
164
|
-
serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
165
|
-
return [4, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
166
|
-
case 1:
|
|
167
|
-
result = _a.sent();
|
|
168
|
-
return [2, checkExceptions(result)];
|
|
82
|
+
catch (e) { }
|
|
83
|
+
}
|
|
84
|
+
catch (exception) {
|
|
85
|
+
reason = exception;
|
|
86
|
+
if (exception.name && exception.name == "ResourceNotFoundFault") {
|
|
87
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
169
88
|
}
|
|
170
|
-
}
|
|
171
|
-
|
|
89
|
+
}
|
|
90
|
+
return { state: WaiterState.RETRY, reason };
|
|
91
|
+
};
|
|
92
|
+
export const waitForReplicationTaskDeleted = async (params, input) => {
|
|
93
|
+
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
94
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
95
|
+
};
|
|
96
|
+
export const waitUntilReplicationTaskDeleted = async (params, input) => {
|
|
97
|
+
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
98
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
99
|
+
return checkExceptions(result);
|
|
100
|
+
};
|