{"id":24764,"library":"types-boto3-ecs","title":"types-boto3-ecs","description":"Type annotations for boto3 ECS 1.43.0 service, generated with mypy-boto3-builder 8.12.0. Provides static typing support for the Amazon Elastic Container Service (ECS) client and service resources. Version 1.43.0, maintained by youtype.","status":"active","version":"1.43.0","language":"python","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["mypy","boto3","type-annotations","aws-ecs","stubs"],"install":[{"cmd":"pip install types-boto3-ecs","lang":"bash","label":"Install types-boto3-ecs"}],"dependencies":[{"reason":"Needed for full boto3 stubs integration; types-boto3-ecs is a subset.","package":"boto3-stubs","optional":true}],"imports":[{"note":"Installation package is types-boto3-ecs, but imports are from mypy_boto3_ecs.","wrong":"from types_boto3_ecs import ECSClient","symbol":"ECSClient","correct":"from mypy_boto3_ecs import ECSClient"},{"note":"","wrong":"","symbol":"ListClustersPaginator","correct":"from mypy_boto3_ecs.paginator import ListClustersPaginator"},{"note":"Service resources are in the service_resource module.","wrong":"from mypy_boto3_ecs.resources import ServiceResource","symbol":"ServiceResource","correct":"from mypy_boto3_ecs.service_resource import ServiceResource"}],"quickstart":{"code":"import boto3\nfrom mypy_boto3_ecs import ECSClient\n\nclient: ECSClient = boto3.client(\"ecs\", region_name=\"us-east-1\")\nclusters = client.list_clusters()\nprint(clusters[\"clusterArns\"])","lang":"python","description":"Basic usage with type-annotated ECS client."},"warnings":[{"fix":"Uninstall old package: pip uninstall boto3-stubs-ecs; install new: pip install types-boto3-ecs.","message":"Package renamed from boto3-stubs-ecs to types-boto3-ecs in June 2023. Old package no longer updated.","severity":"breaking","affected_versions":"<1.28.0"},{"fix":"Always use: from mypy_boto3_ecs import ...","message":"Import path mismatch: the package name is types-boto3-ecs but imports use mypy_boto3_ecs. Do not try to import from types_boto3_ecs.","severity":"gotcha","affected_versions":">=1.28.0"},{"fix":"Upgrade to Python 3.9 or later.","message":"Python 3.8 support removed in mypy-boto3-builder 8.12.0. Requires Python >=3.9.","severity":"deprecated","affected_versions":">=1.43.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Verify installation with: pip show types-boto3-ecs, and ensure the Python interpreter matches.","cause":"Installed types-boto3-ecs but imports are from mypy_boto3_ecs. Package installs the mypy_boto3_ecs module; if your environment is not the same Python where you installed, it won't find it.","error":"ModuleNotFoundError: No module named 'mypy_boto3_ecs'"},{"fix":"Use: from mypy_boto3_ecs import ECSClient. Also ensure you have boto3 installed.","cause":"Wrong import path (e.g., from mypy_boto3_ecs.client import ECSClient) or incomplete installation.","error":"ImportError: cannot import name 'ECSClient' from 'mypy_boto3_ecs'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}