capo-appconfigdata 0.1.0__py3-none-any.whl
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.
- capo_appconfigdata/__init__.py +72 -0
- capo_appconfigdata/_async.py +25 -0
- capo_appconfigdata/_auth/_identity.py +16 -0
- capo_appconfigdata/_auth/_providers.py +886 -0
- capo_appconfigdata/_auth/_signers.py +88 -0
- capo_appconfigdata/_auth/_sigv4.py +434 -0
- capo_appconfigdata/_auth/_zapros_handler.py +80 -0
- capo_appconfigdata/_iter.py +113 -0
- capo_appconfigdata/_operations/app_config_data/get_latest_configuration.py +182 -0
- capo_appconfigdata/_operations/app_config_data/start_configuration_session.py +163 -0
- capo_appconfigdata/_pagination.py +21 -0
- capo_appconfigdata/_protocol/__init__.py +1 -0
- capo_appconfigdata/_protocol/errors.py +93 -0
- capo_appconfigdata/_protocol/eventstream.py +238 -0
- capo_appconfigdata/_protocol/serialize.py +47 -0
- capo_appconfigdata/_protocol/xml.py +33 -0
- capo_appconfigdata/_resources/app_config_data/configuration_session.py +159 -0
- capo_appconfigdata/_rule_engine/__init__.py +0 -0
- capo_appconfigdata/_rule_engine/_aws_partition.py +160 -0
- capo_appconfigdata/_rule_engine/_endpoint_rule_set.py +154 -0
- capo_appconfigdata/_rule_engine/_endpoint_runtime.py +389 -0
- capo_appconfigdata/_services/_aws_config.py +160 -0
- capo_appconfigdata/_services/_pipeline.py +198 -0
- capo_appconfigdata/_services/app_config_data.py +184 -0
- capo_appconfigdata/_services/async_app_config_data.py +185 -0
- capo_appconfigdata/errors/__init__.py +31 -0
- capo_appconfigdata/errors/_base.py +94 -0
- capo_appconfigdata/errors/bad_request_exception.py +73 -0
- capo_appconfigdata/errors/internal_server_exception.py +51 -0
- capo_appconfigdata/errors/resource_not_found_exception.py +73 -0
- capo_appconfigdata/errors/throttling_exception.py +49 -0
- capo_appconfigdata/py.typed +0 -0
- capo_appconfigdata/types/_prelude/blob.py +12 -0
- capo_appconfigdata/types/_prelude/timestamp.py +17 -0
- capo_appconfigdata/types/bad_request_details.py +46 -0
- capo_appconfigdata/types/bad_request_reason.py +5 -0
- capo_appconfigdata/types/get_latest_configuration_request.py +24 -0
- capo_appconfigdata/types/get_latest_configuration_response.py +47 -0
- capo_appconfigdata/types/id.py +5 -0
- capo_appconfigdata/types/identifier.py +5 -0
- capo_appconfigdata/types/integer.py +5 -0
- capo_appconfigdata/types/invalid_parameter_detail.py +30 -0
- capo_appconfigdata/types/invalid_parameter_map.py +37 -0
- capo_appconfigdata/types/invalid_parameter_problem.py +5 -0
- capo_appconfigdata/types/optional_poll_seconds.py +5 -0
- capo_appconfigdata/types/resource_type.py +5 -0
- capo_appconfigdata/types/sensitive_blob.py +15 -0
- capo_appconfigdata/types/start_configuration_session_request.py +64 -0
- capo_appconfigdata/types/start_configuration_session_response.py +28 -0
- capo_appconfigdata/types/string.py +5 -0
- capo_appconfigdata/types/string_map.py +27 -0
- capo_appconfigdata/types/token.py +5 -0
- capo_appconfigdata-0.1.0.dist-info/METADATA +86 -0
- capo_appconfigdata-0.1.0.dist-info/RECORD +57 -0
- capo_appconfigdata-0.1.0.dist-info/WHEEL +5 -0
- capo_appconfigdata-0.1.0.dist-info/licenses/LICENSE +21 -0
- capo_appconfigdata-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
CredentialsProvider as CredentialsProvider,
|
|
21
|
+
)
|
|
22
|
+
from ._auth._providers import (
|
|
23
|
+
EnvCredentialsProvider as EnvCredentialsProvider,
|
|
24
|
+
)
|
|
25
|
+
from ._auth._providers import (
|
|
26
|
+
IdentityNotFound as IdentityNotFound,
|
|
27
|
+
)
|
|
28
|
+
from ._auth._providers import (
|
|
29
|
+
IdentityProvider as IdentityProvider,
|
|
30
|
+
)
|
|
31
|
+
from ._auth._providers import (
|
|
32
|
+
MissingDependencyError as MissingDependencyError,
|
|
33
|
+
)
|
|
34
|
+
from ._auth._providers import (
|
|
35
|
+
ProfileCredentialsProvider as ProfileCredentialsProvider,
|
|
36
|
+
)
|
|
37
|
+
from ._auth._providers import (
|
|
38
|
+
SsoCredentialsProvider as SsoCredentialsProvider,
|
|
39
|
+
)
|
|
40
|
+
from ._auth._providers import (
|
|
41
|
+
SSOError as SSOError,
|
|
42
|
+
)
|
|
43
|
+
from ._auth._providers import (
|
|
44
|
+
StaticAwsCredentialsProvider as StaticAwsCredentialsProvider,
|
|
45
|
+
)
|
|
46
|
+
from ._auth._providers import (
|
|
47
|
+
WebIdentityCredentialsProvider as WebIdentityCredentialsProvider,
|
|
48
|
+
)
|
|
49
|
+
from ._auth._signers import Signer as Signer
|
|
50
|
+
from ._auth._signers import SigV4Signer as SigV4Signer
|
|
51
|
+
from ._services._pipeline import (
|
|
52
|
+
AsyncOperationOptions as AsyncOperationOptions,
|
|
53
|
+
)
|
|
54
|
+
from ._services._pipeline import (
|
|
55
|
+
AsyncOperationRequest as AsyncOperationRequest,
|
|
56
|
+
)
|
|
57
|
+
from ._services._pipeline import (
|
|
58
|
+
AsyncOperationResponse as AsyncOperationResponse,
|
|
59
|
+
)
|
|
60
|
+
from ._services._pipeline import (
|
|
61
|
+
OperationOptions as OperationOptions,
|
|
62
|
+
)
|
|
63
|
+
from ._services._pipeline import (
|
|
64
|
+
OperationRequest as OperationRequest,
|
|
65
|
+
)
|
|
66
|
+
from ._services._pipeline import (
|
|
67
|
+
OperationResponse as OperationResponse,
|
|
68
|
+
)
|
|
69
|
+
from ._services.app_config_data import AppConfigDataClient as AppConfigDataClient
|
|
70
|
+
from ._services.async_app_config_data import (
|
|
71
|
+
AsyncAppConfigDataClient as AsyncAppConfigDataClient,
|
|
72
|
+
)
|
|
@@ -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]
|