amazonka-wisdom-2.0: Amazon Connect Wisdom Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Wisdom.CreateKnowledgeBase

Description

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.

 <p>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:</p> <ol> <li> <p>Call <a href="https://docs.aws.amazon.com/wisdom/latest/APIReference/API_DeleteKnowledgeBase.html">DeleteKnowledgeBase</a>.</p> </li> <li> <p>Call <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_DeleteDataIntegration.html">DeleteDataIntegration</a>.</p> </li> <li> <p>Call <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a> to recreate the DataIntegration or a create different one.</p> </li> <li> <p>Call CreateKnowledgeBase.</p> </li> </ol> </note>
Synopsis

Creating a Request

data CreateKnowledgeBase Source #

See: newCreateKnowledgeBase smart constructor.

Constructors

CreateKnowledgeBase' 

Fields

Instances

Instances details
ToJSON CreateKnowledgeBase Source # 
Instance details

Defined in Amazonka.Wisdom.CreateKnowledgeBase

ToHeaders CreateKnowledgeBase Source # 
Instance details

Defined in Amazonka.Wisdom.CreateKnowledgeBase

ToPath CreateKnowledgeBase Source # 
Instance details

Defined in Amazonka.Wisdom.CreateKnowledgeBase

ToQuery CreateKnowledgeBase Source # 
Instance details

Defined in Amazonka.Wisdom.CreateKnowledgeBase

AWSRequest CreateKnowledgeBase Source # 
Instance details

Defined in Amazonka.Wisdom.CreateKnowledgeBase

Associated Types

type AWSResponse CreateKnowledgeBase #

Generic CreateKnowledgeBase Source # 
Instance details

Defined in Amazonka.Wisdom.CreateKnowledgeBase

Associated Types

type Rep CreateKnowledgeBase :: Type -> Type #

Read CreateKnowledgeBase Source # 
Instance details

Defined in Amazonka.Wisdom.CreateKnowledgeBase

Show CreateKnowledgeBase Source # 
Instance details

Defined in Amazonka.Wisdom.CreateKnowledgeBase

NFData CreateKnowledgeBase Source # 
Instance details

Defined in Amazonka.Wisdom.CreateKnowledgeBase

Methods

rnf :: CreateKnowledgeBase -> () #

Eq CreateKnowledgeBase Source # 
Instance details

Defined in Amazonka.Wisdom.CreateKnowledgeBase

Hashable CreateKnowledgeBase Source # 
Instance details

Defined in Amazonka.Wisdom.CreateKnowledgeBase

type AWSResponse CreateKnowledgeBase Source # 
Instance details

Defined in Amazonka.Wisdom.CreateKnowledgeBase

type Rep CreateKnowledgeBase Source # 
Instance details

Defined in Amazonka.Wisdom.CreateKnowledgeBase

newCreateKnowledgeBase Source #

Create a value of CreateKnowledgeBase with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:clientToken:CreateKnowledgeBase', createKnowledgeBase_clientToken - A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

CreateKnowledgeBase, createKnowledgeBase_description - The description.

CreateKnowledgeBase, createKnowledgeBase_renderingConfiguration - Information about how to render the content.

CreateKnowledgeBase, createKnowledgeBase_serverSideEncryptionConfiguration - The KMS key used for encryption.

CreateKnowledgeBase, createKnowledgeBase_sourceConfiguration - The source of the knowledge base content. Only set this argument for EXTERNAL knowledge bases.

CreateKnowledgeBase, createKnowledgeBase_tags - The tags used to organize, track, or control access for this resource.

CreateKnowledgeBase, createKnowledgeBase_knowledgeBaseType - 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.

CreateKnowledgeBase, createKnowledgeBase_name - The name of the knowledge base.

Request Lenses

createKnowledgeBase_clientToken :: Lens' CreateKnowledgeBase (Maybe Text) Source #

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

createKnowledgeBase_sourceConfiguration :: Lens' CreateKnowledgeBase (Maybe SourceConfiguration) Source #

The source of the knowledge base content. Only set this argument for EXTERNAL knowledge bases.

createKnowledgeBase_tags :: Lens' CreateKnowledgeBase (Maybe (HashMap Text Text)) Source #

The tags used to organize, track, or control access for this resource.

createKnowledgeBase_knowledgeBaseType :: Lens' CreateKnowledgeBase KnowledgeBaseType Source #

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.

Destructuring the Response

data CreateKnowledgeBaseResponse Source #

See: newCreateKnowledgeBaseResponse smart constructor.

Constructors

CreateKnowledgeBaseResponse' 

Fields

Instances

Instances details
Generic CreateKnowledgeBaseResponse Source # 
Instance details

Defined in Amazonka.Wisdom.CreateKnowledgeBase

Associated Types

type Rep CreateKnowledgeBaseResponse :: Type -> Type #

Read CreateKnowledgeBaseResponse Source # 
Instance details

Defined in Amazonka.Wisdom.CreateKnowledgeBase

Show CreateKnowledgeBaseResponse Source # 
Instance details

Defined in Amazonka.Wisdom.CreateKnowledgeBase

NFData CreateKnowledgeBaseResponse Source # 
Instance details

Defined in Amazonka.Wisdom.CreateKnowledgeBase

Eq CreateKnowledgeBaseResponse Source # 
Instance details

Defined in Amazonka.Wisdom.CreateKnowledgeBase

type Rep CreateKnowledgeBaseResponse Source # 
Instance details

Defined in Amazonka.Wisdom.CreateKnowledgeBase

type Rep CreateKnowledgeBaseResponse = D1 ('MetaData "CreateKnowledgeBaseResponse" "Amazonka.Wisdom.CreateKnowledgeBase" "amazonka-wisdom-2.0-D8ZGZ1sJNnDDHDNbH2yubp" 'False) (C1 ('MetaCons "CreateKnowledgeBaseResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "knowledgeBase") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe KnowledgeBaseData)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateKnowledgeBaseResponse Source #

Create a value of CreateKnowledgeBaseResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:knowledgeBase:CreateKnowledgeBaseResponse', createKnowledgeBaseResponse_knowledgeBase - The knowledge base.

$sel:httpStatus:CreateKnowledgeBaseResponse', createKnowledgeBaseResponse_httpStatus - The response's http status code.

Response Lenses