class Idlc::AWSRestClient

def send_signed_request(method, url, payload)

def send_signed_request(method, url, payload)
  uri = URI.parse(url)
  https = Net::HTTP.new(uri.host, uri.port)
  https.use_ssl = true
  signature = sigv4_signature(method, url, payload)
  path = uri.path
  path = path + '?' + uri.query if uri.query
  request = http_request(method, path, signature, payload)
  response = https.request(request)
end