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 that describes the streaming sessions for a specified stack and fleet. If a UserId is provided for the stack and fleet, only streaming sessions for that user are described. If an authentication type is not provided, the default is to authenticate users using a streaming URL.
This operation returns paginated results.
Synopsis
- data DescribeSessions = DescribeSessions' {}
- newDescribeSessions :: Text -> Text -> DescribeSessions
- describeSessions_userId :: Lens' DescribeSessions (Maybe Text)
- describeSessions_nextToken :: Lens' DescribeSessions (Maybe Text)
- describeSessions_limit :: Lens' DescribeSessions (Maybe Int)
- describeSessions_authenticationType :: Lens' DescribeSessions (Maybe AuthenticationType)
- describeSessions_stackName :: Lens' DescribeSessions Text
- describeSessions_fleetName :: Lens' DescribeSessions Text
- 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:userId:DescribeSessions'
, describeSessions_userId
- The user identifier (ID). If you specify a user ID, you must also
specify the authentication type.
$sel:nextToken:DescribeSessions'
, describeSessions_nextToken
- The pagination token to use to retrieve the next page of results for
this operation. If this value is null, it retrieves the first page.
$sel:limit:DescribeSessions'
, describeSessions_limit
- The size of each page of results. The default value is 20 and the
maximum value is 50.
$sel:authenticationType:DescribeSessions'
, describeSessions_authenticationType
- The authentication method. Specify API
for a user authenticated using
a streaming URL or SAML
for a SAML federated user. The default is to
authenticate users using a streaming URL.
$sel:stackName:DescribeSessions'
, describeSessions_stackName
- The name of the stack. This value is case-sensitive.
$sel:fleetName:DescribeSessions'
, describeSessions_fleetName
- The name of the fleet. This value is case-sensitive.
Request Lenses
describeSessions_userId :: Lens' DescribeSessions (Maybe Text) Source #
The user identifier (ID). If you specify a user ID, you must also specify the authentication type.
describeSessions_nextToken :: Lens' DescribeSessions (Maybe Text) Source #
The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
describeSessions_limit :: Lens' DescribeSessions (Maybe Int) Source #
The size of each page of results. The default value is 20 and the maximum value is 50.
describeSessions_authenticationType :: Lens' DescribeSessions (Maybe AuthenticationType) Source #
The authentication method. Specify API
for a user authenticated using
a streaming URL or SAML
for a SAML federated user. The default is to
authenticate users using a streaming URL.
describeSessions_stackName :: Lens' DescribeSessions Text Source #
The name of the stack. This value is case-sensitive.
describeSessions_fleetName :: Lens' DescribeSessions Text Source #
The name of the fleet. This value is case-sensitive.
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 pagination token to use to retrieve the next page of results for
this operation. If there are no more pages, this value is null.
$sel:sessions:DescribeSessionsResponse'
, describeSessionsResponse_sessions
- Information about the streaming sessions.
$sel:httpStatus:DescribeSessionsResponse'
, describeSessionsResponse_httpStatus
- The response's http status code.
Response Lenses
describeSessionsResponse_nextToken :: Lens' DescribeSessionsResponse (Maybe Text) Source #
The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.
describeSessionsResponse_sessions :: Lens' DescribeSessionsResponse (Maybe [Session]) Source #
Information about the streaming sessions.
describeSessionsResponse_httpStatus :: Lens' DescribeSessionsResponse Int Source #
The response's http status code.