| 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.SSM.DescribeSessions
Description
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_maxResults :: Lens' DescribeSessions (Maybe Natural)
- describeSessions_nextToken :: Lens' DescribeSessions (Maybe Text)
- 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.
Constructors
| DescribeSessions' | |
Fields
| |
Instances
Arguments
| :: SessionState | |
| -> DescribeSessions |
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:
DescribeSessions, describeSessions_filters - One or more filters to limit the type of sessions returned by the
request.
$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.
DescribeSessions, describeSessions_nextToken - The token for the next set of items to return. (You received this token
from a previous call.)
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_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_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_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.
Constructors
| DescribeSessionsResponse' | |
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:
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.