Registry / type-stubs / mypy-boto3-pinpoint-sms-voice-v2

mypy-boto3-pinpoint-sms-voice-v2

JSON →
library1.43.37pypypi✓ verified 23d ago

mypy-boto3-pinpoint-sms-voice-v2 provides type annotations for the boto3 Pinpoint SMS Voice V2 service, generated by mypy-boto3-builder. These stubs enhance type checking for AWS SDK usage, preventing common runtime errors. The current version is 1.42.80, with releases synchronized with boto3 versions.

pip install mypy-boto3-pinpoint-sms-voice-v2
INSTALL
IMPORT
SIG · MYPY-BOTO3-PINPOIN
M
mypy-boto3-pinpoint-sms-voice-v2
type-stubspythonv1.43.37
Install
2.7s avg
Import
Disk
51MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.43.37 · 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.9MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 2.7s · import 0.000s · 19MB
51MB installed
● package 51MB
Code
Verified usage

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

PinpointSMSVoiceV2Client
from mypy_boto3_pinpoint_sms_voice_v2 import PinpointSMSVoiceV2Client
from mypy_boto3_pinpoint_sms_voice_v2 import PinpointSMSVoiceV2Client

This quickstart demonstrates how to initialize a boto3 client for Pinpoint SMS Voice V2 and leverage the type annotations provided by mypy-boto3-pinpoint-sms-voice-v2. It's crucial to have both `boto3` and the stub package installed. The example includes basic client usage with type hints.

import boto3 from mypy_boto3_pinpoint_sms_voice_v2.client import PinpointSMSVoiceV2Client import os # Instantiate a boto3 session and client # mypy will use the installed stubs to provide type hints for 'client' region = os.environ.get('AWS_REGION', 'us-east-1') session = boto3.Session(region_name=region) client: PinpointSMSVoiceV2Client = session.client("pinpoint-sms-voice-v2") # Example of using the typed client (replace with actual values and error handling) try: response = client.send_voice_message( DestinationPhoneNumber="+15551234567", # Replace with a valid E.164 number OriginationIdentity="MyVoiceSenderId", # Your registered origination identity MessageBody="Hello from mypy-boto3-pinpoint-sms-voice-v2!", ConfigurationSetName="Default", # Your existing configuration set CallerId="+15559876543" # Optional, if you have a caller ID ) print(f"Voice message sent. Message ID: {response['MessageId']}") except client.exceptions.ResourceNotFoundException as e: print(f"Error: Resource not found: {e}") except Exception as e: print(f"An unexpected error occurred: {e}")
Debug
Known issues
breakingPython 3.8 is no longer supported. The `mypy-boto3-builder` and all generated stub packages, including this one, removed support for Python 3.8 as of version 8.12.0.
fix
Upgrade your Python environment to 3.9 or newer.
affects: >=8.12.0
gotchaThis library provides *type stubs* only. You must also install the `boto3` library for your code to execute at runtime. Without `boto3` installed, your application will fail with import errors.
fix
Ensure you run `pip install boto3` in addition to installing `mypy-boto3-pinpoint-sms-voice-v2`.
affects: All
gotchaAWS has multiple services related to SMS and Voice messaging (e.g., `pinpoint-sms-voice`, `sms-voice`, `pinpoint-sms-voice-v2`). Ensure you install the `mypy-boto3-*` package that precisely matches the `boto3.client()` service name you are using. Confusing service names can lead to incorrect type hints or runtime errors.
fix
Double-check your `boto3.client('SERVICE_NAME')` call and install `mypy-boto3-SERVICE_NAME` accordingly. For this package, the client name is 'pinpoint-sms-voice-v2'.
affects: All
breakingThe `mypy-boto3-builder` changed TypeDef naming conventions in version 8.9.0. Specifically, packed method arguments may use shorter names (e.g., `CreateDistributionRequestRequestTypeDef` became `CreateDistributionRequestTypeDef`). This could affect explicit imports of TypeDefs.
fix
If you explicitly import TypeDefs, verify their names against the latest stub package structure or refer to the `mypy-boto3-builder` documentation.
affects: >=8.9.0
Upgrade
Version history
1.43.37latest on PyPI · released Jun 29, 2026
Audit
Dependencies
boto3requiredThis library provides type stubs for boto3, which is required at runtime for your application to function.
Agent activity
22 hits · last 30 days
node
20
OpenAI (training)
1
Resources
mypy-boto3-pinpoint-sms-voice-v2 — pip install mypy-boto3-pinpoint-sms-voice-v2 · libregistry