Skip to content

PinpointSMSVoiceClient#

Index > PinpointSMSVoice > PinpointSMSVoiceClient

Auto-generated documentation for PinpointSMSVoice type annotations stubs module types-aiobotocore-sms-voice.

PinpointSMSVoiceClient#

Type annotations and code completion for session.create_client("sms-voice") boto3 documentation

PinpointSMSVoiceClient usage example

from aiobotocore.session import get_session
from types_aiobotocore_sms_voice.client import PinpointSMSVoiceClient

session = get_session()
async with session.create_client("sms-voice") as client:
    client: PinpointSMSVoiceClient

Exceptions#

aiobotocore client exceptions are generated in runtime. This class provides code completion for session.create_client("sms-voice").exceptions structure.

PinpointSMSVoiceClient.exceptions usage example

async with session.create_client("sms-voice") as client:
    try:
        do_something(client)
    except (
            client.AlreadyExistsException,
        client.BadRequestException,
        client.ClientError,
        client.InternalServiceErrorException,
        client.LimitExceededException,
        client.NotFoundException,
        client.TooManyRequestsException,
    ) as e:
        print(e)
PinpointSMSVoiceClient usage type checking example

from types_aiobotocore_sms_voice.client import Exceptions

def handle_error(exc: Exceptions.AlreadyExistsException) -> None:
    ...

Methods#

can_paginate#

Check if an operation can be paginated.

Type annotations and code completion for session.create_client("sms-voice").can_paginate method. boto3 documentation

# can_paginate method definition

def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

close#

Closes underlying endpoint connections.

Type annotations and code completion for session.create_client("sms-voice").close method. boto3 documentation

# close method definition

await def close(
    self,
) -> None:
    ...

create_configuration_set#

Create a new configuration set.

Type annotations and code completion for session.create_client("sms-voice").create_configuration_set method. boto3 documentation

# create_configuration_set method definition

await def create_configuration_set(
    self,
    *,
    ConfigurationSetName: str = ...,
) -> Dict[str, Any]:
    ...
# create_configuration_set method usage example with argument unpacking

kwargs: CreateConfigurationSetRequestRequestTypeDef = {  # (1)
    "ConfigurationSetName": ...,
}

parent.create_configuration_set(**kwargs)
  1. See CreateConfigurationSetRequestRequestTypeDef

create_configuration_set_event_destination#

Create a new event destination in a configuration set.

Type annotations and code completion for session.create_client("sms-voice").create_configuration_set_event_destination method. boto3 documentation

# create_configuration_set_event_destination method definition

await def create_configuration_set_event_destination(
    self,
    *,
    ConfigurationSetName: str,
    EventDestination: EventDestinationDefinitionTypeDef = ...,  # (1)
    EventDestinationName: str = ...,
) -> Dict[str, Any]:
    ...
  1. See EventDestinationDefinitionTypeDef
# create_configuration_set_event_destination method usage example with argument unpacking

kwargs: CreateConfigurationSetEventDestinationRequestRequestTypeDef = {  # (1)
    "ConfigurationSetName": ...,
}

parent.create_configuration_set_event_destination(**kwargs)
  1. See CreateConfigurationSetEventDestinationRequestRequestTypeDef

delete_configuration_set#

Deletes an existing configuration set.

Type annotations and code completion for session.create_client("sms-voice").delete_configuration_set method. boto3 documentation

# delete_configuration_set method definition

await def delete_configuration_set(
    self,
    *,
    ConfigurationSetName: str,
) -> Dict[str, Any]:
    ...
# delete_configuration_set method usage example with argument unpacking

kwargs: DeleteConfigurationSetRequestRequestTypeDef = {  # (1)
    "ConfigurationSetName": ...,
}

parent.delete_configuration_set(**kwargs)
  1. See DeleteConfigurationSetRequestRequestTypeDef

delete_configuration_set_event_destination#

Deletes an event destination in a configuration set.

Type annotations and code completion for session.create_client("sms-voice").delete_configuration_set_event_destination method. boto3 documentation

# delete_configuration_set_event_destination method definition

await def delete_configuration_set_event_destination(
    self,
    *,
    ConfigurationSetName: str,
    EventDestinationName: str,
) -> Dict[str, Any]:
    ...
# delete_configuration_set_event_destination method usage example with argument unpacking

kwargs: DeleteConfigurationSetEventDestinationRequestRequestTypeDef = {  # (1)
    "ConfigurationSetName": ...,
    "EventDestinationName": ...,
}

