aws-sdk-dynamodb 1.45.0 → 1.46.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
- SHA1:
3
- metadata.gz: e7ab1b7eb6c5743bf574f6f54f95c9efdf042da4
4
- data.tar.gz: 0e101caf9a248990e4ddfa52c3ca8b073847ff9d
2
+ SHA256:
3
+ metadata.gz: 17c21a56b3ec35228f0dc9e382315a37ae22ccbb464b42ef28af6631c8f98778
4
+ data.tar.gz: f1a4dcd833c1132737c26a12dc963481d1dd4fcdaae308bae634cd46820c6ae7
5
5
  SHA512:
6
- metadata.gz: bbcfaf39a1e03666bde252e223f55f831c99c713f9b2ea3d201e3097a1e9c84f77e1e6f20df3e86c463d6731fff669881aa278f2f54988a8d2e6d5393c43682a
7
- data.tar.gz: a384bbc0749ed6381e6893c3392b4ab6eb79726a992c8b85e46ce7ea232385d960cddd59641df1c2178b8b7c270cb76da4def58d5464f333f97ce42ffb2b0301
6
+ metadata.gz: b0fa58c02f5ed2d24159428eb54c6f675f38d1567c7910a982037a71ca4bab8b102ddf8b1a0fc50a073c30f6837f488de02e0794451f22d6ffc9fc2173ce703b
7
+ data.tar.gz: 4509fb85376f52e5c6c5e8c56ef37e8da13745bb0305ef155fbd5fd3c7d571891793c9701c248899014cc6514d313696eb143fa91084f1d83751639ac09c3c67
@@ -47,6 +47,6 @@ require_relative 'aws-sdk-dynamodb/customizations'
47
47
  # @service
48
48
  module Aws::DynamoDB
49
49
 
50
- GEM_VERSION = '1.45.0'
50
+ GEM_VERSION = '1.46.0'
51
51
 
52
52
  end
@@ -48,8 +48,8 @@ module Aws
48
48
  when true, false then { bool: obj }
49
49
  when nil then { null: true }
50
50
  else
51
- msg = "unsupported type, expected Hash, Array, Set, String, Numeric, "
52
- msg << "IO, true, false, or nil, got #{obj.class.name}"
51
+ msg = 'unsupported type, expected Hash, Array, Set, String, Numeric, '\
52
+ "IO, true, false, or nil, got #{obj.class.name}"
53
53
  raise ArgumentError, msg
54
54
  end
55
55
  end
@@ -64,7 +64,7 @@ module Aws
64
64
  when Numeric then { ns: set.map(&:to_s) }
65
65
  when StringIO, IO then { bs: set.to_a }
66
66
  else
67
- msg = "set types only support String, Numeric, or IO objects"
67
+ msg = 'set types only support String, Numeric, or IO objects'
68
68
  raise ArgumentError, msg
69
69
  end
70
70
  end
@@ -35,11 +35,11 @@ Aws::Plugins::GlobalConfiguration.add_identifier(:dynamodb)
35
35
  module Aws::DynamoDB
36
36
  # An API client for DynamoDB. To construct a client, you need to configure a `:region` and `:credentials`.
37
37
  #
38
- # client = Aws::DynamoDB::Client.new(
39
- # region: region_name,
40
- # credentials: credentials,
41
- # # ...
42
- # )
38
+ # client = Aws::DynamoDB::Client.new(
39
+ # region: region_name,
40
+ # credentials: credentials,
41
+ # # ...
42
+ # )
43
43
  #
44
44
  # For details on configuring region and credentials see
45
45
  # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
@@ -111,7 +111,7 @@ module Aws::DynamoDB
111
111
  # @option options [required, String] :region
112
112
  # The AWS region to connect to. The configured `:region` is
113
113
  # used to determine the service `:endpoint`. When not passed,
114
- # a default `:region` is search for in the following locations:
114
+ # a default `:region` is searched for in the following locations:
115
115
  #
116
116
  # * `Aws.config[:region]`
117
117
  # * `ENV['AWS_REGION']`
@@ -173,7 +173,7 @@ module Aws::DynamoDB
173
173
  # @option options [String] :endpoint
174
174
  # The client endpoint is normally constructed from the `:region`
175
175
  # option. You should only configure an `:endpoint` when connecting
176
- # to test endpoints. This should be avalid HTTP(S) URI.
176
+ # to test endpoints. This should be a valid HTTP(S) URI.
177
177
  #
178
178
  # @option options [Integer] :endpoint_cache_max_entries (1000)
179
179
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -240,15 +240,19 @@ module Aws::DynamoDB
240
240
  #
241
241
  # @option options [String] :retry_mode ("legacy")
242
242
  # Specifies which retry algorithm to use. Values are:
