Getting Information about All Amazon RDS Snapshots - AWS SDK for Ruby

Getting Information about All Amazon RDS Snapshots

The following example lists the names (IDs) and status of all of your Amazon RDS (instance) snapshots in the us-west-2 region.

require 'aws-sdk-rds' # v2: require 'aws-sdk' rds = Aws::RDS::Resource.new(region: 'us-west-2') rds.db_snapshots.each do |s| puts "Name (ID): #{s.snapshot_id}" puts "Status: #{s.status}" end