{"id":3090,"library":"mypy-boto3-fms","title":"mypy-boto3-fms Type Annotations for AWS FMS","description":"mypy-boto3-fms provides type annotations for the AWS Firewall Manager (FMS) service client, paginators, and waiters, enhancing static analysis with tools like MyPy. It is part of the `mypy-boto3` family of projects, automatically generated by `mypy-boto3-builder`. The current version is 1.42.3, and it receives frequent updates to stay in sync with boto3 releases and `mypy-boto3-builder` improvements.","status":"active","version":"1.42.3","language":"python","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["boto3","aws","typing","type-hints","mypy","stubs","fms","static-analysis"],"install":[{"cmd":"pip install mypy-boto3-fms","lang":"bash","label":"Install service stubs"},{"cmd":"pip install boto3","lang":"bash","label":"Install runtime library (if not already)"}],"dependencies":[{"reason":"Runtime library for which these stubs provide type hints. This package provides *only* type stubs.","package":"boto3","optional":false}],"imports":[{"wrong":"from mypy_boto3_fms import FMSClient","symbol":"FMSClient","correct":"from mypy_boto3_fms import FMSClient"}],"quickstart":{"code":"import boto3\nfrom mypy_boto3_fms import FMSClient\nimport os\n\n# Ensure boto3 is installed: pip install boto3\n\nsession = boto3.Session(\n    region_name=os.environ.get('AWS_REGION', 'us-east-1'),\n    aws_access_key_id=os.environ.get('AWS_ACCESS_KEY_ID', 'DUMMY_KEY'),\n    aws_secret_access_key=os.environ.get('AWS_SECRET_ACCESS_KEY', 'DUMMY_SECRET')\n)\n\n# The client object 'fms_client' will now have full type hints\nfms_client: FMSClient = session.client('fms')\n\ntry:\n    # Example operation: List Admin Accounts\n    response = fms_client.list_admin_accounts()\n    print(f\"FMS Admin Accounts: {response.get('AdminAccounts', [])}\")\n\n    # Example with paginator\n    paginator = fms_client.get_paginator('list_policies')\n    for page in paginator.paginate():\n        for policy in page.get('PolicyList', []):\n            print(f\"Policy: {policy.get('PolicyName')}\")\nexcept Exception as e:\n    print(f\"Error performing FMS operation: {e}\")","lang":"python","description":"This quickstart demonstrates how to obtain a type-hinted FMS client and perform basic operations using `mypy-boto3-fms` alongside `boto3`. It highlights how `FMSClient` annotations provide type safety for client calls and responses, including paginators."},"warnings":[{"fix":"Upgrade your Python environment to 3.9 or later.","message":"Python 3.8 support was removed by `mypy-boto3-builder` starting from version 8.12.0. Projects using `mypy-boto3-fms` must now run on Python 3.9 or newer.","severity":"breaking","affected_versions":">=8.12.0 of mypy-boto3-builder (and generated stubs)"},{"fix":"Ensure `boto3` is installed in your environment (`pip install boto3`).","message":"This package provides type stubs for boto3, not a replacement. You must install `boto3` separately for runtime functionality. `mypy-boto3-fms` alone does not provide the AWS SDK.","severity":"gotcha","affected_versions":"All versions"},{"fix":"Update your code to reflect the new, shorter TypeDef names. Refer to the specific service's `type_defs.pyi` for precise names.","message":"`mypy-boto3-builder` version 8.9.0 introduced breaking changes in TypeDef naming conventions, affecting all generated services. TypeDefs for method arguments now use shorter names (e.g., `CreateDistributionRequestRequestTypeDef` became `CreateDistributionRequestTypeDef`).","severity":"breaking","affected_versions":">=8.9.0 of mypy-boto3-builder (and generated stubs)"},{"fix":"Most users will not need a fix. If issues arise, ensure your type checker (e.g., MyPy) is up-to-date and correctly configured to discover PEP 561 stubs. Avoid manual `MYPYPATH` manipulation if possible.","message":"`mypy-boto3-builder` 8.12.0 migrated all generated packages to PEP 561 compliant distribution. While generally an improvement for type checker discovery, users with highly customized `MYPYPATH` or build systems might need to adjust their configurations.","severity":"breaking","affected_versions":">=8.12.0 of mypy-boto3-builder (and generated stubs)"}],"env_vars":null,"search_vec":"'1.42.3':57 'analysi':30,87 'annot':6,16 'automat':46 'aw':8,19,77 'boto3':3,12,42,51,68,73,76 'builder':52,74 'client':24 'current':54 'enhanc':28 'famili':43 'firewal':20 'fms':4,9,13,22,84 'frequent':61 'generat':47 'hint':81 'improv':75 'like':33 'manag':21 'mypi':2,11,34,41,50,72,82 'mypy-boto3':40 'mypy-boto3-builder':49,71 'mypy-boto3-fms':1,10 'pagin':25 'part':37 'project':45 'provid':14 'receiv':60 'releas':69 'servic':23 'static':29,86 'static-analysi':85 'stay':64 'stub':83 'sync':66 'tool':32 'type':5,15,78,80 'type-hint':79 'updat':62 'version':55 'waiter':27","created_at":"2026-04-11T09:20:37.355839+00:00","updated_at":"2026-04-16T16:56:43.333008+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\n  File \"/tmp/tmp3fdpabwa/venv/lib/python3.12/site-packages/mypy_boto3_fms/__init__.py\", line 39, in <module>\n    from .client import FMSClient\n  File \"/tmp/tmp3fdpabwa/venv/lib/python3.12/site-packages/mypy_boto3_fms/client.py"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"1.43.0","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/youtype/mypy_boto3_builder","docs":"https://youtype.github.io/boto3_stubs_docs/mypy_boto3_fms/","changelog":null,"pypi":"https://pypi.org/project/mypy-boto3-fms/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["type-stubs","aws"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-08-28","next_check":"2026-07-10","install_tag":null}}