Skip to content

Commit 9ce6b31

Browse files
committed
Fix URL parameters in generated API Gateway and IoT URLs
This affects lib/aws/api_gateway.ex and lib/aws/iot.ex in generated Elixir code.
1 parent 5e59fed commit 9ce6b31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/aws_codegen/rest_json_service.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ defmodule AWS.CodeGen.RestJSONService do
3232
Enum.reduce(action.url_parameters, action.request_uri,
3333
fn(parameter, acc) ->
3434
name = Enum.join([~S(#{), "URI.encode(", parameter.code_name, ")", ~S(})])
35-
String.replace(acc, "{#{parameter.name}}", "#{name}")
35+
String.replace(acc, "{#{parameter.location_name}}", name)
3636
end) |>
3737
# FIXME(jkakar) This is only here because the invoke-async method
3838
# defined for the Lambda API has an apparentyl spurious trailing slash

0 commit comments

Comments
 (0)