libZSservicesZSamazonka-wisdomZSamazonka-wisdom
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq CreateKnowledgeBase Source # 
Instance details

Defined in Amazonka.Wisdom.CreateKnowledgeBase

Read CreateKnowledgeBase Source # 
Instance details

Defined in Amazonka.Wisdom.CreateKnowledgeBase

Show CreateKnowledgeBase Source # 
Instance details

Defined in Amazonka.Wisdom.CreateKnowledgeBase

Generic CreateKnowledgeBase Source # 
Instance details

Defined in Amazonka.Wisdom.CreateKnowledgeBase

Associated Types

type Rep CreateKnowledgeBase :: Type -> Type #

NFData CreateKnowledgeBase Source # 
Instance details

Defined in Amazonka.Wisdom.CreateKnowledgeBase

Methods

rnf :: CreateKnowledgeBase -> () #

Hashable CreateKnowledgeBase Source # 
Instance details

Defined in Amazonka.Wisdom.CreateKnowledgeBase

ToJSON CreateKnowledgeBase Source # 
Instance details

Defined in Amazonka.Wisdom.CreateKnowledgeBase

AWSRequest CreateKnowledgeBase Source # 
Instance details

Defined in Amazonka.Wisdom.CreateKnowledgeBase

Associated Types

type AWSResponse 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

type Rep CreateKnowledgeBase Source # 
Instance details

Defined in Amazonka.Wisdom.CreateKnowledgeBase

type AWSResponse 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.

$sel:renderingConfiguration:CreateKnowledgeBase', createKnowledgeBase_renderingConfiguration - Information about how to render the content.

$sel:sourceConfiguration:CreateKnowledgeBase', createKnowledgeBase_sourceConfiguration - The source of the knowledge base content. Only set this argument for EXTERNAL knowledge bases.

$sel:description:CreateKnowledgeBase', createKnowledgeBase_description - The description.

$sel:serverSideEncryptionConfiguration:CreateKnowledgeBase', createKnowledgeBase_serverSideEncryptionConfiguration - The KMS key used for encryption.

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

$sel:knowledgeBaseType: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.

$sel:name: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
Eq CreateKnowledgeBaseResponse Source # 
Instance details

Defined in Amazonka.Wisdom.CreateKnowledgeBase

Read CreateKnowledgeBaseResponse Source # 
Instance details

Defined in Amazonka.Wisdom.CreateKnowledgeBase

Show CreateKnowledgeBaseResponse Source # 
Instance details

Defined in Amazonka.Wisdom.CreateKnowledgeBase

Generic CreateKnowledgeBaseResponse Source # 
Instance details

Defined in Amazonka.Wisdom.CreateKnowledgeBase

Associated Types

type Rep CreateKnowledgeBaseResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-wisdomZSamazonka-wisdom" '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