describeGameSessionPlacement method
Future<DescribeGameSessionPlacementOutput>
describeGameSessionPlacement({
- required String placementId,
Retrieves properties and current status of a game session placement request. To get game session placement details, specify the placement ID. If successful, a GameSessionPlacement object is returned.
- CreateGameSession
- DescribeGameSessions
- DescribeGameSessionDetails
- SearchGameSessions
- UpdateGameSession
- GetGameSessionLogUrl
- Game session placements
May throw InternalServiceException. May throw InvalidRequestException. May throw NotFoundException. May throw UnauthorizedException.
Parameter placementId
:
A unique identifier for a game session placement to retrieve.
Implementation
Future<DescribeGameSessionPlacementOutput> describeGameSessionPlacement({
required String placementId,
}) async {
ArgumentError.checkNotNull(placementId, 'placementId');
_s.validateStringLength(
'placementId',
placementId,
1,
48,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'GameLift.DescribeGameSessionPlacement'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'PlacementId': placementId,
},
);
return DescribeGameSessionPlacementOutput.fromJson(jsonResponse.body);
}