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

*************************
update_assessment_control
*************************



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

  

  Updates a control within an assessment in Audit Manager.

  

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


  **Request Syntax**
  ::

    response = client.update_assessment_control(
        assessmentId='string',
        controlSetId='string',
        controlId='string',
        controlStatus='UNDER_REVIEW'|'REVIEWED'|'INACTIVE',
        commentBody='string'
    )
    
  :type assessmentId: string
  :param assessmentId: **[REQUIRED]** 

    The unique identifier for the assessment.

    

  
  :type controlSetId: string
  :param controlSetId: **[REQUIRED]** 

    The unique identifier for the control set.

    

  
  :type controlId: string
  :param controlId: **[REQUIRED]** 

    The unique identifier for the control.

    

  
  :type controlStatus: string
  :param controlStatus: 

    The status of the control.

    

  
  :type commentBody: string
  :param commentBody: 

    The comment body text for the control.

    

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

    
    ::

      {
          'control': {
              'id': 'string',
              'name': 'string',
              'description': 'string',
              'status': 'UNDER_REVIEW'|'REVIEWED'|'INACTIVE',
              'response': 'MANUAL'|'AUTOMATE'|'DEFER'|'IGNORE',
              'comments': [
                  {
                      'authorName': 'string',
                      'commentBody': 'string',
                      'postedDate': datetime(2015, 1, 1)
                  },
              ],
              'evidenceSources': [
                  'string',
              ],
              'evidenceCount': 123,
              'assessmentReportEvidenceCount': 123
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **control** *(dict) --* 

        The name of the updated control set that the ``UpdateAssessmentControl`` API returned.

        
        

        - **id** *(string) --* 

          The identifier for the control.

          
        

        - **name** *(string) --* 

          The name of the control.

          
        

        - **description** *(string) --* 

          The description of the control.

          
        

        - **status** *(string) --* 

          The status of the control.

          
        

        - **response** *(string) --* 

          The response of the control.

          
        

        - **comments** *(list) --* 

          The list of comments that's attached to the control.

          
          

          - *(dict) --* 

            A comment that's posted by a user on a control. This includes the author's name, the comment text, and a timestamp.

            
            

            - **authorName** *(string) --* 

              The name of the user who authored the comment.

              
            

            - **commentBody** *(string) --* 

              The body text of a control comment.

              
            

            - **postedDate** *(datetime) --* 

              The time when the comment was posted.

              
        
      
        

        - **evidenceSources** *(list) --* 

          The list of data sources for the evidence.

          
          

          - *(string) --* 
      
        

        - **evidenceCount** *(integer) --* 

          The amount of evidence that's collected for the control.

          
        

        - **assessmentReportEvidenceCount** *(integer) --* 

          The amount of evidence in the assessment report.

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

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

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

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

  