| 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.Glue.GetSession
Description
Retrieves the session.
Synopsis
- data GetSession = GetSession' {
- requestOrigin :: Maybe Text
- id :: Text
- newGetSession :: Text -> GetSession
- getSession_requestOrigin :: Lens' GetSession (Maybe Text)
- getSession_id :: Lens' GetSession Text
- data GetSessionResponse = GetSessionResponse' {
- session :: Maybe Session
- httpStatus :: Int
- newGetSessionResponse :: Int -> GetSessionResponse
- getSessionResponse_session :: Lens' GetSessionResponse (Maybe Session)
- getSessionResponse_httpStatus :: Lens' GetSessionResponse Int
Creating a Request
data GetSession Source #
See: newGetSession smart constructor.
Constructors
| GetSession' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> GetSession |
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:requestOrigin:GetSession', getSession_requestOrigin - The origin of the request.
GetSession, getSession_id - The ID of the session.
Request Lenses
getSession_requestOrigin :: Lens' GetSession (Maybe Text) Source #
The origin of the request.
getSession_id :: Lens' GetSession Text Source #
The ID of the session.
Destructuring the Response
data GetSessionResponse Source #
See: newGetSessionResponse smart constructor.
Constructors
| GetSessionResponse' | |
Fields
| |
Instances
newGetSessionResponse Source #
Arguments
| :: Int | |
| -> GetSessionResponse |
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 object is returned in the response.
$sel:httpStatus:GetSessionResponse', getSessionResponse_httpStatus - The response's http status code.
Response Lenses
getSessionResponse_session :: Lens' GetSessionResponse (Maybe Session) Source #
The session object is returned in the response.
getSessionResponse_httpStatus :: Lens' GetSessionResponse Int Source #
The response's http status code.