Struct aws_sdk_wisdom::client::fluent_builders::CreateKnowledgeBase [−][src]
pub struct CreateKnowledgeBase<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to CreateKnowledgeBase
.
Creates a knowledge base.
When using this API, you cannot reuse Amazon AppIntegrations
DataIntegrations with external knowledge bases such as Salesforce and ServiceNow. If you do,
you'll get an InvalidRequestException
error.
For example, you're programmatically managing your external knowledge base, and you want to add or remove one of the fields that is being ingested from Salesforce. Do the following:
-
Call DeleteKnowledgeBase.
-
Call DeleteDataIntegration.
-
Call CreateDataIntegration to recreate the DataIntegration or a create different one.
-
Call CreateKnowledgeBase.
Implementations
impl<C, M, R> CreateKnowledgeBase<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateKnowledgeBase<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateKnowledgeBaseOutput, SdkError<CreateKnowledgeBaseError>> where
R::Policy: SmithyRetryPolicy<CreateKnowledgeBaseInputOperationOutputAlias, CreateKnowledgeBaseOutput, CreateKnowledgeBaseError, CreateKnowledgeBaseInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateKnowledgeBaseOutput, SdkError<CreateKnowledgeBaseError>> where
R::Policy: SmithyRetryPolicy<CreateKnowledgeBaseInputOperationOutputAlias, CreateKnowledgeBaseOutput, CreateKnowledgeBaseError, CreateKnowledgeBaseInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
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.
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.
The source of the knowledge base content. Only set this argument for EXTERNAL knowledge bases.
The source of the knowledge base content. Only set this argument for EXTERNAL knowledge bases.
Information about how to render the content.
Information about how to render the content.
pub fn server_side_encryption_configuration(
self,
inp: ServerSideEncryptionConfiguration
) -> Self
pub fn server_side_encryption_configuration(
self,
inp: ServerSideEncryptionConfiguration
) -> Self
The KMS key used for encryption.
pub fn set_server_side_encryption_configuration(
self,
input: Option<ServerSideEncryptionConfiguration>
) -> Self
pub fn set_server_side_encryption_configuration(
self,
input: Option<ServerSideEncryptionConfiguration>
) -> Self
The KMS key used for encryption.
The description.
The description.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
The tags used to organize, track, or control access for this resource.
The tags used to organize, track, or control access for this resource.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for CreateKnowledgeBase<C, M, R>
impl<C, M, R> Send for CreateKnowledgeBase<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateKnowledgeBase<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateKnowledgeBase<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for CreateKnowledgeBase<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more