parent.delete_configuration_set_event_destination(**kwargs)
  1. See DeleteConfigurationSetEventDestinationRequestRequestTypeDef

generate_presigned_url#

Generate a presigned url given a client, its method, and arguments.

Type annotations and code completion for session.create_client("sms-voice").generate_presigned_url method. boto3 documentation

# generate_presigned_url method definition

await def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...

get_configuration_set_event_destinations#

Obtain information about an event destination, including the types of events it reports, the Amazon Resource Name (ARN) of the destination, and the name of the event destination.

Type annotations and code completion for session.create_client("sms-voice").get_configuration_set_event_destinations method. boto3 documentation

# get_configuration_set_event_destinations method definition

await def get_configuration_set_event_destinations(
    self,
    *,
    ConfigurationSetName: str,
) -> GetConfigurationSetEventDestinationsResponseTypeDef:  # (1)
    ...
  1. See GetConfigurationSetEventDestinationsResponseTypeDef
# get_configuration_set_event_destinations method usage example with argument unpacking

kwargs: GetConfigurationSetEventDestinationsRequestRequestTypeDef = {  # (1)
    "ConfigurationSetName": ...,
}

parent.get_configuration_set_event_destinations(**kwargs)
  1. See GetConfigurationSetEventDestinationsRequestRequestTypeDef

list_configuration_sets#

List all of the configuration sets associated with your Amazon Pinpoint account in the current region.

Type annotations and code completion for session.create_client("sms-voice").list_configuration_sets method. boto3 documentation

# list_configuration_sets method definition

await def list_configuration_sets(
    self,
    *,
    NextToken: str = ...,
    PageSize: str = ...,
) -> ListConfigurationSetsResponseTypeDef:  # (1)
    ...
  1. See ListConfigurationSetsResponseTypeDef
# list_configuration_sets method usage example with argument unpacking

kwargs: ListConfigurationSetsRequestRequestTypeDef = {  # (1)
    "NextToken": ...,
}

parent.list_configuration_sets(**kwargs)
  1. See ListConfigurationSetsRequestRequestTypeDef

send_voice_message#

Create a new voice message and send it to a recipient's phone number.

Type annotations and code completion for session.create_client("sms-voice").send_voice_message method. boto3 documentation

# send_voice_message method definition

await def send_voice_message(
    self,
    *,
    CallerId: str = ...,
    ConfigurationSetName: str = ...,
    Content: VoiceMessageContentTypeDef = ...,  # (1)
    DestinationPhoneNumber: str = ...,
    OriginationPhoneNumber: str = ...,
) -> SendVoiceMessageResponseTypeDef:  # (2)
    ...
  1. See VoiceMessageContentTypeDef
  2. See SendVoiceMessageResponseTypeDef
# send_voice_message method usage example with argument unpacking

kwargs: SendVoiceMessageRequestRequestTypeDef = {  # (1)
    "CallerId": ...,
}

parent.send_voice_message(**kwargs)
  1. See SendVoiceMessageRequestRequestTypeDef

update_configuration_set_event_destination#

Update an event destination in a configuration set.

Type annotations and code completion for session.create_client("sms-voice").update_configuration_set_event_destination method. boto3 documentation

# update_configuration_set_event_destination method definition

await def update_configuration_set_event_destination(
    self,
    *,
    ConfigurationSetName: str,
    EventDestinationName: str,
    EventDestination: EventDestinationDefinitionTypeDef = ...,  # (1)
) -> Dict[str, Any]:
    ...
  1. See EventDestinationDefinitionTypeDef
# update_configuration_set_event_destination method usage example with argument unpacking

kwargs: UpdateConfigurationSetEventDestinationRequestRequestTypeDef = {  # (1)
    "ConfigurationSetName": ...,
    "EventDestinationName": ...,
}

parent.update_configuration_set_event_destination(**kwargs)
  1. See UpdateConfigurationSetEventDestinationRequestRequestTypeDef

__aenter__#

Type annotations and code completion for session.create_client("sms-voice").__aenter__ method. boto3 documentation

# __aenter__ method definition

await def __aenter__(
    self,
) -> PinpointSMSVoiceClient:
    ...

__aexit__#

Type annotations and code completion for session.create_client("sms-voice").__aexit__ method. boto3 documentation

# __aexit__ method definition

await def __aexit__(
    self,
    exc_type: Any,
    exc_val: Any,
    exc_tb: Any,
) -> Any:
    ...