This library provides a complete set of PEP 561 type annotations for `aiobotocore`'s Secrets Manager service. It enhances development with static type checking, autocompletion, and refactoring support for asynchronous AWS operations. Currently at version 3.4.0, it is part of the `mypy-boto3-builder` ecosystem which follows a frequent release cadence, often aligning with new `aiobotocore` and AWS service updates.
pip install types-aiobotocore-secretsmanagerVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to obtain a typed `SecretsManagerClient` using `aiobotocore.session` and perform a basic asynchronous operation like listing secrets. The `TYPE_CHECKING` block ensures type imports do not add runtime dependencies.
Ensure your project uses Python 3.9 or newer. If you must use Python 3.8, pin to an older `types-aiobotocore-secretsmanager` version (e.g., `<3.4.0`) that was built with `mypy-boto3-builder` <8.12.0.
Always install `types-aiobotocore-secretsmanager` with a version constraint that matches your `aiobotocore` installation, or allow `pip` to resolve compatible versions. For example, if you have `aiobotocore==2.13.0`, you should ideally install `types-aiobotocore-secretsmanager==2.13.0` (or `~=2.13.0`). The `types-aiobotocore-secretsmanager` package has `aiobotocore` as a runtime dependency, so pip *should* find a compatible version.
If you are directly importing and using specific `TypeDef` classes and upgrading to a new major version of `types-aiobotocore-secretsmanager`, review the release notes of `mypy-boto3-builder` for potential naming changes to `TypeDef` structures. Update your imports accordingly.
Ensure `aiobotocore` is installed in your environment: `pip install aiobotocore`.