@aws-sdk/client-neptune-graph 3.975.0 → 3.978.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 CHANGED
@@ -1611,52 +1611,12 @@ class UpdateGraphCommand extends smithyClient.Command
1611
1611
  .build() {
1612
1612
  }
1613
1613
 
1614
- const commands = {
1615
- CancelExportTaskCommand,
1616
- CancelImportTaskCommand,
1617
- CancelQueryCommand,
1618
- CreateGraphCommand,
1619
- CreateGraphSnapshotCommand,
1620
- CreateGraphUsingImportTaskCommand,
1621
- CreatePrivateGraphEndpointCommand,
1622
- DeleteGraphCommand,
1623
- DeleteGraphSnapshotCommand,
1624
- DeletePrivateGraphEndpointCommand,
1625
- ExecuteQueryCommand,
1626
- GetExportTaskCommand,
1627
- GetGraphCommand,
1628
- GetGraphSnapshotCommand,
1629
- GetGraphSummaryCommand,
1630
- GetImportTaskCommand,
1631
- GetPrivateGraphEndpointCommand,
1632
- GetQueryCommand,
1633
- ListExportTasksCommand,
1634
- ListGraphsCommand,
1635
- ListGraphSnapshotsCommand,
1636
- ListImportTasksCommand,
1637
- ListPrivateGraphEndpointsCommand,
1638
- ListQueriesCommand,
1639
- ListTagsForResourceCommand,
1640
- ResetGraphCommand,
1641
- RestoreGraphFromSnapshotCommand,
1642
- StartExportTaskCommand,
1643
- StartGraphCommand,
1644
- StartImportTaskCommand,
1645
- StopGraphCommand,
1646
- TagResourceCommand,
1647
- UntagResourceCommand,
1648
- UpdateGraphCommand,
1649
- };
1650
- class NeptuneGraph extends NeptuneGraphClient {
1651
- }
1652
- smithyClient.createAggregatedClient(commands, NeptuneGraph);
1653
-
1654
1614
  const paginateListExportTasks = core.createPaginator(NeptuneGraphClient, ListExportTasksCommand, "nextToken", "nextToken", "maxResults");
1655
1615
 
1656
- const paginateListGraphs = core.createPaginator(NeptuneGraphClient, ListGraphsCommand, "nextToken", "nextToken", "maxResults");
1657
-
1658
1616
  const paginateListGraphSnapshots = core.createPaginator(NeptuneGraphClient, ListGraphSnapshotsCommand, "nextToken", "nextToken", "maxResults");
1659
1617
 
1618
+ const paginateListGraphs = core.createPaginator(NeptuneGraphClient, ListGraphsCommand, "nextToken", "nextToken", "maxResults");
1619
+
1660
1620
  const paginateListImportTasks = core.createPaginator(NeptuneGraphClient, ListImportTasksCommand, "nextToken", "nextToken", "maxResults");
1661
1621
 
1662
1622
  const paginateListPrivateGraphEndpoints = core.createPaginator(NeptuneGraphClient, ListPrivateGraphEndpointsCommand, "nextToken", "nextToken", "maxResults");
@@ -1668,9 +1628,9 @@ const checkState$a = async (client, input) => {
1668
1628
  reason = result;
1669
1629
  try {
1670
1630
  const returnComparator = () => {
1671
- return result.status;
1631
+ return ((result.status != "CANCELLING") && (result.status != "CANCELLED"));
1672
1632
  };
1673
- if (returnComparator() === "CANCELLING") {
1633
+ if (returnComparator() == true) {
1674
1634
  return { state: utilWaiter.WaiterState.FAILURE, reason };
1675
1635
  }
1676
1636
  }
@@ -1680,24 +1640,6 @@ const checkState$a = async (client, input) => {
1680
1640
  return result.status;
1681
1641
  };
1682
1642
  if (returnComparator() === "CANCELLED") {
1683
- return { state: utilWaiter.WaiterState.FAILURE, reason };
1684
- }
1685
- }
1686
- catch (e) { }
1687
- try {
1688
- const returnComparator = () => {
1689
- return result.status;
1690
- };
1691
- if (returnComparator() === "FAILED") {
1692
- return { state: utilWaiter.WaiterState.FAILURE, reason };
1693
- }
1694
- }
1695
- catch (e) { }
1696
- try {
1697
- const returnComparator = () => {
1698
- return result.status;
1699
- };
1700
- if (returnComparator() === "SUCCEEDED") {
1701
1643
  return { state: utilWaiter.WaiterState.SUCCESS, reason };
1702
1644
  }
1703
1645
  }
@@ -1708,12 +1650,12 @@ const checkState$a = async (client, input) => {
1708
1650
  }
1709
1651
  return { state: utilWaiter.WaiterState.RETRY, reason };
1710
1652
  };
1711
- const waitForExportTaskSuccessful = async (params, input) => {
1712
- const serviceDefaults = { minDelay: 60, maxDelay: 28800 };
1653
+ const waitForExportTaskCancelled = async (params, input) => {
1654
+ const serviceDefaults = { minDelay: 60, maxDelay: 3600 };
1713
1655
  return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$a);
1714
1656
  };
