listGameServerGroups method
This API works with the following fleet types: EC2 (FleetIQ)
Lists a game server groups.
May throw InternalServiceException.
May throw InvalidRequestException.
May throw UnauthorizedException.
Parameter limit :
The game server groups' limit.
Parameter nextToken :
Specify the pagination token from a previous request to retrieve the next
page of results.
Implementation
Future<ListGameServerGroupsOutput> listGameServerGroups({
int? limit,
String? nextToken,
}) async {
_s.validateNumRange(
'limit',
limit,
1,
1152921504606846976,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'GameLift.ListGameServerGroups'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (limit != null) 'Limit': limit,
if (nextToken != null) 'NextToken': nextToken,
},
);
return ListGameServerGroupsOutput.fromJson(jsonResponse.body);
}