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 |
Retrieves content, including a pre-signed URL to download the content.
Synopsis
- data GetContent = GetContent' {
- contentId :: Text
- knowledgeBaseId :: Text
- newGetContent :: Text -> Text -> GetContent
- getContent_contentId :: Lens' GetContent Text
- getContent_knowledgeBaseId :: Lens' GetContent Text
- data GetContentResponse = GetContentResponse' {
- content :: Maybe ContentData
- httpStatus :: Int
- newGetContentResponse :: Int -> GetContentResponse
- getContentResponse_content :: Lens' GetContentResponse (Maybe ContentData)
- getContentResponse_httpStatus :: Lens' GetContentResponse Int
Creating a Request
data GetContent Source #
See: newGetContent
smart constructor.
GetContent' | |
|
Instances
Create a value of GetContent
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:contentId:GetContent'
, getContent_contentId
- The identifier of the content. Can be either the ID or the ARN. URLs
cannot contain the ARN.
$sel:knowledgeBaseId:GetContent'
, getContent_knowledgeBaseId
- The the identifier of the knowledge base. Can be either the ID or the
ARN. URLs cannot contain the ARN.
Request Lenses
getContent_contentId :: Lens' GetContent Text Source #
The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.
getContent_knowledgeBaseId :: Lens' GetContent Text Source #
The the identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
Destructuring the Response
data GetContentResponse Source #
See: newGetContentResponse
smart constructor.
GetContentResponse' | |
|
Instances
newGetContentResponse Source #
Create a value of GetContentResponse
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:GetContentResponse'
, getContentResponse_content
- The content.
$sel:httpStatus:GetContentResponse'
, getContentResponse_httpStatus
- The response's http status code.
Response Lenses
getContentResponse_content :: Lens' GetContentResponse (Maybe ContentData) Source #
The content.
getContentResponse_httpStatus :: Lens' GetContentResponse Int Source #
The response's http status code.