delete_attachment
async
¶
delete_attachment(
application_id: ApplicationId,
conversation_id: ConversationId,
attachment_id: AttachmentId,
*,
config_overrides: Optional[AsyncQBusinessClientConfig] = None,
user_id: Optional[UserId] = None,
) -> DeleteAttachmentResponse
Deletes an attachment associated with a specific Amazon Q Business conversation.
Parameters:
-
application_id(ApplicationId) –The unique identifier for the Amazon Q Business application environment.
-
conversation_id(ConversationId) –The unique identifier of the conversation.
-
attachment_id(AttachmentId) –The unique identifier for the attachment.
-
user_id(Optional[UserId], default:None) –The unique identifier of the user involved in the conversation.
Raises:
-
AccessDeniedException–You don't have access to perform this action. Make sure you have the required permission policies and user accounts and try again.
-
InternalServerException–An issue occurred with the internal server used for your Amazon Q Business service. Wait some minutes and try again, or contact Support for help.
-
LicenseNotFoundException–You don't have permissions to perform the action because your license is inactive. Ask your admin to activate your license and try again after your licence is active.
-
ResourceNotFoundException–The application or plugin resource you want to use doesn’t exist. Make sure you have provided the correct resource and try again.
-
ThrottlingException–The request was denied due to throttling. Reduce the number of requests and try again.
-
ValidationException–The input doesn't meet the constraints set by the Amazon Q Business service. Provide the correct input and try again.
-
UnknownServiceError–The service returned an error code this client does not model.