aws_sdk_wisdom/client/
create_content.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateContent`](crate::operation::create_content::builders::CreateContentFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`knowledge_base_id(impl Into<String>)`](crate::operation::create_content::builders::CreateContentFluentBuilder::knowledge_base_id) / [`set_knowledge_base_id(Option<String>)`](crate::operation::create_content::builders::CreateContentFluentBuilder::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 if you're storing Wisdom Content resource to it. Can be either the ID or the ARN. URLs cannot contain the ARN.</p><br>
    ///   - [`name(impl Into<String>)`](crate::operation::create_content::builders::CreateContentFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_content::builders::CreateContentFluentBuilder::set_name):<br>required: **true**<br><p>The name of the content. Each piece of content in a knowledge base must have a unique name. You can retrieve a piece of content using only its knowledge base and its name with the <a href="https://docs.aws.amazon.com/wisdom/latest/APIReference/API_SearchContent.html">SearchContent</a> API.</p><br>
    ///   - [`title(impl Into<String>)`](crate::operation::create_content::builders::CreateContentFluentBuilder::title) / [`set_title(Option<String>)`](crate::operation::create_content::builders::CreateContentFluentBuilder::set_title):<br>required: **false**<br><p>The title of the content. If not set, the title is equal to the name.</p><br>
    ///   - [`override_link_out_uri(impl Into<String>)`](crate::operation::create_content::builders::CreateContentFluentBuilder::override_link_out_uri) / [`set_override_link_out_uri(Option<String>)`](crate::operation::create_content::builders::CreateContentFluentBuilder::set_override_link_out_uri):<br>required: **false**<br><p>The URI you want to use for the article. If the knowledge base has a templateUri, setting this argument overrides it for this piece of content.</p><br>
    ///   - [`metadata(impl Into<String>, impl Into<String>)`](crate::operation::create_content::builders::CreateContentFluentBuilder::metadata) / [`set_metadata(Option<HashMap::<String, String>>)`](crate::operation::create_content::builders::CreateContentFluentBuilder::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 Wisdom, you can store an external version identifier as metadata to utilize for determining drift.</p><br>
    ///   - [`upload_id(impl Into<String>)`](crate::operation::create_content::builders::CreateContentFluentBuilder::upload_id) / [`set_upload_id(Option<String>)`](crate::operation::create_content::builders::CreateContentFluentBuilder::set_upload_id):<br>required: **true**<br><p>A pointer to the uploaded asset. This value is returned by <a href="https://docs.aws.amazon.com/wisdom/latest/APIReference/API_StartContentUpload.html">StartContentUpload</a>.</p><br>
    ///   - [`client_token(impl Into<String>)`](crate::operation::create_content::builders::CreateContentFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_content::builders::CreateContentFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see <a href="https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/">Making retries safe with idempotent APIs</a>.</p><br>
    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_content::builders::CreateContentFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_content::builders::CreateContentFluentBuilder::set_tags):<br>required: **false**<br><p>The tags used to organize, track, or control access for this resource.</p><br>
    /// - On success, responds with [`CreateContentOutput`](crate::operation::create_content::CreateContentOutput) with field(s):
    ///   - [`content(Option<ContentData>)`](crate::operation::create_content::CreateContentOutput::content): <p>The content.</p>
    /// - On failure, responds with [`SdkError<CreateContentError>`](crate::operation::create_content::CreateContentError)
    pub fn create_content(&self) -> crate::operation::create_content::builders::CreateContentFluentBuilder {
        crate::operation::create_content::builders::CreateContentFluentBuilder::new(self.handle.clone())
    }
}