Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions deps/rabbitmq_aws/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ define PROJECT_ENV
endef

LOCAL_DEPS = crypto inets ssl xmerl public_key
DEPS = gun
BUILD_DEPS = rabbit_common
# We do not depend on rabbit therefore can't run the broker.
DEP_PLUGINS = rabbit_common/mk/rabbitmq-build.mk
Expand Down
10 changes: 10 additions & 0 deletions deps/rabbitmq_aws/include/rabbitmq_aws.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@
-define(LINEAR_BACK_OFF_MILLIS, 500).
-define(MAX_RETRIES, 5).

-define(AWS_CREDENTIALS_TABLE, aws_credentials).
-define(AWS_CONFIG_TABLE, aws_config).

-type access_key() :: nonempty_string().
-type secret_access_key() :: nonempty_string().
-type expiration() :: calendar:datetime() | undefined.
Expand All @@ -62,6 +65,13 @@
expiration :: non_neg_integer() | undefined
}).

-record(aws_credentials, {
access_key :: access_key(),
secret_key :: secret_access_key(),
security_token :: security_token(),
expiration :: expiration()
}).

-type imdsv2token() :: #imdsv2token{}.

-record(state, {
Expand Down
Loading
Loading