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:
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'
},
]
)
[REQUIRED]
The identifier for the assessment.
[REQUIRED]
The identifier for the control set.
[REQUIRED]
The identifier for the control.
[REQUIRED]
The list of manual evidence objects.
Evidence that's uploaded to Audit Manager manually.
The Amazon S3 URL that points to a manual evidence object.
dict
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