Skip to content

ChimeSDKVoiceClient#

Index > ChimeSDKVoice > ChimeSDKVoiceClient

Auto-generated documentation for ChimeSDKVoice type annotations stubs module mypy-boto3-chime-sdk-voice.

ChimeSDKVoiceClient#

Type annotations and code completion for boto3.client("chime-sdk-voice"). boto3 documentation

# ChimeSDKVoiceClient usage example

from boto3.session import Session
from mypy_boto3_chime_sdk_voice.client import ChimeSDKVoiceClient

def get_chime-sdk-voice_client() -> ChimeSDKVoiceClient:
    return Session().client("chime-sdk-voice")

Exceptions#

boto3 client exceptions are generated in runtime. This class provides code completion for boto3.client("chime-sdk-voice").exceptions structure.

# Exceptions.exceptions usage example

client = boto3.client("chime-sdk-voice")

try:
    do_something(client)
except (
    client.exceptions.AccessDeniedException,
    client.exceptions.BadRequestException,
    client.exceptions.ClientError,
    client.exceptions.ConflictException,
    client.exceptions.ForbiddenException,
    client.exceptions.GoneException,
    client.exceptions.NotFoundException,
    client.exceptions.ResourceLimitExceededException,
    client.exceptions.ServiceFailureException,
    client.exceptions.ServiceUnavailableException,
    client.exceptions.ThrottledClientException,
    client.exceptions.UnauthorizedClientException,
    client.exceptions.UnprocessableEntityException,
) as e:
    print(e)
# Exceptions.exceptions type checking example

from mypy_boto3_chime_sdk_voice.client import Exceptions

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

Methods#

associate_phone_numbers_with_voice_connector#

Associates phone numbers with the specified Amazon Chime SDK Voice Connector.

Type annotations and code completion for boto3.client("chime-sdk-voice").associate_phone_numbers_with_voice_connector method.