resolveAlias method

Future<ResolveAliasOutput> resolveAlias({
  1. required String aliasId,
})

Retrieves the fleet ID that an alias is currently pointing to.

May throw UnauthorizedException. May throw InvalidRequestException. May throw NotFoundException. May throw TerminalRoutingStrategyException. May throw InternalServiceException.

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 {
  ArgumentError.checkNotNull(aliasId, 'aliasId');
  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);
}