aws-sdk-neptunegraph 1.0.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a8374ee9fe2b9898775a118f2e18e387933104546da0339069ed361f763cfbfd
4
- data.tar.gz: 07f7064f913e583be4da7147a2f8494ad084510430959bf03fe1700d44d17e36
3
+ metadata.gz: 6d92d892f5b9dfc5079992b0aad0658dabbe87b1b4df8ac9ef85d9a0b77dc6aa
4
+ data.tar.gz: d2877c397f9d8356b1fcea8fb9cbb3832b6253c0686c1fbc05957fdd4909b5cf
5
5
  SHA512:
6
- metadata.gz: 7926bd6d982777b50207bdc6ece2e2db833ec3ae51043319b20f0e98abd739a7cfbe70de482cb1e6e44af5791a8bd760a5e4b36b32a15a0fd0864709468b17fa
7
- data.tar.gz: 7bc7affa7e4d25db289211b4af5e85660de6d512f987790d83e64631121762094ec7eeeb4cfc27ef52bf46b0bf2108495ed2520a625df7aea9d546866888b9b2
6
+ metadata.gz: 505643a54e061aeda54f236192b1315c31d70746d468faf9cc9fdc9e392b0f21f6514f1ea740e8fd8e4892c3ec0902a0fb3fc162c50f4244f68445372914756d
7
+ data.tar.gz: 4addc61e4ac2976316e66063cba76db1570b335e8c52782728fe543b621c7cb2d98d1f98afa4e036da59919f85bb26466b186d016c7ed9be7d907a675d91dc42
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.2.0 (2024-01-26)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.1.0 (2023-12-21)
10
+ ------------------
11
+
12
+ * Feature - Adds Waiters for successful creation and deletion of Graph, Graph Snapshot, Import Task and Private Endpoints for Neptune Analytics
13
+
4
14
  1.0.0 (2023-12-14)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.2.0
@@ -975,6 +975,12 @@ module Aws::NeptuneGraph
975
975
  # resp.deletion_protection #=> Boolean
976
976
  # resp.build_number #=> String
977
977
  #
978
+ #
979
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
980
+ #
981
+ # * graph_available
982
+ # * graph_deleted
983
+ #
978
984
  # @see http://docs.aws.amazon.com/goto/WebAPI/neptune-graph-2023-11-29/GetGraph AWS API Documentation
979
985
  #
980
986
  # @overload get_graph(params = {})
@@ -1015,6 +1021,12 @@ module Aws::NeptuneGraph
1015
1021
  # resp.status #=> String, one of "CREATING", "AVAILABLE", "DELETING", "FAILED"
1016
1022
  # resp.kms_key_identifier #=> String
1017
1023
  #
1024
+ #
1025
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
1026
+ #
1027
+ # * graph_snapshot_available
1028
+ # * graph_snapshot_deleted
1029
+ #
1018
1030
  # @see http://docs.aws.amazon.com/goto/WebAPI/neptune-graph-2023-11-29/GetGraphSnapshot AWS API Documentation
1019
1031
  #
1020
1032
  # @overload get_graph_snapshot(params = {})
@@ -1071,6 +1083,12 @@ module Aws::NeptuneGraph
1071
1083
  # resp.attempt_number #=> Integer
1072
1084
  # resp.status_reason #=> String
1073
1085
  #
1086
+ #
1087
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
1088
+ #
1089
+ # * import_task_cancelled
1090
+ # * import_task_successful
1091
+ #
1074
1092
  # @see http://docs.aws.amazon.com/goto/WebAPI/neptune-graph-2023-11-29/GetImportTask AWS API Documentation
1075
1093
  #
1076
1094
  # @overload get_import_task(params = {})
@@ -1110,6 +1128,12 @@ module Aws::NeptuneGraph
1110
1128
  # resp.status #=> String, one of "CREATING", "AVAILABLE", "DELETING", "FAILED"
1111
1129
  # resp.vpc_endpoint_id #=> String
1112
1130
  #
1131
+ #
1132
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
1133
+ #
1134
+ # * private_graph_endpoint_available
1135
+ # * private_graph_endpoint_deleted
1136
+ #
1113
1137
  # @see http://docs.aws.amazon.com/goto/WebAPI/neptune-graph-2023-11-29/GetPrivateGraphEndpoint AWS API Documentation
1114
1138
  #
1115
1139
  # @overload get_private_graph_endpoint(params = {})
@@ -1679,14 +1703,141 @@ module Aws::NeptuneGraph
1679
1703
  params: params,
1680
1704
  config: config)
1681
1705
  context[:gem_name] = 'aws-sdk-neptunegraph'
1682
- context[:gem_version] = '1.0.0'
1706
+ context[:gem_version] = '1.2.0'
1683
1707
  Seahorse::Client::Request.new(handlers, context)
1684
1708
  end
1685
1709
 
