{"id":3683,"library":"mypy-boto3-resiliencehub","title":"mypy-boto3-resiliencehub Type Stubs","description":"mypy-boto3-resiliencehub provides static type annotations for the `boto3` Resilience Hub service client. It is part of the `mypy-boto3` collection, generated by `mypy-boto3-builder`, aiming to improve developer experience by enabling type checking for AWS SDK for Python (boto3) code. The package version `1.42.3` corresponds to the `boto3` version it types. This project is actively maintained with frequent updates to align with new `boto3` releases and address issues.","status":"active","version":"1.42.3","language":"en","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["aws","boto3","mypy","type-hints","stubs","resiliencehub","typing"],"install":[{"cmd":"pip install mypy-boto3-resiliencehub boto3","lang":"bash","label":"Install stubs and boto3"}],"dependencies":[{"reason":"This package provides type stubs for boto3's ResilienceHub client; boto3 itself is required for runtime functionality.","package":"boto3","optional":false}],"imports":[{"symbol":"ResilienceHubClient","correct":"from mypy_boto3_resiliencehub.client import ResilienceHubClient"},{"note":"Type definition objects are found in `type_defs`, not directly in `client`.","wrong":"from mypy_boto3_resiliencehub.client import ListAppsOutputTypeDef","symbol":"ListAppsOutputTypeDef","correct":"from mypy_boto3_resiliencehub.type_defs import ListAppsOutputTypeDef"}],"quickstart":{"code":"import os\nimport boto3\nfrom mypy_boto3_resiliencehub.client import ResilienceHubClient\nfrom mypy_boto3_resiliencehub.type_defs import ListAppsOutputTypeDef\n\n# Ensure boto3 is configured, e.g., via AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION_NAME env vars\n# Or AWS_PROFILE and AWS_REGION\n\nregion_name = os.environ.get('AWS_REGION_NAME', 'us-east-1')\nclient: ResilienceHubClient = boto3.client(\"resiliencehub\", region_name=region_name)\n\ntry:\n    print(f\"Attempting to list Resilience Hub applications in {region_name}...\")\n    response: ListAppsOutputTypeDef = client.list_apps()\n    apps = response.get('apps', [])\n    print(f\"Successfully listed {len(apps)} Resilience Hub applications.\")\n    for app in apps:\n        print(f\"  - App Name: {app.get('name')}, Status: {app.get('status')}\")\nexcept Exception as e:\n    print(f\"Error listing Resilience Hub applications: {e}\")\n    print(\"Please ensure you have configured AWS credentials and the ResilienceHub service is available in your region.\")","lang":"python","description":"This quickstart demonstrates how to initialize a typed Resilience Hub client and use it to list applications, benefiting from static type checking for method calls and response structures."},"warnings":[{"fix":"Upgrade your Python interpreter to version 3.9 or newer.","message":"Python 3.8 support has been removed across all `mypy-boto3` packages. You must use Python 3.9 or higher.","severity":"breaking","affected_versions":"mypy-boto3-builder >= 8.12.0 (affects all generated stubs, including this one)"},{"fix":"Review your `from mypy_boto3_resiliencehub.type_defs import ...` statements and update TypeDef names as per the new naming conventions (e.g., `CreateDistributionRequestRequestTypeDef` became `CreateDistributionRequestTypeDef`).","message":"TypeDef names for packed method arguments were shortened and conflicting names moved postfix. This affects direct imports of specific `TypeDef` classes.","severity":"breaking","affected_versions":"mypy-boto3-builder >= 8.9.0 (affects generated stubs)"},{"fix":"Ensure `boto3` is installed in your environment: `pip install boto3`.","message":"This package (`mypy-boto3-resiliencehub`) provides only type stubs. It does not include the runtime functionality of the `boto3` library. You must install `boto3` separately to use AWS services.","severity":"gotcha","affected_versions":"All versions"},{"fix":"Install additional service-specific stub packages as needed, e.g., `pip install mypy-boto3-s3`.","message":"This package provides type stubs for the Resilience Hub service specifically. If you need type annotations for other AWS services, you must install their respective `mypy-boto3-SERVICE_NAME` packages or the monolithic `mypy-boto3` package.","severity":"gotcha","affected_versions":"All versions"}],"env_vars":null,"last_verified":"2026-04-11T00:00:00.000Z","next_check":"2026-07-10T00:00:00.000Z"}