![]() |
![]()
| ![]() |
![]()
NAMEPaws::GameLift::SearchGameSessions - Arguments for method SearchGameSessions on Paws::GameLift DESCRIPTIONThis class represents the parameters used for calling the method SearchGameSessions on the Amazon GameLift service. Use the attributes of this class as arguments to method SearchGameSessions. You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to SearchGameSessions. SYNOPSISmy $gamelift = Paws->service('GameLift'); my $SearchGameSessionsOutput = $gamelift->SearchGameSessions( AliasId => 'MyAliasIdOrArn', # OPTIONAL FilterExpression => 'MyNonZeroAndMaxString', # OPTIONAL FleetId => 'MyFleetIdOrArn', # OPTIONAL Limit => 1, # OPTIONAL Location => 'MyLocationStringModel', # OPTIONAL NextToken => 'MyNonZeroAndMaxString', # OPTIONAL SortExpression => 'MyNonZeroAndMaxString', # OPTIONAL ); # Results: my $GameSessions = $SearchGameSessionsOutput->GameSessions; my $NextToken = $SearchGameSessionsOutput->NextToken; # Returns a L<Paws::GameLift::SearchGameSessionsOutput> object. Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see <https://docs.aws.amazon.com/goto/WebAPI/gamelift/SearchGameSessions> ATTRIBUTESAliasId => StrA unique identifier for the alias associated with the fleet to search for active game sessions. You can use either the alias ID or ARN value. Each request must reference either a fleet ID or alias ID, but not both. FilterExpression => StrString containing the search criteria for the session search. If no filter expression is included, the request returns results for all game sessions in the fleet that are in "ACTIVE" status. A filter expression can contain one or multiple conditions. Each condition consists of the following:
To chain multiple conditions in a single expression, use the logical keywords "AND", "OR", and "NOT" and parentheses as needed. For example: "x AND y AND NOT z", "NOT (x OR y)". Session search evaluates conditions from left to right using the following precedence rules:
For example, this filter expression retrieves game sessions hosting at least ten players that have an open player slot: "maximumSessions>=10 AND hasAvailablePlayerSessions=true". FleetId => StrA unique identifier for the fleet to search for active game sessions. You can use either the fleet ID or ARN value. Each request must reference either a fleet ID or alias ID, but not both. Limit => IntThe maximum number of results to return. Use this parameter with "NextToken" to get results as a set of sequential pages. The maximum number of results returned is 20, even if this value is not set or is set higher than 20. Location => StrA fleet location to search for game sessions. You can specify a fleet's home Region or a remote location. Use the AWS Region code format, such as "us-west-2". NextToken => StrA token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this operation. To start at the beginning of the result set, do not specify a value. SortExpression => StrInstructions on how to sort the search results. If no sort expression is included, the request returns results in random order. A sort expression consists of the following elements:
For example, this sort expression returns the oldest active sessions first: "SortExpression": "creationTimeMillis ASC". Results with a null value for the sort operand are returned at the end of the list. SEE ALSOThis class forms part of Paws, documenting arguments for method SearchGameSessions in Paws::GameLift BUGS and CONTRIBUTIONSThe source code is located here: <https://github.com/pplu/aws-sdk-perl> Please report bugs to: <https://github.com/pplu/aws-sdk-perl/issues>
|