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

Description

Updates information about the content.

Synopsis

Creating a Request

data UpdateContent Source #

See: newUpdateContent smart constructor.

Constructors

UpdateContent' 

Fields

  • 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 for the article. If the knowledge base has a templateUri, setting this argument overrides it for this piece of content. To remove an existing overrideLinkOurUri, exclude this argument and set removeOverrideLinkOutUri to true.

  • removeOverrideLinkOutUri :: Maybe Bool

    Unset the existing overrideLinkOutUri if it exists.

  • revisionId :: Maybe Text

    The revisionId of the content resource to update, taken from an earlier call to GetContent, GetContentSummary, SearchContent, or ListContents. If included, this argument acts as an optimistic lock to ensure content was not modified since it was last read. If it has been modified, this API throws a PreconditionFailedException.

  • title :: Maybe Text

    The title of the content.

  • uploadId :: Maybe Text

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

  • contentId :: Text

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

  • knowledgeBaseId :: Text

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

Instances

Instances details
ToJSON UpdateContent Source # 
Instance details

Defined in Amazonka.Wisdom.UpdateContent

ToHeaders UpdateContent Source # 
Instance details

Defined in Amazonka.Wisdom.UpdateContent

ToPath UpdateContent Source # 
Instance details

Defined in Amazonka.Wisdom.UpdateContent

ToQuery UpdateContent Source # 
Instance details

Defined in Amazonka.Wisdom.UpdateContent

AWSRequest UpdateContent Source # 
Instance details

Defined in Amazonka.Wisdom.UpdateContent

Associated Types

type AWSResponse UpdateContent #

Generic UpdateContent Source # 
Instance details

Defined in Amazonka.Wisdom.UpdateContent

Associated Types

type Rep UpdateContent :: Type -> Type #

Read UpdateContent Source # 
Instance details

Defined in Amazonka.Wisdom.UpdateContent

Show UpdateContent Source # 
Instance details

Defined in Amazonka.Wisdom.UpdateContent

NFData UpdateContent Source # 
Instance details

Defined in Amazonka.Wisdom.UpdateContent

Methods

rnf :: UpdateContent -> () #

Eq UpdateContent Source # 
Instance details

Defined in Amazonka.Wisdom.UpdateContent

Hashable UpdateContent Source # 
Instance details

Defined in Amazonka.Wisdom.UpdateContent

type AWSResponse UpdateContent Source # 
Instance details

Defined in Amazonka.Wisdom.UpdateContent

type Rep UpdateContent Source # 
Instance details

Defined in Amazonka.Wisdom.UpdateContent

newUpdateContent Source #

Create a value of UpdateContent 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:

UpdateContent, updateContent_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:UpdateContent', updateContent_overrideLinkOutUri - The URI for the article. If the knowledge base has a templateUri, setting this argument overrides it for this piece of content. To remove an existing overrideLinkOurUri, exclude this argument and set removeOverrideLinkOutUri to true.

$sel:removeOverrideLinkOutUri:UpdateContent', updateContent_removeOverrideLinkOutUri - Unset the existing overrideLinkOutUri if it exists.

UpdateContent, updateContent_revisionId - The revisionId of the content resource to update, taken from an earlier call to GetContent, GetContentSummary, SearchContent, or ListContents. If included, this argument acts as an optimistic lock to ensure content was not modified since it was last read. If it has been modified, this API throws a PreconditionFailedException.

UpdateContent, updateContent_title - The title of the content.

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

UpdateContent, updateContent_contentId - The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.

UpdateContent, updateContent_knowledgeBaseId - The identifier of the knowledge base. Can be either the ID or the ARN

Request Lenses

updateContent_metadata :: Lens' UpdateContent (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.

updateContent_overrideLinkOutUri :: Lens' UpdateContent (Maybe Text) Source #

The URI for the article. If the knowledge base has a templateUri, setting this argument overrides it for this piece of content. To remove an existing overrideLinkOurUri, exclude this argument and set removeOverrideLinkOutUri to true.

updateContent_removeOverrideLinkOutUri :: Lens' UpdateContent (Maybe Bool) Source #

Unset the existing overrideLinkOutUri if it exists.

updateContent_revisionId :: Lens' UpdateContent (Maybe Text) Source #

The revisionId of the content resource to update, taken from an earlier call to GetContent, GetContentSummary, SearchContent, or ListContents. If included, this argument acts as an optimistic lock to ensure content was not modified since it was last read. If it has been modified, this API throws a PreconditionFailedException.

updateContent_title :: Lens' UpdateContent (Maybe Text) Source #

The title of the content.

updateContent_uploadId :: Lens' UpdateContent (Maybe Text) Source #

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

updateContent_contentId :: Lens' UpdateContent Text Source #

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

updateContent_knowledgeBaseId :: Lens' UpdateContent Text Source #

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

Destructuring the Response

data UpdateContentResponse Source #

See: newUpdateContentResponse smart constructor.

Constructors

UpdateContentResponse' 

Fields

newUpdateContentResponse Source #

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

$sel:httpStatus:UpdateContentResponse', updateContentResponse_httpStatus - The response's http status code.

Response Lenses