Examples#
Index > PinpointSMSVoice > Examples
Auto-generated documentation for PinpointSMSVoice type annotations stubs module types-aiobotocore-sms-voice.
Client#
Implicit type annotations#
Can be used with types-aiobotocore[sms-voice]
package installed.
Write your PinpointSMSVoice
code as usual,
type checking and code completion should work out of the box.
# PinpointSMSVoiceClient usage example
from aiobotocore.session import get_session
session = get_session()
async with session.create_client("sms-voice") as client: # (1)
result = await client.get_configuration_set_event_destinations() # (2)
Explicit type annotations#
With types-aiobotocore-lite[sms-voice]
or a standalone types_aiobotocore_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.
# PinpointSMSVoiceClient usage example with type annotations
from aiobotocore.session import get_session
from types_aiobotocore_sms_voice.client import PinpointSMSVoiceClient
from types_aiobotocore_sms_voice.type_defs import GetConfigurationSetEventDestinationsResponseTypeDef
from types_aiobotocore_sms_voice.type_defs import GetConfigurationSetEventDestinationsRequestRequestTypeDef
session = get_session()
async with session.create_client("sms-voice") as client:
client: PinpointSMSVoiceClient
kwargs: GetConfigurationSetEventDestinationsRequestRequestTypeDef = {...}
result: GetConfigurationSetEventDestinationsResponseTypeDef = await client.get_configuration_set_event_destinations(**kwargs)