batch_delete_category
async
¶
batch_delete_category(
instance_id: InstanceId,
categories: DeleteCategoryInputList,
*,
config_overrides: Optional[AsyncQAppsClientConfig] = None,
) -> None
Deletes Categories for the Amazon Q Business application environment instance. Web experience users use Categories to tag and filter library items. For more information, see Custom labels for Amazon Q Apps.
Parameters:
-
instance_id(InstanceId) –The unique identifier of the Amazon Q Business application environment instance.
-
categories(DeleteCategoryInputList) –The list of IDs of the categories to be deleted.
Raises:
-
AccessDeniedException–The client is not authorized to perform the requested operation.
-
ConflictException–The requested operation could not be completed due to a conflict with the current state of the resource.
-
InternalServerException–An internal service error occurred while processing the request.
-
ResourceNotFoundException–The requested resource could not be found.
-
ThrottlingException–The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
-
UnauthorizedException–The client is not authenticated or authorized to perform the requested operation.
-
ValidationException–The input failed to satisfy the constraints specified by the service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Deletes the categories in the library
>>> await client.batch_delete_category(instance_id='0b95c9c4-89cc-4aa8-9aae-aa91cbec699f', categories=['9c871ed4-1c41-4065-aefe-321cd4b61cf8'])