| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Wisdom.GetContent
Description
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.
Constructors
| GetContent' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> GetContent |
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:
GetContent, getContent_contentId - The identifier of the content. Can be either the ID or the ARN. URLs
cannot contain the ARN.
GetContent, getContent_knowledgeBaseId - 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 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.
Constructors
| GetContentResponse' | |
Fields
| |
Instances
newGetContentResponse Source #
Arguments
| :: Int | |
| -> GetContentResponse |
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.