243
- # * `legacy` - The pre-existing retry behavior. This is default value if
244
- # no retry mode is provided.
245
- # * `standard` - A standardized set of retry rules across the AWS SDKs.
246
- # This includes support for retry quotas, which limit the number of
247
- # unsuccessful retries a client can make.
248
- # * `adaptive` - An experimental retry mode that includes all the
249
- # functionality of `standard` mode along with automatic client side
250
- # throttling. This is a provisional mode that may change behavior
251
- # in the future.
243
+ #
244
+ # * `legacy` - The pre-existing retry behavior. This is default value if
245
+ # no retry mode is provided.
246
+ #
247
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
248
+ # This includes support for retry quotas, which limit the number of
249
+ # unsuccessful retries a client can make.
250
+ #
251
+ # * `adaptive` - An experimental retry mode that includes all the
252
+ # functionality of `standard` mode along with automatic client side
253
+ # throttling. This is a provisional mode that may change behavior
254
+ # in the future.
255
+ #
252
256
  #
253
257
  # @option options [String] :secret_access_key
254
258
  #
@@ -294,8 +298,7 @@ module Aws::DynamoDB
294
298
  #
295
299
  # @option options [Integer] :http_read_timeout (60) The default
296
300
  # number of seconds to wait for response data. This value can
297
- # safely be set
298
- # per-request on the session yielded by {#session_for}.
301
+ # safely be set per-request on the session.
299
302
  #
300
303
  # @option options [Float] :http_idle_timeout (5) The number of
301
304
  # seconds a connection is allowed to sit idle before it is
@@ -307,7 +310,7 @@ module Aws::DynamoDB
307
310
  # request body. This option has no effect unless the request has
308
311
  # "Expect" header set to "100-continue". Defaults to `nil` which
309
312
  # disables this behaviour. This value can safely be set per
310
- # request on the session yielded by {#session_for}.
313
+ # request on the session.
311
314
  #
312
315
  # @option options [Boolean] :http_wire_trace (false) When `true`,
313
316
  # HTTP debug output will be sent to the `:logger`.
@@ -507,6 +510,8 @@ module Aws::DynamoDB
507
510
  # * {Types::BatchGetItemOutput#unprocessed_keys #unprocessed_keys} => Hash&lt;String,Types::KeysAndAttributes&gt;
508
511
  # * {Types::BatchGetItemOutput#consumed_capacity #consumed_capacity} => Array&lt;Types::ConsumedCapacity&gt;
509
512
  #
513
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
514
+ #
510
515
  #
511
516
  # @example Example: To retrieve multiple items from a table
512
517
  #
@@ -2552,6 +2557,12 @@ module Aws::DynamoDB
2552
2557
  # resp.table.archival_summary.archival_reason #=> String
2553
2558
  # resp.table.archival_summary.archival_backup_arn #=> String
2554
2559
  #
2560
+ #
2561
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
2562
+ #
2563
+ # * table_exists
2564
+ # * table_not_exists
2565
+ #
2555
2566
  # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeTable AWS API Documentation
2556
2567
  #
2557
2568
  # @overload describe_table(params = {})
@@ -2971,6 +2982,8 @@ module Aws::DynamoDB
2971
2982
  # * {Types::ListContributorInsightsOutput#contributor_insights_summaries #contributor_insights_summaries} => Array&lt;Types::ContributorInsightsSummary&gt;
2972
2983
  # * {Types::ListContributorInsightsOutput#next_token #next_token} => String
2973
2984
  #
2985
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2986
+ #
2974
2987
  # @example Request syntax with placeholder values
2975
2988
  #
2976
2989
  # resp = client.list_contributor_insights({
@@ -3070,6 +3083,8 @@ module Aws::DynamoDB
3070
3083
  # * {Types::ListTablesOutput#table_names #table_names} => Array&lt;String&gt;
3071
3084
  # * {Types::ListTablesOutput#last_evaluated_table_name #last_evaluated_table_name} => String
3072
3085
  #
3086
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3087
+ #
3073
3088
  #
3074
3089
  # @example Example: To list tables
3075
3090
  #
@@ -3926,6 +3941,8 @@ module Aws::DynamoDB
3926
3941
  # * {Types::QueryOutput#last_evaluated_key #last_evaluated_key} => Hash&lt;String,Types::AttributeValue&gt;
3927
3942
  # * {Types::QueryOutput#consumed_capacity #consumed_capacity} => Types::ConsumedCapacity
3928
3943
  #
3944
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3945
+ #
3929
3946
  #
3930
3947
  # @example Example: To query an item
3931
3948
  #
@@ -4773,6 +4790,8 @@ module Aws::DynamoDB
4773
4790
  # * {Types::ScanOutput#last_evaluated_key #last_evaluated_key} => Hash&lt;String,Types::AttributeValue&gt;
4774
4791
  # * {Types::ScanOutput#consumed_capacity #consumed_capacity} => Types::ConsumedCapacity
4775
4792
  #
4793
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4794
+ #
4776
4795
  #
4777
4796
  # @example Example: To scan a table
4778
4797
  #
@@ -6611,7 +6630,7 @@ module Aws::DynamoDB
6611
6630
  params: params,
6612
6631
  config: config)
