:doc:`AuditManager <../../auditmanager>` / Client / get_change_logs

***************
get_change_logs
***************



.. py:method:: AuditManager.Client.get_change_logs(**kwargs)

  

  Gets a list of changelogs from Audit Manager.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/GetChangeLogs>`_  


  **Request Syntax**
  ::

    response = client.get_change_logs(
        assessmentId='string',
        controlSetId='string',
        controlId='string',
        nextToken='string',
        maxResults=123
    )
    
  :type assessmentId: string
  :param assessmentId: **[REQUIRED]** 

    The unique identifier for the assessment.

    

  
  :type controlSetId: string
  :param controlSetId: 

    The unique identifier for the control set.

    

  
  :type controlId: string
  :param controlId: 

    The unique identifier for the control.

    

  
  :type nextToken: string
  :param nextToken: 

    The pagination token that's used to fetch the next set of results.

    

  
  :type maxResults: integer
  :param maxResults: 

    Represents the maximum number of results on a page or for an API request call.

    

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

    
    ::

      {
          'changeLogs': [
              {
                  'objectType': 'ASSESSMENT'|'CONTROL_SET'|'CONTROL'|'DELEGATION'|'ASSESSMENT_REPORT',
                  'objectName': 'string',
                  'action': 'CREATE'|'UPDATE_METADATA'|'ACTIVE'|'INACTIVE'|'DELETE'|'UNDER_REVIEW'|'REVIEWED'|'IMPORT_EVIDENCE',
                  'createdAt': datetime(2015, 1, 1),
                  'createdBy': 'string'
              },
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **changeLogs** *(list) --* 

        The list of user activity for the control.

        
        

        - *(dict) --* 

          The record of a change within Audit Manager. For example, this could be the status change of an assessment or the delegation of a control set.

          
          

          - **objectType** *(string) --* 

            The object that was changed, such as an assessment, control, or control set.

            
          

          - **objectName** *(string) --* 

            The name of the object that changed. This could be the name of an assessment, control, or control set.

            
          

          - **action** *(string) --* 

            The action that was performed.

            
          

          - **createdAt** *(datetime) --* 

            The time when the action was performed and the changelog record was created.

            
          

          - **createdBy** *(string) --* 

            The user or role that performed the action.

            
      
    
      

      - **nextToken** *(string) --* 

        The pagination token that's used to fetch the next set of results.

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

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

  
  *   :py:class:`AuditManager.Client.exceptions.ValidationException`

  
  *   :py:class:`AuditManager.Client.exceptions.InternalServerException`

  