Sha256: 3b594dcd9ec213671dbef9e0c6648421b201162ce6d488914d3d2e8101d060d5

Contents?: true

Size: 531 Bytes

Versions: 6

Compression:

Stored size: 531 Bytes

Contents

module OpenStax::Aws
  class RdsInstance

    attr_reader :raw

    delegate_missing_to :@raw

    def self.physical_resource_id_attribute
      :db_instance_identifier
    end

    def initialize(db_instance_identifier:, region:)
      @raw = Aws::RDS::DBInstance.new(
        db_instance_identifier,
        client: Aws::RDS::Client.new(region: region)
      )
    end

    def set_master_password(password:)
      raw.modify({
        apply_immediately: true,
        master_user_password: password
      })

    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
openstax_aws-2.1.0 lib/openstax/aws/rds_instance.rb
openstax_aws-2.0.1 lib/openstax/aws/rds_instance.rb
openstax_aws-2.0.0 lib/openstax/aws/rds_instance.rb
openstax_aws-1.6.1 lib/openstax/aws/rds_instance.rb
openstax_aws-1.6.0 lib/openstax/aws/rds_instance.rb
openstax_aws-1.5.0 lib/openstax/aws/rds_instance.rb