BREAKING: Service client HTTP engine selection #919
ianbotsf
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
An upcoming release of the AWS SDK for Kotlin renames the config parameter for selecting an HTTP engine in service clients and credentials providers. This change streamlines naming and decreases verbosity but may affect some existing code.
Note: If you do not manually configure an HTTP engine for SDK service clients or credentials providers then this change should not affect you.
Release date
This feature will ship with the v0.25.0-beta release planned for 5/18/2023.
What's changing
The service client config parameter for selecting a non-default HTTP engine instance is changing from
httpClientEngine
to simplyhttpClient
. Various credentials providers which accept an HTTP engine are also changing the name of that parameter fromhttpClientEngine
tohttpClient
.How to migrate
Migration steps depend on the current use case:
Service client config
Previously, SDK service clients could be configured to accept an HTTP engine like this:
After this change, the engine instance will be configured like this:
Credentials providers
Previously, some credentials providers (e.g., the default chain provider) could be configured to accept an HTTP engine like this:
After this change, the engine instance will be configured like this:
Additional resources
If you have any questions concerning this change, please feel free to engage with us in this discussion. If you encounter a bug with these changes, please file an issue.
Beta Was this translation helpful? Give feedback.
All reactions