Class: Aws::RDS::Waiters::DBClusterSnapshotDeleted
- Inherits:
-
Object
- Object
- Aws::RDS::Waiters::DBClusterSnapshotDeleted
- Defined in:
- lib/aws-sdk-rds/waiters.rb
Instance Attribute Summary collapse
- #waiter ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(options) ⇒ DBClusterSnapshotDeleted
constructor
A new instance of DBClusterSnapshotDeleted.
-
#wait(params = {}) ⇒ Types::DBClusterSnapshotMessage
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ DBClusterSnapshotDeleted
Returns a new instance of DBClusterSnapshotDeleted.
294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 |
# File 'lib/aws-sdk-rds/waiters.rb', line 294 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" => true, "matcher" => "path", "state" => "success", "argument" => "length(db_cluster_snapshots) == `0`" }, { "expected" => "DBClusterSnapshotNotFoundFault", "matcher" => "error", "state" => "success" }, { "expected" => "creating", "matcher" => "pathAny", "state" => "failure", "argument" => "db_cluster_snapshots[].status" }, { "expected" => "modifying", "matcher" => "pathAny", "state" => "failure", "argument" => "db_cluster_snapshots[].status" }, { "expected" => "rebooting", "matcher" => "pathAny", "state" => "failure", "argument" => "db_cluster_snapshots[].status" }, { "expected" => "resetting-master-credentials", "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.
349 350 351 |
# File 'lib/aws-sdk-rds/waiters.rb', line 349 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>
344 345 346 |
# File 'lib/aws-sdk-rds/waiters.rb', line 344 def wait(params = {}) @waiter.wait(client: @client, params: params) end |