Class: Stax::Aws::Rds
Constant Summary
Constants inherited from Sdk
Class Method Summary collapse
Methods inherited from Sdk
Class Method Details
.client ⇒ Object
9 10 11 |
# File 'lib/stax/aws/rds.rb', line 9 def client @_client ||= ::Aws::RDS::Client.new end |
.clusters(opt) ⇒ Object
13 14 15 |
# File 'lib/stax/aws/rds.rb', line 13 def clusters(opt) client.describe_db_clusters(opt)&.db_clusters end |
.instances(opt) ⇒ Object
17 18 19 |
# File 'lib/stax/aws/rds.rb', line 17 def instances(opt) client.describe_db_instances(opt).map(&:db_instances).flatten end |
.subnet_groups(opt) ⇒ Object
21 22 23 |
# File 'lib/stax/aws/rds.rb', line 21 def subnet_groups(opt) client.describe_db_subnet_groups(opt).map(&:db_subnet_groups).flatten end |