Class: Stax::Aws::Dms

Inherits:
Sdk
  • Object
show all
Defined in:
lib/stax/aws/dms.rb

Constant Summary

Constants inherited from Sdk

Sdk::RETRY_LIMIT

Class Method Summary collapse

Methods inherited from Sdk

paginate

Class Method Details

.clientObject



9
10
11
# File 'lib/stax/aws/dms.rb', line 9

def client
  @_client ||= ::Aws::DatabaseMigrationService::Client.new
end

.connections(opt) ⇒ Object



29
30
31
# File 'lib/stax/aws/dms.rb', line 29

def connections(opt)
  client.describe_connections(opt).map(&:connections).flatten
end

.endpoints(opt) ⇒ Object



13
14
15
# File 'lib/stax/aws/dms.rb', line 13

def endpoints(opt)
  client.describe_endpoints(opt).map(&:endpoints).flatten
end

.instances(opt) ⇒ Object



17
18
19
# File 'lib/stax/aws/dms.rb', line 17

def instances(opt)
  client.describe_replication_instances(opt).map(&:replication_instances).flatten
end

.start(opt) ⇒ Object



33
34
35
# File 'lib/stax/aws/dms.rb', line 33

def start(opt)
  client.start_replication_task(opt).replication_task
end

.tasks(opt) ⇒ Object



21
22
23
# File 'lib/stax/aws/dms.rb', line 21

def tasks(opt)
  client.describe_replication_tasks(opt).map(&:replication_tasks).flatten
end

.test(opt) ⇒ Object



25
26
27
# File 'lib/stax/aws/dms.rb', line 25

def test(opt)
  client.test_connection(opt).connection
end