Examples#
Auto-generated documentation for SMSVoice type annotations stubs module types-boto3-sms-voice.
Client#
Implicit type annotations#
Can be used with types-boto3[sms-voice]
package installed.
Write your SMSVoice
code as usual,
type checking and code completion should work out of the box.
Client method usage example#
# SMSVoiceClient usage example
from boto3.session import Session
session = Session()
client = session.client("sms-voice") # (1)
result = client.get_configuration_set_event_destinations() # (2)
- client: SMSVoiceClient
- result: GetConfigurationSetEventDestinationsResponseTypeDef
Explicit type annotations#
With types-boto3-lite[sms-voice]
or a standalone types_boto3_sms_voice
package, you have to explicitly specify client: SMSVoiceClient
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 method usage example#
# SMSVoiceClient usage example with type annotations
from boto3.session import Session
from types_boto3_sms_voice.client import SMSVoiceClient
from types_boto3_sms_voice.type_defs import GetConfigurationSetEventDestinationsResponseTypeDef
from types_boto3_sms_voice.type_defs import GetConfigurationSetEventDestinationsRequestTypeDef
session = Session()
client: SMSVoiceClient = session.client("sms-voice")
kwargs: GetConfigurationSetEventDestinationsRequestTypeDef = {...}
result: GetConfigurationSetEventDestinationsResponseTypeDef = client.get_configuration_set_event_destinations(**kwargs)