{"id":27490,"library":"types-boto3-sns","title":"types-boto3-sns","description":"Type annotations for boto3 SNS 1.43.0 service generated with mypy-boto3-builder 8.12.0. Provides static type checking for AWS SNS API calls, compatible with mypy, pyright, and type-checkers. Current version: 1.43.0. Release cadence: follows boto3 SNS service updates.","status":"active","version":"1.43.0","language":"python","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["boto3","sns","type-stubs","mypy","ammazon-web-services","types"],"install":[{"cmd":"pip install boto3-stubs[sns]","lang":"bash","label":"Recommended install with boto3-stubs"},{"cmd":"pip install types-boto3-sns","lang":"bash","label":"Standalone install"}],"dependencies":[{"reason":"Runtime dependency for AWS SDK calls; types depend on service structure.","package":"boto3","optional":false},{"reason":"Provides essential types for boto3 itself; often required for type checking.","package":"boto3-stubs","optional":true},{"reason":"Required for Python <3.10 for TypedDict and other features.","package":"typing-extensions","optional":true}],"imports":[{"wrong":"from mypy_boto3_sns.client import SNSClient","symbol":"SNSClient","correct":"from boto3_stubs.sns.client import SNSClient"}],"quickstart":{"code":"import boto3\nfrom mypy_boto3_sns.client import SNSClient\nfrom mypy_boto3_sns.type_defs import PublishResponseTypeDef\n\nclient: SNSClient = boto3.client(\"sns\", region_name=\"us-east-1\")\nresponse: PublishResponseTypeDef = client.publish(\n    PhoneNumber=\"+1234567890\",\n    Message=\"Hello from mypy!\"\n)\nprint(response[\"MessageId\"])","lang":"python","description":"Create an SNS client with type annotations and publish an SMS message."},"warnings":[{"fix":"Pin types-boto3-sns to a specific version in your requirements file.","message":"TypeDef names may change between versions due to auto-generation. For example, in version 8.9.0, TypeDefs for packed method arguments were renamed (e.g., CreateDistributionRequestRequestTypeDef -> CreateDistributionRequestTypeDef). Lock your types version to avoid CI breaks.","severity":"breaking","affected_versions":">=1.30.0,<2.0.0"},{"fix":"Use Python 3.9+ or pin to types-boto3-sns<1.43.0.","message":"Python 3.8 support was removed in mypy-boto3-builder 8.12.0. If you are on Python 3.8, upgrade to Python >=3.9 or stick to an older version of types-boto3-sns.","severity":"deprecated","affected_versions":">=1.43.0"},{"fix":"Use `import mypy_boto3_sns` or `from mypy_boto3_sns.client import SNSClient`.","message":"Importing from `types_boto3_sns` directly (with underscore) is a common mistake. The correct top-level package is `mypy_boto3_sns` (with underscore after mypy). `types_boto3_sns` is the PyPI distribution name, not the importable package.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'1.43.0':10,38 '8.12.0':18 'ammazon':53 'ammazon-web-servic':52 'annot':6 'api':26 'aw':24 'boto3':3,8,16,42,46 'builder':17 'cadenc':40 'call':27 'check':22 'checker':35 'compat':28 'current':36 'follow':41 'generat':12 'mypi':15,30,51 'mypy-boto3-builder':14 'provid':19 'pyright':31 'releas':39 'servic':11,44,55 'sns':4,9,25,43,47 'static':20 'stub':50 'type':2,5,21,34,49,56 'type-check':33 'type-stub':48 'types-boto3-sns':1 'updat':45 'version':37 'web':54","created_at":"2026-05-01T17:46:31.917321+00:00","updated_at":"2026-05-01T17:46:31.917321+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nModuleNotFoundError: No module named 'boto3_stubs'"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/youtype/mypy_boto3_builder","docs":"https://youtype.github.io/types_boto3_docs/types_boto3_sns/","changelog":null,"pypi":"https://pypi.org/project/types-boto3-sns/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["type-stubs","aws"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}