@aws-sdk/client-neptune-graph 3.477.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.
Files changed (57) hide show
  1. package/dist-cjs/index.js +1 -0
  2. package/dist-cjs/pagination/ListGraphSnapshotsPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListGraphsPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListImportTasksPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListPrivateGraphEndpointsPaginator.js +2 -24
  6. package/dist-cjs/waiters/index.js +11 -0
  7. package/dist-cjs/waiters/waitForGraphAvailable.js +54 -0
  8. package/dist-cjs/waiters/waitForGraphDeleted.js +39 -0
  9. package/dist-cjs/waiters/waitForGraphSnapshotAvailable.js +54 -0
  10. package/dist-cjs/waiters/waitForGraphSnapshotDeleted.js +39 -0
  11. package/dist-cjs/waiters/waitForImportTaskCancelled.js +45 -0
  12. package/dist-cjs/waiters/waitForImportTaskSuccessful.js +72 -0
  13. package/dist-cjs/waiters/waitForPrivateGraphEndpointAvailable.js +54 -0
  14. package/dist-cjs/waiters/waitForPrivateGraphEndpointDeleted.js +39 -0
  15. package/dist-es/index.js +1 -0
  16. package/dist-es/pagination/ListGraphSnapshotsPaginator.js +2 -23
  17. package/dist-es/pagination/ListGraphsPaginator.js +2 -23
  18. package/dist-es/pagination/ListImportTasksPaginator.js +2 -23
  19. package/dist-es/pagination/ListPrivateGraphEndpointsPaginator.js +2 -23
  20. package/dist-es/waiters/index.js +8 -0
  21. package/dist-es/waiters/waitForGraphAvailable.js +49 -0
  22. package/dist-es/waiters/waitForGraphDeleted.js +34 -0
  23. package/dist-es/waiters/waitForGraphSnapshotAvailable.js +49 -0
  24. package/dist-es/waiters/waitForGraphSnapshotDeleted.js +34 -0
  25. package/dist-es/waiters/waitForImportTaskCancelled.js +40 -0
  26. package/dist-es/waiters/waitForImportTaskSuccessful.js +67 -0
  27. package/dist-es/waiters/waitForPrivateGraphEndpointAvailable.js +49 -0
  28. package/dist-es/waiters/waitForPrivateGraphEndpointDeleted.js +34 -0
  29. package/dist-types/index.d.ts +1 -0
  30. package/dist-types/pagination/ListGraphSnapshotsPaginator.d.ts +1 -1
  31. package/dist-types/pagination/ListGraphsPaginator.d.ts +1 -1
  32. package/dist-types/pagination/ListImportTasksPaginator.d.ts +1 -1
  33. package/dist-types/pagination/ListPrivateGraphEndpointsPaginator.d.ts +1 -1
  34. package/dist-types/ts3.4/index.d.ts +1 -0
  35. package/dist-types/ts3.4/pagination/ListGraphSnapshotsPaginator.d.ts +3 -3
  36. package/dist-types/ts3.4/pagination/ListGraphsPaginator.d.ts +3 -3
  37. package/dist-types/ts3.4/pagination/ListImportTasksPaginator.d.ts +3 -3
  38. package/dist-types/ts3.4/pagination/ListPrivateGraphEndpointsPaginator.d.ts +3 -3
  39. package/dist-types/ts3.4/waiters/index.d.ts +8 -0
  40. package/dist-types/ts3.4/waiters/waitForGraphAvailable.d.ts +11 -0
  41. package/dist-types/ts3.4/waiters/waitForGraphDeleted.d.ts +11 -0
  42. package/dist-types/ts3.4/waiters/waitForGraphSnapshotAvailable.d.ts +11 -0
  43. package/dist-types/ts3.4/waiters/waitForGraphSnapshotDeleted.d.ts +11 -0
  44. package/dist-types/ts3.4/waiters/waitForImportTaskCancelled.d.ts +11 -0
  45. package/dist-types/ts3.4/waiters/waitForImportTaskSuccessful.d.ts +11 -0
  46. package/dist-types/ts3.4/waiters/waitForPrivateGraphEndpointAvailable.d.ts +11 -0
  47. package/dist-types/ts3.4/waiters/waitForPrivateGraphEndpointDeleted.d.ts +11 -0
  48. package/dist-types/waiters/index.d.ts +8 -0
  49. package/dist-types/waiters/waitForGraphAvailable.d.ts +14 -0
  50. package/dist-types/waiters/waitForGraphDeleted.d.ts +14 -0
  51. package/dist-types/waiters/waitForGraphSnapshotAvailable.d.ts +14 -0
  52. package/dist-types/waiters/waitForGraphSnapshotDeleted.d.ts +14 -0
  53. package/dist-types/waiters/waitForImportTaskCancelled.d.ts +14 -0
  54. package/dist-types/waiters/waitForImportTaskSuccessful.d.ts +14 -0
  55. package/dist-types/waiters/waitForPrivateGraphEndpointAvailable.d.ts +14 -0
  56. package/dist-types/waiters/waitForPrivateGraphEndpointDeleted.d.ts +14 -0
  57. package/package.json +6 -5
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListPrivateGraphEndpointsCommand, } from "../commands/ListPrivateGraphEndpointsCommand";
2
3
  import { NeptuneGraphClient } from "../NeptuneGraphClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListPrivateGraphEndpointsCommand(input), ...args);
