Skip to content

SMS module#

Index > SMS

Auto-generated documentation for SMS type annotations stubs module mypy-boto3-sms.

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 SMS.

From PyPI with pip#

Install boto3-stubs for SMS service.

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

# 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[sms]'

# standalone installation
python -m pip install mypy-boto3-sms

How to uninstall#

python -m pip uninstall -y mypy-boto3-sms


Code samples can be found in Examples.


Type annotations and code completion for boto3.client("sms") as SMSClient boto3 documentation

# SMSClient usage example

from boto3.session import Session

from mypy_boto3_sms.client import SMSClient

def get_client() -> SMSClient:
    return Session().client("sms")


Type annotations and code completion for paginators from boto3.client("sms").get_paginator("...").

# GetConnectorsPaginator usage example

from boto3.session import Session

from mypy_boto3_sms.paginator import GetConnectorsPaginator

def get_get_connectors_paginator() -> GetConnectorsPaginator:
    return Session().client("sms").get_paginator("get_connectors"))


Type annotations for literals used in methods and schemas.

# AppLaunchConfigurationStatusType usage example

from mypy_boto3_sms.literals import AppLaunchConfigurationStatusType

def get_value() -> AppLaunchConfigurationStatusType:
    return "CONFIGURED"

Typed dictionaries#

Type annotations for typed dictionaries used in methods and schema.

# LaunchDetailsTypeDef usage example

from mypy_boto3_sms.type_defs import LaunchDetailsTypeDef

def get_value() -> LaunchDetailsTypeDef:
    return {
        "latestLaunchTime": ...,