aws-sdk-elasticache 1.0.0.rc1
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 +7 -0
- data/lib/aws-sdk-elasticache.rb +48 -0
- data/lib/aws-sdk-elasticache/client.rb +3673 -0
- data/lib/aws-sdk-elasticache/client_api.rb +1471 -0
- data/lib/aws-sdk-elasticache/customizations.rb +7 -0
- data/lib/aws-sdk-elasticache/errors.rb +23 -0
- data/lib/aws-sdk-elasticache/resource.rb +25 -0
- data/lib/aws-sdk-elasticache/types.rb +4683 -0
- data/lib/aws-sdk-elasticache/waiters.rb +252 -0
- metadata +81 -0
@@ -0,0 +1,252 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing for info on making contributions:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
require 'aws-sdk-core/waiters'
|
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
|
73
|
+
|
74
|
+
end
|
75
|
+
|
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
|
153
|
+
|
154
|
+
end
|
155
|
+
|
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
|
198
|
+
|
199
|
+
end
|
200
|
+
|
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
|
248
|
+
|
249
|
+
end
|
250
|
+
end
|
251
|
+
end
|
252
|
+
end
|
metadata
ADDED
@@ -0,0 +1,81 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: aws-sdk-elasticache
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0.rc1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Amazon Web Services
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-12-05 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: aws-sdk-core
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 3.0.0.rc1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 3.0.0.rc1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: aws-sigv4
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.0'
|
41
|
+
description: Official AWS Ruby gem for Amazon ElastiCache. This gem is part of the
|
42
|
+
AWS SDK for Ruby.
|
43
|
+
email:
|
44
|
+
- trevrowe@amazon.com
|
45
|
+
executables: []
|
46
|
+
extensions: []
|
47
|
+
extra_rdoc_files: []
|
48
|
+
files:
|
49
|
+
- lib/aws-sdk-elasticache.rb
|
50
|
+
- lib/aws-sdk-elasticache/client.rb
|
51
|
+
- lib/aws-sdk-elasticache/client_api.rb
|
52
|
+
- lib/aws-sdk-elasticache/customizations.rb
|
53
|
+
- lib/aws-sdk-elasticache/errors.rb
|
54
|
+
- lib/aws-sdk-elasticache/resource.rb
|
55
|
+
- lib/aws-sdk-elasticache/types.rb
|
56
|
+
- lib/aws-sdk-elasticache/waiters.rb
|
57
|
+
homepage: http://github.com/aws/aws-sdk-ruby
|
58
|
+
licenses:
|
59
|
+
- Apache-2.0
|
60
|
+
metadata: {}
|
61
|
+
post_install_message:
|
62
|
+
rdoc_options: []
|
63
|
+
require_paths:
|
64
|
+
- lib
|
65
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 1.3.1
|
75
|
+
requirements: []
|
76
|
+
rubyforge_project:
|
77
|
+
rubygems_version: 2.5.1
|
78
|
+
signing_key:
|
79
|
+
specification_version: 4
|
80
|
+
summary: AWS SDK for Ruby - Amazon ElastiCache
|
81
|
+
test_files: []
|