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 a list of all active sessions (both connected and disconnected) or terminated sessions from the past 30 days.
This operation returns paginated results.
Synopsis
- data DescribeSessions = DescribeSessions' {}
- newDescribeSessions :: SessionState -> DescribeSessions
- describeSessions_filters :: Lens' DescribeSessions (Maybe (NonEmpty SessionFilter))
- describeSessions_nextToken :: Lens' DescribeSessions (Maybe Text)
- describeSessions_maxResults :: Lens' DescribeSessions (Maybe Natural)
- describeSessions_state :: Lens' DescribeSessions SessionState
- data DescribeSessionsResponse = DescribeSessionsResponse' {}
- newDescribeSessionsResponse :: Int -> DescribeSessionsResponse
- describeSessionsResponse_nextToken :: Lens' DescribeSessionsResponse (Maybe Text)
- describeSessionsResponse_sessions :: Lens' DescribeSessionsResponse (Maybe [Session])
- describeSessionsResponse_httpStatus :: Lens' DescribeSessionsResponse Int
Creating a Request
data DescribeSessions Source #
See: newDescribeSessions
smart constructor.
DescribeSessions' | |
|
Instances
Create a value of DescribeSessions
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:filters:DescribeSessions'
, describeSessions_filters
- One or more filters to limit the type of sessions returned by the
request.
$sel:nextToken:DescribeSessions'
, describeSessions_nextToken
- The token for the next set of items to return. (You received this token
from a previous call.)
$sel:maxResults:DescribeSessions'
, describeSessions_maxResults
- The maximum number of items to return for this call. The call also
returns a token that you can specify in a subsequent call to get the
next set of results.
$sel:state:DescribeSessions'
, describeSessions_state
- The session status to retrieve a list of sessions for. For example,
"Active".
Request Lenses
describeSessions_filters :: Lens' DescribeSessions (Maybe (NonEmpty SessionFilter)) Source #
One or more filters to limit the type of sessions returned by the request.
describeSessions_nextToken :: Lens' DescribeSessions (Maybe Text) Source #
The token for the next set of items to return. (You received this token from a previous call.)
describeSessions_maxResults :: Lens' DescribeSessions (Maybe Natural) Source #
The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.
describeSessions_state :: Lens' DescribeSessions SessionState Source #
The session status to retrieve a list of sessions for. For example, "Active".
Destructuring the Response
data DescribeSessionsResponse Source #
See: newDescribeSessionsResponse
smart constructor.
Instances
newDescribeSessionsResponse Source #
Create a value of DescribeSessionsResponse
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:nextToken:DescribeSessions'
, describeSessionsResponse_nextToken
- The token for the next set of items to return. (You received this token
from a previous call.)
$sel:sessions:DescribeSessionsResponse'
, describeSessionsResponse_sessions
- A list of sessions meeting the request parameters.
$sel:httpStatus:DescribeSessionsResponse'
, describeSessionsResponse_httpStatus
- The response's http status code.
Response Lenses
describeSessionsResponse_nextToken :: Lens' DescribeSessionsResponse (Maybe Text) Source #
The token for the next set of items to return. (You received this token from a previous call.)
describeSessionsResponse_sessions :: Lens' DescribeSessionsResponse (Maybe [Session]) Source #
A list of sessions meeting the request parameters.
describeSessionsResponse_httpStatus :: Lens' DescribeSessionsResponse Int Source #
The response's http status code.