aws_sdk_qconnect/client/
update_content.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`UpdateContent`](crate::operation::update_content::builders::UpdateContentFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`knowledge_base_id(impl Into<String>)`](crate::operation::update_content::builders::UpdateContentFluentBuilder::knowledge_base_id) / [`set_knowledge_base_id(Option<String>)`](crate::operation::update_content::builders::UpdateContentFluentBuilder::set_knowledge_base_id):<br>required: **true**<br><p>The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base. Can be either the ID or the ARN</p><br>
7    ///   - [`content_id(impl Into<String>)`](crate::operation::update_content::builders::UpdateContentFluentBuilder::content_id) / [`set_content_id(Option<String>)`](crate::operation::update_content::builders::UpdateContentFluentBuilder::set_content_id):<br>required: **true**<br><p>The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.</p><br>
8    ///   - [`revision_id(impl Into<String>)`](crate::operation::update_content::builders::UpdateContentFluentBuilder::revision_id) / [`set_revision_id(Option<String>)`](crate::operation::update_content::builders::UpdateContentFluentBuilder::set_revision_id):<br>required: **false**<br><p>The <code>revisionId</code> of the content resource to update, taken from an earlier call to <code>GetContent</code>, <code>GetContentSummary</code>, <code>SearchContent</code>, or <code>ListContents</code>. 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 a <code>PreconditionFailedException</code>.</p><br>
9    ///   - [`title(impl Into<String>)`](crate::operation::update_content::builders::UpdateContentFluentBuilder::title) / [`set_title(Option<String>)`](crate::operation::update_content::builders::UpdateContentFluentBuilder::set_title):<br>required: **false**<br><p>The title of the content.</p><br>
10    ///   - [`override_link_out_uri(impl Into<String>)`](crate::operation::update_content::builders::UpdateContentFluentBuilder::override_link_out_uri) / [`set_override_link_out_uri(Option<String>)`](crate::operation::update_content::builders::UpdateContentFluentBuilder::set_override_link_out_uri):<br>required: **false**<br><p>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 <code>overrideLinkOurUri</code>, exclude this argument and set <code>removeOverrideLinkOutUri</code> to true.</p><br>
11    ///   - [`remove_override_link_out_uri(bool)`](crate::operation::update_content::builders::UpdateContentFluentBuilder::remove_override_link_out_uri) / [`set_remove_override_link_out_uri(Option<bool>)`](crate::operation::update_content::builders::UpdateContentFluentBuilder::set_remove_override_link_out_uri):<br>required: **false**<br><p>Unset the existing <code>overrideLinkOutUri</code> if it exists.</p><br>
12    ///   - [`metadata(impl Into<String>, impl Into<String>)`](crate::operation::update_content::builders::UpdateContentFluentBuilder::metadata) / [`set_metadata(Option<HashMap::<String, String>>)`](crate::operation::update_content::builders::UpdateContentFluentBuilder::set_metadata):<br>required: **false**<br><p>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.</p><br>
13    ///   - [`upload_id(impl Into<String>)`](crate::operation::update_content::builders::UpdateContentFluentBuilder::upload_id) / [`set_upload_id(Option<String>)`](crate::operation::update_content::builders::UpdateContentFluentBuilder::set_upload_id):<br>required: **false**<br><p>A pointer to the uploaded asset. This value is returned by <a href="https://docs.aws.amazon.com/amazon-q-connect/latest/APIReference/API_StartContentUpload.html">StartContentUpload</a>.</p><br>
14    /// - On success, responds with [`UpdateContentOutput`](crate::operation::update_content::UpdateContentOutput) with field(s):
15    ///   - [`content(Option<ContentData>)`](crate::operation::update_content::UpdateContentOutput::content): <p>The content.</p>
16    /// - On failure, responds with [`SdkError<UpdateContentError>`](crate::operation::update_content::UpdateContentError)
17    pub fn update_content(&self) -> crate::operation::update_content::builders::UpdateContentFluentBuilder {
18        crate::operation::update_content::builders::UpdateContentFluentBuilder::new(self.handle.clone())
19    }
20}