amazonka-gamelift-1.6.1: Amazon GameLift SDK.

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

Network.AWS.GameLift.DescribePlayerSessions

Contents

Description

Retrieves properties for one or more player sessions. This action can be used in several ways: (1) provide a PlayerSessionId to request properties for a specific player session; (2) provide a GameSessionId to request properties for all player sessions in the specified game session; (3) provide a PlayerId to request properties for all player sessions of a specified player.

To get game session record(s), specify only one of the following: a player session ID, a game session ID, or a player ID. You can filter this request by player session status. Use the pagination parameters to retrieve results as a set of sequential pages. If successful, a PlayerSession object is returned for each session matching the request.

Available in Amazon GameLift Local.

Player-session-related operations include:

  • CreatePlayerSession
  • CreatePlayerSessions
  • DescribePlayerSessions
  • Game session placements
  • StartGameSessionPlacement
  • DescribeGameSessionPlacement
  • StopGameSessionPlacement
Synopsis

Creating a Request

describePlayerSessions :: DescribePlayerSessions Source #

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

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

  • dpssGameSessionId - Unique identifier for the game session to retrieve player sessions for.
  • dpssNextToken - Token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To start at the beginning of the result set, do not specify a value. If a player session ID is specified, this parameter is ignored.
  • dpssLimit - Maximum number of results to return. Use this parameter with NextToken to get results as a set of sequential pages. If a player session ID is specified, this parameter is ignored.
  • dpssPlayerSessionId - Unique identifier for a player session to retrieve.
  • dpssPlayerId - Unique identifier for a player to retrieve player sessions for.
  • dpssPlayerSessionStatusFilter - Player session status to filter results on. Possible player session statuses include the following: * RESERVED -- The player session request has been received, but the player has not yet connected to the server process andor been validated. * ACTIVE -- The player has been validated by the server process and is currently connected. * COMPLETED -- The player connection has been dropped. * TIMEDOUT -- A player session request was received, but the player did not connect andor was not validated within the timeout limit (60 seconds).

data DescribePlayerSessions Source #

Represents the input for a request action.

See: describePlayerSessions smart constructor.

Instances
Eq DescribePlayerSessions Source # 
Instance details

Defined in Network.AWS.GameLift.DescribePlayerSessions

Data DescribePlayerSessions Source # 
Instance details

Defined in Network.AWS.GameLift.DescribePlayerSessions

Methods

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

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

toConstr :: DescribePlayerSessions -> Constr #

dataTypeOf :: DescribePlayerSessions -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DescribePlayerSessions Source # 
Instance details

Defined in Network.AWS.GameLift.DescribePlayerSessions

Show DescribePlayerSessions Source # 
Instance details

Defined in Network.AWS.GameLift.DescribePlayerSessions

Generic DescribePlayerSessions Source # 
Instance details

Defined in Network.AWS.GameLift.DescribePlayerSessions

Associated Types

type Rep DescribePlayerSessions :: Type -> Type #

Hashable DescribePlayerSessions Source # 
Instance details

Defined in Network.AWS.GameLift.DescribePlayerSessions

ToJSON DescribePlayerSessions Source # 
Instance details

Defined in Network.AWS.GameLift.DescribePlayerSessions

AWSRequest DescribePlayerSessions Source # 
Instance details

Defined in Network.AWS.GameLift.DescribePlayerSessions

Associated Types

type Rs DescribePlayerSessions :: Type #

ToHeaders DescribePlayerSessions Source # 
Instance details

Defined in Network.AWS.GameLift.DescribePlayerSessions

ToPath DescribePlayerSessions Source # 
Instance details

Defined in Network.AWS.GameLift.DescribePlayerSessions

ToQuery DescribePlayerSessions Source # 
Instance details

Defined in Network.AWS.GameLift.DescribePlayerSessions

NFData DescribePlayerSessions Source # 
Instance details

Defined in Network.AWS.GameLift.DescribePlayerSessions

Methods

rnf :: DescribePlayerSessions -> () #

type Rep DescribePlayerSessions Source # 
Instance details

Defined in Network.AWS.GameLift.DescribePlayerSessions

