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

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,252 +1,251 @@
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 ElastiCache
12
- module Waiters
13
- class CacheClusterAvailable
14
-
15
- # @param [Hash] options
16
- # @option options [required, Client] :client
17
- # @option options [Integer] :max_attempts (40)
18
- # @option options [Integer] :delay (15)
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: 40,
25
- delay: 15,
26
- poller: Aws::Waiters::Poller.new(
27
- "description" => "Wait until ElastiCache cluster is available.",
28
- operation_name: :describe_cache_clusters,
29
- acceptors: [
30
- {
31
- "argument" => "cache_clusters[].cache_cluster_status",
32
- "expected" => "available",
33
- "matcher" => "pathAll",
34
- "state" => "success"
35
- },
36
- {
37
- "argument" => "cache_clusters[].cache_cluster_status",
38
- "expected" => "deleted",
39
- "matcher" => "pathAny",
40
- "state" => "failure"
41
- },
42
- {
43
- "argument" => "cache_clusters[].cache_cluster_status",
44
- "expected" => "deleting",
45
- "matcher" => "pathAny",
46
- "state" => "failure"
47
- },
48
- {
49
- "argument" => "cache_clusters[].cache_cluster_status",
50
- "expected" => "incompatible-network",
51
- "matcher" => "pathAny",
52
- "state" => "failure"
53
- },
54
- {
55
- "argument" => "cache_clusters[].cache_cluster_status",
56
- "expected" => "restore-failed",
57
- "matcher" => "pathAny",
58
- "state" => "failure"
59
- }
60
- ]
61
- )
62
- }.merge(options))
63
- end
64
-
65
- # @option (see Client#describe_cache_clusters)
66
- # @return (see Client#describe_cache_clusters)
67
- def wait(params = {})
68
- @waiter.wait(client: @client, params: params)
69
- end
70
-
71
- # @api private
72
- attr_reader :waiter
10
+ module Aws::ElastiCache
11
+ module Waiters
12
+
13
+ # Wait until ElastiCache cluster is available.
14
+ class CacheClusterAvailable
15
+
16
+ # @param [Hash] options
17
+ # @option options [required, Client] :client
18
+ # @option options [Integer] :max_attempts (40)
19
+ # @option options [Integer] :delay (15)
20
+ # @option options [Proc] :before_attempt
21
+ # @option options [Proc] :before_wait
22
+ def initialize(options)
23
+ @client = options.fetch(:client)
24
+ @waiter = Aws::Waiters::Waiter.new({
25
+ max_attempts: 40,
26
+ delay: 15,
27
+ poller: Aws::Waiters::Poller.new(
28
+ operation_name: :describe_cache_clusters,
29
+ acceptors: [
30
+ {
31
+ "argument" => "cache_clusters[].cache_cluster_status",
32
+ "expected" => "available",
33
+ "matcher" => "pathAll",
34
+ "state" => "success"
35
+ },
36
+ {
37
+ "argument" => "cache_clusters[].cache_cluster_status",
38
+ "expected" => "deleted",
39
+ "matcher" => "pathAny",
40
+ "state" => "failure"
41
+ },
42
+ {
43
+ "argument" => "cache_clusters[].cache_cluster_status",
44
+ "expected" => "deleting",
45
+ "matcher" => "pathAny",
46
+ "state" => "failure"
47
+ },
48
+ {
49
+ "argument" => "cache_clusters[].cache_cluster_status",
50
+ "expected" => "incompatible-network",
51
+ "matcher" => "pathAny",
52
+ "state" => "failure"
53
+ },
54
+ {
55
+ "argument" => "cache_clusters[].cache_cluster_status",
56
+ "expected" => "restore-failed",
57
+ "matcher" => "pathAny",
58
+ "state" => "failure"
59
+ }
60
+ ]
61
+ )
62
+ }.merge(options))
63
+ end
73
64
 
