aws-sdk-neptune 1.22.0 → 1.23.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.
- checksums.yaml +5 -5
- data/lib/aws-sdk-neptune.rb +1 -1
- data/lib/aws-sdk-neptune/client.rb +51 -24
- data/lib/aws-sdk-neptune/resource.rb +1 -7
- data/lib/aws-sdk-neptune/waiters.rb +62 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8f7965b8946aea679ad1398731bab0ce391bb20d3c08e17da1bb5fb75a7aab3c
|
4
|
+
data.tar.gz: c4aa34b099c1f0b99085cdaa46e2eb590b74815450fa4f976475714dc46e0475
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c44e4ddc0c987f57c08c41a66ec61612f69959e379cf0a8636b610904022147f8787cd3b021cb8eb353c8c0ec4b9c1007b15467b9cb3034f5ce2f231aa72230a
|
7
|
+
data.tar.gz: cb40f3d98270efb11cbc98eb7f629dadd21035e40b8f2b52204bf16828438a615951d3409c7f111b9455b6b61a8f83a13c7713442e623708a596a0004635c78e
|
data/lib/aws-sdk-neptune.rb
CHANGED
@@ -32,11 +32,11 @@ Aws::Plugins::GlobalConfiguration.add_identifier(:neptune)
|
|
32
32
|
module Aws::Neptune
|
33
33
|
# An API client for Neptune. To construct a client, you need to configure a `:region` and `:credentials`.
|
34
34
|
#
|
35
|
-
#
|
36
|
-
#
|
37
|
-
#
|
38
|
-
#
|
39
|
-
#
|
35
|
+
# client = Aws::Neptune::Client.new(
|
36
|
+
# region: region_name,
|
37
|
+
# credentials: credentials,
|
38
|
+
# # ...
|
39
|
+
# )
|
40
40
|
#
|
41
41
|
# For details on configuring region and credentials see
|
42
42
|
# the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
|
@@ -105,7 +105,7 @@ module Aws::Neptune
|
|
105
105
|
# @option options [required, String] :region
|
106
106
|
# The AWS region to connect to. The configured `:region` is
|
107
107
|
# used to determine the service `:endpoint`. When not passed,
|
108
|
-
# a default `:region` is
|
108
|
+
# a default `:region` is searched for in the following locations:
|
109
109
|
#
|
110
110
|
# * `Aws.config[:region]`
|
111
111
|
# * `ENV['AWS_REGION']`
|
@@ -161,7 +161,7 @@ module Aws::Neptune
|
|
161
161
|
# @option options [String] :endpoint
|
162
162
|
# The client endpoint is normally constructed from the `:region`
|
163
163
|
# option. You should only configure an `:endpoint` when connecting
|
164
|
-
# to test endpoints. This should be
|
164
|
+
# to test endpoints. This should be a valid HTTP(S) URI.
|
165
165
|
#
|
166
166
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
167
167
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -229,15 +229,19 @@ module Aws::Neptune
|
|
229
229
|
#
|
230
230
|
# @option options [String] :retry_mode ("legacy")
|
231
231
|
# Specifies which retry algorithm to use. Values are:
|
232
|
-
#
|
233
|
-
#
|
234
|
-
#
|
235
|
-
#
|
236
|
-
#
|
237
|
-
#
|
238
|
-
#
|
239
|
-
#
|
240
|
-
#
|
232
|
+
#
|
233
|
+
# * `legacy` - The pre-existing retry behavior. This is default value if
|
234
|
+
# no retry mode is provided.
|
235
|
+
#
|
236
|
+
# * `standard` - A standardized set of retry rules across the AWS SDKs.
|
237
|
+
# This includes support for retry quotas, which limit the number of
|
238
|
+
# unsuccessful retries a client can make.
|
239
|
+
#
|
240
|
+
# * `adaptive` - An experimental retry mode that includes all the
|
241
|
+
# functionality of `standard` mode along with automatic client side
|
242
|
+
# throttling. This is a provisional mode that may change behavior
|
243
|
+
# in the future.
|
244
|
+
#
|
241
245
|
#
|
242
246
|
# @option options [String] :secret_access_key
|
243
247
|
#
|
@@ -265,8 +269,7 @@ module Aws::Neptune
|
|
265
269
|
#
|
266
270
|
# @option options [Integer] :http_read_timeout (60) The default
|
267
271
|
# number of seconds to wait for response data. This value can
|
268
|
-
# safely be set
|
269
|
-
# per-request on the session yielded by {#session_for}.
|
272
|
+
# safely be set per-request on the session.
|
270
273
|
#
|
271
274
|
# @option options [Float] :http_idle_timeout (5) The number of
|
272
275
|
# seconds a connection is allowed to sit idle before it is
|
@@ -278,7 +281,7 @@ module Aws::Neptune
|
|
278
281
|
# request body. This option has no effect unless the request has
|
279
282
|
# "Expect" header set to "100-continue". Defaults to `nil` which
|
280
283
|
# disables this behaviour. This value can safely be set per
|
281
|
-
# request on the session
|
284
|
+
# request on the session.
|
282
285
|
#
|
283
286
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
284
287
|
# HTTP debug output will be sent to the `:logger`.
|
@@ -3019,6 +3022,8 @@ module Aws::Neptune
|
|
3019
3022
|
# * {Types::DBEngineVersionMessage#marker #marker} => String
|
3020
3023
|
# * {Types::DBEngineVersionMessage#db_engine_versions #db_engine_versions} => Array<Types::DBEngineVersion>
|
3021
3024
|
#
|
3025
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
3026
|
+
#
|
3022
3027
|
# @example Request syntax with placeholder values
|
3023
3028
|
#
|
3024
3029
|
# resp = client.describe_db_engine_versions({
|
@@ -3131,6 +3136,8 @@ module Aws::Neptune
|
|
3131
3136
|
# * {Types::DBInstanceMessage#marker #marker} => String
|
3132
3137
|
# * {Types::DBInstanceMessage#db_instances #db_instances} => Array<Types::DBInstance>
|
3133
3138
|
#
|
3139
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
3140
|
+
#
|
3134
3141
|
# @example Request syntax with placeholder values
|
3135
3142
|
#
|
3136
3143
|
# resp = client.describe_db_instances({
|
@@ -3248,6 +3255,12 @@ module Aws::Neptune
|
|
3248
3255
|
# resp.db_instances[0].enabled_cloudwatch_logs_exports[0] #=> String
|
3249
3256
|
# resp.db_instances[0].deletion_protection #=> Boolean
|
3250
3257
|
#
|
3258
|
+
#
|
3259
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
3260
|
+
#
|
3261
|
+
# * db_instance_available
|
3262
|
+
# * db_instance_deleted
|
3263
|
+
#
|
3251
3264
|
# @see http://docs.aws.amazon.com/goto/WebAPI/neptune-2014-10-31/DescribeDBInstances AWS API Documentation
|
3252
3265
|
#
|
3253
3266
|
# @overload describe_db_instances(params = {})
|
@@ -3295,6 +3308,8 @@ module Aws::Neptune
|
|
3295
3308
|
# * {Types::DBParameterGroupsMessage#marker #marker} => String
|
3296
3309
|
# * {Types::DBParameterGroupsMessage#db_parameter_groups #db_parameter_groups} => Array<Types::DBParameterGroup>
|
3297
3310
|
#
|
3311
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
3312
|
+
#
|
3298
3313
|
# @example Request syntax with placeholder values
|
3299
3314
|
#
|
3300
3315
|
# resp = client.describe_db_parameter_groups({
|
@@ -3370,6 +3385,8 @@ module Aws::Neptune
|
|
3370
3385
|
# * {Types::DBParameterGroupDetails#parameters #parameters} => Array<Types::Parameter>
|
3371
3386
|
# * {Types::DBParameterGroupDetails#marker #marker} => String
|
3372
3387
|
#
|
3388
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
3389
|
+
#
|
3373
3390
|
# @example Request syntax with placeholder values
|
3374
3391
|
#
|
3375
3392
|
# resp = client.describe_db_parameters({
|
@@ -3446,6 +3463,8 @@ module Aws::Neptune
|
|
3446
3463
|
# * {Types::DBSubnetGroupMessage#marker #marker} => String
|
3447
3464
|
# * {Types::DBSubnetGroupMessage#db_subnet_groups #db_subnet_groups} => Array<Types::DBSubnetGroup>
|
3448
3465
|
#
|
3466
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
3467
|
+
#
|
3449
3468
|
# @example Request syntax with placeholder values
|
3450
3469
|
#
|
3451
3470
|
# resp = client.describe_db_subnet_groups({
|
@@ -3581,6 +3600,8 @@ module Aws::Neptune
|
|
3581
3600
|
#
|
3582
3601
|
# * {Types::DescribeEngineDefaultParametersResult#engine_defaults #engine_defaults} => Types::EngineDefaults
|
3583
3602
|
#
|
3603
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
3604
|
+
#
|
3584
3605
|
# @example Request syntax with placeholder values
|
3585
3606
|
#
|
3586
3607
|
# resp = client.describe_engine_default_parameters({
|
@@ -3698,6 +3719,8 @@ module Aws::Neptune
|
|
3698
3719
|
# * {Types::EventSubscriptionsMessage#marker #marker} => String
|
3699
3720
|
# * {Types::EventSubscriptionsMessage#event_subscriptions_list #event_subscriptions_list} => Array<Types::EventSubscription>
|
3700
3721
|
#
|
3722
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
3723
|
+
#
|
3701
3724
|
# @example Request syntax with placeholder values
|
3702
3725
|
#
|
3703
3726
|
# resp = client.describe_event_subscriptions({
|
@@ -3824,6 +3847,8 @@ module Aws::Neptune
|
|
3824
3847
|
# * {Types::EventsMessage#marker #marker} => String
|
3825
3848
|
# * {Types::EventsMessage#events #events} => Array<Types::Event>
|
3826
3849
|
#
|
3850
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
3851
|
+
#
|
3827
3852
|
# @example Request syntax with placeholder values
|
3828
3853
|
#
|
3829
3854
|
# resp = client.describe_events({
|
@@ -3910,6 +3935,8 @@ module Aws::Neptune
|
|
3910
3935
|
# * {Types::OrderableDBInstanceOptionsMessage#orderable_db_instance_options #orderable_db_instance_options} => Array<Types::OrderableDBInstanceOption>
|
3911
3936
|
# * {Types::OrderableDBInstanceOptionsMessage#marker #marker} => String
|
3912
3937
|
#
|
3938
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
3939
|
+
#
|
3913
3940
|
# @example Request syntax with placeholder values
|
3914
3941
|
#
|
3915
3942
|
# resp = client.describe_orderable_db_instance_options({
|
@@ -6373,7 +6400,7 @@ module Aws::Neptune
|
|
6373
6400
|
params: params,
|
6374
6401
|
config: config)
|
6375
6402
|
context[:gem_name] = 'aws-sdk-neptune'
|
6376
|
-
context[:gem_version] = '1.
|
6403
|
+
context[:gem_version] = '1.23.0'
|
6377
6404
|
Seahorse::Client::Request.new(handlers, context)
|
6378
6405
|
end
|
6379
6406
|
|
@@ -6439,10 +6466,10 @@ module Aws::Neptune
|
|
6439
6466
|
# The following table lists the valid waiter names, the operations they call,
|
6440
6467
|
# and the default `:delay` and `:max_attempts` values.
|
6441
6468
|
#
|
6442
|
-
# | waiter_name | params
|
6443
|
-
# | --------------------- |
|
6444
|
-
# | db_instance_available | {#describe_db_instances} | 30 | 60 |
|
6445
|
-
# | db_instance_deleted | {#describe_db_instances} | 30 | 60 |
|
6469
|
+
# | waiter_name | params | :delay | :max_attempts |
|
6470
|
+
# | --------------------- | ------------------------------ | -------- | ------------- |
|
6471
|
+
# | db_instance_available | {Client#describe_db_instances} | 30 | 60 |
|
6472
|
+
# | db_instance_deleted | {Client#describe_db_instances} | 30 | 60 |
|
6446
6473
|
#
|
6447
6474
|
# @raise [Errors::FailureStateError] Raised when the waiter terminates
|
6448
6475
|
# because the waiter has entered a state that it will not transition
|
@@ -6,13 +6,7 @@
|
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
8
|
module Aws::Neptune
|
9
|
-
|
10
|
-
# To create a resource object:
|
11
|
-
# resource = Aws::Neptune::Resource.new(region: 'us-west-2')
|
12
|
-
# You can supply a client object with custom configuration that will be used for all resource operations.
|
13
|
-
# If you do not pass +:client+, a default client will be constructed.
|
14
|
-
# client = Aws::Neptune::Client.new(region: 'us-west-2')
|
15
|
-
# resource = Aws::Neptune::Resource.new(client: client)
|
9
|
+
|
16
10
|
class Resource
|
17
11
|
|
18
12
|
# @param options ({})
|
@@ -8,6 +8,68 @@
|
|
8
8
|
require 'aws-sdk-core/waiters'
|
9
9
|
|
10
10
|
module Aws::Neptune
|
11
|
+
# Waiters are utility methods that poll for a particular state to occur
|
12
|
+
# on a client. Waiters can fail after a number of attempts at a polling
|
13
|
+
# interval defined for the service client.
|
14
|
+
#
|
15
|
+
# For a list of operations that can be waited for and the
|
16
|
+
# client methods called for each operation, see the table below or the
|
17
|
+
# {Client#wait_until} field documentation for the {Client}.
|
18
|
+
#
|
19
|
+
# # Invoking a Waiter
|
20
|
+
# To invoke a waiter, call #wait_until on a {Client}. The first parameter
|
21
|
+
# is the waiter name, which is specific to the service client and indicates
|
22
|
+
# which operation is being waited for. The second parameter is a hash of
|
23
|
+
# parameters that are passed to the client method called by the waiter,
|
24
|
+
# which varies according to the waiter name.
|
25
|
+
#
|
26
|
+
# # Wait Failures
|
27
|
+
# To catch errors in a waiter, use WaiterFailed,
|
28
|
+
# as shown in the following example.
|
29
|
+
#
|
30
|
+
# rescue rescue Aws::Waiters::Errors::WaiterFailed => error
|
31
|
+
# puts "failed waiting for instance running: #{error.message}
|
32
|
+
# end
|
33
|
+
#
|
34
|
+
# # Configuring a Waiter
|
35
|
+
# Each waiter has a default polling interval and a maximum number of
|
36
|
+
# attempts it will make before returning control to your program.
|
37
|
+
# To set these values, use the `max_attempts` and `delay` parameters
|
38
|
+
# in your `#wait_until` call.
|
39
|
+
# The following example waits for up to 25 seconds, polling every five seconds.
|
40
|
+
#
|
41
|
+
# client.wait_until(...) do |w|
|
42
|
+
# w.max_attempts = 5
|
43
|
+
# w.delay = 5
|
44
|
+
# end
|
45
|
+
#
|
46
|
+
# To disable wait failures, set the value of either of these parameters
|
47
|
+
# to `nil`.
|
48
|
+
#
|
49
|
+
# # Extending a Waiter
|
50
|
+
# To modify the behavior of waiters, you can register callbacks that are
|
51
|
+
# triggered before each polling attempt and before waiting.
|
52
|
+
#
|
53
|
+
# The following example implements an exponential backoff in a waiter
|
54
|
+
# by doubling the amount of time to wait on every attempt.
|
55
|
+
#
|
56
|
+
# client.wait_until(...) do |w|
|
57
|
+
# w.interval = 0 # disable normal sleep
|
58
|
+
# w.before_wait do |n, resp|
|
59
|
+
# sleep(n ** 2)
|
60
|
+
# end
|
61
|
+
# end
|
62
|
+
#
|
63
|
+
# # Available Waiters
|
64
|
+
#
|
65
|
+
# The following table lists the valid waiter names, the operations they call,
|
66
|
+
# and the default `:delay` and `:max_attempts` values.
|
67
|
+
#
|
68
|
+
# | waiter_name | params | :delay | :max_attempts |
|
69
|
+
# | --------------------- | ------------------------------ | -------- | ------------- |
|
70
|
+
# | db_instance_available | {Client#describe_db_instances} | 30 | 60 |
|
71
|
+
# | db_instance_deleted | {Client#describe_db_instances} | 30 | 60 |
|
72
|
+
#
|
11
73
|
module Waiters
|
12
74
|
|
13
75
|
class DBInstanceAvailable
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-neptune
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.23.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
82
|
version: '0'
|
83
83
|
requirements: []
|
84
84
|
rubyforge_project:
|
85
|
-
rubygems_version: 2.
|
85
|
+
rubygems_version: 2.7.6.2
|
86
86
|
signing_key:
|
87
87
|
specification_version: 4
|
88
88
|
summary: AWS SDK for Ruby - Amazon Neptune
|