Getting Started
Installation
pip install capo-bedrock-data-automation-runtime
Usage
from capo_bedrock_data_automation_runtime import AsyncBedrockDataAutomationRuntimeClient
async def main():
async with AsyncBedrockDataAutomationRuntimeClient() as bedrock_data_automation_runtime:
# Example: call the invoke_data_automation operation
response = await bedrock_data_automation_runtime.invoke_data_automation()
print(response["output_configuration"])
Error Handling
The SDK raises exceptions for errors returned by the API. Catch them to handle failures gracefully.
from capo_bedrock_data_automation_runtime import AsyncBedrockDataAutomationRuntimeClient
from capo_bedrock_data_automation_runtime.error import AccessDeniedException
async def main():
async with AsyncBedrockDataAutomationRuntimeClient() as bedrock_data_automation_runtime:
try:
await bedrock_data_automation_runtime.invoke_data_automation()
except AccessDeniedException as e:
print(f"Error: {e}")
print(e.data) # additional error data
Retrying
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.
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.
from capo_bedrock_data_automation_runtime import AsyncBedrockDataAutomationRuntimeClient
async def main():
async with AsyncBedrockDataAutomationRuntimeClient() as bedrock_data_automation_runtime:
# Default: 3 attempts for every operation
response = await bedrock_data_automation_runtime.invoke_data_automation()
# Override per operation
response = await bedrock_data_automation_runtime.invoke_data_automation(config_overrides={"retry_max_attempts": 5})
# Disable retries for this call
response = await bedrock_data_automation_runtime.invoke_data_automation(config_overrides={"retry_max_attempts": 1})
Release files for capo-bedrock-data-automation-runtime 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| capo_bedrock_data_automation_runtime-0.4.0.tar.gz | 61.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| capo_bedrock_data_automation_runtime-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 165.4 kB
Release files / capo_bedrock_data_automation_runtime-0.4.0.tar.gz
| Download URL | capo_bedrock_data_automation_runtime-0.4.0.tar.gz |
|---|---|
| Size | 61.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9cf4600a05a3a3ff362ed85f342ed7ec9066f5f6ab85664d5eaf4fe5f1900ee2
|
|
BLAKE2b-256 checksum How to use checksums |
37b51117810ff2fcb7b024d3b13a2bab94b1317ba64e2062a98e9e3dcfb17a1d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / capo_bedrock_data_automation_runtime-0.4.0-py3-none-any.whl
| Download URL | capo_bedrock_data_automation_runtime-0.4.0-py3-none-any.whl |
|---|---|
| Size | 104.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ee7a1a4eddd8ce0d975e2b80153016b1e1d88711afb83db7fc0b9d7f23d6f63c
|
|
BLAKE2b-256 checksum How to use checksums |
0a9e9424246e53b6312a045a54be5b04f34115965d4e010e97068eb5bff5d538
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|