65
+ # @option (see Client#describe_cache_clusters)
66
+ # @return (see Client#describe_cache_clusters)
67
+ def wait(params = {})
68
+ @waiter.wait(client: @client, params: params)
74
69
  end
75
70
 
76
- class CacheClusterDeleted
77
-
78
- # @param [Hash] options
79
- # @option options [required, Client] :client
80
- # @option options [Integer] :max_attempts (40)
81
- # @option options [Integer] :delay (15)
82
- # @option options [Proc] :before_attempt
83
- # @option options [Proc] :before_wait
84
- def initialize(options)
85
- @client = options.fetch(:client)
86
- @waiter = Aws::Waiters::Waiter.new({
87
- max_attempts: 40,
88
- delay: 15,
89
- poller: Aws::Waiters::Poller.new(
90
- "description" => "Wait until ElastiCache cluster is deleted.",
91
- operation_name: :describe_cache_clusters,
92
- acceptors: [
93
- {
94
- "argument" => "cache_clusters[].cache_cluster_status",
95
- "expected" => "deleted",
96
- "matcher" => "pathAll",
97
- "state" => "success"
98
- },
99
- {
100
- "expected" => "CacheClusterNotFound",
101
- "matcher" => "error",
102
- "state" => "success"
103
- },
104
- {
105
- "argument" => "cache_clusters[].cache_cluster_status",
106
- "expected" => "available",
107
- "matcher" => "pathAny",
108
- "state" => "failure"
109
- },
110
- {
111
- "argument" => "cache_clusters[].cache_cluster_status",
112
- "expected" => "creating",
113
- "matcher" => "pathAny",
114
- "state" => "failure"
115
- },
116
- {
117
- "argument" => "cache_clusters[].cache_cluster_status",
118
- "expected" => "incompatible-network",
119
- "matcher" => "pathAny",
120
- "state" => "failure"
121
- },
122
- {
123
- "argument" => "cache_clusters[].cache_cluster_status",
124
- "expected" => "modifying",
125
- "matcher" => "pathAny",
126
- "state" => "failure"
127
- },
128
- {
129
- "argument" => "cache_clusters[].cache_cluster_status",
130
- "expected" => "restore-failed",
131
- "matcher" => "pathAny",
132
- "state" => "failure"
133
- },
134
- {
135
- "argument" => "cache_clusters[].cache_cluster_status",
136
- "expected" => "snapshotting",
137
- "matcher" => "pathAny",
138
- "state" => "failure"
139
- }
140
- ]
141
- )
142
- }.merge(options))
143
- end
144
-
145
- # @option (see Client#describe_cache_clusters)
146
- # @return (see Client#describe_cache_clusters)
147
- def wait(params = {})
148
- @waiter.wait(client: @client, params: params)
149
- end
150
-
151
- # @api private
152
- attr_reader :waiter
71
+ # @api private
72
+ attr_reader :waiter
73
+
74
+ end
75
+
76
+ # Wait until ElastiCache cluster is deleted.
77
+ class CacheClusterDeleted
78
+
79
+ # @param [Hash] options
80
+ # @option options [required, Client] :client
81
+ # @option options [Integer] :max_attempts (40)
82
+ # @option options [Integer] :delay (15)
83
+ # @option options [Proc] :before_attempt
84
+ # @option options [Proc] :before_wait
85
+ def initialize(options)
86
+ @client = options.fetch(:client)
87
+ @waiter = Aws::Waiters::Waiter.new({
88
+ max_attempts: 40,
89
+ delay: 15,
90
+ poller: Aws::Waiters::Poller.new(
91
+ operation_name: :describe_cache_clusters,
92
+ acceptors: [
93
+ {
94
+ "argument" => "cache_clusters[].cache_cluster_status",
95
+ "expected" => "deleted",
96
+ "matcher" => "pathAll",
97
+ "state" => "success"
98
+ },
99
+ {
100
+ "expected" => "CacheClusterNotFound",
101
+ "matcher" => "error",
102
+ "state" => "success"
103
+ },
104
+ {
105
+ "argument" => "cache_clusters[].cache_cluster_status",
106
+ "expected" => "available",
107
+ "matcher" => "pathAny",
108
+ "state" => "failure"
109
+ },
110
+ {
111
+ "argument" => "cache_clusters[].cache_cluster_status",
112
+ "expected" => "creating",
113
+ "matcher" => "pathAny",
114
+ "state" => "failure"
115
+ },
116
+ {
117
+ "argument" => "cache_clusters[].cache_cluster_status",
118
+ "expected" => "incompatible-network",
119
+ "matcher" => "pathAny",
120
+ "state" => "failure"
121
+ },
122
+ {
123
+ "argument" => "cache_clusters[].cache_cluster_status",
124
+ "expected" => "modifying",
125
+ "matcher" => "pathAny",
126
+ "state" => "failure"
127
+ },
128
+ {
129
+ "argument" => "cache_clusters[].cache_cluster_status",
130
+ "expected" => "restore-failed",
131
+ "matcher" => "pathAny",
132
+ "state" => "failure"
133
+ },
134
+ {
135
+ "argument" => "cache_clusters[].cache_cluster_status",
136
+ "expected" => "snapshotting",
137
+ "matcher" => "pathAny",
138
+ "state" => "failure"
139
+ }
140
+ ]
141
+ )
142
+ }.merge(options))
143
+ end
153
144
 
