:doc:`GameLift <../../gamelift>` / Client / resolve_alias

*************
resolve_alias
*************



.. py:method:: GameLift.Client.resolve_alias(**kwargs)

  

  **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**

   

  `All APIs by task <https://docs.aws.amazon.com/gamelift/latest/developerguide/reference-awssdk.html#reference-awssdk-resources-fleets>`__

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/ResolveAlias>`_  


  **Request Syntax**
  ::

    response = client.resolve_alias(
        AliasId='string'
    )
    
  :type AliasId: string
  :param AliasId: **[REQUIRED]** 

    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.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'FleetId': 'string',
          'FleetArn': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **FleetId** *(string) --* 

        The fleet identifier that the alias is pointing to.

        
      

      - **FleetArn** *(string) --* 

        The Amazon Resource Name ( `ARN <https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-arn-format.html>`__) associated with the GameLift fleet resource that this alias points to.

        
  
  **Exceptions**
  
  *   :py:class:`GameLift.Client.exceptions.UnauthorizedException`

  
  *   :py:class:`GameLift.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`GameLift.Client.exceptions.NotFoundException`

  
  *   :py:class:`GameLift.Client.exceptions.TerminalRoutingStrategyException`

  
  *   :py:class:`GameLift.Client.exceptions.InternalServiceException`

  