type Rep DescribePlayerSessions = D1 (MetaData "DescribePlayerSessions" "Network.AWS.GameLift.DescribePlayerSessions" "amazonka-gamelift-1.6.1-GajLKSxsevT2faX837q2Xl" False) (C1 (MetaCons "DescribePlayerSessions'" PrefixI True) ((S1 (MetaSel (Just "_dpssGameSessionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_dpssNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_dpssLimit") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat)))) :*: (S1 (MetaSel (Just "_dpssPlayerSessionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_dpssPlayerId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_dpssPlayerSessionStatusFilter") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Rs DescribePlayerSessions Source # 
Instance details

Defined in Network.AWS.GameLift.DescribePlayerSessions

Request Lenses

dpssGameSessionId :: Lens' DescribePlayerSessions (Maybe Text) Source #

Unique identifier for the game session to retrieve player sessions for.

dpssNextToken :: Lens' DescribePlayerSessions (Maybe Text) Source #

Token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To start at the beginning of the result set, do not specify a value. If a player session ID is specified, this parameter is ignored.

dpssLimit :: Lens' DescribePlayerSessions (Maybe Natural) Source #

Maximum number of results to return. Use this parameter with NextToken to get results as a set of sequential pages. If a player session ID is specified, this parameter is ignored.

dpssPlayerSessionId :: Lens' DescribePlayerSessions (Maybe Text) Source #

Unique identifier for a player session to retrieve.

dpssPlayerId :: Lens' DescribePlayerSessions (Maybe Text) Source #

Unique identifier for a player to retrieve player sessions for.

dpssPlayerSessionStatusFilter :: Lens' DescribePlayerSessions (Maybe Text) Source #

Player session status to filter results on. Possible player session statuses include the following: * RESERVED -- The player session request has been received, but the player has not yet connected to the server process andor been validated. * ACTIVE -- The player has been validated by the server process and is currently connected. * COMPLETED -- The player connection has been dropped. * TIMEDOUT -- A player session request was received, but the player did not connect andor was not validated within the timeout limit (60 seconds).

Destructuring the Response

describePlayerSessionsResponse Source #

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

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

  • dpsrsNextToken - Token that indicates where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.
  • dpsrsPlayerSessions - Collection of objects containing properties for each player session that matches the request.
  • dpsrsResponseStatus - -- | The response status code.

data DescribePlayerSessionsResponse Source #

Represents the returned data in response to a request action.

See: describePlayerSessionsResponse smart constructor.

Instances
Eq DescribePlayerSessionsResponse Source # 
Instance details

Defined in Network.AWS.GameLift.DescribePlayerSessions

Data DescribePlayerSessionsResponse Source # 
Instance details

Defined in Network.AWS.GameLift.DescribePlayerSessions

Methods

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

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

toConstr :: DescribePlayerSessionsResponse -> Constr #

dataTypeOf :: DescribePlayerSessionsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DescribePlayerSessionsResponse Source # 
Instance details

Defined in Network.AWS.GameLift.DescribePlayerSessions

Show DescribePlayerSessionsResponse Source # 
Instance details

Defined in Network.AWS.GameLift.DescribePlayerSessions

Generic DescribePlayerSessionsResponse Source # 
Instance details

Defined in Network.AWS.GameLift.DescribePlayerSessions

Associated Types

type Rep DescribePlayerSessionsResponse :: Type -> Type #

NFData DescribePlayerSessionsResponse Source # 
Instance details

Defined in Network.AWS.GameLift.DescribePlayerSessions

type Rep DescribePlayerSessionsResponse Source # 
Instance details

Defined in Network.AWS.GameLift.DescribePlayerSessions

type Rep DescribePlayerSessionsResponse = D1 (MetaData "DescribePlayerSessionsResponse" "Network.AWS.GameLift.DescribePlayerSessions" "amazonka-gamelift-1.6.1-GajLKSxsevT2faX837q2Xl" False) (C1 (MetaCons "DescribePlayerSessionsResponse'" PrefixI True) (S1 (MetaSel (Just "_dpsrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_dpsrsPlayerSessions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [PlayerSession])) :*: S1 (MetaSel (Just "_dpsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

dpsrsNextToken :: Lens' DescribePlayerSessionsResponse (Maybe Text) Source #

Token that indicates where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.

dpsrsPlayerSessions :: Lens' DescribePlayerSessionsResponse [PlayerSession] Source #

Collection of objects containing properties for each player session that matches the request.