Examples
Index > PinpointSMSVoice > Examples
Auto-generated documentation for PinpointSMSVoice type annotations stubs module mypy-boto3-pinpoint-sms-voice.
Client
Implicit type annotations
Can be used with boto3-stubs[pinpoint-sms-voice]
package installed.
Write your PinpointSMSVoice
code as usual,
type checking and code completion should work out of the box.
Explicit type annotations
With boto3-stubs-lite[pinpoint-sms-voice]
or a standalone mypy_boto3_pinpoint_sms_voice
package, you have to explicitly specify client: PinpointSMSVoiceClient
type annotation.
All other type annotations are optional, as types should be discovered automatically. However, these type annotations can be helpful in your functions and methods.
Client usage example
from boto3.session import Session
from mypy_boto3_pinpoint_sms_voice.client import PinpointSMSVoiceClient
from mypy_boto3_pinpoint_sms_voice.type_defs import GetConfigurationSetEventDestinationsResponseTypeDef
from mypy_boto3_pinpoint_sms_voice.type_defs import GetConfigurationSetEventDestinationsRequestRequestTypeDef
session = Session()
client: PinpointSMSVoiceClient = session.client("pinpoint-sms-voice")
kwargs: GetConfigurationSetEventDestinationsRequestRequestTypeDef = {...}
result: GetConfigurationSetEventDestinationsResponseTypeDef = client.get_configuration_set_event_destinations(**kwargs)