QBusinessClient#
Auto-generated documentation for QBusiness type annotations stubs module mypy-boto3-qbusiness.
QBusinessClient#
Type annotations and code completion for boto3.client("qbusiness")
.
boto3 documentation
# QBusinessClient usage example
from boto3.session import Session
from mypy_boto3_qbusiness.client import QBusinessClient
def get_qbusiness_client() -> QBusinessClient:
return Session().client("qbusiness")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("qbusiness").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("qbusiness")
try:
do_something(client)
except (
client.exceptions.AccessDeniedException,
client.exceptions.ClientError,
client.exceptions.ConflictException,
client.exceptions.InternalServerException,
client.exceptions.LicenseNotFoundException,
client.exceptions.ResourceNotFoundException,
client.exceptions.ServiceQuotaExceededException,
client.exceptions.ThrottlingException,
client.exceptions.ValidationException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_qbusiness.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods#
batch_delete_document#
Asynchronously deletes one or more documents added using the BatchPutDocument
API from an Amazon Q Business
index.
Type annotations and code completion for boto3.client("qbusiness").batch_delete_document
method.
boto3 documentation
# batch_delete_document method definition
def batch_delete_document(
self,
*,
applicationId: str,
indexId: str,
documents: Sequence[DeleteDocumentTypeDef], # (1)
dataSourceSyncId: str = ...,
) -> BatchDeleteDocumentResponseTypeDef: # (2)
...
# batch_delete_document method usage example with argument unpacking
kwargs: BatchDeleteDocumentRequestRequestTypeDef = { # (1)
"applicationId": ...,
"indexId": ...,
"documents": ...,
}
parent.batch_delete_document(**kwargs)
batch_put_document#
Adds one or more documents to an Amazon Q Business index.
Type annotations and code completion for boto3.client("qbusiness").batch_put_document
method.
boto3 documentation
# batch_put_document method definition
def batch_put_document(
self,
*,
applicationId: str,
indexId: str,
documents: Sequence[DocumentTypeDef], # (1)
roleArn: str = ...,
dataSourceSyncId: str = ...,
) -> BatchPutDocumentResponseTypeDef: # (2)
...
# batch_put_document method usage example with argument unpacking
kwargs: BatchPutDocumentRequestRequestTypeDef = { # (1)
"applicationId": ...,
"indexId": ...,
"documents": ...,
}
parent.batch_put_document(**kwargs)
can_paginate#
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("qbusiness").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
chat_sync#
Starts or continues a non-streaming Amazon Q Business conversation.
Type annotations and code completion for boto3.client("qbusiness").chat_sync
method.
boto3 documentation
# chat_sync method definition
def chat_sync(
self,
*,
applicationId: str,
userId: str = ...,
userGroups: Sequence[str] = ...,
userMessage: str = ...,
attachments: Sequence[AttachmentInputTypeDef] = ..., # (1)
actionExecution: Union[ActionExecutionTypeDef, ActionExecutionExtraOutputTypeDef] = ..., # (2)
authChallengeResponse: AuthChallengeResponseTypeDef = ..., # (3)
conversationId: str = ...,
parentMessageId: str = ...,
attributeFilter: AttributeFilterTypeDef = ..., # (4)
chatMode: ChatModeType = ..., # (5)
chatModeConfiguration: ChatModeConfigurationTypeDef = ..., # (6)
clientToken: str = ...,
) -> ChatSyncOutputTypeDef: # (7)
...
- See AttachmentInputTypeDef
- See ActionExecutionTypeDef ActionExecutionExtraOutputTypeDef
- See AuthChallengeResponseTypeDef
- See AttributeFilterTypeDef
- See ChatModeType
- See ChatModeConfigurationTypeDef
- See ChatSyncOutputTypeDef
# chat_sync method usage example with argument unpacking
kwargs: ChatSyncInputRequestTypeDef = { # (1)
"applicationId": ...,
}
parent.chat_sync(**kwargs)
close#
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("qbusiness").close
method.