Class: Aws::DatabaseMigrationService::Waiters::ReplicationInstanceDeleted
- Inherits:
-
Object
- Object
- Aws::DatabaseMigrationService::Waiters::ReplicationInstanceDeleted
- Defined in:
- lib/aws-sdk-databasemigrationservice/waiters.rb
Overview
Wait until DMS replication instance is deleted.
Instance Attribute Summary collapse
- #waiter ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(options) ⇒ ReplicationInstanceDeleted
constructor
A new instance of ReplicationInstanceDeleted.
-
#wait(params = {}) ⇒ Types::DescribeReplicationInstancesResponse
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ ReplicationInstanceDeleted
Returns a new instance of ReplicationInstanceDeleted.
205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 |
# File 'lib/aws-sdk-databasemigrationservice/waiters.rb', line 205 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 60, delay: 15, poller: Aws::Waiters::Poller.new( operation_name: :describe_replication_instances, acceptors: [ { "argument" => "replication_instances[].replication_instance_status", "expected" => "available", "matcher" => "pathAny", "state" => "failure" }, { "expected" => "ResourceNotFoundFault", "matcher" => "error", "state" => "success" } ] ) }.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.
236 237 238 |
# File 'lib/aws-sdk-databasemigrationservice/waiters.rb', line 236 def waiter @waiter end |
Instance Method Details
#wait(params = {}) ⇒ Types::DescribeReplicationInstancesResponse
Returns a response object which responds to the following methods:
-
#marker => String
-
#replication_instances => Array<Types::ReplicationInstance>
231 232 233 |
# File 'lib/aws-sdk-databasemigrationservice/waiters.rb', line 231 def wait(params = {}) @waiter.wait(client: @client, params: params) end |