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 summary information about the content.
Synopsis
- data GetContentSummary = GetContentSummary' {
- contentId :: Text
- knowledgeBaseId :: Text
- newGetContentSummary :: Text -> Text -> GetContentSummary
- getContentSummary_contentId :: Lens' GetContentSummary Text
- getContentSummary_knowledgeBaseId :: Lens' GetContentSummary Text
- data GetContentSummaryResponse = GetContentSummaryResponse' {}
- newGetContentSummaryResponse :: Int -> GetContentSummaryResponse
- getContentSummaryResponse_contentSummary :: Lens' GetContentSummaryResponse (Maybe ContentSummary)
- getContentSummaryResponse_httpStatus :: Lens' GetContentSummaryResponse Int
Creating a Request
data GetContentSummary Source #
See: newGetContentSummary
smart constructor.
GetContentSummary' | |
|
Instances
:: Text | |
-> Text | |
-> GetContentSummary |
Create a value of GetContentSummary
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:GetContentSummary'
, getContentSummary_contentId
- The identifier of the content. Can be either the ID or the ARN. URLs
cannot contain the ARN.
$sel:knowledgeBaseId:GetContentSummary'
, getContentSummary_knowledgeBaseId
- The the identifier of the knowledge base. Can be either the ID or the
ARN. URLs cannot contain the ARN.
Request Lenses
getContentSummary_contentId :: Lens' GetContentSummary Text Source #
The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.
getContentSummary_knowledgeBaseId :: Lens' GetContentSummary 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 GetContentSummaryResponse Source #
See: newGetContentSummaryResponse
smart constructor.
GetContentSummaryResponse' | |
|
Instances
newGetContentSummaryResponse Source #
Create a value of GetContentSummaryResponse
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:contentSummary:GetContentSummaryResponse'
, getContentSummaryResponse_contentSummary
- The content summary.
$sel:httpStatus:GetContentSummaryResponse'
, getContentSummaryResponse_httpStatus
- The response's http status code.
Response Lenses
getContentSummaryResponse_contentSummary :: Lens' GetContentSummaryResponse (Maybe ContentSummary) Source #
The content summary.
getContentSummaryResponse_httpStatus :: Lens' GetContentSummaryResponse Int Source #
The response's http status code.