Registry / ai-ml / types-boto3-bedrock

types-boto3-bedrock

JSON →
library1.43.18pypypiunverified

Type annotations for boto3 Bedrock service (v1.43.18), generated by mypy-boto3-builder. Provides static typing support for AWS Bedrock operations in Python projects using mypy, pyright, or other type checkers. Releases follow boto3 updates.

pip install types-boto3-bedrock
INSTALL
IMPORT
SIG · TYPES-BOTO3-BEDROC
T
types-boto3-bedrock
ai-mlpythonv1.43.18
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

BedrockClient
from types_boto3_bedrock.client import BedrockClient
from mypy_boto3_bedrock.client import BedrockClient

Initialize a typed Bedrock client and fetch a foundation model.

import boto3 from mypy_boto3_bedrock.client import BedrockClient from mypy_boto3_bedrock.type_defs import GetFoundationModelResponseTypeDef client: BedrockClient = boto3.client("bedrock", region_name="us-east-1") response: GetFoundationModelResponseTypeDef = client.get_foundation_model(modelIdentifier="amazon.titan-text-express-v1") print(response["modelDetails"]["modelName"])
Debug
Known issues
gotchaDo not import from `types_boto3_bedrock` directly. The correct import root is `mypy_boto3_bedrock`.
fix
Use `import mypy_boto3_bedrock` or import submodules like `mypy_boto3_bedrock.client`.
affects: all
gotchaType stubs only provide static typing; they do not replace boto3 at runtime. Ensure boto3 is installed.
fix
`pip install boto3` alongside the stubs package.
affects: all
deprecatedOlder versions (before 1.35.0) used a different structure. Always install the latest version to match your boto3 version.
fix
Upgrade to latest: `pip install --upgrade types-boto3-bedrock`.
affects: <1.35.0
Upgrade
Version history
1.43.18latest on PyPI · released May 29, 2026
Audit
Dependencies
boto3requiredType stubs annotate boto3; boto3 is required at runtime.
typing-extensionsrequiredUsed for backporting type hints on older Python versions.
Agent activity
18 hits · last 30 days
node
16
OpenAI (training)
1
Resources
types-boto3-bedrock — pip install types-boto3-bedrock · libregistry