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 |
Deletes the content.
Synopsis
- data DeleteContent = DeleteContent' {
- contentId :: Text
- knowledgeBaseId :: Text
- newDeleteContent :: Text -> Text -> DeleteContent
- deleteContent_contentId :: Lens' DeleteContent Text
- deleteContent_knowledgeBaseId :: Lens' DeleteContent Text
- data DeleteContentResponse = DeleteContentResponse' {
- httpStatus :: Int
- newDeleteContentResponse :: Int -> DeleteContentResponse
- deleteContentResponse_httpStatus :: Lens' DeleteContentResponse Int
Creating a Request
data DeleteContent Source #
See: newDeleteContent
smart constructor.
DeleteContent' | |
|
Instances
Create a value of DeleteContent
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:DeleteContent'
, deleteContent_contentId
- The identifier of the content. Can be either the ID or the ARN. URLs
cannot contain the ARN.
$sel:knowledgeBaseId:DeleteContent'
, deleteContent_knowledgeBaseId
- The the identifier of the knowledge base. Can be either the ID or the
ARN. URLs cannot contain the ARN.
Request Lenses
deleteContent_contentId :: Lens' DeleteContent Text Source #
The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.
deleteContent_knowledgeBaseId :: Lens' DeleteContent 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 DeleteContentResponse Source #
See: newDeleteContentResponse
smart constructor.
DeleteContentResponse' | |
|
Instances
newDeleteContentResponse Source #
Create a value of DeleteContentResponse
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:httpStatus:DeleteContentResponse'
, deleteContentResponse_httpStatus
- The response's http status code.
Response Lenses
deleteContentResponse_httpStatus :: Lens' DeleteContentResponse Int Source #
The response's http status code.