{"id":3561,"library":"mypy-boto3-bedrock-data-automation-runtime","title":"Type Annotations for boto3 Runtime for Bedrock Data Automation","description":"mypy-boto3-bedrock-data-automation-runtime provides type annotations for the `boto3` AWS SDK, specifically for the `RuntimeforBedrockDataAutomation` service, ensuring type safety and improved IDE auto-completion. It is part of the `mypy-boto3-builder` ecosystem, currently at version 1.42.44, and follows a frequent release cadence, often synchronizing with `boto3` updates to provide up-to-date type information.","status":"active","version":"1.42.44","language":"en","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["boto3","aws","bedrock","type-hints","mypy","stubs","automation","generative-ai"],"install":[{"cmd":"pip install mypy-boto3-bedrock-data-automation-runtime","lang":"bash","label":"Standalone package"},{"cmd":"pip install 'boto3-stubs[bedrock-data-automation-runtime]'","lang":"bash","label":"As part of boto3-stubs"}],"dependencies":[{"reason":"This library provides type stubs for the `boto3` AWS SDK. `boto3` is required at runtime to execute AWS operations.","package":"boto3","optional":false},{"reason":"Often a transitive dependency for advanced type hints, especially on older Python versions.","package":"typing-extensions","optional":true}],"imports":[{"symbol":"RuntimeforBedrockDataAutomationClient","correct":"from mypy_boto3_bedrock_data_automation_runtime.client import RuntimeforBedrockDataAutomationClient"},{"note":"Type definitions for service responses are typically found in the `type_defs` submodule.","symbol":"ListTagsForResourceResponseTypeDef","correct":"from mypy_boto3_bedrock_data_automation_runtime.type_defs import ListTagsForResourceResponseTypeDef"}],"quickstart":{"code":"import boto3\nfrom mypy_boto3_bedrock_data_automation_runtime.client import RuntimeforBedrockDataAutomationClient\nfrom os import environ\n\ndef get_bedrock_data_automation_runtime_client() -> RuntimeforBedrockDataAutomationClient:\n    \"\"\"\n    Initializes and returns a typed Bedrock Data Automation Runtime client.\n    \"\"\"\n    # Using environment variables for AWS credentials is a common practice\n    # and makes the example runnable without hardcoding.\n    # In a real application, boto3 will automatically look for credentials\n    # in various locations (e.g., ~/.aws/credentials, IAM roles).\n    aws_access_key_id = environ.get('AWS_ACCESS_KEY_ID', 'YOUR_ACCESS_KEY')\n    aws_secret_access_key = environ.get('AWS_SECRET_ACCESS_KEY', 'YOUR_SECRET_KEY')\n    aws_region = environ.get('AWS_REGION', 'us-east-1')\n\n    # The actual boto3 client is untyped; mypy-boto3 provides the type hint.\n    client: RuntimeforBedrockDataAutomationClient = boto3.client(\n        \"bedrock-data-automation-runtime\",\n        region_name=aws_region,\n        aws_access_key_id=aws_access_key_id,\n        aws_secret_access_key=aws_secret_access_key\n    )\n    return client\n\nif __name__ == \"__main__\":\n    bedrock_data_automation_client = get_bedrock_data_automation_runtime_client()\n    print(f\"Successfully created Bedrock Data Automation Runtime client: {bedrock_data_automation_client}\")\n\n    # Example of calling a method (requires a valid resourceARN for actual execution)\n    # This demonstrates type-checked interaction with the client.\n    # In a real application, consult AWS Bedrock Data Automation Runtime API docs for valid operations.\n    try:\n        # Replace with a real resource ARN if you want to run this successfully\n        response = bedrock_data_automation_client.list_tags_for_resource(resourceARN=\"arn:aws:bedrock:us-east-1:123456789012:data-automation/example\")\n        print(\"list_tags_for_resource call successful:\")\n        print(response)\n    except Exception as e:\n        print(f\"Caught exception during list_tags_for_resource call (expected if ARN is not real): {e}\")","lang":"python","description":"This quickstart demonstrates how to initialize a type-hinted client for the Bedrock Data Automation Runtime service using `boto3` and its corresponding `mypy-boto3` stubs. It includes a placeholder for calling a common operation like `list_tags_for_resource`, highlighting how type checking enhances development."},"warnings":[{"fix":"Upgrade your Python environment to 3.9 or higher.","message":"Support for Python 3.8 has been removed for all `mypy-boto3-builder` generated packages, including this one, starting with `mypy-boto3-builder` version 8.12.0. The minimum required Python version is now 3.9.","severity":"breaking","affected_versions":">=8.12.0 (mypy-boto3-builder)"},{"fix":"Ensure your project's `pyproject.toml` and packaging tools are compatible with PEP 561 standards. Most users installing via `pip` should not experience issues.","message":"The `mypy-boto3-builder` migrated to PEP 561 compliant packages in version 8.12.0. While largely internal, this may affect custom build systems or environments that relied on previous packaging structures.","severity":"breaking","affected_versions":">=8.12.0 (mypy-boto3-builder)"},{"fix":"Review the changelog for `mypy-boto3-builder` and service-specific stubs after updates, and adjust TypeDef imports/usage as necessary.","message":"TypeDef naming conventions can change between major `mypy-boto3-builder` versions. For example, `CreateDistributionRequestRequestTypeDef` became `CreateDistributionRequestTypeDef`. While this specific change affects the CloudFront service, it's indicative of potential similar changes across other services including Bedrock Data Automation Runtime.","severity":"breaking","affected_versions":">=8.9.0 (mypy-boto3-builder)"},{"fix":"Ensure `boto3` is installed in your environment: `pip install boto3`.","message":"This package provides *only* type annotations. It does not include the `boto3` library itself. `boto3` must be installed separately in your project for the code to run at runtime.","severity":"gotcha","affected_versions":"All versions"},{"fix":"Consider using `boto3-stubs-lite` (if its limitations are acceptable), or disable PyCharm's internal type checker and rely on external tools like `mypy` or `pyright`.","message":"PyCharm may experience slow performance or high CPU usage when dealing with `Literal` overloads in `mypy-boto3` packages. This is a known issue (PY-40997) within PyCharm.","severity":"gotcha","affected_versions":"All versions with PyCharm"},{"fix":"Always keep your `mypy-boto3` packages updated to benefit from the latest type definition fixes and improvements.","message":"A specific fix for `ToolUseTypeType` literal was applied for the `bedrock-runtime` service in `mypy-boto3-builder` 8.12.0. While this package is for `bedrock-data-automation-runtime`, similar service-specific literal typing issues might appear or have been fixed in past versions, requiring updates.","severity":"gotcha","affected_versions":"Potentially pre-8.12.0 for related Bedrock services"}],"env_vars":null,"last_verified":"2026-04-11T00:00:00.000Z","next_check":"2026-07-10T00:00:00.000Z"}