capo-appconfigcloudextension 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. capo_appconfigcloudextension-0.1.0/LICENSE +21 -0
  2. capo_appconfigcloudextension-0.1.0/PKG-INFO +98 -0
  3. capo_appconfigcloudextension-0.1.0/README.md +66 -0
  4. capo_appconfigcloudextension-0.1.0/pyproject.toml +68 -0
  5. capo_appconfigcloudextension-0.1.0/setup.cfg +4 -0
  6. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/__init__.py +87 -0
  7. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/_async.py +25 -0
  8. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/_auth/_identity.py +16 -0
  9. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/_auth/_providers.py +985 -0
  10. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/_auth/_signers.py +125 -0
  11. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/_auth/_sigv4.py +582 -0
  12. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/_auth/_zapros_handler.py +80 -0
  13. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/_aws.py +28 -0
  14. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/_body.py +221 -0
  15. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/_iter.py +113 -0
  16. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/_operations/app_config/get_configuration.py +193 -0
  17. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/_operations/app_config/get_flag.py +198 -0
  18. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/_pagination.py +21 -0
  19. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/_protocol/__init__.py +1 -0
  20. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/_protocol/errors.py +93 -0
  21. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/_protocol/eventstream.py +240 -0
  22. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/_protocol/serialize.py +47 -0
  23. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/_protocol/xml.py +33 -0
  24. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/_rule_engine/__init__.py +0 -0
  25. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/_rule_engine/_aws_partition.py +160 -0
  26. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/_rule_engine/_endpoint_rule_set.py +28 -0
  27. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/_rule_engine/_endpoint_runtime.py +389 -0
  28. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/_services/_aws_config.py +167 -0
  29. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/_services/_pipeline.py +725 -0
  30. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/_services/app_config_cloud_extension.py +281 -0
  31. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/_services/async_app_config_cloud_extension.py +283 -0
  32. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/errors/__init__.py +40 -0
  33. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/errors/_base.py +99 -0
  34. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/errors/access_denied_exception.py +85 -0
  35. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/errors/bad_gateway_exception.py +96 -0
  36. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/errors/internal_server_exception.py +56 -0
  37. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/errors/loop_detected_exception.py +56 -0
  38. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/errors/request_entity_too_large_exception.py +56 -0
  39. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/errors/service_unavailable_exception.py +91 -0
  40. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/errors/throttling_exception.py +97 -0
  41. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/errors/upgrade_required_exception.py +99 -0
  42. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/errors/validation_exception.py +106 -0
  43. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/py.typed +0 -0
  44. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/types/_prelude/blob.py +12 -0
  45. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/types/_prelude/timestamp.py +17 -0
  46. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/types/_unknown.py +50 -0
  47. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/types/access_denied_reason.py +22 -0
  48. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/types/allowed_values.py +14 -0
  49. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/types/bad_gateway_reason.py +27 -0
  50. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/types/configuration_content.py +16 -0
  51. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/types/configuration_identifier.py +6 -0
  52. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/types/constraint.py +163 -0
  53. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/types/enum_constraint.py +41 -0
  54. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/types/field_constraint.py +54 -0
  55. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/types/flag_attribute_key.py +6 -0
  56. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/types/flag_attribute_number_list.py +25 -0
  57. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/types/flag_attribute_string_list.py +14 -0
  58. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/types/flag_attribute_value.py +116 -0
  59. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/types/flag_attributes.py +41 -0
  60. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/types/flag_key.py +6 -0
  61. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/types/get_configuration_request.py +44 -0
  62. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/types/get_configuration_response.py +63 -0
  63. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/types/get_flag_request.py +73 -0
  64. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/types/get_flag_response.py +55 -0
  65. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/types/identifier.py +6 -0
  66. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/types/length_constraint.py +36 -0
  67. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/types/pattern_constraint.py +24 -0
  68. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/types/range_constraint.py +45 -0
  69. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/types/request_context.py +29 -0
  70. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/types/request_context_key.py +6 -0
  71. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/types/request_context_value.py +6 -0
  72. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/types/semantic_error.py +36 -0
  73. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/types/service_unavailable_reason.py +23 -0
  74. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/types/throttling_reason.py +18 -0
  75. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/types/type_constraint.py +24 -0
  76. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/types/upgrade_required_reason.py +18 -0
  77. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/types/validation_error.py +81 -0
  78. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/types/validation_errors.py +39 -0
  79. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension/types/validation_exception_reason.py +19 -0
  80. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension.egg-info/PKG-INFO +98 -0
  81. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension.egg-info/SOURCES.txt +84 -0
  82. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension.egg-info/dependency_links.txt +1 -0
  83. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension.egg-info/requires.txt +9 -0
  84. capo_appconfigcloudextension-0.1.0/src/capo_appconfigcloudextension.egg-info/top_level.txt +1 -0
  85. capo_appconfigcloudextension-0.1.0/tests/test_body.py +225 -0
  86. capo_appconfigcloudextension-0.1.0/tests/test_sigv4.py +806 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Karen Petrosyan
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,98 @@
1
+ Metadata-Version: 2.4
2
+ Name: capo-appconfigcloudextension
3
+ Version: 0.1.0
4
+ Summary: Typed, async Python SDK for AWS Appconfigcloudextension.
5
+ Project-URL: Homepage, https://capo-sdk.dev/
6
+ Project-URL: Documentation, https://capo-sdk.dev/services/appconfigcloudextension/
7
+ Project-URL: Repository, https://github.com/kap-sh/capo/tree/main/services/appconfigcloudextension
8
+ Project-URL: Changelog, https://github.com/kap-sh/capo/blob/main/services/appconfigcloudextension/CHANGELOG.md
9
+ Classifier: Development Status :: 4 - Beta
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: License :: OSI Approved :: MIT License
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: 3.13
18
+ Classifier: Programming Language :: Python :: 3.14
19
+ Classifier: Topic :: Software Development :: Code Generators
20
+ Classifier: Typing :: Typed
21
+ Requires-Python: >=3.10
22
+ Description-Content-Type: text/markdown
23
+ License-File: LICENSE
24
+ Requires-Dist: zapros>=0.23.0
25
+ Provides-Extra: anyio
26
+ Requires-Dist: anyio>=3.0; extra == "anyio"
27
+ Provides-Extra: sso
28
+ Requires-Dist: capo-sso>=0.2.0; extra == "sso"
29
+ Requires-Dist: capo-sso-oidc>=0.2.0; extra == "sso"
30
+ Requires-Dist: capo-sts>=0.3.0; extra == "sso"
31
+ Dynamic: license-file
32
+
33
+ # capo-appconfigcloudextension: typed, async Python SDK for AWS Appconfigcloudextension
34
+
35
+ `capo-appconfigcloudextension` is a typed Python SDK for AWS Appconfigcloudextension. It has an async client, `AsyncAppConfigCloudExtensionClient`, for asyncio and trio, and a sync client, `AppConfigCloudExtensionClient`, with the same methods. Requests and responses are typed with TypedDicts, so your editor and type checker know every field.
36
+
37
+ It is part of [capo](https://capo-sdk.dev/), a community-driven alternative to boto3 and aioboto3, built on its own HTTP stack instead of botocore and generated from the official AWS Smithy models. Documentation: [https://capo-sdk.dev/services/appconfigcloudextension/](https://capo-sdk.dev/services/appconfigcloudextension/)
38
+
39
+ ## Installation
40
+
41
+ ```
42
+ pip install capo-appconfigcloudextension
43
+ ```
44
+
45
+ ## Usage
46
+
47
+ ```python
48
+ from capo_appconfigcloudextension import AsyncAppConfigCloudExtensionClient
49
+
50
+
51
+ async def main():
52
+ async with AsyncAppConfigCloudExtensionClient() as app_config_cloud_extension:
53
+ # Example: call the get_configuration operation
54
+ response = await app_config_cloud_extension.get_configuration()
55
+ print(response["content"])
56
+ ```
57
+
58
+ ## Error Handling
59
+
60
+ The SDK raises exceptions for errors returned by the API. Catch them to handle failures gracefully.
61
+
62
+ ```python
63
+ from capo_appconfigcloudextension import AsyncAppConfigCloudExtensionClient
64
+ from capo_appconfigcloudextension.error import AccessDeniedException
65
+
66
+
67
+ async def main():
68
+ async with AsyncAppConfigCloudExtensionClient() as app_config_cloud_extension:
69
+ try:
70
+ await app_config_cloud_extension.get_configuration()
71
+ except AccessDeniedException as e:
72
+ print(f"Error: {e}")
73
+ print(e.data) # additional error data
74
+ ```
75
+
76
+ ## Retrying
77
+
78
+ The SDK retries failed operations automatically. Retry behaviour follows the Smithy specification: errors are retried based on their `is_retryable` and `is_throttling_error` attributes. Throttling errors use a longer base delay. Network-level failures (connection errors and timeouts) are also retried. Non-retryable errors, such as client errors without the `@retryable` trait, are raised immediately without further attempts.
79
+
80
+ The number of attempts defaults to 3 and can be changed at the client level via `retry_max_attempts`, or per call via `config_overrides`.
81
+
82
+ `retry_mode="adaptive"` (or `AWS_RETRY_MODE=adaptive`, or `retry_mode = adaptive` in the AWS profile) also slows the whole client down once the service starts throttling it, then speeds back up as requests succeed. The default is `standard`.
83
+
84
+ ```python
85
+ from capo_appconfigcloudextension import AsyncAppConfigCloudExtensionClient
86
+
87
+
88
+ async def main():
89
+ async with AsyncAppConfigCloudExtensionClient() as app_config_cloud_extension:
90
+ # Default: 3 attempts for every operation
91
+ response = await app_config_cloud_extension.get_configuration()
92
+
93
+ # Override per operation
94
+ response = await app_config_cloud_extension.get_configuration(config_overrides={"retry_max_attempts": 5})
95
+
96
+ # Disable retries for this call
97
+ response = await app_config_cloud_extension.get_configuration(config_overrides={"retry_max_attempts": 1})
98
+ ```
@@ -0,0 +1,66 @@
1
+ # capo-appconfigcloudextension: typed, async Python SDK for AWS Appconfigcloudextension
2
+
3
+ `capo-appconfigcloudextension` is a typed Python SDK for AWS Appconfigcloudextension. It has an async client, `AsyncAppConfigCloudExtensionClient`, for asyncio and trio, and a sync client, `AppConfigCloudExtensionClient`, with the same methods. Requests and responses are typed with TypedDicts, so your editor and type checker know every field.
4
+
5
+ It is part of [capo](https://capo-sdk.dev/), a community-driven alternative to boto3 and aioboto3, built on its own HTTP stack instead of botocore and generated from the official AWS Smithy models. Documentation: [https://capo-sdk.dev/services/appconfigcloudextension/](https://capo-sdk.dev/services/appconfigcloudextension/)
6
+
7
+ ## Installation
8
+
9
+ ```
10
+ pip install capo-appconfigcloudextension
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ```python
16
+ from capo_appconfigcloudextension import AsyncAppConfigCloudExtensionClient
17
+
18
+
19
+ async def main():
20
+ async with AsyncAppConfigCloudExtensionClient() as app_config_cloud_extension:
21
+ # Example: call the get_configuration operation
22
+ response = await app_config_cloud_extension.get_configuration()
23
+ print(response["content"])
24
+ ```
25
+
26
+ ## Error Handling
27
+
28
+ The SDK raises exceptions for errors returned by the API. Catch them to handle failures gracefully.
29
+
30
+ ```python
31
+ from capo_appconfigcloudextension import AsyncAppConfigCloudExtensionClient
32
+ from capo_appconfigcloudextension.error import AccessDeniedException
33
+
34
+
35
+ async def main():
36
+ async with AsyncAppConfigCloudExtensionClient() as app_config_cloud_extension:
37
+ try:
38
+ await app_config_cloud_extension.get_configuration()
39
+ except AccessDeniedException as e:
40
+ print(f"Error: {e}")
41
+ print(e.data) # additional error data
42
+ ```
43
+
44
+ ## Retrying
45
+
46
+ The SDK retries failed operations automatically. Retry behaviour follows the Smithy specification: errors are retried based on their `is_retryable` and `is_throttling_error` attributes. Throttling errors use a longer base delay. Network-level failures (connection errors and timeouts) are also retried. Non-retryable errors, such as client errors without the `@retryable` trait, are raised immediately without further attempts.
47
+
48
+ The number of attempts defaults to 3 and can be changed at the client level via `retry_max_attempts`, or per call via `config_overrides`.
49
+
50
+ `retry_mode="adaptive"` (or `AWS_RETRY_MODE=adaptive`, or `retry_mode = adaptive` in the AWS profile) also slows the whole client down once the service starts throttling it, then speeds back up as requests succeed. The default is `standard`.
51
+
52
+ ```python
53
+ from capo_appconfigcloudextension import AsyncAppConfigCloudExtensionClient
54
+
55
+
56
+ async def main():
57
+ async with AsyncAppConfigCloudExtensionClient() as app_config_cloud_extension:
58
+ # Default: 3 attempts for every operation
59
+ response = await app_config_cloud_extension.get_configuration()
60
+
61
+ # Override per operation
62
+ response = await app_config_cloud_extension.get_configuration(config_overrides={"retry_max_attempts": 5})
63
+
64
+ # Disable retries for this call
65
+ response = await app_config_cloud_extension.get_configuration(config_overrides={"retry_max_attempts": 1})
66
+ ```
@@ -0,0 +1,68 @@
1
+ [project]
2
+ name = "capo-appconfigcloudextension"
3
+ version = "0.1.0"
4
+ description = "Typed, async Python SDK for AWS Appconfigcloudextension."
5
+ readme = "README.md"
6
+ requires-python = ">=3.10"
7
+ classifiers = [
8
+ "Development Status :: 4 - Beta",
9
+ "Intended Audience :: Developers",
10
+ "License :: OSI Approved :: MIT License",
11
+ "Operating System :: OS Independent",
12
+ "Programming Language :: Python :: 3",
13
+ "Programming Language :: Python :: 3.10",
14
+ "Programming Language :: Python :: 3.11",
15
+ "Programming Language :: Python :: 3.12",
16
+ "Programming Language :: Python :: 3.13",
17
+ "Programming Language :: Python :: 3.14",
18
+ "Topic :: Software Development :: Code Generators",
19
+ "Typing :: Typed",
20
+ ]
21
+ dependencies = [
22
+ "zapros>=0.23.0",
23
+ ]
24
+
25
+ [project.urls]
26
+ Homepage = "https://capo-sdk.dev/"
27
+ Documentation = "https://capo-sdk.dev/services/appconfigcloudextension/"
28
+ Repository = "https://github.com/kap-sh/capo/tree/main/services/appconfigcloudextension"
29
+ Changelog = "https://github.com/kap-sh/capo/blob/main/services/appconfigcloudextension/CHANGELOG.md"
30
+
31
+ [project.optional-dependencies]
32
+ # Async file request bodies via Body.async_from_path
33
+ anyio = ["anyio>=3.0"]
34
+ # IAM Identity Center (SSO), assume-role and web-identity credentials providers
35
+ sso = [
36
+ "capo-sso>=0.2.0",
37
+ "capo-sso-oidc>=0.2.0",
38
+ "capo-sts>=0.3.0",
39
+ ]
40
+
41
+ [tool.pytest.ini_options]
42
+ pythonpath = ["src"]
43
+ testpaths = ["tests"]
44
+
45
+ [tool.ty.environment]
46
+ python-version = "3.14"
47
+ root = ["./src"]
48
+
49
+ [tool.ty.src]
50
+ include = ["src", "tests"]
51
+
52
+ [tool.ty.rules]
53
+ missing-typed-dict-key = "ignore"
54
+ unused-type-ignore-comment = "ignore"
55
+
56
+ [tool.ruff.lint]
57
+ select = ["E", "F", "I"]
58
+ ignore = ["E501", "E741"]
59
+
60
+ [dependency-groups]
61
+ dev = [
62
+ "inline-snapshot>=0.33.0",
63
+ # TODO: fix for 0.0.69
64
+ "ty==0.0.68",
65
+ "pytest>=9.0.3",
66
+ "ruff>=0.15.14",
67
+ "trio",
68
+ ]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,87 @@
1
+ from __future__ import annotations
2
+
3
+ from . import _iter as _iter
4
+ from . import _protocol as _protocol
5
+ from ._auth._identity import Credentials as Credentials
6
+ from ._auth._identity import Identity as Identity
7
+ from ._auth._providers import (
8
+ AssumeRoleCredentialsProvider as AssumeRoleCredentialsProvider,
9
+ )
10
+ from ._auth._providers import (
11
+ AssumeRoleError as AssumeRoleError,
12
+ )
13
+ from ._auth._providers import (
14
+ CachedProvider as CachedProvider,
15
+ )
16
+ from ._auth._providers import (
17
+ ChainedProvider as ChainedProvider,
18
+ )
19
+ from ._auth._providers import (
20
+ CredentialProcessError as CredentialProcessError,
21
+ )
22
+ from ._auth._providers import (
23
+ CredentialsProvider as CredentialsProvider,
24
+ )
25
+ from ._auth._providers import (
26
+ EnvCredentialsProvider as EnvCredentialsProvider,
27
+ )
28
+ from ._auth._providers import (
29
+ IdentityNotFound as IdentityNotFound,
30
+ )
31
+ from ._auth._providers import (
32
+ IdentityProvider as IdentityProvider,
33
+ )
34
+ from ._auth._providers import (
35
+ MissingDependencyError as MissingDependencyError,
36
+ )
37
+ from ._auth._providers import (
38
+ ProcessCredentialsProvider as ProcessCredentialsProvider,
39
+ )
40
+ from ._auth._providers import (
41
+ ProfileCredentialsProvider as ProfileCredentialsProvider,
42
+ )
43
+ from ._auth._providers import (
44
+ SsoCredentialsProvider as SsoCredentialsProvider,
45
+ )
46
+ from ._auth._providers import (
47
+ SSOError as SSOError,
48
+ )
49
+ from ._auth._providers import (
50
+ StaticAwsCredentialsProvider as StaticAwsCredentialsProvider,
51
+ )
52
+ from ._auth._providers import (
53
+ WebIdentityCredentialsProvider as WebIdentityCredentialsProvider,
54
+ )
55
+ from ._auth._signers import Signer as Signer
56
+ from ._auth._signers import SigV4Signer as SigV4Signer
57
+ from ._body import Body as Body
58
+ from ._services._pipeline import (
59
+ AsyncOperationOptions as AsyncOperationOptions,
60
+ )
61
+ from ._services._pipeline import (
62
+ AsyncOperationRequest as AsyncOperationRequest,
63
+ )
64
+ from ._services._pipeline import (
65
+ AsyncOperationResponse as AsyncOperationResponse,
66
+ )
67
+ from ._services._pipeline import (
68
+ OperationOptions as OperationOptions,
69
+ )
70
+ from ._services._pipeline import (
71
+ OperationRequest as OperationRequest,
72
+ )
73
+ from ._services._pipeline import (
74
+ OperationResponse as OperationResponse,
75
+ )
76
+ from ._services.app_config_cloud_extension import (
77
+ AppConfigCloudExtensionClient as AppConfigCloudExtensionClient,
78
+ )
79
+ from ._services.async_app_config_cloud_extension import (
80
+ AsyncAppConfigCloudExtensionClient as AsyncAppConfigCloudExtensionClient,
81
+ )
82
+ from .types._unknown import (
83
+ UnknownEvent as UnknownEvent,
84
+ )
85
+ from .types._unknown import (
86
+ UnknownUnionMember as UnknownUnionMember,
87
+ )
@@ -0,0 +1,25 @@
1
+ from __future__ import annotations
2
+
3
+ import asyncio
4
+ from typing import TYPE_CHECKING
5
+
6
+ if TYPE_CHECKING:
7
+ import trio
8
+ else:
9
+ try:
10
+ import trio
11
+ except ImportError:
12
+ trio = None
13
+
14
+
15
+ def in_trio_run() -> bool:
16
+ if trio is None:
17
+ return False
18
+ return trio.lowlevel.in_trio_run()
19
+
20
+
21
+ async def anysleep(delay: float) -> None:
22
+ if in_trio_run():
23
+ await trio.sleep(delay)
24
+ else:
25
+ await asyncio.sleep(delay)
@@ -0,0 +1,16 @@
1
+ from __future__ import annotations
2
+
3
+ from datetime import datetime
4
+ from typing import TypedDict
5
+
6
+ from typing_extensions import NotRequired
7
+
8
+
9
+ class Identity(TypedDict):
10
+ expiration: NotRequired[datetime | None]
11
+
12
+
13
+ class Credentials(Identity):
14
+ access_key: str
15
+ secret_key: str
16
+ session_token: NotRequired[str | None]