amazonka-appstream-1.4.5: Amazon AppStream SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.AppStream.DescribeSessions

Contents

Description

Describes the streaming sessions for a stack and a fleet. If a user ID is provided, this operation returns streaming sessions for only that user. Pass this value for the nextToken parameter in a subsequent call to this operation to retrieve the next set of items.

Synopsis

Creating a Request

describeSessions Source #

Creates a value of DescribeSessions with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • dsUserId - The user for whom to list sessions. Use null to describe all the sessions for the stack and fleet.
  • dsNextToken - 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.
  • dsLimit - The size of each page of results. The default value is 20 and the maximum supported value is 50.
  • dsStackName - The name of the stack for which to list sessions.
  • dsFleetName - The name of the fleet for which to list sessions.

data DescribeSessions Source #

See: describeSessions smart constructor.

Instances

Eq DescribeSessions Source # 
Data DescribeSessions Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeSessions -> c DescribeSessions #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeSessions #

toConstr :: DescribeSessions -> Constr #

dataTypeOf :: DescribeSessions -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DescribeSessions) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeSessions) #

gmapT :: (forall b. Data b => b -> b) -> DescribeSessions -> DescribeSessions #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeSessions -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeSessions -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeSessions -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeSessions -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeSessions -> m DescribeSessions #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeSessions -> m DescribeSessions #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeSessions -> m DescribeSessions #

Read DescribeSessions Source # 
Show DescribeSessions Source # 
Generic DescribeSessions Source # 
Hashable DescribeSessions Source # 
ToJSON DescribeSessions Source # 
NFData DescribeSessions Source # 

Methods

rnf :: DescribeSessions -> () #

AWSRequest DescribeSessions Source # 
ToPath DescribeSessions Source # 
ToHeaders DescribeSessions Source # 
ToQuery DescribeSessions Source # 
type Rep DescribeSessions Source # 
type Rep DescribeSessions = D1 (MetaData "DescribeSessions" "Network.AWS.AppStream.DescribeSessions" "amazonka-appstream-1.4.5-IRmm46UHAni5KvE4mK7PN1" False) (C1 (MetaCons "DescribeSessions'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_dsUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_dsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_dsLimit") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int))) ((:*:) (S1 (MetaSel (Just Symbol "_dsStackName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_dsFleetName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Rs DescribeSessions Source # 

Request Lenses

dsUserId :: Lens' DescribeSessions (Maybe Text) Source #

The user for whom to list sessions. Use null to describe all the sessions for the stack and fleet.

dsNextToken :: 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.

dsLimit :: Lens' DescribeSessions (Maybe Int) Source #

The size of each page of results. The default value is 20 and the maximum supported value is 50.

dsStackName :: Lens' DescribeSessions Text Source #

The name of the stack for which to list sessions.

dsFleetName :: Lens' DescribeSessions Text Source #

The name of the fleet for which to list sessions.

Destructuring the Response

describeSessionsResponse Source #

Creates a value of DescribeSessionsResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • dssrsNextToken - 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.
  • dssrsSessions - The list of streaming sessions.
  • dssrsResponseStatus - -- | The response status code.

data DescribeSessionsResponse Source #

See: describeSessionsResponse smart constructor.

Instances

Eq DescribeSessionsResponse Source # 
Data DescribeSessionsResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeSessionsResponse -> c DescribeSessionsResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeSessionsResponse #

toConstr :: DescribeSessionsResponse -> Constr #

dataTypeOf :: DescribeSessionsResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DescribeSessionsResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeSessionsResponse) #

gmapT :: (forall b. Data b => b -> b) -> DescribeSessionsResponse -> DescribeSessionsResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeSessionsResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeSessionsResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeSessionsResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeSessionsResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeSessionsResponse -> m DescribeSessionsResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeSessionsResponse -> m DescribeSessionsResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeSessionsResponse -> m DescribeSessionsResponse #

Read DescribeSessionsResponse Source # 
Show DescribeSessionsResponse Source # 
Generic DescribeSessionsResponse Source # 
NFData DescribeSessionsResponse Source # 
type Rep DescribeSessionsResponse Source # 
type Rep DescribeSessionsResponse = D1 (MetaData "DescribeSessionsResponse" "Network.AWS.AppStream.DescribeSessions" "amazonka-appstream-1.4.5-IRmm46UHAni5KvE4mK7PN1" False) (C1 (MetaCons "DescribeSessionsResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dssrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_dssrsSessions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Session]))) (S1 (MetaSel (Just Symbol "_dssrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))

Response Lenses

dssrsNextToken :: 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.

dssrsSessions :: Lens' DescribeSessionsResponse [Session] Source #

The list of streaming sessions.