aws_sdk_wisdom/client/
create_knowledge_base.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 [`CreateKnowledgeBase`](crate::operation::create_knowledge_base::builders::CreateKnowledgeBaseFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`client_token(impl Into<String>)`](crate::operation::create_knowledge_base::builders::CreateKnowledgeBaseFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_knowledge_base::builders::CreateKnowledgeBaseFluentBuilder::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>
    ///   - [`name(impl Into<String>)`](crate::operation::create_knowledge_base::builders::CreateKnowledgeBaseFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_knowledge_base::builders::CreateKnowledgeBaseFluentBuilder::set_name):<br>required: **true**<br><p>The name of the knowledge base.</p><br>
    ///   - [`knowledge_base_type(KnowledgeBaseType)`](crate::operation::create_knowledge_base::builders::CreateKnowledgeBaseFluentBuilder::knowledge_base_type) / [`set_knowledge_base_type(Option<KnowledgeBaseType>)`](crate::operation::create_knowledge_base::builders::CreateKnowledgeBaseFluentBuilder::set_knowledge_base_type):<br>required: **true**<br><p>The type of knowledge base. Only CUSTOM knowledge bases allow you to upload your own content. EXTERNAL knowledge bases support integrations with third-party systems whose content is synchronized automatically.</p><br>
    ///   - [`source_configuration(SourceConfiguration)`](crate::operation::create_knowledge_base::builders::CreateKnowledgeBaseFluentBuilder::source_configuration) / [`set_source_configuration(Option<SourceConfiguration>)`](crate::operation::create_knowledge_base::builders::CreateKnowledgeBaseFluentBuilder::set_source_configuration):<br>required: **false**<br><p>The source of the knowledge base content. Only set this argument for EXTERNAL knowledge bases.</p><br>
    ///   - [`rendering_configuration(RenderingConfiguration)`](crate::operation::create_knowledge_base::builders::CreateKnowledgeBaseFluentBuilder::rendering_configuration) / [`set_rendering_configuration(Option<RenderingConfiguration>)`](crate::operation::create_knowledge_base::builders::CreateKnowledgeBaseFluentBuilder::set_rendering_configuration):<br>required: **false**<br><p>Information about how to render the content.</p><br>
    ///   - [`server_side_encryption_configuration(ServerSideEncryptionConfiguration)`](crate::operation::create_knowledge_base::builders::CreateKnowledgeBaseFluentBuilder::server_side_encryption_configuration) / [`set_server_side_encryption_configuration(Option<ServerSideEncryptionConfiguration>)`](crate::operation::create_knowledge_base::builders::CreateKnowledgeBaseFluentBuilder::set_server_side_encryption_configuration):<br>required: **false**<br><p>The configuration information for the customer managed key used for encryption.</p> <p>This KMS key must have a policy that allows <code>kms:CreateGrant</code>, <code>kms:DescribeKey</code>, and <code>kms:Decrypt/kms:GenerateDataKey</code> permissions to the IAM identity using the key to invoke Wisdom.</p> <p>For more information about setting up a customer managed key for Wisdom, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/enable-wisdom.html">Enable Amazon Connect Wisdom for your instance</a>.</p><br>
    ///   - [`description(impl Into<String>)`](crate::operation::create_knowledge_base::builders::CreateKnowledgeBaseFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_knowledge_base::builders::CreateKnowledgeBaseFluentBuilder::set_description):<br>required: **false**<br><p>The description.</p><br>
    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_knowledge_base::builders::CreateKnowledgeBaseFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_knowledge_base::builders::CreateKnowledgeBaseFluentBuilder::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 [`CreateKnowledgeBaseOutput`](crate::operation::create_knowledge_base::CreateKnowledgeBaseOutput) with field(s):
    ///   - [`knowledge_base(Option<KnowledgeBaseData>)`](crate::operation::create_knowledge_base::CreateKnowledgeBaseOutput::knowledge_base): <p>The knowledge base.</p>
    /// - On failure, responds with [`SdkError<CreateKnowledgeBaseError>`](crate::operation::create_knowledge_base::CreateKnowledgeBaseError)
    pub fn create_knowledge_base(&self) -> crate::operation::create_knowledge_base::builders::CreateKnowledgeBaseFluentBuilder {
        crate::operation::create_knowledge_base::builders::CreateKnowledgeBaseFluentBuilder::new(self.handle.clone())
    }
}