Class: Aws::DatabaseMigrationService::Waiters::ReplicationTaskRunning
- Inherits:
-
Object
- Object
- Aws::DatabaseMigrationService::Waiters::ReplicationTaskRunning
- Defined in:
- lib/aws-sdk-databasemigrationservice/waiters.rb
Overview
Wait until DMS replication task is running.
Instance Attribute Summary collapse
- #waiter ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(options) ⇒ ReplicationTaskRunning
constructor
A new instance of ReplicationTaskRunning.
-
#wait(params = {}) ⇒ Types::DescribeReplicationTasksResponse
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ ReplicationTaskRunning
Returns a new instance of ReplicationTaskRunning.
404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 |
# File 'lib/aws-sdk-databasemigrationservice/waiters.rb', line 404 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 60, delay: 15, poller: Aws::Waiters::Poller.new( operation_name: :describe_replication_tasks, acceptors: [ { "argument" => "replication_tasks[].status", "expected" => "running", "matcher" => "pathAll", "state" => "success" }, { "argument" => "replication_tasks[].status", "expected" => "ready", "matcher" => "pathAny", "state" => "failure" }, { "argument" => "replication_tasks[].status", "expected" => "creating", "matcher" => "pathAny", "state" => "failure" }, { "argument" => "replication_tasks[].status", "expected" => "stopping", "matcher" => "pathAny", "state" => "failure" }, { "argument" => "replication_tasks[].status", "expected" => "stopped", "matcher" => "pathAny", "state" => "failure" }, { "argument" => "replication_tasks[].status", "expected" => "failed", "matcher" => "pathAny", "state" => "failure" }, { "argument" => "replication_tasks[].status", "expected" => "modifying", "matcher" => "pathAny", "state" => "failure" }, { "argument" => "replication_tasks[].status", "expected" => "testing", "matcher" => "pathAny", "state" => "failure" }, { "argument" => "replication_tasks[].status", "expected" => "deleting", "matcher" => "pathAny", "state" => "failure" } ] ) }.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.
478 479 480 |
# File 'lib/aws-sdk-databasemigrationservice/waiters.rb', line 478 def waiter @waiter end |
Instance Method Details
#wait(params = {}) ⇒ Types::DescribeReplicationTasksResponse
Returns a response object which responds to the following methods:
-
#marker => String
-
#replication_tasks => Array<Types::ReplicationTask>
473 474 475 |
# File 'lib/aws-sdk-databasemigrationservice/waiters.rb', line 473 def wait(params = {}) @waiter.wait(client: @client, params: params) end |