class Stax::Aws::SecretsManager

Public Class Methods

client() click to toggle source
# File lib/stax/aws/secrets_manager.rb, line 9
def client
  @_client ||= ::Aws::SecretsManager::Client.new
end
get(id, version = :AWSCURRENT) click to toggle source
# File lib/stax/aws/secrets_manager.rb, line 17
def get(id, version = :AWSCURRENT)
  client.get_secret_value(secret_id: id, version_stage: version)
end
list() click to toggle source
# File lib/stax/aws/secrets_manager.rb, line 13
def list
  client.list_secrets.map(&:secret_list).flatten
end