aws-sdk-dynamodb 1.0.0.rc1 → 1.0.0.rc2

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.
@@ -1,92 +1,91 @@
1
1
  # WARNING ABOUT GENERATED CODE
2
2
  #
3
- # This file is generated. See the contributing for info on making contributions:
3
+ # This file is generated. See the contributing guide for more information:
4
4
  # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
5
  #
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  require 'aws-sdk-core/waiters'
9
9
 
10
- module Aws
11
- module DynamoDB
12
- module Waiters
13
- class TableExists
10
+ module Aws::DynamoDB
11
+ module Waiters
14
12
 
15
- # @param [Hash] options
16
- # @option options [required, Client] :client
17
- # @option options [Integer] :max_attempts (25)
18
- # @option options [Integer] :delay (20)
19
- # @option options [Proc] :before_attempt
20
- # @option options [Proc] :before_wait
21
- def initialize(options)
22
- @client = options.fetch(:client)
23
- @waiter = Aws::Waiters::Waiter.new({
24
- max_attempts: 25,
25
- delay: 20,
26
- poller: Aws::Waiters::Poller.new(
27
- operation_name: :describe_table,
28
- acceptors: [
29
- {
30
- "expected" => "ACTIVE",
31
- "matcher" => "path",
32
- "state" => "success",
33
- "argument" => "table.table_status"
34
- },
35
- {
36
- "expected" => "ResourceNotFoundException",
37
- "matcher" => "error",
38
- "state" => "retry"
39
- }
40
- ]
41
- )
42
- }.merge(options))
43
- end
13
+ class TableExists
44
14
 
45
- # @option (see Client#describe_table)
46
- # @return (see Client#describe_table)
47
- def wait(params = {})
48
- @waiter.wait(client: @client, params: params)
49
- end
50
-
51
- # @api private
52
- attr_reader :waiter
15
+ # @param [Hash] options
16
+ # @option options [required, Client] :client
17
+ # @option options [Integer] :max_attempts (25)
18
+ # @option options [Integer] :delay (20)
19
+ # @option options [Proc] :before_attempt
20
+ # @option options [Proc] :before_wait
21
+ def initialize(options)
22
+ @client = options.fetch(:client)
23
+ @waiter = Aws::Waiters::Waiter.new({
24
+ max_attempts: 25,
25
+ delay: 20,
26
+ poller: Aws::Waiters::Poller.new(
27
+ operation_name: :describe_table,
28
+ acceptors: [
29
+ {
30
+ "expected" => "ACTIVE",
31
+ "matcher" => "path",
32
+ "state" => "success",
33
+ "argument" => "table.table_status"
34
+ },
35
+ {
36
+ "expected" => "ResourceNotFoundException",
37
+ "matcher" => "error",
38
+ "state" => "retry"
39
+ }
40
+ ]
41
+ )
42
+ }.merge(options))
43
+ end
53
44
 
45
+ # @option (see Client#describe_table)
46
+ # @return (see Client#describe_table)
47
+ def wait(params = {})
48
+ @waiter.wait(client: @client, params: params)
54
49
  end
55
50
 
56
- class TableNotExists
51
+ # @api private
52
+ attr_reader :waiter
57
53
 
58
- # @param [Hash] options
59
- # @option options [required, Client] :client
60
- # @option options [Integer] :max_attempts (25)
61
- # @option options [Integer] :delay (20)
62
- # @option options [Proc] :before_attempt
63
- # @option options [Proc] :before_wait
64
- def initialize(options)
65
- @client = options.fetch(:client)
66
- @waiter = Aws::Waiters::Waiter.new({
67
- max_attempts: 25,
68
- delay: 20,
69
- poller: Aws::Waiters::Poller.new(
70
- operation_name: :describe_table,
71
- acceptors: [{
72
- "expected" => "ResourceNotFoundException",
73
- "matcher" => "error",
74
- "state" => "success"
75
- }]
76
- )
77
- }.merge(options))
78
- end
54
+ end
79
55
 
80
- # @option (see Client#describe_table)
81
- # @return (see Client#describe_table)
82
- def wait(params = {})
83
- @waiter.wait(client: @client, params: params)
84
- end
56
+ class TableNotExists
85
57
 
86
- # @api private
87
- attr_reader :waiter
58
+ # @param [Hash] options
59
+ # @option options [required, Client] :client
60
+ # @option options [Integer] :max_attempts (25)
61
+ # @option options [Integer] :delay (20)
62
+ # @option options [Proc] :before_attempt
63
+ # @option options [Proc] :before_wait
64
+ def initialize(options)
65
+ @client = options.fetch(:client)
66
+ @waiter = Aws::Waiters::Waiter.new({
67
+ max_attempts: 25,
68
+ delay: 20,
69
+ poller: Aws::Waiters::Poller.new(
70
+ operation_name: :describe_table,
71
+ acceptors: [{
72
+ "expected" => "ResourceNotFoundException",
73
+ "matcher" => "error",
74
+ "state" => "success"
75
+ }]
76
+ )
77
+ }.merge(options))
78
+ end
88
79
 
80
+ # @option (see Client#describe_table)
81
+ # @return (see Client#describe_table)
82
+ def wait(params = {})
83
+ @waiter.wait(client: @client, params: params)
89
84
  end
85
+
86
+ # @api private
87
+ attr_reader :waiter
88
+
90
89
  end
91
90
  end
92
91
  end
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.0.0.rc1
4
+ version: 1.0.0.rc2
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: 2016-12-05 00:00:00.000000000 Z
11
+ date: 2017-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core