1710
+ # Polls an API operation until a resource enters a desired state.
1711
+ #
1712
+ # ## Basic Usage
1713
+ #
1714
+ # A waiter will call an API operation until:
1715
+ #
1716
+ # * It is successful
1717
+ # * It enters a terminal state
1718
+ # * It makes the maximum number of attempts
1719
+ #
1720
+ # In between attempts, the waiter will sleep.
1721
+ #
1722
+ # # polls in a loop, sleeping between attempts
1723
+ # client.wait_until(waiter_name, params)
1724
+ #
1725
+ # ## Configuration
1726
+ #
1727
+ # You can configure the maximum number of polling attempts, and the
1728
+ # delay (in seconds) between each polling attempt. You can pass
1729
+ # configuration as the final arguments hash.
1730
+ #
1731
+ # # poll for ~25 seconds
1732
+ # client.wait_until(waiter_name, params, {
1733
+ # max_attempts: 5,
1734
+ # delay: 5,
1735
+ # })
1736
+ #
1737
+ # ## Callbacks
1738
+ #
1739
+ # You can be notified before each polling attempt and before each
1740
+ # delay. If you throw `:success` or `:failure` from these callbacks,
1741
+ # it will terminate the waiter.
1742
+ #
1743
+ # started_at = Time.now
1744
+ # client.wait_until(waiter_name, params, {
1745
+ #
1746
+ # # disable max attempts
1747
+ # max_attempts: nil,
1748
+ #
1749
+ # # poll for 1 hour, instead of a number of attempts
1750
+ # before_wait: -> (attempts, response) do
1751
+ # throw :failure if Time.now - started_at > 3600
1752
+ # end
1753
+ # })
1754
+ #
1755
+ # ## Handling Errors
1756
+ #
1757
+ # When a waiter is unsuccessful, it will raise an error.
1758
+ # All of the failure errors extend from
1759
+ # {Aws::Waiters::Errors::WaiterFailed}.
1760
+ #
1761
+ # begin
1762
+ # client.wait_until(...)
1763
+ # rescue Aws::Waiters::Errors::WaiterFailed
1764
+ # # resource did not enter the desired state in time
1765
+ # end
1766
+ #
1767
+ # ## Valid Waiters
1768
+ #
1769
+ # The following table lists the valid waiter names, the operations they call,
1770
+ # and the default `:delay` and `:max_attempts` values.
1771
+ #
1772
+ # | waiter_name | params | :delay | :max_attempts |
1773
+ # | -------------------------------- | ----------------------------------- | -------- | ------------- |
1774
+ # | graph_available | {Client#get_graph} | 60 | 480 |
1775
+ # | graph_deleted | {Client#get_graph} | 60 | 60 |
1776
+ # | graph_snapshot_available | {Client#get_graph_snapshot} | 60 | 120 |
1777
+ # | graph_snapshot_deleted | {Client#get_graph_snapshot} | 60 | 60 |
1778
+ # | import_task_cancelled | {Client#get_import_task} | 60 | 60 |
1779
+ # | import_task_successful | {Client#get_import_task} | 60 | 480 |
1780
+ # | private_graph_endpoint_available | {Client#get_private_graph_endpoint} | 10 | 180 |
1781
+ # | private_graph_endpoint_deleted | {Client#get_private_graph_endpoint} | 10 | 180 |
1782
+ #
1783
+ # @raise [Errors::FailureStateError] Raised when the waiter terminates
1784
+ # because the waiter has entered a state that it will not transition
1785
+ # out of, preventing success.
1786
+ #
1787
+ # @raise [Errors::TooManyAttemptsError] Raised when the configured
1788
+ # maximum number of attempts have been made, and the waiter is not
1789
+ # yet successful.
1790
+ #
1791
+ # @raise [Errors::UnexpectedError] Raised when an error is encounted
1792
+ # while polling for a resource that is not expected.
1793
+ #
1794
+ # @raise [Errors::NoSuchWaiterError] Raised when you request to wait
1795
+ # for an unknown state.
1796
+ #
1797
+ # @return [Boolean] Returns `true` if the waiter was successful.
1798
+ # @param [Symbol] waiter_name
1799
+ # @param [Hash] params ({})
1800
+ # @param [Hash] options ({})
1801
+ # @option options [Integer] :max_attempts
1802
+ # @option options [Integer] :delay
1803
+ # @option options [Proc] :before_attempt
1804
+ # @option options [Proc] :before_wait
1805
+ def wait_until(waiter_name, params = {}, options = {})
1806
+ w = waiter(waiter_name, options)
1807
+ yield(w.waiter) if block_given? # deprecated
1808
+ w.wait(params)
1809
+ end
1810
+
1686
1811
  # @api private
1687
1812
  # @deprecated
1688
1813
  def waiter_names
1689
- []
1814
+ waiters.keys
1815
+ end
1816
+
1817
+ private
1818
+
1819
+ # @param [Symbol] waiter_name
1820
+ # @param [Hash] options ({})
1821
+ def waiter(waiter_name, options = {})
1822
+ waiter_class = waiters[waiter_name]
1823
+ if waiter_class
1824
+ waiter_class.new(options.merge(client: self))
1825
+ else
1826
+ raise Aws::Waiters::Errors::NoSuchWaiterError.new(waiter_name, waiters.keys)
1827
+ end
1828
+ end
1829
+
1830
+ def waiters
1831
+ {
1832
+ graph_available: Waiters::GraphAvailable,
1833
+ graph_deleted: Waiters::GraphDeleted,
1834
+ graph_snapshot_available: Waiters::GraphSnapshotAvailable,
1835
+ graph_snapshot_deleted: Waiters::GraphSnapshotDeleted,
1836
+ import_task_cancelled: Waiters::ImportTaskCancelled,
1837
+ import_task_successful: Waiters::ImportTaskSuccessful,
1838
+ private_graph_endpoint_available: Waiters::PrivateGraphEndpointAvailable,
1839
+ private_graph_endpoint_deleted: Waiters::PrivateGraphEndpointDeleted
1840
+ }
1690
1841
  end
1691
1842
 
1692
1843
  class << self
@@ -14,6 +14,7 @@ module Aws::NeptuneGraph
14
14
  option(
15
15
  :endpoint_provider,
16
16
  doc_type: 'Aws::NeptuneGraph::EndpointProvider',
17
+ rbs_type: 'untyped',
17
18
  docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
19
  'object that responds to `#resolve_endpoint(parameters)` '\
19
20
  'where `parameters` is a Struct similar to '\