Registry / type-stubs / mypy-boto3-ssm-contacts

mypy-boto3-ssm-contacts

JSON →
library1.43.0pypypi✓ verified 23d ago

mypy-boto3-ssm-contacts provides comprehensive type annotations for the AWS SSM Contacts service client within the `boto3` library. It enables static type checking with tools like `mypy`, catching potential API misuse or type mismatches at development time for `boto3.client('ssm-contacts')`. This package, currently at version 1.42.3, is part of the `mypy-boto3` ecosystem which generates stubs for all AWS services, updated frequently to mirror `boto3` and AWS API changes, with a rapid release cadence driven by the `mypy-boto3-builder`.

pip install mypy-boto3-ssm-contacts
INSTALL
IMPORT
SIG · MYPY-BOTO3-SSM-CON
M
mypy-boto3-ssm-contacts
type-stubspythonv1.43.0
Install
2.8s avg
Import
Disk
71MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.43.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.910 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.4MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 2.8s · import 0.000s · 19MB
71MB installed
● package 71MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SSMContactsClient
from mypy_boto3_ssm_contacts import SSMContactsClient
from mypy_boto3_ssm_contacts import SSMContactsClient

This quickstart demonstrates how to import and use the `SSMContactsClient` type to annotate your `boto3` client, enabling static type checking for your SSM Contacts operations. It also shows how to import and use specific `TypeDef` objects for response structures.

import boto3 from mypy_boto3_ssm_contacts.client import SSMContactsClient from mypy_boto3_ssm_contacts.type_defs import ListContactsResponseTypeDef from typing import TYPE_CHECKING # Ensure boto3 is installed: pip install boto3 # Use TYPE_CHECKING guard for runtime performance if TYPE_CHECKING: # Annotate the client for type-checking benefits client: SSMContactsClient = boto3.client("ssm-contacts") else: client = boto3.client("ssm-contacts") try: # Example usage with type-checked method calls and parameters response: ListContactsResponseTypeDef = client.list_contacts( MaxResults=5 ) contacts = response.get('Contacts', []) print(f"Found {len(contacts)} SSM Contacts:") for contact in contacts: print(f" - {contact.get('ContactArn')} (Alias: {contact.get('Alias')})") next_token = response.get('NextToken') if next_token: print(f"Next Token: {next_token}") except Exception as e: print(f"An error occurred: {e}")
Debug
Known issues
breakingPython 3.8 support has been removed. `mypy-boto3` packages built with `mypy-boto3-builder` version 8.12.0 or newer no longer support Python 3.8.
fix
Upgrade your Python environment to 3.9 or newer.
affects: mypy-boto3-ssm-contacts versions 1.42.x and above (built with builder >= 8.12.0)
breakingAll `mypy-boto3` packages, including `mypy-boto3-ssm-contacts`, migrated to PEP 561 packaging. While this is a standard for type stubs, older `mypy` versions or non-standard project setups might encounter issues.
fix
Ensure your `mypy` installation is up-to-date (`pip install --upgrade mypy`) and your project setup follows standard Python packaging practices for type stubs.
affects: mypy-boto3-ssm-contacts versions 1.42.x and above (built with builder >= 8.12.0)
gotchaThis package provides only type annotations. For your code to run, you *must* also have the `boto3` library installed in the same environment.
fix
Ensure `pip install boto3` is executed alongside `pip install mypy-boto3-ssm-contacts`.
affects: All versions
breakingWhen upgrading from very old versions, be aware that `mypy-boto3-builder` version 8.9.0 introduced breaking changes to how some `TypeDef` names are generated (e.g., shortening names or reordering suffixes to resolve conflicts). Your code might need updates if it directly references these specific type names.
fix
Review and update explicit `TypeDef` imports if they encounter `NameError` after upgrading. Consult the specific service's `type_defs.pyi` for the correct names.
affects: Upgrades from mypy-boto3-ssm-contacts versions built with mypy-boto3-builder < 8.9.0
gotchaThis package offers static type information only; it does not alter the runtime behavior of `boto3` or introduce new features. Its purpose is purely for static analysis (e.g., `mypy`) and IDE autocompletion.
fix
Use these types for compile-time checks and development assistance, not for runtime modification or expecting new boto3 functionalities.
affects: All versions
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredThis package provides type stubs for boto3; boto3 itself must be installed for your code to run.
Agent activity
29 hits · last 30 days
node
26
OpenAI (training)
1
Resources
mypy-boto3-ssm-contacts — pip install mypy-boto3-ssm-contacts · libregistry