class Itamae::Aws::Parameterstore::Store

Public Class Methods

new() click to toggle source
# File lib/itamae/aws/parameterstore/store.rb, line 9
def initialize
  @client = ::Aws::SSM::Client.new
end

Public Instance Methods

[](name) click to toggle source
# File lib/itamae/aws/parameterstore/store.rb, line 13
def [](name)
  get_parameter_value(name)
end
get_parameter_value(name) click to toggle source
# File lib/itamae/aws/parameterstore/store.rb, line 17
def get_parameter_value(name)
  @client.get_parameter({
    name: name.to_s,
    with_decryption: true,
  }).parameter.value
end