@aws-sdk/client-neptune-graph 3.478.0 → 3.479.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/index.js +1 -0
- package/dist-cjs/waiters/index.js +11 -0
- package/dist-cjs/waiters/waitForGraphAvailable.js +54 -0
- package/dist-cjs/waiters/waitForGraphDeleted.js +39 -0
- package/dist-cjs/waiters/waitForGraphSnapshotAvailable.js +54 -0
- package/dist-cjs/waiters/waitForGraphSnapshotDeleted.js +39 -0
- package/dist-cjs/waiters/waitForImportTaskCancelled.js +45 -0
- package/dist-cjs/waiters/waitForImportTaskSuccessful.js +72 -0
- package/dist-cjs/waiters/waitForPrivateGraphEndpointAvailable.js +54 -0
- package/dist-cjs/waiters/waitForPrivateGraphEndpointDeleted.js +39 -0
- package/dist-es/index.js +1 -0
- package/dist-es/waiters/index.js +8 -0
- package/dist-es/waiters/waitForGraphAvailable.js +49 -0
- package/dist-es/waiters/waitForGraphDeleted.js +34 -0
- package/dist-es/waiters/waitForGraphSnapshotAvailable.js +49 -0
- package/dist-es/waiters/waitForGraphSnapshotDeleted.js +34 -0
- package/dist-es/waiters/waitForImportTaskCancelled.js +40 -0
- package/dist-es/waiters/waitForImportTaskSuccessful.js +67 -0
- package/dist-es/waiters/waitForPrivateGraphEndpointAvailable.js +49 -0
- package/dist-es/waiters/waitForPrivateGraphEndpointDeleted.js +34 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/waiters/index.d.ts +8 -0
- package/dist-types/ts3.4/waiters/waitForGraphAvailable.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForGraphDeleted.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForGraphSnapshotAvailable.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForGraphSnapshotDeleted.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForImportTaskCancelled.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForImportTaskSuccessful.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForPrivateGraphEndpointAvailable.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForPrivateGraphEndpointDeleted.d.ts +11 -0
- package/dist-types/waiters/index.d.ts +8 -0
- package/dist-types/waiters/waitForGraphAvailable.d.ts +14 -0
- package/dist-types/waiters/waitForGraphDeleted.d.ts +14 -0
- package/dist-types/waiters/waitForGraphSnapshotAvailable.d.ts +14 -0
- package/dist-types/waiters/waitForGraphSnapshotDeleted.d.ts +14 -0
- package/dist-types/waiters/waitForImportTaskCancelled.d.ts +14 -0
- package/dist-types/waiters/waitForImportTaskSuccessful.d.ts +14 -0
- package/dist-types/waiters/waitForPrivateGraphEndpointAvailable.d.ts +14 -0
- package/dist-types/waiters/waitForPrivateGraphEndpointDeleted.d.ts +14 -0
- package/package.json +2 -1
package/dist-cjs/index.js
CHANGED
|
@@ -6,6 +6,7 @@ tslib_1.__exportStar(require("./NeptuneGraphClient"), exports);
|
|
|
6
6
|
tslib_1.__exportStar(require("./NeptuneGraph"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./commands"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./pagination"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./waiters"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./models"), exports);
|
|
10
11
|
require("@aws-sdk/util-endpoints");
|
|
11
12
|
var NeptuneGraphServiceException_1 = require("./models/NeptuneGraphServiceException");
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./waitForGraphAvailable"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./waitForGraphDeleted"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./waitForGraphSnapshotAvailable"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./waitForGraphSnapshotDeleted"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./waitForImportTaskCancelled"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./waitForImportTaskSuccessful"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./waitForPrivateGraphEndpointAvailable"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./waitForPrivateGraphEndpointDeleted"), exports);
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.waitUntilGraphAvailable = exports.waitForGraphAvailable = void 0;
|
|
4
|
+
const util_waiter_1 = require("@smithy/util-waiter");
|
|
5
|
+
const GetGraphCommand_1 = require("../commands/GetGraphCommand");
|
|
6
|
+
const checkState = async (client, input) => {
|
|
7
|
+
let reason;
|
|
8
|
+
try {
|
|
9
|
+
const result = await client.send(new GetGraphCommand_1.GetGraphCommand(input));
|
|
10
|
+
reason = result;
|
|
11
|
+
try {
|
|
12
|
+
const returnComparator = () => {
|
|
13
|
+
return result.status;
|
|
14
|
+
};
|
|
15
|
+
if (returnComparator() === "DELETING") {
|
|
16
|
+
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
catch (e) { }
|
|
20
|
+
try {
|
|
21
|
+
const returnComparator = () => {
|
|
22
|
+
return result.status;
|
|
23
|
+
};
|
|
24
|
+
if (returnComparator() === "FAILED") {
|
|
25
|
+
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
catch (e) { }
|
|
29
|
+
try {
|
|
30
|
+
const returnComparator = () => {
|
|
31
|
+
return result.status;
|
|
32
|
+
};
|
|
33
|
+
if (returnComparator() === "AVAILABLE") {
|
|
34
|
+
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
catch (e) { }
|
|
38
|
+
}
|
|
39
|
+
catch (exception) {
|
|
40
|
+
reason = exception;
|
|
41
|
+
}
|
|
42
|
+
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
43
|
+
};
|
|
44
|
+
const waitForGraphAvailable = async (params, input) => {
|
|
45
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 28800 };
|
|
46
|
+
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
47
|
+
};
|
|
48
|
+
exports.waitForGraphAvailable = waitForGraphAvailable;
|
|
49
|
+
const waitUntilGraphAvailable = async (params, input) => {
|
|
50
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 28800 };
|
|
51
|
+
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
52
|
+
return (0, util_waiter_1.checkExceptions)(result);
|
|
53
|
+
};
|
|
54
|
+
exports.waitUntilGraphAvailable = waitUntilGraphAvailable;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.waitUntilGraphDeleted = exports.waitForGraphDeleted = void 0;
|
|
4
|
+
const util_waiter_1 = require("@smithy/util-waiter");
|
|
5
|
+
const GetGraphCommand_1 = require("../commands/GetGraphCommand");
|
|
6
|
+
const checkState = async (client, input) => {
|
|
7
|
+
let reason;
|
|
8
|
+
try {
|
|
9
|
+
const result = await client.send(new GetGraphCommand_1.GetGraphCommand(input));
|
|
10
|
+
reason = result;
|
|
11
|
+
try {
|
|
12
|
+
const returnComparator = () => {
|
|
13
|
+
return result.status != "DELETING";
|
|
14
|
+
};
|
|
15
|
+
if (returnComparator() == true) {
|
|
16
|
+
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
catch (e) { }
|
|
20
|
+
}
|
|
21
|
+
catch (exception) {
|
|
22
|
+
reason = exception;
|
|
23
|
+
if (exception.name && exception.name == "ResourceNotFoundException") {
|
|
24
|
+
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
28
|
+
};
|
|
29
|
+
const waitForGraphDeleted = async (params, input) => {
|
|
30
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 3600 };
|
|
31
|
+
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
32
|
+
};
|
|
33
|
+
exports.waitForGraphDeleted = waitForGraphDeleted;
|
|
34
|
+
const waitUntilGraphDeleted = async (params, input) => {
|
|
35
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 3600 };
|
|
36
|
+
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
37
|
+
return (0, util_waiter_1.checkExceptions)(result);
|
|
38
|
+
};
|
|
39
|
+
exports.waitUntilGraphDeleted = waitUntilGraphDeleted;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.waitUntilGraphSnapshotAvailable = exports.waitForGraphSnapshotAvailable = void 0;
|
|
4
|
+
const util_waiter_1 = require("@smithy/util-waiter");
|
|
5
|
+
const GetGraphSnapshotCommand_1 = require("../commands/GetGraphSnapshotCommand");
|
|
6
|
+
const checkState = async (client, input) => {
|
|
7
|
+
let reason;
|
|
8
|
+
try {
|
|
9
|
+
const result = await client.send(new GetGraphSnapshotCommand_1.GetGraphSnapshotCommand(input));
|
|
10
|
+
reason = result;
|
|
11
|
+
try {
|
|
12
|
+
const returnComparator = () => {
|
|
13
|
+
return result.status;
|
|
14
|
+
};
|
|
15
|
+
if (returnComparator() === "DELETING") {
|
|
16
|
+
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
catch (e) { }
|
|
20
|
+
try {
|
|
21
|
+
const returnComparator = () => {
|
|
22
|
+
return result.status;
|
|
23
|
+
};
|
|
24
|
+
if (returnComparator() === "FAILED") {
|
|
25
|
+
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
catch (e) { }
|
|
29
|
+
try {
|
|
30
|
+
const returnComparator = () => {
|
|
31
|
+
return result.status;
|
|
32
|
+
};
|
|
33
|
+
if (returnComparator() === "AVAILABLE") {
|
|
34
|
+
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
catch (e) { }
|
|
38
|
+
}
|
|
39
|
+
catch (exception) {
|
|
40
|
+
reason = exception;
|
|
41
|
+
}
|
|
42
|
+
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
43
|
+
};
|
|
44
|
+
const waitForGraphSnapshotAvailable = async (params, input) => {
|
|
45
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 7200 };
|
|
46
|
+
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
47
|
+
};
|
|
48
|
+
exports.waitForGraphSnapshotAvailable = waitForGraphSnapshotAvailable;
|
|
49
|
+
const waitUntilGraphSnapshotAvailable = async (params, input) => {
|
|
50
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 7200 };
|
|
51
|
+
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
52
|
+
return (0, util_waiter_1.checkExceptions)(result);
|
|
53
|
+
};
|
|
54
|
+
exports.waitUntilGraphSnapshotAvailable = waitUntilGraphSnapshotAvailable;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.waitUntilGraphSnapshotDeleted = exports.waitForGraphSnapshotDeleted = void 0;
|
|
4
|
+
const util_waiter_1 = require("@smithy/util-waiter");
|
|
5
|
+
const GetGraphSnapshotCommand_1 = require("../commands/GetGraphSnapshotCommand");
|
|
6
|
+
const checkState = async (client, input) => {
|
|
7
|
+
let reason;
|
|
8
|
+
try {
|
|
9
|
+
const result = await client.send(new GetGraphSnapshotCommand_1.GetGraphSnapshotCommand(input));
|
|
10
|
+
reason = result;
|
|
11
|
+
try {
|
|
12
|
+
const returnComparator = () => {
|
|
13
|
+
return result.status != "DELETING";
|
|
14
|
+
};
|
|
15
|
+
if (returnComparator() == true) {
|
|
16
|
+
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
catch (e) { }
|
|
20
|
+
}
|
|
21
|
+
catch (exception) {
|
|
22
|
+
reason = exception;
|
|
23
|
+
if (exception.name && exception.name == "ResourceNotFoundException") {
|
|
24
|
+
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
28
|
+
};
|
|
29
|
+
const waitForGraphSnapshotDeleted = async (params, input) => {
|
|
30
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 3600 };
|
|
31
|
+
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
32
|
+
};
|
|
33
|
+
exports.waitForGraphSnapshotDeleted = waitForGraphSnapshotDeleted;
|
|
34
|
+
const waitUntilGraphSnapshotDeleted = async (params, input) => {
|
|
35
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 3600 };
|
|
36
|
+
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
37
|
+
return (0, util_waiter_1.checkExceptions)(result);
|
|
38
|
+
};
|
|
39
|
+
exports.waitUntilGraphSnapshotDeleted = waitUntilGraphSnapshotDeleted;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.waitUntilImportTaskCancelled = exports.waitForImportTaskCancelled = void 0;
|
|
4
|
+
const util_waiter_1 = require("@smithy/util-waiter");
|
|
5
|
+
const GetImportTaskCommand_1 = require("../commands/GetImportTaskCommand");
|
|
6
|
+
const checkState = async (client, input) => {
|
|
7
|
+
let reason;
|
|
8
|
+
try {
|
|
9
|
+
const result = await client.send(new GetImportTaskCommand_1.GetImportTaskCommand(input));
|
|
10
|
+
reason = result;
|
|
11
|
+
try {
|
|
12
|
+
const returnComparator = () => {
|
|
13
|
+
return result.status != "CANCELLING";
|
|
14
|
+
};
|
|
15
|
+
if (returnComparator() == true) {
|
|
16
|
+
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
catch (e) { }
|
|
20
|
+
try {
|
|
21
|
+
const returnComparator = () => {
|
|
22
|
+
return result.status;
|
|
23
|
+
};
|
|
24
|
+
if (returnComparator() === "CANCELLED") {
|
|
25
|
+
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
catch (e) { }
|
|
29
|
+
}
|
|
30
|
+
catch (exception) {
|
|
31
|
+
reason = exception;
|
|
32
|
+
}
|
|
33
|
+
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
34
|
+
};
|
|
35
|
+
const waitForImportTaskCancelled = async (params, input) => {
|
|
36
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 3600 };
|
|
37
|
+
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
38
|
+
};
|
|
39
|
+
exports.waitForImportTaskCancelled = waitForImportTaskCancelled;
|
|
40
|
+
const waitUntilImportTaskCancelled = async (params, input) => {
|
|
41
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 3600 };
|
|
42
|
+
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
43
|
+
return (0, util_waiter_1.checkExceptions)(result);
|
|
44
|
+
};
|
|
45
|
+
exports.waitUntilImportTaskCancelled = waitUntilImportTaskCancelled;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.waitUntilImportTaskSuccessful = exports.waitForImportTaskSuccessful = void 0;
|
|
4
|
+
const util_waiter_1 = require("@smithy/util-waiter");
|
|
5
|
+
const GetImportTaskCommand_1 = require("../commands/GetImportTaskCommand");
|
|
6
|
+
const checkState = async (client, input) => {
|
|
7
|
+
let reason;
|
|
8
|
+
try {
|
|
9
|
+
const result = await client.send(new GetImportTaskCommand_1.GetImportTaskCommand(input));
|
|
10
|
+
reason = result;
|
|
11
|
+
try {
|
|
12
|
+
const returnComparator = () => {
|
|
13
|
+
return result.status;
|
|
14
|
+
};
|
|
15
|
+
if (returnComparator() === "CANCELLING") {
|
|
16
|
+
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
catch (e) { }
|
|
20
|
+
try {
|
|
21
|
+
const returnComparator = () => {
|
|
22
|
+
return result.status;
|
|
23
|
+
};
|
|
24
|
+
if (returnComparator() === "CANCELLED") {
|
|
25
|
+
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
catch (e) { }
|
|
29
|
+
try {
|
|
30
|
+
const returnComparator = () => {
|
|
31
|
+
return result.status;
|
|
32
|
+
};
|
|
33
|
+
if (returnComparator() === "ROLLING_BACK") {
|
|
34
|
+
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
catch (e) { }
|
|
38
|
+
try {
|
|
39
|
+
const returnComparator = () => {
|
|
40
|
+
return result.status;
|
|
41
|
+
};
|
|
42
|
+
if (returnComparator() === "FAILED") {
|
|
43
|
+
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
catch (e) { }
|
|
47
|
+
try {
|
|
48
|
+
const returnComparator = () => {
|
|
49
|
+
return result.status;
|
|
50
|
+
};
|
|
51
|
+
if (returnComparator() === "SUCCEEDED") {
|
|
52
|
+
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
catch (e) { }
|
|
56
|
+
}
|
|
57
|
+
catch (exception) {
|
|
58
|
+
reason = exception;
|
|
59
|
+
}
|
|
60
|
+
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
61
|
+
};
|
|
62
|
+
const waitForImportTaskSuccessful = async (params, input) => {
|
|
63
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 28800 };
|
|
64
|
+
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
65
|
+
};
|
|
66
|
+
exports.waitForImportTaskSuccessful = waitForImportTaskSuccessful;
|
|
67
|
+
const waitUntilImportTaskSuccessful = async (params, input) => {
|
|
68
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 28800 };
|
|
69
|
+
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
70
|
+
return (0, util_waiter_1.checkExceptions)(result);
|
|
71
|
+
};
|
|
72
|
+
exports.waitUntilImportTaskSuccessful = waitUntilImportTaskSuccessful;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.waitUntilPrivateGraphEndpointAvailable = exports.waitForPrivateGraphEndpointAvailable = void 0;
|
|
4
|
+
const util_waiter_1 = require("@smithy/util-waiter");
|
|
5
|
+
const GetPrivateGraphEndpointCommand_1 = require("../commands/GetPrivateGraphEndpointCommand");
|
|
6
|
+
const checkState = async (client, input) => {
|
|
7
|
+
let reason;
|
|
8
|
+
try {
|
|
9
|
+
const result = await client.send(new GetPrivateGraphEndpointCommand_1.GetPrivateGraphEndpointCommand(input));
|
|
10
|
+
reason = result;
|
|
11
|
+
try {
|
|
12
|
+
const returnComparator = () => {
|
|
13
|
+
return result.status;
|
|
14
|
+
};
|
|
15
|
+
if (returnComparator() === "DELETING") {
|
|
16
|
+
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
catch (e) { }
|
|
20
|
+
try {
|
|
21
|
+
const returnComparator = () => {
|
|
22
|
+
return result.status;
|
|
23
|
+
};
|
|
24
|
+
if (returnComparator() === "FAILED") {
|
|
25
|
+
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
catch (e) { }
|
|
29
|
+
try {
|
|
30
|
+
const returnComparator = () => {
|
|
31
|
+
return result.status;
|
|
32
|
+
};
|
|
33
|
+
if (returnComparator() === "AVAILABLE") {
|
|
34
|
+
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
catch (e) { }
|
|
38
|
+
}
|
|
39
|
+
catch (exception) {
|
|
40
|
+
reason = exception;
|
|
41
|
+
}
|
|
42
|
+
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
43
|
+
};
|
|
44
|
+
const waitForPrivateGraphEndpointAvailable = async (params, input) => {
|
|
45
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 1800 };
|
|
46
|
+
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
47
|
+
};
|
|
48
|
+
exports.waitForPrivateGraphEndpointAvailable = waitForPrivateGraphEndpointAvailable;
|
|
49
|
+
const waitUntilPrivateGraphEndpointAvailable = async (params, input) => {
|
|
50
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 1800 };
|
|
51
|
+
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
52
|
+
return (0, util_waiter_1.checkExceptions)(result);
|
|
53
|
+
};
|
|
54
|
+
exports.waitUntilPrivateGraphEndpointAvailable = waitUntilPrivateGraphEndpointAvailable;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.waitUntilPrivateGraphEndpointDeleted = exports.waitForPrivateGraphEndpointDeleted = void 0;
|
|
4
|
+
const util_waiter_1 = require("@smithy/util-waiter");
|
|
5
|
+
const GetPrivateGraphEndpointCommand_1 = require("../commands/GetPrivateGraphEndpointCommand");
|
|
6
|
+
const checkState = async (client, input) => {
|
|
7
|
+
let reason;
|
|
8
|
+
try {
|
|
9
|
+
const result = await client.send(new GetPrivateGraphEndpointCommand_1.GetPrivateGraphEndpointCommand(input));
|
|
10
|
+
reason = result;
|
|
11
|
+
try {
|
|
12
|
+
const returnComparator = () => {
|
|
13
|
+
return result.status != "DELETING";
|
|
14
|
+
};
|
|
15
|
+
if (returnComparator() == true) {
|
|
16
|
+
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
catch (e) { }
|
|
20
|
+
}
|
|
21
|
+
catch (exception) {
|
|
22
|
+
reason = exception;
|
|
23
|
+
if (exception.name && exception.name == "ResourceNotFoundException") {
|
|
24
|
+
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
28
|
+
};
|
|
29
|
+
const waitForPrivateGraphEndpointDeleted = async (params, input) => {
|
|
30
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 1800 };
|
|
31
|
+
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
32
|
+
};
|
|
33
|
+
exports.waitForPrivateGraphEndpointDeleted = waitForPrivateGraphEndpointDeleted;
|
|
34
|
+
const waitUntilPrivateGraphEndpointDeleted = async (params, input) => {
|
|
35
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 1800 };
|
|
36
|
+
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
37
|
+
return (0, util_waiter_1.checkExceptions)(result);
|
|
38
|
+
};
|
|
39
|
+
exports.waitUntilPrivateGraphEndpointDeleted = waitUntilPrivateGraphEndpointDeleted;
|
package/dist-es/index.js
CHANGED
|
@@ -2,6 +2,7 @@ export * from "./NeptuneGraphClient";
|
|
|
2
2
|
export * from "./NeptuneGraph";
|
|
3
3
|
export * from "./commands";
|
|
4
4
|
export * from "./pagination";
|
|
5
|
+
export * from "./waiters";
|
|
5
6
|
export * from "./models";
|
|
6
7
|
import "@aws-sdk/util-endpoints";
|
|
7
8
|
export { NeptuneGraphServiceException } from "./models/NeptuneGraphServiceException";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./waitForGraphAvailable";
|
|
2
|
+
export * from "./waitForGraphDeleted";
|
|
3
|
+
export * from "./waitForGraphSnapshotAvailable";
|
|
4
|
+
export * from "./waitForGraphSnapshotDeleted";
|
|
5
|
+
export * from "./waitForImportTaskCancelled";
|
|
6
|
+
export * from "./waitForImportTaskSuccessful";
|
|
7
|
+
export * from "./waitForPrivateGraphEndpointAvailable";
|
|
8
|
+
export * from "./waitForPrivateGraphEndpointDeleted";
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
|
|
2
|
+
import { GetGraphCommand } from "../commands/GetGraphCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new GetGraphCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.status;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "DELETING") {
|
|
13
|
+
return { state: WaiterState.FAILURE, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.status;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "FAILED") {
|
|
22
|
+
return { state: WaiterState.FAILURE, reason };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
try {
|
|
27
|
+
const returnComparator = () => {
|
|
28
|
+
return result.status;
|
|
29
|
+
};
|
|
30
|
+
if (returnComparator() === "AVAILABLE") {
|
|
31
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
catch (e) { }
|
|
35
|
+
}
|
|
36
|
+
catch (exception) {
|
|
37
|
+
reason = exception;
|
|
38
|
+
}
|
|
39
|
+
return { state: WaiterState.RETRY, reason };
|
|
40
|
+
};
|
|
41
|
+
export const waitForGraphAvailable = async (params, input) => {
|
|
42
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 28800 };
|
|
43
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
44
|
+
};
|
|
45
|
+
export const waitUntilGraphAvailable = async (params, input) => {
|
|
46
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 28800 };
|
|
47
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
48
|
+
return checkExceptions(result);
|
|
49
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
|
|
2
|
+
import { GetGraphCommand } from "../commands/GetGraphCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new GetGraphCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.status != "DELETING";
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() == true) {
|
|
13
|
+
return { state: WaiterState.FAILURE, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
}
|
|
18
|
+
catch (exception) {
|
|
19
|
+
reason = exception;
|
|
20
|
+
if (exception.name && exception.name == "ResourceNotFoundException") {
|
|
21
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return { state: WaiterState.RETRY, reason };
|
|
25
|
+
};
|
|
26
|
+
export const waitForGraphDeleted = async (params, input) => {
|
|
27
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 3600 };
|
|
28
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
29
|
+
};
|
|
30
|
+
export const waitUntilGraphDeleted = async (params, input) => {
|
|
31
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 3600 };
|
|
32
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
33
|
+
return checkExceptions(result);
|
|
34
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
|
|
2
|
+
import { GetGraphSnapshotCommand } from "../commands/GetGraphSnapshotCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new GetGraphSnapshotCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.status;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "DELETING") {
|
|
13
|
+
return { state: WaiterState.FAILURE, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.status;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "FAILED") {
|
|
22
|
+
return { state: WaiterState.FAILURE, reason };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
try {
|
|
27
|
+
const returnComparator = () => {
|
|
28
|
+
return result.status;
|
|
29
|
+
};
|
|
30
|
+
if (returnComparator() === "AVAILABLE") {
|
|
31
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
catch (e) { }
|
|
35
|
+
}
|
|
36
|
+
catch (exception) {
|
|
37
|
+
reason = exception;
|
|
38
|
+
}
|
|
39
|
+
return { state: WaiterState.RETRY, reason };
|
|
40
|
+
};
|
|
41
|
+
export const waitForGraphSnapshotAvailable = async (params, input) => {
|
|
42
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 7200 };
|
|
43
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
44
|
+
};
|
|
45
|
+
export const waitUntilGraphSnapshotAvailable = async (params, input) => {
|
|
46
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 7200 };
|
|
47
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
48
|
+
return checkExceptions(result);
|
|
49
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
|
|
2
|
+
import { GetGraphSnapshotCommand } from "../commands/GetGraphSnapshotCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new GetGraphSnapshotCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.status != "DELETING";
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() == true) {
|
|
13
|
+
return { state: WaiterState.FAILURE, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
}
|
|
18
|
+
catch (exception) {
|
|
19
|
+
reason = exception;
|
|
20
|
+
if (exception.name && exception.name == "ResourceNotFoundException") {
|
|
21
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return { state: WaiterState.RETRY, reason };
|
|
25
|
+
};
|
|
26
|
+
export const waitForGraphSnapshotDeleted = async (params, input) => {
|
|
27
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 3600 };
|
|
28
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
29
|
+
};
|
|
30
|
+
export const waitUntilGraphSnapshotDeleted = async (params, input) => {
|
|
31
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 3600 };
|
|
32
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
33
|
+
return checkExceptions(result);
|
|
34
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
|
|
2
|
+
import { GetImportTaskCommand } from "../commands/GetImportTaskCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new GetImportTaskCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.status != "CANCELLING";
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() == true) {
|
|
13
|
+
return { state: WaiterState.FAILURE, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.status;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "CANCELLED") {
|
|
22
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
}
|
|
27
|
+
catch (exception) {
|
|
28
|
+
reason = exception;
|
|
29
|
+
}
|
|
30
|
+
return { state: WaiterState.RETRY, reason };
|
|
31
|
+
};
|
|
32
|
+
export const waitForImportTaskCancelled = async (params, input) => {
|
|
33
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 3600 };
|
|
34
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
35
|
+
};
|
|
36
|
+
export const waitUntilImportTaskCancelled = async (params, input) => {
|
|
37
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 3600 };
|
|
38
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
39
|
+
return checkExceptions(result);
|
|
40
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
|
|
2
|
+
import { GetImportTaskCommand } from "../commands/GetImportTaskCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new GetImportTaskCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.status;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "CANCELLING") {
|
|
13
|
+
return { state: WaiterState.FAILURE, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.status;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "CANCELLED") {
|
|
22
|
+
return { state: WaiterState.FAILURE, reason };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
try {
|
|
27
|
+
const returnComparator = () => {
|
|
28
|
+
return result.status;
|
|
29
|
+
};
|
|
30
|
+
if (returnComparator() === "ROLLING_BACK") {
|
|
31
|
+
return { state: WaiterState.FAILURE, reason };
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
catch (e) { }
|
|
35
|
+
try {
|
|
36
|
+
const returnComparator = () => {
|
|
37
|
+
return result.status;
|
|
38
|
+
};
|
|
39
|
+
if (returnComparator() === "FAILED") {
|
|
40
|
+
return { state: WaiterState.FAILURE, reason };
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
catch (e) { }
|
|
44
|
+
try {
|
|
45
|
+
const returnComparator = () => {
|
|
46
|
+
return result.status;
|
|
47
|
+
};
|
|
48
|
+
if (returnComparator() === "SUCCEEDED") {
|
|
49
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
catch (e) { }
|
|
53
|
+
}
|
|
54
|
+
catch (exception) {
|
|
55
|
+
reason = exception;
|
|
56
|
+
}
|
|
57
|
+
return { state: WaiterState.RETRY, reason };
|
|
58
|
+
};
|
|
59
|
+
export const waitForImportTaskSuccessful = async (params, input) => {
|
|
60
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 28800 };
|
|
61
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
62
|
+
};
|
|
63
|
+
export const waitUntilImportTaskSuccessful = async (params, input) => {
|
|
64
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 28800 };
|
|
65
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
66
|
+
return checkExceptions(result);
|
|
67
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
|
|
2
|
+
import { GetPrivateGraphEndpointCommand, } from "../commands/GetPrivateGraphEndpointCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new GetPrivateGraphEndpointCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.status;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "DELETING") {
|
|
13
|
+
return { state: WaiterState.FAILURE, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.status;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "FAILED") {
|
|
22
|
+
return { state: WaiterState.FAILURE, reason };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
try {
|
|
27
|
+
const returnComparator = () => {
|
|
28
|
+
return result.status;
|
|
29
|
+
};
|
|
30
|
+
if (returnComparator() === "AVAILABLE") {
|
|
31
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
catch (e) { }
|
|
35
|
+
}
|
|
36
|
+
catch (exception) {
|
|
37
|
+
reason = exception;
|
|
38
|
+
}
|
|
39
|
+
return { state: WaiterState.RETRY, reason };
|
|
40
|
+
};
|
|
41
|
+
export const waitForPrivateGraphEndpointAvailable = async (params, input) => {
|
|
42
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 1800 };
|
|
43
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
44
|
+
};
|
|
45
|
+
export const waitUntilPrivateGraphEndpointAvailable = async (params, input) => {
|
|
46
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 1800 };
|
|
47
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
48
|
+
return checkExceptions(result);
|
|
49
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
|
|
2
|
+
import { GetPrivateGraphEndpointCommand, } from "../commands/GetPrivateGraphEndpointCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new GetPrivateGraphEndpointCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.status != "DELETING";
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() == true) {
|
|
13
|
+
return { state: WaiterState.FAILURE, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
}
|
|
18
|
+
catch (exception) {
|
|
19
|
+
reason = exception;
|
|
20
|
+
if (exception.name && exception.name == "ResourceNotFoundException") {
|
|
21
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return { state: WaiterState.RETRY, reason };
|
|
25
|
+
};
|
|
26
|
+
export const waitForPrivateGraphEndpointDeleted = async (params, input) => {
|
|
27
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 1800 };
|
|
28
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
29
|
+
};
|
|
30
|
+
export const waitUntilPrivateGraphEndpointDeleted = async (params, input) => {
|
|
31
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 1800 };
|
|
32
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
33
|
+
return checkExceptions(result);
|
|
34
|
+
};
|
package/dist-types/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export { RuntimeExtension } from "./runtimeExtensions";
|
|
|
12
12
|
export { NeptuneGraphExtensionConfiguration } from "./extensionConfiguration";
|
|
13
13
|
export * from "./commands";
|
|
14
14
|
export * from "./pagination";
|
|
15
|
+
export * from "./waiters";
|
|
15
16
|
export * from "./models";
|
|
16
17
|
import "@aws-sdk/util-endpoints";
|
|
17
18
|
export { NeptuneGraphServiceException } from "./models/NeptuneGraphServiceException";
|
|
@@ -5,6 +5,7 @@ export { RuntimeExtension } from "./runtimeExtensions";
|
|
|
5
5
|
export { NeptuneGraphExtensionConfiguration } from "./extensionConfiguration";
|
|
6
6
|
export * from "./commands";
|
|
7
7
|
export * from "./pagination";
|
|
8
|
+
export * from "./waiters";
|
|
8
9
|
export * from "./models";
|
|
9
10
|
import "@aws-sdk/util-endpoints";
|
|
10
11
|
export { NeptuneGraphServiceException } from "./models/NeptuneGraphServiceException";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./waitForGraphAvailable";
|
|
2
|
+
export * from "./waitForGraphDeleted";
|
|
3
|
+
export * from "./waitForGraphSnapshotAvailable";
|
|
4
|
+
export * from "./waitForGraphSnapshotDeleted";
|
|
5
|
+
export * from "./waitForImportTaskCancelled";
|
|
6
|
+
export * from "./waitForImportTaskSuccessful";
|
|
7
|
+
export * from "./waitForPrivateGraphEndpointAvailable";
|
|
8
|
+
export * from "./waitForPrivateGraphEndpointDeleted";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { GetGraphCommandInput } from "../commands/GetGraphCommand";
|
|
3
|
+
import { NeptuneGraphClient } from "../NeptuneGraphClient";
|
|
4
|
+
export declare const waitForGraphAvailable: (
|
|
5
|
+
params: WaiterConfiguration<NeptuneGraphClient>,
|
|
6
|
+
input: GetGraphCommandInput
|
|
7
|
+
) => Promise<WaiterResult>;
|
|
8
|
+
export declare const waitUntilGraphAvailable: (
|
|
9
|
+
params: WaiterConfiguration<NeptuneGraphClient>,
|
|
10
|
+
input: GetGraphCommandInput
|
|
11
|
+
) => Promise<WaiterResult>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { GetGraphCommandInput } from "../commands/GetGraphCommand";
|
|
3
|
+
import { NeptuneGraphClient } from "../NeptuneGraphClient";
|
|
4
|
+
export declare const waitForGraphDeleted: (
|
|
5
|
+
params: WaiterConfiguration<NeptuneGraphClient>,
|
|
6
|
+
input: GetGraphCommandInput
|
|
7
|
+
) => Promise<WaiterResult>;
|
|
8
|
+
export declare const waitUntilGraphDeleted: (
|
|
9
|
+
params: WaiterConfiguration<NeptuneGraphClient>,
|
|
10
|
+
input: GetGraphCommandInput
|
|
11
|
+
) => Promise<WaiterResult>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { GetGraphSnapshotCommandInput } from "../commands/GetGraphSnapshotCommand";
|
|
3
|
+
import { NeptuneGraphClient } from "../NeptuneGraphClient";
|
|
4
|
+
export declare const waitForGraphSnapshotAvailable: (
|
|
5
|
+
params: WaiterConfiguration<NeptuneGraphClient>,
|
|
6
|
+
input: GetGraphSnapshotCommandInput
|
|
7
|
+
) => Promise<WaiterResult>;
|
|
8
|
+
export declare const waitUntilGraphSnapshotAvailable: (
|
|
9
|
+
params: WaiterConfiguration<NeptuneGraphClient>,
|
|
10
|
+
input: GetGraphSnapshotCommandInput
|
|
11
|
+
) => Promise<WaiterResult>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { GetGraphSnapshotCommandInput } from "../commands/GetGraphSnapshotCommand";
|
|
3
|
+
import { NeptuneGraphClient } from "../NeptuneGraphClient";
|
|
4
|
+
export declare const waitForGraphSnapshotDeleted: (
|
|
5
|
+
params: WaiterConfiguration<NeptuneGraphClient>,
|
|
6
|
+
input: GetGraphSnapshotCommandInput
|
|
7
|
+
) => Promise<WaiterResult>;
|
|
8
|
+
export declare const waitUntilGraphSnapshotDeleted: (
|
|
9
|
+
params: WaiterConfiguration<NeptuneGraphClient>,
|
|
10
|
+
input: GetGraphSnapshotCommandInput
|
|
11
|
+
) => Promise<WaiterResult>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { GetImportTaskCommandInput } from "../commands/GetImportTaskCommand";
|
|
3
|
+
import { NeptuneGraphClient } from "../NeptuneGraphClient";
|
|
4
|
+
export declare const waitForImportTaskCancelled: (
|
|
5
|
+
params: WaiterConfiguration<NeptuneGraphClient>,
|
|
6
|
+
input: GetImportTaskCommandInput
|
|
7
|
+
) => Promise<WaiterResult>;
|
|
8
|
+
export declare const waitUntilImportTaskCancelled: (
|
|
9
|
+
params: WaiterConfiguration<NeptuneGraphClient>,
|
|
10
|
+
input: GetImportTaskCommandInput
|
|
11
|
+
) => Promise<WaiterResult>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { GetImportTaskCommandInput } from "../commands/GetImportTaskCommand";
|
|
3
|
+
import { NeptuneGraphClient } from "../NeptuneGraphClient";
|
|
4
|
+
export declare const waitForImportTaskSuccessful: (
|
|
5
|
+
params: WaiterConfiguration<NeptuneGraphClient>,
|
|
6
|
+
input: GetImportTaskCommandInput
|
|
7
|
+
) => Promise<WaiterResult>;
|
|
8
|
+
export declare const waitUntilImportTaskSuccessful: (
|
|
9
|
+
params: WaiterConfiguration<NeptuneGraphClient>,
|
|
10
|
+
input: GetImportTaskCommandInput
|
|
11
|
+
) => Promise<WaiterResult>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { GetPrivateGraphEndpointCommandInput } from "../commands/GetPrivateGraphEndpointCommand";
|
|
3
|
+
import { NeptuneGraphClient } from "../NeptuneGraphClient";
|
|
4
|
+
export declare const waitForPrivateGraphEndpointAvailable: (
|
|
5
|
+
params: WaiterConfiguration<NeptuneGraphClient>,
|
|
6
|
+
input: GetPrivateGraphEndpointCommandInput
|
|
7
|
+
) => Promise<WaiterResult>;
|
|
8
|
+
export declare const waitUntilPrivateGraphEndpointAvailable: (
|
|
9
|
+
params: WaiterConfiguration<NeptuneGraphClient>,
|
|
10
|
+
input: GetPrivateGraphEndpointCommandInput
|
|
11
|
+
) => Promise<WaiterResult>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { GetPrivateGraphEndpointCommandInput } from "../commands/GetPrivateGraphEndpointCommand";
|
|
3
|
+
import { NeptuneGraphClient } from "../NeptuneGraphClient";
|
|
4
|
+
export declare const waitForPrivateGraphEndpointDeleted: (
|
|
5
|
+
params: WaiterConfiguration<NeptuneGraphClient>,
|
|
6
|
+
input: GetPrivateGraphEndpointCommandInput
|
|
7
|
+
) => Promise<WaiterResult>;
|
|
8
|
+
export declare const waitUntilPrivateGraphEndpointDeleted: (
|
|
9
|
+
params: WaiterConfiguration<NeptuneGraphClient>,
|
|
10
|
+
input: GetPrivateGraphEndpointCommandInput
|
|
11
|
+
) => Promise<WaiterResult>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./waitForGraphAvailable";
|
|
2
|
+
export * from "./waitForGraphDeleted";
|
|
3
|
+
export * from "./waitForGraphSnapshotAvailable";
|
|
4
|
+
export * from "./waitForGraphSnapshotDeleted";
|
|
5
|
+
export * from "./waitForImportTaskCancelled";
|
|
6
|
+
export * from "./waitForImportTaskSuccessful";
|
|
7
|
+
export * from "./waitForPrivateGraphEndpointAvailable";
|
|
8
|
+
export * from "./waitForPrivateGraphEndpointDeleted";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { GetGraphCommandInput } from "../commands/GetGraphCommand";
|
|
3
|
+
import { NeptuneGraphClient } from "../NeptuneGraphClient";
|
|
4
|
+
/**
|
|
5
|
+
* Wait until Graph is Available
|
|
6
|
+
* @deprecated Use waitUntilGraphAvailable instead. waitForGraphAvailable does not throw error in non-success cases.
|
|
7
|
+
*/
|
|
8
|
+
export declare const waitForGraphAvailable: (params: WaiterConfiguration<NeptuneGraphClient>, input: GetGraphCommandInput) => Promise<WaiterResult>;
|
|
9
|
+
/**
|
|
10
|
+
* Wait until Graph is Available
|
|
11
|
+
* @param params - Waiter configuration options.
|
|
12
|
+
* @param input - The input to GetGraphCommand for polling.
|
|
13
|
+
*/
|
|
14
|
+
export declare const waitUntilGraphAvailable: (params: WaiterConfiguration<NeptuneGraphClient>, input: GetGraphCommandInput) => Promise<WaiterResult>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { GetGraphCommandInput } from "../commands/GetGraphCommand";
|
|
3
|
+
import { NeptuneGraphClient } from "../NeptuneGraphClient";
|
|
4
|
+
/**
|
|
5
|
+
* Wait until Graph is Deleted
|
|
6
|
+
* @deprecated Use waitUntilGraphDeleted instead. waitForGraphDeleted does not throw error in non-success cases.
|
|
7
|
+
*/
|
|
8
|
+
export declare const waitForGraphDeleted: (params: WaiterConfiguration<NeptuneGraphClient>, input: GetGraphCommandInput) => Promise<WaiterResult>;
|
|
9
|
+
/**
|
|
10
|
+
* Wait until Graph is Deleted
|
|
11
|
+
* @param params - Waiter configuration options.
|
|
12
|
+
* @param input - The input to GetGraphCommand for polling.
|
|
13
|
+
*/
|
|
14
|
+
export declare const waitUntilGraphDeleted: (params: WaiterConfiguration<NeptuneGraphClient>, input: GetGraphCommandInput) => Promise<WaiterResult>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { GetGraphSnapshotCommandInput } from "../commands/GetGraphSnapshotCommand";
|
|
3
|
+
import { NeptuneGraphClient } from "../NeptuneGraphClient";
|
|
4
|
+
/**
|
|
5
|
+
* Wait until GraphSnapshot is Available
|
|
6
|
+
* @deprecated Use waitUntilGraphSnapshotAvailable instead. waitForGraphSnapshotAvailable does not throw error in non-success cases.
|
|
7
|
+
*/
|
|
8
|
+
export declare const waitForGraphSnapshotAvailable: (params: WaiterConfiguration<NeptuneGraphClient>, input: GetGraphSnapshotCommandInput) => Promise<WaiterResult>;
|
|
9
|
+
/**
|
|
10
|
+
* Wait until GraphSnapshot is Available
|
|
11
|
+
* @param params - Waiter configuration options.
|
|
12
|
+
* @param input - The input to GetGraphSnapshotCommand for polling.
|
|
13
|
+
*/
|
|
14
|
+
export declare const waitUntilGraphSnapshotAvailable: (params: WaiterConfiguration<NeptuneGraphClient>, input: GetGraphSnapshotCommandInput) => Promise<WaiterResult>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { GetGraphSnapshotCommandInput } from "../commands/GetGraphSnapshotCommand";
|
|
3
|
+
import { NeptuneGraphClient } from "../NeptuneGraphClient";
|
|
4
|
+
/**
|
|
5
|
+
* Wait until GraphSnapshot is Deleted
|
|
6
|
+
* @deprecated Use waitUntilGraphSnapshotDeleted instead. waitForGraphSnapshotDeleted does not throw error in non-success cases.
|
|
7
|
+
*/
|
|
8
|
+
export declare const waitForGraphSnapshotDeleted: (params: WaiterConfiguration<NeptuneGraphClient>, input: GetGraphSnapshotCommandInput) => Promise<WaiterResult>;
|
|
9
|
+
/**
|
|
10
|
+
* Wait until GraphSnapshot is Deleted
|
|
11
|
+
* @param params - Waiter configuration options.
|
|
12
|
+
* @param input - The input to GetGraphSnapshotCommand for polling.
|
|
13
|
+
*/
|
|
14
|
+
export declare const waitUntilGraphSnapshotDeleted: (params: WaiterConfiguration<NeptuneGraphClient>, input: GetGraphSnapshotCommandInput) => Promise<WaiterResult>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { GetImportTaskCommandInput } from "../commands/GetImportTaskCommand";
|
|
3
|
+
import { NeptuneGraphClient } from "../NeptuneGraphClient";
|
|
4
|
+
/**
|
|
5
|
+
* Wait until Import Task is Cancelled
|
|
6
|
+
* @deprecated Use waitUntilImportTaskCancelled instead. waitForImportTaskCancelled does not throw error in non-success cases.
|
|
7
|
+
*/
|
|
8
|
+
export declare const waitForImportTaskCancelled: (params: WaiterConfiguration<NeptuneGraphClient>, input: GetImportTaskCommandInput) => Promise<WaiterResult>;
|
|
9
|
+
/**
|
|
10
|
+
* Wait until Import Task is Cancelled
|
|
11
|
+
* @param params - Waiter configuration options.
|
|
12
|
+
* @param input - The input to GetImportTaskCommand for polling.
|
|
13
|
+
*/
|
|
14
|
+
export declare const waitUntilImportTaskCancelled: (params: WaiterConfiguration<NeptuneGraphClient>, input: GetImportTaskCommandInput) => Promise<WaiterResult>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { GetImportTaskCommandInput } from "../commands/GetImportTaskCommand";
|
|
3
|
+
import { NeptuneGraphClient } from "../NeptuneGraphClient";
|
|
4
|
+
/**
|
|
5
|
+
* Wait until Import Task is Successful
|
|
6
|
+
* @deprecated Use waitUntilImportTaskSuccessful instead. waitForImportTaskSuccessful does not throw error in non-success cases.
|
|
7
|
+
*/
|
|
8
|
+
export declare const waitForImportTaskSuccessful: (params: WaiterConfiguration<NeptuneGraphClient>, input: GetImportTaskCommandInput) => Promise<WaiterResult>;
|
|
9
|
+
/**
|
|
10
|
+
* Wait until Import Task is Successful
|
|
11
|
+
* @param params - Waiter configuration options.
|
|
12
|
+
* @param input - The input to GetImportTaskCommand for polling.
|
|
13
|
+
*/
|
|
14
|
+
export declare const waitUntilImportTaskSuccessful: (params: WaiterConfiguration<NeptuneGraphClient>, input: GetImportTaskCommandInput) => Promise<WaiterResult>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { GetPrivateGraphEndpointCommandInput } from "../commands/GetPrivateGraphEndpointCommand";
|
|
3
|
+
import { NeptuneGraphClient } from "../NeptuneGraphClient";
|
|
4
|
+
/**
|
|
5
|
+
* Wait until PrivateGraphEndpoint is Available
|
|
6
|
+
* @deprecated Use waitUntilPrivateGraphEndpointAvailable instead. waitForPrivateGraphEndpointAvailable does not throw error in non-success cases.
|
|
7
|
+
*/
|
|
8
|
+
export declare const waitForPrivateGraphEndpointAvailable: (params: WaiterConfiguration<NeptuneGraphClient>, input: GetPrivateGraphEndpointCommandInput) => Promise<WaiterResult>;
|
|
9
|
+
/**
|
|
10
|
+
* Wait until PrivateGraphEndpoint is Available
|
|
11
|
+
* @param params - Waiter configuration options.
|
|
12
|
+
* @param input - The input to GetPrivateGraphEndpointCommand for polling.
|
|
13
|
+
*/
|
|
14
|
+
export declare const waitUntilPrivateGraphEndpointAvailable: (params: WaiterConfiguration<NeptuneGraphClient>, input: GetPrivateGraphEndpointCommandInput) => Promise<WaiterResult>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { GetPrivateGraphEndpointCommandInput } from "../commands/GetPrivateGraphEndpointCommand";
|
|
3
|
+
import { NeptuneGraphClient } from "../NeptuneGraphClient";
|
|
4
|
+
/**
|
|
5
|
+
* Wait until PrivateGraphEndpoint is Deleted
|
|
6
|
+
* @deprecated Use waitUntilPrivateGraphEndpointDeleted instead. waitForPrivateGraphEndpointDeleted does not throw error in non-success cases.
|
|
7
|
+
*/
|
|
8
|
+
export declare const waitForPrivateGraphEndpointDeleted: (params: WaiterConfiguration<NeptuneGraphClient>, input: GetPrivateGraphEndpointCommandInput) => Promise<WaiterResult>;
|
|
9
|
+
/**
|
|
10
|
+
* Wait until PrivateGraphEndpoint is Deleted
|
|
11
|
+
* @param params - Waiter configuration options.
|
|
12
|
+
* @param input - The input to GetPrivateGraphEndpointCommand for polling.
|
|
13
|
+
*/
|
|
14
|
+
export declare const waitUntilPrivateGraphEndpointDeleted: (params: WaiterConfiguration<NeptuneGraphClient>, input: GetPrivateGraphEndpointCommandInput) => Promise<WaiterResult>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-neptune-graph",
|
|
3
3
|
"description": "AWS SDK for JavaScript Neptune Graph Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.479.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",
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"@smithy/util-endpoints": "^1.0.7",
|
|
58
58
|
"@smithy/util-retry": "^2.0.8",
|
|
59
59
|
"@smithy/util-utf8": "^2.0.2",
|
|
60
|
+
"@smithy/util-waiter": "^2.0.15",
|
|
60
61
|
"tslib": "^2.5.0"
|
|
61
62
|
},
|
|
62
63
|
"devDependencies": {
|