Skip to content

feat(aws-credentials-imds): export IMDSClient and IMDSTokenCache from the package root - #163

Merged
rohangavankar merged 1 commit into
developfrom
rohangavankar/fix/imds-root-exports
Nov 30, 2026
Merged

rohangavankar merged 1 commit into
developfrom
rohangavankar/fix/imds-root-exports

Conversation

@rohangavankar

Copy link
Copy Markdown
Contributor

aws_credentials_imds.aio exports AsyncIMDSClient and AsyncIMDSTokenCache, but the package root doesn't export their sync counterparts, so from aws_credentials_imds import IMDSClient fails. Sync users have to import from aws_credentials_imds.client. This PR exports IMDSClient and IMDSTokenCache from the package root and adds them to __all__, so sync and async imports match. The existing aws_credentials_imds.client imports keep working.

Testing

The unit tests pass, including a new test that checks both root exports. make api-snapshot, export-names, dunder-all and canonical-imports pass.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice

… the package root

aws_credentials_imds.aio exports AsyncIMDSClient and AsyncIMDSTokenCache,
and the 0.5.0 changelog names their sync counterparts, but the package
root never exported IMDSClient or IMDSTokenCache. Add both to the root
imports and __all__ so sync and async users import them the same way.
@rohangavankar
rohangavankar requested a review from a team as a code owner November 30, 2026 19:55
@rohangavankar
rohangavankar merged commit 44c051e into develop Nov 30, 2026
5 checks passed
@rohangavankar
rohangavankar deleted the rohangavankar/fix/imds-root-exports branch November 30, 2026 21:01
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.

2 participants