AuditManager / Client / batch_import_evidence_to_assessment_control
batch_import_evidence_to_assessment_control#
- AuditManager.Client.batch_import_evidence_to_assessment_control(**kwargs)#
Uploads one or more pieces of evidence to a control in an Audit Manager assessment. You can upload manual evidence from any Amazon Simple Storage Service (Amazon S3) bucket by specifying the S3 URI of the evidence.
You must upload manual evidence to your S3 bucket before you can upload it to your assessment. For instructions, see CreateBucket and PutObject in the Amazon Simple Storage Service API Reference.
The following restrictions apply to this action:
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 in the Audit Manager User Guide
For more information about Audit Manager service restrictions, see Quotas and restrictions for Audit Manager.
See also: AWS API Documentation
Request Syntax
response = client.batch_import_evidence_to_assessment_control( assessmentId='string', controlSetId='string', controlId='string', manualEvidence=[ { 's3ResourcePath': 'string' }, ] )
- Parameters:
assessmentId (string) –
[REQUIRED]
The identifier for the assessment.
controlSetId (string) –
[REQUIRED]
The identifier for the control set.
controlId (string) –
[REQUIRED]
The identifier for the control.
manualEvidence (list) –
[REQUIRED]
The list of manual evidence objects.
(dict) –
Evidence that’s uploaded to Audit Manager manually.
s3ResourcePath (string) –
The Amazon S3 URL that points to a manual evidence object.
- Return type:
dict
- Returns:
Response Syntax
{ 'errors': [ { 'manualEvidence': { 's3ResourcePath': '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 Amazon S3 URL that points to a manual evidence object.
errorCode (string) –
The error code that the
BatchImportEvidenceToAssessmentControl
API returned.errorMessage (string) –
The error message that the
BatchImportEvidenceToAssessmentControl
API returned.
Exceptions
AuditManager.Client.exceptions.ResourceNotFoundException
AuditManager.Client.exceptions.AccessDeniedException
AuditManager.Client.exceptions.ValidationException
AuditManager.Client.exceptions.InternalServerException