1715
- const waitUntilExportTaskSuccessful = async (params, input) => {
1716
- const serviceDefaults = { minDelay: 60, maxDelay: 28800 };
1657
+ const waitUntilExportTaskCancelled = async (params, input) => {
1658
+ const serviceDefaults = { minDelay: 60, maxDelay: 3600 };
1717
1659
  const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$a);
1718
1660
  return utilWaiter.checkExceptions(result);
1719
1661
  };
@@ -1725,9 +1667,9 @@ const checkState$9 = async (client, input) => {
1725
1667
  reason = result;
1726
1668
  try {
1727
1669
  const returnComparator = () => {
1728
- return ((result.status != "CANCELLING") && (result.status != "CANCELLED"));
1670
+ return result.status;
1729
1671
  };
1730
- if (returnComparator() == true) {
1672
+ if (returnComparator() === "CANCELLING") {
1731
1673
  return { state: utilWaiter.WaiterState.FAILURE, reason };
1732
1674
  }
1733
1675
  }
@@ -1737,6 +1679,24 @@ const checkState$9 = async (client, input) => {
1737
1679
  return result.status;
1738
1680
  };
1739
1681
  if (returnComparator() === "CANCELLED") {
1682
+ return { state: utilWaiter.WaiterState.FAILURE, reason };
1683
+ }
1684
+ }
1685
+ catch (e) { }
1686
+ try {
1687
+ const returnComparator = () => {
1688
+ return result.status;
1689
+ };
1690
+ if (returnComparator() === "FAILED") {
1691
+ return { state: utilWaiter.WaiterState.FAILURE, reason };
1692
+ }
1693
+ }
1694
+ catch (e) { }
1695
+ try {
1696
+ const returnComparator = () => {
1697
+ return result.status;
1698
+ };
1699
+ if (returnComparator() === "SUCCEEDED") {
1740
1700
  return { state: utilWaiter.WaiterState.SUCCESS, reason };
1741
1701
  }
1742
1702
  }
@@ -1747,12 +1707,12 @@ const checkState$9 = async (client, input) => {
1747
1707
  }
1748
1708
  return { state: utilWaiter.WaiterState.RETRY, reason };
1749
1709
  };
1750
- const waitForExportTaskCancelled = async (params, input) => {
1751
- const serviceDefaults = { minDelay: 60, maxDelay: 3600 };
1710
+ const waitForExportTaskSuccessful = async (params, input) => {
1711
+ const serviceDefaults = { minDelay: 60, maxDelay: 28800 };
1752
1712
  return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$9);
1753
1713
  };
1754
- const waitUntilExportTaskCancelled = async (params, input) => {
1755
- const serviceDefaults = { minDelay: 60, maxDelay: 3600 };
1714
+ const waitUntilExportTaskSuccessful = async (params, input) => {
1715
+ const serviceDefaults = { minDelay: 60, maxDelay: 28800 };
1756
1716
  const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$9);
1757
1717
  return utilWaiter.checkExceptions(result);
1758
1718
  };
@@ -1839,45 +1799,6 @@ const waitUntilGraphDeleted = async (params, input) => {
1839
1799
  };
1840
1800
 
1841
1801
  const checkState$6 = async (client, input) => {
1842
- let reason;
1843
- try {
1844
- let result = await client.send(new GetGraphCommand(input));
1845
- reason = result;
1846
- try {
1847
- const returnComparator = () => {
1848
- return result.status;
1849
- };
1850
- if (returnComparator() === "STOPPED") {
1851
- return { state: utilWaiter.WaiterState.SUCCESS, reason };
1852
- }
1853
- }
1854
- catch (e) { }
1855
- try {
1856
- const returnComparator = () => {
1857
- return (result.status != "STOPPING");
1858
- };
1859
- if (returnComparator() == true) {
1860
- return { state: utilWaiter.WaiterState.FAILURE, reason };
1861
- }
1862
- }
1863
- catch (e) { }
1864
- }
1865
- catch (exception) {
1866
- reason = exception;
1867
- }
1868
- return { state: utilWaiter.WaiterState.RETRY, reason };
1869
- };
1870
- const waitForGraphStopped = async (params, input) => {
1871
- const serviceDefaults = { minDelay: 20, maxDelay: 1800 };
1872
- return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$6);
1873
- };
1874
- const waitUntilGraphStopped = async (params, input) => {
1875
- const serviceDefaults = { minDelay: 20, maxDelay: 1800 };
1876
- const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$6);
1877
- return utilWaiter.checkExceptions(result);
1878
- };
1879
-
1880
- const checkState$5 = async (client, input) => {
1881
1802
  let reason;
1882
1803
  try {
1883
1804
  let result = await client.send(new GetGraphSnapshotCommand(input));
@@ -1917,15 +1838,15 @@ const checkState$5 = async (client, input) => {
1917
1838
  };
1918
1839
  const waitForGraphSnapshotAvailable = async (params, input) => {
1919
1840
  const serviceDefaults = { minDelay: 60, maxDelay: 7200 };
1920
- return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$5);
1841
+ return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$6);
1921
1842
  };
