resolveAlias method
This API works with the following fleet types: EC2, Anywhere, Container
Attempts to retrieve a fleet ID that is associated with an alias. Specify a unique alias identifier.
If the alias has a SIMPLE routing strategy, Amazon GameLift
Servers returns a fleet ID. If the alias has a TERMINAL
routing strategy, the result is a
TerminalRoutingStrategyException.
Related actions
May throw InternalServiceException.
May throw InvalidRequestException.
May throw NotFoundException.
May throw TerminalRoutingStrategyException.
May throw UnauthorizedException.
Parameter aliasId :
The unique identifier of the alias that you want to retrieve a fleet ID
for. You can use either the alias ID or ARN value.
Implementation
Future<ResolveAliasOutput> resolveAlias({
required String aliasId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'GameLift.ResolveAlias'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'AliasId': aliasId,
},
);
return ResolveAliasOutput.fromJson(jsonResponse.body);
}