5
- };
6
- export async function* paginateListPrivateGraphEndpoints(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof NeptuneGraphClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected NeptuneGraph | NeptuneGraphClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListPrivateGraphEndpoints = createPaginator(NeptuneGraphClient, ListPrivateGraphEndpointsCommand, "nextToken", "nextToken", "maxResults");
@@ -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
+ };
@@ -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";
@@ -4,4 +4,4 @@ import { NeptuneGraphPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListGraphSnapshots(config: NeptuneGraphPaginationConfiguration, input: ListGraphSnapshotsCommandInput, ...additionalArguments: any): Paginator<ListGraphSnapshotsCommandOutput>;
7
+ export declare const paginateListGraphSnapshots: (config: NeptuneGraphPaginationConfiguration, input: ListGraphSnapshotsCommandInput, ...rest: any[]) => Paginator<ListGraphSnapshotsCommandOutput>;
@@ -4,4 +4,4 @@ import { NeptuneGraphPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListGraphs(config: NeptuneGraphPaginationConfiguration, input: ListGraphsCommandInput, ...additionalArguments: any): Paginator<ListGraphsCommandOutput>;
7
+ export declare const paginateListGraphs: (config: NeptuneGraphPaginationConfiguration, input: ListGraphsCommandInput, ...rest: any[]) => Paginator<ListGraphsCommandOutput>;
@@ -4,4 +4,4 @@ import { NeptuneGraphPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListImportTasks(config: NeptuneGraphPaginationConfiguration, input: ListImportTasksCommandInput, ...additionalArguments: any): Paginator<ListImportTasksCommandOutput>;
7
+ export declare const paginateListImportTasks: (config: NeptuneGraphPaginationConfiguration, input: ListImportTasksCommandInput, ...rest: any[]) => Paginator<ListImportTasksCommandOutput>;
@@ -4,4 +4,4 @@ import { NeptuneGraphPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListPrivateGraphEndpoints(config: NeptuneGraphPaginationConfiguration, input: ListPrivateGraphEndpointsCommandInput, ...additionalArguments: any): Paginator<ListPrivateGraphEndpointsCommandOutput>;
7
+ export declare const paginateListPrivateGraphEndpoints: (config: NeptuneGraphPaginationConfiguration, input: ListPrivateGraphEndpointsCommandInput, ...rest: any[]) => Paginator<ListPrivateGraphEndpointsCommandOutput>;
@@ -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";
@@ -4,8 +4,8 @@ import {
4
4
  ListGraphSnapshotsCommandOutput,
5
5
  } from "../commands/ListGraphSnapshotsCommand";
6
6
  import { NeptuneGraphPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListGraphSnapshots(
7
+ export declare const paginateListGraphSnapshots: (
8
8
  config: NeptuneGraphPaginationConfiguration,
9
9
  input: ListGraphSnapshotsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListGraphSnapshotsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListGraphSnapshotsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListGraphsCommandOutput,
5
5
  } from "../commands/ListGraphsCommand";
6
6
  import { NeptuneGraphPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListGraphs(
7
+ export declare const paginateListGraphs: (
8
8
  config: NeptuneGraphPaginationConfiguration,
9
9
  input: ListGraphsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListGraphsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListGraphsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListImportTasksCommandOutput,
5
5
  } from "../commands/ListImportTasksCommand";
6
6
  import { NeptuneGraphPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListImportTasks(
7
+ export declare const paginateListImportTasks: (
8
8
  config: NeptuneGraphPaginationConfiguration,
9
9
  input: ListImportTasksCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListImportTasksCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListImportTasksCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListPrivateGraphEndpointsCommandOutput,
5
5
  } from "../commands/ListPrivateGraphEndpointsCommand";
6
6
  import { NeptuneGraphPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListPrivateGraphEndpoints(
7
+ export declare const paginateListPrivateGraphEndpoints: (
8
8
  config: NeptuneGraphPaginationConfiguration,
9
9
  input: ListPrivateGraphEndpointsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListPrivateGraphEndpointsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListPrivateGraphEndpointsCommandOutput>;
@@ -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>;