1922
1843
  const waitUntilGraphSnapshotAvailable = async (params, input) => {
1923
1844
  const serviceDefaults = { minDelay: 60, maxDelay: 7200 };
1924
- const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$5);
1845
+ const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$6);
1925
1846
  return utilWaiter.checkExceptions(result);
1926
1847
  };
1927
1848
 
1928
- const checkState$4 = async (client, input) => {
1849
+ const checkState$5 = async (client, input) => {
1929
1850
  let reason;
1930
1851
  try {
1931
1852
  let result = await client.send(new GetGraphSnapshotCommand(input));
@@ -1950,51 +1871,63 @@ const checkState$4 = async (client, input) => {
1950
1871
  };
1951
1872
  const waitForGraphSnapshotDeleted = async (params, input) => {
1952
1873
  const serviceDefaults = { minDelay: 60, maxDelay: 3600 };
1953
- return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$4);
1874
+ return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$5);
1954
1875
  };
1955
1876
  const waitUntilGraphSnapshotDeleted = async (params, input) => {
1956
1877
  const serviceDefaults = { minDelay: 60, maxDelay: 3600 };
1957
- const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$4);
1878
+ const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$5);
1958
1879
  return utilWaiter.checkExceptions(result);
1959
1880
  };
1960
1881
 
