Class: Stax::Aws::Dms
Constant Summary
Constants inherited from Sdk
Class Method Summary collapse
- .client ⇒ Object
- .connections(opt) ⇒ Object
- .endpoints(opt) ⇒ Object
- .instances(opt) ⇒ Object
- .start(opt) ⇒ Object
- .tasks(opt) ⇒ Object
- .test(opt) ⇒ Object
Methods inherited from Sdk
Class Method Details
.client ⇒ Object
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 |