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 information about the knowledge base.
Synopsis
- data GetKnowledgeBase = GetKnowledgeBase' {}
- newGetKnowledgeBase :: Text -> GetKnowledgeBase
- getKnowledgeBase_knowledgeBaseId :: Lens' GetKnowledgeBase Text
- data GetKnowledgeBaseResponse = GetKnowledgeBaseResponse' {}
- newGetKnowledgeBaseResponse :: Int -> GetKnowledgeBaseResponse
- getKnowledgeBaseResponse_knowledgeBase :: Lens' GetKnowledgeBaseResponse (Maybe KnowledgeBaseData)
- getKnowledgeBaseResponse_httpStatus :: Lens' GetKnowledgeBaseResponse Int
Creating a Request
data GetKnowledgeBase Source #
See: newGetKnowledgeBase
smart constructor.
GetKnowledgeBase' | |
|
Instances
Create a value of GetKnowledgeBase
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:knowledgeBaseId:GetKnowledgeBase'
, getKnowledgeBase_knowledgeBaseId
- The the identifier of the knowledge base. Can be either the ID or the
ARN. URLs cannot contain the ARN.
Request Lenses
getKnowledgeBase_knowledgeBaseId :: Lens' GetKnowledgeBase 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 GetKnowledgeBaseResponse Source #
See: newGetKnowledgeBaseResponse
smart constructor.
GetKnowledgeBaseResponse' | |
|
Instances
newGetKnowledgeBaseResponse Source #
Create a value of GetKnowledgeBaseResponse
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:knowledgeBase:GetKnowledgeBaseResponse'
, getKnowledgeBaseResponse_knowledgeBase
- The knowledge base.
$sel:httpStatus:GetKnowledgeBaseResponse'
, getKnowledgeBaseResponse_httpStatus
- The response's http status code.
Response Lenses
getKnowledgeBaseResponse_knowledgeBase :: Lens' GetKnowledgeBaseResponse (Maybe KnowledgeBaseData) Source #
The knowledge base.
getKnowledgeBaseResponse_httpStatus :: Lens' GetKnowledgeBaseResponse Int Source #
The response's http status code.