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

*******************************************
batch_import_evidence_to_assessment_control
*******************************************



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

  

  Adds one or more pieces of evidence to a control in an Audit Manager assessment.

   

  You can import manual evidence from any S3 bucket by specifying the S3 URI of the object. You can also upload a file from your browser, or enter plain text in response to a risk assessment question.

   

  The following restrictions apply to this action:

   

  
  * ``manualEvidence`` can be only one of the following: ``evidenceFileName``, ``s3ResourcePath``, or ``textResponse``
   
  * Maximum size of an individual evidence file: 100 MB
   
  * Number of daily manual evidence uploads per control: 100
   
  * Supported file formats: See `Supported file types for manual evidence <https://docs.aws.amazon.com/audit-manager/latest/userguide/upload-evidence.html#supported-manual-evidence-files>`__ in the *Audit Manager User Guide*
  

   

  For more information about Audit Manager service restrictions, see `Quotas and restrictions for Audit Manager <https://docs.aws.amazon.com/audit-manager/latest/userguide/service-quotas.html>`__.

  

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


  **Request Syntax**
  ::

    response = client.batch_import_evidence_to_assessment_control(
        assessmentId='string',
        controlSetId='string',
        controlId='string',
        manualEvidence=[
            {
                's3ResourcePath': 'string',
                'textResponse': 'string',
                'evidenceFileName': 'string'
            },
        ]
    )
    
  :type assessmentId: string
  :param assessmentId: **[REQUIRED]** 

    The identifier for the assessment.

    

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

    The identifier for the control set.

    

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

    The identifier for the control.

    

  
  :type manualEvidence: list
  :param manualEvidence: **[REQUIRED]** 

    The list of manual evidence objects.

    

  
    - *(dict) --* 

      Evidence that's manually added to a control in Audit Manager. ``manualEvidence`` can be one of the following: ``evidenceFileName``, ``s3ResourcePath``, or ``textResponse``.

      

    
      - **s3ResourcePath** *(string) --* 

        The S3 URL of the object that's imported as manual evidence.

        

      
      - **textResponse** *(string) --* 

        The plain text response that's entered and saved as manual evidence.

        

      
      - **evidenceFileName** *(string) --* 

        The name of the file that's uploaded as manual evidence. This name is populated using the ``evidenceFileName`` value from the `GetEvidenceFileUploadUrl <https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_GetEvidenceFileUploadUrl.html>`__ API response.

        

      
    

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

    
    ::

      {
          'errors': [
              {
                  'manualEvidence': {
                      's3ResourcePath': 'string',
                      'textResponse': 'string',
                      'evidenceFileName': 'string'
                  },
                  'errorCode': 'string',
                  'errorMessage': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **errors** *(list) --* 

        A list of errors that the ``BatchImportEvidenceToAssessmentControl`` API returned.

        
        

        - *(dict) --* 

          An error entity for the ``BatchImportEvidenceToAssessmentControl`` API. This is used to provide more meaningful errors than a simple string message.

          
          

          - **manualEvidence** *(dict) --* 

            Manual evidence that can't be collected automatically by Audit Manager.

            
            

            - **s3ResourcePath** *(string) --* 

              The S3 URL of the object that's imported as manual evidence.

              
            

            - **textResponse** *(string) --* 

              The plain text response that's entered and saved as manual evidence.

              
            

            - **evidenceFileName** *(string) --* 

              The name of the file that's uploaded as manual evidence. This name is populated using the ``evidenceFileName`` value from the `GetEvidenceFileUploadUrl <https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_GetEvidenceFileUploadUrl.html>`__ API response.

              
        
          

          - **errorCode** *(string) --* 

            The error code that the ``BatchImportEvidenceToAssessmentControl`` API returned.

            
          

          - **errorMessage** *(string) --* 

            The error message that the ``BatchImportEvidenceToAssessmentControl`` API returned.

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

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

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

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

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

  