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.CreateContent

Description

Creates Wisdom content. Before to calling this API, use StartContentUpload to upload an asset.

Synopsis

Creating a Request

data CreateContent Source #

See: newCreateContent smart constructor.

Constructors

CreateContent' 

Fields

  • clientToken :: Maybe Text

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

  • metadata :: Maybe (HashMap Text Text)

    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.

  • overrideLinkOutUri :: Maybe Text

    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.

  • tags :: Maybe (HashMap Text Text)

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

  • title :: Maybe Text

    The title of the content. If not set, the title is equal to the name.

  • knowledgeBaseId :: Text

    The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

  • name :: Text

    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 SearchContent API.

  • uploadId :: Text

    A pointer to the uploaded asset. This value is returned by StartContentUpload.

Instances

Instances details
ToJSON CreateContent Source # 
Instance details

Defined in Amazonka.Wisdom.CreateContent

ToHeaders CreateContent Source # 
Instance details

Defined in Amazonka.Wisdom.CreateContent

ToPath CreateContent Source # 
Instance details

Defined in Amazonka.Wisdom.CreateContent

ToQuery CreateContent Source # 
Instance details

Defined in Amazonka.Wisdom.CreateContent

AWSRequest CreateContent Source # 
Instance details

Defined in Amazonka.Wisdom.CreateContent

Associated Types

type AWSResponse CreateContent #

Generic CreateContent Source # 
Instance details

Defined in Amazonka.Wisdom.CreateContent

Associated Types

type Rep CreateContent :: Type -> Type #

Read CreateContent Source # 
Instance details

Defined in Amazonka.Wisdom.CreateContent

Show CreateContent Source # 
Instance details

Defined in Amazonka.Wisdom.CreateContent

NFData CreateContent Source # 
Instance details

Defined in Amazonka.Wisdom.CreateContent

Methods

rnf :: CreateContent -> () #

Eq CreateContent Source # 
Instance details

Defined in Amazonka.Wisdom.CreateContent

Hashable CreateContent Source # 
Instance details

Defined in Amazonka.Wisdom.CreateContent

type AWSResponse CreateContent Source # 
Instance details

Defined in Amazonka.Wisdom.CreateContent

type Rep CreateContent Source # 
Instance details

Defined in Amazonka.Wisdom.CreateContent

newCreateContent Source #

Create a value of CreateContent 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:CreateContent', createContent_clientToken - A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

CreateContent, createContent_metadata - 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.

$sel:overrideLinkOutUri:CreateContent', createContent_overrideLinkOutUri - 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.

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

CreateContent, createContent_title - The title of the content. If not set, the title is equal to the name.

CreateContent, createContent_knowledgeBaseId - The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

CreateContent, createContent_name - 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 SearchContent API.

$sel:uploadId:CreateContent', createContent_uploadId - A pointer to the uploaded asset. This value is returned by StartContentUpload.

Request Lenses

createContent_clientToken :: Lens' CreateContent (Maybe Text) Source #

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

createContent_metadata :: Lens' CreateContent (Maybe (HashMap Text Text)) Source #

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.

createContent_overrideLinkOutUri :: Lens' CreateContent (Maybe Text) Source #

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.

createContent_tags :: Lens' CreateContent (Maybe (HashMap Text Text)) Source #

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

createContent_title :: Lens' CreateContent (Maybe Text) Source #

The title of the content. If not set, the title is equal to the name.

createContent_knowledgeBaseId :: Lens' CreateContent Text Source #

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

createContent_name :: Lens' CreateContent Text Source #

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 SearchContent API.

createContent_uploadId :: Lens' CreateContent Text Source #

A pointer to the uploaded asset. This value is returned by StartContentUpload.

Destructuring the Response

data CreateContentResponse Source #

See: newCreateContentResponse smart constructor.

Constructors

CreateContentResponse' 

Fields

newCreateContentResponse Source #

Create a value of CreateContentResponse 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:content:CreateContentResponse', createContentResponse_content - The content.

$sel:httpStatus:CreateContentResponse', createContentResponse_httpStatus - The response's http status code.

Response Lenses