Title: Breaking changes in 0.10.0: async client configuration · Issue #84 · aws/aws-sdk-python · GitHub
Open Graph Title: Breaking changes in 0.10.0: async client configuration · Issue #84 · aws/aws-sdk-python
X Title: Breaking changes in 0.10.0: async client configuration · Issue #84 · aws/aws-sdk-python
Description: Breaking changes in 0.10.0 release Starting with version 0.10.0, the aws-sdk-* client packages include breaking changes to client configuration. New configuration object The synchronous Config class previously exported from each service ...
Open Graph Description: Breaking changes in 0.10.0 release Starting with version 0.10.0, the aws-sdk-* client packages include breaking changes to client configuration. New configuration object The synchronous Config clas...
X Description: Breaking changes in 0.10.0 release Starting with version 0.10.0, the aws-sdk-* client packages include breaking changes to client configuration. New configuration object The synchronous Config clas...
Opengraph URL: https://github.com/aws/aws-sdk-python/issues/84
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Breaking changes in 0.10.0: async client configuration","articleBody":"## Breaking changes in `0.10.0` release\n\nStarting with version `0.10.0`, the `aws-sdk-*` client packages include breaking changes to client configuration.\n\n### New configuration object\n\nThe synchronous `Config` class previously exported from each service package has been replaced with a service-specific asynchronous configuration class.\n\nFor example, for Bedrock Runtime:\n\n```python\n# Before\nfrom aws_sdk_bedrock_runtime.config import Config\n```\n\nis now:\n\n```python\n# 0.10.0 and later\nfrom aws_sdk_bedrock_runtime.config import AsyncBedrockRuntimeConfig\n```\n\n### Configuration is now asynchronous\n\nConfiguration objects must now be created using the asynchronous `resolve()` method. Directly instantiating the configuration class is not supported and results in an error.\n\n```python\n# Incorrect\nconfig = AsyncBedrockRuntimeConfig(\n region=\"us-west-2\",\n)\n\n# Raises\nsmithy_aws_core.config.exceptions.ConfigError: AsyncBedrockRuntimeConfig cannot be constructed directly. Use `await AsyncBedrockRuntimeConfig.resolve(...)` instead.\n```\n\nInstead, resolve the configuration before passing it to the client:\n\n```python\nfrom aws_sdk_bedrock_runtime.config import AsyncBedrockRuntimeConfig\n\nconfig = await AsyncBedrockRuntimeConfig.resolve(\n region=\"us-west-2\",\n)\n```\n\nThis change allows the SDK to perform configuration resolution that requires I/O, such as reading shared AWS configuration and credentials files, without blocking the event loop.\n\nConfiguration values are resolved from explicit overrides passed to `resolve()`, environment variables, and shared AWS configuration and credentials files. If no configuration is provided when constructing a client, the SDK automatically resolves one for you.\n\n### Plugins\n\nConfiguration plugins must now receive the service-specific asynchronous configuration type, `Async\u003cServiceId>Config`, instead of the previous `Config` type.\n\nFor example:\n\n```python\n# Before\nfrom aws_sdk_bedrock_runtime.config import Config\n\ndef my_plugin(config: Config) -> None:\n ...\n```\n\nis now:\n\n```python\n# 0.10.0 and later\nfrom aws_sdk_bedrock_runtime.config import AsyncBedrockRuntimeConfig\n\ndef my_plugin(config: AsyncBedrockRuntimeConfig) -> None:\n ...\n```\n\n### Migrating existing applications\n\nUpdate configuration usage as follows:\n\n1. Replace imports of `Config` with the service-specific `Async\u003cServiceId>Config`.\n2. Replace direct configuration construction with `await Async\u003cServiceId>Config.resolve(...)`.\n3. Ensure explicit configuration resolution occurs within an asynchronous context.\n4. Update configuration plugins to accept the service-specific `Async\u003cServiceId>Config` type instead of `Config`.\n\nFor example:\n\n```python\n# Before\nfrom aws_sdk_bedrock_runtime.client import AsyncBedrockRuntimeClient\nfrom aws_sdk_bedrock_runtime.config import Config\n\ndef my_plugin(config: Config) -> None:\n ...\n\nconfig = Config(\n region=\"us-west-2\",\n)\n\nclient = AsyncBedrockRuntimeClient(\n config=config,\n plugins=[my_plugin],\n)\n```\n\nbecomes:\n\n```python\n# 0.10.0 and later\nfrom aws_sdk_bedrock_runtime.client import AsyncBedrockRuntimeClient\nfrom aws_sdk_bedrock_runtime.config import AsyncBedrockRuntimeConfig\n\ndef my_plugin(config: AsyncBedrockRuntimeConfig) -> None:\n ...\n\nconfig = await AsyncBedrockRuntimeConfig.resolve(\n region=\"us-west-2\",\n)\n\nclient = AsyncBedrockRuntimeClient(\n config=config,\n plugins=[my_plugin],\n)\n```\n\n\n### Installing the latest version\n\nUpgrade an existing client package with `pip`:\n\n```bash\npython -m pip install --upgrade aws-sdk-\u003cservice-id>\n```\n\nFor example:\n\n```bash\npython -m pip install --upgrade aws-sdk-bedrock-runtime\n```\n\nTo explicitly require version `0.10.0` or later:\n\n```bash\npython -m pip install \"aws-sdk-bedrock-runtime>=0.10.0\"\n```\n\n### Pinning versions\n\nTo avoid unexpected breaking changes when installing or deploying your application, we recommend pinning `aws-sdk-*` client packages to a specific version or compatible version range.\n\nTo pin to an exact version:\n\n```bash\npython -m pip install \"aws-sdk-bedrock-runtime==0.10.0\"\n```\n\nTo allow compatible patch releases while avoiding newer minor releases:\n\n```bash\npython -m pip install \"aws-sdk-bedrock-runtime~=0.10.0\"\n```\n\nThis is important while the SDK is pre-`1.0.0`, when minor releases may include breaking changes.\n","author":{"url":"https://github.com/arandito","@type":"Person","name":"arandito"},"datePublished":"2026-08-20T18:32:19Z","url":"https://github.com/aws/aws-sdk-python/issues/84"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ffc73b66-9b64-7356-4e73-bf758c38a273 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A87E:2DACD6:2B31B9:3C8CF9:6AFB7021 |
| html-safe-nonce | 71fd5b88213406a27c1def9608cbaf198883bfe1521b92f5fefdb6374b3a58cb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODdFOjJEQUNENjoyQjMxQjk6M0M4Q0Y5OjZBRkI3MDIxIiwidmlzaXRvcl9pZCI6IjI0OTk5ODU3ODkxNjk2NTk5MzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5267c4f4acffc7d5a9acf50fd4c43bf9ae30a904fda06214d44a373ffc8c3a63 |
| hovercard-subject-tag | issue:5206674256 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/aws/aws-sdk-python/84/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a5702c5d4e266140a8d390febe1161fbb8e0387ca16643941e7f5badeb495a51/aws/aws-sdk-python/issues/84 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a5702c5d4e266140a8d390febe1161fbb8e0387ca16643941e7f5badeb495a51/aws/aws-sdk-python/issues/84 |
| og:image:alt | Breaking changes in 0.10.0 release Starting with version 0.10.0, the aws-sdk-* client packages include breaking changes to client configuration. New configuration object The synchronous Config clas... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | arandito |
| hostname | github.com |
| expected-hostname | github.com |
| None | cca289ecd54650fcf3c0b037a58b97186dee2cc4406819d87fab93728fd83700 |
| turbo-cache-control | no-preview |
| go-import | github.com/aws/aws-sdk-python git https://github.com/aws/aws-sdk-python.git |
| octolytics-dimension-user_id | 2232217 |
| octolytics-dimension-user_login | aws |
| octolytics-dimension-repository_id | 954213877 |
| octolytics-dimension-repository_nwo | aws/aws-sdk-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 954213877 |
| octolytics-dimension-repository_network_root_nwo | aws/aws-sdk-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 88808b1fae5ab8a526a73e7ce5542a10eb9d6971 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width