class Aws::EC2Metadata

def fetch_token

def fetch_token
  open_connection do |conn|
    created_time = Time.now
    token_value, token_ttl = http_put(conn, @token_ttl)
    @token = Token.new(value: token_value, ttl: token_ttl, created_time: created_time)
  end
end