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 for a specified session.
Synopsis
- data GetSession = GetSession' {
- assistantId :: Text
- sessionId :: Text
- newGetSession :: Text -> Text -> GetSession
- getSession_assistantId :: Lens' GetSession Text
- getSession_sessionId :: Lens' GetSession Text
- data GetSessionResponse = GetSessionResponse' {
- session :: Maybe SessionData
- httpStatus :: Int
- newGetSessionResponse :: Int -> GetSessionResponse
- getSessionResponse_session :: Lens' GetSessionResponse (Maybe SessionData)
- getSessionResponse_httpStatus :: Lens' GetSessionResponse Int
Creating a Request
data GetSession Source #
See: newGetSession
smart constructor.
GetSession' | |
|
Instances
Create a value of GetSession
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:assistantId:GetSession'
, getSession_assistantId
- The identifier of the Wisdom assistant. Can be either the ID or the ARN.
URLs cannot contain the ARN.
$sel:sessionId:GetSession'
, getSession_sessionId
- The identifier of the session. Can be either the ID or the ARN. URLs
cannot contain the ARN.
Request Lenses
getSession_assistantId :: Lens' GetSession Text Source #
The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
getSession_sessionId :: Lens' GetSession Text Source #
The identifier of the session. Can be either the ID or the ARN. URLs cannot contain the ARN.
Destructuring the Response
data GetSessionResponse Source #
See: newGetSessionResponse
smart constructor.
GetSessionResponse' | |
|
Instances
newGetSessionResponse Source #
Create a value of GetSessionResponse
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:session:GetSessionResponse'
, getSessionResponse_session
- The session.
$sel:httpStatus:GetSessionResponse'
, getSessionResponse_httpStatus
- The response's http status code.
Response Lenses
getSessionResponse_session :: Lens' GetSessionResponse (Maybe SessionData) Source #
The session.
getSessionResponse_httpStatus :: Lens' GetSessionResponse Int Source #
The response's http status code.