update_content
async
¶
update_content(
knowledge_base_id: UuidOrArn,
content_id: UuidOrArn,
*,
config_overrides: Optional[AsyncQConnectClientConfig] = None,
revision_id: Optional[NonEmptyString] = None,
title: Optional[ContentTitle] = None,
override_link_out_uri: Optional[Uri] = None,
remove_override_link_out_uri: Optional[bool] = None,
metadata: Optional[ContentMetadata] = None,
upload_id: Optional[UploadId] = None,
) -> UpdateContentResponse
Updates information about the content.
Parameters:
-
knowledge_base_id(UuidOrArn) –The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base. Can be either the ID or the ARN
-
content_id(UuidOrArn) –The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.
-
revision_id(Optional[NonEmptyString], default:None) –The
revisionIdof the content resource to update, taken from an earlier call toGetContent,GetContentSummary,SearchContent, orListContents. If included, this argument acts as an optimistic lock to ensure content was not modified since it was last read. If it has been modified, this API throws aPreconditionFailedException. -
title(Optional[ContentTitle], default:None) –The title of the content.
-
override_link_out_uri(Optional[Uri], default:None) –The URI for the article. If the knowledge base has a templateUri, setting this argument overrides it for this piece of content. To remove an existing
overrideLinkOurUri, exclude this argument and setremoveOverrideLinkOutUrito true. -
remove_override_link_out_uri(Optional[bool], default:None) –Unset the existing
overrideLinkOutUriif it exists. -
metadata(Optional[ContentMetadata], default:None) –A key/value map to store attributes without affecting tagging or recommendations. For example, when synchronizing data between an external system and Amazon Q in Connect, you can store an external version identifier as metadata to utilize for determining drift.
-
upload_id(Optional[UploadId], default:None) –A pointer to the uploaded asset. This value is returned by StartContentUpload.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
PreconditionFailedException–The provided
revisionIddoes not match, indicating the content has been modified since it was last read. -
ResourceNotFoundException–The specified resource does not exist.
-
UnauthorizedException–You do not have permission to perform this action.
-
ValidationException–The input fails to satisfy the constraints specified by a service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_qconnect/_services/async_q_connect.py
5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 | |