6613
6632
  context[:gem_name] = 'aws-sdk-dynamodb'
6614
- context[:gem_version] = '1.45.0'
6633
+ context[:gem_version] = '1.46.0'
6615
6634
  Seahorse::Client::Request.new(handlers, context)
6616
6635
  end
6617
6636
 
@@ -6677,10 +6696,10 @@ module Aws::DynamoDB
6677
6696
  # The following table lists the valid waiter names, the operations they call,
6678
6697
  # and the default `:delay` and `:max_attempts` values.
6679
6698
  #
6680
- # | waiter_name | params | :delay | :max_attempts |
6681
- # | ---------------- | ----------------- | -------- | ------------- |
6682
- # | table_exists | {#describe_table} | 20 | 25 |
6683
- # | table_not_exists | {#describe_table} | 20 | 25 |
6699
+ # | waiter_name | params | :delay | :max_attempts |
6700
+ # | ---------------- | ----------------------- | -------- | ------------- |
6701
+ # | table_exists | {Client#describe_table} | 20 | 25 |
6702
+ # | table_not_exists | {Client#describe_table} | 20 | 25 |
6684
6703
  #
6685
6704
  # @raise [Errors::FailureStateError] Raised when the waiter terminates
6686
6705
  # because the waiter has entered a state that it will not transition
@@ -6,13 +6,18 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::DynamoDB
9
+
9
10
  # This class provides a resource oriented interface for DynamoDB.
10
11
  # To create a resource object:
12
+ #
11
13
  # resource = Aws::DynamoDB::Resource.new(region: 'us-west-2')
14
+ #
12
15
  # 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.
16
+ # If you do not pass `:client`, a default client will be constructed.
17
+ #
14
18
  # client = Aws::DynamoDB::Client.new(region: 'us-west-2')
15
19
  # resource = Aws::DynamoDB::Resource.new(client: client)
20
+ #
16
21
  class Resource
17
22
 
18
23
  # @param options ({})
@@ -394,7 +394,8 @@ module Aws::DynamoDB
394
394
  # Waiter polls an API operation until a resource enters a desired
395
395
  # state.
396
396
  #
397
- # @note The waiting operation is performed on a copy. The original resource remains unchanged
397
+ # @note The waiting operation is performed on a copy. The original resource
398
+ # remains unchanged.
398
399
  #
399
400
  # ## Basic Usage
400
401
  #
@@ -407,13 +408,15 @@ module Aws::DynamoDB
407
408
  #
408
409
  # ## Example
409
410
  #
410
- # instance.wait_until(max_attempts:10, delay:5) {|instance| instance.state.name == 'running' }
411
+ # instance.wait_until(max_attempts:10, delay:5) do |instance|
412
+ # instance.state.name == 'running'
413
+ # end
411
414
  #
412
415
  # ## Configuration
413
416
  #
414
417
  # You can configure the maximum number of polling attempts, and the
415
- # delay (in seconds) between each polling attempt. The waiting condition is set
416
- # by passing a block to {#wait_until}:
418
+ # delay (in seconds) between each polling attempt. The waiting condition is
419
+ # set by passing a block to {#wait_until}:
417
420
  #
418
421
  # # poll for ~25 seconds
419
422
  # resource.wait_until(max_attempts:5,delay:5) {|resource|...}
@@ -444,17 +447,16 @@ module Aws::DynamoDB
444
447
  # # resource did not enter the desired state in time
445
448
  # end
446
449
  #
450
+ # @yieldparam [Resource] resource to be used in the waiting condition.
447
451
  #
448
- # @yield param [Resource] resource to be used in the waiting condition
449
- #
450
- # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter terminates
451
- # because the waiter has entered a state that it will not transition
452
- # out of, preventing success.
452
+ # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
453
+ # terminates because the waiter has entered a state that it will not
454
+ # transition out of, preventing success.
453
455
  #
454
456
  # yet successful.
455
457
  #
456
- # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is encountered
457
- # while polling for a resource that is not expected.
458
+ # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
459
+ # encountered while polling for a resource that is not expected.
458
460
  #
459
461
  # @raise [NotImplementedError] Raised when the resource does not
460
462
  #
@@ -8,6 +8,68 @@
8
8
  require 'aws-sdk-core/waiters'
9
9
 
10
10
  module Aws::DynamoDB
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
+ # | table_exists | {Client#describe_table} | 20 | 25 |
71
+ # | table_not_exists | {Client#describe_table} | 20 | 25 |
72
+ #
11
73
  module Waiters
12
74
 
13
75
  class TableExists
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-dynamodb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.45.0
4
+ version: 1.46.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-03-09 00:00:00.000000000 Z
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
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
88
  version: '0'
89
89
  requirements: []
90
90
  rubyforge_project:
91
- rubygems_version: 2.5.2.3
91
+ rubygems_version: 2.7.6.2
92
92
  signing_key:
93
93
  specification_version: 4
94
94
  summary: AWS SDK for Ruby - DynamoDB