Class: Stax::Aws::Rds

Inherits:
Sdk
  • Object
show all
Defined in:
lib/stax/aws/rds.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/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