Skip to content

Commit

Permalink
Add spec
Browse files Browse the repository at this point in the history
  • Loading branch information
onno-vos-dev committed Sep 20, 2024
1 parent ae4075f commit 48e9c98
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/aws_rds_iam_token.erl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
%%====================================================================
%% API
%%====================================================================
create(Client, DBEndpoint, DBPort, DBUser) ->
-spec create(aws_client:client(), binary(), non_neg_integer(), binary()) -> {ok, binary()}.
create(Client, DBEndpoint, DBPort, DBUser) when is_map(Client) andalso
is_binary(DBEndpoint) andalso
is_integer(DBPort) andalso
is_binary(DBUser) ->
Method = <<"GET">>,
QueryParams = [{<<"Action">>, <<"connect">>}, {<<"DBUser">>, DBUser}],
Endpoint = <<"https://", DBEndpoint/binary, ":", (integer_to_binary(DBPort))/binary>>,
Expand Down

0 comments on commit 48e9c98

Please sign in to comment.