ChimeClient#
Auto-generated documentation for Chime type annotations stubs module mypy-boto3-chime.
ChimeClient#
Type annotations and code completion for boto3.client("chime")
.
boto3 documentation
# ChimeClient usage example
from boto3.session import Session
from mypy_boto3_chime.client import ChimeClient
def get_chime_client() -> ChimeClient:
return Session().client("chime")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("chime").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("chime")
try:
do_something(client)
except (
client.exceptions.AccessDeniedException,
client.exceptions.BadRequestException,
client.exceptions.ClientError,
client.exceptions.ConflictException,
client.exceptions.ForbiddenException,
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.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods#
associate_phone_number_with_user#
Associates a phone number with the specified Amazon Chime user.
Type annotations and code completion for boto3.client("chime").associate_phone_number_with_user
method.
boto3 documentation
# associate_phone_number_with_user method definition
def associate_phone_number_with_user(
self,
*,
AccountId: str,
UserId: str,
E164PhoneNumber: str,
) -> Dict[str, Any]:
...
# associate_phone_number_with_user method usage example with argument unpacking
kwargs: AssociatePhoneNumberWithUserRequestRequestTypeDef = { # (1)
"AccountId": ...,
"UserId": ...,
"E164PhoneNumber": ...,
}
parent.associate_phone_number_with_user(**kwargs)
associate_phone_numbers_with_voice_connector#
Associates phone numbers with the specified Amazon Chime Voice Connector.
Type annotations and code completion for boto3.client("chime").associate_phone_numbers_with_voice_connector
method.
boto3 documentation
# associate_phone_numbers_with_voice_connector method definition
def associate_phone_numbers_with_voice_connector(
self,
*,
VoiceConnectorId: str,
E164PhoneNumbers: Sequence[str],
ForceAssociate: bool = ...,
) -> AssociatePhoneNumbersWithVoiceConnectorResponseTypeDef: # (1)
...
# associate_phone_numbers_with_voice_connector method usage example with argument unpacking
kwargs: AssociatePhoneNumbersWithVoiceConnectorRequestRequestTypeDef = { # (1)
"VoiceConnectorId": ...,
"E164PhoneNumbers": ...,
}
parent.associate_phone_numbers_with_voice_connector(**kwargs)
associate_phone_numbers_with_voice_connector_group#
Associates phone numbers with the specified Amazon Chime Voice Connector group.
Type annotations and code completion for boto3.client("chime").associate_phone_numbers_with_voice_connector_group
method.