Class: Aws::RDS::Waiters::DBInstanceDeleted
- Inherits:
-
Object
- Object
- Aws::RDS::Waiters::DBInstanceDeleted
- Defined in:
- lib/aws-sdk-rds/waiters.rb
Instance Attribute Summary collapse
- #waiter ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(options) ⇒ DBInstanceDeleted
constructor
A new instance of DBInstanceDeleted.
-
#wait(params = {}) ⇒ Types::DBInstanceMessage
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ DBInstanceDeleted
Returns a new instance of DBInstanceDeleted.
292 293 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 |
# File 'lib/aws-sdk-rds/waiters.rb', line 292 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 60, delay: 30, poller: Aws::Waiters::Poller.new( operation_name: :describe_db_instances, acceptors: [ { "expected" => true, "matcher" => "path", "state" => "success", "argument" => "length(db_instances) == `0`" }, { "expected" => "DBInstanceNotFound", "matcher" => "error", "state" => "success" }, { "expected" => "creating", "matcher" => "pathAny", "state" => "failure", "argument" => "db_instances[].db_instance_status" }, { "expected" => "modifying", "matcher" => "pathAny", "state" => "failure", "argument" => "db_instances[].db_instance_status" }, { "expected" => "rebooting", "matcher" => "pathAny", "state" => "failure", "argument" => "db_instances[].db_instance_status" }, { "expected" => "resetting-master-credentials", "matcher" => "pathAny", "state" => "failure", "argument" => "db_instances[].db_instance_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.
347 348 349 |
# File 'lib/aws-sdk-rds/waiters.rb', line 347 def waiter @waiter end |
Instance Method Details
#wait(params = {}) ⇒ Types::DBInstanceMessage
Returns a response object which responds to the following methods:
-
#marker => String
-
#db_instances => Array<Types::DBInstance>
342 343 344 |
# File 'lib/aws-sdk-rds/waiters.rb', line 342 def wait(params = {}) @waiter.wait(client: @client, params: params) end |