     |> prepare_header_date(current_date_time)
     |> prepare_header_length(query)
     |> prepare_header_authorization(query, current_date_time, config)
-    |> prepare_header_security_token(config)
+    |> prepare_header_security_token(provider_options)
     |> Map.to_list()
   end
 

    |> URI.encode()
  end

  defp prepare_headers(headers, query, config) do
    current_date_time = DateTime.utc_now()

    headers

    }"
  end

  defp prepare_header_security_token(headers, %{security_token: token}) do
    Map.put(headers, "X-Amz-Security-Token", token)
  end
  
  defp prepare_header_security_token(headers, _provider_options), do: headers

  defp generate_signature(string_to_sign, date_time, region, secret) do
    ("AWS4" <> secret)
