Registry /
type-stubs / mypy-boto3-securitylake
Install & Compatibility
Where this runs
tested against v1.43.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.608s · 52MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 3.7s · import 0.552s · 52MB
50MB installed
● package 50MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
SecurityLakeClient
✓ from mypy_boto3_securitylake.client import SecurityLakeClient
For type-hinting the SecurityLake service client.
ListDataLakesResponseTypeDef
✓ from mypy_boto3_securitylake.type_defs import ListDataLakesResponseTypeDef
For type-hinting responses from SecurityLake API calls, e.g., `list_data_lakes()`.
Demonstrates how to import and use the `SecurityLakeClient` for type-hinted interaction with AWS SecurityLake, including fetching data lakes and their details. Explicit type annotations are shown for clarity and improved IDE experience.
import boto3
from mypy_boto3_securitylake.client import SecurityLakeClient
from mypy_boto3_securitylake.type_defs import ListDataLakesResponseTypeDef
import os
def get_securitylake_data_lakes() -> ListDataLakesResponseTypeDef:
# It's recommended to explicitly type the client for best IDE support
client: SecurityLakeClient = boto3.client(
"securitylake",
region_name=os.environ.get('AWS_REGION', 'us-east-1'),
aws_access_key_id=os.environ.get('AWS_ACCESS_KEY_ID', ''),
aws_secret_access_key=os.environ.get('AWS_SECRET_ACCESS_KEY', '')
)
response = client.list_data_lakes()
return response
if __name__ == "__main__":
data_lakes = get_securitylake_data_lakes()
print(f"Found {len(data_lakes.get('DataLakes', []))} data lakes:")
for dl in data_lakes.get('DataLakes', []):
print(f"- Region: {dl['Region']}, ARN: {dl['DataLakeArn']}")
Debug
Known issues
breakingPython 3.8 support was removed with `mypy-boto3-builder` version 8.12.0. This `mypy-boto3-securitylake` package (version 1.42.3) requires Python 3.9 or newer.fixUpgrade your Python environment to 3.9 or newer.
affects: >=1.42.0 (generated by builder 8.12.0+)
breakingBeginning with `mypy-boto3-builder` version 8.9.0, there were breaking changes to TypeDef naming conventions, including shorter names for packed method arguments and moving the `Extra` postfix. This might require updating existing type annotations in your code.fixReview and update `TypeDef` names in your codebase according to the new conventions.
affects: >=1.40.0 (generated by builder 8.9.0+)
gotchaThis package provides type stubs for `boto3`. You must also install `boto3` itself for your code to run, as `mypy-boto3-securitylake` only provides the type definitions, not the AWS SDK implementation.fixEnsure `boto3` is installed alongside `mypy-boto3-securitylake` (e.g., `pip install mypy-boto3-securitylake boto3`).
affects: All versions
gotchaTo ensure accurate type hints and autocompletion, keep `mypy-boto3-securitylake` and `boto3` versions synchronized. Significant version mismatches can lead to incorrect type information or missing definitions.fixRegularly update both packages, ideally together, to their latest compatible versions.
affects: All versions
gotchaSome IDEs (e.g., PyCharm) may experience slow performance or high CPU usage when processing the extensive type information from `boto3-stubs` (the umbrella project for `mypy-boto3-*` packages).fixConsider using `boto3-stubs-lite` if the full stubs are too demanding, or configure your IDE to use external type checkers like `mypy` or `pyright` instead of its built-in type checker.
affects: All versions
gotchaFor optimal autocompletion and type inference in IDEs like VSCode and PyCharm, it is often beneficial to explicitly annotate the type of `boto3.client` and `boto3.resource` calls with the corresponding `mypy_boto3_securitylake` client or resource type.fixAdd explicit type hints, e.g., `client: SecurityLakeClient = boto3.client('securitylake')`. affects: All versions
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredThis package provides type stubs for the `boto3` library; `boto3` itself must be installed to use the AWS SDK functionality.