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.3.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.3.0.tar.gz | 57.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| capo_bedrock_data_automation_runtime-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 158.1 kB
Release files / capo_bedrock_data_automation_runtime-0.3.0.tar.gz
| Download URL | capo_bedrock_data_automation_runtime-0.3.0.tar.gz |
|---|---|
| Size | 57.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
55dd04e214467767547976befafc56c411f2fb90c654d711bf66ac3c604cbc07
|
|
BLAKE2b-256 checksum How to use checksums |
0b8d536772a6a8c86f53068746ca5cdaf8880d0255ea1febe4fde9525994b66a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.16 {"installer":{"name":"uv","version":"0.12.16","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.3.0-py3-none-any.whl
| Download URL | capo_bedrock_data_automation_runtime-0.3.0-py3-none-any.whl |
|---|---|
| Size | 100.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c6a557320588c05d7401993812aaaf6ba11f3cbef3c90e237f50ad309ca07ff5
|
|
BLAKE2b-256 checksum How to use checksums |
37426b08f7ed7cbaf8f72a0f2e92bd231e52e332de67b2f9c608d5fb78e85a1d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.16 {"installer":{"name":"uv","version":"0.12.16","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}
|