{"id":22489,"library":"types-aiobotocore-elasticache","title":"types-aiobotocore-elasticache","description":"Type annotations for aiobotocore ElastiCache 3.5.0 service generated with mypy-boto3-builder. Provides static type checking support for ElastiCache operations when using aiobotocore. Version 3.5.0, part of the types-aiobotocore ecosystem, updated monthly.","status":"active","version":"3.5.0","language":"python","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["type-hints","aiobotocore","elasticache","aws","mypy"],"install":[{"cmd":"pip install types-aiobotocore-elasticache","lang":"bash","label":"Default install"}],"dependencies":[{"reason":"Runtime dependency for ElastiCache service calls","package":"aiobotocore","optional":false},{"reason":"Required for Python <3.11 type hints","package":"typing-extensions","optional":false}],"imports":[{"note":"Type stubs are separate; direct import from aiobotocore may fail type checking","wrong":"from aiobotocore.client import ElastiCacheClient","symbol":"ElastiCacheClient","correct":"from types_aiobotocore_elasticache import ElastiCacheClient"},{"note":"Resource types are only in this package","wrong":"from aiobotocore.resources import ElastiCacheServiceResource","symbol":"ElastiCacheServiceResource","correct":"from types_aiobotocore_elasticache import ElastiCacheServiceResource"},{"note":"Waiter types are defined in submodule","wrong":"from aiobotocore.waiters import ElastiCacheWaiter","symbol":"ElastiCacheWaiter","correct":"from types_aiobotocore_elasticache.waiters import ElastiCacheWaiter"}],"quickstart":{"code":"import asyncio\nfrom types_aiobotocore_elasticache import ElastiCacheClient\n\nasync def main():\n    session = aiobotocore.session.AioSession()\n    async with session.create_client('elasticache', region_name='us-east-1') as client:\n        # client is type-annotated as ElastiCacheClient\n        response = await client.describe_cache_clusters()\n        print(response['CacheClusters'])\n\nasyncio.run(main())\n","lang":"python","description":"Minimal async usage with type hints"},"warnings":[{"fix":"Update your type references accordingly or pin to older builder version if needed.","message":"Version 8.9.0 of mypy-boto3-builder introduced breaking changes: TypeDef names shortened and conflicts resolved (e.g., CreateDistributionRequestRequestTypeDef -> CreateDistributionRequestTypeDef). Ensure your type annotations match the new naming.","severity":"breaking","affected_versions":">=8.9.0 of builder (affects type definitions in generated packages after March 2025)"},{"fix":"Upgrade to Python 3.9+ or use an older version of types-aiobotocore-elasticache (pre-8.12.0 builder).","message":"Python 3.8 support was dropped in builder 8.12.0. This package requires Python >=3.9.","severity":"breaking","affected_versions":">=8.12.0 of builder (package versions after November 2025)"},{"fix":"Monitor aiobotocore changelog for ElastiCache service deprecation.","message":"The sms-voice service (not elasticache) was deprecated and replaced. For elasticache, no deprecation yet, but aiobotocore may remove services in future.","severity":"deprecated","affected_versions":"all"},{"fix":"Install via 'pip install types-aiobotocore-elasticache' with correct spelling.","message":"The package name includes '-elasticache' but it's for ElastiCache (one 'c'). Ensure you install the correct package.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run: pip install types-aiobotocore-elasticache","cause":"Package not installed or misspelled.","error":"ModuleNotFoundError: No module named 'types_aiobotocore_elasticache'"},{"fix":"Use: from types_aiobotocore_elasticache import ElastiCacheClient","cause":"Incorrect import path; the client class is nested under service module.","error":"ImportError: cannot import name 'ElastiCacheClient' from 'types_aiobotocore_elasticache'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}