Skip to content

SSMContacts module#

Index > SSMContacts

Auto-generated documentation for SSMContacts type annotations stubs module mypy-boto3-ssm-contacts.

How to install#

VSCode extension#

Add AWS Boto3 extension to your VSCode and run AWS boto3: Quick Start command.

Click Modify and select boto3 common and SSMContacts.

From PyPI with pip#

Install boto3-stubs for SSMContacts service.

# install with boto3 type annotations
python -m pip install 'boto3-stubs[ssm-contacts]'

# Lite version does not provide session.client/resource overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'boto3-stubs-lite[ssm-contacts]'

# standalone installation
python -m pip install mypy-boto3-ssm-contacts

How to uninstall#

python -m pip uninstall -y mypy-boto3-ssm-contacts


Code samples can be found in Examples.


Type annotations and code completion for boto3.client("ssm-contacts") as SSMContactsClient boto3 documentation

# SSMContactsClient usage example

from boto3.session import Session

from mypy_boto3_ssm_contacts.client import SSMContactsClient

def get_client() -> SSMContactsClient:
    return Session().client("ssm-contacts")


Type annotations and code completion for paginators from boto3.client("ssm-contacts").get_paginator("...").

# ListContactChannelsPaginator usage example

from boto3.session import Session

from mypy_boto3_ssm_contacts.paginator import ListContactChannelsPaginator

def get_list_contact_channels_paginator() -> ListContactChannelsPaginator:
    return Session().client("ssm-contacts").get_paginator("list_contact_channels"))


Type annotations for literals used in methods and schemas.

# AcceptCodeValidationType usage example

from mypy_boto3_ssm_contacts.literals import AcceptCodeValidationType

def get_value() -> AcceptCodeValidationType:
    return "ENFORCE"

Typed dictionaries#

Type annotations for typed dictionaries used in methods and schema.

# AcceptPageRequestRequestTypeDef usage example

from mypy_boto3_ssm_contacts.type_defs import AcceptPageRequestRequestTypeDef

def get_value() -> AcceptPageRequestRequestTypeDef:
    return {
        "PageId": ...,
        "AcceptType": ...,
        "AcceptCode": ...,