| 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.GetKnowledgeBase
Description
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.
Constructors
| GetKnowledgeBase' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> GetKnowledgeBase |
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:
GetKnowledgeBase, getKnowledgeBase_knowledgeBaseId - 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 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.
Constructors
| GetKnowledgeBaseResponse' | |
Fields
| |
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.