| 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.ListSessions
Description
Retrieve a list of sessions.
Synopsis
- data ListSessions = ListSessions' {}
- newListSessions :: ListSessions
- listSessions_maxResults :: Lens' ListSessions (Maybe Natural)
- listSessions_nextToken :: Lens' ListSessions (Maybe Text)
- listSessions_requestOrigin :: Lens' ListSessions (Maybe Text)
- listSessions_tags :: Lens' ListSessions (Maybe (HashMap Text Text))
- data ListSessionsResponse = ListSessionsResponse' {}
- newListSessionsResponse :: Int -> ListSessionsResponse
- listSessionsResponse_ids :: Lens' ListSessionsResponse (Maybe [Text])
- listSessionsResponse_nextToken :: Lens' ListSessionsResponse (Maybe Text)
- listSessionsResponse_sessions :: Lens' ListSessionsResponse (Maybe [Session])
- listSessionsResponse_httpStatus :: Lens' ListSessionsResponse Int
Creating a Request
data ListSessions Source #
See: newListSessions smart constructor.
Constructors
| ListSessions' | |
Instances
newListSessions :: ListSessions Source #
Create a value of ListSessions 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:maxResults:ListSessions', listSessions_maxResults - The maximum number of results.
ListSessions, listSessions_nextToken - The token for the next set of results, or null if there are no more
result.
$sel:requestOrigin:ListSessions', listSessions_requestOrigin - The origin of the request.
$sel:tags:ListSessions', listSessions_tags - Tags belonging to the session.
Request Lenses
listSessions_maxResults :: Lens' ListSessions (Maybe Natural) Source #
The maximum number of results.
listSessions_nextToken :: Lens' ListSessions (Maybe Text) Source #
The token for the next set of results, or null if there are no more result.
listSessions_requestOrigin :: Lens' ListSessions (Maybe Text) Source #
The origin of the request.
listSessions_tags :: Lens' ListSessions (Maybe (HashMap Text Text)) Source #
Tags belonging to the session.
Destructuring the Response
data ListSessionsResponse Source #
See: newListSessionsResponse smart constructor.
Constructors
| ListSessionsResponse' | |
Instances
newListSessionsResponse Source #
Arguments
| :: Int | |
| -> ListSessionsResponse |
Create a value of ListSessionsResponse 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:ids:ListSessionsResponse', listSessionsResponse_ids - Returns the ID of the session.
ListSessions, listSessionsResponse_nextToken - The token for the next set of results, or null if there are no more
result.
$sel:sessions:ListSessionsResponse', listSessionsResponse_sessions - Returns the session object.
$sel:httpStatus:ListSessionsResponse', listSessionsResponse_httpStatus - The response's http status code.
Response Lenses
listSessionsResponse_ids :: Lens' ListSessionsResponse (Maybe [Text]) Source #
Returns the ID of the session.
listSessionsResponse_nextToken :: Lens' ListSessionsResponse (Maybe Text) Source #
The token for the next set of results, or null if there are no more result.
listSessionsResponse_sessions :: Lens' ListSessionsResponse (Maybe [Session]) Source #
Returns the session object.
listSessionsResponse_httpStatus :: Lens' ListSessionsResponse Int Source #
The response's http status code.