145
+ # @option (see Client#describe_cache_clusters)
146
+ # @return (see Client#describe_cache_clusters)
147
+ def wait(params = {})
148
+ @waiter.wait(client: @client, params: params)
154
149
  end
155
150
 
156
- class ReplicationGroupAvailable
157
-
158
- # @param [Hash] options
159
- # @option options [required, Client] :client
160
- # @option options [Integer] :max_attempts (40)
161
- # @option options [Integer] :delay (15)
162
- # @option options [Proc] :before_attempt
163
- # @option options [Proc] :before_wait
164
- def initialize(options)
165
- @client = options.fetch(:client)
166
- @waiter = Aws::Waiters::Waiter.new({
167
- max_attempts: 40,
168
- delay: 15,
169
- poller: Aws::Waiters::Poller.new(
170
- "description" => "Wait until ElastiCache replication group is available.",
171
- operation_name: :describe_replication_groups,
172
- acceptors: [
173
- {
174
- "argument" => "replication_groups[].status",
175
- "expected" => "available",
176
- "matcher" => "pathAll",
177
- "state" => "success"
178
- },
179
- {
180
- "argument" => "replication_groups[].status",
181
- "expected" => "deleted",
182
- "matcher" => "pathAny",
183
- "state" => "failure"
184
- }
185
- ]
186
- )
187
- }.merge(options))
188
- end
189
-
190
- # @option (see Client#describe_replication_groups)
191
- # @return (see Client#describe_replication_groups)
192
- def wait(params = {})
193
- @waiter.wait(client: @client, params: params)
194
- end
195
-
196
- # @api private
197
- attr_reader :waiter
151
+ # @api private
152
+ attr_reader :waiter
153
+
154
+ end
198
155
 
156
+ # Wait until ElastiCache replication group is available.
157
+ class ReplicationGroupAvailable
158
+
159
+ # @param [Hash] options
160
+ # @option options [required, Client] :client
161
+ # @option options [Integer] :max_attempts (40)
162
+ # @option options [Integer] :delay (15)
163
+ # @option options [Proc] :before_attempt
164
+ # @option options [Proc] :before_wait
165
+ def initialize(options)
166
+ @client = options.fetch(:client)
167
+ @waiter = Aws::Waiters::Waiter.new({
168
+ max_attempts: 40,
169
+ delay: 15,
170
+ poller: Aws::Waiters::Poller.new(
171
+ operation_name: :describe_replication_groups,
172
+ acceptors: [
173
+ {
174
+ "argument" => "replication_groups[].status",
175
+ "expected" => "available",
176
+ "matcher" => "pathAll",
177
+ "state" => "success"
178
+ },
179
+ {
180
+ "argument" => "replication_groups[].status",
181
+ "expected" => "deleted",
182
+ "matcher" => "pathAny",
183
+ "state" => "failure"
184
+ }
185
+ ]
186
+ )
187
+ }.merge(options))
199
188
  end
