class Stax::Aws::Ssm
Public Class Methods
client()
click to toggle source
# File lib/stax/aws/ssm.rb, line 9 def client @_client ||= ::Aws::SSM::Client.new end
commands()
click to toggle source
# File lib/stax/aws/ssm.rb, line 21 def commands client.list_commands.commands end
delete(opt)
click to toggle source
# File lib/stax/aws/ssm.rb, line 43 def delete(opt) client.delete_parameters(opt).deleted_parameters end
get(opt)
click to toggle source
# File lib/stax/aws/ssm.rb, line 35 def get(opt) client.get_parameters(opt).parameters end
instances(stack)
click to toggle source
# File lib/stax/aws/ssm.rb, line 13 def instances(stack) client.describe_instance_information(filters: [{key: 'tag:aws:cloudformation:stack-name', values: [stack]}]).instance_information_list end
invocation(id)
click to toggle source
# File lib/stax/aws/ssm.rb, line 25 def invocation(id) client.list_command_invocations(command_id: id, details: true).command_invocations end
parameters(opt)
click to toggle source
# File lib/stax/aws/ssm.rb, line 29 def parameters(opt) paginate(:parameters) do |token| client.get_parameters_by_path(opt.merge(next_token: token)) end end
put(opt)
click to toggle source
# File lib/stax/aws/ssm.rb, line 39 def put(opt) client.put_parameter(opt) end
run(opt)
click to toggle source
# File lib/stax/aws/ssm.rb, line 17 def run(opt) client.send_command(opt).command end