aws-sdk-rds 1.146.0 → 1.149.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.
@@ -69,6 +69,8 @@ module Aws::RDS
69
69
  #
70
70
  # | waiter_name | params | :delay | :max_attempts |
71
71
  # | ----------------------------- | -------------------------------------- | -------- | ------------- |
72
+ # | db_cluster_available | {Client#describe_db_clusters} | 30 | 60 |
73
+ # | db_cluster_deleted | {Client#describe_db_clusters} | 30 | 60 |
72
74
  # | db_cluster_snapshot_available | {Client#describe_db_cluster_snapshots} | 30 | 60 |
73
75
  # | db_cluster_snapshot_deleted | {Client#describe_db_cluster_snapshots} | 30 | 60 |
74
76
  # | db_instance_available | {Client#describe_db_instances} | 30 | 60 |
@@ -78,6 +80,141 @@ module Aws::RDS
78
80
  #
79
81
  module Waiters
80
82
 
83
+ class DBClusterAvailable
84
+
85
+ # @param [Hash] options
86
+ # @option options [required, Client] :client
87
+ # @option options [Integer] :max_attempts (60)
88
+ # @option options [Integer] :delay (30)
89
+ # @option options [Proc] :before_attempt
90
+ # @option options [Proc] :before_wait
91
+ def initialize(options)
92
+ @client = options.fetch(:client)
93
+ @waiter = Aws::Waiters::Waiter.new({
94
+ max_attempts: 60,
95
+ delay: 30,
96
+ poller: Aws::Waiters::Poller.new(
97
+ operation_name: :describe_db_clusters,
98
+ acceptors: [
99
+ {
100
+ "expected" => "available",
101
+ "matcher" => "pathAll",
102
+ "state" => "success",
103
+ "argument" => "db_clusters[].status"
104
+ },
105
+ {
106
+ "expected" => "deleted",
107
+ "matcher" => "pathAny",
108
+ "state" => "failure",
109
+ "argument" => "db_clusters[].status"
110
+ },
111
+ {
112
+ "expected" => "deleting",
113
+ "matcher" => "pathAny",
114
+ "state" => "failure",
115
+ "argument" => "db_clusters[].status"
116
+ },
117
+ {
118
+ "expected" => "failed",
119
+ "matcher" => "pathAny",
120
+ "state" => "failure",
121
+ "argument" => "db_clusters[].status"
122
+ },
123
+ {
124
+ "expected" => "incompatible-restore",
125
+ "matcher" => "pathAny",
126
+ "state" => "failure",
127
+ "argument" => "db_clusters[].status"
128
+ },
129
+ {
130
+ "expected" => "incompatible-parameters",
131
+ "matcher" => "pathAny",
132
+ "state" => "failure",
133
+ "argument" => "db_clusters[].status"
134
+ }
135
+ ]
136
+ )
137
+ }.merge(options))
138
+ end
139
+
140
+ # @option (see Client#describe_db_clusters)
141
+ # @return (see Client#describe_db_clusters)
142
+ def wait(params = {})
143
+ @waiter.wait(client: @client, params: params)
144
+ end
145
+
146
+ # @api private
147
+ attr_reader :waiter
148
+
149
+ end
150
+
151
+ class DBClusterDeleted
152
+
153
+ # @param [Hash] options
154
+ # @option options [required, Client] :client
155
+ # @option options [Integer] :max_attempts (60)
156
+ # @option options [Integer] :delay (30)
157
+ # @option options [Proc] :before_attempt
158
+ # @option options [Proc] :before_wait
159
+ def initialize(options)
160
+ @client = options.fetch(:client)
161
+ @waiter = Aws::Waiters::Waiter.new({
162
+ max_attempts: 60,
163
+ delay: 30,
164
+ poller: Aws::Waiters::Poller.new(
165
+ operation_name: :describe_db_clusters,
166
+ acceptors: [
167
+ {
168
+ "expected" => true,
169
+ "matcher" => "path",
170
+ "state" => "success",
171
+ "argument" => "length(db_clusters) == `0`"
172
+ },
173
+ {
174
+ "expected" => "DBClusterNotFoundFault",
175
+ "matcher" => "error",
176
+ "state" => "success"
177
+ },
178
+ {
179
+ "expected" => "creating",
180
+ "matcher" => "pathAny",
181
+ "state" => "failure",
182
+ "argument" => "db_clusters[].status"
183
+ },
184
+ {
185
+ "expected" => "modifying",
186
+ "matcher" => "pathAny",
187
+ "state" => "failure",
188
+ "argument" => "db_clusters[].status"
189
+ },
190
+ {
191
+ "expected" => "rebooting",
192
+ "matcher" => "pathAny",
193
+ "state" => "failure",
194
+ "argument" => "db_clusters[].status"
195
+ },
196
+ {
197
+ "expected" => "resetting-master-credentials",
198
+ "matcher" => "pathAny",
199
+ "state" => "failure",
200
+ "argument" => "db_clusters[].status"
201
+ }
202
+ ]
203
+ )
204
+ }.merge(options))
205
+ end
206
+
207
+ # @option (see Client#describe_db_clusters)
208
+ # @return (see Client#describe_db_clusters)
209
+ def wait(params = {})
210
+ @waiter.wait(client: @client, params: params)
211
+ end
212
+
213
+ # @api private
214
+ attr_reader :waiter
215
+
216
+ end
217
+
81
218
  class DBClusterSnapshotAvailable
82
219
 
83
220
  # @param [Hash] options
data/lib/aws-sdk-rds.rb CHANGED
@@ -74,6 +74,6 @@ require_relative 'aws-sdk-rds/customizations'
74
74
  # @!group service
75
75
  module Aws::RDS
76
76
 
77
- GEM_VERSION = '1.146.0'
77
+ GEM_VERSION = '1.149.0'
78
78
 
79
79
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-rds
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.146.0
4
+ version: 1.149.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: 2022-05-06 00:00:00.000000000 Z
11
+ date: 2022-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sigv4