{"id":3340,"library":"mypy-boto3-bedrock-data-automation","title":"Type Annotations for Boto3 Bedrock Data Automation","description":"This library provides type annotations for the `boto3` AWS SDK, specifically for the Bedrock Data Automation service. It enables static type checking tools like `mypy` to validate interactions with the service, improving code quality and catching potential errors at development time. It is generated by the `mypy-boto3-builder` project and is frequently updated to align with `boto3` and AWS API changes. The current version is 1.42.82.","status":"active","version":"1.42.82","language":"en","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["aws","boto3","mypy","type-hints","bedrock","data-automation"],"install":[{"cmd":"pip install mypy-boto3-bedrock-data-automation boto3","lang":"bash","label":"Install library and boto3"}],"dependencies":[{"reason":"Provides the actual AWS SDK client that these stubs type-hint.","package":"boto3","optional":false},{"reason":"The static type checker that consumes these annotations. Not required at runtime.","package":"mypy","optional":true}],"imports":[{"symbol":"BedrockDataAutomationClient","correct":"from mypy_boto3_bedrock_data_automation.client import BedrockDataAutomationClient"},{"symbol":"ListDataAutomationJobsRequestRequestTypeDef","correct":"from mypy_boto3_bedrock_data_automation.type_defs import ListDataAutomationJobsRequestRequestTypeDef"},{"symbol":"DataAutomationJobSummaryTypeDef","correct":"from mypy_boto3_bedrock_data_automation.type_defs import DataAutomationJobSummaryTypeDef"}],"quickstart":{"code":"import boto3\nfrom mypy_boto3_bedrock_data_automation.client import BedrockDataAutomationClient\nfrom mypy_boto3_bedrock_data_automation.type_defs import ListDataAutomationJobsRequestRequestTypeDef\nfrom typing import TYPE_CHECKING\nimport os\n\n# Ensure boto3 is configured, e.g., via AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION_NAME env vars\n# Or configure a session explicitly: boto3.Session(region_name=\"us-east-1\")\n\nif TYPE_CHECKING:\n    client: BedrockDataAutomationClient = boto3.client(\"bedrock-data-automation\")\nelse:\n    client = boto3.client(\"bedrock-data-automation\")\n\n# Example: List data automation jobs\ntry:\n    print(\"Listing Bedrock Data Automation jobs...\")\n    response = client.list_data_automation_jobs()\n    jobs = response.get(\"dataAutomationJobs\", [])\n    \n    if jobs:\n        print(f\"Found {len(jobs)} jobs:\")\n        for job in jobs:\n            print(f\"  Job ID: {job.get('jobId')}, Status: {job.get('status')}, Created: {job.get('creationTime')}\")\n    else:\n        print(\"No Bedrock Data Automation jobs found.\")\n\nexcept client.exceptions.ServiceException as e:\n    print(f\"AWS Service Error: {e.response['Error']['Code']} - {e.response['Error']['Message']}\")\nexcept Exception as e:\n    print(f\"An unexpected error occurred: {e}\")\n","lang":"python","description":"This example demonstrates how to initialize a `boto3` client with `mypy-boto3-bedrock-data-automation` type hints and perform a simple API call (listing jobs). The `TYPE_CHECKING` block ensures type hints are only active during static analysis, avoiding runtime overhead. Replace `list_data_automation_jobs` with other service calls as needed."},"warnings":[{"fix":"Upgrade your Python environment to version 3.9 or newer.","message":"Starting with `mypy-boto3-builder` version 8.12.0 (which generated `mypy-boto3-bedrock-data-automation` 1.42.82+), support for Python 3.8 has been removed. All generated stub packages now require Python 3.9 or newer.","severity":"breaking","affected_versions":"mypy-boto3-bedrock-data-automation >= 1.42.82"},{"fix":"Ensure your environment (IDE, build tools) correctly recognizes PEP 561 stubs. Re-evaluate any custom stub-locating configurations.","message":"The `mypy-boto3` family of packages, including this one, migrated to PEP 561 compliant packaging in builder version 8.12.0. While generally beneficial for stub discovery, this might affect custom tooling or build processes that relied on previous, non-standard stub packaging methods.","severity":"breaking","affected_versions":"mypy-boto3-bedrock-data-automation >= 1.42.82"},{"fix":"Install `boto3` and ensure its version roughly matches the `mypy-boto3-bedrock-data-automation` version number.","message":"This package provides only type annotations. You must install `boto3` separately (`pip install boto3`) for the actual AWS SDK functionality at runtime. For optimal type checking, ensure your `mypy-boto3-bedrock-data-automation` version aligns with your `boto3` version (e.g., `boto3==1.28.x` with `mypy-boto3-bedrock-data-automation==1.28.x`).","severity":"gotcha","affected_versions":"All versions"},{"fix":"Review your `TypeDef` imports and update names according to the latest generated stubs if upgrading from an older package version.","message":"Type definition names were shortened and conflicting names resolved in `mypy-boto3-builder` 8.9.0. If you explicitly imported `TypeDef` classes from older versions, their names might have changed (e.g., `CreateDistributionRequestRequestTypeDef` might become `CreateDistributionRequestTypeDef`).","severity":"breaking","affected_versions":"mypy-boto3-bedrock-data-automation >= 1.35.0 (corresponding to builder 8.9.0)"}],"env_vars":null,"last_verified":"2026-04-11T00:00:00.000Z","next_check":"2026-07-10T00:00:00.000Z"}