Getting Started
Installation
pip install capo-bedrock-data-automation
Usage
from capo_bedrock_data_automation import AsyncBedrockDataAutomationClient
async def main():
async with AsyncBedrockDataAutomationClient() as bedrock_data_automation:
# Example: call the copy_blueprint_stage operation
response = await bedrock_data_automation.copy_blueprint_stage()
print(response)
Pagination
Some operations in this SDK support pagination. If the operation supports pagination it will have an iter_ prefixed method that returns an async iterator.
from capo_bedrock_data_automation import AsyncBedrockDataAutomationClient
async def main():
async with AsyncBedrockDataAutomationClient() as bedrock_data_automation:
# Example: paginate over list_data_automation_library_entities
async for item in bedrock_data_automation.iter_list_data_automation_library_entities():
print(item)
Error Handling
The SDK raises exceptions for errors returned by the API. Catch them to handle failures gracefully.
from capo_bedrock_data_automation import AsyncBedrockDataAutomationClient
from capo_bedrock_data_automation.error import AccessDeniedException
async def main():
async with AsyncBedrockDataAutomationClient() as bedrock_data_automation:
try:
await bedrock_data_automation.copy_blueprint_stage()
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 import AsyncBedrockDataAutomationClient
async def main():
async with AsyncBedrockDataAutomationClient() as bedrock_data_automation:
# Default: 3 attempts for every operation
response = await bedrock_data_automation.copy_blueprint_stage()
# Override per operation
response = await bedrock_data_automation.copy_blueprint_stage(config_overrides={"retry_max_attempts": 5})
# Disable retries for this call
response = await bedrock_data_automation.copy_blueprint_stage(config_overrides={"retry_max_attempts": 1})
Release files for capo-bedrock-data-automation 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-0.4.0.tar.gz | 111.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| capo_bedrock_data_automation-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 393.6 kB
Release files / capo_bedrock_data_automation-0.4.0.tar.gz
| Download URL | capo_bedrock_data_automation-0.4.0.tar.gz |
|---|---|
| Size | 111.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
82fbebc264468a09a6a6ba3104691fd3c47bb2fc2d0292dcaa3e0bfa7c93e2c9
|
|
BLAKE2b-256 checksum How to use checksums |
7d9df8b2883bd81f1d576744bb17de9245aa135f42929305f32735e58ab07394
|
| 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-0.4.0-py3-none-any.whl
| Download URL | capo_bedrock_data_automation-0.4.0-py3-none-any.whl |
|---|---|
| Size | 281.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2c1881020ccb7aba4c1c827065021dd8e4493c6f393c17919222fdd4c76474e5
|
|
BLAKE2b-256 checksum How to use checksums |
06054fda41b2f363f179a700c75a57a0fdbb71d267c988abfca2a96bb39f1208
|
| 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}
|