Class: Aws::RDS::Waiters::DBClusterSnapshotAvailable
- Inherits:
-
Object
- Object
- Aws::RDS::Waiters::DBClusterSnapshotAvailable
- Defined in:
- lib/aws-sdk-rds/waiters.rb
Instance Attribute Summary collapse
- #waiter ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(options) ⇒ DBClusterSnapshotAvailable
constructor
A new instance of DBClusterSnapshotAvailable.
-
#wait(params = {}) ⇒ Types::DBClusterSnapshotMessage
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ DBClusterSnapshotAvailable
Returns a new instance of DBClusterSnapshotAvailable.
228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 |
# File 'lib/aws-sdk-rds/waiters.rb', line 228 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 60, delay: 30, poller: Aws::Waiters::Poller.new( operation_name: :describe_db_cluster_snapshots, acceptors: [ { "expected" => "available", "matcher" => "pathAll", "state" => "success", "argument" => "db_cluster_snapshots[].status" }, { "expected" => "deleted", "matcher" => "pathAny", "state" => "failure", "argument" => "db_cluster_snapshots[].status" }, { "expected" => "deleting", "matcher" => "pathAny", "state" => "failure", "argument" => "db_cluster_snapshots[].status" }, { "expected" => "failed", "matcher" => "pathAny", "state" => "failure", "argument" => "db_cluster_snapshots[].status" }, { "expected" => "incompatible-restore", "matcher" => "pathAny", "state" => "failure", "argument" => "db_cluster_snapshots[].status" }, { "expected" => "incompatible-parameters", "matcher" => "pathAny", "state" => "failure", "argument" => "db_cluster_snapshots[].status" } ] ) }.merge()) end |
Instance Attribute Details
#waiter ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
284 285 286 |
# File 'lib/aws-sdk-rds/waiters.rb', line 284 def waiter @waiter end |
Instance Method Details
#wait(params = {}) ⇒ Types::DBClusterSnapshotMessage
Returns a response object which responds to the following methods:
-
#marker => String
-
#db_cluster_snapshots => Array<Types::DBClusterSnapshot>
279 280 281 |
# File 'lib/aws-sdk-rds/waiters.rb', line 279 def wait(params = {}) @waiter.wait(client: @client, params: params) end |