{"id":3016,"library":"mypy-boto3-appfabric","title":"mypy-boto3-appfabric","description":"mypy-boto3-appfabric provides type annotations for the boto3 AppFabric service, enabling static type checking for your AWS interactions. It is part of the larger mypy-boto3 project, generated by mypy-boto3-builder 8.12.0, and releases frequently to keep pace with new boto3 versions and services.","status":"active","version":"1.42.3","language":"en","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["python","aws","boto3","type-hints","mypy","stubs","appfabric"],"install":[{"cmd":"pip install mypy-boto3-appfabric boto3","lang":"bash","label":"Install with pip"}],"dependencies":[{"reason":"Provides the runtime functionality for the AWS SDK for Python (Boto3) for which these are type stubs.","package":"boto3","optional":false},{"reason":"Requires Python 3.9 or newer.","package":"python","optional":false}],"imports":[{"note":"Import the specific client type from the service stub package.","symbol":"AppFabricClient","correct":"from mypy_boto3_appfabric.client import AppFabricClient"},{"note":"Import TypeDefs and Literals as needed for more specific typing.","symbol":"AppFabricServiceName","correct":"from mypy_boto3_appfabric.type_defs import AppFabricServiceName"}],"quickstart":{"code":"import boto3\nfrom mypy_boto3_appfabric.client import AppFabricClient\nfrom os import environ\n\n\ndef get_appfabric_client() -> AppFabricClient:\n    # Ensure boto3 is configured, e.g., via AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION_NAME env vars\n    client: AppFabricClient = boto3.client(\n        \"appfabric\",\n        region_name=environ.get('AWS_REGION_NAME', 'us-east-1')\n    )\n    return client\n\n\nif __name__ == \"__main__\":\n    appfabric_client = get_appfabric_client()\n    print(f\"AppFabric client created: {appfabric_client}\")\n    # Example: List app bundles (replace with actual AppFabric operation)\n    try:\n        response = appfabric_client.list_app_bundles()\n        print(f\"Successfully listed app bundles: {len(response.get('appBundleList', []))}\")\n    except Exception as e:\n        print(f\"Error listing app bundles: {e}\")","lang":"python","description":"Demonstrates how to import the AppFabricClient type and use it to type-hint a boto3 client instance, enabling autocompletion and static analysis."},"warnings":[{"fix":"Upgrade your Python environment to 3.9 or newer.","message":"Python 3.8 support was removed for all `mypy-boto3` packages with `mypy-boto3-builder` version 8.12.0. Users on Python 3.8 will need to upgrade to Python 3.9+ to use the latest stubs.","severity":"breaking","affected_versions":"mypy-boto3-builder >=8.12.0 (affects all generated stubs)"},{"fix":"Review your type hint imports and update TypeDef names if they no longer resolve correctly.","message":"The `mypy-boto3-builder` 8.9.0 release introduced changes to how TypeDef names are generated (e.g., shorter names, `Extra` postfix moved). If you were relying on specific generated TypeDef names, these may have changed.","severity":"breaking","affected_versions":"mypy-boto3-builder >=8.9.0 (affects all generated stubs)"},{"fix":"Ensure `boto3` is installed alongside `mypy-boto3-appfabric` (e.g., `pip install boto3 mypy-boto3-appfabric`).","message":"`mypy-boto3-appfabric` provides only type stubs. You must also install the `boto3` library for the runtime functionality.","severity":"gotcha","affected_versions":"All versions"},{"fix":"Consider `pip install boto3-stubs-lite` or use an external type checker.","message":"PyCharm users might experience slow performance with `Literal` overloads. It is recommended to use `boto3-stubs-lite` or disable PyCharm's type checker and rely on external tools like MyPy or Pyright.","severity":"gotcha","affected_versions":"All versions"},{"fix":"Always refer to the `mypy-boto3-builder` changelog for foundational changes affecting stub generation.","message":"The version of `mypy-boto3-appfabric` (e.g., 1.42.3) generally aligns with the `boto3` version it provides stubs for. However, the `mypy-boto3-builder` (e.g., 8.12.0), which generates these stubs, has its own independent versioning. Breaking changes in the builder apply to all generated stub packages.","severity":"gotcha","affected_versions":"All versions"},{"fix":"Ensure your type checker (e.g., mypy, pyright) is up-to-date and configured to correctly discover `PEP 561` compliant stub packages.","message":"With `mypy-boto3-builder` 8.12.0, all packages migrated to `PEP 561` for stub distribution. This might affect how some tools discover and use the type stubs if their configuration expects an older distribution method.","severity":"gotcha","affected_versions":"mypy-boto3-builder >=8.12.0 (affects all generated stubs)"}],"env_vars":null,"last_verified":"2026-04-11T00:00:00.000Z","next_check":"2026-07-10T00:00:00.000Z"}