{"id":3133,"library":"mypy-boto3-route53resolver","title":"mypy-boto3-route53resolver","description":"mypy-boto3-route53resolver provides type annotations for the `boto3` Route53Resolver service. It is part of the `mypy-boto3` project, which offers comprehensive type hints for all `boto3` services. This package, currently at version 1.42.10, is generated by `mypy-boto3-builder` (version 8.12.0) and typically releases frequently to keep pace with `boto3` updates and new AWS services.","status":"active","version":"1.42.10","language":"en","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["mypy","boto3","aws","type-hints","stubs","route53resolver","static-analysis"],"install":[{"cmd":"pip install mypy-boto3-route53resolver","lang":"bash","label":"Install package"}],"dependencies":[{"reason":"This package provides type stubs for the `boto3` runtime library. `boto3` must be installed for runtime functionality.","package":"boto3","optional":false},{"reason":"Required to perform static type checking using these stubs.","package":"mypy","optional":true}],"imports":[{"symbol":"Route53ResolverClient","correct":"from mypy_boto3_route53resolver.client import Route53ResolverClient"},{"note":"Type definitions are typically imported from the `type_defs` submodule.","symbol":"ListFirewallConfigsRequestRequestTypeDef","correct":"from mypy_boto3_route53resolver.type_defs import ListFirewallConfigsRequestRequestTypeDef"}],"quickstart":{"code":"import boto3\nfrom typing import TYPE_CHECKING\n\n# Only import type hints during type checking, not at runtime\nif TYPE_CHECKING:\n    from mypy_boto3_route53resolver.client import Route53ResolverClient\n    from mypy_boto3_route53resolver.type_defs import ListFirewallConfigsRequestRequestTypeDef\n\ndef get_resolver_client() -> \"Route53ResolverClient\":\n    \"\"\"Initializes and returns a Route53Resolver client with type hints.\"\"\"\n    # boto3.client returns an untyped client; mypy uses the stub's definition\n    return boto3.client(\"route53resolver\")\n\ndef list_firewall_configs():\n    \"\"\"Lists Route53 Resolver firewall configurations.\"\"\"\n    client: Route53ResolverClient = get_resolver_client()\n    \n    # Example request type for a method\n    # The actual arguments passed to list_firewall_configs will be type-checked\n    request_params: ListFirewallConfigsRequestRequestTypeDef = {\n        \"MaxResults\": 10\n    }\n    response = client.list_firewall_configs(**request_params)\n    print(\"Firewall Configurations:\")\n    for config in response.get(\"FirewallConfigs\", []):\n        print(f\"  - {config.get('Id')} ({config.get('Name')})\")\n\nif __name__ == \"__main__\":\n    # This code requires AWS credentials configured (e.g., via AWS CLI or environment variables)\n    try:\n        list_firewall_configs()\n    except Exception as e:\n        print(f\"Error during quickstart execution (likely AWS credentials/config issue): {e}\")\n        print(\"Please ensure your AWS credentials are configured.\")","lang":"python","description":"This quickstart demonstrates how to initialize a `boto3` Route53Resolver client and use its methods with `mypy-boto3-route53resolver` type hints. The `TYPE_CHECKING` block ensures type imports are only active during static analysis, avoiding runtime overhead or potential circular imports. The example lists firewall configurations, expecting AWS credentials to be configured in the environment."},"warnings":[{"fix":"Upgrade your Python environment to 3.9 or higher. Reinstall `mypy-boto3-route53resolver` to ensure the correct PEP 561-compliant package structure is in place.","message":"The `mypy-boto3-builder` (which generates this package) migrated to PEP 561 package structure and removed support for Python 3.8 starting with builder version 8.12.0. This means `mypy-boto3-route53resolver` version 1.42.10 and newer will not work with Python 3.8.","severity":"breaking","affected_versions":"mypy-boto3-builder >= 8.12.0 (and generated stub packages)"},{"fix":"Review and update any direct imports or references to `TypeDef` objects in your codebase to match the new naming conventions.","message":"Starting with `mypy-boto3-builder` version 8.9.0, there were breaking changes to how TypeDef names for method arguments are generated, often resulting in shorter names (e.g., `CreateDistributionRequestRequestTypeDef` became `CreateDistributionRequestTypeDef`).","severity":"breaking","affected_versions":"mypy-boto3-builder >= 8.9.0 (and generated stub packages)"},{"fix":"Ensure `pip install boto3` is run in your environment alongside `mypy-boto3-route53resolver`.","message":"The `mypy-boto3-route53resolver` package provides type hints only; it does not include the `boto3` runtime library itself. For your code to execute, `boto3` must be installed separately.","severity":"gotcha","affected_versions":"all"},{"fix":"Install `mypy` (`pip install mypy`) and run it against your project (e.g., `mypy your_module.py` or configure it via `pyproject.toml`).","message":"To effectively use these type annotations, `mypy` must be installed and configured to check your project. Simply installing the stub package is not enough; you must integrate `mypy` into your development workflow.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-11T00:00:00.000Z","next_check":"2026-07-10T00:00:00.000Z"}