:doc:`WorkSpaces <../../workspaces>` / Client / describe_connection_alias_permissions

*************************************
describe_connection_alias_permissions
*************************************



.. py:method:: WorkSpaces.Client.describe_connection_alias_permissions(**kwargs)

  

  Describes the permissions that the owner of a connection alias has granted to another Amazon Web Services account for the specified connection alias. For more information, see `Cross-Region Redirection for Amazon WorkSpaces <https://docs.aws.amazon.com/workspaces/latest/adminguide/cross-region-redirection.html>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeConnectionAliasPermissions>`_  


  **Request Syntax**
  ::

    response = client.describe_connection_alias_permissions(
        AliasId='string',
        NextToken='string',
        MaxResults=123
    )
    
  :type AliasId: string
  :param AliasId: **[REQUIRED]** 

    The identifier of the connection alias.

    

  
  :type NextToken: string
  :param NextToken: 

    If you received a ``NextToken`` from a previous call that was paginated, provide this token to receive the next set of results.

    

  
  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of results to return.

    

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

    
    ::

      {
          'AliasId': 'string',
          'ConnectionAliasPermissions': [
              {
                  'SharedAccountId': 'string',
                  'AllowAssociation': True|False
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **AliasId** *(string) --* 

        The identifier of the connection alias.

        
      

      - **ConnectionAliasPermissions** *(list) --* 

        The permissions associated with a connection alias.

        
        

        - *(dict) --* 

          Describes the permissions for a connection alias. Connection aliases are used for cross-Region redirection. For more information, see `Cross-Region Redirection for Amazon WorkSpaces <https://docs.aws.amazon.com/workspaces/latest/adminguide/cross-region-redirection.html>`__.

          
          

          - **SharedAccountId** *(string) --* 

            The identifier of the Amazon Web Services account that the connection alias is shared with.

            
          

          - **AllowAssociation** *(boolean) --* 

            Indicates whether the specified Amazon Web Services account is allowed to associate the connection alias with a directory.

            
      
    
      

      - **NextToken** *(string) --* 

        The token to use to retrieve the next page of results. This value is null when there are no more results to return.

        
  
  **Exceptions**
  
  *   :py:class:`WorkSpaces.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`WorkSpaces.Client.exceptions.InvalidParameterValuesException`

  
  *   :py:class:`WorkSpaces.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`WorkSpaces.Client.exceptions.OperationNotSupportedException`

  