| 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.AppStream.DescribeSessions
Description
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_authenticationType :: Lens' DescribeSessions (Maybe AuthenticationType)
- describeSessions_limit :: Lens' DescribeSessions (Maybe Int)
- describeSessions_nextToken :: Lens' DescribeSessions (Maybe Text)
- describeSessions_userId :: Lens' DescribeSessions (Maybe Text)
- 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.
Constructors
| DescribeSessions' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> 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_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:limit:DescribeSessions', describeSessions_limit - The size of each page of results. The default value is 20 and the
maximum value is 50.
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.
DescribeSessions, describeSessions_userId - The user identifier (ID). If you specify a user ID, you must also
specify the authentication type.
DescribeSessions, describeSessions_stackName - The name of the stack. This value is case-sensitive.
DescribeSessions, describeSessions_fleetName - The name of the fleet. This value is case-sensitive.
Request Lenses
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_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_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_userId :: Lens' DescribeSessions (Maybe Text) Source #
The user identifier (ID). If you specify a user ID, you must also specify the authentication type.
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.
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 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.