:doc:`Greengrass <../../greengrass>` / Client / get_associated_role

*******************
get_associated_role
*******************



.. py:method:: Greengrass.Client.get_associated_role(**kwargs)

  Retrieves the role associated with a particular group.

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetAssociatedRole>`_  


  **Request Syntax**
  ::

    response = client.get_associated_role(
        GroupId='string'
    )
    
  :type GroupId: string
  :param GroupId: **[REQUIRED]** The ID of the Greengrass group.

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

    
    ::

      {
          'AssociatedAt': 'string',
          'RoleArn': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* success
      

      - **AssociatedAt** *(string) --* The time when the role was associated with the group.
      

      - **RoleArn** *(string) --* The ARN of the role that is associated with the group.
  
  **Exceptions**
  
  *   :py:class:`Greengrass.Client.exceptions.BadRequestException`

  
  *   :py:class:`Greengrass.Client.exceptions.InternalServerErrorException`

  