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})
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file capo_bedrock_data_automation-0.2.0.tar.gz.
File metadata
- Download URL: capo_bedrock_data_automation-0.2.0.tar.gz
- Upload date:
- Size: 103.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50b4a63e3755d319f9ac827750481e83fdfe91bb428248ebc24d0015c4d6b0a2
|
|
| MD5 |
336cbaadf9e6d4c0aa98274b575d7d75
|
|
| BLAKE2b-256 |
b688ec1227c7bb75bc3f7733cb2c081099ec086042fafe0c01ec55e73f753998
|
File details
Details for the file capo_bedrock_data_automation-0.2.0-py3-none-any.whl.
File metadata
- Download URL: capo_bedrock_data_automation-0.2.0-py3-none-any.whl
- Upload date:
- Size: 273.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6c8126add36787f431fcdba065e007061280dc583f32d4a8aa0982c3a961d1e
|
|
| MD5 |
9e216a4c156b160077dfc2b733193c55
|
|
| BLAKE2b-256 |
c90de7190f29c8cf2b74ff882892fb8fc38e34e463b9e95080715d6cc1013a5b
|