Sha256: 0a6c02d774d155d7b0a30ebe33f37ca017b01fbcbb7ac94845cefa4a94132427

Contents?: true

Size: 523 Bytes

Versions: 3

Compression:

Stored size: 523 Bytes

Contents

require 'forwardable'
require 'aws-sdk-rds'

class RdsRotateDbSnapshots
  class RdsClient
    extend Forwardable

    def_delegators :@client, :describe_db_snapshots, :create_db_snapshot, :delete_db_snapshot

    def initialize(options)
      Aws.config.update(
        access_key_id: options[:aws_access_key],
        secret_access_key: options[:aws_secret_access_key],
        region: options[:aws_region],
        session_token: options[:aws_session_token]
      )
      @client = Aws::RDS::Client.new
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rds-rotate-db-snapshots-0.5.2 lib/rds_rotate_db_snapshots/rds_client.rb
rds-rotate-db-snapshots-0.5.1 lib/rds_rotate_db_snapshots/rds_client.rb
rds-rotate-db-snapshots-0.5.0 lib/rds_rotate_db_snapshots/rds_client.rb