:doc:`EC2 <../../ec2>` / Client / get_route_server_associations

*****************************
get_route_server_associations
*****************************



.. py:method:: EC2.Client.get_route_server_associations(**kwargs)

  

  Gets information about the associations for the specified route server.

   

  A route server association is the connection established between a route server and a VPC.

   

  For more information see `Dynamic routing in your VPC with VPC Route Server <https://docs.aws.amazon.com/vpc/latest/userguide/dynamic-routing-route-server.html>`__ in the *Amazon VPC User Guide*.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetRouteServerAssociations>`_  


  **Request Syntax**
  ::

    response = client.get_route_server_associations(
        RouteServerId='string',
        DryRun=True|False
    )
    
  :type RouteServerId: string
  :param RouteServerId: **[REQUIRED]** 

    The ID of the route server for which to get association information.

    

  
  :type DryRun: boolean
  :param DryRun: 

    A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is ``DryRunOperation``. Otherwise, it is ``UnauthorizedOperation``.

    

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

    
    ::

      {
          'RouteServerAssociations': [
              {
                  'RouteServerId': 'string',
                  'VpcId': 'string',
                  'State': 'associating'|'associated'|'disassociating'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **RouteServerAssociations** *(list) --* 

        Information about the associations for the specified route server.

        
        

        - *(dict) --* 

          Describes the association between a route server and a VPC.

           

          A route server association is the connection established between a route server and a VPC.

          
          

          - **RouteServerId** *(string) --* 

            The ID of the associated route server.

            
          

          - **VpcId** *(string) --* 

            The ID of the associated VPC.

            
          

          - **State** *(string) --* 

            The current state of the association.

            
      
    
  