Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates Wisdom content. Before to calling this API, use StartContentUpload to upload an asset.
Synopsis
- data CreateContent = CreateContent' {}
- newCreateContent :: Text -> Text -> Text -> CreateContent
- createContent_overrideLinkOutUri :: Lens' CreateContent (Maybe Text)
- createContent_clientToken :: Lens' CreateContent (Maybe Text)
- createContent_metadata :: Lens' CreateContent (Maybe (HashMap Text Text))
- createContent_title :: Lens' CreateContent (Maybe Text)
- createContent_tags :: Lens' CreateContent (Maybe (HashMap Text Text))
- createContent_knowledgeBaseId :: Lens' CreateContent Text
- createContent_name :: Lens' CreateContent Text
- createContent_uploadId :: Lens' CreateContent Text
- data CreateContentResponse = CreateContentResponse' {
- content :: Maybe ContentData
- httpStatus :: Int
- newCreateContentResponse :: Int -> CreateContentResponse
- createContentResponse_content :: Lens' CreateContentResponse (Maybe ContentData)
- createContentResponse_httpStatus :: Lens' CreateContentResponse Int
Creating a Request
data CreateContent Source #
See: newCreateContent
smart constructor.
CreateContent' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> CreateContent |
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: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.
$sel:clientToken:CreateContent'
, createContent_clientToken
- A unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
$sel:metadata: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:title:CreateContent'
, createContent_title
- The title of the content. If not set, the title is equal to the name.
$sel:tags:CreateContent'
, createContent_tags
- The tags used to organize, track, or control access for this resource.
$sel:knowledgeBaseId:CreateContent'
, createContent_knowledgeBaseId
- The the identifier of the knowledge base. Can be either the ID or the
ARN. URLs cannot contain the ARN.
$sel:name: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_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_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_title :: Lens' CreateContent (Maybe Text) Source #
The title of the content. If not set, the title is equal to the name.
createContent_tags :: Lens' CreateContent (Maybe (HashMap Text Text)) Source #
The tags used to organize, track, or control access for this resource.
createContent_knowledgeBaseId :: Lens' CreateContent Text Source #
The 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.
CreateContentResponse' | |
|
Instances
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
createContentResponse_content :: Lens' CreateContentResponse (Maybe ContentData) Source #
The content.
createContentResponse_httpStatus :: Lens' CreateContentResponse Int Source #
The response's http status code.