Class: Stax::Aws::Rds

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

Class Method Summary collapse

Methods inherited from Sdk

paginate

Class Method Details

.clientObject



7
8
9
# File 'lib/stax/aws/rds.rb', line 7

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

.clusters(opt) ⇒ Object



11
12
13
# File 'lib/stax/aws/rds.rb', line 11

def clusters(opt)
  client.describe_db_clusters(opt)&.db_clusters
end

.instances(opt) ⇒ Object



15
16
17
# File 'lib/stax/aws/rds.rb', line 15

def instances(opt)
  client.describe_db_instances(opt).map(&:db_instances).flatten
end

.subnet_groups(opt) ⇒ Object



19
20
21
# File 'lib/stax/aws/rds.rb', line 19

def subnet_groups(opt)
  client.describe_db_subnet_groups(opt).map(&:db_subnet_groups).flatten
end