{"id":3026,"library":"mypy-boto3-auditmanager","title":"Mypy Boto3 AuditManager Stubs","description":"mypy-boto3-auditmanager provides PEP 561 compliant type annotations for the AWS Boto3 AuditManager service, ensuring static type checking for your Boto3 clients. It is currently at version 1.42.3 and is actively maintained, with frequent releases tied to the upstream `boto3` library and `mypy-boto3-builder` updates.","status":"active","version":"1.42.3","language":"en","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["mypy","boto3","aws","type-hints","stubs","auditmanager","type-checking"],"install":[{"cmd":"pip install mypy-boto3-auditmanager","lang":"bash","label":"Install Boto3 AuditManager stubs"}],"dependencies":[{"reason":"This package provides type stubs for the `boto3` library; it is designed to match a specific `boto3` version.","package":"boto3==1.42.3"}],"imports":[{"note":"This is the type hint for the Boto3 AuditManager client.","symbol":"AuditManagerClient","correct":"from mypy_boto3_auditmanager.client import AuditManagerClient"},{"note":"Type definitions for service-specific request parameters.","symbol":"GetChangeLogsRequestRequestTypeDef","correct":"from mypy_boto3_auditmanager.type_defs import GetChangeLogsRequestRequestTypeDef"},{"note":"Type definitions for service-specific response objects.","symbol":"GetChangeLogsResponseTypeDef","correct":"from mypy_boto3_auditmanager.type_defs import GetChangeLogsResponseTypeDef"}],"quickstart":{"code":"import boto3\nfrom mypy_boto3_auditmanager.client import AuditManagerClient\nfrom mypy_boto3_auditmanager.type_defs import GetChangeLogsRequestRequestTypeDef, GetChangeLogsResponseTypeDef\n\n# Instantiate a Boto3 client with type hints\nclient: AuditManagerClient = boto3.client(\"auditmanager\")\n\n# Example of using type definitions for request and response\nrequest_params: GetChangeLogsRequestRequestTypeDef = {\n    \"auditReportId\": \"your-audit-report-id\", # Replace with actual ID\n    \"nextToken\": \"\",\n    \"maxResults\": 10\n}\n\ntry:\n    # Call a service method, type checkers will validate arguments and return type\n    response: GetChangeLogsResponseTypeDef = client.get_change_logs(**request_params)\n    print(f\"Successfully retrieved {len(response.get('changeLogs', []))} change logs.\")\nexcept Exception as e:\n    print(f\"Error calling AuditManager: {e}\")","lang":"python","description":"This quickstart demonstrates how to import and use the `AuditManagerClient` type for type-hinting a Boto3 client, and how to use specific type definitions for request and response objects for improved static analysis. Ensure 'your-audit-report-id' is replaced with a valid value for a runnable example."},"warnings":[{"fix":"Upgrade your Python environment to 3.9 or newer.","message":"Python 3.8 support was removed for all `mypy-boto3` packages, including `mypy-boto3-auditmanager`, starting with `mypy-boto3-builder` version 8.12.0.","severity":"breaking","affected_versions":"mypy-boto3-builder >=8.12.0"},{"fix":"Review your code for any custom `TypeDef` imports and adjust names according to the updated conventions. Refer to the `mypy-boto3-builder` release notes for specific services you use.","message":"Type Definition Naming Conventions underwent changes in `mypy-boto3-builder 8.9.0`. For example, `CreateDistributionRequestRequestTypeDef` became `CreateDistributionRequestTypeDef` and `Extra` postfixes moved to the end.","severity":"breaking","affected_versions":"mypy-boto3-builder >=8.9.0"},{"fix":"Always install `mypy-boto3-auditmanager` with the same major.minor version as `boto3` (e.g., `pip install boto3==1.42.3 mypy-boto3-auditmanager==1.42.3`).","message":"It is critical that the version of `mypy-boto3-auditmanager` exactly matches the major and minor version of your installed `boto3` library (e.g., `mypy-boto3-auditmanager==1.x.y` for `boto3==1.x.z`). Mismatched versions can lead to incorrect type checking or runtime errors.","severity":"gotcha","affected_versions":"All versions"},{"fix":"Ensure your environment (e.g., `mypy` configuration) correctly discovers PEP 561-compliant type packages. No direct code change is typically required, but check your `mypy` setup.","message":"`mypy-boto3` packages migrated to PEP 561 packaging in `mypy-boto3-builder 8.12.0`. While generally transparent, this might affect advanced build systems or tools that rely on specific package discovery mechanisms.","severity":"gotcha","affected_versions":"mypy-boto3-builder >=8.12.0"}],"env_vars":null,"last_verified":"2026-04-11T00:00:00.000Z","next_check":"2026-07-10T00:00:00.000Z"}