Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config: Add WithCredentialCacheOptions for LoadDefaultConfig's LoadOptions #1523

Merged
merged 2 commits into from Jan 7, 2022

Conversation

jasdel
Copy link
Contributor

@jasdel jasdel commented Dec 6, 2021

Adds a new member to the LoadOptions struct, CredentialsCacheOptions. This member allows specifying a function that will be used to configure the CredentialsCache. The CredentialsCacheOptions will only be used if the configuration loader will wrap the underlying credential provider in the CredentialsCache.

This allows you to specify options on the CredentailCache such as ExpiryWindow. To proactively refresh credentials before their expiry time.

Related to v1 SDK's: aws/aws-sdk-go#4174, aws/aws-sdk-go#4160

Adds a new member to the LoadOptions struct, CredentialsCacheOptions.
This member allows specifying a function that will be used to configure
the CredentialsCache. The CredentialsCacheOptions will only be used if
the configuration loader will wrap the underlying credential provider in
the CredentialsCache.
@jasdel jasdel requested a review from skmcgrail December 6, 2021 17:53
@skmcgrail skmcgrail merged commit 2d25393 into aws:main Jan 7, 2022
jrichard8 pushed a commit to jrichard8/aws-sdk-go-v2 that referenced this pull request Feb 14, 2022
…tions (aws#1523)

* config: add load option for CredentialCache

Adds a new member to the LoadOptions struct, CredentialsCacheOptions.
This member allows specifying a function that will be used to configure
the CredentialsCache. The CredentialsCacheOptions will only be used if
the configuration loader will wrap the underlying credential provider in
the CredentialsCache.

* fixup copy/paste in description
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants