types-aiobotocore-securityhub

raw JSON →
3.5.0 verified Fri May 01 auth: no python

Type annotations for aiobotocore SecurityHub 3.5.0 service, generated with mypy-boto3-builder 8.12.0. Provides static typing support for aiobotocore's SecurityHub client, paginators, and waiters. Current version: 3.5.0. Released as part of the mypy-boto3-builder ecosystem, updates follow aiobotocore releases.

pip install types-aiobotocore-securityhub
error ModuleNotFoundError: No module named 'types_aiobotocore_securityhub'
cause Package not installed or misspelled.
fix
Run 'pip install types-aiobotocore-securityhub'.
error Cannot import name 'SecurityHubClient' from 'types_aiobotocore_securityhub'
cause Incorrect import path; maybe the class name differs.
fix
Verify the exact name: 'SecurityHubClient' (capitalization). Check stub files if needed.
deprecated Python 3.8 support removed in version 8.12.0 of the builder (which generates this package).
fix Upgrade to Python 3.9+.
breaking In builder version 8.9.0, TypeDef names for packed method arguments were shortened, potentially breaking imports of specific type definitions.
fix Update your type imports to use shorter names (e.g., 'CreateDistributionRequestTypeDef' instead of 'CreateDistributionRequestRequestTypeDef').
gotcha This package only provides type annotations; you must still install aiobotocore and botocore at runtime.
fix Install aiobotocore (e.g., 'pip install aiobotocore').

Basic usage: import the typed client and use it with aiobotocore session.

import asyncio
from types_aiobotocore_securityhub import SecurityHubClient

async def main():
    session = ...  # your aiobotocore session
    async with session.create_client('securityhub', region_name='us-east-1') as client:
        # client is type-annotated as SecurityHubClient
        response = await client.get_findings()
        print(response)

asyncio.run(main())