diff --git a/deps/rabbitmq_aws/include/httpc_aws.hrl b/deps/rabbitmq_aws/include/httpc_aws.hrl index 4b5a90cab1..fbe3fde44d 100644 --- a/deps/rabbitmq_aws/include/httpc_aws.hrl +++ b/deps/rabbitmq_aws/include/httpc_aws.hrl @@ -23,11 +23,16 @@ -type security_token() :: nonempty_string() | undefined. -type region() :: nonempty_string() | undefined. + +-type security_credentials() :: {ok, access_key(), secret_access_key(), expiration(), security_token()} | + {error, Reason :: atom()}. + -record(state, {access_key :: access_key(), secret_access_key :: secret_access_key(), expiration :: expiration(), security_token :: security_token(), - region :: region()}). + region :: region(), + error :: atom() | string() | undefined}). -type state() :: #state{}. -type scheme() :: atom(). @@ -41,6 +46,7 @@ -type userinfo() :: {undefined | username(), undefined | password()}. + -type authority() :: {undefined | userinfo(), host(), undefined | tcp_port()}. @@ -62,6 +68,5 @@ method = get :: httpc:method(), headers :: httpc:headers(), uri :: string(), - body = "" :: string(), - query_args = [] :: query_args()}). + body = "" :: string()}). -type v4request() :: #v4request{}. diff --git a/deps/rabbitmq_aws/src/httpc_aws_config.erl b/deps/rabbitmq_aws/src/httpc_aws_config.erl index e5494c771c..8bf448780c 100644 --- a/deps/rabbitmq_aws/src/httpc_aws_config.erl +++ b/deps/rabbitmq_aws/src/httpc_aws_config.erl @@ -22,9 +22,6 @@ -include("httpc_aws.hrl"). --type security_credentials() :: {ok, access_key(), secret_access_key(), - expiration(), security_token()} | - {error, Reason :: atom()}. -spec credentials() -> security_credentials().