200
189
 
201
- class ReplicationGroupDeleted
202
-
203
- # @param [Hash] options
204
- # @option options [required, Client] :client
205
- # @option options [Integer] :max_attempts (40)
206
- # @option options [Integer] :delay (15)
207
- # @option options [Proc] :before_attempt
208
- # @option options [Proc] :before_wait
209
- def initialize(options)
210
- @client = options.fetch(:client)
211
- @waiter = Aws::Waiters::Waiter.new({
212
- max_attempts: 40,
213
- delay: 15,
214
- poller: Aws::Waiters::Poller.new(
215
- "description" => "Wait until ElastiCache replication group is deleted.",
216
- operation_name: :describe_replication_groups,
217
- acceptors: [
218
- {
219
- "argument" => "replication_groups[].status",
220
- "expected" => "deleted",
221
- "matcher" => "pathAll",
222
- "state" => "success"
223
- },
224
- {
225
- "argument" => "replication_groups[].status",
226
- "expected" => "available",
227
- "matcher" => "pathAny",
228
- "state" => "failure"
229
- },
230
- {
231
- "expected" => "ReplicationGroupNotFoundFault",
232
- "matcher" => "error",
233
- "state" => "success"
234
- }
235
- ]
236
- )
237
- }.merge(options))
238
- end
239
-
240
- # @option (see Client#describe_replication_groups)
241
- # @return (see Client#describe_replication_groups)
242
- def wait(params = {})
243
- @waiter.wait(client: @client, params: params)
244
- end
245
-
246
- # @api private
247
- attr_reader :waiter
190
+ # @option (see Client#describe_replication_groups)
191
+ # @return (see Client#describe_replication_groups)
192
+ def wait(params = {})
193
+ @waiter.wait(client: @client, params: params)
194
+ end
248
195
 
196
+ # @api private
197
+ attr_reader :waiter
198
+
199
+ end
200
+
201
+ # Wait until ElastiCache replication group is deleted.
202
+ class ReplicationGroupDeleted
203
+
204
+ # @param [Hash] options
205
+ # @option options [required, Client] :client
206
+ # @option options [Integer] :max_attempts (40)
207
+ # @option options [Integer] :delay (15)
208
+ # @option options [Proc] :before_attempt
209
+ # @option options [Proc] :before_wait
210
+ def initialize(options)
211
+ @client = options.fetch(:client)
212
+ @waiter = Aws::Waiters::Waiter.new({
213
+ max_attempts: 40,
214
+ delay: 15,
215
+ poller: Aws::Waiters::Poller.new(
216
+ operation_name: :describe_replication_groups,
217
+ acceptors: [
218
+ {
219
+ "argument" => "replication_groups[].status",
220
+ "expected" => "deleted",
221
+ "matcher" => "pathAll",
222
+ "state" => "success"
223
+ },
224
+ {
225
+ "argument" => "replication_groups[].status",
226
+ "expected" => "available",
227
+ "matcher" => "pathAny",
228
+ "state" => "failure"
229
+ },
230
+ {
231
+ "expected" => "ReplicationGroupNotFoundFault",
232
+ "matcher" => "error",
233
+ "state" => "success"
234
+ }
235
+ ]
236
+ )
237
+ }.merge(options))
249
238
  end
239
+
240
+ # @option (see Client#describe_replication_groups)
241
+ # @return (see Client#describe_replication_groups)
242
+ def wait(params = {})
243
+ @waiter.wait(client: @client, params: params)
244
+ end
245
+
246
+ # @api private
247
+ attr_reader :waiter
248
+
250
249
  end
251
250
  end
252
251
  end