@aws-sdk/client-database-migration-service 3.183.0 → 3.185.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_json1_1.js +2 -2
- package/dist-es/DatabaseMigrationService.js +269 -262
- package/dist-es/DatabaseMigrationServiceClient.js +28 -22
- package/dist-es/commands/AddTagsToResourceCommand.js +28 -21
- package/dist-es/commands/ApplyPendingMaintenanceActionCommand.js +28 -21
- package/dist-es/commands/CancelReplicationTaskAssessmentRunCommand.js +28 -21
- package/dist-es/commands/CreateEndpointCommand.js +28 -21
- package/dist-es/commands/CreateEventSubscriptionCommand.js +28 -21
- package/dist-es/commands/CreateFleetAdvisorCollectorCommand.js +28 -21
- package/dist-es/commands/CreateReplicationInstanceCommand.js +28 -21
- package/dist-es/commands/CreateReplicationSubnetGroupCommand.js +28 -21
- package/dist-es/commands/CreateReplicationTaskCommand.js +28 -21
- package/dist-es/commands/DeleteCertificateCommand.js +28 -21
- package/dist-es/commands/DeleteConnectionCommand.js +28 -21
- package/dist-es/commands/DeleteEndpointCommand.js +28 -21
- package/dist-es/commands/DeleteEventSubscriptionCommand.js +28 -21
- package/dist-es/commands/DeleteFleetAdvisorCollectorCommand.js +29 -22
- package/dist-es/commands/DeleteFleetAdvisorDatabasesCommand.js +28 -21
- package/dist-es/commands/DeleteReplicationInstanceCommand.js +28 -21
- package/dist-es/commands/DeleteReplicationSubnetGroupCommand.js +28 -21
- package/dist-es/commands/DeleteReplicationTaskAssessmentRunCommand.js +28 -21
- package/dist-es/commands/DeleteReplicationTaskCommand.js +28 -21
- package/dist-es/commands/DescribeAccountAttributesCommand.js +28 -21
- package/dist-es/commands/DescribeApplicableIndividualAssessmentsCommand.js +28 -21
- package/dist-es/commands/DescribeCertificatesCommand.js +28 -21
- package/dist-es/commands/DescribeConnectionsCommand.js +28 -21
- package/dist-es/commands/DescribeEndpointSettingsCommand.js +28 -21
- package/dist-es/commands/DescribeEndpointTypesCommand.js +28 -21
- package/dist-es/commands/DescribeEndpointsCommand.js +28 -21
- package/dist-es/commands/DescribeEventCategoriesCommand.js +28 -21
- package/dist-es/commands/DescribeEventSubscriptionsCommand.js +28 -21
- package/dist-es/commands/DescribeEventsCommand.js +28 -21
- package/dist-es/commands/DescribeFleetAdvisorCollectorsCommand.js +28 -21
- package/dist-es/commands/DescribeFleetAdvisorDatabasesCommand.js +28 -21
- package/dist-es/commands/DescribeFleetAdvisorLsaAnalysisCommand.js +28 -21
- package/dist-es/commands/DescribeFleetAdvisorSchemaObjectSummaryCommand.js +28 -21
- package/dist-es/commands/DescribeFleetAdvisorSchemasCommand.js +28 -21
- package/dist-es/commands/DescribeOrderableReplicationInstancesCommand.js +28 -21
- package/dist-es/commands/DescribePendingMaintenanceActionsCommand.js +28 -21
- package/dist-es/commands/DescribeRefreshSchemasStatusCommand.js +28 -21
- package/dist-es/commands/DescribeReplicationInstanceTaskLogsCommand.js +28 -21
- package/dist-es/commands/DescribeReplicationInstancesCommand.js +28 -21
- package/dist-es/commands/DescribeReplicationSubnetGroupsCommand.js +28 -21
- package/dist-es/commands/DescribeReplicationTaskAssessmentResultsCommand.js +28 -21
- package/dist-es/commands/DescribeReplicationTaskAssessmentRunsCommand.js +28 -21
- package/dist-es/commands/DescribeReplicationTaskIndividualAssessmentsCommand.js +28 -21
- package/dist-es/commands/DescribeReplicationTasksCommand.js +28 -21
- package/dist-es/commands/DescribeSchemasCommand.js +28 -21
- package/dist-es/commands/DescribeTableStatisticsCommand.js +28 -21
- package/dist-es/commands/ImportCertificateCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/ModifyEndpointCommand.js +28 -21
- package/dist-es/commands/ModifyEventSubscriptionCommand.js +28 -21
- package/dist-es/commands/ModifyReplicationInstanceCommand.js +28 -21
- package/dist-es/commands/ModifyReplicationSubnetGroupCommand.js +28 -21
- package/dist-es/commands/ModifyReplicationTaskCommand.js +28 -21
- package/dist-es/commands/MoveReplicationTaskCommand.js +28 -21
- package/dist-es/commands/RebootReplicationInstanceCommand.js +28 -21
- package/dist-es/commands/RefreshSchemasCommand.js +28 -21
- package/dist-es/commands/ReloadTablesCommand.js +28 -21
- package/dist-es/commands/RemoveTagsFromResourceCommand.js +28 -21
- package/dist-es/commands/RunFleetAdvisorLsaAnalysisCommand.js +29 -22
- package/dist-es/commands/StartReplicationTaskAssessmentCommand.js +28 -21
- package/dist-es/commands/StartReplicationTaskAssessmentRunCommand.js +28 -21
- package/dist-es/commands/StartReplicationTaskCommand.js +28 -21
- package/dist-es/commands/StopReplicationTaskCommand.js +28 -21
- package/dist-es/commands/TestConnectionCommand.js +28 -21
- package/dist-es/commands/UpdateSubscriptionsToEventBridgeCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/DatabaseMigrationServiceServiceException.js +10 -5
- package/dist-es/models/models_0.js +471 -904
- package/dist-es/pagination/DescribeApplicableIndividualAssessmentsPaginator.js +68 -25
- package/dist-es/pagination/DescribeCertificatesPaginator.js +68 -25
- package/dist-es/pagination/DescribeConnectionsPaginator.js +68 -25
- package/dist-es/pagination/DescribeEndpointSettingsPaginator.js +68 -25
- package/dist-es/pagination/DescribeEndpointTypesPaginator.js +68 -25
- package/dist-es/pagination/DescribeEndpointsPaginator.js +68 -25
- package/dist-es/pagination/DescribeEventSubscriptionsPaginator.js +68 -25
- package/dist-es/pagination/DescribeEventsPaginator.js +68 -25
- package/dist-es/pagination/DescribeFleetAdvisorCollectorsPaginator.js +68 -25
- package/dist-es/pagination/DescribeFleetAdvisorDatabasesPaginator.js +68 -25
- package/dist-es/pagination/DescribeFleetAdvisorLsaAnalysisPaginator.js +68 -25
- package/dist-es/pagination/DescribeFleetAdvisorSchemaObjectSummaryPaginator.js +68 -25
- package/dist-es/pagination/DescribeFleetAdvisorSchemasPaginator.js +68 -25
- package/dist-es/pagination/DescribeOrderableReplicationInstancesPaginator.js +68 -25
- package/dist-es/pagination/DescribePendingMaintenanceActionsPaginator.js +68 -25
- package/dist-es/pagination/DescribeReplicationInstanceTaskLogsPaginator.js +68 -25
- package/dist-es/pagination/DescribeReplicationInstancesPaginator.js +68 -25
- package/dist-es/pagination/DescribeReplicationSubnetGroupsPaginator.js +68 -25
- package/dist-es/pagination/DescribeReplicationTaskAssessmentResultsPaginator.js +68 -25
- package/dist-es/pagination/DescribeReplicationTaskAssessmentRunsPaginator.js +68 -25
- package/dist-es/pagination/DescribeReplicationTaskIndividualAssessmentsPaginator.js +68 -25
- package/dist-es/pagination/DescribeReplicationTasksPaginator.js +68 -25
- package/dist-es/pagination/DescribeSchemasPaginator.js +68 -25
- package/dist-es/pagination/DescribeTableStatisticsPaginator.js +68 -25
- package/dist-es/protocols/Aws_json1_1.js +5431 -4646
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/dist-es/waiters/waitForEndpointDeleted.js +90 -49
- package/dist-es/waiters/waitForReplicationInstanceAvailable.js +163 -92
- package/dist-es/waiters/waitForReplicationInstanceDeleted.js +66 -35
- package/dist-es/waiters/waitForReplicationTaskDeleted.js +162 -91
- package/dist-es/waiters/waitForReplicationTaskReady.js +259 -148
- package/dist-es/waiters/waitForReplicationTaskRunning.js +259 -148
- package/dist-es/waiters/waitForReplicationTaskStopped.js +235 -134
- package/dist-es/waiters/waitForTestConnectionSucceeds.js +91 -50
- package/package.json +5 -5
|
@@ -1,40 +1,71 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator, __read, __spreadArray, __values } from "tslib";
|
|
1
2
|
import { checkExceptions, createWaiter, WaiterState } from "@aws-sdk/util-waiter";
|
|
2
3
|
import { DescribeReplicationInstancesCommand, } from "../commands/DescribeReplicationInstancesCommand";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
4
|
+
var checkState = function (client, input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
|
+
var reason, result_1, returnComparator, _a, _b, anyStringEq_4, exception_1;
|
|
6
|
+
var e_1, _c;
|
|
7
|
+
return __generator(this, function (_d) {
|
|
8
|
+
switch (_d.label) {
|
|
9
|
+
case 0:
|
|
10
|
+
_d.trys.push([0, 2, , 3]);
|
|
11
|
+
return [4, client.send(new DescribeReplicationInstancesCommand(input))];
|
|
12
|
+
case 1:
|
|
13
|
+
result_1 = _d.sent();
|
|
14
|
+
reason = result_1;
|
|
15
|
+
try {
|
|
16
|
+
returnComparator = function () {
|
|
17
|
+
var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.ReplicationInstances), false));
|
|
18
|
+
var projection_3 = flat_1.map(function (element_2) {
|
|
19
|
+
return element_2.ReplicationInstanceStatus;
|
|
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
|
+
}
|
|
19
38
|
}
|
|
20
|
-
|
|
39
|
+
catch (e) { }
|
|
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 }];
|
|
21
49
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
50
|
+
});
|
|
51
|
+
}); };
|
|
52
|
+
export var waitForReplicationInstanceDeleted = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
53
|
+
var serviceDefaults;
|
|
54
|
+
return __generator(this, function (_a) {
|
|
55
|
+
serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
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)];
|
|
28
69
|
}
|
|
29
|
-
}
|
|
30
|
-
|
|
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
|
-
};
|
|
70
|
+
});
|
|
71
|
+
}); };
|
|
@@ -1,100 +1,171 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator, __read, __spreadArray, __values } from "tslib";
|
|
1
2
|
import { checkExceptions, createWaiter, WaiterState } from "@aws-sdk/util-waiter";
|
|
2
3
|
import { DescribeReplicationTasksCommand, } from "../commands/DescribeReplicationTasksCommand";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
4
|
+
var checkState = function (client, input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
|
+
var reason, result_1, returnComparator, _a, _b, anyStringEq_4, returnComparator, _c, _d, anyStringEq_4, returnComparator, _e, _f, anyStringEq_4, returnComparator, _g, _h, anyStringEq_4, returnComparator, _j, _k, anyStringEq_4, exception_1;
|
|
6
|
+
var e_1, _l, e_2, _m, e_3, _o, e_4, _p, e_5, _q;
|
|
7
|
+
return __generator(this, function (_r) {
|
|
8
|
+
switch (_r.label) {
|
|
9
|
+
case 0:
|
|
10
|
+
_r.trys.push([0, 2, , 3]);
|
|
11
|
+
return [4, client.send(new DescribeReplicationTasksCommand(input))];
|
|
12
|
+
case 1:
|
|
13
|
+
result_1 = _r.sent();
|
|
14
|
+
reason = result_1;
|
|
15
|
+
try {
|
|
16
|
+
returnComparator = function () {
|
|
17
|
+
var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.ReplicationTasks), false));
|
|
18
|
+
var projection_3 = flat_1.map(function (element_2) {
|
|
19
|
+
return element_2.Status;
|
|
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
|
+
}
|
|
19
38
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
39
|
+
catch (e) { }
|
|
40
|
+
try {
|
|
41
|
+
returnComparator = function () {
|
|
42
|
+
var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.ReplicationTasks), false));
|
|
43
|
+
var projection_3 = flat_1.map(function (element_2) {
|
|
44
|
+
return element_2.Status;
|
|
45
|
+
});
|
|
46
|
+
return projection_3;
|
|
47
|
+
};
|
|
48
|
+
try {
|
|
49
|
+
for (_c = __values(returnComparator()), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
50
|
+
anyStringEq_4 = _d.value;
|
|
51
|
+
if (anyStringEq_4 == "creating") {
|
|
52
|
+
return [2, { state: WaiterState.FAILURE, reason: reason }];
|
|
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
|
+
}
|
|
34
63
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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
|
+
}
|
|
49
88
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
89
|
+
catch (e) { }
|
|
90
|
+
try {
|
|
91
|
+
returnComparator = function () {
|
|
92
|
+
var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.ReplicationTasks), false));
|
|
93
|
+
var projection_3 = flat_1.map(function (element_2) {
|
|
94
|
+
return element_2.Status;
|
|
95
|
+
});
|
|
96
|
+
return projection_3;
|
|
97
|
+
};
|
|
98
|
+
try {
|
|
99
|
+
for (_g = __values(returnComparator()), _h = _g.next(); !_h.done; _h = _g.next()) {
|
|
100
|
+
anyStringEq_4 = _h.value;
|
|
101
|
+
if (anyStringEq_4 == "running") {
|
|
102
|
+
return [2, { state: WaiterState.FAILURE, reason: reason }];
|
|
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
|
+
}
|
|
64
113
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
114
|
+
catch (e) { }
|
|
115
|
+
try {
|
|
116
|
+
returnComparator = function () {
|
|
117
|
+
var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.ReplicationTasks), false));
|
|
118
|
+
var projection_3 = flat_1.map(function (element_2) {
|
|
119
|
+
return element_2.Status;
|
|
120
|
+
});
|
|
121
|
+
return projection_3;
|
|
122
|
+
};
|
|
123
|
+
try {
|
|
124
|
+
for (_j = __values(returnComparator()), _k = _j.next(); !_k.done; _k = _j.next()) {
|
|
125
|
+
anyStringEq_4 = _k.value;
|
|
126
|
+
if (anyStringEq_4 == "failed") {
|
|
127
|
+
return [2, { state: WaiterState.FAILURE, reason: reason }];
|
|
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
|
+
}
|
|
138
|
+
}
|
|
139
|
+
catch (e) { }
|
|
140
|
+
return [3, 3];
|
|
141
|
+
case 2:
|
|
142
|
+
exception_1 = _r.sent();
|
|
143
|
+
reason = exception_1;
|
|
144
|
+
if (exception_1.name && exception_1.name == "ResourceNotFoundFault") {
|
|
145
|
+
return [2, { state: WaiterState.SUCCESS, reason: reason }];
|
|
79
146
|
}
|
|
80
|
-
|
|
147
|
+
return [3, 3];
|
|
148
|
+
case 3: return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
81
149
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
150
|
+
});
|
|
151
|
+
}); };
|
|
152
|
+
export var waitForReplicationTaskDeleted = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
153
|
+
var serviceDefaults;
|
|
154
|
+
return __generator(this, function (_a) {
|
|
155
|
+
serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
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)];
|
|
88
169
|
}
|
|
89
|
-
}
|
|
90
|
-
|
|
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
|
-
};
|
|
170
|
+
});
|
|
171
|
+
}); };
|