{"id":3101,"library":"mypy-boto3-imagebuilder","title":"mypy-boto3-imagebuilder type stubs","description":"mypy-boto3-imagebuilder provides type annotations for the boto3 AWS Imagebuilder service, enabling static type checking with tools like mypy. It's part of the `mypy-boto3` family of packages, generated by `mypy-boto3-builder`. The package version (1.42.88) aligns with the boto3 version it provides stubs for, and new releases are published regularly to match boto3 updates and builder improvements.","status":"active","version":"1.42.88","language":"python","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["AWS","boto3","mypy","type checking","stubs","Imagebuilder","type hints"],"install":[{"cmd":"pip install mypy-boto3-imagebuilder boto3 botocore","lang":"bash","label":"Install stubs and runtime dependencies"}],"dependencies":[{"reason":"Runtime dependency for the AWS SDK for Python, which these stubs type-check.","package":"boto3","optional":false},{"reason":"Core dependency for boto3, providing fundamental types and functionality.","package":"botocore","optional":false}],"imports":[{"symbol":"ImagebuilderClient","correct":"from mypy_boto3_imagebuilder.client import ImagebuilderClient"},{"note":"Type definitions (like 'TypeDef' suffixed types) are found in `type_defs`, not `service_resource` or `client` modules.","wrong":"from mypy_boto3_imagebuilder.service_resource import ImageStateTypeDef","symbol":"ImageStateTypeDef","correct":"from mypy_boto3_imagebuilder.type_defs import ImageStateTypeDef"}],"quickstart":{"code":"import boto3\nfrom mypy_boto3_imagebuilder.client import ImagebuilderClient\nfrom mypy_boto3_imagebuilder.type_defs import ImageSummaryTypeDef\n\n# Instantiate a typed client\nclient: ImagebuilderClient = boto3.client(\"imagebuilder\")\n\n# Use the client with type-checking benefits\ntry:\n    response = client.list_images(filters=[\n        {\n            'name': 'name',\n            'values': ['example-image-name']\n        }\n    ])\n\n    print(f\"Found {len(response.get('imageSummaryList', []))} images.\")\n\n    # Example of accessing a typed item\n    if response.get('imageSummaryList'):\n        first_image: ImageSummaryTypeDef = response['imageSummaryList'][0]\n        print(f\"First image ARN: {first_image['arn']}\")\n\nexcept client.exceptions.ClientError as e:\n    print(f\"An AWS error occurred: {e}\")\nexcept Exception as e:\n    print(f\"An unexpected error occurred: {e}\")\n","lang":"python","description":"This quickstart demonstrates how to instantiate a type-hinted AWS Imagebuilder client using `boto3` and `mypy-boto3-imagebuilder` stubs. It then performs a `list_images` operation and accesses typed response data, showcasing how the stubs provide autocompletion and static type validation for client methods and response structures."},"warnings":[{"fix":"Upgrade your Python environment to 3.9 or newer.","message":"Support for Python 3.8 has been removed. All `mypy-boto3` packages, including `mypy-boto3-imagebuilder`, now require Python 3.9 or newer.","severity":"breaking","affected_versions":">=8.12.0 of `mypy-boto3-builder` generated packages"},{"fix":"Ensure your `mypy` configuration correctly points to your virtual environment or site-packages. Reinstalling the stubs might resolve discovery issues if encountered.","message":"Packages have migrated to PEP 561, which changes how `mypy` and other type checkers discover stub files. While generally backwards compatible, specific `mypy` configurations or custom stub paths might need adjustment.","severity":"breaking","affected_versions":">=8.12.0 of `mypy-boto3-builder` generated packages"},{"fix":"Consult the `mypy-boto3-builder` release notes for version 8.9.0 or higher, and update your code to use the new `TypeDef` names where applicable (e.g., `CreateDistributionRequestRequestTypeDef` became `CreateDistributionRequestTypeDef`).","message":"Specific `TypeDef` names for method arguments and conflicting definitions were shortened or renamed, potentially breaking code that explicitly referenced these type definitions.","severity":"breaking","affected_versions":">=8.9.0 of `mypy-boto3-builder` generated packages"},{"fix":"Always install `boto3` and `botocore` alongside `mypy-boto3-imagebuilder` (e.g., `pip install mypy-boto3-imagebuilder boto3 botocore`).","message":"`mypy-boto3-imagebuilder` provides type stubs only. It is not a standalone library and requires `boto3` and `botocore` to be installed for runtime functionality.","severity":"gotcha","affected_versions":"All versions"},{"fix":"Periodically update `mypy-boto3-imagebuilder` to match your `boto3` version (e.g., `pip install --upgrade mypy-boto3-imagebuilder`).","message":"For optimal type-checking accuracy, the version of `mypy-boto3-imagebuilder` should ideally match the major and minor version of your installed `boto3` library.","severity":"gotcha","affected_versions":"All versions"}],"env_vars":null,"search_vec":"'1.42.88':48 'align':49 'annot':13 'aw':17,71 'boto3':3,9,16,35,43,52,66,72 'builder':44,69 'check':23,75 'enabl':20 'famili':36 'generat':39 'hint':79 'imagebuild':4,10,18,77 'improv':70 'like':26 'match':65 'mypi':2,8,27,34,42,73 'mypy-boto3':33 'mypy-boto3-builder':41 'mypy-boto3-imagebuilder':1,7 'new':59 'packag':38,46 'part':30 'provid':11,55 'publish':62 'regular':63 'releas':60 'servic':19 'static':21 'stub':6,56,76 'tool':25 'type':5,12,22,74,78 'updat':67 'version':47,53","created_at":"2026-04-11T09:21:06.084810+00:00","updated_at":"2026-04-16T16:58:37.942182+00:00","problems":{"verify_error":"error: Failed to parse: `mypy-boto3-imagebuilder boto3 botocore`\n  Caused by: Expected one of `@`, `(`, `<`, `=`, `>`, `~`, `!`, `;`, found `b`\nmypy-boto3-imagebuilder boto3 botocore\n                        ^"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"1.43.37","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_imagebuilder/","changelog":null,"pypi":"https://pypi.org/project/mypy-boto3-imagebuilder/","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-06-28","last_verified":"2026-08-28","next_check":"2026-07-05","install_tag":null}}