VoiceIDClient#
Auto-generated documentation for VoiceID type annotations stubs module mypy-boto3-voice-id.
VoiceIDClient#
Type annotations and code completion for boto3.client("voice-id")
.
boto3 documentation
# VoiceIDClient usage example
from boto3.session import Session
from mypy_boto3_voice_id.client import VoiceIDClient
def get_voice-id_client() -> VoiceIDClient:
return Session().client("voice-id")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("voice-id").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("voice-id")
try:
do_something(client)
except (
client.exceptions.AccessDeniedException,
client.exceptions.ClientError,
client.exceptions.ConflictException,
client.exceptions.InternalServerException,
client.exceptions.ResourceNotFoundException,
client.exceptions.ServiceQuotaExceededException,
client.exceptions.ThrottlingException,
client.exceptions.ValidationException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_voice_id.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods#
associate_fraudster#
Associates the fraudsters with the watchlist specified in the same domain.
Type annotations and code completion for boto3.client("voice-id").associate_fraudster
method.
boto3 documentation
# associate_fraudster method definition
def associate_fraudster(
self,
*,
DomainId: str,
FraudsterId: str,
WatchlistId: str,
) -> AssociateFraudsterResponseTypeDef: # (1)
...
# associate_fraudster method usage example with argument unpacking
kwargs: AssociateFraudsterRequestRequestTypeDef = { # (1)
"DomainId": ...,
"FraudsterId": ...,
"WatchlistId": ...,
}
parent.associate_fraudster(**kwargs)
can_paginate#
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("voice-id").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 boto3.client("voice-id").close
method.
boto3 documentation
# close method definition
def close(
self,
) -> None:
...
create_domain#
Creates a domain that contains all Amazon Connect Voice ID data, such as speakers, fraudsters, customer audio, and voiceprints.
Type annotations and code completion for boto3.client("voice-id").create_domain
method.
boto3 documentation
# create_domain method definition
def create_domain(
self,
*,
Name: str,
ServerSideEncryptionConfiguration: ServerSideEncryptionConfigurationTypeDef, # (1)
ClientToken: str = ...,
Description: str = ...,
Tags: Sequence[TagTypeDef] = ..., # (2)
) -> CreateDomainResponseTypeDef: # (3)
...
# create_domain method usage example with argument unpacking
kwargs: CreateDomainRequestRequestTypeDef = { # (1)
"Name": ...,
"ServerSideEncryptionConfiguration": ...,
}
parent.create_domain(**kwargs)
create_watchlist#
Creates a watchlist that fraudsters can be a part of.
Type annotations and code completion for boto3.client("voice-id").create_watchlist
method.
boto3 documentation
# create_watchlist method definition
def create_watchlist(
self,
*,
DomainId: str,
Name: str,
ClientToken: str = ...,
Description: str = ...,
) -> CreateWatchlistResponseTypeDef: # (1)
...
# create_watchlist method usage example with argument unpacking
kwargs: CreateWatchlistRequestRequestTypeDef = { # (1)
"DomainId": ...,
"Name": ...,
}
parent.create_watchlist(**kwargs)
delete_domain#
Deletes the specified domain from Voice ID.
Type annotations and code completion for boto3.client("voice-id").delete_domain
method.
boto3 documentation
# delete_domain method definition
def delete_domain(
self,
*,
DomainId: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_domain method usage example with argument unpacking
kwargs: DeleteDomainRequestRequestTypeDef = { # (1)
"DomainId": ...,
}
parent.delete_domain(**kwargs)
delete_fraudster#
Deletes the specified fraudster from Voice ID.
Type annotations and code completion for boto3.client("voice-id").delete_fraudster
method.
boto3 documentation
# delete_fraudster method definition
def delete_fraudster(
self,
*,
DomainId: str,
FraudsterId: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_fraudster method usage example with argument unpacking
kwargs: DeleteFraudsterRequestRequestTypeDef = { # (1)
"DomainId": ...,
"FraudsterId": ...,
}
parent.delete_fraudster(**kwargs)
delete_speaker#
Deletes the specified speaker from Voice ID.
Type annotations and code completion for boto3.client("voice-id").delete_speaker
method.