1961
- const checkState$3 = async (client, input) => {
1882
+ const checkState$4 = async (client, input) => {
1962
1883
  let reason;
1963
1884
  try {
1964
- let result = await client.send(new GetImportTaskCommand(input));
1885
+ let result = await client.send(new GetGraphCommand(input));
1965
1886
  reason = result;
1966
1887
  try {
1967
1888
  const returnComparator = () => {
1968
1889
  return result.status;
1969
1890
  };
1970
- if (returnComparator() === "CANCELLING") {
1971
- return { state: utilWaiter.WaiterState.FAILURE, reason };
1972
- }
1973
- }
1974
- catch (e) { }
1975
- try {
1976
- const returnComparator = () => {
1977
- return result.status;
1978
- };
1979
- if (returnComparator() === "CANCELLED") {
1980
- return { state: utilWaiter.WaiterState.FAILURE, reason };
1891
+ if (returnComparator() === "STOPPED") {
1892
+ return { state: utilWaiter.WaiterState.SUCCESS, reason };
1981
1893
  }
1982
1894
  }
1983
1895
  catch (e) { }
1984
1896
  try {
1985
1897
  const returnComparator = () => {
1986
- return result.status;
1898
+ return (result.status != "STOPPING");
1987
1899
  };
1988
- if (returnComparator() === "ROLLING_BACK") {
1900
+ if (returnComparator() == true) {
1989
1901
  return { state: utilWaiter.WaiterState.FAILURE, reason };
1990
1902
  }
1991
1903
  }
1992
1904
  catch (e) { }
1905
+ }
1906
+ catch (exception) {
1907
+ reason = exception;
1908
+ }
1909
+ return { state: utilWaiter.WaiterState.RETRY, reason };
1910
+ };
1911
+ const waitForGraphStopped = async (params, input) => {
1912
+ const serviceDefaults = { minDelay: 20, maxDelay: 1800 };
1913
+ return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$4);
1914
+ };
1915
+ const waitUntilGraphStopped = async (params, input) => {
1916
+ const serviceDefaults = { minDelay: 20, maxDelay: 1800 };
1917
+ const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$4);
1918
+ return utilWaiter.checkExceptions(result);
1919
+ };
1920
+
1921
+ const checkState$3 = async (client, input) => {
1922
+ let reason;
1923
+ try {
1924
+ let result = await client.send(new GetImportTaskCommand(input));
1925
+ reason = result;
1993
1926
  try {
1994
1927
  const returnComparator = () => {
1995
- return result.status;
1928
+ return ((result.status != "CANCELLING") && (result.status != "CANCELLED"));
1996
1929
  };
1997
- if (returnComparator() === "FAILED") {
1930
+ if (returnComparator() == true) {
1998
1931
  return { state: utilWaiter.WaiterState.FAILURE, reason };
1999
1932
  }
2000
1933
  }
@@ -2003,7 +1936,7 @@ const checkState$3 = async (client, input) => {
2003
1936
  const returnComparator = () => {
2004
1937
  return result.status;
2005
1938
  };
2006
- if (returnComparator() === "SUCCEEDED") {
1939
+ if (returnComparator() === "CANCELLED") {
2007
1940
  return { state: utilWaiter.WaiterState.SUCCESS, reason };
2008
1941
  }
2009
1942
  }
@@ -2014,12 +1947,12 @@ const checkState$3 = async (client, input) => {
2014
1947
  }
2015
1948
  return { state: utilWaiter.WaiterState.RETRY, reason };
2016
1949
  };
2017
- const waitForImportTaskSuccessful = async (params, input) => {
2018
- const serviceDefaults = { minDelay: 60, maxDelay: 28800 };
1950
+ const waitForImportTaskCancelled = async (params, input) => {
1951
+ const serviceDefaults = { minDelay: 60, maxDelay: 3600 };
2019
1952
  return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
2020
1953
  };
2021
- const waitUntilImportTaskSuccessful = async (params, input) => {
2022
- const serviceDefaults = { minDelay: 60, maxDelay: 28800 };
1954
+ const waitUntilImportTaskCancelled = async (params, input) => {
1955
+ const serviceDefaults = { minDelay: 60, maxDelay: 3600 };
2023
1956
  const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
2024
1957
  return utilWaiter.checkExceptions(result);
2025
1958
  };
@@ -2031,9 +1964,9 @@ const checkState$2 = async (client, input) => {
2031
1964
  reason = result;
2032
1965
  try {
2033
1966
  const returnComparator = () => {
2034
- return ((result.status != "CANCELLING") && (result.status != "CANCELLED"));
1967
+ return result.status;
2035
1968
  };
2036
- if (returnComparator() == true) {
1969
+ if (returnComparator() === "CANCELLING") {
2037
1970
  return { state: utilWaiter.WaiterState.FAILURE, reason };
2038
1971
  }
2039
1972
  }
@@ -2043,6 +1976,33 @@ const checkState$2 = async (client, input) => {
2043
1976
  return result.status;
2044
1977
  };
2045
1978
  if (returnComparator() === "CANCELLED") {
1979
+ return { state: utilWaiter.WaiterState.FAILURE, reason };
1980
+ }
1981
+ }
1982
+ catch (e) { }
1983
+ try {
1984
+ const returnComparator = () => {
1985
+ return result.status;
1986
+ };
1987
+ if (returnComparator() === "ROLLING_BACK") {
1988
+ return { state: utilWaiter.WaiterState.FAILURE, reason };
1989
+ }
1990
+ }
1991
+ catch (e) { }
1992
+ try {
1993
+ const returnComparator = () => {
1994
+ return result.status;
1995
+ };
1996
+ if (returnComparator() === "FAILED") {
1997
+ return { state: utilWaiter.WaiterState.FAILURE, reason };
1998
+ }
1999
+ }
2000
+ catch (e) { }
2001
+ try {
2002
+ const returnComparator = () => {
2003
+ return result.status;
2004
+ };
2005
+ if (returnComparator() === "SUCCEEDED") {
2046
2006
  return { state: utilWaiter.WaiterState.SUCCESS, reason };
2047
2007
  }
2048
2008
  }
@@ -2053,12 +2013,12 @@ const checkState$2 = async (client, input) => {
2053
2013
  }
2054
2014
  return { state: utilWaiter.WaiterState.RETRY, reason };
2055
2015
  };
2056
- const waitForImportTaskCancelled = async (params, input) => {
2057
- const serviceDefaults = { minDelay: 60, maxDelay: 3600 };
2016
+ const waitForImportTaskSuccessful = async (params, input) => {
2017
+ const serviceDefaults = { minDelay: 60, maxDelay: 28800 };
2058
2018
  return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
2059
2019
  };
2060
- const waitUntilImportTaskCancelled = async (params, input) => {
2061
- const serviceDefaults = { minDelay: 60, maxDelay: 3600 };
2020
+ const waitUntilImportTaskSuccessful = async (params, input) => {
2021
+ const serviceDefaults = { minDelay: 60, maxDelay: 28800 };
2062
2022
  const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
2063
2023
  return utilWaiter.checkExceptions(result);
2064
2024
  };
@@ -2144,6 +2104,66 @@ const waitUntilPrivateGraphEndpointDeleted = async (params, input) => {
2144
2104
  return utilWaiter.checkExceptions(result);
2145
2105
  };
2146
2106
 
2107
+ const commands = {
2108
+ CancelExportTaskCommand,
2109
+ CancelImportTaskCommand,
2110
+ CancelQueryCommand,
2111
+ CreateGraphCommand,
2112
+ CreateGraphSnapshotCommand,
2113
+ CreateGraphUsingImportTaskCommand,
2114
+ CreatePrivateGraphEndpointCommand,
2115
+ DeleteGraphCommand,
2116
+ DeleteGraphSnapshotCommand,
2117
+ DeletePrivateGraphEndpointCommand,
2118
+ ExecuteQueryCommand,
2119
+ GetExportTaskCommand,
2120
+ GetGraphCommand,
2121
+ GetGraphSnapshotCommand,
2122
+ GetGraphSummaryCommand,
2123
+ GetImportTaskCommand,
2124
+ GetPrivateGraphEndpointCommand,
2125
+ GetQueryCommand,
2126
+ ListExportTasksCommand,
2127
+ ListGraphsCommand,
2128
+ ListGraphSnapshotsCommand,
2129
+ ListImportTasksCommand,
2130
+ ListPrivateGraphEndpointsCommand,
2131
+ ListQueriesCommand,
2132
+ ListTagsForResourceCommand,
2133
+ ResetGraphCommand,
2134
+ RestoreGraphFromSnapshotCommand,
2135
+ StartExportTaskCommand,
2136
+ StartGraphCommand,
2137
+ StartImportTaskCommand,
2138
+ StopGraphCommand,
2139
+ TagResourceCommand,
2140
+ UntagResourceCommand,
2141
+ UpdateGraphCommand,
2142
+ };
2143
+ const paginators = {
2144
+ paginateListExportTasks,
2145
+ paginateListGraphs,
2146
+ paginateListGraphSnapshots,
2147
+ paginateListImportTasks,
2148
+ paginateListPrivateGraphEndpoints,
2149
+ };
2150
+ const waiters = {
2151
+ waitUntilExportTaskSuccessful,
2152
+ waitUntilExportTaskCancelled,
2153
+ waitUntilGraphAvailable,
2154
+ waitUntilGraphDeleted,
2155
+ waitUntilGraphStopped,
2156
+ waitUntilGraphSnapshotAvailable,
2157
+ waitUntilGraphSnapshotDeleted,
2158
+ waitUntilImportTaskSuccessful,
2159
+ waitUntilImportTaskCancelled,
2160
+ waitUntilPrivateGraphEndpointAvailable,
2161
+ waitUntilPrivateGraphEndpointDeleted,
2162
+ };
2163
+ class NeptuneGraph extends NeptuneGraphClient {
2164
+ }
2165
+ smithyClient.createAggregatedClient(commands, NeptuneGraph, { paginators, waiters });
2166
+
2147
2167
  const ValidationExceptionReason = {
2148
2168
  BAD_REQUEST: "BAD_REQUEST",
2149
2169
  CONSTRAINT_VIOLATION: "CONSTRAINT_VIOLATION",
@@ -34,6 +34,22 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
34
34
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
35
35
  import { UpdateGraphCommand } from "./commands/UpdateGraphCommand";
36
36
  import { NeptuneGraphClient } from "./NeptuneGraphClient";
37
+ import { paginateListExportTasks } from "./pagination/ListExportTasksPaginator";
38
+ import { paginateListGraphSnapshots } from "./pagination/ListGraphSnapshotsPaginator";
39
+ import { paginateListGraphs } from "./pagination/ListGraphsPaginator";
40
+ import { paginateListImportTasks } from "./pagination/ListImportTasksPaginator";
41
+ import { paginateListPrivateGraphEndpoints } from "./pagination/ListPrivateGraphEndpointsPaginator";
42
+ import { waitUntilExportTaskCancelled } from "./waiters/waitForExportTaskCancelled";
43
+ import { waitUntilExportTaskSuccessful } from "./waiters/waitForExportTaskSuccessful";
44
+ import { waitUntilGraphAvailable } from "./waiters/waitForGraphAvailable";
45
+ import { waitUntilGraphDeleted } from "./waiters/waitForGraphDeleted";
46
+ import { waitUntilGraphSnapshotAvailable } from "./waiters/waitForGraphSnapshotAvailable";
47
+ import { waitUntilGraphSnapshotDeleted } from "./waiters/waitForGraphSnapshotDeleted";
48
+ import { waitUntilGraphStopped } from "./waiters/waitForGraphStopped";
49
+ import { waitUntilImportTaskCancelled } from "./waiters/waitForImportTaskCancelled";
50
+ import { waitUntilImportTaskSuccessful } from "./waiters/waitForImportTaskSuccessful";
51
+ import { waitUntilPrivateGraphEndpointAvailable } from "./waiters/waitForPrivateGraphEndpointAvailable";
52
+ import { waitUntilPrivateGraphEndpointDeleted } from "./waiters/waitForPrivateGraphEndpointDeleted";
37
53
  const commands = {
38
54
  CancelExportTaskCommand,
39
55
  CancelImportTaskCommand,
@@ -70,6 +86,26 @@ const commands = {
70
86
  UntagResourceCommand,
71
87
  UpdateGraphCommand,
72
88
  };
89
+ const paginators = {
90
+ paginateListExportTasks,
91
+ paginateListGraphs,
92
+ paginateListGraphSnapshots,
93
+ paginateListImportTasks,
94
+ paginateListPrivateGraphEndpoints,
95
+ };
96
+ const waiters = {
97
+ waitUntilExportTaskSuccessful,
98
+ waitUntilExportTaskCancelled,
99
+ waitUntilGraphAvailable,
100
+ waitUntilGraphDeleted,
101
+ waitUntilGraphStopped,
102
+ waitUntilGraphSnapshotAvailable,
103
+ waitUntilGraphSnapshotDeleted,
104
+ waitUntilImportTaskSuccessful,
105
+ waitUntilImportTaskCancelled,
106
+ waitUntilPrivateGraphEndpointAvailable,
107
+ waitUntilPrivateGraphEndpointDeleted,
108
+ };
73
109
  export class NeptuneGraph extends NeptuneGraphClient {
74
110
  }
75
- createAggregatedClient(commands, NeptuneGraph);
111
+ createAggregatedClient(commands, NeptuneGraph, { paginators, waiters });
@@ -1,4 +1,5 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator, WaiterConfiguration } from "@smithy/types";
2
+ import type { WaiterResult } from "@smithy/util-waiter";
2
3
  import { CancelExportTaskCommandInput, CancelExportTaskCommandOutput } from "./commands/CancelExportTaskCommand";
3
4
  import { CancelImportTaskCommandInput, CancelImportTaskCommandOutput } from "./commands/CancelImportTaskCommand";
4
5
  import { CancelQueryCommandInput, CancelQueryCommandOutput } from "./commands/CancelQueryCommand";
@@ -243,6 +244,107 @@ export interface NeptuneGraph {
243
244
  updateGraph(args: UpdateGraphCommandInput, options?: __HttpHandlerOptions): Promise<UpdateGraphCommandOutput>;
244
245
  updateGraph(args: UpdateGraphCommandInput, cb: (err: any, data?: UpdateGraphCommandOutput) => void): void;
245
246
  updateGraph(args: UpdateGraphCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateGraphCommandOutput) => void): void;
247
+ /**
248
+ * @see {@link ListExportTasksCommand}
249
+ * @param args - command input.
250
+ * @param paginationConfig - optional pagination config.
251
+ * @returns AsyncIterable of {@link ListExportTasksCommandOutput}.
252
+ */
253
+ paginateListExportTasks(args?: ListExportTasksCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListExportTasksCommandOutput>;
254
+ /**
255
+ * @see {@link ListGraphsCommand}
256
+ * @param args - command input.
257
+ * @param paginationConfig - optional pagination config.
258
+ * @returns AsyncIterable of {@link ListGraphsCommandOutput}.
259
+ */
260
+ paginateListGraphs(args?: ListGraphsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListGraphsCommandOutput>;
261
+ /**
262
+ * @see {@link ListGraphSnapshotsCommand}
263
+ * @param args - command input.
264
+ * @param paginationConfig - optional pagination config.
265
+ * @returns AsyncIterable of {@link ListGraphSnapshotsCommandOutput}.
266
+ */
267
+ paginateListGraphSnapshots(args?: ListGraphSnapshotsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListGraphSnapshotsCommandOutput>;
268
+ /**
269
+ * @see {@link ListImportTasksCommand}
270
+ * @param args - command input.
271
+ * @param paginationConfig - optional pagination config.
272
+ * @returns AsyncIterable of {@link ListImportTasksCommandOutput}.
273
+ */
274
+ paginateListImportTasks(args?: ListImportTasksCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListImportTasksCommandOutput>;
275
+ /**
276
+ * @see {@link ListPrivateGraphEndpointsCommand}
277
+ * @param args - command input.
278
+ * @param paginationConfig - optional pagination config.
279
+ * @returns AsyncIterable of {@link ListPrivateGraphEndpointsCommandOutput}.
280
+ */
281
+ paginateListPrivateGraphEndpoints(args: ListPrivateGraphEndpointsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListPrivateGraphEndpointsCommandOutput>;
282
+ /**
283
+ * @see {@link GetExportTaskCommand}
284
+ * @param args - command input.
285
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
286
+ */
287
+ waitUntilExportTaskSuccessful(args: GetExportTaskCommandInput, waiterConfig: number | Omit<WaiterConfiguration<NeptuneGraph>, "client">): Promise<WaiterResult>;
288
+ /**
289
+ * @see {@link GetExportTaskCommand}
290
+ * @param args - command input.
291
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
292
+ */
293
+ waitUntilExportTaskCancelled(args: GetExportTaskCommandInput, waiterConfig: number | Omit<WaiterConfiguration<NeptuneGraph>, "client">): Promise<WaiterResult>;
294
+ /**
295
+ * @see {@link GetGraphCommand}
296
+ * @param args - command input.
297
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
298
+ */
299
+ waitUntilGraphAvailable(args: GetGraphCommandInput, waiterConfig: number | Omit<WaiterConfiguration<NeptuneGraph>, "client">): Promise<WaiterResult>;
300
+ /**
301
+ * @see {@link GetGraphCommand}
302
+ * @param args - command input.
303
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
304
+ */
305
+ waitUntilGraphDeleted(args: GetGraphCommandInput, waiterConfig: number | Omit<WaiterConfiguration<NeptuneGraph>, "client">): Promise<WaiterResult>;
306
+ /**
307
+ * @see {@link GetGraphCommand}
308
+ * @param args - command input.
309
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
310
+ */
311
+ waitUntilGraphStopped(args: GetGraphCommandInput, waiterConfig: number | Omit<WaiterConfiguration<NeptuneGraph>, "client">): Promise<WaiterResult>;
312
+ /**
313
+ * @see {@link GetGraphSnapshotCommand}
314
+ * @param args - command input.
315
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
316
+ */
317
+ waitUntilGraphSnapshotAvailable(args: GetGraphSnapshotCommandInput, waiterConfig: number | Omit<WaiterConfiguration<NeptuneGraph>, "client">): Promise<WaiterResult>;
318
+ /**
319
+ * @see {@link GetGraphSnapshotCommand}
320
+ * @param args - command input.
321
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
322
+ */
323
+ waitUntilGraphSnapshotDeleted(args: GetGraphSnapshotCommandInput, waiterConfig: number | Omit<WaiterConfiguration<NeptuneGraph>, "client">): Promise<WaiterResult>;
324
+ /**
325
+ * @see {@link GetImportTaskCommand}
326
+ * @param args - command input.
327
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
328
+ */
329
+ waitUntilImportTaskSuccessful(args: GetImportTaskCommandInput, waiterConfig: number | Omit<WaiterConfiguration<NeptuneGraph>, "client">): Promise<WaiterResult>;
330
+ /**
331
+ * @see {@link GetImportTaskCommand}
332
+ * @param args - command input.
333
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
334
+ */
335
+ waitUntilImportTaskCancelled(args: GetImportTaskCommandInput, waiterConfig: number | Omit<WaiterConfiguration<NeptuneGraph>, "client">): Promise<WaiterResult>;
336
+ /**
337
+ * @see {@link GetPrivateGraphEndpointCommand}
338
+ * @param args - command input.
339
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
340
+ */
341
+ waitUntilPrivateGraphEndpointAvailable(args: GetPrivateGraphEndpointCommandInput, waiterConfig: number | Omit<WaiterConfiguration<NeptuneGraph>, "client">): Promise<WaiterResult>;
342
+ /**
343
+ * @see {@link GetPrivateGraphEndpointCommand}
344
+ * @param args - command input.
345
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
346
+ */
347
+ waitUntilPrivateGraphEndpointDeleted(args: GetPrivateGraphEndpointCommandInput, waiterConfig: number | Omit<WaiterConfiguration<NeptuneGraph>, "client">): Promise<WaiterResult>;
246
348
  }
247
349
  /**
248
350
  * <p>Neptune Analytics is a new analytics database engine for Amazon Neptune that helps customers get to insights faster by quickly processing large amounts of graph data, invoking popular graph analytic algorithms in low-latency queries, and getting analytics results in seconds.</p>
@@ -1,4 +1,10 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import {
2
+ HttpHandlerOptions as __HttpHandlerOptions,
3
+ PaginationConfiguration,
4
+ Paginator,
5
+ WaiterConfiguration,
6
+ } from "@smithy/types";
7
+ import { WaiterResult } from "@smithy/util-waiter";
2
8
  import {
3
9
  CancelExportTaskCommandInput,
4
10
  CancelExportTaskCommandOutput,
@@ -583,6 +589,140 @@ export interface NeptuneGraph {
583
589
  options: __HttpHandlerOptions,
584
590
  cb: (err: any, data?: UpdateGraphCommandOutput) => void
585
591
  ): void;
592
+ paginateListExportTasks(
593
+ args?: ListExportTasksCommandInput,
594
+ paginationConfig?: Pick<
595
+ PaginationConfiguration,
596
+ Exclude<keyof PaginationConfiguration, "client">
597
+ >
598
+ ): Paginator<ListExportTasksCommandOutput>;
599
+ paginateListGraphs(
600
+ args?: ListGraphsCommandInput,
601
+ paginationConfig?: Pick<
602
+ PaginationConfiguration,
603
+ Exclude<keyof PaginationConfiguration, "client">
604
+ >
605
+ ): Paginator<ListGraphsCommandOutput>;
606
+ paginateListGraphSnapshots(
607
+ args?: ListGraphSnapshotsCommandInput,
608
+ paginationConfig?: Pick<
609
+ PaginationConfiguration,
610
+ Exclude<keyof PaginationConfiguration, "client">
611
+ >
612
+ ): Paginator<ListGraphSnapshotsCommandOutput>;
613
+ paginateListImportTasks(
614
+ args?: ListImportTasksCommandInput,
615
+ paginationConfig?: Pick<
616
+ PaginationConfiguration,
617
+ Exclude<keyof PaginationConfiguration, "client">
618
+ >
619
+ ): Paginator<ListImportTasksCommandOutput>;
620
+ paginateListPrivateGraphEndpoints(
621
+ args: ListPrivateGraphEndpointsCommandInput,
622
+ paginationConfig?: Pick<
623
+ PaginationConfiguration,
624
+ Exclude<keyof PaginationConfiguration, "client">
625
+ >
626
+ ): Paginator<ListPrivateGraphEndpointsCommandOutput>;
627
+ waitUntilExportTaskSuccessful(
628
+ args: GetExportTaskCommandInput,
629
+ waiterConfig:
630
+ | number
631
+ | Pick<
632
+ WaiterConfiguration<NeptuneGraph>,
633
+ Exclude<keyof WaiterConfiguration<NeptuneGraph>, "client">
634
+ >
635
+ ): Promise<WaiterResult>;
636
+ waitUntilExportTaskCancelled(
637
+ args: GetExportTaskCommandInput,
638
+ waiterConfig:
639
+ | number
640
+ | Pick<
641
+ WaiterConfiguration<NeptuneGraph>,
642
+ Exclude<keyof WaiterConfiguration<NeptuneGraph>, "client">
643
+ >
644
+ ): Promise<WaiterResult>;
645
+ waitUntilGraphAvailable(
646
+ args: GetGraphCommandInput,
647
+ waiterConfig:
648
+ | number
649
+ | Pick<
650
+ WaiterConfiguration<NeptuneGraph>,
651
+ Exclude<keyof WaiterConfiguration<NeptuneGraph>, "client">
652
+ >
653
+ ): Promise<WaiterResult>;
654
+ waitUntilGraphDeleted(
655
+ args: GetGraphCommandInput,
656
+ waiterConfig:
657
+ | number
658
+ | Pick<
659
+ WaiterConfiguration<NeptuneGraph>,
660
+ Exclude<keyof WaiterConfiguration<NeptuneGraph>, "client">
661
+ >
662
+ ): Promise<WaiterResult>;
663
+ waitUntilGraphStopped(
664
+ args: GetGraphCommandInput,
665
+ waiterConfig:
666
+ | number
667
+ | Pick<
668
+ WaiterConfiguration<NeptuneGraph>,
669
+ Exclude<keyof WaiterConfiguration<NeptuneGraph>, "client">
670
+ >
671
+ ): Promise<WaiterResult>;
672
+ waitUntilGraphSnapshotAvailable(
673
+ args: GetGraphSnapshotCommandInput,
674
+ waiterConfig:
675
+ | number
676
+ | Pick<
677
+ WaiterConfiguration<NeptuneGraph>,
678
+ Exclude<keyof WaiterConfiguration<NeptuneGraph>, "client">
679
+ >
680
+ ): Promise<WaiterResult>;
681
+ waitUntilGraphSnapshotDeleted(
682
+ args: GetGraphSnapshotCommandInput,
683
+ waiterConfig:
684
+ | number
685
+ | Pick<
686
+ WaiterConfiguration<NeptuneGraph>,
687
+ Exclude<keyof WaiterConfiguration<NeptuneGraph>, "client">
688
+ >
689
+ ): Promise<WaiterResult>;
690
+ waitUntilImportTaskSuccessful(
691
+ args: GetImportTaskCommandInput,
692
+ waiterConfig:
693
+ | number
694
+ | Pick<
695
+ WaiterConfiguration<NeptuneGraph>,
696
+ Exclude<keyof WaiterConfiguration<NeptuneGraph>, "client">
697
+ >
698
+ ): Promise<WaiterResult>;
699
+ waitUntilImportTaskCancelled(
700
+ args: GetImportTaskCommandInput,
701
+ waiterConfig:
702
+ | number
703
+ | Pick<
704
+ WaiterConfiguration<NeptuneGraph>,
705
+ Exclude<keyof WaiterConfiguration<NeptuneGraph>, "client">
706
+ >
707
+ ): Promise<WaiterResult>;
708
+ waitUntilPrivateGraphEndpointAvailable(
709
+ args: GetPrivateGraphEndpointCommandInput,
710
+ waiterConfig:
711
+ | number
712
+ | Pick<
713
+ WaiterConfiguration<NeptuneGraph>,
714
+ Exclude<keyof WaiterConfiguration<NeptuneGraph>, "client">
715
+ >
716
+ ): Promise<WaiterResult>;
717
+ waitUntilPrivateGraphEndpointDeleted(
718
+ args: GetPrivateGraphEndpointCommandInput,
719
+ waiterConfig:
720
+ | number
721
+ | Pick<
722
+ WaiterConfiguration<NeptuneGraph>,
723
+ Exclude<keyof WaiterConfiguration<NeptuneGraph>, "client">
724
+ >
725
+ ): Promise<WaiterResult>;
586
726
  }
587
727
  export declare class NeptuneGraph
588
728
  extends NeptuneGraphClient
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.975.0",
4
+ "version": "3.978.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-neptune-graph",
@@ -21,38 +21,38 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.1",
25
- "@aws-sdk/credential-provider-node": "^3.972.1",
26
- "@aws-sdk/middleware-host-header": "^3.972.1",
27
- "@aws-sdk/middleware-logger": "^3.972.1",
28
- "@aws-sdk/middleware-recursion-detection": "^3.972.1",
29
- "@aws-sdk/middleware-user-agent": "^3.972.2",
30
- "@aws-sdk/region-config-resolver": "^3.972.1",
31
- "@aws-sdk/types": "^3.973.0",
24
+ "@aws-sdk/core": "^3.973.4",
25
+ "@aws-sdk/credential-provider-node": "^3.972.2",
26
+ "@aws-sdk/middleware-host-header": "^3.972.2",
27
+ "@aws-sdk/middleware-logger": "^3.972.2",
28
+ "@aws-sdk/middleware-recursion-detection": "^3.972.2",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.4",
30
+ "@aws-sdk/region-config-resolver": "^3.972.2",
31
+ "@aws-sdk/types": "^3.973.1",
32
32
  "@aws-sdk/util-endpoints": "3.972.0",
33
- "@aws-sdk/util-user-agent-browser": "^3.972.1",
34
- "@aws-sdk/util-user-agent-node": "^3.972.1",
33
+ "@aws-sdk/util-user-agent-browser": "^3.972.2",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.2",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.21.1",
36
+ "@smithy/core": "^3.22.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.11",
42
- "@smithy/middleware-retry": "^4.4.27",
41
+ "@smithy/middleware-endpoint": "^4.4.12",
42
+ "@smithy/middleware-retry": "^4.4.29",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
46
  "@smithy/node-http-handler": "^4.4.8",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.10.12",
48
+ "@smithy/smithy-client": "^4.11.1",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.26",
55
- "@smithy/util-defaults-mode-node": "^4.2.29",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.28",
55
+ "@smithy/util-defaults-mode-node": "^4.2.31",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",